/* ───────────────────────── FONTS (self-hosted: Switzer, ITF Free Font License; Fragment Mono, SIL OFL) ───────────────────────── */
@font-face { font-family: "Switzer"; src: url("fonts/switzer-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("fonts/switzer-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("fonts/switzer-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("fonts/switzer-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fragment Mono"; src: url("fonts/fragment-mono-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ───────────────────────── 1. TOKENS ─────────────────────────
   Light, airy look modelled on business.welocity.ai: Switzer type, column lines and pastel glows.
   Orange stays the action colour (buttons); headlines use a blue-to-magenta gradient. */
:root {
  color-scheme: light;
  --bg: #fbfaf9;
  --surface: #ffffff;
  --surface-2: #efeee9;
  --ink: #211f1c;
  --ink-2: #57534d;
  --ink-3: #6a6761;
  --accent: #ef852f;        /* fills and marks */
  --accent-text: #6a3fa0;   /* purple that is readable as text (labels, numbers, links) */
  --on-accent: #1f1305;
  --positive: #4f6b57;
  --media: #17191d;         /* behind video and pictures, dark in both themes */
  --grad: linear-gradient(90deg, #233a8c, #6a3fa0 50%, #c33a86 100%);
  --grad-on-dark: linear-gradient(90deg, #8fa6ff, #b48cf0 50%, #f08cc0 100%);
  --cols: color-mix(in srgb, #211f1c 8%, transparent);
  --glow-1: rgba(205, 185, 255, .70);
  --glow-2: rgba(255, 196, 220, .60);
  --glow-3: rgba(196, 236, 222, .40);

  --accent-soft: color-mix(in srgb, var(--accent) 13%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 55%, transparent);
  --positive-soft: color-mix(in srgb, var(--positive) 13%, transparent);
  --line: color-mix(in srgb, var(--ink) 9%, transparent);
  --line-2: color-mix(in srgb, var(--ink) 16%, transparent);
  --glass: color-mix(in srgb, var(--bg) 80%, transparent);

  --sh: 40 30 16;
  --shadow-soft: 0 1px 2px rgb(var(--sh) / .05), 0 10px 24px rgb(var(--sh) / .06);
  --shadow-card: 0 0 0 1px rgb(var(--sh) / .04), 0 2px 4px rgb(var(--sh) / .04), 0 8px 20px rgb(var(--sh) / .07);
  --shadow-deep: 0 0 0 1px rgb(var(--sh) / .04), 0 2px 4px rgb(var(--sh) / .04), 0 8px 16px rgb(var(--sh) / .05),
                 0 24px 48px rgb(var(--sh) / .08), 0 48px 96px rgb(var(--sh) / .09);

  --head: "Switzer", "Segoe UI", system-ui, sans-serif;
  --sans: "Switzer", "Segoe UI", "Nirmala UI", system-ui, sans-serif;
  --mono: "Fragment Mono", Consolas, "Cascadia Mono", ui-monospace, monospace;

  --fs-display: clamp(42px, 7vw, 104px);
  --fs-h2: clamp(32px, 4.6vw, 64px);
  --fs-h3: clamp(18px, 1.5vw, 21px);
  --fs-lede: clamp(18px, 1.6vw, 23px);
  --fs-body: clamp(15px, 1.1vw, 17px);
  --fs-label: 12px;

  --r-card: 18px;
  --r-tile: 14px;
  --r-sm: 10px;
  --pill: 999px;

  --max: 1200px;
  --gutter: clamp(20px, 3.4vw, 40px);
  --section: clamp(88px, 14vh, 168px);
  --header: 60px;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121318;
  --surface: #202329;
  --surface-2: #2a2e35;
  --ink: #f5f3ef;
  --ink-2: #c0c3ca;
  --ink-3: #a4a8b0;
  --accent-text: #c3a6ff;
  --cols: color-mix(in srgb, #f5f3ef 8%, transparent);
  --glow-1: rgba(140, 110, 230, .22);
  --glow-2: rgba(220, 90, 160, .16);
  --glow-3: rgba(90, 200, 170, .10);
  --positive: #91aa95;
  --media: #0f1114;
  --grad: var(--grad-on-dark);
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --positive-soft: color-mix(in srgb, var(--positive) 16%, transparent);
  --line: color-mix(in srgb, var(--ink) 10%, transparent);
  --line-2: color-mix(in srgb, var(--ink) 18%, transparent);
  --sh: 0 0 0;
  --shadow-soft: 0 1px 2px rgb(var(--sh) / .3), 0 10px 24px rgb(var(--sh) / .3);
  --shadow-card: 0 0 0 1px var(--line), 0 8px 20px rgb(var(--sh) / .3);
  --shadow-deep: 0 0 0 1px var(--line), 0 24px 48px rgb(var(--sh) / .35), 0 48px 96px rgb(var(--sh) / .3);
}

/* ───────────────────────── 2. BASE ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 24px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 300 var(--fs-body)/1.55 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
/* Page background: thin vertical column lines plus blurred pastel glows that drift slowly. */
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -2; }
body::before {
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 1px), var(--cols) calc(100% / 12 - 1px) calc(100% / 12));
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.25) 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.25) 100%);
}
body::after {
  background:
    radial-gradient(38vw 30vw at 82% 12%, var(--glow-1), transparent 70%),
    radial-gradient(34vw 28vw at 8% 78%, var(--glow-2), transparent 70%),
    radial-gradient(30vw 26vw at 62% 92%, var(--glow-3), transparent 70%);
  filter: blur(30px) saturate(1.15);
  animation: glow-drift 26s ease-in-out infinite alternate;
}
@keyframes glow-drift { to { transform: translate3d(-3vw, 2vw, 0) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
::selection { background: var(--accent-line); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--pill); }
.skip:focus { top: 12px; }

.display { font: 400 var(--fs-display)/1.0 var(--head); letter-spacing: -0.035em; text-wrap: balance; }
.h2 { font: 400 var(--fs-h2)/1.06 var(--head); letter-spacing: -0.03em; text-wrap: balance; }
h3 { font: 500 var(--fs-h3)/1.25 var(--head); letter-spacing: -0.015em; }
/* One phrase per headline is set in the brand gradient. Colours are dark enough to
   stay readable as large text; the dark theme and the dark demo card use a brighter set. */
.grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 .04em .12em 0; /* room for descenders and the last letter's edge */
}
.lede { font-size: var(--fs-lede); font-weight: 300; line-height: 1.42; color: var(--ink-2); letter-spacing: -0.01em; text-wrap: pretty; max-width: 46ch; }
.label { font: 400 var(--fs-label)/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--pill); background: var(--ink); color: var(--bg);
  font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 17px; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--pill); background: var(--surface-2); color: var(--ink-2); font-size: 13px; line-height: 1.2; }
.pill-live { background: var(--accent-soft); color: var(--accent-text); font-size: 12px; }
.pill-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tag { padding: 3px 9px; border-radius: var(--pill); background: var(--surface-2); color: var(--ink-2); font-size: 12px; white-space: nowrap; }
.tag-pos { background: var(--positive-soft); color: var(--positive); }
.tick { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--positive); color: var(--surface); font-size: 12px; line-height: 1; }

/* ───────────────────────── 3. CHROME ───────────────────────── */
.nav {
  position: fixed; z-index: 50; top: 12px; left: 50%; translate: -50% 0;
  width: min(calc(100% - 24px), calc(var(--max) - 2 * var(--gutter)));
  height: var(--header); padding: 0 10px 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--pill);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: var(--shadow-soft);
}
.nav-logo { display: flex; align-items: center; gap: 10px; font: 500 17px/1 var(--head); letter-spacing: -0.02em; white-space: nowrap; }
.nav-links { display: flex; gap: 4px; font-size: 14px; color: var(--ink-2); }
.nav-links a { padding: 8px 12px; border-radius: var(--pill); white-space: nowrap; transition: background .3s, color .3s; }
@media (max-width: 1000px) { .nav-links { display: none; } } /* room for Sign in, Sign up and Request a demo */
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 6px; }
.theme { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--ink-2); }
.theme:hover { background: var(--surface-2); color: var(--ink); }
.nav-signin { padding: 8px 12px; border-radius: var(--pill); font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; transition: background .3s; }
.nav-signin:hover { background: var(--surface-2); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-line:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }

.rail { position: fixed; z-index: 40; right: 18px; top: 50%; translate: 0 -50%; display: grid; gap: 12px; }
.rail i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: background .3s, transform .3s var(--ease); }
.rail i.on { background: var(--accent); transform: scale(1.5); }

/* ───────────────────────── 4. SCENES ───────────────────────── */
section { position: relative; padding-block: var(--section); }
.stage { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; padding-block: calc(var(--header) + 32px) 32px; }
.statement, .steps, .scenes, .cards { padding-block: 0; }
.cards { overflow-x: clip; }

/* hero */
.hero { min-height: 100svh; display: grid; align-content: center; padding-top: calc(var(--header) + 72px); }
.hero-in-wrap { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 28px; }
.hero-h1 { display: grid; justify-items: center; gap: 28px; font-size: inherit; font-weight: inherit; }
.hero-h1 .display { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.line > span { display: block; }
.prompt {
  width: min(100%, 680px); margin-top: 8px; padding: 8px 8px 8px 20px;
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border-radius: var(--pill); box-shadow: var(--shadow-deep);
  transition: box-shadow .4s var(--ease);
}
.prompt:focus-within { box-shadow: var(--shadow-deep), 0 0 0 2px var(--accent-line); }
.prompt-pen { flex: none; color: var(--accent-text); margin-right: 6px; }
.prompt input[type="text"] { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; outline: 0; font-size: 17px; }
.prompt-icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); cursor: pointer; transition: background .3s, color .3s; }
.prompt-icon:hover, .prompt-icon:focus-within { background: var(--surface-2); color: var(--ink); }
.prompt-go {
  flex: none; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); cursor: pointer;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.prompt-go:hover { transform: translateX(2px); box-shadow: var(--shadow-soft); }
.prompt-go:active { transform: scale(.96); }
.attached { margin-top: -12px; font-size: 14px; color: var(--ink-2); }
.prompt-hint { margin-top: -14px; font-size: 14px; color: var(--ink-3); }
.attached b { font-weight: 500; color: var(--ink); }
.attached button { margin-left: 8px; border: 0; background: none; padding: 0; color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.prompt input::placeholder { color: var(--ink-3); }
/* A brief types itself in the empty box (main.js); the real placeholder stays for no-script and reduced motion. */
.prompt { position: relative; }
.typed { position: absolute; left: 50px; right: 116px; top: 50%; translate: 0 -50%; overflow: hidden; white-space: nowrap; text-align: left; font-size: 17px; color: var(--ink-2); pointer-events: none; display: none; }
.prompt.typing .typed { display: block; }
.prompt.typing input::placeholder { color: transparent; }
.typed::after, .caret::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.16em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 860px; }
.chip { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--pill); background: transparent; color: var(--ink-2); font-size: 14px; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.chip:hover { background: var(--surface); color: var(--ink); border-color: var(--accent-line); }

/* statement */
.fill { font: 400 var(--fs-h2)/1.12 var(--head); letter-spacing: -0.03em; max-width: 1060px; text-wrap: balance; }

/* script (steps + panel) */
.steps-grid, .scenes-grid, .voice-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.steps-copy, .scenes-copy, .voice-copy { display: grid; gap: 20px; }
.step-list { display: grid; gap: 4px; margin-top: 12px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 14px 0 14px 18px; border-left: 2px solid var(--line-2); }
.step { --p: 1; }
.step-n { font: 400 var(--fs-label)/1.9 var(--mono); letter-spacing: .08em; color: color-mix(in srgb, var(--accent-text) calc(var(--p) * 100%), var(--ink-3)); }
.step h3 { color: color-mix(in srgb, var(--ink) calc(var(--p) * 100%), var(--ink-3)); }
.step p { color: color-mix(in srgb, var(--ink-2) calc(var(--p) * 100%), var(--ink-3)); margin-top: 4px; max-width: 38ch; }
.panel { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-deep); padding: clamp(18px, 2vw, 28px); display: grid; gap: 10px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r-sm); background: var(--surface-2); }
.row-t { flex: 1; min-width: 0; }
.num { flex: none; min-width: 26px; font: 400 var(--fs-label)/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.row-brief { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.row-brief .num { min-width: 56px; color: var(--ink-3); }
.row-more { color: var(--ink-3); }
.row-strong { background: var(--positive-soft); font-weight: 500; }

/* scenes (viewer) */
.notes { display: grid; gap: 8px; margin-top: 8px; max-width: 400px; }
.note { display: grid; gap: 6px; padding: 12px 16px; border-radius: var(--r-tile); background: var(--surface); box-shadow: var(--shadow-card); }
.note-reply { background: var(--accent-soft); box-shadow: none; margin-left: 28px; }
.note [data-note-type] { min-height: 1.55em; } /* keeps the bubble's height while its words are typed */
.note-done { display: flex; align-items: center; gap: 9px; }
.note-done .tick { width: 20px; height: 20px; font-size: 11px; }
.viewer { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-deep); padding: clamp(10px, 1.2vw, 16px); display: grid; gap: clamp(10px, 1.2vw, 16px); }
.screen { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: var(--media); }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen img:not(:first-child) { opacity: 0; }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1vw, 12px); }
.thumb { position: relative; display: grid; gap: 8px; }
.thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--media); }
.thumb .ring { position: absolute; left: -3px; right: -3px; top: -3px; aspect-ratio: 16 / 9; height: auto; border-radius: 11px; box-shadow: 0 0 0 2px var(--accent); opacity: 0; pointer-events: none; }
.thumb .ring { width: calc(100% + 6px); }
.thumb-cap { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; color: var(--ink-2); min-height: 22px; }
.thumb-cap .tick { width: 18px; height: 18px; font-size: 10px; }
.viewer-note { text-align: center; padding-bottom: 2px; }

/* voice */
.sound { gap: 18px; }
.wave { display: flex; align-items: center; gap: 3px; height: 84px; }
.wave:empty { display: none; }
.wave i { flex: 1; min-width: 2px; border-radius: 2px; background: var(--accent); height: calc(var(--h) * 1%); transform-origin: center; }
.cap { font: 500 clamp(20px, 2.1vw, 28px)/1.25 var(--head); letter-spacing: -0.025em; }
.sound-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* formats */
.formats-in { display: grid; gap: 20px; justify-items: center; text-align: center; }
.shapes { --base: clamp(170px, 24vw, 320px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: clamp(14px, 2vw, 28px); margin-top: 28px; }
.shape { display: grid; gap: 12px; justify-items: center; }
.frame { height: calc(var(--k) * var(--base)); aspect-ratio: var(--ar); border-radius: var(--r-sm); overflow: hidden; background: var(--media); box-shadow: var(--shadow-deep); }
.frame img { width: 100%; height: 100%; object-fit: cover; } /* each picture already has its frame's shape */
.shapes-note { margin-top: 4px; }
.shape figcaption { font-size: 13px; color: var(--ink-2); }
.shape figcaption b { font: 500 var(--fs-label)/1 var(--mono); letter-spacing: .06em; color: var(--ink); margin-right: 6px; }
.formats-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }

/* samples */
.cards .stage { gap: clamp(28px, 5vh, 56px); }
.cards-head { display: grid; gap: 16px; }
.track {
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  display: flex; gap: 20px; padding: 8px var(--edge) 40px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
@media not ((hover: hover) and (pointer: fine)) { .if-hover { display: none; } }
/* Each sample sits in a .deal: the unit the row scrolls, or the deck deals and fans. */
.deal { flex: none; width: clamp(256px, 30vw, 320px); scroll-snap-align: start; }
.card { height: 100%; display: grid; gap: 6px; align-content: start; padding: 12px 12px 18px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.card-about { padding-inline: 6px; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
/* The last card. Shown plainly it is its back, the invitation; in the deck it starts face up and turns over. */
.flip-front { display: none; }
.flip-back { align-content: center; gap: 12px; padding: 22px; background: var(--ink); color: var(--bg); }
.flip-back .label { padding: 0; color: color-mix(in srgb, var(--bg) 60%, transparent); }
.flip-back h3 { padding: 0; font-size: clamp(22px, 2vw, 27px); line-height: 1.12; }
.flip-back .card-about { padding: 0; margin: 0; color: color-mix(in srgb, var(--bg) 72%, transparent); }
.flip-back .btn { justify-self: start; margin-top: 6px; height: 44px; padding: 0 18px; }
.yours { aspect-ratio: 16 / 9; display: grid; place-items: center; margin-bottom: 10px; border-radius: var(--r-sm); border: 1.5px dashed var(--accent-line); background: var(--accent-soft); color: var(--accent-text); }
.play { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: var(--media); margin-bottom: 10px; cursor: pointer; }
.play img, .play video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play-ic {
  position: absolute; left: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 4px 14px rgb(0 0 0 / .3);
  transition: transform .4s var(--ease), opacity .3s;
}
.play-ic::after { content: ""; position: absolute; left: 17px; top: 13px; border-left: 14px solid var(--on-accent); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.play:hover .play-ic { transform: scale(1.08); }
.play.playing .play-ic { opacity: 0; }

/* uses */
.uses-in { display: grid; gap: 20px; }
.use-list { margin-top: 24px; border-top: 1px solid var(--line-2); }
.use { display: grid; grid-template-columns: 56px minmax(0, 4fr) minmax(0, 6fr); gap: 16px 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line-2); }
.use-n { font: 400 var(--fs-label)/1.9 var(--mono); letter-spacing: .08em; color: var(--accent-text); }
.use h3 { font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -0.03em; }
.use p { color: var(--ink-2); font-size: var(--fs-lede); line-height: 1.4; max-width: 44ch; }
.card h3 { font-size: clamp(19px, 1.7vw, 23px); letter-spacing: -0.025em; padding-inline: 6px; }
.card-sub { font: 400 var(--fs-label)/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding-inline: 6px; }

/* faq */
.faq-wrap { display: grid; gap: 20px; max-width: 860px; }
.faq-list { margin-top: 20px; border-top: 1px solid var(--line-2); }
details { border-bottom: 1px solid var(--line-2); }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; font-weight: 300; line-height: 1; color: var(--ink-3); transition: transform .4s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details > p { padding: 0 0 24px; color: var(--ink-2); max-width: 62ch; }

/* demo */
.cta-card {
  --grad: var(--grad-on-dark);
  --c-ink: #f5f3ef; --c-dim: #c0c3ca; --c-field: #2a2e35; --c-line: #3d424b;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start;
  padding: clamp(28px, 5vw, 72px); border-radius: calc(var(--r-card) + 10px);
  background: #1b1d22; color: var(--c-ink);
}
:root[data-theme="dark"] .cta-card { background: var(--surface); box-shadow: var(--shadow-deep); }
.cta-copy { display: grid; gap: 18px; }
.cta-card .lede { color: var(--c-dim); }
.demo-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--c-dim); }
.field label span { opacity: .7; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--c-line); border-radius: var(--r-sm);
  background: var(--c-field); color: var(--c-ink); outline: 0; resize: vertical;
  transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.field [aria-invalid="true"] { border-color: #f0a59c; box-shadow: 0 0 0 1px #f0a59c; }
.field select { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.err { margin: 0; font-size: 13px; color: #f0a59c; }
.consent { margin: 2px 0 0; font-size: 13px; color: var(--c-dim); }
.consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.demo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.demo-status { font-size: 14px; color: var(--c-dim); }
.demo-status.ok { color: #a9c7ae; }
.demo-status.bad { color: #f0a59c; }

.foot { padding-block: 32px 40px; color: var(--ink-3); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a:hover { color: var(--ink); }
/* "Powered by" and the Knobly Consulting logo. The logo file has a white ground, so in the dark theme it sits on a white chip. */
.foot-brand { display: grid; gap: 10px; }
.powered { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.powered a { text-decoration: none; display: inline-flex; border-radius: 8px; }
.powered a:hover img { opacity: .8; }
.powered img { width: auto; height: 34px; mix-blend-mode: multiply; } /* the white ground disappears into the light page */
:root[data-theme="dark"] .powered img { mix-blend-mode: normal; background: #fff; border-radius: 8px; padding: 3px 6px; box-sizing: content-box; }

/* ───────────────────────── 5. MOTION GATE ─────────────────────────
   Only first-paint items are pre-hidden, and only when motion is allowed. */
.anim .hero .line > span { transform: translateY(110%); }
.anim .hero-in:not(.lede) { opacity: 0; transform: translateY(16px); } /* the intro paints at once: it is the largest text on phones (LCP) */
.anim [data-reveal] { opacity: 0; transform: translateY(24px); }
/* The deck (wide screens, motion allowed): every card lies on the same spot in the middle and main.js
   deals, fans and flips them. A card under the pointer comes to the front; that is CSS on the inner
   card, which the script never moves. */
@media (min-width: 861px) {
  /* Seven cards share the row: each is a seventh of it plus a sliver, so neighbours barely overlap. */
  .anim .deck { --w: clamp(176px, calc((100vw - 2 * var(--gutter)) / 7 + 10px), 252px); --h: 344px; position: relative; display: block; overflow: visible; scroll-snap-type: none; height: calc(var(--h) + 96px); padding: 0; margin-inline: var(--gutter); }
  .anim .deck .deal { position: absolute; left: 50%; top: 50%; width: var(--w); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2); }
  .anim .deck .card { width: 100%; padding: 10px 10px 16px; box-shadow: var(--shadow-deep); transition: transform .45s var(--ease); }
  .anim .deck .card h3 { font-size: 19px; }
  .anim .deck .deal:hover { z-index: 20; }
  .anim .deck .deal:not(.deal-flip):hover .card { transform: translateY(-18px) scale(1.06); }
  .anim .deck .flipper { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
  .anim .deck .flipper .card { position: absolute; inset: 0; display: grid; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
  .anim .deck .flip-back { transform: rotateY(180deg); padding: 20px; }
  .anim .deck .flip-back h3 { font-size: 23px; }
}

/* ───────────────────────── 6. SMALL SCREENS ───────────────────────── */
@media (max-width: 860px) {
  .nav-links, .rail { display: none; }
  .stage { min-height: 0; padding-block: var(--section); }
  .steps-grid, .scenes-grid, .voice-grid, .cta-card { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--header) + 48px); }
  .notes { max-width: none; }
  .use { grid-template-columns: 40px minmax(0, 1fr); padding: 20px 0; }
  .use p { grid-column: 2; }
}
@media (max-width: 560px) {
  .prompt { padding-left: 14px; gap: 2px; }
  .prompt-pen { margin-right: 4px; }
  .prompt input[type="text"], .typed { font-size: 16px; }
  .typed { left: 42px; right: 104px; }
  .nav { padding-left: 12px; }
  .nav-logo { font-size: 15px; gap: 8px; }
  .nav .btn-sm { padding: 0 12px; font-size: 13px; }
  .nav-signin { padding: 8px 6px; font-size: 13px; }
  .nav-demo { display: none; } /* phones: the hero box and the demo section carry this action */
  .theme { width: 32px; }
  .demo-form { grid-template-columns: 1fr; }
  .shapes { --base: 150px; }
}
@media print { .nav, .rail { display: none; } }

/* Scroll-filled sentences: words go from the muted ink to full ink as you scroll.
   Colour, not opacity, so the muted state still meets WCAG AA contrast. --p is tweened by main.js. */
.w { --p: 1; color: color-mix(in srgb, var(--ink) calc(var(--p) * 100%), var(--ink-3)); }

/* Thank-you and privacy pages */
.page-doc { max-width: 760px; margin-inline: auto; padding: calc(var(--header) + 72px) var(--gutter) 96px; }
.page-doc h1 { font: 400 clamp(36px, 5vw, 60px)/1.05 var(--head); letter-spacing: -0.03em; margin-bottom: 18px; }
.page-doc h2 { font: 500 22px/1.3 var(--head); margin: 36px 0 10px; }
.page-doc p, .page-doc li { color: var(--ink-2); margin: 0 0 12px; }
.page-doc ul { list-style: disc; padding-left: 22px; }
.page-doc ol { list-style: decimal; padding-left: 22px; }
.page-doc .lede { margin-bottom: 18px; }
.page-doc a:not(.btn) { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.draft-note { border: 1px dashed var(--line-2); border-radius: var(--r-sm); padding: 12px 16px; font-size: 14px; }
