/* landing.css — styles for landing.html */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-sans); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cta); text-decoration: none; }
a:hover { text-decoration: underline; }

.nav {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1100px; margin: 0 auto;
  padding: 24px 32px; border-bottom: 1px solid var(--border);
}
.nav .brand {
  font-family: var(--font-serif); font-size: 24px; font-weight: 500;
}
.nav .brand .accent { color: var(--accent); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--text-muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
/* Nav CTAs (Sign in / Sign up / Coming soon): force white text. Needed
   because `.nav-links a` (grey, specificity 0,1,1) otherwise beats the
   base `.cta` white rule (0,1,0). This selector is 0,2,1 so it wins. */
.nav-links a.cta { color: #fff; }

/* Compact CTA sizing for the nav bar (the hero uses the full-size .cta).
   Lives in CSS rather than inline styles so the mobile rules below can
   shrink it. */
.nav-cta { padding: 8px 18px; font-size: 14px; color: #fff;}

/* Mobile nav: the in-page anchor links (How it works / Demo / Pricing / FAQ)
   are just scroll shortcuts and crowd the bar on a phone — hide them and keep
   only the two CTAs, which were previously pushed off-screen. The page is
   short and swipeable, so nothing is lost. */
@media (max-width: 720px) {
  .nav { padding: 16px 20px; }
  .nav-links { gap: 10px; }
  .nav-links a:not(.cta) { display: none; }
  .nav-cta { padding: 8px 14px; font-size: 13px; }
}

/* Hero */
.hero {
  max-width: 800px; margin: 0 auto;
  padding: 80px 32px 60px; text-align: center;
}
.hero h1 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 52px; line-height: 1.15; letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.hero h1 .accent { color: var(--accent); font-style: italic; }
.hero p.lead {
  font-size: 19px; color: var(--text-muted);
  max-width: 580px; margin: 0 auto 36px;
}
.cta {
  display: inline-block; padding: 14px 32px;
  background: var(--cta); color: var(--cta-text);
  border-radius: 3px; font-weight: 600; font-size: 16px;
  transition: background 0.15s;
}
.cta:hover { background: var(--cta-hover); text-decoration: none; }
.cta.secondary {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong);
}
.cta.secondary:hover { border-color: var(--accent); background: var(--accent-dim); }
.cta.signup {
  background: var(--danger); color: #fff;
}
.cta.signup:hover { background: #c96b5d; text-decoration: none; }
[data-theme="light"] .cta.signup:hover { background: #a3463f; }

/* Section scaffolding */
section { max-width: 1100px; margin: 0 auto; padding: 60px 32px; }
section h2 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 32px; margin: 0 0 12px; text-align: center;
}
section .section-lead {
  color: var(--text-muted); text-align: center; max-width: 540px;
  margin: 0 auto 48px; font-size: 16px;
}

/* How it works */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step {
  background: var(--bg-elev); border: 1px solid var(--border);
  padding: 28px 24px; border-radius: 4px;
}
.step .step-num {
  display: inline-block; font-family: var(--font-serif);
  font-size: 14px; color: var(--accent);
  background: var(--accent-dim); padding: 4px 10px;
  border-radius: 999px; margin-bottom: 16px;
}
.step h3 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 20px; margin: 0 0 8px;
}
.step p { color: var(--text-muted); margin: 0; font-size: 14px; }
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
}

/* Demo */
.demo-banner {
  background: var(--accent-dim); border: 1px solid var(--accent);
  color: var(--accent); padding: 12px 16px; border-radius: 3px;
  font-size: 13px; margin-bottom: 16px;
}
.demo-card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 4px; padding: 28px;
}
.demo-line {
  font-family: var(--font-serif); font-size: 22px; line-height: 1.5;
  padding: 20px 24px; background: var(--bg-card); border-radius: 3px;
  border-left: 3px solid var(--border); margin: 12px 0; min-height: 60px;
}
.demo-line.me { border-left-color: var(--accent); }
.demo-line.ai { border-left-color: var(--info); }
.demo-line .char-name {
  display: block; font-family: var(--font-sans);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted); margin-bottom: 8px; font-weight: 600;
}
.demo-controls { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.demo-controls button {
  font-family: var(--font-sans); font-size: 14px; padding: 10px 18px;
  border-radius: 3px; border: 1px solid var(--border-strong);
  background: var(--bg-card); color: var(--text); cursor: pointer;
}
.demo-controls button.primary {
  background: var(--cta); color: var(--cta-text);
  border-color: var(--cta); font-weight: 600;
}
.demo-status {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
  margin-top: 12px;
}
.demo-unsupported {
  background: var(--bg-card); border: 1px solid var(--danger);
  color: var(--danger); padding: 16px; border-radius: 3px;
  font-size: 14px; display: none;
}
.demo-unsupported.show { display: block; }
/* Desktop-only "run it locally" opt-in. Hidden until the gap path reveals it. */
.demo-whisper-btn {
  display: none; margin-top: 12px;
  font-family: var(--font-sans); font-size: 14px; padding: 10px 18px;
  border-radius: 3px; border: 1px solid var(--accent);
  background: var(--accent); color: #1a1208; font-weight: 600; cursor: pointer;
}
.demo-whisper-btn.show { display: inline-block; }
.demo-whisper-btn:hover:not(:disabled) { opacity: 0.9; }
.demo-whisper-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Pricing */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; max-width: 980px; margin: 0 auto;
  align-items: stretch;
}
.pricing-card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 6px; padding: 28px 24px; text-align: center;
  display: flex; flex-direction: column;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent); transform: translateY(-8px);
  box-shadow: 0 8px 24px var(--accent-dim);
}
.pricing-card .tag-name {
  font-family: var(--font-serif); font-size: 22px; font-weight: 500;
  margin: 0 0 4px;
}
.pricing-card .blurb {
  font-size: 12px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.price { font-family: var(--font-serif); font-size: 40px; line-height: 1; }
.price-period { color: var(--text-muted); font-size: 14px; }
.pricing-card ul {
  list-style: none; padding: 0; margin: 20px 0;
  text-align: left; color: var(--text-muted); font-size: 13px;
  flex: 1;
}
.pricing-card li { padding: 5px 0; }
.pricing-card li::before {
  content: '✓'; color: var(--success);
  margin-right: 8px; font-weight: 600;
}
.pricing-card .cta {
  padding: 12px 20px; font-size: 14px;
}
.recommended-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #1a1208;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  padding: 4px 12px; border-radius: 999px; text-transform: uppercase;
}
.pricing-note {
  font-size: 12px; color: var(--text-muted); margin-top: 24px;
  text-align: center;
}
@media (max-width: 800px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; }
  .pricing-card.featured { transform: none; }
}

/* FAQ */
details {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 3px; margin-bottom: 8px; padding: 0;
}
details[open] { border-color: var(--border-strong); }
summary {
  cursor: pointer; padding: 16px 20px; font-weight: 500;
  list-style: none; display: flex; justify-content: space-between;
}
summary::after { content: '+'; color: var(--accent); font-size: 20px; }
details[open] summary::after { content: '−'; }
details > p {
  padding: 0 20px 16px; margin: 0;
  color: var(--text-muted); font-size: 14px;
}

footer {
  border-top: 1px solid var(--border); margin-top: 60px;
  padding: 32px; text-align: center; color: var(--text-muted);
  font-size: 13px;
}
footer a { margin: 0 12px; color: var(--text-muted); }

#comingSoonBanner {
  display: none;
  background: linear-gradient(135deg, var(--accent-dim), transparent);
  border-bottom: 1px solid var(--accent);
  padding: 14px 24px; text-align: center;
  font-size: 14px; color: var(--text);
}
#comingSoonBanner strong { color: var(--accent); }
#comingSoonBanner .soon-sub {
  display: block; font-size: 12px;
  color: var(--text-muted); margin-top: 4px;
}
.waitlist-form {
  display: flex; gap: 8px; justify-content: center;
  margin: 10px auto 0; max-width: 420px; flex-wrap: wrap;
}
.waitlist-form input[type="email"] {
  flex: 1 1 200px; min-width: 0;
  padding: 9px 12px; font-size: 14px;
  border: 1px solid var(--accent); border-radius: 6px;
  background: var(--bg); color: var(--text);
}
.waitlist-form input[type="email"]:focus {
  outline: none; box-shadow: 0 0 0 2px var(--accent-dim);
}
.waitlist-form button {
  padding: 9px 18px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--accent); border-radius: 6px;
  background: var(--accent); color: #1a1208; cursor: pointer;
  white-space: nowrap;
}
.waitlist-form button:hover:not(:disabled) { opacity: 0.9; }
.waitlist-form button:disabled { opacity: 0.5; cursor: not-allowed; }
.waitlist-msg { margin-top: 8px; font-size: 13px; }
.waitlist-msg.ok  { color: var(--accent); }
.waitlist-msg.err { color: #d67d6f; }
