/* ============================================================
   Presto sales page
   Theme: dark, locked (the product's arcane identity is dark).
   Shape rule: buttons are pills, cards are 18px, small chips 10px.
   Accent: one, soft amethyst. The full amethyst/magenta/teal
   spectrum appears ONLY inside the product recreations (pearls),
   exactly like the app itself.
   ============================================================ */

:root {
  --bg: #0c0b11;
  --bg-raised: #14121b;
  --bg-panel: #171522;
  --text: #efedf6;
  --text-dim: #a49dbb;
  --text-faint: #7e77a2;
  --accent: #b3a5f7;
  --accent-deep: #6f5bd8;
  --line: rgba(190, 175, 255, 0.10);
  --line-strong: rgba(190, 175, 255, 0.18);
  --radius-card: 18px;
  --radius-chip: 10px;
  --font-display: "Bricolage Grotesque", -apple-system, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(179, 165, 247, 0.30); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: #f2effb;
  color: #17141f;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 8px 30px rgba(111, 91, 216, 0.18);
}
.btn-primary:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 10px 36px rgba(111, 91, 216, 0.28);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: transparent;
}
.btn-ghost:hover { border-color: rgba(190, 175, 255, 0.4); background: rgba(190, 175, 255, 0.05); }

.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-wide { width: 100%; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(12, 11, 17, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 68px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}
.brand-mark { height: 22px; width: auto; color: var(--accent); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 148px 28px 96px;
  overflow: hidden;
}
.hero::before {
  /* one deep ambient glow behind the demo, not a mesh-slop background */
  content: "";
  position: absolute;
  top: -220px;
  right: -180px;
  width: 780px;
  height: 780px;
  background: radial-gradient(circle, rgba(111, 91, 216, 0.16) 0%, rgba(111, 91, 216, 0.05) 45%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(40px, 4.6vw, 62px);
  font-weight: 800;
}

.hero-sub {
  margin-top: 22px;
  font-size: 18.5px;
  color: var(--text-dim);
  max-width: 44ch;
}

.hero-ctas {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero demo: faithful recreation of the real dictation flow.
   Top: the text landing at your cursor. Bottom: the pearl HUD. */
.hero-demo {
  position: relative;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(190, 175, 255, 0.045), rgba(190, 175, 255, 0.012) 40%),
    var(--bg-raised);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.demo-doc {
  padding: 32px 36px 8px;
  min-height: 118px;
}
.demo-text {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  max-width: 48ch;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: caret-blink 1.1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.hud { position: relative; height: 208px; }
#pearls { width: 100%; height: 100%; display: block; }
.hud-status {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.66);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  transition: opacity 0.25s;
}

/* ---------- How it works ---------- */

.how { padding: 110px 28px; border-top: 1px solid var(--line); }

.how-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}

.how-step h3 { font-size: 21px; margin-top: 22px; }
.how-step p { margin-top: 8px; color: var(--text-dim); font-size: 15.5px; max-width: 34ch; }

.how-visual {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 8px;
}

kbd {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(180deg, #221f2e, #191624);
  border: 1px solid var(--line-strong);
  border-bottom-width: 3px;
  border-radius: 9px;
  padding: 8px 14px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.4);
}

.how-wave { align-items: center; }
.how-wave span {
  width: 5px;
  border-radius: 3px;
  background: var(--accent);
  animation: wavebar 1.4s ease-in-out infinite;
}
.how-wave span:nth-child(1) { height: 14px; animation-delay: 0s; }
.how-wave span:nth-child(2) { height: 30px; animation-delay: 0.12s; }
.how-wave span:nth-child(3) { height: 44px; animation-delay: 0.24s; }
.how-wave span:nth-child(4) { height: 26px; animation-delay: 0.36s; }
.how-wave span:nth-child(5) { height: 12px; animation-delay: 0.48s; }
@keyframes wavebar {
  0%, 100% { transform: scaleY(0.55); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}

.how-typed {
  font-size: 17px;
  color: var(--text);
  font-weight: 500;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  align-self: center;
  width: fit-content;
}

/* ---------- Section heads ---------- */

.section-head {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 0 28px;
}
.section-head h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 800;
}
.section-sub {
  margin-top: 18px;
  font-size: 17px;
  color: var(--text-dim);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

/* ---------- The Interpreter ---------- */

.interpreter {
  padding: 140px 28px;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.interpreter::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(circle, rgba(111, 91, 216, 0.10) 0%, transparent 65%);
  pointer-events: none;
}

.terp-stage {
  position: relative;
  max-width: 680px;
  margin: 64px auto 0;
}

.terp-panel {
  border-radius: var(--radius-card);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(190, 175, 255, 0.06), rgba(190, 175, 255, 0.015) 35%),
    var(--bg-panel);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 40px 90px rgba(0, 0, 0, 0.55);
  padding: 34px 36px 30px;
}

.terp-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.terp-transcript {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-dim);
  font-style: italic;
}

.terp-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.chip {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: rgba(190, 175, 255, 0.07);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.chip:hover { background: rgba(190, 175, 255, 0.13); transform: translateY(-1px); }
.chip:active { transform: translateY(0) scale(0.97); }
.chip.active {
  background: rgba(179, 165, 247, 0.18);
  border-color: rgba(179, 165, 247, 0.55);
  box-shadow: 0 0 0 3px rgba(179, 165, 247, 0.12);
}

.terp-output {
  margin-top: 22px;
  min-height: 118px;
  border-radius: var(--radius-chip);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  padding: 18px 20px;
}
.terp-hint { color: var(--text-faint); font-size: 14.5px; }
.terp-result { font-size: 16px; line-height: 1.6; color: var(--text); }
.terp-output.thinking .terp-hint { color: var(--accent); }

.terp-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.terp-actions.show { opacity: 1; transform: none; }
.terp-action {
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
}
.terp-action-primary { background: rgba(242, 239, 251, 0.9); color: #17141f; border-color: transparent; }

.terp-note {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- Privacy ---------- */

.privacy {
  padding: 140px 28px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.privacy-inner { max-width: 720px; margin: 0 auto; }
.privacy h2 { font-size: clamp(32px, 3.6vw, 48px); font-weight: 800; }

.airplane { margin-bottom: 30px; }
.airplane-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 18px;
  background: var(--bg-raised);
}
.airplane-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(179, 165, 247, 0.6);
  animation: dot-breathe 2.4s ease-in-out infinite;
}
@keyframes dot-breathe { 50% { opacity: 0.55; } }

.privacy-facts {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  text-align: left;
}
.privacy-facts li {
  border-top: 1px solid var(--line-strong);
  padding-top: 16px;
  font-size: 15px;
  color: var(--text-dim);
}
.privacy-facts strong { display: block; color: var(--text); font-weight: 650; margin-bottom: 4px; }

/* ---------- Features bento ---------- */

.features { padding: 140px 0 120px; border-top: 1px solid var(--line); }

.bento {
  max-width: 1200px;
  margin: 64px auto 0;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.cell {
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--bg-raised);
  padding: 30px 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}
.cell h3 { font-size: 20px; font-weight: 700; }
.cell p { margin-top: 8px; color: var(--text-dim); font-size: 15px; line-height: 1.55; }

.cell-speed {
  grid-column: span 2;
  grid-row: span 2;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(111, 91, 216, 0.22) 0%, transparent 60%),
    var(--bg-raised);
}
.cell p.cell-stat {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(84px, 8vw, 128px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: auto;
}
.stat-unit { font-size: 0.4em; color: var(--accent); font-weight: 700; }

.cell-tail { grid-column: span 4; }
.tail-visual {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 64px;
  margin: auto 0;
}
.tail-bar {
  width: 6px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.9;
}
.tail-bar:nth-child(1) { height: 46%; }
.tail-bar:nth-child(2) { height: 82%; }
.tail-bar:nth-child(3) { height: 60%; }
.tail-bar:nth-child(4) { height: 88%; }
.tail-ghost {
  background: transparent;
  border: 1px dashed rgba(179, 165, 247, 0.5);
  animation: ghost-pulse 2.2s ease-in-out infinite;
}
.tail-ghost:nth-child(5) { height: 52%; animation-delay: 0.2s; }
.tail-ghost:nth-child(6) { height: 30%; animation-delay: 0.45s; }
@keyframes ghost-pulse { 50% { opacity: 0.35; } }

.cell-cleanup { grid-column: span 2; }
.cell p.cleanup-before {
  margin-top: auto;
  font-size: 13.5px;
  color: var(--text-faint);
  text-decoration: line-through;
  text-decoration-color: rgba(179, 165, 247, 0.5);
  margin-top: 0;
}
.cell p.cleanup-after {
  font-size: 15px;
  color: var(--text);
  font-weight: 550;
  margin-top: 6px;
  margin-bottom: auto;
  padding-bottom: 18px;
}

.cell-history { grid-column: span 2; }
.hist-visual {
  margin: auto 0;
  display: flex;
  flex-direction: column;
}
.hist-visual span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  color: var(--text-dim);
  padding: 9px 0;
}
.hist-visual span + span { border-top: 1px solid var(--line); color: var(--text-faint); }
.hist-visual em { font-style: normal; color: var(--text-faint); flex-shrink: 0; }

.cell-sound {
  grid-column: span 6;
  min-height: 0;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 40px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.cell-sound h3 { flex-shrink: 0; }
.cell-sound p { margin-top: 0; max-width: 52ch; }
.sound-visual {
  position: relative;
  height: 56px;
  width: 72px;
  flex-shrink: 0;
}
.sound-visual span {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 26px;
  height: 26px;
  border: 1.5px solid rgba(179, 165, 247, 0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ring 2.8s var(--ease-out) infinite;
  opacity: 0;
}
.sound-visual span:nth-child(2) { animation-delay: 0.5s; }
.sound-visual span:nth-child(3) { animation-delay: 1s; }
@keyframes ring {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 0.9; }
  85% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Requirements + customization ---------- */

.fit { padding: 140px 28px 120px; border-top: 1px solid var(--line); }
.fit-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 20px;
  align-items: start;
}
.fit h2 { font-size: 27px; font-weight: 800; }

.req-card {
  border-radius: var(--radius-card);
  border: 1px solid rgba(179, 165, 247, 0.24);
  background:
    linear-gradient(180deg, rgba(179, 165, 247, 0.06), rgba(179, 165, 247, 0.015) 50%),
    var(--bg-panel);
  padding: 32px 32px 28px;
}
.req-list { list-style: none; margin-top: 20px; }
.req-list li {
  position: relative;
  padding: 10px 0 10px 32px;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 550;
}
.req-list li + li { border-top: 1px solid var(--line); }
.req-list li::before {
  content: "\2713";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
}
.req-note { margin-top: 18px; font-size: 14px; color: var(--text-dim); }

.yours { padding: 32px 8px 0 24px; }
.yours-list { list-style: none; margin-top: 20px; }
.yours-list li { padding: 12px 0; color: var(--text-dim); font-size: 15.5px; }
.yours-list li + li { border-top: 1px solid var(--line); }
.yours-list strong { color: var(--text); font-weight: 650; }

.apps-strip {
  max-width: 1040px;
  margin: 56px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.apps-strip span {
  font-size: 14px;
  font-weight: 550;
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 18px;
}
.apps-strip .apps-more { color: var(--accent); border-color: rgba(179, 165, 247, 0.4); }

/* ---------- Compare ---------- */

.compare { padding: 140px 28px; border-top: 1px solid var(--line); }

.compare-scroll {
  max-width: 980px;
  margin: 56px auto 0;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 15px;
}
.compare-table th, .compare-table td {
  text-align: left;
  padding: 18px 20px;
  vertical-align: top;
}
.compare-table thead th {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
}
.compare-table tbody th {
  font-weight: 550;
  color: var(--text-dim);
  width: 20%;
}
.compare-table tbody td { color: var(--text-dim); width: 26%; }
.compare-table tbody tr + tr th,
.compare-table tbody tr + tr td { border-top: 1px solid var(--line); }

.compare-table .col-us {
  color: var(--text);
  font-weight: 550;
  background: linear-gradient(180deg, rgba(179, 165, 247, 0.09), rgba(179, 165, 247, 0.04));
}
.compare-table thead .col-us {
  color: var(--accent);
  border-radius: var(--radius-chip) var(--radius-chip) 0 0;
}

/* ---------- Quotes ---------- */

.quotes { padding: 130px 28px; border-top: 1px solid var(--line); }

.quotes-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
}

.quote {
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--bg-raised);
  padding: 32px 34px;
}
.quote-tall {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(110% 80% at 0% 100%, rgba(111, 91, 216, 0.14) 0%, transparent 60%),
    var(--bg-raised);
}
.quote blockquote {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.quote-tall blockquote { font-size: 27px; line-height: 1.4; }
.quote figcaption {
  margin-top: 22px;
  font-size: 14px;
  font-weight: 600;
}
.quote figcaption span {
  display: block;
  color: var(--text-faint);
  font-weight: 500;
  margin-top: 2px;
}

/* ---------- Pricing ---------- */

.pricing { padding: 140px 28px; border-top: 1px solid var(--line); }

.price-card {
  max-width: 460px;
  margin: 54px auto 0;
  border-radius: var(--radius-card);
  border: 1px solid rgba(179, 165, 247, 0.28);
  background:
    linear-gradient(180deg, rgba(179, 165, 247, 0.07), rgba(179, 165, 247, 0.015) 45%),
    var(--bg-panel);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), 0 0 60px rgba(111, 91, 216, 0.10);
  padding: 40px 40px 34px;
}

.price-row { display: flex; align-items: baseline; justify-content: space-between; }
.price {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.price-was {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-faint);
  text-decoration: line-through;
  margin-right: 10px;
  letter-spacing: 0;
}
.price-meta { color: var(--text-dim); font-size: 14.5px; }

.price-list {
  list-style: none;
  margin: 28px 0 30px;
}
.price-list li {
  padding: 11px 0;
  font-size: 15px;
  color: var(--text-dim);
}
.price-list li + li { border-top: 1px solid var(--line); }

.price-fine {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- FAQ ---------- */

.faq { padding: 140px 28px; border-top: 1px solid var(--line); }

.faq-list { max-width: 720px; margin: 48px auto 0; }

.faq-list details {
  border-top: 1px solid var(--line);
}
.faq-list details:last-child { border-bottom: 1px solid var(--line); }

.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 4px;
  font-size: 17px;
  font-weight: 600;
  position: relative;
  transition: color 0.2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent); }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  background:
    linear-gradient(var(--text-dim), var(--text-dim)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--text-dim), var(--text-dim)) center / 1.5px 12px no-repeat;
  transition: transform 0.3s var(--ease-out);
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-list details p {
  padding: 0 44px 24px 4px;
  color: var(--text-dim);
  font-size: 15.5px;
  max-width: 62ch;
}

/* ---------- Outro / Footer ---------- */

.outro {
  padding: 150px 28px;
  border-top: 1px solid var(--line);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.outro::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -320px;
  transform: translateX(-50%);
  width: 860px;
  height: 560px;
  background: radial-gradient(circle, rgba(111, 91, 216, 0.16) 0%, transparent 65%);
  pointer-events: none;
}
.outro h2 { font-size: clamp(34px, 4vw, 54px); font-weight: 800; }
.outro .btn { margin-top: 34px; position: relative; }
.outro-req { margin-top: 16px; font-size: 13px; color: var(--text-faint); position: relative; }

.footer { border-top: 1px solid var(--line); padding: 56px 28px 64px; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  margin-right: auto;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
}
.footer-links a:hover { color: var(--text); }
.footer-fine {
  width: 100%;
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 8px;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Legal / document pages ---------- */

.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 140px 28px 110px;
}
.legal h1 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; }
.legal .legal-date { margin-top: 10px; color: var(--text-faint); font-size: 14px; }
.legal h2 { font-size: 20px; font-weight: 700; margin-top: 44px; }
.legal p, .legal li { color: var(--text-dim); font-size: 15.5px; margin-top: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--text); }

/* ---------- Scroll-driven animation (Apple-style, compositor-scrubbed) ----------
   Progressive enhancement: main.js adds .sda to <html> when the browser
   supports animation-timeline (Safari on macOS 26, Chrome). Fallback
   browsers keep the IntersectionObserver .reveal path below. Everything
   here is gated behind prefers-reduced-motion: no-preference. */

@media (prefers-reduced-motion: no-preference) {

  /* Hero intro cascade on load: reading order = animation order. */
  @keyframes intro-rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes intro-panel {
    from { opacity: 0; transform: translateY(22px) scale(0.975); }
    to   { opacity: 1; transform: none; }
  }
  .hero-copy h1   { animation: intro-rise 0.85s var(--ease-out) 0.05s both; }
  .hero-sub       { animation: intro-rise 0.85s var(--ease-out) 0.18s both; }
  .hero-ctas      { animation: intro-rise 0.85s var(--ease-out) 0.30s both; }
  .hero-demo      { animation: intro-panel 1.0s var(--ease-out) 0.22s both; }

  /* Scrubbed keyframes: progress is the scroll position itself, so easing
     comes from the reader's hand. Keyframe curves stay linear on purpose. */
  @keyframes sda-rise {
    from { opacity: 0; transform: translateY(36px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes sda-rise-scale {
    from { opacity: 0; transform: translateY(30px) scale(0.965); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes sda-focus {
    from { opacity: 0; transform: scale(0.94); filter: blur(10px); }
    to   { opacity: 1; transform: none; filter: none; }
  }
  @keyframes sda-hero-exit {
    to { opacity: 0.35; transform: translateY(-24px); }
  }
  @keyframes sda-bloom {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  /* Hero recedes as you leave it. */
  html.sda .hero-inner {
    animation: sda-hero-exit linear both;
    animation-timeline: view();
    animation-range: exit 5% exit 85%;
  }

  /* Section entries. Ranges finish while the element is still low in the
     viewport, so nothing feels laggy or half-loaded on arrival. */
  html.sda .section-head,
  html.sda .how-step,
  html.sda .privacy-inner,
  html.sda .compare-scroll,
  html.sda .faq-list,
  html.sda .outro h2,
  html.sda .outro .btn {
    animation: sda-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 85%;
  }

  html.sda .req-card,
  html.sda .yours,
  html.sda .apps-strip,
  html.sda .terp-stage,
  html.sda .price-card,
  html.sda .cell,
  html.sda .quote {
    animation: sda-rise-scale linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 85%;
  }

  /* Requirements tick in one by one, like a compatibility check passing. */
  html.sda .req-list li {
    animation: sda-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 70%;
  }
  html.sda .req-list li:nth-child(2) { animation-range: entry 10% entry 80%; }
  html.sda .req-list li:nth-child(3) { animation-range: entry 20% entry 90%; }
  html.sda .req-list li:nth-child(4) { animation-range: entry 30% entry 100%; }

  /* Column stagger inside grids: same scroll, offset ranges, left to right. */
  html.sda .cell:nth-child(2),
  html.sda .cell:nth-child(3),
  html.sda .quote:nth-child(2) { animation-range: entry 8% entry 93%; }
  html.sda .cell:nth-child(4),
  html.sda .quote:nth-child(3) { animation-range: entry 16% entry 100%; }

  /* The speed stat resolves into focus: the number arrives fast. */
  html.sda .cell p.cell-stat {
    animation: sda-focus linear both;
    animation-timeline: view();
    animation-range: entry 15% entry 70%;
  }

  /* Final CTA: the glow blooms up under the close. */
  html.sda .outro::before {
    animation: sda-bloom linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 45%;
  }
}

/* ---------- Focus ---------- */

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Mobile ---------- */

@media (max-width: 960px) {
  .hero { padding: 120px 20px 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy h1 { font-size: clamp(34px, 9vw, 46px); }
  .nav-links { display: none; }
  .how-inner { grid-template-columns: 1fr; gap: 44px; }
  .bento { grid-template-columns: 1fr; }
  .cell, .cell-speed, .cell-tail, .cell-cleanup, .cell-history, .cell-sound {
    grid-column: span 1;
    grid-row: span 1;
  }
  .cell-sound { flex-direction: column; align-items: flex-start; }
  .cell p.cell-stat { font-size: 72px; }
  .privacy-facts { grid-template-columns: 1fr; gap: 26px; }
  .fit-inner { grid-template-columns: 1fr; }
  .yours { padding: 8px 4px 0; }
  .quotes-grid { grid-template-columns: 1fr; }
  .quote-tall { grid-row: span 1; }
  .interpreter, .privacy, .features, .compare, .quotes, .pricing, .faq { padding-top: 96px; padding-bottom: 96px; }
  .terp-panel { padding: 26px 22px 24px; }
  .price-card { padding: 32px 26px 28px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .how-wave span, .tail-ghost, .sound-visual span, .airplane-dot, .caret {
    animation: none;
  }
  .sound-visual span { opacity: 0.35; transform: translate(-50%, -50%) scale(1.4); }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .chip { transition: none; }
}
