/* QuickSpeak landing — tokens carried from extension DESIGN.md */
:root {
  --ink: oklch(0.28 0.015 240);
  --body: oklch(0.4 0.02 240);
  --muted: oklch(0.5 0.02 240);
  --accent: oklch(0.55 0.18 235);
  --accent-deep: oklch(0.48 0.2 235);
  --accent-ink: oklch(0.42 0.1 235);
  --mist: oklch(0.965 0.02 235);
  --surface-muted: oklch(0.97 0.005 240);
  --border: oklch(0.9 0.008 240);
  --radius: 12px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", monospace;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

h1, h2, h3 {
  color: var(--ink);
  text-wrap: balance;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; margin-bottom: clamp(24px, 4vw, 40px); }
h3 { font-size: 1.15rem; font-weight: 650; }

p.lede, .privacy-lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 58ch;
  text-wrap: pretty;
}

/* Nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1080px; margin-inline: auto;
  padding: clamp(16px, 3vw, 24px) clamp(20px, 5vw, 48px);
}
.wordmark {
  font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none;
  letter-spacing: -0.02em;
}
.wordmark span { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block; border-radius: 8px; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; padding: 10px 18px;
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-secondary { background: var(--mist); color: var(--accent-ink); }
.btn-secondary:hover { background: oklch(0.93 0.04 235); }
.btn-ghost { color: var(--accent-ink); padding-inline: 12px; }
.btn-ghost:hover { color: var(--ink); }
.btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}

/* Hero */
.hero { background: linear-gradient(var(--mist), #fff 88%); overflow: clip; }
.hero-inner { padding-block: clamp(48px, 8vw, 96px) 0; text-align: center; }
.hero-inner .lede { margin: 22px auto 30px; }
.platforms {
  font-size: 0.9rem; color: var(--muted); margin: -12px 0 clamp(32px, 5vw, 52px);
  letter-spacing: 0.01em;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }

.hero-shot {
  max-width: 900px; margin-inline: auto;
  border: 1px solid var(--border); border-bottom: none; border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -1px 0 rgba(255,255,255,.6) inset, 0 16px 40px oklch(0.4 0.06 240 / 0.08);
  animation: rise 700ms cubic-bezier(.22,.61,.21,1) both;
}
.hero-shot img { display: block; width: 100%; height: auto; border-radius: inherit; }
@media (prefers-reduced-motion: reduce) {
  .hero-shot { animation: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* How it works */
.how { padding-block: clamp(64px, 10vw, 120px) clamp(56px, 9vw, 104px); }
.steps {
  list-style: none; padding: 0; counter-reset: step;
  display: grid; gap: clamp(24px, 4vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.steps h3 { margin: 12px 0 8px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--mist); color: var(--accent-ink);
  font-weight: 700; font-size: 0.95rem;
}

/* Privacy */
.privacy { background: linear-gradient(#fff, var(--mist) 18%, var(--mist) 82%, #fff); }
.privacy-inner { padding-block: clamp(64px, 10vw, 112px); max-width: 760px; }
.privacy h2 { color: var(--ink); }
.privacy-lede { color: var(--body); margin-bottom: clamp(28px, 5vw, 44px); }
.proof { list-style: none; padding: 0; display: grid; gap: 18px; }
.proof li {
  padding-left: 18px; position: relative;
  text-wrap: pretty;
}
.proof li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.proof strong { color: var(--ink); font-weight: 650; }

/* Exports */
.exports { padding-block: clamp(64px, 10vw, 120px); }
.export-grid {
  display: grid; gap: clamp(16px, 3vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.export-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-muted); padding: 20px 22px;
}
.export-card figcaption {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.export-card pre {
  font-family: var(--mono); font-size: 0.85rem; line-height: 1.65;
  color: var(--accent-ink); white-space: pre-wrap; word-break: break-word;
}
.export-wav pre { color: var(--muted); }

/* Pricing */
.pricing { padding-bottom: clamp(72px, 11vw, 128px); }
.plans {
  display: grid; gap: clamp(16px, 3vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
}
.plan {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
}
.plan-pro { background: var(--mist); border-color: oklch(0.86 0.05 235); }
.price { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 700; color: var(--ink); margin: 10px 0 18px; letter-spacing: -0.02em; }
.price-note { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.tag {
  display: inline-block; vertical-align: middle;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--accent); color: #fff; border-radius: 999px; padding: 3px 10px;
  transform: translateY(-2px);
}
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 10px; }
.plan .btn { width: 100%; text-align: center; }

/* Problem */
.problem { background: var(--surface-muted); }
.problem-inner { padding-block: clamp(56px, 9vw, 104px); max-width: 780px; }
.problem-lede { margin-bottom: clamp(24px, 4vw, 36px); text-wrap: pretty; }
.pains { list-style: none; padding: 0; display: grid; gap: 14px; }
.pains li {
  padding-left: 18px; position: relative; text-wrap: pretty;
}
.pains li::before {
  content: "×"; position: absolute; left: 0; top: 0;
  color: oklch(0.55 0.22 25); font-weight: 700;
}

/* FAQ */
.faq { padding-block: clamp(56px, 9vw, 104px); max-width: 820px; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding-block: 6px;
}
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 12px;
  font-weight: 650; color: var(--ink); font-size: 1.05rem;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--accent); font-weight: 700; font-size: 1.3rem; line-height: 1;
  flex-shrink: 0; transition: transform 200ms ease-out;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 16px; max-width: 62ch; text-wrap: pretty; }

/* Final CTA */
.final-cta { background: linear-gradient(#fff, var(--mist) 30%, var(--mist)); border-top: 1px solid var(--border); }
.final-cta-inner { padding-block: clamp(64px, 10vw, 112px); text-align: center; max-width: 720px; }
.final-cta-inner .lede, .final-cta-inner > p { margin-bottom: 28px; font-size: 1.05rem; }

/* Sticky mobile CTA */
.mobile-cta {
  display: none;
  position: fixed; inset-inline: 0; bottom: 0; z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.mobile-cta .btn { width: 100%; box-shadow: 0 2px 8px oklch(0.5 0.1 235 / 0.25); }
@media (max-width: 767px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 84px; }
}

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--surface-muted); }
.footer-inner {
  padding-block: clamp(32px, 5vw, 48px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
}
.footer p { color: var(--muted); font-size: 0.92rem; margin-right: auto; }
.footer nav { display: flex; gap: 22px; }
.footer a:not(.wordmark) { color: var(--accent-ink); text-decoration: none; font-size: 0.92rem; }
.footer a:not(.wordmark):hover { text-decoration: underline; }
.footer small { flex-basis: 100%; color: var(--muted); }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero-actions .btn-lg { width: 100%; }
}
