/* ── Design tokens (matches app palette) ──────────────────── */
:root {
  --bg:          #0f172a;
  --surface:     #1e293b;
  --border:      rgba(255,255,255,0.12);
  --border-md:   rgba(255,255,255,0.22);
  --text:        #f1f5f9;
  --text-2:      #cbd5e1;
  --muted:       #94a3b8;
  --accent:      #818cf8;
  --accent-dim:  #6366f1;
  --accent-soft: rgba(129, 140, 248, 0.12);
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --radius: 10px;
  --shadow-card: 0 1px 3px rgba(0,0,0,.3), 0 4px 12px rgba(0,0,0,.25);
  --shadow-hero: 0 2px 8px rgba(0,0,0,.4), 0 12px 40px rgba(0,0,0,.35);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
svg { display: block; flex-shrink: 0; }
img { display: block; max-width: 100%; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.14s, border-color 0.14s, color 0.14s, box-shadow 0.14s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border-md);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--border-md);
  color: var(--text);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--border-md);
}
.btn-outline:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.btn-white {
  background: #fff;
  color: var(--accent-dim);
  border-color: transparent;
  font-weight: 600;
}
.btn-white:hover {
  background: #f0f5ff;
}
.btn-sm { padding: 7px 16px; font-size: 0.875rem; }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 60px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: 4px;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color 0.12s;
}
.nav-links a:hover { color: var(--text); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 72px;
  overflow: hidden;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 100px;
  padding: 5px 14px;
  letter-spacing: .01em;
}
.hero-headline {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 720px;
}
.hero-sub {
  font-size: 1.125rem;
  color: var(--text-2);
  max-width: 540px;
  line-height: 1.65;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 4px;
}
.hero-cta .btn { padding: 12px 28px; font-size: 1rem; }

/* Hero visual: fake suggestion card */
.hero-visual {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 600px;
}
.suggestion-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: left;
  box-shadow: var(--shadow-hero);
}
.suggestion-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 10px;
}
.suggestion-text {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 14px;
  font-style: italic;
}
.suggestion-reply {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.6;
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}
.typing-indicator { color: var(--text-2); }
.transcript-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  color: var(--text-2);
  box-shadow: var(--shadow-card);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ── Section headers ──────────────────────────────────────── */
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-align: center;
}
.section-sub {
  font-size: 1.0625rem;
  color: var(--text-2);
  text-align: center;
  margin-top: 10px;
}

/* ── Features ─────────────────────────────────────────────── */
.features {
  padding: 88px 0;
  border-top: 1px solid var(--border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(296px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.16s, border-color 0.16s;
}
.feature-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--border-md);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.feature-icon svg {
  width: 20px;
  height: 20px;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── Pricing ──────────────────────────────────────────────── */
.pricing {
  padding: 88px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.pricing-grid {
  display: flex;
  gap: 24px;
  margin-top: 48px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: flex-start;
}
.pricing-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 32px 28px;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.pricing-card-featured {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.32);
}
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 100px;
  border: 1.5px solid var(--accent);
  white-space: nowrap;
}
.plan-name {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: 0.75;
}
.pricing-card-featured .plan-name { color: rgba(255,255,255,0.85); opacity: 1; }
.plan-price {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan-price span {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.6;
}
.plan-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--text-2);
}
.plan-features svg { width: 16px; height: 16px; flex-shrink: 0; }
.pricing-card-featured .plan-features li { color: rgba(255,255,255,0.9); }
.plan-feature-muted { opacity: 0.45; }
.pricing-card .btn { text-align: center; justify-content: center; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq {
  padding: 88px 0;
  border-top: 1px solid var(--border);
}
.faq-inner {
  max-width: 720px;
}
.faq .section-title { text-align: left; }
.faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.14s;
}
.faq-item[open] { border-color: var(--border-md); }
.faq-item + .faq-item { border-top: 0; border-radius: 0; }
.faq-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.faq-item:last-child  { border-top: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { background: var(--bg); }
.faq-chevron {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  padding: 0 22px 18px;
}
.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── Footer CTA ───────────────────────────────────────────── */
.footer-cta {
  padding: 88px 0;
  background: var(--accent);
  text-align: center;
  color: #fff;
}
.footer-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-cta h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.footer-cta p {
  font-size: 1.0625rem;
  opacity: 0.85;
  max-width: 460px;
}
.footer-cta .btn-primary {
  background: #fff;
  color: var(--accent-dim);
  border-color: transparent;
  font-weight: 600;
  margin-top: 8px;
}
.footer-cta .btn-primary:hover {
  background: #ebf3ff;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 64px 0 48px; }
  .features, .pricing, .faq, .footer-cta { padding: 64px 0; }
  .pricing-card { width: 100%; max-width: 400px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ── Auth modal ───────────────────────────────────────────── */
.auth-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.auth-backdrop[hidden] { display: none; }
.auth-modal {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-hero);
  padding: 32px;
  width: 100%;
  max-width: 380px;
}
.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
}
.auth-modal-close:hover { background: var(--accent-soft); color: var(--text); }
.auth-modal-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 20px;
}
.auth-modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  gap: 0;
}
.auth-modal-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 10px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.12s, border-color 0.12s;
}
.auth-modal-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.auth-modal-error {
  background: #fff0f0;
  color: #c0392b;
  border: 1px solid #f5c6c6;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 0.875rem;
  margin-bottom: 14px;
}
.auth-modal-success {
  background: #f0faf4;
  color: #1a7a45;
  border: 1px solid #b2dfcb;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 0.875rem;
  margin-bottom: 14px;
}
.auth-modal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-modal-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border-md);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9375rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.12s;
}
.auth-modal-form input:focus { border-color: var(--accent); }
.auth-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 0.8125rem;
}
.auth-sep::before, .auth-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border: 1.5px solid var(--border-md);
  border-radius: 8px;
  background: var(--surface);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.auth-google-btn:hover { background: var(--bg); border-color: var(--border-md); }
.auth-google-btn { color: var(--text); }

/* ── Theme toggle ──────────────────────────────────────────────────────────── */
.theme-toggle {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.theme-toggle:hover { opacity: 0.7; }

/* ── Light mode ────────────────────────────────────────────────────────────── */
[data-theme="light"] {
  --bg:            #f8fafc;
  --surface:       #ffffff;
  --border:        rgba(0,0,0,0.08);
  --border-md:     #d4d4d4;
  --text:          #111111;
  --text-2:        #444444;
  --muted:         #888888;
  --accent:        #6366f1;
  --accent-dim:    #4f46e5;
  --accent-soft:   rgba(99,102,241,0.07);
  --accent-ring:   rgba(99,102,241,0.25);
  --danger:        #c00;
  --danger-soft:   #fff1f2;
  --danger-border: #fca5a5;
  --shadow-card:   0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06);
  --shadow-hero:   0 2px 8px rgba(0,0,0,.08), 0 12px 40px rgba(0,0,0,.12);
}
[data-theme="light"] .navbar {
  background: rgba(248,250,252,0.88);
}
