/* Cutscript landing page draft (redo, 2026-10-30). The page is built from the app's own interface: its dark
   theme tokens (src/renderer/src/styles/theme.css), type, tiles, segmented controls, timeline clips and right
   rail. Most demos are a preview next to a properties panel, as in the editor, and they work. */

:root {
  color-scheme: dark;
  --paper: #171e1e;
  --alt: #1b2323;
  --surface: #202929;
  --elev: #263030;
  --muted: #303b3a;
  --hover: #354341;
  --selected: #3d504b;
  --inset: #131a1a;
  --border: #3a4845;
  --border-strong: #576963;
  --divider: #33413d;
  --text: #edf3f1;
  --text-2: #bbc8c4;
  --text-3: #a0b3ac;
  --faint: #85968f;
  --primary: #79cfc0;
  --primary-hover: #94e1d2;
  --primary-soft: #294b43;
  --on-primary: #112923;
  --hl: #ffcf33;
  --hl-soft: #4b4328;
  --hl-ink: #ffdf7a;
  --cut: #e4572e;
  --live: #ff453a;
  --start-from: #6d5dfc;
  --start-to: #8b5cf6;
  --clip-video: #3c5a9f;
  --clip-video-ink: #dce6ff;
  --clip-camera: #215c56;
  --clip-camera-ink: #d2f3ee;
  --clip-audio: #296863;
  --clip-audio-ink: #d2f3ee;
  --clip-music: #554ebc;
  --clip-music-ink: #e6e3ff;
  --clip-sfx: #7a552e;
  --clip-sfx-ink: #fde7cb;
  --clip-image: #3d6a2d;
  --clip-image-ink: #dcf5cf;
  --clip-red: #a33a20;
  --clip-red-ink: #ffe3da;
  --r-sm: 5px;
  --r-md: 7px;
  --r-lg: 10px;
  --r-xl: 16px;
  --head: 58px;
  --spring: cubic-bezier(0.3, 1.5, 0.5, 1);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
  --body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 112px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.6 var(--body); overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--hl); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
.wrap { max-width: 1280px; margin: 0 auto; padding-inline: 24px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--hl); color: #15191a; font-weight: 600; }
.skip:focus { left: 12px; }
.mono { font-family: var(--mono); }
.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
kbd { font: 500 .85em var(--mono); padding: 1px 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 4px; }

/* ── Type ─────────────────────────────────────────────── */
.kicker { font: 500 13px/1.4 var(--mono); letter-spacing: .06em; color: var(--primary); margin-bottom: 18px; }
.mega { font-family: var(--display); font-weight: 760; font-size: clamp(42px, 8.6vw, 122px); line-height: 1.02; letter-spacing: -.022em; font-optical-sizing: none; font-variation-settings: 'wdth' 86, 'opsz' 36; }
.mega > span { display: block; }
.mega s { position: relative; text-decoration: none; color: var(--faint); font-weight: 500; }
.mega s::after { content: ''; position: absolute; left: -4%; right: -4%; top: 56%; height: .07em; background: var(--cut); border-radius: 4px; transform: rotate(-3deg); }
.mega mark { color: #15191a; padding: 0 .1em; background: linear-gradient(transparent 8%, var(--hl) 8%, var(--hl) 94%, transparent 94%); background-repeat: no-repeat; }

/* The headline's own take, once on load: the app's playhead records each line in, then the cut lands on "um" and the
   highlighter runs across "the video". */
.mega > .ln { position: relative; width: fit-content; max-width: 100%; --sweep: .6s; }
.ln.l1 { --d: .12s; }
.ln.l2 { --d: .72s; }
.ln.l3 { --d: 1.54s; }
.ln .ink { display: block; animation: lnrecord var(--sweep) cubic-bezier(.45, 0, .35, 1) var(--d) both; }
.ln::after, .ln::before { content: ''; position: absolute; left: 0; z-index: 1; pointer-events: none; animation: lnsweep var(--sweep) cubic-bezier(.45, 0, .35, 1) var(--d) both; }
.ln::after { top: 0; bottom: 0; width: 3px; margin-left: -1px; background: var(--cut); }
.ln::before { top: -.06em; width: 15px; height: 13px; margin-left: -7px; background: var(--cut); clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); }
@keyframes lnrecord { from { clip-path: inset(-.2em 100% -.2em -.1em); } to { clip-path: inset(-.2em -.3em -.2em -.1em); } }
@keyframes lnsweep { 0% { left: 0; opacity: 0; } 2% { opacity: 1; } 94% { left: 100%; opacity: 1; } 100% { left: 100%; opacity: 0; } }
.ln .ln-dot { position: absolute; left: 100%; top: .3em; width: .2em; height: .2em; margin-left: .2em; border-radius: 50%; background: var(--live); animation: lnpop .3s var(--spring) .72s both, rec 1.1s ease-in-out 1.1s 4; }
@keyframes lnpop { from { transform: scale(0); } }
.ln s { animation: lndim .22s linear 1.38s both; }
.ln s::after { transform-origin: 0 50%; animation: lnstrike .24s var(--ease) 1.36s both; }
@keyframes lndim { from { color: var(--text); } }
@keyframes lnstrike { from { transform: rotate(-3deg) scaleX(0); } to { transform: rotate(-3deg) scaleX(1); } }
.ln mark { animation: lnmark .36s var(--ease) 2.16s both; }
@keyframes lnmark { from { background-size: 0 100%; color: var(--text); } to { background-size: 100% 100%; color: #15191a; } }
.hero-row > div { animation: lnrise .5s var(--ease) .5s both; }
.hero-row > div + div { animation-delay: .7s; }
.hero-stage { animation: lnrise .6s var(--ease) .95s both; }
@keyframes lnrise { from { opacity: 0; transform: translateY(14px); } }
.mega.small { font-size: clamp(38px, 7vw, 96px); margin-bottom: 32px; }
.h2 { font-family: var(--display); font-size: clamp(30px, 4.2vw, 56px); line-height: 1.05; font-weight: 740; letter-spacing: -.02em; font-optical-sizing: none; font-variation-settings: 'wdth' 92, 'opsz' 36; text-wrap: balance; }
.h2.big { font-size: clamp(34px, 5.4vw, 76px); }
.h3 { font-family: var(--display); font-size: clamp(23px, 2.5vw, 32px); line-height: 1.12; font-weight: 700; letter-spacing: -.015em; font-optical-sizing: none; font-variation-settings: 'opsz' 28; text-wrap: balance; }
.h4 { font-family: var(--display); font-size: 20px; line-height: 1.2; font-weight: 680; }
.lede { font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 40em; }
.lede b, .copy-p b, .copy p b { color: var(--text); font-weight: 600; }
.fine { font-size: 14px; line-height: 1.5; color: var(--text-3); }
.copy-p { margin-top: 10px; max-width: 46em; font-size: 16.5px; line-height: 1.55; color: var(--text-2); }

.chip { display: inline-block; vertical-align: .14em; padding: 0 6px; border-radius: 4px; border: 1px solid currentColor; font: 500 11px/1.55 var(--mono); font-style: normal; letter-spacing: 0; white-space: nowrap; color: var(--primary); }
.chip.beta { color: var(--hl-ink); }
.chip.pro { color: var(--hl-ink); }

/* The app's timeline clip kinds */
.k-record { --c: var(--clip-red); --ci: var(--clip-red-ink); }
.k-edit { --c: var(--clip-video); --ci: var(--clip-video-ink); }
.k-ai { --c: var(--clip-music); --ci: var(--clip-music-ink); }
.k-pub { --c: var(--clip-sfx); --ci: var(--clip-sfx-ink); }
.k-yours { --c: var(--clip-camera); --ci: var(--clip-camera-ink); }
.k-local { --c: var(--clip-image); --ci: var(--clip-image-ink); }
.k-price { --c: #4b5a57; --ci: #edf3f1; }

/* ── Buttons, in the app's mint ───────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--r-md); background: none; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: transform .16s var(--spring), background .12s, border-color .12s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn.sm { min-height: 34px; padding: 0 13px; font-size: 14px; }
.btn.lg { min-height: 52px; padding: 0 24px; font-size: 17px; border-radius: var(--r-lg); }
.btn.block { width: 100%; }
.btn.primary { background: var(--primary); color: var(--on-primary); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.ghost { color: var(--text); border-color: var(--border-strong); }
.btn.ghost:hover { background: var(--hover); }
.btn.soft { background: var(--muted); color: var(--text); justify-content: flex-start; }
.btn.soft:hover { background: var(--hover); }
.btn.quiet { color: var(--text-2); justify-content: flex-start; }
.btn.quiet:hover { background: var(--muted); }

/* ── Header and the take ──────────────────────────────── */
.head { position: sticky; top: 0; z-index: 50; background: rgba(23, 30, 30, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--divider); }
.head-row { display: flex; align-items: center; gap: 28px; height: var(--head); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 720; font-size: 20px; color: var(--text); text-decoration: none; }
.nav { display: flex; gap: 20px; margin-left: auto; font-size: 14.5px; font-weight: 500; }
.nav a { color: var(--text-2); text-decoration: none; }
.nav a:hover { color: var(--text); }

.take { position: absolute; top: 100%; left: 0; right: 0; visibility: hidden; max-height: 0; overflow: hidden; opacity: 0; padding: 0 12px; background: var(--inset); transition: max-height .26s var(--ease), opacity .2s, padding .26s var(--ease); }
.scrolled .take { visibility: visible; max-height: 52px; opacity: 1; padding: 0 12px 6px; overflow: visible; border-top: 1px solid var(--divider); }
.take-ruler { height: 12px; background-image: repeating-linear-gradient(90deg, var(--border-strong) 0 1px, transparent 1px 48px), repeating-linear-gradient(90deg, var(--divider) 0 1px, transparent 1px 12px); background-size: 100% 7px, 100% 4px; background-repeat: no-repeat; background-position: 0 100%; }
.take-clips { display: flex; gap: 2px; height: 24px; margin-top: 2px; }
.clip { display: flex; align-items: center; gap: 5px; min-width: 0; flex: 1 1 0; padding: 0 8px; overflow: hidden; border-radius: 6px; background: var(--c); color: var(--ci); font: 600 12px/1 var(--body); text-decoration: none; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: filter .12s; }
.clip span { overflow: hidden; text-overflow: ellipsis; }
.clip .i { font-size: 13px; }
.clip:hover { filter: brightness(1.2); }
.clip.is-now { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.k-record.clip .i { fill: currentColor; }
.playhead { position: absolute; top: 3px; bottom: 5px; left: 0; width: 2px; margin-left: -1px; background: var(--cut); transform: translateX(var(--at, 12px)); pointer-events: none; will-change: transform; }
.playhead::before { content: ''; position: absolute; top: 0; left: -5px; width: 12px; height: 11px; background: var(--cut); clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); }

/* ── Hero ─────────────────────────────────────────────── */
.hero { padding: 52px 0 40px; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; margin: 34px 0 44px; }
.own { margin-top: 14px; font-size: 19px; line-height: 1.5; color: var(--text-2); }
.own b { color: var(--hl-ink); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
#get .fine { margin-top: 12px; }
#get .fine.mono { margin-top: 5px; font-size: 12.5px; }
.win { min-width: 0; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; background: var(--inset); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .75); }
.win > img, .win > video { width: 100%; }

.hero-stage { position: relative; }
.sticker { position: absolute; z-index: 3; padding: 7px 16px 8px; border: 2px solid #fff; border-radius: 12px; background: var(--hl); color: #15191a; font: 700 clamp(15px, 1.9vw, 25px)/1 var(--display); box-shadow: 0 6px 0 rgba(0, 0, 0, .28), 0 14px 26px rgba(0, 0, 0, .35); transform: rotate(var(--rot, -6deg)); transition: transform .2s var(--spring); animation: bob 4.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
.sticker:hover { transform: rotate(0) scale(1.1); animation-play-state: paused; }
.sticker.wide { background: #e6efec; font-family: var(--mono); font-weight: 600; font-size: clamp(12px, 1.4vw, 18px); }
.s1 { left: -14px; top: 10%; --rot: -8deg; }
.s2 { right: -12px; top: -14px; --rot: 8deg; --d: .6s; }
.s3 { right: -18px; top: 42%; --rot: 5deg; --d: 1.1s; }
.s4 { left: -20px; top: 66%; --rot: 6deg; --d: 1.6s; }
.s5 { right: 6%; bottom: -18px; --rot: -5deg; --d: 2.1s; }
@keyframes bob { 50% { translate: 0 -6px; } }
.sticker.snip { animation: snip .42s var(--ease) forwards; pointer-events: none; }
@keyframes snip { to { transform: rotate(24deg) scale(.4); translate: 0 90px; opacity: 0; } }
.sticker-score { margin-top: 28px; text-align: center; font-size: 15px; color: var(--text-3); }
.sticker-score b { color: var(--primary); font-weight: 600; }

/* ── Chapters ─────────────────────────────────────────── */
.chapter { padding: 88px 0; }
.chapter.alt { background: var(--alt); border-block: 1px solid var(--divider); }
.ch-head { max-width: 860px; margin-bottom: 32px; }
.ch-head .h2 { margin-top: 14px; }
.ch-head .lede { margin-top: 14px; }
.ch-head .fine { margin-top: 10px; }
.ch-head.center { margin-inline: auto; text-align: center; }
.chip-step { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 9px; border-radius: 7px; background: var(--c, var(--muted)); color: var(--ci, var(--text)); font-weight: 600; font-size: 14px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.chip-step.k-record .i { fill: currentColor; font-size: 12px; }

.try { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0; padding: 5px 12px 5px 9px; border-radius: 999px; background: var(--primary-soft); color: #c9efe6; font-size: 14px; font-weight: 500; }
.try .i { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translate(2px, 2px); } }

.demo-block { padding-top: 56px; margin-top: 56px; border-top: 1px solid var(--divider); scroll-margin-top: 112px; }
.demo-block:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.demo { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 14px; align-items: start; margin-top: 16px; }

/* The preview, and the app's properties panel */
.stage { position: relative; min-width: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #000; box-shadow: 0 26px 50px -30px rgba(0, 0, 0, .8); }
.stage > img, .stage .cmp > img, .stage .cmp > video { width: 100%; }
.panel { min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.panel-t { font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.group-t { margin: 14px 0 7px; padding-top: 10px; border-top: 1px solid var(--divider); font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.panel-t + .group-t { margin-top: 0; }
.panel-note { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--text-3); }
.panel-note.done { color: var(--primary); font-weight: 500; }
.stack { display: grid; gap: 6px; }
.mini { display: grid; gap: 5px; font-size: 13.5px; line-height: 1.4; color: var(--text-2); }
.mini.spaced { gap: 9px; margin-top: 2px; }
.mini li { position: relative; padding-left: 13px; }
.mini li::before { content: ''; position: absolute; left: 1px; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.mini b { color: var(--text); font-weight: 600; }

/* Tiles, as in the panels */
.tiles { display: grid; gap: 8px; }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { min-width: 0; padding: 0; border: 0; background: none; color: var(--text-3); text-align: center; }
.tile-v { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--elev); overflow: visible; transition: transform .18s var(--spring), box-shadow .12s, border-color .12s; }
.tile-v img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.tile:hover .tile-v { transform: translateY(-2px) scale(1.03); border-color: var(--border-strong); }
.tile:active .tile-v { transform: scale(.96); }
.tile[aria-pressed='true'] .tile-v { box-shadow: 0 0 0 2px var(--primary); }
.tile[aria-pressed='true'] .tile-v::after { content: '\2713'; position: absolute; right: -5px; top: -5px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font: 700 10px/1 var(--body); animation: pop .26s var(--spring); }
@keyframes pop { from { transform: scale(0); } }
.tile-l { display: block; margin-top: 4px; font-size: 11.5px; line-height: 1.25; font-weight: 500; }
.tile[aria-pressed='true'] .tile-l { color: var(--text); font-weight: 600; }
.tile-v.ptr { aspect-ratio: 1; background: #fbfcfc; }
.tile-v.ptr.dk { background: var(--muted); }
.tile-v.ptr img { width: 56%; height: 56%; object-fit: contain; }
.tile-v.shape { aspect-ratio: 16 / 11; background: var(--inset); overflow: hidden; }
.tile-v.shape i { position: absolute; background: var(--primary); }

/* Segmented controls */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-md); background: var(--muted); }
.seg.block { display: flex; width: 100%; }
.seg.block > button { flex: 1 1 0; }
.seg.wrapy { display: flex; flex-wrap: wrap; background: none; padding: 0; gap: 4px; }
.seg.wrapy > button { background: var(--muted); }
.seg > button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; padding: 0 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--text-2); font-size: 13px; font-weight: 500; white-space: nowrap; transition: transform .16s var(--spring), background .12s, color .12s; }
.seg > button:hover { color: var(--text); }
.seg > button:active { transform: scale(.95); }
.seg > button[aria-pressed='true'], .seg > button[aria-selected='true'] { background: var(--primary); color: var(--on-primary); }
.seg.big > button { min-height: 42px; padding: 0 18px; font-size: 15px; }
.seg.big > button > i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, .18); font: 600 12px/1 var(--mono); }
.save { padding: 1px 6px; border-radius: 4px; background: var(--hl); color: #15191a; font: 600 11.5px/1.5 var(--body); }

/* Sliders and switches */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 20px; margin: 0; background: none; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: var(--border-strong); }
.range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--border-strong); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--primary); box-shadow: 0 1px 3px rgba(0, 0, 0, .5); transition: transform .14s var(--spring); }
.range::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--primary); }
.range:hover::-webkit-slider-thumb { transform: scale(1.2); }
.switch { display: flex; align-items: center; gap: 9px; margin-top: 12px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span { position: relative; flex: none; width: 32px; height: 18px; border-radius: 999px; background: var(--border-strong); transition: background .14s; }
.switch span::after { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s var(--spring); }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(14px); }
.switch input:focus-visible + span { outline: 2px solid var(--hl); outline-offset: 2px; }
.field { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--text-2); }
.field select { min-width: 0; height: 30px; padding: 0 8px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--inset); font-size: 13px; }

/* ── Compare ──────────────────────────────────────────── */
.cmp { position: relative; overflow: hidden; --pos: 50%; background: #000; touch-action: pan-y; }
.cmp > img, .cmp > video { width: 100%; }
.cmp-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.cmp-after img, .cmp-after video { width: 100%; height: 100%; object-fit: cover; }
.lab { position: absolute; top: 9px; z-index: 2; padding: 2px 8px; border-radius: 5px; background: rgba(13, 18, 18, .82); color: #fff; font: 500 12px/1.5 var(--mono); pointer-events: none; }
.lab.l { left: 9px; }
.lab.r { right: 9px; }
.cmp-range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 2px; margin-left: -1px; background: var(--hl); pointer-events: none; }
.cmp-knob { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--hl); color: #15191a; font-size: 18px; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); transition: transform .16s var(--spring); }
.cmp:hover .cmp-knob { transform: scale(1.14); }
.cmp-range:focus-visible ~ .cmp-line .cmp-knob { outline: 3px solid #fff; outline-offset: 2px; }
.cmp.hint .cmp-knob { animation: wiggle .9s ease-in-out 2; }
@keyframes wiggle { 25% { transform: translateX(-9px); } 75% { transform: translateX(9px); } }

/* Video controls */
.vidbar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--surface); border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-2); }
.vid-play { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: 15px; transition: transform .16s var(--spring); }
.vid-play:hover { transform: scale(1.1); }
.vid-play .i { fill: currentColor; }

/* Remove background: a still with the five clips stacked on it. The clip on screen has .on. */
.bgy-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.bgy-frame img, .bgy-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bgy-frame video { opacity: 0; pointer-events: none; }
.bgy-frame video.on { opacity: 1; }
.tile[aria-busy='true'] .tile-v img { animation: bgy-wait .8s ease-in-out infinite alternate; }
@keyframes bgy-wait { to { opacity: .45; } }
.bgy-fine { margin-top: 12px; max-width: 74ch; }

/* ── Record ───────────────────────────────────────────── */
/* As wide as lets the stage and the tracks fit on one screen, since the tracks filling up is the point. */
.rec { max-width: min(100%, max(720px, calc((100vh - 350px) * 1.7778))); margin-inline: auto; }
.rec-stage { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #0c1111; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .85); user-select: none; }
.rec-screen { width: 100%; }
.rec-ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.rec.drawing .rec-ink { pointer-events: auto; cursor: crosshair; touch-action: none; }
.rec-sel { position: absolute; z-index: 1; border: 2px solid var(--start-to); border-radius: 4px; box-shadow: 0 0 0 100vmax rgba(8, 12, 12, .45); transition: left .28s var(--ease), top .28s var(--ease), width .28s var(--ease), height .28s var(--ease); pointer-events: none; }
.rec-sel.dashed { border-style: dashed; border-color: #fff; }
.rec-size { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 5px; background: rgba(13, 18, 18, .85); font: 500 12px/1.5 var(--mono); }
.rec.running .rec-sel { border-color: var(--live); box-shadow: 0 0 0 100vmax rgba(8, 12, 12, .12); }
.rec-phone { position: absolute; z-index: 1; left: 50%; top: 4%; height: 76%; width: auto; transform: translateX(-50%); border-radius: 22px; border: 3px solid #0b0f0f; box-shadow: 0 20px 40px rgba(0, 0, 0, .6); }
.rec-plate { position: absolute; z-index: 3; left: 50%; top: 40%; transform: translate(-50%, -50%); padding: 14px 20px; border-radius: 14px; background: rgba(22, 22, 26, .84); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .08); text-align: center; }
.rec-plate p { font-size: 14px; color: #f4f4f6; margin-bottom: 9px; }
.rec-start { min-height: 44px; padding: 0 22px; border: 0; border-radius: 10px; background: linear-gradient(135deg, var(--start-from), var(--start-to)); color: #fff; font-weight: 600; font-size: 16px; box-shadow: 0 8px 22px rgba(109, 93, 252, .45); transition: transform .18s var(--spring); }
.rec-start:hover { transform: scale(1.05); }
.rec-start:active { transform: scale(.96); }
.rec-count { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; font: 800 clamp(70px, 15vw, 190px)/1 var(--display); color: #fff; text-shadow: 0 8px 40px rgba(0, 0, 0, .6); pointer-events: none; }
.rec-count.tick { animation: tick .8s var(--ease); }
@keyframes tick { from { transform: scale(1.4); opacity: 0; } 30% { opacity: 1; } }
.rec-area-chips { position: absolute; z-index: 3; left: 50%; top: 10px; display: flex; gap: 3px; padding: 3px; transform: translateX(-50%); border-radius: 9px; background: rgba(22, 22, 26, .88); }
.rec-area-chips button { min-height: 26px; padding: 0 9px; border: 0; border-radius: 6px; background: none; color: #f4f4f6; font-size: 12.5px; }
.rec-area-chips button[aria-pressed='true'] { background: rgba(255, 255, 255, .16); }
.rec-self { position: absolute; z-index: 3; right: 12px; top: 12px; width: 15%; min-width: 92px; transition: transform .2s var(--spring), opacity .15s; transform-origin: top right; }
.rec-self video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
.rec-self small { display: block; margin-top: 4px; text-align: center; font-size: 10.5px; line-height: 1.2; color: #fff; text-shadow: 0 1px 3px #000; }
.rec-self.off { transform: scale(.4); opacity: 0; pointer-events: none; }
.rec-done { position: absolute; z-index: 5; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 20px; text-align: center; background: rgba(13, 18, 18, .86); backdrop-filter: blur(6px); animation: fadein .2s; }
@keyframes fadein { from { opacity: 0; } }
.rec-done-t { font: 760 clamp(26px, 4vw, 44px)/1.1 var(--display); }
.rec-done p:not(.rec-done-t) { color: var(--text-2); font-size: 15.5px; }
.rec-done .cta { justify-content: center; margin-top: 6px; }
.rec-fx { position: absolute; z-index: 3; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 3px solid var(--hl); border-radius: 50%; pointer-events: none; animation: rip .55s var(--ease) forwards; }
@keyframes rip { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* The recorder bar: the app's own glass */
.recbar { position: absolute; z-index: 6; left: 50%; bottom: 12px; display: flex; max-width: calc(100% - 20px); transform: translateX(-50%); border-radius: 16px; background: rgba(22, 22, 26, .9); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 14px 34px rgba(0, 0, 0, .55); color: #f4f4f6; }
.recbar-setup, .recbar-live { display: flex; align-items: center; gap: 2px; padding: 5px 8px; overflow-x: auto; scrollbar-width: none; }
.rb-modes { display: flex; gap: 2px; }
.rb-mode { display: grid; justify-items: center; gap: 2px; min-width: 56px; padding: 5px 7px; border: 0; border-radius: 9px; background: none; color: rgba(244, 244, 246, .66); font-size: 11.5px; line-height: 1.2; white-space: nowrap; transition: background .1s, transform .16s var(--spring); }
.rb-mode .i { font-size: 18px; }
.rb-mode:hover { background: rgba(255, 255, 255, .08); color: #f4f4f6; }
.rb-mode:active { transform: scale(.94); }
.rb-mode[aria-pressed='true'] { background: rgba(255, 255, 255, .14); color: #f4f4f6; }
.rb-mode.stop { color: #ff8b82; }
.rb-mode.stop .i { fill: currentColor; }
.rb-div { flex: none; width: 1px; height: 26px; margin: 0 5px; background: rgba(255, 255, 255, .12); }
.rb-pick { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 0; border-radius: 9px; background: none; color: #f4f4f6; font-size: 12.5px; white-space: nowrap; transition: background .1s; }
.rb-pick:hover { background: rgba(255, 255, 255, .08); }
.rb-pick .i { font-size: 16px; }
.rb-pick[aria-pressed='false'] { color: rgba(244, 244, 246, .5); }
.rb-two { display: grid; gap: 2px; text-align: left; }
.rb-meter { display: flex; gap: 2px; height: 6px; }
.rb-meter i { width: 3px; height: 100%; border-radius: 1px; background: rgba(255, 255, 255, .22); }
.rb-pick[aria-pressed='true'] .rb-meter i { animation: meter 1.1s ease-in-out infinite; animation-delay: calc(var(--n) * .1s); }
.rb-meter i:nth-child(1) { --n: 0; } .rb-meter i:nth-child(2) { --n: 1; } .rb-meter i:nth-child(3) { --n: 2; } .rb-meter i:nth-child(4) { --n: 3; } .rb-meter i:nth-child(5) { --n: 4; }
@keyframes meter { 40% { background: #5fdc9b; } }
.rb-live { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; font: 500 15px/1 var(--mono); }
.rb-live i { width: 10px; height: 10px; border-radius: 50%; background: var(--live); animation: rec 1.1s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .3; } }

/* The take filling up */
.rec-lanes { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.rl { display: grid; grid-template-columns: 196px minmax(0, 1fr) minmax(0, 300px); gap: 12px; align-items: center; padding: 5px 0; }
.rl + .rl { border-top: 1px solid var(--divider); }
.rl > b { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; }
.rl > b .i { font-size: 15px; color: var(--text-3); }
.rl > em { font-style: normal; font-size: 13px; line-height: 1.35; color: var(--text-3); }
.rl-track { position: relative; display: block; height: 22px; border-radius: 6px; background: var(--inset); overflow: hidden; }
.rl-track > i { display: block; height: 100%; width: var(--grow, 0%); border-radius: 6px; background: var(--fill); transition: width .2s linear; }
.rl-track.k-video { --fill: var(--clip-video); }
.rl-track.k-camera { --fill: var(--clip-camera); }
.rl-track.k-audio { --fill: var(--clip-audio); }
.rl-track.k-sfx { --fill: var(--clip-sfx); }
.rl-track.k-music { --fill: var(--clip-music); }
.rl-track.wave > i { background-color: var(--clip-audio); background-image: repeating-linear-gradient(90deg, rgba(210, 243, 238, .75) 0 2px, transparent 2px 4px, rgba(210, 243, 238, .4) 4px 5px, transparent 5px 9px); background-size: 100% 60%; background-repeat: no-repeat; background-position: 0 50%; }
.rl-track.wave.thin > i { background-size: 100% 26%; }
.rl-dots { position: absolute; inset: 0; pointer-events: none; }
.rl-dots i { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--hl); animation: pop .24s var(--spring); }
.rl.off { opacity: .42; }
.rl.off > em { text-decoration: line-through; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.cards.two { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.card { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); transition: transform .18s var(--spring), border-color .12s; }
.card:hover { transform: translateY(-3px) rotate(-.4deg); border-color: var(--border-strong); }
.card > .i { display: block; margin-bottom: 8px; font-size: 20px; color: var(--primary); }
.card b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.card span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--text-3); }

.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); gap: 44px; align-items: center; margin-top: 80px; }
.split.flip { grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); }
.split.flip .copy { order: 2; }
.copy > p { margin-top: 12px; font-size: 16.5px; line-height: 1.55; color: var(--text-2); }
.copy > .fine { font-size: 14px; color: var(--text-3); }
.pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.pills li { padding: 3px 9px; border-radius: 6px; background: var(--muted); font-size: 13px; transition: transform .16s var(--spring); }
.pills li:hover { transform: translateY(-2px) rotate(-2deg); background: var(--primary-soft); }

/* Specs */
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin-top: 24px; }
.specs.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.specs > div { padding: 10px 0 14px; border-top: 1px solid var(--divider); }
.specs dt { font-weight: 600; font-size: 15px; }
.specs dd { margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--text-3); }
.specs b { color: var(--text-2); font-weight: 600; }

/* ── Edit: the grid and the app's rail ────────────────── */
.edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 20px; align-items: start; }
.edit-main { min-width: 0; }
.rail { position: sticky; top: 104px; max-height: calc(100vh - 116px); overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 1px; padding: 6px 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.rail-g { padding: 7px 0 3px; text-align: center; font: 500 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.rail a { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 8px; color: var(--text-3); font-size: 10.5px; line-height: 1.2; text-align: center; text-decoration: none; transition: background .1s, color .1s, transform .16s var(--spring); }
.rail a .i { font-size: 18px; }
.rail a:hover { background: var(--hover); color: var(--text); transform: scale(1.05); }
.rail a.is-now { background: var(--selected); color: var(--text); box-shadow: inset 2px 0 0 var(--primary); }

/* Script */
.script-demo { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 10px; margin-top: 2px; }
.script-pane { padding: 12px 18px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.pane-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-3); }
.pane-head .mono { color: var(--primary); font-weight: 500; }
.script-who { margin-top: 10px; font-size: 12.5px; font-weight: 500; color: var(--text-3); }
.script-text { margin-top: 3px; font-size: 19px; line-height: 1.75; }
.w { display: inline; padding: 1px 2px; border: 0; border-radius: 4px; background: none; font: inherit; color: var(--text); transition: background .1s, color .12s; }
.w:hover { background: rgba(121, 207, 192, .16); }
.w.filler { box-shadow: inset 0 -2px 0 var(--hl); }
.w.repeat { box-shadow: inset 0 -2px 0 var(--primary); }
.w.gap { display: inline-block; padding: 0 7px; margin: 0 2px; border-radius: 5px; background: #34483f; color: #c2d1ca; font: 500 12.5px/1.5 var(--mono); vertical-align: .1em; }
.w.cut { color: var(--faint); text-decoration: line-through; text-decoration-color: var(--cut); text-decoration-thickness: 2px; box-shadow: none; animation: snipw .26s var(--spring); }
.w.gap.cut { opacity: .45; }
@keyframes snipw { 40% { transform: scale(.9); background: var(--cut); color: #fff; } }
.script-tl { grid-column: 1 / -1; display: flex; gap: 1px; height: 36px; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--inset); overflow: hidden; }
.script-tl i { flex: 0 0 auto; height: 100%; border-radius: 3px; background: var(--clip-video); transition: width .24s var(--ease), margin .24s; }
.script-tl i.f { background: var(--hl); }
.script-tl i.g { background: #34483f; }
.script-tl i.cut { width: 0 !important; margin-left: -1px; }

/* Zoom, cursor, camera demos */
.zoomy { cursor: zoom-in; }
.zoomy-in { transform-origin: var(--ox, 50%) var(--oy, 50%); transition: transform .5s var(--z-ease, cubic-bezier(.4, 0, .2, 1)), transform-origin .5s var(--z-ease, cubic-bezier(.4, 0, .2, 1)); }
.zoomy-in img { width: 100%; pointer-events: none; }
.zoomy-ring { position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 3px solid var(--hl); border-radius: 50%; opacity: 0; pointer-events: none; }
.zoomy-ring.go { animation: rip .6s var(--ease); }
.cursory { cursor: none; touch-action: pan-y; }
.cursory > img:first-child { width: 100%; pointer-events: none; }
.cursory-p { position: absolute; left: 0; top: 0; z-index: 4; width: var(--ps, 48px); height: var(--ps, 48px); pointer-events: none; will-change: transform; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); transition: width .16s var(--spring), height .16s var(--spring); }
.cursory-p.native { display: none; }
.cursory.native { cursor: auto; }
.fx { position: absolute; z-index: 3; pointer-events: none; }
.fx.ripple { width: 54px; height: 54px; margin: -27px 0 0 -27px; border: 4px solid var(--primary); border-radius: 50%; animation: rip .6s var(--ease) forwards; }
.fx.echo { width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 2px solid #fff; border-radius: 50%; animation: rip .8s var(--ease) forwards; }
.fx.circle { width: 58px; height: 58px; margin: -29px 0 0 -29px; border: 4px solid var(--cut); border-radius: 50%; animation: fxfade 1s forwards; }
.fx.marker { width: 92px; height: 28px; margin: -14px 0 0 -46px; border-radius: 3px; background: rgba(255, 207, 51, .5); mix-blend-mode: multiply; animation: fxfade 1s forwards; }
.fx.spot { inset: 0; background: radial-gradient(circle 100px at var(--fx), transparent 96%, rgba(5, 9, 9, .62)); animation: fxfade 1s forwards; }
@keyframes fxfade { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
.cursory.popping > img:first-child { transition: transform .22s var(--spring); transform: scale(1.05); }
.camy > img { width: 100%; pointer-events: none; }
.camy-b { touch-action: none; position: absolute; z-index: 3; overflow: hidden; cursor: grab; background: #111; transition: width .22s var(--spring), height .22s var(--spring), border-radius .22s var(--spring), left .22s var(--spring), top .22s var(--spring), box-shadow .14s; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.camy-b.border { box-shadow: 0 0 0 3px var(--primary), 0 10px 24px rgba(0, 0, 0, .45); }
.camy-b.dragging { cursor: grabbing; transition: width .22s, height .22s, border-radius .22s; scale: 1.03; }
.camy-b video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; pointer-events: none; transform: scaleX(-1); }
.face-out { width: 100%; }
[data-face].out .cmp { display: none; }

/* Graphics slider, as on the main page */
.gfx { margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--divider); }
.gcar { display: flex; flex-direction: column; gap: 16px; margin: 28px 0 8px; padding: 6px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.gcar-track { display: flex; gap: 16px; width: max-content; padding-right: 16px; animation: gcarL 90s linear infinite; }
.gcar-row.rev .gcar-track { animation-name: gcarR; animation-duration: 100s; }
.gcar:hover .gcar-track, .gcar:focus-within .gcar-track, .gcar.off .gcar-track { animation-play-state: paused; }
@keyframes gcarL { to { transform: translateX(-50%); } }
@keyframes gcarR { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.gclip { position: relative; flex: none; width: clamp(240px, 26vw, 380px); border-radius: 10px; overflow: hidden; background: var(--inset); border: 1px solid var(--border); transition: transform .2s var(--spring); }
.gclip:hover { transform: scale(1.03); z-index: 2; }
.gclip video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gclip figcaption { position: absolute; left: 8px; bottom: 8px; padding: 2px 9px; border-radius: 999px; background: rgba(13, 18, 18, .86); font-size: 12px; font-weight: 600; }

/* AI Director */
.stepper-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .7fr); gap: 28px; align-items: center; margin-top: 12px; }
.stepper-copy p { margin-top: 8px; font-size: 16px; color: var(--text-2); }
.stepper-copy .fine { font-size: 13px; color: var(--text-3); }
.seg.big.block > button { flex-wrap: wrap; }
.askchips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.askchips button { min-height: 32px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 999px; background: none; font-size: 13.5px; transition: transform .16s var(--spring), background .12s; }
.askchips button:hover { transform: translateY(-2px); }
.askchips button[aria-pressed='true'] { background: var(--clip-music); border-color: var(--clip-music); color: var(--clip-music-ink); }
.chat { display: grid; gap: 7px; margin-top: 12px; }
.chat p { max-width: 90%; padding: 8px 12px; border-radius: 12px; font-size: 14.5px; line-height: 1.45; animation: chatin .26s var(--spring); }
.chat-me { justify-self: end; background: var(--primary-soft); color: #d7f4ec; border-bottom-right-radius: 4px; }
.chat-ai { background: var(--elev); color: var(--text-2); border-bottom-left-radius: 4px; }
@keyframes chatin { from { transform: translateY(8px); opacity: 0; } }
.clips { margin-top: 80px; }
.reframe { margin-top: 18px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #000; }
.reframe-pair { display: grid; grid-template-columns: minmax(0, 3.16fr) minmax(0, 1fr); gap: 2px; }
.reframe-pair > div { position: relative; min-width: 0; }
.reframe-pair video { width: 100%; height: 100%; object-fit: cover; }
.clips .fine { margin-top: 10px; }

/* Export */
.pub { grid-template-columns: minmax(0, 1fr) 340px; }
.pub-stage { min-width: 0; }
.pub-frame { width: auto; height: min(52vw, 480px); max-width: 100%; margin: 0 auto; border-radius: 12px; border: 1px solid var(--border-strong); overflow: hidden; background: #000; box-shadow: 0 26px 50px -30px #000; transition: aspect-ratio .4s var(--spring); }
.pub-frame video { width: 100%; height: 100%; object-fit: cover; object-position: 44% 50%; }
.shapes { justify-content: center; margin-top: 12px; }
.shapes > button { min-height: 44px; gap: 8px; }
.shapes small { font-size: 11.5px; color: inherit; opacity: .75; font-weight: 400; }
.sh { display: block; border: 2px solid currentColor; border-radius: 2px; }
.exp .seg { margin-bottom: 4px; }
.exp [data-exp-pane] { min-height: 214px; padding-top: 6px; }
.exp-bar { height: 6px; margin-top: 10px; border-radius: 6px; background: var(--inset); overflow: hidden; }
.exp-bar i { display: block; height: 100%; width: var(--p, 0%); border-radius: 6px; background: var(--primary); transition: width .12s linear; }

/* Your AI */
.have { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
.have-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.havecard { display: block; cursor: pointer; }
.havecard input { position: absolute; opacity: 0; width: 0; height: 0; }
.havecard-in { position: relative; display: block; height: 100%; padding: 12px 34px 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); transition: transform .18s var(--spring), border-color .12s, background .12s; }
.havecard-in:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.havecard-in img { height: 22px; width: auto; margin-bottom: 7px; }
.havecard-in b { display: block; font-size: 15px; font-weight: 600; }
.havecard-in small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--text-3); }
.havecard-in::after { content: ''; position: absolute; right: 11px; top: 11px; width: 18px; height: 18px; border: 1.5px solid var(--border-strong); border-radius: 5px; }
.havecard input:checked + .havecard-in { border-color: var(--primary); background: var(--primary-soft); }
.havecard input:checked + .havecard-in::after { content: '\2713'; display: grid; place-items: center; border-color: var(--primary); background: var(--primary); color: var(--on-primary); font: 700 12px/1 var(--body); animation: pop .22s var(--spring); }
.havecard input:focus-visible + .havecard-in { outline: 2px solid var(--hl); outline-offset: 2px; }
.have-out { position: sticky; top: 112px; }
.unlock { display: grid; gap: 8px; }
.unlock li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 7px; font-size: 14.5px; line-height: 1.35; color: var(--faint); transition: color .14s; }
.unlock .i { margin-top: 2px; color: var(--border-strong); }
.unlock small { grid-column: 2; font-size: 12px; color: var(--text-3); }
.unlock li.on { color: var(--text); }
.unlock li.on .i { color: var(--primary); animation: pop .24s var(--spring); }

/* Local */
.memo { margin-bottom: 14px; }
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.m-who { font-size: 12.5px; color: var(--text-3); margin: -6px 0 10px; }
.m-rec { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; padding: 10px 12px; border-radius: 9px; background: var(--primary-soft); animation: chatin .26s var(--spring); }
.m-rec small { grid-column: 1 / -1; font-size: 11.5px; color: #c9efe6; }
.m-rec b { font-size: 15.5px; font-weight: 600; }
.m-rec span { font-size: 13px; color: #c9efe6; align-self: end; }
.m-list { display: grid; gap: 0; margin-top: 8px; font-size: 13.5px; }
.m-list li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-top: 1px solid var(--divider); color: var(--text-2); }
.m-list li span { font: 12.5px var(--mono); color: var(--text-3); white-space: nowrap; }
.m-list li.needs { color: var(--faint); }
.m-list li.needs span { color: var(--faint); }
.ticks { display: grid; gap: 2px; margin-top: 6px; }
.ticks li { position: relative; padding: 4px 0 4px 22px; font-size: 15px; line-height: 1.4; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 10px; width: 10px; height: 6px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }

/* The comparison */
.ctable-wrap { overflow: auto; max-height: min(82vh, 860px); border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.ctable { width: 100%; min-width: 1120px; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.ctable th, .ctable td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--divider); line-height: 1.35; }
.ctable thead th { position: sticky; top: 0; z-index: 3; background: var(--elev); font-weight: 600; border-bottom: 1px solid var(--border-strong); }
.ctable thead small { display: block; margin-top: 2px; font-weight: 400; font-size: 12px; color: var(--text-3); }
.ctable thead th:first-child, .ctable tbody th { position: sticky; left: 0; z-index: 2; background: var(--surface); min-width: 230px; font-weight: 500; border-right: 1px solid var(--divider); }
.ctable thead th:first-child { z-index: 4; background: var(--elev); font: 500 12px/1.3 var(--mono); color: var(--text-3); }
.ctable .grp th { position: sticky; left: 0; z-index: 2; padding-top: 16px; background: var(--inset); font: 600 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--primary); border-right: 0; }
.ctable .grp td { background: var(--inset); }
.ctable .us { background: rgba(121, 207, 192, .1); color: var(--text); font-weight: 500; }
.ctable thead .us { background: var(--primary); color: var(--on-primary); }
.ctable thead .us small { color: var(--on-primary); opacity: .8; }
.ctable td { color: var(--text-2); min-width: 128px; }
.ctable tbody tr:hover td, .ctable tbody tr:hover th { background-color: var(--hover); }
.st { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-right: 5px; border-radius: 50%; font: 700 10px/1 var(--body); vertical-align: -2px; }
.st.y { background: var(--primary); color: var(--on-primary); }
.st.p { background: var(--hl-soft); color: var(--hl-ink); }
.st.n { background: #4f2e30; color: #ff9d9d; }
.st.q { background: var(--muted); color: var(--text-3); }
.ctable-note { margin-top: 12px; max-width: 70em; }
.ctable-hint { display: none; margin-bottom: 8px; }
.rec-note { margin-top: 8px; }

/* Every AI feature, and what runs it */
.ftable-t { margin-top: 44px; }
.ftable-wrap { max-height: none; margin-top: 14px; }
.ctable.ftable { min-width: 1020px; table-layout: auto; }
.ctable.ftable td { min-width: 0; padding: 9px 8px; text-align: center; vertical-align: middle; transition: background-color .14s; }
.ctable.ftable thead th { min-width: 90px; padding: 9px 8px; text-align: center; vertical-align: bottom; transition: background-color .14s; }
.ctable.ftable thead th:first-child { min-width: 250px; text-align: left; }
.f-via { display: block; margin-bottom: 2px; font: 500 10.5px/1.3 var(--mono); }
.f-sub .f-via { color: var(--primary); }
.f-key .f-via { color: var(--hl-ink); }
.f-you .f-via { color: #c3b8ff; }
.ftable thead small .chip { margin: 0; vertical-align: 0; }
.ftable tbody th small { display: block; margin-top: 1px; font-weight: 400; font-size: 12px; line-height: 1.3; color: var(--text-3); }
.ftable .st { margin-right: 0; }
.ft-note { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.25; color: var(--text-3); }
.ft-no { color: var(--faint); }
.ctable.ftable td.lit { background-color: rgba(121, 207, 192, .1); }
.ctable.ftable thead th.lit { background-color: var(--primary-soft); }
.ctable.ftable tr.can th { color: var(--text); box-shadow: inset 3px 0 0 var(--primary); }
.ftable .f-free td { text-align: left; color: var(--text-2); }
.ftable .grp th { min-width: 250px; }

/* Pricing */
.toggle-wrap { display: flex; justify-content: center; margin-bottom: 24px; }
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 860px; margin: 0 auto; }
.price { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); transition: transform .2s var(--spring); }
.price:hover { transform: translateY(-4px); }
.price.pro { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 24px 50px -30px var(--primary); }
.amount { font: 760 58px/1.05 var(--display); letter-spacing: -.02em; }
.amount small { margin-left: 8px; font: 500 15px/1 var(--body); letter-spacing: 0; color: var(--text-3); }
.amount span { display: inline-block; }
.amount span.flip { animation: flip .32s var(--spring); }
@keyframes flip { from { transform: translateY(14px) scale(.9); opacity: 0; } }
.alt-t, .price .alt { min-height: 22px; font-size: 14.5px; color: var(--text-3); }
.price .ticks { flex: 1; margin: 14px 0 20px; }
.center-t { margin-top: 14px; text-align: center; }

/* FAQ, close, footer */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 44px; }
.faq-wrap .h2 { margin-top: 14px; }
.faq details { border-top: 1px solid var(--divider); }
.faq details:last-child { border-bottom: 1px solid var(--divider); }
.faq summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 2px; font-weight: 600; font-size: 16.5px; cursor: pointer; list-style: none; transition: color .1s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--primary); }
.faq summary::after { content: '+'; font: 500 20px/1 var(--mono); color: var(--primary); transition: transform .2s var(--spring); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2px 16px; font-size: 15.5px; color: var(--text-2); }
.final { padding: 96px 0; border-top: 1px solid var(--divider); background: var(--alt); }
.foot { padding: 34px 0; border-top: 1px solid var(--divider); }
.foot .fine + .fine { margin-top: 5px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 16px; font-size: 14.5px; }
.foot-nav a { color: var(--text-2); text-decoration: none; }
.foot-nav a:hover { color: var(--text); }

/* ── Tablets ──────────────────────────────────────────── */
/* ── Transcribe and dub ───────────────────────────────── */
.dub-pic { position: relative; background: #000; }
.dub-pic video { display: block; width: 100%; height: auto; }
.dub-cap { position: absolute; left: 50%; bottom: 5%; width: max-content; max-width: 88%; transform: translateX(-50%); padding: 5px 12px; border-radius: 8px; background: rgba(10, 14, 14, .78); color: #fff; font-size: clamp(14px, 1.75vw, 21px); font-weight: 600; line-height: 1.3; text-align: center; pointer-events: none; }
.dub-cap:empty { display: none; }
.dub-cap b { color: var(--hl); font-weight: 600; }
.dub-big { position: absolute; left: 50%; top: 50%; z-index: 2; display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 20px; transform: translate(-50%, -50%); border: 0; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 600; font-size: 16px; box-shadow: 0 10px 28px rgba(0, 0, 0, .5); transition: transform .18s var(--spring); }
.dub-big:hover { transform: translate(-50%, -50%) scale(1.06); }
.dub-big .i { font-size: 18px; }
.dub-lanes { display: grid; gap: 4px; padding: 8px 10px 10px; background: var(--surface); }
.dub-lane { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; align-items: center; font-size: 12px; }
.dub-lane b { font-weight: 500; color: var(--text-3); white-space: nowrap; }
.dub-lane .rl-track { height: 16px; border-radius: 4px; }
.dub-lane .rl-track > i { transition: none; border-radius: 4px; }
.seg.two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dub-script { font-size: 16px; line-height: 1.7; }
.dub-script .w.on { background: var(--hl); color: #15191a; }
.dub-script .w.was { color: var(--text-3); }
.dub-fine { margin-top: 10px; max-width: 54em; }

/* ── Ask AI for a graphic ─────────────────────────────── */
.ask { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: stretch; margin-top: 16px; }
.ask-stage { align-self: start; }
.ask-pic { position: relative; background: #000; aspect-ratio: 16 / 9; overflow: hidden; }
.ask-pic img { width: 100%; height: 100%; object-fit: cover; }
.ask-pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ask-pic video.reveal { animation: askwipe .6s cubic-bezier(.45, 0, .35, 1) both; }
@keyframes askwipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
.ask-tl { position: relative; display: grid; gap: 4px; padding: 8px 10px 10px; background: var(--surface); }
.ask-lane { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; align-items: center; font-size: 12px; }
.ask-lane b { font-weight: 500; color: var(--text-3); }
.ask-track { position: relative; display: block; height: 20px; border-radius: 4px; background: var(--inset); overflow: hidden; }
.ask-track u { display: block; height: 100%; border-radius: 4px; background: var(--clip-video); }
.ask-track i { position: absolute; left: 30%; top: 0; bottom: 0; width: 25%; border-radius: 4px; background: var(--clip-image); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); animation: askdrop .34s var(--spring); }
@keyframes askdrop { from { transform: translateY(-120%) scale(1.1); } }
.ask-head { position: absolute; top: 4px; bottom: 6px; left: calc(80px + (100% - 90px) * var(--ph, .3)); width: 2px; background: var(--cut); pointer-events: none; }
.ask-chat { display: flex; flex-direction: column; min-height: 470px; max-height: 560px; padding: 12px; }
.ask-t { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.ask-t .i { font-size: 16px; color: var(--text-3); }
.ask-t em { margin-left: auto; padding: 1px 8px; border-radius: 6px; background: var(--selected); font-style: normal; font-size: 12px; font-weight: 500; color: var(--text); }
.ask-thread { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding-right: 2px; scrollbar-width: thin; }
.ask-starters { display: grid; gap: 6px; margin-top: auto; }
.ask-starters button { display: flex; gap: 9px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--elev); color: var(--text-2); font-size: 13.5px; line-height: 1.35; text-align: left; transition: transform .16s var(--spring), border-color .12s, color .12s; }
.ask-starters button:hover { transform: translateY(-2px); border-color: var(--border-strong); color: var(--text); }
.ask-starters button:active { transform: scale(.98); }
.ask-starters .i { flex: none; margin-top: 1px; font-size: 16px; color: var(--primary); }
.ask-msg { max-width: 94%; padding: 8px 11px; border-radius: 11px; font-size: 13.5px; line-height: 1.42; animation: chatin .26s var(--spring); }
.ask-msg.me { align-self: flex-end; background: var(--primary-soft); color: #d7f4ec; border-bottom-right-radius: 3px; }
.ask-msg.ai { background: var(--elev); color: var(--text-2); border-bottom-left-radius: 3px; }
.ask-msg .chip { margin-right: 5px; }
.ask-dots { display: inline-flex; gap: 4px; padding: 3px 0; }
.ask-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: askdot 1s ease-in-out infinite; }
.ask-dots i:nth-child(2) { animation-delay: .15s; }
.ask-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes askdot { 40% { transform: translateY(-4px); opacity: .5; } }
.ask-card { padding: 10px 11px; border: 1px solid var(--border-strong); border-radius: 11px; background: var(--paper, var(--surface)); font-size: 13px; line-height: 1.4; animation: chatin .26s var(--spring); }
.ask-card-t { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-weight: 600; font-size: 13.5px; color: var(--text); }
.ask-card-t small { font-weight: 400; font-size: 12px; color: var(--text-3); }
.ask-brief { margin-bottom: 7px; color: var(--text-2); }
.ask-beat { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 6px; padding: 5px 0; border-top: 1px solid var(--divider); color: var(--text-2); animation: chatin .28s var(--spring) both; }
.ask-beat span { font: 500 11.5px/1.6 var(--mono); color: var(--primary); }
.ask-beat b { display: block; font-weight: 600; color: var(--text); }
.ask-beat em { display: inline-block; margin-top: 3px; padding: 0 6px; border-radius: 4px; background: var(--muted); font-style: normal; font-size: 12px; color: var(--text); }
.ask-card .btn { margin-top: 8px; }
.ask-checks { display: grid; gap: 3px; }
.ask-checks li { display: flex; align-items: center; gap: 7px; color: var(--faint); transition: color .15s; }
.ask-checks li::before { content: ''; flex: none; width: 13px; height: 13px; border: 1.5px solid var(--border-strong); border-radius: 50%; }
.ask-checks li.ok { color: var(--text-2); }
.ask-checks li.ok::before { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 2.5px var(--paper, var(--surface)); animation: pop .22s var(--spring); }
.ask-box { margin-top: 8px; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--inset); }
.ask-box:focus-within { border-color: var(--primary); }
.ask-box textarea { display: block; width: 100%; min-height: 40px; border: 0; outline: 0; resize: none; background: none; color: var(--text); font: inherit; font-size: 14px; line-height: 1.4; }
.ask-box textarea::placeholder { color: var(--faint); }
.ask-file { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 5px; padding: 1px 8px; border-radius: 6px; background: var(--muted); font-size: 12px; color: var(--text); }
.ask-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.ask-price { font-size: 11.5px; line-height: 1.3; color: var(--text-3); }
.ask-box .btn { flex: none; }
.ask-box .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.ask-box .btn.ready { animation: askready 1.1s ease-in-out infinite; }
@keyframes askready { 50% { box-shadow: 0 0 0 5px rgba(121, 207, 192, .25); } }

/* A short window: the rail tightens up so more of it fits. */
@media (min-width: 1161px) and (max-height: 935px) {
  .rail { gap: 0; padding: 4px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
  .rail a { padding: 3px 2px; font-size: 10px; }
  .rail a .i { font-size: 15px; }
  .rail-g { padding: 4px 0 2px; font-size: 9px; }
}
@media (max-width: 1160px) {
  .nav { display: none; }
  .head-row { justify-content: space-between; }
  .edit-grid { display: flex; flex-direction: column; gap: 18px; align-items: stretch; }
  .rail { order: -1; top: 100px; z-index: 10; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 4px; }
  .rail-g { display: none; }
  .rail a { flex: none; min-width: 62px; }
  .rail a.is-now { box-shadow: inset 0 -2px 0 var(--primary); }
  .rl { grid-template-columns: 170px minmax(0, 1fr); }
  .rl > em { grid-column: 1 / -1; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .have { grid-template-columns: minmax(0, 1fr); }
  .have-out { position: static; }
}
@media (max-width: 900px) {
  .ctable-hint { display: block; }
  .ask { grid-template-columns: minmax(0, 1fr); }
  .ask-chat { min-height: 420px; }
  .hero-row, .split, .split.flip, .stepper-body, .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .split.flip .copy { order: 0; }
  .demo, .pub, .script-demo { grid-template-columns: minmax(0, 1fr); }
  .specs, .specs.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .models { grid-template-columns: minmax(0, 1fr); }
  .tiles.three { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tiles.two { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiles.four { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  /* The bar leaves the picture and sits under it. */
  .rec-stage { padding-bottom: 66px; }
  .recbar { left: 0; right: 0; bottom: 0; max-width: none; transform: none; border-radius: 0; border-width: 1px 0 0; }
}
@media (max-width: 700px) {
  .take-clips { gap: 1px; }
  .clip { padding: 0 4px; justify-content: center; font-size: 10.5px; }
  .clip .i { display: none; }
  .take-clips .k-yours span, .take-clips .k-ai span { font-size: 0; }
  .take-clips .k-yours span::after { content: 'AI'; font-size: 10.5px; }
  .take-clips .k-ai span::after { content: 'Director'; font-size: 10.5px; }
}
/* ── Phones ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .take-clips { height: 32px; }
  .scrolled .take { max-height: 60px; }
  .s5 { bottom: 52px; }
  .foot-nav a { padding-block: 8px; }
  /* Wide tables: a narrower label column, so a product column fits beside it. */
  .ctable-wrap { max-height: none; }
  .ctable { font-size: 13px; }
  .ctable thead th:first-child, .ctable tbody th, .ctable .grp th, .ctable.ftable thead th:first-child, .ftable .grp th { min-width: 118px; width: 118px; padding: 8px; }
  /* The recorder's toggles get their own row under the modes. */
  .recbar-setup { flex-wrap: wrap; justify-content: center; overflow: visible; row-gap: 2px; }
  .rb-modes { width: 100%; justify-content: center; }
  .rb-div { display: none; }
  .rb-pick { flex: 1 1 30%; justify-content: center; padding: 5px 4px; font-size: 12px; }
  .rec-stage { padding-bottom: 106px; }
  /* The Director's four steps, two by two. */
  .seg.big.block { display: grid; grid-template-columns: 1fr 1fr; }
  .seg.big.block > button { flex-wrap: nowrap; }
  .ln .ln-dot { display: none; }
  .ln::before { width: 11px; height: 10px; margin-left: -5px; }
  .dub-cap { font-size: 13px; padding: 3px 8px; }
  .dub-big { min-height: 40px; padding: 0 15px; font-size: 14px; }
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .chapter { padding: 60px 0; }
  .hero { padding-top: 32px; }
  .cta .btn { width: 100%; }
  .cards, .cards.two, .specs, .specs.four, .have-pick, .prices { grid-template-columns: minmax(0, 1fr); }
  .tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .s1 { left: -6px; } .s2 { right: -4px; } .s3 { right: -6px; } .s4 { left: -6px; }
  .sticker { padding: 4px 9px 5px; border-radius: 9px; }
  .rec-plate { padding: 8px 12px; top: 36%; }
  .rec-plate p { margin-bottom: 5px; font-size: 12.5px; }
  .rec-start { min-height: 36px; padding: 0 14px; font-size: 14px; }
  .rec-self { min-width: 74px; right: 8px; top: 8px; }
  .rec-self small { display: none; }
  .rl { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .seg.big > button { padding: 0 11px; font-size: 14px; }
  .pub-frame { height: 78vw; }
  .lab { font-size: 11px; top: 6px; padding: 1px 6px; }
  .lab.l { left: 6px; } .lab.r { right: 6px; }
  .reframe-pair { grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); }
}

/* Reduced motion: nothing moves by itself */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .gcar { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .gcar-track { animation: none !important; }
}

/* The site's own header and footer, around the new homepage. Copied from assets/css/site.css on 2026-10-30, the same
   colours and sizes as every other page (src/components/SiteChrome.tsx), and scoped so they cannot touch the page. */
html { scroll-padding-top: 150px; }
body { background: var(--paper); }
.site-head, .site-foot { font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 17px; line-height: 1.6; }
.site-head *, .site-foot * { box-sizing: border-box; }
.site-head :focus-visible, .site-foot :focus-visible { outline: 3px solid #ffcf33; outline-offset: 3px; border-radius: 6px; }
.site-head .wrap, .site-foot .wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.site-head .disp, .site-foot .disp { font-family: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: -0.035em; }
.site-foot .mono { font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; }
.site-head .ruler, .site-foot .ruler { height: 18px; border-top: 1px solid rgba(237, 241, 240, .35); background-image: repeating-linear-gradient(90deg, rgba(237, 241, 240, .7) 0 1px, transparent 1px 48px), repeating-linear-gradient(90deg, rgba(237, 241, 240, .35) 0 1px, transparent 1px 12px); background-size: 100% 18px, 100% 9px; background-repeat: repeat-x; }
.site-head .btn, .site-foot .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease, border-color .15s ease; min-height: 42px; padding: 0 16px; font-size: 15px; }
.site-head .btn-hl, .site-foot .btn-hl { background: #ffcf33; color: #15191a; box-shadow: 0 4px 0 #b8901a; }
.site-head .btn-hl:hover, .site-foot .btn-hl:hover { background: #ffd95c; color: #15191a; transform: translateY(-1px); box-shadow: 0 5px 0 #b8901a; }
.site-head .btn-hl:active, .site-foot .btn-hl:active { transform: translateY(3px); box-shadow: 0 1px 0 #b8901a; }

.site-head { position: sticky; top: 0; z-index: 30; background: rgba(8, 63, 59, .95); border-bottom: 1px solid rgba(237, 241, 240, .12); color: #edf1f0; }
@supports (backdrop-filter: blur(8px)) { .site-head { background: rgba(8, 63, 59, .86); backdrop-filter: saturate(1.2) blur(8px); } }
.site-head .head-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; min-height: 68px; height: auto; flex-wrap: wrap; }
.site-head .brand { display: flex; align-items: center; gap: 10px; font-size: inherit; font-weight: inherit; text-decoration: none; color: #edf1f0; }
.site-head .brand:hover { color: #fff; }
.site-head .navlinks { display: flex; align-items: center; gap: 22px; }
.site-head .navlink { color: rgba(237, 241, 240, .86); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 2px; white-space: nowrap; border-bottom: 2px solid transparent; }
.site-head .navlink:hover { color: #fff; }
.site-head .head-cta { display: flex; align-items: center; gap: 12px; }
.site-head .gh { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(237, 241, 240, .3); color: #edf1f0; text-decoration: none; font-size: 14px; font-weight: 500; }
.site-head .gh:hover { border-color: #edf1f0; color: #fff; }
.site-head .menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(237, 241, 240, .3); background: transparent; color: #edf1f0; cursor: pointer; }
.site-head .head-ruler { position: relative; }
.site-head .scroll-cut { display: none; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #e4572e; transform-origin: left center; transform: scaleX(0); }
@supports (animation-timeline: scroll()) { .site-head .scroll-cut { display: block; animation: scrollCut linear both; animation-timeline: scroll(root); } }
@keyframes scrollCut { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.site-foot { background: #062d2a; color: #c4d9d5; padding: 0; border: 0; }
.site-foot .foot-in { padding-top: 64px; padding-bottom: 36px; }
.site-foot .foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(5, minmax(0, 1fr)); gap: 36px 28px; }
.site-foot .foot-h { font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #ffcf33; margin: 0 0 14px; font-weight: 500; }
.site-foot .foot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-foot .flink { color: #edf1f0; text-decoration: none; font-size: 15px; }
.site-foot .flink:hover { color: #ffcf33; }
.site-foot .flink-vs { display: inline-flex; align-items: center; gap: 8px; }
.site-foot .flink-vs img { flex: none; width: 18px; height: 18px; border-radius: 5px; background: #fff; object-fit: contain; }
.site-foot .foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(237, 241, 240, .14); font-size: 13px; color: #c4d9d5; }
.site-foot .legal-line { margin-top: 14px; margin-bottom: 0; font-size: 12px; line-height: 1.6; color: #a9c3be; }
.site-foot .legal-line + .legal-line { margin-top: 4px; }
@media (max-width: 900px) {
  .site-foot .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .site-head .navlinks { display: none; }
  .site-head .navlinks.open { display: flex; order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 14px; }
  .site-head .navlinks.open .navlink { padding: 12px 4px; border-bottom: 1px solid rgba(237, 241, 240, .12); }
  .site-head .menu-btn { display: inline-flex; }
  .site-head .head-cta .gh { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site-head .scroll-cut { animation: none; display: none; }
}

/* The page's sticky parts sit under this taller header. */
.rail { top: 140px; max-height: calc(100vh - 152px); }
.have-out { top: 150px; }
.demo-block { scroll-margin-top: 150px; }
.rec { max-width: min(100%, max(720px, calc((100vh - 390px) * 1.7778))); }
@media (max-width: 900px) { .rail { top: auto; max-height: none; } }
