/* Hallmark · genre: modern-minimal · macrostructure: Workbench · theme: Glitchless brand (custom) · enrichment: real product capture · nav: N5 · footer: Ft2
 * paper oklch(100% 0 0) · ink oklch(25.2% 0.056 264) navy · accent oklch(82.3% 0.168 163.4) mint, on navy only · spike oklch(70.8% 0.185 30.1) coral
 * display Outfit 700–800 · body Inter 400–600 · mono JetBrains Mono · one look in every viewer theme
 * Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V4 */
:root {
  --color-paper: oklch(100% 0 0);
  --color-paper-2: oklch(97.3% 0.006 264.5);
  --color-ink: oklch(25.2% 0.056 264);
  --color-ink-2: oklch(40.6% 0.052 264.3);
  --color-muted: oklch(52% 0.044 261.4);
  --color-dim: oklch(68% 0.03 262);
  --color-rule: oklch(92.1% 0.013 262.4);
  --color-rule-strong: oklch(86% 0.018 262);
  --color-night: oklch(25.2% 0.056 264);
  --color-night-2: oklch(30.6% 0.069 263.7);
  --color-night-3: oklch(21.3% 0.046 264.4);
  --color-night-rule: oklch(37% 0.06 264);
  --color-on-night: oklch(98% 0.004 264);
  --color-on-night-2: oklch(79% 0.03 262);
  --color-on-night-3: oklch(62% 0.035 262);
  --color-accent: oklch(82.3% 0.168 163.4);
  --color-accent-ink: oklch(25.2% 0.056 264);
  --color-spike: oklch(70.8% 0.185 30.1);
  --color-spike-soft: oklch(84% 0.09 30);
  --color-info: oklch(72% 0.12 250);
  --color-focus: oklch(56.2% 0.116 164.4);
  --color-shadow: oklch(25.2% 0.056 264 / 0.12);
  --color-shadow-soft: oklch(25.2% 0.056 264 / 0.07);
  --color-glass: oklch(100% 0 0 / 0.82);
  --color-sky: oklch(95.5% 0.018 245);
  --color-sky-mint: oklch(92.5% 0.065 168);
  --color-sky-blush: oklch(94% 0.035 28);

  --font-display: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --text-2xs: 0.75rem;
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --text-2xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --text-display: clamp(2.5rem, 1.5rem + 3vw, 4rem);

  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 6.5rem;

  --radius-card: 18px;
  --radius-big: 28px;
  --radius-inner: 12px;
  --radius-pill: 999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-short: 180ms;
  --dur-med: 320ms;
  --width: 1200px;
  --nav-h: 74px; /* the floating nav: 12px above it, a 62px pill */
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font: 400 var(--text-md)/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img, video, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; } /* the display rule above would otherwise un-hide hidden media */
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.025em; line-height: 1.05; margin: 0; text-wrap: balance; overflow-wrap: anywhere; min-width: 0; }
h2 { font-size: var(--text-2xl); font-weight: 700; }
h3 { font-size: var(--text-md); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }
code, pre { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: calc(var(--width) + 40px); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.lede { color: var(--color-ink-2); font-size: var(--text-lg); max-width: 54ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); border: 1px solid var(--color-rule-strong); font: 600 var(--text-2xs)/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-ink-2); }
.on-night { color: var(--color-on-night); }
.on-night .lede { color: var(--color-on-night-2); }
.on-night :focus-visible { outline-color: var(--color-accent); }

/* Buttons: one pill shape, two weights */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2xs); min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-pill); border: 1px solid transparent; font: 600 var(--text-sm)/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--color-ink); color: var(--color-on-night); }
.btn-primary:hover { background: var(--color-night-2); }
.btn-ghost { background: var(--color-paper); color: var(--color-ink); border-color: var(--color-rule-strong); }
.btn-ghost:hover { border-color: var(--color-ink); }
.btn-text { background: transparent; color: var(--color-ink-2); padding-inline: var(--space-sm); }
.btn-text:hover { color: var(--color-ink); }
.on-night .btn-primary { background: var(--color-accent); color: var(--color-accent-ink); }
.on-night .btn-primary:hover { background: var(--color-on-night); }
.on-night .btn-ghost { background: transparent; color: var(--color-on-night); border-color: var(--color-night-rule); }
.on-night .btn-ghost:hover { border-color: var(--color-on-night-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-xs); }

/* N5 floating pill nav */
.nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 20; margin-top: 12px; }
.nav-pill { display: flex; align-items: center; gap: var(--space-md); padding: 8px 8px 8px 18px; border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-glass); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4); box-shadow: 0 6px 24px var(--color-shadow); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 800 1.2rem/1 var(--font-display); letter-spacing: -0.02em; white-space: nowrap; }
.brand img { width: 30px; }
.nav-links { display: flex; gap: var(--space-md); margin-left: auto; font-size: var(--text-sm); font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--color-ink-2); white-space: nowrap; padding-block: 10px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--color-ink); }
.nav-end { display: flex; align-items: center; gap: var(--space-sm); }
.nav-end .signin { font-size: var(--text-sm); font-weight: 500; text-decoration: none; color: var(--color-ink-2); white-space: nowrap; }
.nav-end .signin:hover { color: var(--color-ink); }
@media (max-width: 900px) { .nav-links, .nav-end .signin { display: none; } .nav-end { margin-left: auto; } }

/* Hero: the promise, a cycling game word and Glitchy, over a soft sky that runs up behind the nav */
.hero { position: relative; margin-top: calc(-1 * var(--nav-h)); padding-top: var(--nav-h); overflow: clip;
  background:
    radial-gradient(55% 65% at 82% 28%, var(--color-sky-mint), transparent 70%),
    radial-gradient(45% 55% at 62% 100%, var(--color-sky-blush), transparent 72%),
    linear-gradient(180deg, var(--color-sky) 0%, var(--color-paper) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: var(--space-lg); min-height: clamp(540px, calc(100svh - var(--nav-h)), 860px); padding-block: var(--space-xl); }
.hero-copy { position: relative; z-index: 1; display: grid; gap: var(--space-md); justify-items: start; }
.hero h1 { font-size: clamp(2.75rem, 1.2rem + 4.2vw, 5.25rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.hero .lede { font-size: clamp(var(--text-lg), 1rem + 0.4vw, 1.3rem); max-width: 40ch; text-wrap: pretty; }
.hero .cta-row { margin-top: var(--space-2xs); align-items: center; }
/* The cycling word: it glitches out and the next one snaps in clean. A brush-stroke underline
   stays put under it, below the descenders, and slides to each word's width. */
.swap { --stroke: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 20' preserveAspectRatio='none'%3E%3Cpath d='M4 14C74 8 196 5.5 396 6.2c2.4.1 2.4 3.1 0 3.2C232 10.4 112 13.2 7 19.2 1.4 19.5.2 14.3 4 14z'/%3E%3C/svg%3E");
  position: relative; display: inline-block; white-space: nowrap; transition: width 360ms var(--ease-out); }
.swap-word { display: inline-block; }
.swap::after { content: ""; position: absolute; left: -0.02em; right: -0.06em; bottom: -0.26em; height: 0.24em; pointer-events: none;
  background: linear-gradient(90deg, var(--color-focus), var(--color-accent));
  -webkit-mask: var(--stroke) center / 100% 100% no-repeat; mask: var(--stroke) center / 100% 100% no-repeat; }
.swap.out .swap-word { animation: glitch-out 240ms steps(4, end) forwards; }
.swap.in .swap-word { animation: glitch-in 360ms steps(6, end) both; }
@keyframes glitch-out {
  25% { transform: translateX(-0.05em); text-shadow: 0.05em 0 var(--color-spike), -0.05em 0 var(--color-accent); clip-path: inset(8% 0 46% 0); }
  50% { transform: translateX(0.06em); text-shadow: -0.06em 0 var(--color-spike), 0.06em 0 var(--color-accent); clip-path: inset(52% 0 6% 0); }
  75% { opacity: 0.6; transform: translateX(-0.03em); clip-path: inset(30% 0 30% 0); }
  100% { opacity: 0; clip-path: inset(50% 0 50% 0); }
}
@keyframes glitch-in {
  0% { opacity: 0; transform: translateX(0.07em); clip-path: inset(48% 0 48% 0); text-shadow: 0.06em 0 var(--color-spike), -0.06em 0 var(--color-accent); }
  35% { opacity: 1; transform: translateX(-0.04em); clip-path: inset(18% 0 34% 0); }
  70% { transform: translateX(0.02em); clip-path: inset(0 0 0 0); text-shadow: 0.03em 0 var(--color-spike), -0.03em 0 var(--color-accent); }
  100% { transform: none; clip-path: inset(0 0 0 0); text-shadow: none; }
}
.hero-art { position: relative; justify-self: end; width: min(100%, 660px); }
.hero-art img { width: 100%; filter: drop-shadow(0 14px 18px var(--color-shadow-soft)); animation: hover 6s ease-in-out infinite; }
@keyframes hover { 50% { transform: translateY(-12px) rotate(-1deg); } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: var(--space-md); padding-block: var(--space-lg) var(--space-xl); }
  .hero-art { justify-self: center; width: min(100%, 380px); }
}
@media (max-width: 360px) { .hero h1 { font-size: 2.35rem; } } /* the longest word still fits at 320px */
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } }

/* The story: one real bug, found and fixed. The pane is sized to the window, and the video's width follows. */
.story-section { padding-top: var(--space-2xl); }
.story {
  --pane-h: clamp(600px, calc(100vh - 104px), 880px);
  --pane-h: clamp(600px, calc(100svh - 104px), 880px);
  --video-w: min(62%, calc((var(--pane-h) - 340px) * 16 / 9));
  display: grid; grid-template-columns: var(--video-w) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "game side" "foot foot"; gap: clamp(10px, 1.3vw, 16px); height: var(--pane-h);
  padding: clamp(10px, 1.3vw, 16px); border-radius: var(--radius-big); background: var(--color-night); box-shadow: 0 30px 70px var(--color-shadow);
}
.story-game, .story-side { background: var(--color-night-3); border-radius: var(--radius-card); min-width: 0; }
.story-game { grid-area: game; overflow: hidden; display: flex; flex-direction: column; }
.story-side { grid-area: side; min-height: 0; overflow: auto; padding: var(--space-md); display: grid; }
.story-foot { grid-area: foot; }
@media (max-width: 1023px), (max-height: 560px) {
  .story { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "game" "side" "foot"; height: auto; }
  .story-side { overflow: visible; }
}
@media (max-width: 1023px) { .story-side { padding: var(--space-sm); min-height: 330px; } }
/* Very short windows: let the pane grow rather than hide part of a step */
@media (min-width: 1024px) and (max-height: 700px) { .story { height: auto; min-height: var(--pane-h); } .story-side { overflow: visible; } }
.demo-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--color-night-2); }
.demo-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.build-tag { position: absolute; left: 12px; top: 12px; padding: 6px 10px; border-radius: var(--radius-pill); background: var(--color-spike); color: var(--color-accent-ink); font: 600 var(--text-2xs)/1 var(--font-body); letter-spacing: 0.05em; text-transform: uppercase; }
.build-tag.after { background: var(--color-accent); }
.trace { flex: 1; display: flex; flex-direction: column; gap: var(--space-2xs); padding: var(--space-xs) var(--space-sm) var(--space-sm); }
.trace-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2xs) var(--space-sm); }
.readout { font: 600 var(--text-xl)/1 var(--font-mono); font-variant-numeric: tabular-nums; min-width: 6.5ch; }
.readout small { font-size: 0.6em; font-weight: 400; color: var(--color-on-night-2); margin-left: 6px; }
.readout.slow { color: var(--color-spike); }
.readout.smooth { color: var(--color-accent); }
.trace-stats { font: 400 var(--text-xs)/1.4 var(--font-mono); color: var(--color-on-night-2); }
.trace-stats b { color: var(--color-on-night); font-weight: 600; }
.trace canvas { flex: 1 1 0; width: 100%; min-height: 84px; }
@media (max-width: 1023px), (max-height: 560px) { .trace canvas { flex: none; height: clamp(84px, 14vw, 112px); } }

.side-panel { display: grid; align-content: start; gap: var(--space-xs); min-width: 0; }
.side-panel[hidden] { display: none; }
.side-label { font: 600 var(--text-2xs)/1.2 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-on-night-3); }
.side-label code { font-size: 1.05em; letter-spacing: 0; text-transform: none; color: var(--color-on-night-2); }
.side-note { font-size: var(--text-sm); color: var(--color-on-night-2); }
.hot { color: var(--color-spike); }
.code { margin: 0; padding: var(--space-sm); border-radius: var(--radius-inner); background: var(--color-night); font: 400 var(--text-2xs)/1.6 var(--font-mono); color: var(--color-on-night); overflow-x: auto; white-space: pre; }
.code .c { color: var(--color-on-night-3); }
.finding { display: grid; gap: var(--space-2xs); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-inner); background: var(--color-night); border-left: 3px solid var(--color-spike); }
.finding .sev { justify-self: start; padding: 5px 8px; border-radius: 6px; background: var(--color-spike); color: var(--color-accent-ink); font: 600 var(--text-2xs)/1 var(--font-body); letter-spacing: 0.05em; text-transform: uppercase; }
.finding h3 { font-size: var(--text-lg); }
.finding ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: var(--text-sm); color: var(--color-on-night-2); }
.finding b { font: 600 1em/1 var(--font-mono); }
.calls { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.calls li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--space-2xs); }
.calls .tag { flex: none; width: 64px; text-align: center; }
.calls code { font: 500 var(--text-xs)/1.4 var(--font-mono); color: var(--color-on-night); overflow-wrap: anywhere; }
.calls .out { font: 400 var(--text-xs)/1.4 var(--font-mono); color: var(--color-on-night-2); }
.calls .out::before { content: "→ "; color: var(--color-on-night-3); }
.side-panel.play .calls li { animation: rise var(--dur-med) var(--ease-out) both; animation-delay: calc(var(--i) * 1.1s); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.side-link { float: right; margin-left: var(--space-sm); font: 600 var(--text-xs)/1.2 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--color-accent); text-underline-offset: 3px; padding-block: 14px; margin-block: -14px; }
.bots { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.bots th { text-align: right; font: 600 var(--text-2xs)/1.2 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-on-night-3); padding: 0 0 var(--space-2xs); }
.bots th:first-child, .bots td:first-child { text-align: left; }
.bots td { padding: var(--space-2xs) 0; border-top: 1px solid var(--color-night-rule); text-align: right; font: 500 var(--text-sm)/1.3 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--color-on-night); }
.bots td:first-child { font-family: var(--font-body); color: var(--color-on-night-2); padding-right: var(--space-sm); }
.bots td.was { color: var(--color-spike); }
.bots td.now { color: var(--color-accent); padding-left: var(--space-sm); }

.story-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-md); align-items: start; padding: var(--space-xs) var(--space-sm) 0; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--color-night-rule); }
.timeline li { position: relative; min-width: 0; }
.timeline li::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--color-accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.timeline button { position: relative; z-index: 1; display: grid; gap: 6px; justify-items: start; width: 100%; min-height: 44px; padding: 0 var(--space-md) 0 0; border: 0; background: none; color: var(--color-on-night-3); font: inherit; text-align: left; cursor: pointer; }
.timeline button::before { content: ""; width: 18px; height: 18px; margin-bottom: 4px; border-radius: 50%; background: var(--color-night); border: 2px solid var(--color-night-rule); transition: background-color var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out); }
.timeline b { font: 600 var(--text-lg)/1.2 var(--font-display); color: inherit; }
.timeline span { font-size: var(--text-sm); line-height: 1.5; max-width: 32ch; }
.timeline button:hover { color: var(--color-on-night-2); }
.timeline button[aria-selected="true"] { color: var(--color-on-night); }
.timeline button[aria-selected="true"] span { color: var(--color-on-night-2); }
.timeline button[aria-selected="true"]::before { background: var(--color-accent); border-color: var(--color-accent); }
.timeline button.done::before { border-color: var(--color-accent); }
.story-controls { display: flex; gap: var(--space-2xs); }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--color-night-rule); background: transparent; color: var(--color-on-night-2); display: grid; place-items: center; cursor: pointer; transition: color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.round-btn:hover { color: var(--color-on-night); border-color: var(--color-on-night-2); }
.round-btn svg { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .story-foot { grid-template-columns: minmax(0, 1fr); padding-inline: var(--space-2xs); }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .timeline::before { left: 8px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .timeline li::after { left: 8px; right: auto; top: 8px; bottom: calc(-1 * var(--space-xs)); width: 2px; height: auto; transform-origin: top; transform: scaleY(var(--p, 0)); }
  .timeline li:last-child::after { bottom: 8px; }
  .timeline button { grid-template-columns: 18px minmax(0, 1fr); gap: 4px var(--space-sm); align-items: start; padding: 0; }
  .timeline button::before { grid-row: 1 / span 2; margin: 2px 0 0; }
  .timeline button[aria-selected="false"] span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .side-panel.play .calls li { animation: none; } }

/* Section heads */
.section { padding-block: var(--space-3xl); }
.section-head { display: grid; gap: var(--space-sm); justify-items: center; margin-bottom: var(--space-xl); }
.section-head.left { justify-items: start; text-align: left; }
.split-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-lg); }
.split-head > div:not([role="tablist"]) { display: grid; gap: var(--space-xs); min-width: 0; }

/* The problem: a list on the left, its picture on the right */
.problem-grid { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); gap: var(--space-xl); align-items: center; }
@media (max-width: 900px) { .problem-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); } }
.picker { display: grid; gap: var(--space-xs); }
.pick { position: relative; display: grid; gap: var(--space-2xs); text-align: left; padding: var(--space-sm) 0 var(--space-sm) var(--space-md); border: 0; background: none; font: inherit; color: var(--color-dim); cursor: pointer; transition: color var(--dur-med) var(--ease-out); }
.pick::before { content: ""; position: absolute; left: 0; top: var(--space-sm); bottom: var(--space-sm); width: 2px; border-radius: 2px; background: var(--color-rule); transition: background-color var(--dur-med) var(--ease-out); }
.pick h3 { font-size: var(--text-xl); font-weight: 600; color: inherit; }
.pick p { font-size: var(--text-md); color: inherit; max-width: 40ch; }
.pick:hover { color: var(--color-ink-2); }
.pick[aria-selected="true"] { color: var(--color-ink); }
.pick[aria-selected="true"] p { color: var(--color-ink-2); }
.pick[aria-selected="true"]::before { background: var(--color-focus); }
.stage { background: var(--color-paper-2); border: 1px solid var(--color-rule); border-radius: var(--radius-big); padding: clamp(8px, 1.6vw, 24px); min-height: 460px; display: grid; align-items: center; }
.stage-panel { display: grid; gap: var(--space-sm); }
.stage-panel[hidden] { display: none; }
.stage-panel img { width: 100%; border-radius: var(--radius-inner); border: 1px solid var(--color-rule-strong); box-shadow: 0 18px 44px var(--color-shadow); background: var(--color-paper); }
.stage-panel img.tall { max-height: 520px; width: auto; justify-self: center; object-fit: cover; object-position: top; }
@media (max-width: 900px) { .stage { min-height: 0; border-radius: var(--radius-card); } .stage-panel { gap: var(--space-2xs); } }

/* The agent session */
.agent-card { background: var(--color-night); border-radius: var(--radius-big); padding: clamp(24px, 4vw, 56px); display: grid; gap: var(--space-xl); }
.agent-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-md); align-items: end; }
.agent-head > div { display: grid; gap: var(--space-sm); }
.agent-head img { width: 112px; }
@media (max-width: 700px) { .agent-head { grid-template-columns: minmax(0, 1fr); } .agent-head img { display: none; } }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.stepper::before { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; height: 2px; background: var(--color-night-rule); }
.stepper button { position: relative; display: grid; gap: var(--space-2xs); justify-items: start; padding: 0 var(--space-sm) 0 0; border: 0; background: none; color: var(--color-on-night-3); font: inherit; text-align: left; cursor: pointer; min-height: 44px; }
.stepper button::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--color-night); border: 2px solid var(--color-night-rule); transition: background-color var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out); }
.stepper b { font: 600 var(--text-lg)/1.2 var(--font-display); color: inherit; }
.stepper span { font: 400 var(--text-xs)/1.4 var(--font-mono); }
.stepper button:hover { color: var(--color-on-night-2); }
.stepper button[aria-selected="true"] { color: var(--color-on-night); }
.stepper button[aria-selected="true"]::before { background: var(--color-accent); border-color: var(--color-accent); }
.stepper button.done::before { border-color: var(--color-accent); }
.stepper i { font-style: normal; }
.stepper .short { display: none; }
@media (max-width: 640px) { .stepper .long { display: none; } .stepper .short { display: inline; } .stepper button { padding-right: 4px; } .stepper b { font: 600 var(--text-xs)/1.2 var(--font-body); } .stepper span { display: none; } }
.session-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr); gap: var(--space-md); align-items: start; }
@media (max-width: 900px) { .session-grid { grid-template-columns: minmax(0, 1fr); } }
.session { background: var(--color-night-3); border: 1px solid var(--color-night-rule); border-radius: var(--radius-card); padding: var(--space-md); min-height: 340px; display: grid; align-content: start; gap: var(--space-sm); min-width: 0; }
.session[hidden] { display: none; }
.call { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs); font: 500 var(--text-sm)/1.5 var(--font-mono); color: var(--color-on-night); }
.tag { font: 600 var(--text-2xs)/1 var(--font-body); letter-spacing: 0.04em; padding: 4px 7px; border-radius: 6px; background: var(--color-night-2); color: var(--color-on-night-2); }
.tag.mcp { color: var(--color-info); }
.tag.webmcp { color: var(--color-accent); }
.tag.edit { color: var(--color-spike-soft); }
.result { margin: 0; padding: var(--space-xs) var(--space-sm); border-left: 2px solid var(--color-night-rule); font: 400 var(--text-xs)/1.65 var(--font-mono); color: var(--color-on-night-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.result .hot { color: var(--color-spike); }
.result .ok { color: var(--color-accent); }
.says { font-size: var(--text-md); color: var(--color-on-night); padding: var(--space-sm); border-radius: var(--radius-inner); background: var(--color-night-2); }
.says::before { content: "Claude"; display: block; font: 600 var(--text-2xs)/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-on-night-3); margin-bottom: var(--space-2xs); }
.proof { display: grid; gap: var(--space-sm); }
.stat { background: var(--color-night-2); border-radius: var(--radius-inner); padding: var(--space-md); display: grid; gap: var(--space-2xs); }
.stat-label { font-size: var(--text-sm); color: var(--color-on-night-2); }
.stat-value { font: 600 clamp(1.5rem, 1.15rem + 1.2vw, 2.1rem)/1.1 var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4ch; }
.stat-value s { color: var(--color-spike); text-decoration-thickness: 2px; }
.stat-value .arrow { color: var(--color-on-night-2); font-size: 0.7em; }
.stat-value b { color: var(--color-accent); font-weight: 600; }
.agent-note { font-size: var(--text-xs); color: var(--color-on-night-3); }

/* Playtest bots: the pitch left, a real comparison right */
.bots-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--space-2xl); align-items: center; }
@media (max-width: 900px) { .bots-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); } }
.bots-copy { display: grid; gap: var(--space-md); justify-items: start; }
.bots-copy .glitchy { width: 96px; }
.cmds { display: grid; gap: var(--space-2xs); width: 100%; }
.cmds code { display: block; padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-inner); background: var(--color-night); color: var(--color-on-night); font: 500 var(--text-sm)/1.4 var(--font-mono); overflow-x: auto; white-space: nowrap; }
.cmds code span { color: var(--color-on-night-3); }
.bots-copy .small { font-size: var(--text-sm); color: var(--color-muted); }
.bots-copy .small code { font: 500 0.95em/1 var(--font-mono); color: var(--color-ink); }
.report { margin: 0; display: grid; gap: var(--space-sm); padding: var(--space-md); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-card); background: var(--color-paper); box-shadow: 0 24px 60px var(--color-shadow); min-width: 0; }
.report-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2xs) var(--space-sm); }
.report-head h3 { font-size: var(--text-lg); }
.verdict { padding: 6px 10px; border-radius: var(--radius-pill); background: var(--color-paper-2); border: 1px solid var(--color-rule-strong); font: 600 var(--text-2xs)/1 var(--font-body); letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-focus); white-space: nowrap; }
.report-scroll { overflow-x: auto; }
.report table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.report th { text-align: right; padding: 0 0 var(--space-2xs) var(--space-sm); font: 600 var(--text-2xs)/1.2 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-muted); white-space: nowrap; }
.report td { text-align: right; padding: var(--space-2xs) 0 var(--space-2xs) var(--space-sm); border-top: 1px solid var(--color-rule); font: 500 var(--text-sm)/1.3 var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.report th:first-child, .report td:first-child { text-align: left; padding-left: 0; }
.report td:first-child { font-family: var(--font-body); color: var(--color-ink-2); white-space: normal; }
.report td.better { color: var(--color-focus); font-weight: 600; }
.report td.same { color: var(--color-muted); }
.report figcaption { font-size: var(--text-xs); color: var(--color-muted); }
@media (max-width: 560px) {
  .cmds code { font-size: var(--text-2xs); padding-inline: var(--space-xs); }
  .report { padding: var(--space-sm); }
  .report thead { display: none; }
  .report tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px var(--space-xs); padding-block: var(--space-2xs); border-top: 1px solid var(--color-rule); }
  .report td { padding: 0; border: 0; text-align: left; }
  .report td:first-child { grid-column: 1 / -1; }
  .report td:nth-child(2)::before { content: "Baseline "; }
  .report td:nth-child(3)::before { content: "Fix "; }
  .report td:nth-child(2)::before, .report td:nth-child(3)::before { font: 400 var(--text-2xs)/1 var(--font-body); color: var(--color-muted); }
}

/* Dashboard tour */
.tour { background: var(--color-paper-2); border-block: 1px solid var(--color-rule); }
.tabs { display: inline-flex; flex-wrap: nowrap; flex: 0 1 auto; max-width: 100%; overflow-x: auto; scrollbar-width: none; gap: 4px; padding: 4px; border-radius: var(--radius-pill); background: var(--color-paper); border: 1px solid var(--color-rule); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; min-height: 38px; padding: 0 var(--space-sm); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink-2); font: 600 var(--text-sm)/1 var(--font-body); cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: var(--color-ink); }
.tabs button[aria-selected="true"] { background: var(--color-ink); color: var(--color-on-night); }
.shot { margin: 0; display: grid; gap: var(--space-sm); }
.shot-frame { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--color-rule-strong); background: var(--color-paper); box-shadow: 0 24px 60px var(--color-shadow); aspect-ratio: 1440 / 900; }
.shot-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot-frame img[hidden] { display: none; }
@media (max-width: 640px) { .shot-frame { aspect-ratio: 1 / 1; } .shot-frame img { object-position: 38% 0; } }
.shot figcaption { font-size: var(--text-lg); color: var(--color-ink-2); max-width: 70ch; }
.shot figcaption b { color: var(--color-ink); font-weight: 600; }

/* The prompt */
.prompt { max-width: 960px; margin-inline: auto; background: var(--color-night); color: var(--color-on-night); border-radius: var(--radius-card); overflow: hidden; }
.prompt-head { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-sm) var(--space-sm) var(--space-sm) var(--space-md); border-bottom: 1px solid var(--color-night-rule); }
.prompt-head h3 { margin-right: auto; }
.copy { min-height: 36px; padding: 0 var(--space-md); border-radius: var(--radius-pill); border: 0; background: var(--color-accent); color: var(--color-accent-ink); font: 600 var(--text-sm)/1 var(--font-body); cursor: pointer; }
.copy:hover { background: var(--color-on-night); }
.prompt pre { margin: 0; padding: var(--space-md); max-height: 420px; overflow: auto; white-space: pre-wrap; font: 400 0.8125rem/1.7 var(--font-mono); color: var(--color-on-night); }

/* Closing + footer */
.closing { padding-bottom: var(--space-2xl); }
.closing-card { background: var(--color-night); border-radius: var(--radius-big); padding: clamp(28px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg); }
.closing-card > div:first-child { display: grid; gap: var(--space-xs); min-width: 0; }
.closing-card p { color: var(--color-on-night-2); font-size: var(--text-lg); }
footer { border-top: 1px solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-md); padding-block: var(--space-md); }
footer a { text-decoration: none; }
footer a:hover { color: var(--color-ink); }
footer .brand { font-size: 1rem; color: var(--color-ink); }
footer .brand img { width: 22px; }

/* Pricing */
.price-hero { padding-block: var(--space-2xl) var(--space-xl); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-sm); align-items: stretch; }
@media (max-width: 1060px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: var(--space-sm); padding: var(--space-md); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-card); background: var(--color-paper); }
.plan.pick-me { border-color: var(--color-ink); box-shadow: 0 20px 48px var(--color-shadow); }
.plan .badge { position: absolute; top: -12px; left: var(--space-md); font: 600 var(--text-2xs)/1 var(--font-body); letter-spacing: 0.05em; text-transform: uppercase; padding: 6px 10px; border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-on-night); }
.plan h2 { font-size: var(--text-xl); font-weight: 700; }
.price { font: 800 clamp(2.25rem, 1.8rem + 1.5vw, 3rem)/1 var(--font-display); letter-spacing: -0.03em; }
.price small { font: 500 var(--text-sm)/1 var(--font-body); letter-spacing: 0; color: var(--color-muted); margin-left: 4px; }
.plan .sessions { font: 600 var(--text-md)/1.4 var(--font-body); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); align-content: start; font-size: var(--text-sm); color: var(--color-ink-2); }
.plan li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--space-2xs); }
.plan li::before { content: ""; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--color-focus); }
.plan.dark { background: var(--color-night); border-color: var(--color-night); color: var(--color-on-night); }
.plan.dark ul { color: var(--color-on-night-2); }
.plan.dark li::before { background: var(--color-accent); }
.plan.dark .price small { color: var(--color-on-night-2); }
.overage { margin-top: var(--space-md); text-align: center; color: var(--color-ink-2); }
.includes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); padding-block: var(--space-xl); border-top: 1px solid var(--color-rule); margin-top: var(--space-2xl); }
@media (max-width: 800px) { .includes { grid-template-columns: minmax(0, 1fr); } }
.includes div { display: grid; gap: var(--space-2xs); }
.includes p { color: var(--color-ink-2); }
.faq { max-width: 760px; margin-inline: auto; padding-bottom: var(--space-2xl); }
.faq h2 { margin-bottom: var(--space-md); }
.faq details { border-top: 1px solid var(--color-rule); padding-block: var(--space-sm); }
.faq details:last-child { border-bottom: 1px solid var(--color-rule); }
.faq summary { cursor: pointer; font: 600 var(--text-lg)/1.4 var(--font-body); list-style: none; display: flex; justify-content: space-between; gap: var(--space-sm); min-height: 44px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--color-muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--color-ink-2); padding-bottom: var(--space-2xs); max-width: 62ch; }

/* Privacy and terms: one column of prose at reading width */
.legal { max-width: calc(60ch + var(--gutter-l) + var(--gutter-r)); padding-block: var(--space-2xl); overflow-wrap: break-word; }
.legal-head { display: grid; gap: var(--space-xs); margin-bottom: var(--space-lg); }
.legal-head h1 { font-size: clamp(2.25rem, 1.8rem + 1.5vw, 3rem); font-weight: 800; letter-spacing: -0.035em; }
.legal-head .updated { font-size: var(--text-sm); color: var(--color-muted); }
.legal h2 { font-size: var(--text-xl); margin: var(--space-xl) 0 var(--space-xs); }
.legal p, .legal ul, .legal .table-scroll { color: var(--color-ink-2); }
.legal :is(p, ul, .table-scroll) + :is(p, ul, .table-scroll) { margin-top: var(--space-sm); }
.legal ul { margin-block: 0; padding-left: 1.25em; display: grid; gap: var(--space-2xs); }
.legal li::marker { color: var(--color-focus); }
.legal a { color: var(--color-ink); text-decoration-color: var(--color-rule-strong); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: currentColor; }
.legal strong { color: var(--color-ink); font-weight: 600; }
.legal code { font-size: 0.875em; background: var(--color-paper-2); padding: 2px 6px; border-radius: 6px; }
.legal .summary { margin-top: var(--space-lg); padding: var(--space-md); border-radius: var(--radius-card); background: var(--color-paper-2); }
.legal .summary h2 { margin-top: 0; font-size: var(--text-lg); }
.table-scroll { overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.legal th, .legal td { text-align: left; vertical-align: top; padding: var(--space-2xs) var(--space-sm) var(--space-2xs) 0; border-bottom: 1px solid var(--color-rule); }
.legal th { font-weight: 600; color: var(--color-ink); border-bottom-color: var(--color-rule-strong); }

/* Touch screens: every control at least 44 px tall */
@media (pointer: coarse) {
  .tabs button, .seg button, .copy, .icon-btn { min-height: 44px; }
  .icon-btn { min-width: 44px; }
}
@media (prefers-reduced-motion: reduce) { .pick, .pick::before, .stepper button::before, .btn { transition: none; } }
