/* Leg marketing site. Tokens and rules are documented in ../DESIGN.md. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-hyperlegible-next-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Azeret Mono";
  src: url("fonts/azeret-mono-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* The site runs on the board's own ramp. The values are the hex in
   src/board/board.css, not an approximation of it: a marketing page that
   recreates the product in a different palette is a picture of a different
   product. Emphasis here is elevation, never hue — the band that used to be a
   slab of blue is a raised surface now, and the one accent is spent on the
   primary action and nowhere else. */
:root {
  /* ground and elevation, hue 258 at a chroma too low to read as navy */
  --e0: #0E1012;
  --e1: #171A1D;
  --e2: #212427;
  --e3: #2C2F34;
  --e4: #363A40;
  --track: #2B2E32;

  /* the one accent */
  --accent: #5C91FF;
  --accent-hi: #7CADFF;
  --on-accent: #070D1A;

  /* the names the rest of this stylesheet already uses, repointed. `blue` is
     kept as a band name because that is what the markup calls it; it is a
     surface now, not a colour. */
  --blue: #171A1D;
  --blue-deep: #0E1012;
  --blue-rule: #35383D;
  --blue-hover: #2C2F34;
  --on-blue: #F3F4F7;
  --on-blue-muted: #B9BEC6;
  --on-blue-faint: #9399A1;

  --bg: #0E1012;
  --surface: #212427;
  --ink: #F3F4F7;
  --muted: #9399A1;
  --line: #35383D;
  --line-strong: #4A4E55;
  --control-edge: #686D75;
  --focus: #EDF2FA;

  /* identity: a dot beside a printed name and a gauge fill, never a border */
  --claude: #FCA169;
  --codex: #69DBBA;
  --agy: #CC97F3;
  --claude-ink: #FCA169;
  --codex-ink: #69DBBA;
  --agy-ink: #CC97F3;

  /* severity paints inside a track. It is not the colour of a word */
  --warn: #E0A33C;
  --bad: #E64343;
  --bad-text: #FF8A8A;
  --warn-text: #F0BE6E;
  --ok-text: #6FD68F;
  --ok: #3FA463;

  --sans: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  --mono: "Azeret Mono", ui-monospace, Consolas, Menlo, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 4vw, 56px);
  --fold: clamp(72px, 11vw, 160px);
  --wrap: 1120px;

  --r-panel: 16px;
  --r-well: 12px;
  --r-control: 10px;
  --lift: inset 0 1px 0 rgba(255,255,255,.05), 0 1px 2px rgba(0,0,0,.45), 0 18px 44px -14px rgba(0,0,0,.70);
  --sink: inset 0 1px 3px rgba(0,0,0,.50);

  --z-nav: 10;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { text-decoration-thickness: 2px; }
code, kbd, .mono {
  font-family: var(--mono);
  font-size: 0.88em;
  font-weight: 500;
}
b, strong { font-weight: 700; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.blue :focus-visible { outline-color: var(--warn); }

.skip {
  position: absolute; left: var(--gutter); top: -60px;
  padding: 10px 14px; background: var(--ink); color: var(--bg);
  border-radius: var(--r-control); z-index: 100;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* Bands */
.band { padding-block: var(--fold); }
.band.blue { background: var(--blue); color: var(--on-blue); line-height: 1.6; }
.band.blue + .band.blue { padding-top: 0; }
.band.light + .band.light { padding-top: 0; }
.band.light + .band.light .wrap::before,
.band.blue + .band.blue .wrap::before {
  content: ""; display: block; height: 1px; margin-bottom: var(--fold);
}
.band.light + .band.light .wrap::before { background: var(--line); }
.band.blue + .band.blue .wrap::before { background: var(--blue-rule); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: var(--blue); color: var(--on-blue);
  border-bottom: 1px solid var(--blue-rule);
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 60px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 26px; height: 26px; flex: none; }
.nav-links { display: flex; gap: clamp(14px, 2vw, 28px); font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav-links a:hover { border-bottom-color: var(--on-blue); }
.nav-links .repo { padding: 8px 14px; border: 1px solid var(--control-edge); border-radius: var(--r-control); border-bottom-width: 1px; }
.nav-links .repo:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* Type */
h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 14ch;
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 18ch;
}
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3125rem); line-height: 1.5; max-width: 58ch; }
p { max-width: 66ch; text-wrap: pretty; }
.muted { color: var(--muted); }
.blue .muted { color: var(--on-blue-muted); }
.small { font-size: 15px; }
.stack > * + * { margin-top: 20px; }
.stack-tight > * + * { margin-top: 12px; }

/* Two-column folds */
.cols {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.cols.rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.cols > * { min-width: 0; }

/* Command rows */
.commands { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.cmd {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--line);
  background: var(--e0);
  border-radius: var(--r-well);
  color: var(--on-blue);
  box-shadow: var(--sink);
}
.light .cmd { border-color: var(--line); background: var(--e1); color: var(--on-blue); }
.cmd code { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.copy {
  flex: none;
  min-height: 36px; padding: 6px 12px;
  border: 1px solid var(--blue-rule); background: transparent; color: inherit;
  border-radius: var(--r-control); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 220ms var(--ease), color 220ms var(--ease);
}
.light .copy { border-color: var(--control-edge); }
.copy:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.light .copy:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.copy[data-done="1"] { background: var(--ok); color: var(--blue-deep); border-color: var(--ok); }

/* Hero */
.hero .wrap { display: grid; gap: clamp(28px, 4vw, 44px); }
.hero .facts { max-width: 60ch; color: var(--on-blue-muted); font-size: 15px; }

/* Marker rule: the signature. A hairline with short tabs sitting on it. */
.marker {
  position: relative;
  border-top: 1px solid var(--blue-rule);
  padding-top: 14px;
  display: flex; flex-wrap: wrap; gap: 8px 32px;
  font-size: 15px;
}
.light .marker { border-top-color: var(--line-strong); }
.marker .tab { display: inline-flex; align-items: baseline; gap: 12px; position: relative; padding-top: 2px; }
.marker .tab::before {
  content: ""; position: absolute; left: 0; top: -15px; width: 2px; height: 14px;
  background: var(--on-blue);
}
.light .marker .tab::before { background: var(--ink); }
.marker .tab.warn::before { background: var(--warn); }
.marker .tab.bad::before { background: var(--bad); }
.marker .tab.ok::before { background: var(--ok); }
.marker code { font-size: 14px; font-weight: 600; }
.marker.after { margin-top: 0; border-top: 0; padding-top: 0; }
.marker.after .tab::before { top: auto; bottom: 100%; height: 14px; }

/* Live terminal */
.live { --term-fg: var(--on-blue); }
.live-head { display: grid; gap: 18px; margin-bottom: 40px; }
.term {
  background: var(--e0);
  border-radius: var(--r-panel);
  box-shadow: var(--sink);
  border-top: 2px solid var(--claude);
  color: var(--on-blue);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  overflow: hidden;
  transition: border-color 400ms var(--ease);
}
.term[data-owner="codex"] { border-top-color: var(--codex); }
.term-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--on-blue-muted);
}
.term-strip .who { font-weight: 600; color: var(--on-blue); }
.term-strip .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--claude); margin-right: 8px; vertical-align: 1px; }
.term[data-owner="codex"] .term-strip .dot { background: var(--codex); }
.bar { display: inline-flex; align-items: center; gap: 10px; }
.bar i { display: inline-block; width: 120px; height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar i::before {
  content: ""; display: block; height: 100%; width: 100%;
  transform: scaleX(var(--p, 0)); transform-origin: left center;
  background: var(--fill, var(--ok));
  transition: transform 900ms var(--ease), background 400ms var(--ease);
}
.bar[data-state="warn"] i::before { background: var(--warn); }
.bar[data-state="limit"] i::before { background: var(--bad); }
.bar[data-state="warn"] b { color: var(--warn-text); }
.bar[data-state="limit"] b { color: var(--bad-text); }
.bar b { font-weight: 600; min-width: 4ch; display: inline-block; }
.term-strip .bell { margin-left: auto; color: var(--warn-text); font-weight: 600; opacity: 0; transition: opacity 300ms var(--ease); }
.term-strip .bell[data-on="1"] { opacity: 1; }
.term-body { padding: 22px 20px 26px; min-height: 200px; }
.term-body .ln { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.term-body .ln[hidden] { display: none; }
.term-body .ln.sh { color: var(--on-blue-muted); }
.term-body .ln.sh b { color: var(--on-blue); font-weight: 600; }
.term-body .ln.you { color: var(--on-blue); font-weight: 600; }
.term-body .ln.you::before { content: "> "; color: var(--claude); }
.term[data-owner="codex"] .term-body .ln.you.codex::before { color: var(--codex); }
.term-body .ln.out { color: var(--on-blue-muted); padding-left: 2ch; }
.term-body .ln.out .k { display: inline-block; min-width: 7ch; color: var(--on-blue-faint); }
.term-body .ln.out .fail { color: var(--warn-text); }
.term-body .ln.leg, .term-body .ln.baton { color: var(--on-blue); font-weight: 600; }
.term-body .ln.leg::before, .term-body .ln.baton::before { content: "[leg] "; color: var(--warn); font-weight: 700; }
.term-body .ln.limit { color: var(--bad-text); }
.term-body .ln.gap { height: 0.85em; }
.term-body .caret::after {
  content: ""; display: inline-block; width: 0.6ch; height: 1.1em; vertical-align: -0.2em;
  background: var(--on-blue); margin-left: 2px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.term-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 18px; font-size: 15px; color: var(--on-blue-muted); }
.replay {
  min-height: 40px; padding: 8px 16px;
  border: 1px solid var(--on-blue); background: transparent; color: var(--on-blue);
  border-radius: var(--r-control); font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background 220ms var(--ease), color 220ms var(--ease);
}
.replay:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.replay[hidden] { display: none; }

/* Plates and tables */
.plate {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: var(--lift);
}
.blue .plate { background: var(--e2); border-color: var(--line); color: var(--on-blue); }
.before-after { font-family: var(--mono); font-size: 14px; }
.before-after > div { display: grid; grid-template-columns: 7ch 1fr; gap: 16px; padding: 16px 20px; }
.before-after > div + div { border-top: 1px solid var(--line); }
.before-after .k { color: var(--muted); }
.before-after .b { color: var(--accent); font-weight: 700; }

table.reads { width: 100%; border-collapse: collapse; font-size: 15.5px; }
table.reads th, table.reads td { text-align: left; vertical-align: top; padding: 16px 18px 16px 0; border-top: 1px solid var(--line); }
table.reads thead th { border-top: 0; padding-top: 0; color: var(--muted); font-weight: 500; font-size: 14px; }
table.reads td:first-child { white-space: nowrap; font-family: var(--mono); font-size: 14px; font-weight: 600; }
table.reads .sw { display: inline-block; width: 9px; height: 9px; border-radius: 999px; margin-right: 10px; vertical-align: 0; }
.sw.claude { background: var(--claude-ink); }
.sw.codex { background: var(--codex-ink); }
.sw.agy { background: var(--agy-ink); }
.table-wrap { overflow-x: auto; }

/* Board recreation. The same anatomy as src/board/, at marketing scale: a
   verdict sentence, login panels sized by how much they matter, terminal rows
   inside one panel, and history as counts on the ground. */
.board {
  background: var(--e0);
  color: var(--on-blue);
  border-radius: var(--r-panel);
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 32px);
  font-size: 15px;
  box-shadow: var(--lift);
}
.rc-verdict { font-size: clamp(1.4rem, 2.6vw, 2.125rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.022em; max-width: 24ch; }
.rc-sub { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--on-blue-muted); max-width: 56ch; }

.rc-logins { margin-top: 28px; display: grid; gap: 14px; }
.rc-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.rc-panel {
  background: var(--e2);
  border: 1px solid var(--line);
  border-radius: var(--r-well);
  padding: 18px;
  box-shadow: var(--lift);
}
.rc-lit { box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 1px 2px rgba(0,0,0,.45), 0 22px 52px -14px rgba(0,0,0,.75); }
.rc-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.rc-who { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.rc-dot { width: 8px; height: 8px; border-radius: 999px; flex: none; }
.rc-dot.claude { background: var(--claude); }
.rc-dot.codex { background: var(--codex); }
.rc-dot.agy { background: var(--agy); }
.rc-note { font-size: 14px; color: var(--on-blue-faint); }

.rc-gauge { display: flex; align-items: center; gap: 14px; }
.rc-gauge + .rc-gauge { margin-top: 16px; }
.rc-label { flex: none; width: 56px; font-size: 14px; color: var(--on-blue-faint); }
.rc-track { flex: 1 1 auto; min-width: 0; position: relative; height: 14px; background: var(--track); border-radius: 999px; box-shadow: inset 0 1px 2px rgba(0,0,0,.45); overflow: hidden; }
.rc-minor .rc-track { height: 8px; }
.rc-track i { position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 999px; background: linear-gradient(to right, var(--claude) 0 var(--stop), var(--bad) var(--stop) 100%); }
.rc-track u { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--e1); }
.rc-read { flex: none; min-width: 4ch; text-align: right; font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.rc-minor .rc-read { font-size: 1.1875rem; }
.rc-reading { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.012em; }
.rc-readsub { margin-top: 6px; font-size: 14px; color: var(--on-blue-muted); }
.rc-lead { margin-top: 16px; }

.rc-terms { margin-top: 14px; background: var(--e2); border: 1px solid var(--line); border-radius: var(--r-well); box-shadow: var(--lift); }
.rc-term { display: flex; align-items: center; gap: 20px; padding: 18px; }
.rc-term + .rc-term { border-top: 1px solid var(--line); }
.rc-body { flex: 1 1 auto; min-width: 0; }
.rc-reg { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--on-blue-faint); }
.rc-state { display: inline-flex; align-items: center; gap: 7px; color: var(--on-blue-muted); font-weight: 700; }
.rc-mark { width: 8px; height: 8px; border-radius: 999px; flex: none; background: var(--on-blue-faint); }
.rc-mark.bad { background: var(--bad); }
.rc-mark.run { background: var(--on-blue); }
.rc-where { color: var(--on-blue-muted); overflow-wrap: anywhere; }
.rc-chip { color: var(--on-blue-faint); }
.rc-prompt { margin-top: 10px; font-size: 15px; line-height: 1.45; max-width: 60ch; }
.rc-empty { color: var(--on-blue-faint); }
.rc-files { margin-top: 8px; font-size: 14px; color: var(--on-blue-faint); }
.rc-files .hot { color: var(--warn-text); }
.rc-note-ok { margin-top: 8px; font-size: 14px; color: var(--ok-text); }
.rc-note-bad { margin-top: 8px; font-size: 14px; color: var(--bad-text); }
.rc-hoisted { margin-top: 14px; font-size: 14px; color: var(--on-blue-muted); }
.rc-clock { flex: none; display: flex; align-items: baseline; gap: 12px; font-size: 14px; color: var(--on-blue-faint); white-space: nowrap; }
.rc-id { font-family: var(--mono); }
.rc-btns { flex: none; display: flex; gap: 8px; }
.rc-btns b, .rc-btns span {
  padding: 8px 14px; border-radius: var(--r-control); font-size: 14px; font-weight: 700;
  border: 1px solid transparent; white-space: nowrap;
}
.rc-btns b { background: var(--accent); color: var(--on-accent); }
.rc-btns span { background: var(--e3); color: var(--on-blue); border-color: var(--control-edge); }

.rc-ledger { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.rc-ledger b { display: block; font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.012em; }
.rc-ledger span { display: block; margin-top: 4px; font-size: 14px; color: var(--on-blue-faint); }

figure.recreated > figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 70ch; }
/* a real screenshot, not a recreation: the board's own surface is dark, so it
   sits on the page as its own plate rather than borrowing the band's colour */
figure.shot { margin-top: 40px; }
figure.shot img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid rgba(255,255,255,.10); }
figure.shot > figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 70ch; }
.blue figure.shot > figcaption { color: var(--on-blue-muted); }
.blue figure.recreated > figcaption { color: var(--on-blue-muted); }

/* Two-session pair */
.pair.rc-terms { background: var(--e2); }

/* Changeover */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px clamp(24px, 3vw, 48px); }
.steps .step { border-top: 1px solid var(--blue-rule); padding-top: 14px; position: relative; }
.steps .step::before { content: ""; position: absolute; left: 0; top: -1px; width: 28px; height: 2px; background: var(--on-blue); }
.steps .step.warn::before { background: var(--warn); }
.steps .step.bad::before { background: var(--bad); }
.steps .step.ok::before { background: var(--ok); }
.steps .step > code { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.steps .step p { font-size: 15.5px; }

/* Touched lists */
.touched { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px clamp(24px, 3vw, 48px); }
.touched h3 { padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); margin-bottom: 14px; }
.touched li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.touched li:last-child { border-bottom: 0; }
.touched code { font-size: 13.5px; }

/* Install and footer */
.install .wrap { display: grid; gap: 28px; }
.links { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; }
footer { background: var(--blue-deep); color: var(--on-blue-muted); font-size: 14px; padding-block: 28px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
footer a { color: var(--on-blue); }

/* Responsive */
@media (max-width: 860px) {
  .cols, .cols.rev { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
  .nav-links .hide-sm { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { max-width: none; }
  /* PRODUCT.md floors body text at 14px on mobile. Every run that sits below
     it at desktop is raised here, once, instead of in each rule. */
  .term, .term-strip, .small, .links, .marker, table.reads thead th,
  .rc-note, .rc-label, .rc-reg, .rc-files, .rc-clock, .rc-readsub,
  .rc-ledger span, .rc-sub, figure.recreated > figcaption,
  .card .meta, .chip, .pill, .landed, .before-after, .touched code,
  .steps .step > code, .marker code { font-size: 14px; }
  .term { font-size: 14px; }
  code { font-size: 1em; }
  .term-body { padding: 18px 14px 22px; }
  .term-strip { padding: 10px 14px; }
  .bar i { width: 90px; }
  .cmd { align-items: stretch; flex-direction: column; gap: 10px; }
  .copy { align-self: flex-start; }
  .nav .wrap { min-height: 56px; }
  .before-after > div { grid-template-columns: 1fr; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* Dark product surfaces inside light bands */
.board .muted, .pair .muted { color: var(--on-blue-muted); }

/* Touch targets and phone label floor */
@media (pointer: coarse) {
  .copy, .replay { min-height: 44px; }
  .nav-links a { padding-block: 12px; }
  .nav-links .repo { padding-block: 10px; }
}
@media (max-width: 560px) {
  .tag, .chip, .card .meta, .card .age, .pill, .landed, .board-top, .card .bars, .card .flag { font-size: 13px; }
}

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.plan { padding: 28px 28px 26px; display: flex; flex-direction: column; gap: 14px; }
.plan .buy { margin-top: auto; }
.plan h3 { font-size: 1.4rem; }
.plan .price { font-size: 1.05rem; color: var(--muted); }
.plan .price b { font-size: 2.4rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; margin-right: 6px; }
.plan ul { display: grid; gap: 8px; margin-top: 4px; }
.plan li { padding-left: 18px; position: relative; font-size: 15.5px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 2px; background: var(--blue); }
.buy {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; margin-top: 10px;
  background: var(--blue); color: var(--on-blue); text-decoration: none; font-weight: 700; border-radius: var(--r-control);
  transition: background 220ms var(--ease);
}
.buy:hover { background: var(--blue-hover); }

/* The recording of a real handoff. It sits after the animated transcript: the
   transcript explains the shape, this proves it happened. preload="none" keeps
   the 6.5 MB off every page load; the poster carries the weight until a click. */
.demo { margin: 56px 0 0; display: grid; gap: 20px; }
.demo figcaption { display: grid; gap: 8px; max-width: 62ch; }
.demo figcaption h3 { font-size: clamp(20px, 2.4vw, 27px); line-height: 1.2; letter-spacing: -0.01em; }
.demo figcaption p { font-size: 16px; line-height: 1.6; }
.demo video {
  width: 100%;
  height: auto;
  display: block;
  background: var(--e0);
  border: 1px solid var(--blue-rule);
  border-radius: var(--r-panel);
  box-shadow: var(--lift);
}
