/* =====================================================================
   LAYUP SITE
   ---------------------------------------------------------------------
   Same visual language as the app: a pane of glass over a quiet
   wallpaper. One accent (cobalt), hairline borders, Instrument Sans for
   UI and Newsreader for the one thing a rep reads mid-call. Tokens are
   copied from layup-mac/src/renderer/src/globals.css.
   ===================================================================== */

:root {
  --c-wall: #eef0f5;
  --c-canvas: rgba(246, 247, 250, 0.58);
  --c-panel: rgba(255, 255, 255, 0.6);
  --c-panel-strong: rgba(255, 255, 255, 0.84);
  --c-well: rgba(255, 255, 255, 0.55);
  --c-ink: #0d1117;
  --c-muted: #4a5261;
  --c-subtle: #636c7c;
  --c-line: rgba(13, 17, 23, 0.09);
  --c-line-strong: rgba(13, 17, 23, 0.16);
  --c-specular: rgba(255, 255, 255, 0.9);
  --c-accent: #2d4fd6;
  --c-accent-ink: #ffffff;
  --c-accent-soft: rgba(45, 79, 214, 0.1);
  --c-positive: #15784b;
  --c-caution: #a35a06;
  --c-critical: #c32b3a;
  --c-practice: #0b7a83;
  --c-positive-soft: rgba(21, 120, 75, 0.1);
  --c-caution-soft: rgba(163, 90, 6, 0.1);
  --c-critical-soft: rgba(195, 43, 58, 0.1);
  --c-practice-soft: rgba(11, 122, 131, 0.1);
  --shadow-color: 18, 24, 38;
  --blob-a: rgba(45, 79, 214, 0.16);
  --blob-b: rgba(11, 122, 131, 0.12);
  --blob-c: rgba(255, 255, 255, 0.9);

  --font-sans: "Instrument Sans", ui-sans-serif, -apple-system, "Helvetica Neue", sans-serif;
  --font-serif: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-sm: 9px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-wall: #0b0d12;
    --c-canvas: rgba(9, 11, 15, 0.42);
    --c-panel: rgba(255, 255, 255, 0.045);
    --c-panel-strong: rgba(255, 255, 255, 0.08);
    --c-well: rgba(0, 0, 0, 0.22);
    --c-ink: #eceff4;
    --c-muted: #a8b0be;
    --c-subtle: #8b94a4;
    --c-line: rgba(255, 255, 255, 0.08);
    --c-line-strong: rgba(255, 255, 255, 0.15);
    --c-specular: rgba(255, 255, 255, 0.09);
    --c-accent: #8aa2ff;
    --c-accent-ink: #0b0f1a;
    --c-accent-soft: rgba(138, 162, 255, 0.14);
    --c-positive: #4fc58d;
    --c-caution: #f0b24d;
    --c-critical: #ff6b6f;
    --c-practice: #43cbd0;
    --c-positive-soft: rgba(79, 197, 141, 0.14);
    --c-caution-soft: rgba(240, 178, 77, 0.14);
    --c-critical-soft: rgba(255, 107, 111, 0.14);
    --c-practice-soft: rgba(67, 203, 208, 0.14);
    --shadow-color: 0, 0, 0;
    --blob-a: rgba(74, 104, 230, 0.22);
    --blob-b: rgba(20, 140, 150, 0.16);
    --blob-c: rgba(255, 255, 255, 0.04);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --c-wall: #0b0d12;
  --c-canvas: rgba(9, 11, 15, 0.42);
  --c-panel: rgba(255, 255, 255, 0.045);
  --c-panel-strong: rgba(255, 255, 255, 0.08);
  --c-well: rgba(0, 0, 0, 0.22);
  --c-ink: #eceff4;
  --c-muted: #a8b0be;
  --c-subtle: #8b94a4;
  --c-line: rgba(255, 255, 255, 0.08);
  --c-line-strong: rgba(255, 255, 255, 0.15);
  --c-specular: rgba(255, 255, 255, 0.09);
  --c-accent: #8aa2ff;
  --c-accent-ink: #0b0f1a;
  --c-accent-soft: rgba(138, 162, 255, 0.14);
  --c-positive: #4fc58d;
  --c-caution: #f0b24d;
  --c-critical: #ff6b6f;
  --c-practice: #43cbd0;
  --c-positive-soft: rgba(79, 197, 141, 0.14);
  --c-caution-soft: rgba(240, 178, 77, 0.14);
  --c-critical-soft: rgba(255, 107, 111, 0.14);
  --c-practice-soft: rgba(67, 203, 208, 0.14);
  --shadow-color: 0, 0, 0;
  --blob-a: rgba(74, 104, 230, 0.22);
  --blob-b: rgba(20, 140, 150, 0.16);
  --blob-c: rgba(255, 255, 255, 0.04);
  color-scheme: dark;
}

/* ------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-ink);
  background-color: var(--c-wall);
  background-image:
    radial-gradient(60% 50% at 8% 0%, var(--blob-a), transparent 70%),
    radial-gradient(45% 40% at 95% 12%, var(--blob-b), transparent 70%),
    radial-gradient(70% 40% at 50% 100%, var(--blob-a), transparent 70%),
    radial-gradient(120% 60% at 50% -20%, var(--blob-c), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (max-width: 720px) { body { background-attachment: scroll; } }

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

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

.skip {
  position: absolute; left: 12px; top: -60px;
  padding: 8px 12px; background: var(--c-accent); color: var(--c-accent-ink);
  border-radius: 8px; z-index: 100; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* --------------------------------------------------------- type scale */
.kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-accent);
}
.kicker.practice { color: var(--c-practice); }
h1, .h1 {
  font-size: clamp(36px, 5.5vw, 64px); line-height: 1.02; letter-spacing: -0.025em;
  font-weight: 600; text-wrap: balance;
}
h2, .h2 {
  font-size: clamp(26px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.02em;
  font-weight: 600; text-wrap: balance;
}
h3, .h3 { font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--c-muted); max-width: 56ch; }
.lead-short { display: none; }
.serif { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.01em; }
.muted { color: var(--c-muted); }
.subtle { color: var(--c-subtle); }
.small { font-size: 13px; }
.prose p + p { margin-top: 1em; }
.prose h2 { margin-top: 2.2em; margin-bottom: 0.5em; font-size: 24px; }
.prose h3 { margin-top: 1.6em; margin-bottom: 0.4em; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-family: var(--font-mono); font-size: 0.92em; background: var(--c-well); padding: 1px 5px; border-radius: 5px; }

/* --------------------------------------------------------- glass bits */
.glass {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 var(--c-specular),
    0 1px 2px rgba(var(--shadow-color), 0.06),
    0 18px 50px -24px rgba(var(--shadow-color), 0.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
}
.glass.strong { background: var(--c-panel-strong); }
.hair { border-top: 1px solid var(--c-line); }

/* ----------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; line-height: 1.2;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--c-accent); color: var(--c-accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost {
  background: var(--c-panel-strong); border-color: var(--c-line-strong); color: var(--c-ink);
}
.btn.ghost:hover { border-color: var(--c-accent); }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-canvas);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--c-line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand svg, .brand img { width: 22px; height: 22px; border-radius: 6px; }
.brand .mark-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .mark-light { display: none; }
  :root:not([data-theme="light"]) .brand .mark-dark { display: inline-block; }
}
:root[data-theme="dark"] .brand .mark-light { display: none; }
:root[data-theme="dark"] .brand .mark-dark { display: inline-block; }
.theme-toggle {
  order: 2; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-left: 8px;
  border-radius: 10px; border: 1px solid var(--c-line); background: transparent; color: var(--c-muted); cursor: pointer;
}
.theme-toggle:hover { color: var(--c-ink); background: var(--c-well); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.nav-links { order: 1; display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--c-muted);
}
.nav-links a:hover { color: var(--c-ink); background: var(--c-well); }
.nav-links a[aria-current="page"] { color: var(--c-ink); }
.nav-links .btn { margin-left: 8px; color: var(--c-accent-ink); }
.nav-links .btn:hover { color: var(--c-accent-ink); background: var(--c-accent); }
.nav-toggle {
  display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--c-line-strong); background: var(--c-panel-strong); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .x { display: none; }
.nav-toggle[aria-expanded="true"] .bars { display: none; }
.nav-toggle[aria-expanded="true"] .x { display: block; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; order: 3; margin-left: 0; }
  .theme-toggle { margin-left: auto; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 60px;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px var(--gutter) 16px;
    background: var(--c-wall); border-bottom: 1px solid var(--c-line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 16px; }
  .nav-links .btn { margin: 8px 0 0; justify-content: center; }
}

/* -------------------------------------------------------------- hero */
.hero { padding: clamp(48px, 9vw, 110px) 0 clamp(32px, 5vw, 64px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 20px; }
.hero-copy h1 { font-size: clamp(36px, 4.4vw, 60px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.cta-note { font-size: 13px; color: var(--c-subtle); flex-basis: 100%; }

/* ------------------------------------------------------- desktop mock
   Fixed proportions: the overlay is a px-sized box (280px, the real one is
   about 320px) so its copy always holds its own lines. The meeting window
   fills the remaining width and stretches to the overlay's height. On
   phones the two stack. */
.desk {
  position: relative; width: 100%;
  border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(70% 60% at 20% 20%, rgba(45, 79, 214, 0.35), transparent 70%),
    radial-gradient(50% 50% at 85% 80%, rgba(11, 122, 131, 0.35), transparent 70%),
    linear-gradient(160deg, #1a1f3a, #0a0c1a);
  border: 1px solid var(--c-line-strong);
  box-shadow: 0 30px 80px -30px rgba(var(--shadow-color), 0.5);
  padding: 44px 16px 16px;
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: stretch;
}
.menubar {
  position: absolute; inset: 0 0 auto 0; height: 28px; display: flex; align-items: center; gap: 18px;
  padding: 0 16px; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.75); font-size: 12px;
}
.menubar b { color: #fff; }
.menubar span:last-child { margin-left: auto; }
.call {
  min-width: 0; min-height: 300px;
  border-radius: 10px; overflow: hidden; background: #15171f; border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid; grid-template-rows: auto 1fr auto;
}
.call-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #1f222c; }
.call-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3e4c; }
.call-bar i:nth-child(1) { background: #ec6a5e; }
.call-bar i:nth-child(2) { background: #f4bf4f; }
.call-bar i:nth-child(3) { background: #61c554; }
.call-bar span { margin-left: auto; color: rgba(255, 255, 255, 0.55); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; min-height: 0; }
.tile {
  border-radius: 8px; position: relative; overflow: hidden; min-height: 120px;
  background: linear-gradient(145deg, #2a2f44, #1b1e2c);
}
.tile.me { background: linear-gradient(145deg, #27393a, #171f26); }
.tile::before {
  content: ""; position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%);
  width: 36%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.14);
}
.tile::after {
  content: ""; position: absolute; left: 50%; top: 100%; transform: translate(-50%, -62%);
  width: 76%; aspect-ratio: 1.4; border-radius: 50% 50% 0 0; background: rgba(255, 255, 255, 0.14);
}
.tile b {
  position: absolute; left: 8px; bottom: 8px; z-index: 1; font-weight: 500;
  font-size: 11px; color: #fff; background: rgba(0, 0, 0, 0.45); padding: 2px 6px; border-radius: 4px;
}
.tile.speaking { outline: 2px solid #4fd8ff; outline-offset: -2px; }
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; background: #1b1e2c; }
.tile:has(img)::before, .tile:has(img)::after, .tile:has(video)::before, .tile:has(video)::after { display: none; }
.call-ctl { display: flex; justify-content: center; gap: 12px; padding: 12px 0 16px; }
.call-ctl i { width: 34px; height: 34px; border-radius: 50%; background: #2a2e3b; }
.call-ctl i:last-child { background: #d9403a; }

@media (max-width: 1100px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: none; }
}
@media (max-width: 640px) {
  /* Phone hero: one short promise, one full-width CTA, then the overlay
     sitting on top of the call like it does on a real screen. */
  .hero { padding-top: 28px; }
  .hero-copy { gap: 14px; }
  .hero-copy h1 { font-size: clamp(34px, 10vw, 42px); line-height: 1.04; letter-spacing: -0.03em; }
  .lead-long { display: none; }
  .lead-short { display: block; font-size: 17px; }
  .cta-row { gap: 8px; margin-top: 4px; }
  .cta-row .btn { flex: 1 1 100%; justify-content: center; padding: 14px 18px; font-size: 16px; }
  .cta-note { text-align: center; font-size: 12px; }
  .desk {
    grid-template-columns: 1fr; justify-items: center; padding: 36px 12px 14px; gap: 0;
    margin-inline: calc(var(--gutter) * -0.5); width: auto; border-radius: 16px;
  }
  .call { width: 100%; min-height: 0; aspect-ratio: 16 / 10; }
  .call-ctl { display: none; }
  .hud { width: min(100%, 320px); margin-top: -34px; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.7); }
}

/* the overlay HUD: px-sized, pinned to light ink like the real one */
.hud {
  width: 280px; align-self: start;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px; color: #0d1117;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 20px 50px -18px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  padding: 12px 12px 14px;
  display: grid; gap: 10px; font-size: 12px; line-height: 1.35;
  --c-accent: #2946c4; --c-accent-ink: #fff;
}
.hud-head { display: flex; align-items: center; gap: 8px; color: #3f4756; }
.hud-head .brand { font-size: 13px; gap: 6px; color: #0d1117; }
.hud-head .brand svg, .hud-head .brand img { width: 16px; height: 16px; border-radius: 4px; }
.hud-head .clock { margin-left: auto; font-variant-numeric: tabular-nums; }
.stages { display: flex; gap: 4px; padding: 2px 0; }
.stages i { flex: 1; height: 4px; border-radius: 2px; background: rgba(13, 17, 23, 0.14); }
.stages i.done { background: #12693f; }
.stages i.now { background: #2946c4; }
.hud-stage { display: flex; gap: 6px; color: #6b7383; font-size: 11px; }
.hud-stage b { color: #0d1117; font-weight: 600; }
.hud-stage .sep { color: #6b7383; }
.cue {
  background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(13, 17, 23, 0.1);
  border-left: 3px solid #2946c4; border-radius: 8px; padding: 12px 12px 12px 14px;
  display: grid; gap: 8px;
}
.cue .type { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: #2946c4; }
.cue .head { font-family: var(--font-serif); font-size: 20px; line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; }
.cue .say { font-family: var(--font-serif); font-style: italic; font-size: 15px; line-height: 1.35; color: #3f4756; }
.cue .say { position: relative; }
.cue .say .sizer { visibility: hidden; }
.cue .say .typed { position: absolute; inset: 0; }
.cue .say > span::before { content: "Say: "; font-style: normal; color: #6b7383; font-size: 0.8em; }
.ledger { display: grid; gap: 0; }
.ledger .lbl { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: #6b7383; padding-bottom: 4px; }
.ledger li { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 6px 0; border-top: 1px solid rgba(13, 17, 23, 0.08); }
.ledger li span:last-child { color: #12693f; font-weight: 500; white-space: nowrap; }
.ledger li.empty span:last-child { color: #8f4f05; }
.talk { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #6b7383; }
.talk .bar { flex: 1; height: 5px; background: rgba(13, 17, 23, 0.12); border-radius: 3px; overflow: hidden; }
.talk .bar i { display: block; height: 100%; width: 41%; background: #12693f; }

/* ---------------------------------------------------------- sections */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section-head { display: grid; gap: 14px; max-width: 64ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .grid-2 { grid-template-columns: 1fr; } }

.card { padding: 24px; display: grid; gap: 10px; align-content: start; }
.card .num { font-family: var(--font-serif); font-size: 34px; line-height: 1; color: var(--c-accent); font-weight: 500; }
.card p { color: var(--c-muted); font-size: 15px; }

/* cue library: real example cues */
.cues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 960px) { .cues { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cues { grid-template-columns: 1fr; } }
.cue-card { padding: 18px 18px 18px 20px; border-left: 3px solid var(--c-accent); display: grid; gap: 10px; }
.cue-card.caution { border-left-color: var(--c-caution); }
.cue-card.positive { border-left-color: var(--c-positive); }
.cue-card.critical { border-left-color: var(--c-critical); }
.cue-card .type { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--c-accent); }
.cue-card.caution .type { color: var(--c-caution); }
.cue-card.positive .type { color: var(--c-positive); }
.cue-card.critical .type { color: var(--c-critical); }
.cue-card .head { font-family: var(--font-serif); font-size: 22px; line-height: 1.15; font-weight: 500; }
.cue-card .say { font-family: var(--font-serif); font-style: italic; color: var(--c-muted); font-size: 16px; }
.cue-card .say::before { content: "Say: "; font-style: normal; color: var(--c-subtle); font-size: 0.85em; }
.cue-card .why { font-size: 13px; color: var(--c-subtle); padding-top: 8px; border-top: 1px solid var(--c-line); }

/* split sections */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.rev > :first-child { order: 2; }
.split .copy { display: grid; gap: 16px; }
.split .copy .h2 { max-width: 16ch; }
.copy > .btn, .section-head > .btn { justify-self: start; }
.checks { display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--c-muted); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--c-accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' stroke='%232d4fd6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' stroke='%238aa2ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}
:root[data-theme="dark"] .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' stroke='%238aa2ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
}

/* ---------------------------------------------------------- report card */
.report { padding: 26px; display: grid; gap: 22px; }
.report-top { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.score { display: grid; justify-items: center; gap: 2px; padding: 10px 16px; border-right: 1px solid var(--c-line); }
.score b { font-family: var(--font-serif); font-size: 64px; line-height: 1; font-weight: 500; letter-spacing: -0.03em; }
.score span { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--c-subtle); }
.report-head { font-family: var(--font-serif); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.25; font-weight: 500; }
.report h4 { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--c-subtle); margin-bottom: 10px; }
.qpf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.qpf li { display: grid; gap: 6px; padding: 12px; border-radius: var(--radius-sm); background: var(--c-well); border: 1px solid var(--c-line); font-size: 14px; }
.qpf .chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.qpf .chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.qpf .pass { color: var(--c-positive); }
.qpf .fail { color: var(--c-critical); }
.qpf q { color: var(--c-muted); font-family: var(--font-serif); font-size: 15px; }
.qpf .q { font-weight: 600; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.two ul { display: grid; gap: 8px; font-size: 14px; color: var(--c-muted); }
.two li { padding-left: 14px; position: relative; }
.two li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--c-positive); }
.two .improve li::before { background: var(--c-caution); }
.email { display: grid; gap: 10px; padding: 16px; border-radius: var(--radius-sm); background: var(--c-well); border: 1px solid var(--c-line); }
.email-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.email pre {
  margin: 0; white-space: pre-wrap; font-family: var(--font-sans); font-size: 14px; line-height: 1.5; color: var(--c-muted);
}
@media (max-width: 600px) {
  .report-top { grid-template-columns: 1fr; }
  .score { border-right: 0; border-bottom: 1px solid var(--c-line); padding: 0 0 12px; }
  .qpf, .two { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------- practice mock */
.phone-mock { padding: 22px; display: grid; gap: 16px; }
.phone-mock .who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 35%, var(--c-practice), transparent 70%), var(--c-practice-soft);
  position: relative;
}
.avatar::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--c-practice); opacity: 0.5;
}
.who b { display: block; }
.who span { font-size: 13px; color: var(--c-subtle); }
.lines { display: grid; gap: 10px; }
.lines li { max-width: 88%; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; background: var(--c-well); border: 1px solid var(--c-line); }
.lines li.them { border-top-left-radius: 4px; }
.lines li.me { margin-left: auto; border-top-right-radius: 4px; background: var(--c-accent-soft); border-color: transparent; }
.lines li small { display: block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-subtle); margin-bottom: 3px; font-weight: 600; }
.diff { display: grid; gap: 8px; }
.diff-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--c-subtle); }
.diff-row b { color: var(--c-ink); font-weight: 600; }
.diff input[type="range"] { width: 100%; accent-color: var(--c-practice); }
.diff p { font-size: 14px; color: var(--c-muted); min-height: 3.6em; }

/* ------------------------------------------------------------ brief mock */
.brief { padding: 20px; display: grid; gap: 12px; }
.brief .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brief .row h4 { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--c-subtle); margin: 0; }
.brief pre {
  margin: 0; white-space: pre-wrap; font-family: var(--font-mono); font-size: 13px; line-height: 1.55;
  padding: 14px; border-radius: var(--radius-sm); background: var(--c-well); border: 1px solid var(--c-line); color: var(--c-muted);
}
.brief .arrow { display: flex; justify-content: center; color: var(--c-subtle); }
.brief .arrow svg { width: 20px; height: 20px; }
.brief .clean { color: var(--c-ink); }
.brief .clean .ph { color: var(--c-caution); }

/* -------------------------------------------------------------- steps */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px; padding: 28px 0;
  border-top: 1px solid var(--c-line);
}
.step:last-child { border-bottom: 1px solid var(--c-line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif); font-size: 40px; line-height: 1; color: var(--c-accent); font-weight: 500;
}
.step div { display: grid; gap: 8px; max-width: 64ch; }
.step p { color: var(--c-muted); }
@media (max-width: 600px) { .step { grid-template-columns: 1fr; gap: 10px; } }

/* --------------------------------------------------------------- form */
.invite { padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 800px) { .invite { grid-template-columns: 1fr; } }
.invite .copy { display: grid; gap: 14px; }
form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--c-ink);
  padding: 10px 12px; border-radius: 9px; border: 1px solid var(--c-line-strong);
  background: var(--c-panel-strong); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--c-accent); outline-offset: 1px; border-color: transparent; }
.field .hint { font-size: 12px; color: var(--c-subtle); }
.form-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 13px; color: var(--c-subtle); }
.thanks { display: none; padding: 20px; border-radius: var(--radius-sm); background: var(--c-positive-soft); border: 1px solid var(--c-line); }
.thanks h3 { color: var(--c-positive); margin-bottom: 6px; }
form.sent { display: none; }
form.sent + .thanks { display: block; }

/* ------------------------------------------------------------ download */
.download { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 22px 24px; }
.download img { width: 64px; height: 64px; border-radius: 15px; }
.download .copy { flex: 1 1 260px; display: grid; gap: 4px; }
.download .copy b { font-size: 17px; }

/* -------------------------------------------------------------- footer */
footer { padding: 40px 0 48px; border-top: 1px solid var(--c-line); font-size: 14px; color: var(--c-subtle); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }
footer .brand { color: var(--c-ink); }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
footer nav a:hover { color: var(--c-ink); }
footer .made { margin-left: auto; }
footer .made a { color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------- utility */
.center { text-align: center; }
.stack { display: grid; gap: 16px; }
.notice {
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px;
  background: var(--c-caution-soft); border: 1px solid var(--c-line); color: var(--c-ink);
}
.page-head { padding: clamp(48px, 8vw, 96px) 0 clamp(24px, 4vw, 48px); display: grid; gap: 16px; max-width: 64ch; }
.article { max-width: 68ch; padding-bottom: clamp(48px, 8vw, 96px); }
.err { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 18px; padding: 48px 0; }
.err .big { font-family: var(--font-serif); font-size: clamp(80px, 18vw, 160px); line-height: 1; color: var(--c-accent); font-weight: 500; letter-spacing: -0.04em; }

/* -------------------------------------------------------------- motion */
html.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity 500ms ease, transform 500ms ease; }
html.js .reveal.in { opacity: 1; transform: none; }
.cue-in { animation: cue-in 260ms ease-out both; }
@keyframes cue-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cue-in { animation: none; }
  .btn { transition: none; }
}

/* ---------------------------------------------------------- proof */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { display: grid; gap: 6px; padding: 20px 22px; border-radius: var(--radius); background: var(--c-well); border: 1px solid var(--c-line); }
.stat b { font-family: var(--font-serif); font-size: 40px; line-height: 1; font-weight: 500; letter-spacing: -0.02em; color: var(--c-accent); }
.stat span { font-size: 14px; color: var(--c-muted); }
.quote { gap: 18px; margin: 0; }
.quote blockquote { margin: 0; font-family: var(--font-serif); font-size: 18px; line-height: 1.45; color: var(--c-ink); }
.quote figcaption { display: grid; gap: 2px; font-size: 14px; }
.quote figcaption b { font-weight: 600; }
.quote figcaption span { color: var(--c-subtle); }
.proof-note { margin-top: 20px; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr; }
}

/* --------------------------------------------------- sticky phone CTA */
.sticky-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--c-canvas); border-top: 1px solid var(--c-line);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  transform: translateY(110%); transition: transform 0.28s ease;
}
.sticky-cta .btn { width: 100%; justify-content: center; padding: 14px; font-size: 16px; }
.sticky-cta.show { transform: none; }
@media (max-width: 640px) { .sticky-cta { display: block; } }

/* ----------------------------------------------------- hero demo loop
   A ten-second loop, pure CSS, every element keyed to the same clock:
   0.8s Mike says the line  ·  2.4s it lands in the ledger  ·  3.6s the cue
   slides in and the say-line types  ·  7.0s it flips to covered and the
   stage advances  ·  9.2s everything fades for the next pass. */
.desk { --loop: 10s; }
.live {
  justify-self: center; margin: 0 10px; max-width: calc(100% - 20px); display: flex; align-items: baseline; gap: 6px;
  padding: 4px 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 11px; white-space: nowrap; overflow: hidden;
  opacity: 0; animation: live-in var(--loop) linear infinite;
}
.call { grid-template-rows: auto 1fr auto auto; }
.call-ctl { padding: 8px 0 12px; }
.call { position: relative; }
.live b { color: #4fd8ff; font-weight: 600; }
.live .txt { display: inline-block; overflow: hidden; clip-path: inset(0 100% 0 0); animation: type-in var(--loop) linear infinite; }
.tile.speaking { animation: speak var(--loop) linear infinite; }
.cue { position: relative; min-height: 118px; }
.cue-idle { position: absolute; inset: 12px 12px auto 14px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6b7383; animation: idle-out var(--loop) linear infinite; }
.cue-idle i { width: 7px; height: 7px; border-radius: 50%; background: #2946c4; animation: pulse 1.6s ease-in-out infinite; }
.cue-body { display: grid; gap: 8px; animation: cue-show var(--loop) linear infinite; }
.cue .typed::after { content: ""; }
.cue .typing::after { content: "|"; font-style: normal; color: #2946c4; animation: pulse 0.8s steps(2) infinite; }
.ledger li.empty { animation: ledger-in var(--loop) linear infinite; }
.st, .cnt, .pct { position: relative; display: inline-grid; }
.st em, .cnt em, .pct em { grid-area: 1 / 1; font-style: normal; white-space: nowrap; }
.st-done { color: #12693f; }
.st-done, .c-done { opacity: 0; animation: flip-in var(--loop) linear infinite; }
.st-open, .c-open { animation: flip-out var(--loop) linear infinite; }
.cnt { justify-items: start; }
.stages i.now { animation: stage-now var(--loop) linear infinite; }
.stages i.next { animation: stage-next var(--loop) linear infinite; }
.talk .bar i { animation: talk var(--loop) linear infinite; }

@keyframes pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes speak { 0%, 6% { outline-color: transparent; } 8%, 22% { outline-color: #4fd8ff; } 26%, 100% { outline-color: transparent; } }
@keyframes live-in { 0%, 6% { opacity: 0; } 8%, 30% { opacity: 1; } 33%, 100% { opacity: 0; } }
@keyframes type-in { 0%, 8% { clip-path: inset(0 100% 0 0); animation-timing-function: steps(34, end); } 20%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes ledger-in { 0%, 22% { opacity: 0; transform: translateY(4px); } 26%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes idle-out { 0%, 33% { opacity: 1; } 36%, 100% { opacity: 0; } }
@keyframes cue-show { 0%, 34% { opacity: 0; transform: translateY(8px); } 38%, 91% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes flip-in { 0%, 70% { opacity: 0; } 73%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes flip-out { 0%, 70% { opacity: 1; } 73%, 94% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes stage-now { 0%, 70% { background: #2946c4; } 73%, 96% { background: #12693f; } 99%, 100% { background: #2946c4; } }
@keyframes stage-next { 0%, 70% { background: rgba(13, 17, 23, 0.14); } 73%, 96% { background: #2946c4; } 99%, 100% { background: rgba(13, 17, 23, 0.14); } }
@keyframes talk { 0%, 68% { width: 41%; } 76%, 96% { width: 36%; } 100% { width: 41%; } }

@media (prefers-reduced-motion: reduce) {
  .live, .live .txt, .tile.speaking, .cue-idle, .cue-idle i, .cue-body, .cue .typed, .ledger li.empty,
  .st-done, .c-done, .st-open, .c-open, .stages i.now, .stages i.next, .talk .bar i { animation: none; }
  .live, .cue-idle, .st-done, .c-done { display: none; }
  .live .txt { clip-path: none; }
}
