/* Rehearse — slate and sage, editorial */

@property --p {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

:root {
  --c-dark: #15181c;
  --c-light: #eaedf1;
  --c-sage: #55605b;
  --c-mist: #bcd1d2;
  --c-stone: #a2a7a7;

  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --gutter: clamp(16px, 3vw, 40px);
  --radius: 4px;
  color-scheme: light;
}

/* Section themes: every section sets its own colours */
.theme-light, body {
  --bg: var(--c-light);
  --fg: var(--c-dark);
  --muted: rgba(21, 24, 28, 0.64);
  --line: rgba(21, 24, 28, 0.14);
  --accent: var(--c-sage);
  --field: #f4f6f8;
  --good: #3f6b52;
  --warn: #7a5a1e;
  --bad: #9b3a32;
}
.theme-dark, .tone-dark {
  --bg: var(--c-dark);
  --fg: var(--c-light);
  --muted: rgba(234, 237, 241, 0.62);
  --line: rgba(234, 237, 241, 0.14);
  --accent: var(--c-mist);
  --field: #1d2126;
  --good: #9fd1b4;
  --warn: #e8c98e;
  --bad: #f0a59c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; }
  /* Marketing pages keep their designed light/dark rhythm; the practice app follows the OS. */
  :root:not([data-theme="light"]) body.practice-page,
  :root:not([data-theme="light"]) body.practice-page .theme-light {
    --bg: #1b1f24;
    --fg: var(--c-light);
    --muted: rgba(234, 237, 241, 0.64);
    --line: rgba(234, 237, 241, 0.13);
    --accent: var(--c-mist);
    --field: #22272d;
    --good: #9fd1b4;
    --warn: #e8c98e;
    --bad: #f0a59c;
  }
}
.tone-sage { --bg: var(--c-sage); --fg: var(--c-light); --muted: rgba(234, 237, 241, 0.76); --line: rgba(234, 237, 241, 0.24); --accent: var(--c-mist); }
.tone-mist { --bg: var(--c-mist); --fg: var(--c-dark); --muted: rgba(21, 24, 28, 0.72); --line: rgba(21, 24, 28, 0.18); --accent: var(--c-sage); }
.tone-stone { --bg: var(--c-stone); --fg: var(--c-dark); --muted: rgba(21, 24, 28, 0.76); --line: rgba(21, 24, 28, 0.2); --accent: var(--c-dark); }
.tone-light { --bg: var(--c-light); --fg: var(--c-dark); --muted: rgba(21, 24, 28, 0.64); --line: rgba(21, 24, 28, 0.14); --accent: var(--c-sage); }
.theme-light, .theme-dark, [class*="tone-"] { background: var(--bg); color: var(--fg); }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.035em; line-height: 1; }
p { margin: 0 0 1em; }
a { color: inherit; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.02em; text-transform: uppercase; }
.label { display: inline-block; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.wrap { width: min(1440px, 100% - var(--gutter) * 2); margin-inline: auto; }
.narrow { width: min(820px, 100% - var(--gutter) * 2); }
.ic { width: 1.1em; height: 1.1em; flex: none; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--c-light); color: var(--c-dark); padding: 8px 12px; }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--c-mist); color: var(--c-dark); }

.h-display { font-size: clamp(3rem, 9vw, 9.5rem); line-height: 0.92; letter-spacing: -0.05em; }
.h-xl { font-size: clamp(2.2rem, 5.2vw, 5rem); line-height: 0.98; letter-spacing: -0.045em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.5; color: var(--muted); max-width: 52ch; }
.note { color: var(--muted); border-left: 1px solid var(--accent); padding-left: 12px; margin-top: 20px; max-width: 70ch; text-transform: none; }

/* Faint column lines, like an architect's grid */
.gridlines { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.gridlines i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); transform-origin: top; }
.gridlines i:nth-child(1) { left: 20%; }
.gridlines i:nth-child(2) { left: 40%; }
.gridlines i:nth-child(3) { left: 60%; }
.gridlines i:nth-child(4) { left: 80%; }
.js .gridlines i { transform: scaleY(0); transition: transform 1.8s var(--ease); }
.ready .gridlines i, .gridlines.in i { transform: scaleY(1); }
.gridlines i:nth-child(2) { transition-delay: 0.1s; }
.gridlines i:nth-child(3) { transition-delay: 0.2s; }
.gridlines i:nth-child(4) { transition-delay: 0.3s; }

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

.btn {
  --b-bg: transparent; --b-fg: var(--fg); --b-hover: var(--fg); --b-hover-fg: var(--bg); --b-border: currentColor;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 0.85em 1.4em; border-radius: 999px; border: 1px solid var(--b-border);
  background: var(--b-bg); color: var(--b-fg);
  font: 500 0.95rem/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.3s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: var(--b-hover); transform: translateY(101%); transition: transform 0.6s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--b-hover-fg); border-color: var(--b-hover); }
.btn:active { transform: scale(0.97); }
.btn .ic { transition: transform 0.5s var(--ease); }
.btn:hover .ic { transform: translateX(4px); }
.btn-light { --b-bg: var(--c-light); --b-fg: var(--c-dark); --b-hover: var(--c-mist); --b-hover-fg: var(--c-dark); --b-border: var(--c-light); }
.btn-dark, .btn-primary { --b-bg: var(--fg); --b-fg: var(--bg); --b-hover: var(--accent); --b-hover-fg: var(--bg); --b-border: var(--fg); }
.btn-line, .btn-ghost { --b-border: var(--line); }
.btn-line:hover, .btn-ghost:hover { border-color: var(--fg); }
.btn-ghost-light { --b-fg: var(--c-light); --b-border: rgba(234, 237, 241, 0.3); --b-hover: var(--c-light); --b-hover-fg: var(--c-dark); }
.btn-sm { padding: 0.6em 1em; font-size: 0.85rem; }
.btn-lg { padding: 1.05em 1.7em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn.loading { pointer-events: none; opacity: 0.8; }
.link { background: none; border: 0; padding: 0; color: inherit; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Navigation and menu ---------- */

.nav { position: fixed; inset: 0 0 auto; z-index: 70; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gutter); color: var(--c-light); mix-blend-mode: difference; pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav { transition: opacity 0.45s var(--ease), transform 0.6s var(--ease); }
.nav.nav-hidden { opacity: 0; transform: translateY(-110%); }
.nav.nav-hidden > * { pointer-events: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.03em; }
.mark { width: 24px; height: 24px; transition: transform 0.8s var(--ease); }
.brand:hover .mark { transform: rotate(180deg); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-cta, .menu-btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(234, 237, 241, 0.45); background: none; text-decoration: none; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: background 0.4s var(--ease), color 0.4s var(--ease); }
.nav-cta:hover, .menu-btn:hover { background: var(--c-light); color: #000; }
.menu-lines { display: grid; gap: 5px; width: 18px; }
.menu-lines i { height: 1.5px; background: currentColor; transition: transform 0.6s var(--ease); }
.menu-open .menu-lines i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-lines i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 65; overflow-y: auto; clip-path: inset(0 0 100% 0); transition: clip-path 0.9s var(--ease-in-out); }
.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu-in { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; padding: 120px 0 48px; min-height: 100%; }
.menu-links { list-style: none; padding: 0; margin: 18px 0 0; }
.menu-links li { overflow: hidden; border-top: 1px solid var(--line); }
.menu-links a { display: flex; align-items: baseline; gap: 18px; padding: 10px 0; text-decoration: none; font-size: clamp(1.6rem, 3.6vw, 3rem); letter-spacing: -0.04em; line-height: 1.05; transform: translateY(105%); transition: transform 0.9s var(--ease), color 0.3s; }
.menu-links a .mono { color: var(--muted); }
.menu-links a:hover { color: var(--accent); }
.menu-links.small a { font-size: clamp(1.2rem, 2vw, 1.6rem); }
.menu-open .menu-links a { transform: none; }
.menu-links li:nth-child(n) a { transition-delay: calc(0.25s + var(--n, 0) * 0.04s); }
.menu-side { display: flex; flex-direction: column; gap: 32px; }
.menu-side .btn { align-self: flex-start; }

/* ---------- Intro loader ---------- */

.loader { display: none; }
.intro .loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--c-dark); color: var(--c-light); transition: transform 1.1s var(--ease-in-out); }
.loader.done { transform: translateY(-100%); }
.loader-word { font-size: clamp(3.5rem, 13vw, 12rem); font-weight: 500; letter-spacing: -0.06em; line-height: 1; }
.loader-word .w { display: inline-block; overflow: hidden; }
.loader-word .w > span { display: inline-block; animation: lineUp 1.1s var(--ease) 0.1s backwards; }
.loader-bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 64px; height: 1px; background: rgba(234, 237, 241, 0.15); }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--c-mist); }
.loader-num { position: absolute; left: var(--gutter); bottom: 28px; font-size: 0.85rem; }
.loader-tag { position: absolute; right: var(--gutter); bottom: 28px; color: rgba(234, 237, 241, 0.6); }

@keyframes lineUp { from { transform: translateY(110%); } }

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

.hero { position: relative; min-height: 100svh; padding: 120px 0 140px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-in { display: grid; gap: 40px; }
.hero-meta { font-size: 0.72rem; line-height: 1.7; color: var(--muted); max-width: 360px; }
.hero-meta p { margin: 0; }
.hero-meta .dash { overflow: hidden; white-space: nowrap; }
.hero-meta dl { display: grid; grid-template-columns: 110px 1fr; margin: 6px 0 0; }
.hero-meta dt::after { content: " :"; }
.hero-meta dd { margin: 0; color: var(--fg); }
.hero-title, .page-title { font-size: clamp(3.2rem, 10.5vw, 11rem); line-height: 0.88; letter-spacing: -0.055em; font-weight: 500; }
.page-title { font-size: clamp(2.8rem, 8.5vw, 8.5rem); margin: 18px 0 28px; }
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: inline-block; }
.hero-title em, .page-title em { color: var(--accent); padding-right: 0.04em; }
.js .line > span { transform: translateY(105%); }
.ready .line > span { transform: none; transition: transform 1.4s var(--ease); }
.ready .line:nth-child(2) > span { transition-delay: 0.1s; }
.ready .line:nth-child(3) > span { transition-delay: 0.2s; }
.js .reveal-hero { opacity: 0; transform: translateY(24px); }
.ready .reveal-hero { opacity: 1; transform: none; transition: opacity 1s var(--ease) var(--d, 0ms), transform 1.2s var(--ease) var(--d, 0ms); }

.hero-bottom { display: grid; grid-template-columns: 1fr minmax(320px, 440px); gap: 48px; align-items: end; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 22px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); font-size: 0.72rem; }
.trust li::before { content: "+ "; color: var(--accent); }

.waveform { position: absolute; left: 0; right: 0; bottom: 70px; width: 100%; height: 80px; z-index: 0; }
.waveform path { fill: none; stroke: var(--accent); stroke-opacity: 0.4; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ready .waveform path { stroke-dashoffset: 0; transition: stroke-dashoffset 3.2s var(--ease-in-out) 0.4s; }
.scroll-cue { position: absolute; left: var(--gutter); bottom: 26px; z-index: 1; color: var(--muted); text-decoration: none; font-size: 0.72rem; padding-bottom: 6px; }
.scroll-cue::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: left; animation: cue 2.4s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 50.01% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

/* Live demo panel */
.demo { border: 1px solid var(--line); background: rgba(234, 237, 241, 0.03); padding: 18px; display: grid; gap: 14px; min-height: 330px; align-content: start; backdrop-filter: blur(6px); }
.demo-head { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 0.68rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.demo-head #demo-who { margin-left: auto; }
.live { color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.demo-wave { height: 26px; display: flex; align-items: center; }
.demo-q { font-size: 1.15rem; line-height: 1.35; letter-spacing: -0.02em; margin: 0; min-height: 3em; }
.demo-a { margin: 0; color: var(--muted); font-size: 0.93rem; border-left: 1px solid var(--accent); padding-left: 12px; min-height: 4.5em; }
.demo-q, .demo-a, .demo-score { opacity: 0; transform: translateY(8px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.demo-q.show, .demo-a.show, .demo-score.show { opacity: 1; transform: none; }
.demo-score { display: flex; align-items: center; gap: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.demo-score > div:last-child { display: grid; gap: 2px; }
.demo-score small { color: var(--muted); }

/* ---------- Voice wave, dots, ring, bars ---------- */

.wave { display: flex; align-items: center; gap: 3px; height: 100%; }
.wave i { width: 2px; height: 20%; background: var(--accent); border-radius: 2px; transition: height 0.4s var(--ease); }
.speaking .wave i { animation: wave 0.9s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: -0.2s; }
.wave i:nth-child(3n) { animation-delay: -0.45s; }
.wave i:nth-child(5n) { animation-delay: -0.65s; }
@keyframes wave { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.dots { display: inline-flex; gap: 5px; align-items: center; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: dot 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

.ring { --p: 0; position: relative; width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0); }
.ring::before { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--ring-bg, var(--bg)); }
.ring.big { width: 132px; height: 132px; }
.ring.big::before { inset: 3px; }
.ring-num { position: relative; font-family: var(--mono); font-size: 1rem; font-variant-numeric: tabular-nums; }
.ring.big .ring-num { font-family: var(--sans); font-size: 2.8rem; letter-spacing: -0.05em; }
.demo .ring { --ring-bg: var(--c-dark); }
.bars { display: grid; gap: 16px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 0.9fr) 2fr 30px; gap: 6px 16px; align-items: center; font-size: 0.93rem; }
.bar-row small { grid-column: 1 / -1; }
.bar-row b { text-align: right; font-weight: 400; }
.bar { height: 2px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1.4s var(--ease) var(--d, 0ms); }
.go .bar i { width: var(--w); }

/* ---------- Generic sections ---------- */

.section { position: relative; padding: clamp(72px, 9vw, 128px) 0; }
.section > .wrap { position: relative; z-index: 1; }
.section.alt { background: color-mix(in srgb, var(--bg) 92%, var(--fg)); }
.sec-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 6vw, 88px); max-width: 1100px; }
.sec-head h2 em { color: var(--accent); }
.sec-head > .muted { max-width: 56ch; }

.js .reveal { opacity: 0; transform: translateY(30px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 1s var(--ease) var(--d, 0ms), transform 1.2s var(--ease) var(--d, 0ms); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.w > span { display: inline-block; }
.js .split-reveal .w > span { transform: translateY(110%); }
.split-reveal.in .w > span { transform: none; transition: transform 1.2s var(--ease) calc(var(--i) * 55ms); }

/* Marquee */
.marquee-sec { padding: 28px 0 56px; overflow: hidden; border-top: 1px solid var(--line); }
.marquee { display: flex; overflow: hidden; }
.marquee-track { display: flex; align-items: center; gap: 0.35em; flex: none; padding-right: 0.35em; font-size: clamp(3rem, 9vw, 8.5rem); letter-spacing: -0.05em; line-height: 1.05; white-space: nowrap; animation: marquee 60s linear infinite; }
.marquee.rev .marquee-track { animation-direction: reverse; color: transparent; -webkit-text-stroke: 1px var(--fg); }
.marquee-track em { color: var(--accent); font-size: 0.5em; -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Statement */
.statement-sec .wrap { display: grid; gap: 40px; }
.statement { font-size: clamp(1.9rem, 4.6vw, 4.6rem); line-height: 1.06; letter-spacing: -0.045em; margin: 0; max-width: 22ch; }
.statement em { color: var(--accent); }
.statement .sw { transition: opacity 0.2s; }

/* Track panels that stack on scroll */
.tracks-head { margin-bottom: clamp(36px, 5vw, 64px); }

/* Track index: pick a track on the left, its colour panel wipes in on the right */
.track-index { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.ti-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.ti-item { position: relative; width: 100%; display: grid; grid-template-columns: 44px 1fr auto 24px; gap: 14px; align-items: center; padding: 15px 0; background: none; border: 0; border-top: 1px solid var(--line); color: var(--muted); text-align: left; cursor: pointer; transition: color 0.4s var(--ease), padding 0.6s var(--ease); }
.ti-name { font-size: clamp(1.25rem, 2.2vw, 1.9rem); letter-spacing: -0.04em; line-height: 1.05; }
.ti-item .ic { width: 20px; height: 20px; opacity: 0; transform: translateX(-8px); transition: opacity 0.4s, transform 0.6s var(--ease); }
.ti-item::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease); }
.ti-item:hover, .ti-item.active { color: var(--fg); }
.ti-item.active { padding-left: 12px; }
.ti-item.active::before { transform: scaleX(1); }
.ti-item.active .ic, .ti-item:hover .ic { opacity: 1; transform: none; }
.ti-stage { display: grid; position: sticky; top: 90px; }
.ti-panel { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 40px); background: var(--bg); color: var(--fg); visibility: hidden; clip-path: inset(100% 0 0 0); transition: clip-path 0.85s var(--ease-in-out), visibility 0s 0.85s; }
.ti-panel.active { visibility: visible; clip-path: inset(0 0 0 0); z-index: 2; transition: clip-path 0.85s var(--ease-in-out), visibility 0s; }
.ti-panel.was { visibility: visible; clip-path: inset(0 0 0 0); z-index: 1; transition: none; }
.ti-panel.tone-light { border: 1px solid var(--line); }
.ti-panel.active > * { animation: bubbleIn 0.8s var(--ease) backwards; }
.ti-panel.active > :nth-child(2) { animation-delay: 0.08s; }
.ti-panel.active > :nth-child(3) { animation-delay: 0.14s; }
.ti-panel.active > :nth-child(4) { animation-delay: 0.2s; }
.ti-panel.active > :nth-child(5) { animation-delay: 0.26s; }
.ti-top { display: flex; justify-content: space-between; color: var(--muted); }
.ti-title { font-size: clamp(2.4rem, 4.6vw, 4.6rem); line-height: 0.92; letter-spacing: -0.055em; }
.ti-title a { text-decoration: none; }
.ti-blurb { color: var(--muted); font-size: 1.08rem; max-width: 40ch; margin: 0; }
.ti-panel .btn { align-self: flex-start; margin-top: 6px; }
.panel-subs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.panel-subs a { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 0.95rem; }
.panel-subs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease); }
.panel-subs a:hover::after { transform: scaleX(1); transform-origin: left; }
.panel-subs .ic { opacity: 0.5; transition: transform 0.5s var(--ease), opacity 0.3s; }
.panel-subs a:hover .ic { transform: rotate(45deg); opacity: 1; }

/* How it works: three steps side by side */
.how-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.how-card { position: relative; display: grid; align-content: start; gap: 18px; padding: clamp(24px, 3vw, 40px); min-height: 280px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 0.5s var(--ease); }
.how-card:hover { background: rgba(234, 237, 241, 0.03); }
.how-n { color: var(--accent); }
.how-card h3 { font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -0.045em; line-height: 1; }
.how-card p { margin: 0; max-width: 34ch; }
.how-line { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) calc(var(--d, 0ms) + 0.3s); }
.how-card.in .how-line { transform: scaleX(1); }

/* Report preview that grows to full width */
.report-sec { padding-bottom: clamp(96px, 13vw, 180px); }
.report-frame { --inset-x: 0%; --inset-y: 0%; --round: 0px; clip-path: inset(var(--inset-y) var(--inset-x) round var(--round)); background: var(--c-dark); color: var(--c-light); }
.report-grid { --bg: var(--c-dark); --fg: var(--c-light); --muted: rgba(234, 237, 241, 0.62); --line: rgba(234, 237, 241, 0.14); --accent: var(--c-mist); display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: clamp(64px, 9vw, 140px) 0; }
.report-points { list-style: none; padding: 0; margin: 0; }
.report-points li { display: flex; gap: 22px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); font-size: clamp(1.2rem, 2vw, 1.7rem); letter-spacing: -0.03em; }
.report-points .mono { color: var(--accent); }
.report-mock { border: 1px solid var(--line); padding: 28px; display: grid; gap: 28px; }
.rm-head { display: flex; gap: 24px; align-items: center; }
.rm-title { font-size: 1.8rem; letter-spacing: -0.04em; margin: 6px 0 4px; }
.rm-answer { border-left: 1px solid var(--accent); padding-left: 16px; }
.rm-answer p { margin: 8px 0 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.35; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.price-cell { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 48px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-cell.featured { --bg: var(--c-dark); --fg: var(--c-light); --muted: rgba(234, 237, 241, 0.62); --line: rgba(234, 237, 241, 0.14); --accent: var(--c-mist); background: var(--bg); color: var(--fg); }
.price-cell.featured .btn-dark { --b-bg: var(--c-light); --b-fg: var(--c-dark); --b-border: var(--c-light); --b-hover: var(--c-mist); --b-hover-fg: var(--c-dark); }
.price-top { display: flex; justify-content: space-between; color: var(--muted); }
.price-big { font-size: clamp(3.4rem, 7vw, 6.5rem); letter-spacing: -0.06em; line-height: 1; margin: 40px 0 32px; }
.price-big small { font-size: 1rem; letter-spacing: 0; color: var(--muted); }
.price-cell .btn { margin-top: auto; align-self: flex-start; }
.ticks { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: center; }
.ticks .ic { color: var(--accent); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.faq-grid .sec-head { position: sticky; top: 110px; }
.acc { display: grid; }
.acc-item { border-top: 1px solid var(--line); }
.acc-item:last-child { border-bottom: 1px solid var(--line); }
.acc-btn { width: 100%; display: flex; align-items: center; gap: 22px; text-align: left; background: none; border: 0; padding: 24px 0; font-size: clamp(1.05rem, 1.6vw, 1.35rem); letter-spacing: -0.02em; cursor: pointer; }
.acc-btn .mono { color: var(--muted); }
.acc-q { flex: 1; }
.acc-ic { width: 22px; height: 22px; transition: transform 0.6s var(--ease); }
.open .acc-ic { transform: rotate(45deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.7s var(--ease); }
.acc-panel > div { overflow: hidden; opacity: 0; transition: opacity 0.5s; }
.open .acc-panel { grid-template-rows: 1fr; }
.open .acc-panel > div { opacity: 1; }
.acc-panel p { color: var(--muted); padding: 0 0 26px 52px; margin: 0; max-width: 64ch; }

/* CTA and footer */
.cta-sec { position: relative; padding: clamp(120px, 16vw, 220px) 0; overflow: hidden; }
.cta-sec .wrap { position: relative; z-index: 1; display: grid; gap: 36px; justify-items: start; }
.cta-sec em { color: var(--accent); }
.foot { padding: 96px 0 28px; border-top: 1px solid var(--line); overflow: hidden; }
.foot-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; }
.foot-lead { font-size: clamp(1.8rem, 3.6vw, 3.2rem); letter-spacing: -0.045em; line-height: 1.02; max-width: 16ch; margin-bottom: 28px; }
.foot-lead em { color: var(--accent); }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.foot-cols > div { display: grid; gap: 8px; align-content: start; }
.foot-cols .label { margin-bottom: 8px; }
.foot-cols a { color: var(--muted); text-decoration: none; transition: color 0.3s; width: fit-content; }
.foot-cols a:hover { color: var(--fg); }
.foot-word { font-size: clamp(5rem, 21.5vw, 22rem); font-weight: 500; letter-spacing: -0.07em; line-height: 0.8; margin: 80px 0 28px; text-align: center; white-space: nowrap; color: var(--fg); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 0.68rem; padding-top: 20px; border-top: 1px solid var(--line); }

/* Track and subcategory pages */
.hero-page { min-height: 86svh; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { text-decoration: none; transition: color 0.3s; }
.crumbs a:hover { color: var(--fg); }
.crumbs i { font-style: normal; opacity: 0.5; }
.index-list, .q-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.index-list li, .q-list li { border-top: 1px solid var(--line); }
.index-list a { position: relative; isolation: isolate; display: grid; grid-template-columns: 70px 1fr 1.2fr 28px; gap: 24px; align-items: center; padding: 26px 0; text-decoration: none; transition: padding 0.6s var(--ease), color 0.4s; }
.index-list.compact a { grid-template-columns: 70px 1fr 28px; padding: 20px 0; }
.index-list a::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--fg); transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease); }
.index-list a:hover { color: var(--bg); padding-left: 18px; padding-right: 18px; }
.index-list a:hover::before { transform: scaleY(1); }
.index-list a:hover .mono, .index-list a:hover .idx-focus { color: inherit; opacity: 0.7; }
.index-list .mono { color: var(--muted); }
.idx-name { font-size: clamp(1.4rem, 2.6vw, 2.3rem); letter-spacing: -0.04em; line-height: 1.05; }
.idx-focus { color: var(--muted); font-size: 0.95rem; }
.index-list .ic { width: 24px; height: 24px; transition: transform 0.6s var(--ease); }
.index-list a:hover .ic { transform: translateX(4px) rotate(-45deg); }
.q-list li { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 30px 0; transition: padding 0.6s var(--ease); }
.q-list li:hover { padding-left: 14px; }
.q-list .mono { color: var(--accent); padding-top: 0.6em; }
.q-list p { margin: 0; font-size: clamp(1.4rem, 2.8vw, 2.4rem); letter-spacing: -0.04em; line-height: 1.1; }
.rubric { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.rubric-cell { min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 0.5s var(--ease); }
.rubric-cell:hover { background: color-mix(in srgb, var(--bg) 90%, var(--fg)); }
.rubric-cell .mono { color: var(--accent); }
.rubric-cell p { margin: 0; font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -0.04em; line-height: 1.05; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 1.6em 0 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); }

/* ---------- Practice app ---------- */

.practice-page main { padding-top: 76px; }
/* Focus mode: during the interview the footer is gone and the page ends with the answer box. */
.in-interview .foot { display: none; }
.in-interview .practice { min-height: 0; padding-bottom: 32px; }
.practice-page .nav { mix-blend-mode: normal; color: var(--fg); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding-block: 14px; }
.practice-page .nav-cta, .practice-page .menu-btn { border-color: var(--line); }
.practice-page .nav-cta:hover, .practice-page .menu-btn:hover { background: var(--fg); color: var(--bg); }
.practice { padding: 48px 0 96px; min-height: 80vh; }
.demo-banner { background: var(--c-mist); color: var(--c-dark); text-align: center; font-size: 0.7rem; padding: 9px 16px; text-transform: none; }
.loading-screen { display: grid; place-items: center; min-height: 40vh; color: var(--accent); }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 24px; transition: color 0.3s, gap 0.5s var(--ease); }
.back:hover { color: var(--fg); gap: 12px; }
.setup h1, .analyzing h1, .report-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.05em; line-height: 0.95; margin-bottom: 18px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.badge .ic { color: var(--accent); }
.badge.ok { border-color: var(--good); color: var(--good); }
.badge.ok .ic { color: inherit; }
.badge.warn { border-color: var(--warn); color: var(--warn); }
.badge .link { font-family: var(--mono); text-transform: uppercase; }
.card { border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); background: var(--bg); }
.form-card { display: grid; gap: 28px; margin-top: 28px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend, .field > span { display: block; padding: 0; margin-bottom: 12px; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.field em { font-family: var(--mono); font-style: normal; opacity: 0.75; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
input:not([type="radio"]):not([type="checkbox"]), select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--fg); background: var(--field); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
textarea { resize: vertical; min-height: 100px; line-height: 1.55; }
input:not([type="radio"]):not([type="checkbox"]):hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--fg) 35%, transparent); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
::placeholder { color: var(--muted); opacity: 0.8; }

.sub-picker, .seg { display: flex; flex-wrap: wrap; gap: 8px; }
.sub-picker input, .seg input, .switch input { position: absolute; opacity: 0; pointer-events: none; }
.sub-picker span, .seg span { position: relative; display: inline-block; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.92rem; cursor: pointer; user-select: none; overflow: hidden; isolation: isolate; transition: color 0.5s var(--ease), border-color 0.4s; }
.sub-picker span::before, .seg span::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg); transform: translateY(101%); transition: transform 0.55s var(--ease); }
.sub-picker span:hover, .seg span:hover { border-color: var(--fg); }
.sub-picker input:checked + span, .seg input:checked + span { color: var(--bg); border-color: var(--fg); }
.sub-picker input:checked + span::before, .seg input:checked + span::before { transform: none; }
.sub-picker input:focus-visible + span, .seg input:focus-visible + span, .switch input:focus-visible + i { outline: 1.5px solid var(--accent); outline-offset: 2px; }

.switch { display: flex; gap: 16px; align-items: center; cursor: pointer; padding: 16px; border: 1px solid var(--line); }
.switch i { flex: none; position: relative; width: 44px; height: 24px; border-radius: 999px; border: 1px solid var(--line); background: var(--field); transition: background 0.4s, border-color 0.4s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform 0.6s var(--ease), background 0.4s; }
.switch input:checked + i { background: var(--fg); border-color: var(--fg); }
.switch input:checked + i::after { transform: translateX(20px); background: var(--bg); }
.switch span { display: grid; gap: 2px; }
.switch small { color: var(--muted); }
.error { color: var(--bad); font-size: 0.9rem; margin: 0; }
.error:empty { display: none; }

.interview { display: flex; flex-direction: column; gap: 22px; }
.iv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.iv-top > div { display: grid; gap: 4px; }
.iv-top b { font-weight: 500; font-size: 1.1rem; letter-spacing: -0.02em; }
.iv-top small { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.progress { height: 1px; background: var(--line); }
.progress i { display: block; height: 100%; width: 0; background: var(--fg); transition: width 1s var(--ease); }
.interviewer { display: flex; align-items: center; gap: 14px; }
.interviewer > div:nth-child(2) { display: grid; }
.interviewer small { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.avatar { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.avatar.lg { width: 56px; height: 56px; }
.avatar .wave { height: 40%; }
.avatar::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--accent); opacity: 0; }
.avatar.speaking::after { animation: halo 1.6s var(--ease) infinite; }
.avatar.thinking { animation: breathe 1.6s ease-in-out infinite; }
@keyframes halo { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.45); } }
@keyframes breathe { 50% { transform: scale(0.9); } }
.icon-btn { margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: none; display: grid; place-items: center; cursor: pointer; transition: background 0.4s, color 0.4s, border-color 0.4s; }
.icon-btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.thread { display: flex; flex-direction: column; gap: 18px; }
.bubble { overflow-wrap: anywhere; }
.bubble.q { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.035em; line-height: 1.15; padding-top: 18px; border-top: 1px solid var(--line); }
.bubble.q:first-child { border-top: 0; padding-top: 0; }
.bubble.a { align-self: flex-end; max-width: 86%; color: var(--muted); border-left: 1px solid var(--accent); padding: 2px 0 2px 16px; font-size: 1rem; }
.bubble.typing { color: var(--muted); font-size: 1rem; }
.bubble.in { animation: bubbleIn 0.8s var(--ease) backwards; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(16px); } }
.word { display: inline-block; animation: wordIn 0.7s var(--ease) calc(var(--w) * 30ms) backwards; }
@keyframes wordIn { from { opacity: 0; transform: translateY(0.4em); filter: blur(6px); } }
.answer { position: sticky; bottom: 14px; display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); background: var(--bg); transition: border-color 0.4s; }
.answer:focus-within { border-color: var(--fg); }
.answer textarea { border: 0; background: transparent; padding: 8px; min-height: 120px; }
.answer textarea:focus { box-shadow: none; }
.answer-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.mic { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: none; display: grid; place-items: center; cursor: pointer; transition: background 0.4s, color 0.4s, border-color 0.4s; }
.mic .ic { width: 20px; height: 20px; }
.mic:hover { border-color: var(--fg); }
.mic.listening { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.mic.listening::before, .mic.listening::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--fg); animation: halo 1.6s var(--ease) infinite; }
.mic.listening::after { animation-delay: 0.8s; }
#mic-status { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; }

.analyzing { text-align: center; padding: 72px 0; display: grid; justify-items: center; gap: 8px; }
.swap { animation: bubbleIn 0.7s var(--ease) backwards; }
.orb { position: relative; width: 140px; height: 140px; margin-bottom: 36px; }
.orb span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--accent); animation: orb 2.6s var(--ease) infinite; }
.orb span:nth-child(2) { animation-delay: 0.85s; }
.orb span:nth-child(3) { animation-delay: 1.7s; }
.orb::after { content: ""; position: absolute; inset: 58px; border-radius: 50%; background: var(--accent); animation: breathe 1.6s ease-in-out infinite; }
@keyframes orb { 0% { transform: scale(0.3); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }

.report { display: grid; gap: 20px; }
.report h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.035em; margin-bottom: 22px; }
.report-hero { display: flex; gap: 36px; align-items: center; }
.report-hero h1 { margin-bottom: 10px; }
.report-hero p { margin: 0; }
.eyebrow { display: inline-block; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 14px; }
.section-title { margin: 28px 0 0; }
.tips { margin: 0; padding: 0; list-style: none; counter-reset: tip; }
.tips li { counter-increment: tip; display: grid; grid-template-columns: 44px 1fr; padding: 14px 0; border-top: 1px solid var(--line); font-size: 1.05rem; }
.tips li::before { content: "0" counter(tip); font-family: var(--mono); font-size: 0.78rem; color: var(--accent); padding-top: 0.25em; }
.qcard .acc-btn { align-items: flex-start; font-size: 1.1rem; }
.qtext { flex: 1; }
.qscore { flex: none; font-family: var(--mono); font-size: 0.75rem; padding: 4px 9px; border: 1px solid currentColor; border-radius: 999px; }
.qscore.high { color: var(--good); }
.qscore.mid { color: var(--warn); }
.qscore.low { color: var(--bad); }
.qcard .acc-panel > div { padding-left: 0; }
.qcard h4 { font-family: var(--mono); font-size: 0.72rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; margin: 4px 0 8px; }
.qcard h4.good { color: var(--good); }
.qcard h4.fix { color: var(--warn); }
.qcard .acc-panel p { padding: 0 0 18px; }
.stronger { border-left: 1px solid var(--accent); padding: 4px 0 4px 18px; margin: 4px 0 24px; }
.stronger h4 { color: var(--accent); }
.stronger p { color: var(--fg) !important; font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; padding-bottom: 0 !important; }
.upsell { display: flex; align-items: center; justify-content: space-between; gap: 20px; --bg: var(--c-dark); --fg: var(--c-light); --muted: rgba(234, 237, 241, 0.62); --accent: var(--c-mist); background: var(--bg); color: var(--fg); border: 0; }
.upsell b { font-weight: 500; font-size: 1.2rem; letter-spacing: -0.02em; }
.upsell p { margin: 4px 0 0; }
.upsell .btn-primary { --b-bg: var(--c-light); --b-fg: var(--c-dark); --b-border: var(--c-light); --b-hover: var(--c-mist); --b-hover-fg: var(--c-dark); }
.report-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* Paywall dialog */
.modal { border: 0; padding: 0; background: transparent; max-width: min(460px, calc(100% - 32px)); width: 100%; color: var(--c-light); }
.modal::backdrop { background: rgba(21, 24, 28, 0.6); backdrop-filter: blur(6px); animation: fadeIn 0.4s ease; }
.modal[open] .modal-in { animation: modalIn 0.8s var(--ease); }
.modal.closing .modal-in { animation: modalOut 0.25s ease-in forwards; }
.modal.closing::backdrop { animation: fadeOut 0.25s ease-in forwards; }
.modal-in { --bg: var(--c-dark); --fg: var(--c-light); --muted: rgba(234, 237, 241, 0.62); --line: rgba(234, 237, 241, 0.14); --accent: var(--c-mist); position: relative; background: var(--bg); color: var(--fg); padding: 36px 32px 30px; display: grid; justify-items: start; gap: 4px; }
.modal-in h2 { font-size: 2rem; letter-spacing: -0.045em; line-height: 1; margin: 10px 0 12px; }
.modal-in .track-ic { color: var(--accent); }
.modal-in .btn-primary { --b-bg: var(--c-light); --b-fg: var(--c-dark); --b-border: var(--c-light); --b-hover: var(--c-mist); --b-hover-fg: var(--c-dark); }
.modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: none; font-size: 1.2rem; cursor: pointer; transition: transform 0.6s var(--ease), background 0.3s; }
.modal-x:hover { transform: rotate(90deg); background: rgba(234, 237, 241, 0.08); }
.pass-box { width: 100%; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; margin: 14px 0 22px; }
.pass-box .price b { font-size: 2.6rem; font-weight: 500; letter-spacing: -0.05em; }
.pass-box .ticks { margin: 14px 0 0; }
.plan-pick { width: 100%; display: grid; gap: 8px; margin: 14px 0 18px; }
.plan-opt { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); cursor: pointer; text-align: left; transition: border-color 0.3s, background 0.3s; }
.plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.plan-opt span { display: grid; gap: 2px; }
.plan-opt b { font-weight: 500; }
.plan-opt small { color: var(--muted); }
.plan-opt em { margin-left: auto; font-family: var(--sans); font-style: normal; font-size: 1.5rem; letter-spacing: -0.04em; }
.plan-opt:hover { border-color: color-mix(in srgb, var(--fg) 40%, transparent); }
.plan-opt:has(input:checked) { border-color: var(--accent); background: rgba(188, 209, 210, 0.08); }
.plan-opt:has(input:focus-visible) { outline: 1.5px solid var(--accent); outline-offset: 2px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px); clip-path: inset(10% 0 0 0); } to { clip-path: inset(0); } }
@keyframes modalOut { to { opacity: 0; transform: translateY(14px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 20px); opacity: 0; background: var(--c-dark); color: var(--c-light); border: 1px solid rgba(234, 237, 241, 0.14); padding: 12px 18px; font-size: 0.92rem; transition: opacity 0.4s var(--ease), transform 0.7s var(--ease); max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: #f0a59c; }
.confetti { position: fixed; top: 55vh; width: 7px; height: 12px; pointer-events: none; z-index: 150; }

/* Practice screen transitions */
.st { animation: bubbleIn 0.9s var(--ease) calc(var(--i, 0) * 70ms) backwards; }
::view-transition-old(root) { animation: vtOut 0.3s ease-in both; }
::view-transition-new(root) { animation: vtIn 0.6s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; } }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero-bottom, .track-index, .report-grid, .faq-grid, .foot-top, .menu-in { grid-template-columns: 1fr; }
  .faq-grid .sec-head { position: static; }
  .index-list a { grid-template-columns: 50px 1fr 28px; }
  .idx-focus { display: none; }
  .ti-stage { position: relative; top: 0; }
  .how-grid { grid-template-columns: 1fr; }
  .how-card { min-height: 0; }
}
@media (max-width: 760px) {
  .nav-cta { display: none; }
  .hero { padding-top: 100px; }
  .hero-meta { display: none; }
  .panel-subs { grid-template-columns: 1fr; }
  .price-grid, .grid2 { grid-template-columns: 1fr; }
  .q-list li { grid-template-columns: 1fr; gap: 8px; }
  .acc-panel p { padding-left: 0; }
  .report-hero { flex-direction: column; align-items: flex-start; }
  .upsell { flex-direction: column; align-items: flex-start; }
  .bar-row { grid-template-columns: 1fr 1.3fr 26px; }
  .bubble.a { max-width: 100%; }
  .answer-bar .btn-primary { flex: 1; }
  .gridlines i:nth-child(odd) { display: none; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}


/* ---------- Accounts: sign-in, account page ---------- */

.nav-link { text-decoration: none; font-size: 0.9rem; font-weight: 500; padding: 0 8px; }
.nav-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.auth { position: relative; min-height: 100svh; padding: 120px 0 80px; display: flex; align-items: center; overflow: hidden; }
.auth-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr minmax(320px, 480px); gap: 64px; align-items: center; }
.auth .page-title { font-size: clamp(2.8rem, 7vw, 7rem); }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); font-size: 0.72rem; }
.auth-points li::before { content: "+ "; color: var(--accent); }
.auth-card { border: 1px solid var(--line); background: rgba(234, 237, 241, 0.03); backdrop-filter: blur(8px); padding: clamp(24px, 3vw, 36px); min-height: 440px; }
.auth-step { display: grid; gap: 18px; }
.auth-step > * { margin: 0; animation: bubbleIn 0.8s var(--ease) calc(var(--i, 0) * 60ms) backwards; }
.auth-step.leaving { opacity: 0; transform: translateY(-12px); transition: opacity 0.25s ease-in, transform 0.25s ease-in; }
.auth-step h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.045em; line-height: 1; }
.auth-step form { display: grid; gap: 18px; }
.auth-step fieldset { display: grid; }
.auth-step .sub-picker span, .auth-step .seg span { font-size: 0.86rem; padding: 7px 12px; }
.auth-step a:not(.btn) { color: inherit; }
.g-btn { min-height: 44px; display: flex; justify-content: center; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.7rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.code-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.code-boxes input:not([type]) { text-align: center; font: 500 1.6rem/1 var(--mono); padding: 16px 0; transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.3s; }
.code-boxes input.filled, .code-boxes input:focus { border-color: var(--accent); }
.code-boxes input:focus { transform: translateY(-3px); }
.code-boxes.shake { animation: shake 0.45s var(--ease-in-out); }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.9rem; color: var(--muted); }
.welcome-check { width: 72px; height: 72px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.welcome-check circle, .welcome-check path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-stroke 0.9s var(--ease) forwards; }
.welcome-check path { animation-delay: 0.45s; }
@keyframes draw-stroke { to { stroke-dashoffset: 0; } }

.price-grid.four { grid-template-columns: repeat(4, 1fr); }
.price-grid.three { grid-template-columns: repeat(3, 1fr); }
.price-grid .price-big { margin: 36px 0 14px; font-size: clamp(3rem, 5vw, 5rem); }
.price-blurb { margin: 0 0 28px; }
.price-note { margin-top: 20px; }

.index-list .idx-row { display: grid; gap: 24px; align-items: center; padding: 22px 0; }
.history a, .history .idx-row { grid-template-columns: 130px 1.3fr 1fr 110px; padding: 22px 0; }
.idx-score { text-align: right; color: var(--fg) !important; }
.history .idx-row { color: var(--muted); }
.settings { border-bottom: 1px solid var(--line); }
.settings-row { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); }
.settings-row p { margin: 0; font-size: 1.15rem; }
.settings-row .btn { justify-self: start; }
.btn.danger { --b-hover: var(--bad); --b-hover-fg: var(--c-light); }
.report-page { padding-top: 48px; }

@media (max-width: 1100px) {
  .price-grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .auth-grid { grid-template-columns: 1fr; gap: 40px; }
  .price-grid.three { grid-template-columns: 1fr; }
  .history a, .history .idx-row { grid-template-columns: 100px 1fr 90px; }
  .history .idx-focus { display: none; }
}
@media (max-width: 760px) {
  .price-grid.four { grid-template-columns: 1fr; }
  .settings-row { grid-template-columns: 1fr; gap: 8px; }
  .auth { padding-top: 96px; }
  .auth-side .page-title { font-size: clamp(2.4rem, 12vw, 4rem); }
  .code-boxes input:not([type]) { font-size: 1.3rem; padding: 12px 0; }
}


/* ---------- Voice: options and hands-free call bar ---------- */

.voice-box { border: 1px solid var(--line); }
.voice-box .switch { border: 0; }
.voice-opts { display: grid; gap: 20px; padding: 4px 16px 18px; border-top: 1px solid var(--line); }
.voice-opts[hidden] { display: none; }
.voice-opts > * { animation: bubbleIn 0.7s var(--ease) calc(var(--i, 0) * 60ms) backwards; }
.voice-opts fieldset { padding-top: 14px; }
.voice-opts .hint { display: block; margin-top: 10px; font-size: 0.85rem; }
.voice-opts .note { margin-top: 14px; }
#test-voice { justify-self: start; }
#test-voice .ic { width: 16px; height: 16px; }

.call { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); overflow: hidden; }
.answer .call { border: 0; border-bottom: 1px solid var(--line); margin: -12px -12px 0; }
.call-text { margin: 0; font-size: 0.98rem; letter-spacing: -0.01em; }
.call-actions { display: flex; gap: 8px; }
.call:not([data-state="sending"]) #call-hold { display: none; }
.call-orb { position: relative; width: 42px; height: 42px; }
.call-orb span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--accent); opacity: 0; }
.call-orb::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--accent); transition: background 0.4s, transform 0.4s var(--ease); }
.call[data-state="listening"] .call-orb span { animation: orb 1.8s var(--ease) infinite; }
.call[data-state="listening"] .call-orb span:nth-child(2) { animation-delay: 0.9s; }
.call[data-state="speaking"] .call-orb::after { animation: breathe 0.9s ease-in-out infinite; }
.call[data-state="thinking"] .call-orb::after { animation: breathe 1.6s ease-in-out infinite; opacity: 0.6; }
.call[data-state="idle"] .call-orb::after { background: var(--muted); transform: scale(0.8); }
.call[data-state="sending"] .call-orb::after { transform: scale(1.25); }
.call-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.call-progress i { display: block; height: 100%; width: 0; background: var(--accent); }
.call[data-state="sending"] .call-progress i { width: 100%; transition: width 2.2s linear; }
@media (max-width: 760px) {
  .call { grid-template-columns: auto 1fr; }
  .call-actions { grid-column: 1 / -1; }
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js .reveal, .js .reveal-hero { opacity: 1; transform: none; }
  .js .line > span, .js .split-reveal .w > span { transform: none; }
  .js .gridlines i { transform: none; }
  .waveform path { stroke-dashoffset: 0; }
  .marquee-track { animation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
