/* FileCap Support — styling based on filecap.com brand
   Palette extracted from filecap.com Webflow CSS */
:root {
  --dark-slate-blue: #134585;
  --steel-blue: #3e84de;
  --deep-sky-blue: #00c1fe;
  --lime-green: #65b73f;
  --alice-blue: #e9f0f5;
  --dim-grey: #626262;
  --white: #ffffff;
  --border: #dbe6ef;
  --shadow: 0 8px 30px rgba(19, 69, 133, 0.10);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark-slate-blue);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1 { font-size: 2.6rem; font-weight: 800; line-height: 1.15; }
h2 { font-size: 1.9rem; font-weight: 700; }

/* ── Header ──────────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 34px; }
.brand-badge {
  background: var(--alice-blue); color: var(--dark-slate-blue);
  font-size: 0.8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
}
.nav-link {
  color: var(--dark-slate-blue); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.nav-link:hover { color: var(--steel-blue); }

/* ── Hero + chat ─────────────────────────────────────────────────── */
.hero {
  background: radial-gradient(120% 120% at 50% 0%, var(--alice-blue) 0%, var(--white) 75%);
  padding: 64px 0 72px;
  text-align: center;
}
.hero-subtitle {
  max-width: 640px; margin: 16px auto 40px; color: var(--dim-grey); font-size: 1.1rem;
}

.chat-card {
  max-width: 720px; margin: 0 auto; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; text-align: left;
}
.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, var(--dark-slate-blue), var(--steel-blue));
  color: var(--white);
}
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.chat-title { font-weight: 700; }
.chat-status { font-size: 0.8rem; opacity: 0.9; display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-green); display: inline-block; }

.chat-messages {
  height: 380px; overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  background: #f7fafc;
}
.msg { max-width: 82%; padding: 10px 14px; border-radius: 12px; font-size: 0.95rem; white-space: pre-wrap; overflow-wrap: break-word; }
.msg.user {
  align-self: flex-end; background: var(--steel-blue); color: var(--white);
  border-bottom-right-radius: 4px;
}
.msg.bot {
  align-self: flex-start; background: var(--white); border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.msg.bot a { color: var(--steel-blue); }
.msg.typing { color: var(--dim-grey); font-style: italic; }
.typing-dots span {
  display: inline-block; width: 6px; height: 6px; margin-right: 3px;
  background: var(--steel-blue); border-radius: 50%;
  animation: blink 1.2s infinite both;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

.chat-input-row {
  display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--border);
  background: var(--white);
}
.chat-input-row input {
  flex: 1; border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; font: inherit; font-size: 0.95rem; color: var(--dark-slate-blue);
}
.chat-input-row input:focus { outline: 2px solid var(--steel-blue); border-color: transparent; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  font: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 10px; transition: all 0.15s ease;
}
.btn-primary { background: var(--lime-green); color: var(--white); }
.btn-primary:hover { background: #57a234; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-outline {
  background: transparent; color: var(--dark-slate-blue);
  border: 2px solid var(--dark-slate-blue);
}
.btn-outline:hover { background: var(--alice-blue); }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq-section { padding: 72px 0; }
.faq-section h2, .section-subtitle { text-align: center; }
.section-subtitle { color: var(--dim-grey); margin: 10px auto 36px; max-width: 560px; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--white); overflow: hidden; transition: box-shadow 0.15s ease;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; background: none; border: none; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 1rem; color: var(--dark-slate-blue); text-align: left;
}
.faq-toggle {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--alice-blue); color: var(--dark-slate-blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; transition: transform 0.2s ease;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--lime-green); color: var(--white); }
.faq-answer { display: none; padding: 0 20px 18px; color: var(--dim-grey); white-space: pre-wrap; }
.faq-item.open .faq-answer { display: block; }
.faq-empty { text-align: center; color: var(--dim-grey); }

/* ── Contact ─────────────────────────────────────────────────────── */
.contact-section { padding: 0 0 72px; }
.contact-card {
  background: linear-gradient(90deg, var(--dark-slate-blue), var(--steel-blue));
  color: var(--white); border-radius: var(--radius);
  padding: 40px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.contact-card h2 { color: var(--white); }
.contact-card p { opacity: 0.85; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-card .btn-outline { color: var(--white); border-color: var(--white); }
.contact-card .btn-outline:hover { background: rgba(255,255,255,0.12); }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer-inner { text-align: center; color: var(--dim-grey); font-size: 0.9rem; }
.footer-logo { height: 26px; margin-bottom: 10px; }
.footer-copy { margin-top: 6px; font-size: 0.8rem; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 40px 0 48px; }
  .chat-messages { height: 320px; }
  .contact-card { padding: 28px; }
}
