/* Silent Split. Direction "The product performs" (seed 1190746258): League Spartan / Figtree, night
   and cornflower. Interface fragments (data-ui) follow the "data terminal" app style (seed 629240820). */

:root {
  --bg: #0a0d14;
  --surface: #131824;
  --raised: #1a2030;
  --ink: #e9edf3;
  --muted: #8f98a8;
  --accent: #a497f5;
  --accent-ink: #0a0d14;
  --paper: #e9edf3;
  --paper-ink: #0a0d14;
  --paper-muted: #4a5262;
  --bad: #f07a7a;
  --good: #6fd3a0;

  --font-display: 'League Spartan', system-ui, sans-serif;
  --font-text: 'Figtree', system-ui, sans-serif;
  --font-code: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; /* taste-skill-ignore: literal code only (identities, diffs) */

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --step-head: clamp(1.875rem, 1.2rem + 2.8vw, 3.5rem);
  --step-display: clamp(3rem, 1.1rem + 4.6vw, 4.75rem);

  --margin: clamp(1.25rem, 2.8vw, 2.5rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(5rem, 9vw, 9rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-reveal: 800ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; background: var(--surface); }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 5rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
code, pre { font-family: var(--font-code); }
code { font-size: 0.9em; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; line-height: 0.92; text-wrap: balance; }
h2 { font-size: var(--step-head); }
p { max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 0.9em; }
.nums { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: var(--step-small); line-height: 1.45; }
.lead { font-size: var(--step-lead); line-height: 1.35; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding-top: var(--section); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 1.25rem; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button.quiet { background: var(--raised); color: var(--ink); }
.link { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: #bfb6fb; }
  .button.quiet:hover { background: #262e42; }
  .link:hover { text-decoration-color: currentColor; }
}

/* ---------- navigation ---------- */
.nav { display: flex; align-items: baseline; justify-content: space-between; padding: 28px var(--margin) 0; position: relative; z-index: 2; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.04em; text-decoration: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); font-size: 0.9375rem; }
.nav a:not(.wordmark) { text-decoration: none; color: var(--muted); transition: color var(--t-hover) ease; }
.nav a:not(.wordmark):hover, .nav a[aria-current] { color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(64px, 9vh, 120px); padding-bottom: clamp(48px, 8vh, 96px); }
.hero h1 { font-size: var(--step-display); max-width: 14em; }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: clamp(32px, 5vh, 56px); align-items: start; }
.hero-copy { grid-column: 1 / span 5; }
.hero .intro { max-width: 46ch; }
.hero .intro .link { color: var(--ink); }
.hero .second { margin-top: 18px; max-width: 46ch; color: var(--muted); }
.hero .second .link { color: var(--ink); }
.hero .actions { margin-top: 32px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.hero .caveat { margin-top: 36px; padding-top: 18px; border-top: 2px solid var(--raised); max-width: 46ch; color: var(--ink); }
.stage { grid-column: 7 / span 6; }
.stage-cap { color: var(--muted); margin-bottom: 10px; }
.stage .lane { border-radius: 6px; }
.stage .rows tbody tr:nth-child(n+7) { display: none; }

/* ---------- the visitor lane (data-ui fragment) ---------- */
.lane { background: var(--surface); color: var(--ink); font-size: 14px; line-height: 1.4; border-radius: 6px 6px 0 0; }
.lane-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px 0; border-bottom: 1px solid #262d3d; } /* taste-skill-ignore: data-ui fragment, the app style's 1px selection rule */
.lane-tabs { display: flex; gap: 22px; }
.lane-tabs button { padding: 10px 0 11px; color: var(--muted); font-size: 14px; border-bottom: 1px solid transparent; margin-bottom: -1px; transition: color var(--t-hover) ease; } /* taste-skill-ignore: data-ui fragment */
.lane-tabs button[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--accent); }
.lane-tabs button:hover { color: var(--ink); }
.lane-run { color: var(--muted); font-size: 13px; }
.lane-body { padding: 18px; }
.crowd { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 4px; }
.crowd .who { display: grid; justify-items: center; gap: 6px; }
.crowd svg { width: 100%; max-width: 22px; height: auto; }
.crowd .fig { fill: var(--muted); transition: fill 300ms ease, opacity 300ms ease; }
.crowd .who.trial .fig { fill: var(--ink); }
.crowd .who.waiting .fig { opacity: 0.18; }
.crowd .signed { fill: var(--accent); opacity: 0; transition: opacity 200ms ease; }
.crowd .who.converted .signed { opacity: 1; }
.ids { position: relative; height: 26px; margin-top: 8px; }
.ids .id { position: absolute; top: 0; height: 22px; background: var(--raised); border-left: 2px solid var(--accent); font-size: 12.5px; color: var(--ink); overflow: hidden; white-space: nowrap; padding: 2px 6px; transform-origin: left; transition: transform 260ms var(--ease-out); }
.ids .id.waiting { transform: scaleX(0); }
.ids .id.one { background: #3a2429; border-left-color: var(--bad); }
.tally { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 14px; background: #262d3d; }
.tally div { background: var(--surface); padding: 10px 12px; }
.tally dt { color: var(--muted); font-size: 13px; }
.tally dd { font-size: 22px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.tally dd.bad { color: var(--bad); }
.rows { margin-top: 14px; width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rows th { text-align: left; font-weight: 400; color: var(--muted); font-size: 13px; padding: 0 8px 6px 0; }
.rows td { padding: 0 8px 0 0; height: 28px; border-top: 1px solid #1f2533; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 0; }
.rows td:first-child { width: 12%; color: var(--muted); }
.rows td:nth-child(2) { width: 46%; }
.rows tr.waiting td { opacity: 0.25; }
.rows .bad { color: var(--bad); }
.verdict { margin-top: 14px; padding: 12px 14px; background: var(--raised); font-size: 14px; }
.verdict strong { font-weight: 600; }
.verdict.bad strong { color: var(--bad); }
.verdict.good strong { color: var(--good); }

/* ---------- the idea: pinned fragment, changing state ---------- */
.pinned { align-items: start; }
.pinned .steps { grid-column: 1 / span 5; padding: 31vh 0 25vh; }
.idea-head { font-size: var(--step-head); }
.idea-intro { margin-top: 20px; max-width: 52ch; }
.pinned .step { min-height: 55vh; display: flex; flex-direction: column; justify-content: center; }
.pinned .step p:first-child { font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem); line-height: 1.2; letter-spacing: -0.01em; color: var(--muted); max-width: 22ch; transition: color 300ms ease; }
.pinned .step.active p:first-child { color: var(--ink); }
.pinned .step p + p { font-size: 1rem; margin-top: 14px; max-width: 40ch; }
.pinned .holder { grid-column: 7 / span 6; position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.pinned .board { background: var(--raised); padding: 32px; width: 100%; }
.pinned .state { display: none; }
.pinned .state.on { display: block; }

.term { background: var(--surface); font-size: 15px; line-height: 1.6; padding: 20px 22px; border-radius: 6px; overflow: hidden; }
.term .k { color: var(--muted); }
.term .v { color: var(--accent); }
.term pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--font-code); font-size: 14.5px; line-height: 1.65; }
.term pre .add { color: var(--good); }
.term h3 { font-family: var(--font-text); font-weight: 600; letter-spacing: 0; font-size: 15px; line-height: 1.4; margin-bottom: 12px; }
.term + .term, .lane + .term { margin-top: 18px; }

/* ---------- would you ship it: input half, output half ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 90svh; position: relative; --split-h: clamp(2.5rem, 5vw, 5rem); --split-top: calc(56px + var(--split-h) + 56px); }
.split .left { background: #05070c; padding: var(--split-top) var(--margin) 96px calc(100% / 12 * 1 + var(--margin)); }
.split .right { background: var(--paper); color: var(--paper-ink); padding: var(--split-top) var(--margin) 96px; }
.split .report { font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.3rem); line-height: 1.5; max-width: 36ch; white-space: pre-wrap; }
.split .report code { font-size: 0.85em; color: var(--accent); }
.split .meta { color: var(--muted); font-size: var(--step-small); margin-bottom: 18px; }
.split .right .meta { color: var(--paper-muted); }
.split h2 { position: absolute; top: 56px; font-size: var(--split-h); line-height: 1; }
.split h2 .a { position: absolute; right: calc(50% + 24px); bottom: 0; white-space: nowrap; color: var(--ink); }
.split h2 .b { position: absolute; left: calc(50% + 24px); bottom: 0; white-space: nowrap; color: var(--paper-ink); }
.split h2 { left: 0; right: 0; height: 1em; }
.appshot { width: 100%; max-width: 520px; height: auto; background: #fff; }
.choices { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; align-items: center; }
.choices .button.dark { background: var(--paper-ink); color: var(--paper); }
.choices .button.outline { background: #d3d9e3; color: var(--paper-ink); }
.choices a { color: var(--paper-ink); }
.reveal { margin-top: 22px; max-width: 520px; }
.reveal[hidden] { display: none; }
.reveal .lane { border-radius: 6px; }
.reveal p.says { margin-top: 14px; font-size: 1.0625rem; }
.score { margin-top: 18px; color: var(--paper-muted); font-size: var(--step-small); }

/* ---------- why it breaks: notes beside the page ---------- */
.exhibit { align-items: start; }
.exhibit .notes { grid-column: 1 / span 5; }
.exhibit .notes h2 { margin-bottom: 24px; }
.exhibit .notes .intro-copy { margin-bottom: 48px; color: var(--muted); max-width: 44ch; }
.note { padding: 22px 0 26px; }
.note strong { display: block; color: var(--bad); font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); letter-spacing: -0.04em; line-height: 1; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.note p { max-width: 44ch; }
.page { grid-column: 7 / span 6; background: #f5f7fa; color: #1b2230; font-size: 14px; line-height: 1.55; padding: 32px 36px 100px; max-height: 1180px; overflow: hidden; position: relative; border-radius: 6px; }
.page h3, .page h4 { font-family: var(--font-text); letter-spacing: 0; color: #0b1220; line-height: 1.3; }
.page h3 { font-size: 22px; margin: 0 0 10px; }
.page h4 { font-size: 15px; margin: 22px 0 8px; }
.page p { margin: 8px 0; max-width: none; }
.page .tabs { display: flex; gap: 2px; flex-wrap: wrap; margin: 10px 0; }
.page .tabs span { padding: 5px 10px; background: #e3e8ef; font-size: 13px; }
.page .tabs span.on { background: #fff; box-shadow: inset 0 -2px 0 #2b6fd6; } /* taste-skill-ignore: data-ui fragment, the docs page's own tab underline */
.page pre { background: #0f1420; color: #d7deea; padding: 12px 14px; font-size: 12.5px; line-height: 1.5; margin: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 4px; }
.page mark { background: #ffe58a; color: #0b1220; padding: 0 2px; }
.page .pin { position: relative; outline: 2px solid #2b6fd6; outline-offset: 4px; }
.page .tag { display: inline-block; background: #2b6fd6; color: #fff; font-size: 12px; padding: 1px 7px; margin-left: 6px; vertical-align: 2px; }
.page::after { content: ''; position: absolute; left: 0; right: 0; bottom: 64px; height: 56px; background: linear-gradient(to bottom, rgba(245, 247, 250, 0), #f5f7fa); }
.page .credit { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; color: #4a5262; font-size: 13px; background: #f5f7fa; padding: 14px 36px 18px; margin: 0; }

/* ---------- the fix: comparison set as text ---------- */
.compare h2 { margin-bottom: 48px; max-width: 14em; }
.checklist { margin-bottom: 72px; }
.checklist ol { padding-left: 1.4em; columns: 2; column-gap: 64px; }
.checklist li { max-width: 60ch; padding-left: 4px; margin-bottom: 18px; break-inside: avoid; }
.checklist li::marker { font-family: var(--font-display); font-weight: 700; color: var(--accent); }
.checklist li strong { font-weight: 600; }
.checklist .src { margin-top: 20px; color: var(--muted); }
.ctable { display: grid; grid-template-columns: 5fr repeat(3, 2.33fr); position: relative; }
.ctable .feat { position: absolute; top: -24px; bottom: 0; left: calc(100% * 9.66 / 11.99); width: calc(100% * 2.33 / 11.99); background: var(--accent); }
.ctable > div { position: relative; z-index: 1; padding: 0 16px; min-height: 68px; display: flex; align-items: center; font-size: 17px; font-variant-numeric: tabular-nums; }
.ctable > div.name { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); font-weight: 600; }
.ctable > div.alt { background: var(--surface); }
.ctable > div.c3 { color: var(--accent-ink); font-weight: 600; background: transparent; }
.ctable > div.c3.alt { background: transparent; }
.ctable > div.head { font-weight: 700; min-height: 56px; }
.ctable .bandfill { grid-column: 1 / -1; }
.compare .after { margin-top: 40px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.compare .after p { grid-column: 1 / span 7; }
.compare .after p.muted { grid-column: 8 / span 5; }
.compare .after p + p { margin-top: 0; }

/* ---------- the side effect: bars standing on the edge ---------- */
.bars { position: relative; overflow: hidden; }
.bars .figure { color: var(--bad); font-family: var(--font-display); font-weight: 700; font-size: clamp(88px, 10vw, 168px); letter-spacing: -0.05em; line-height: 0.85; font-variant-numeric: tabular-nums; }
.bars h2 { font-family: var(--font-text); font-size: 28px; letter-spacing: -0.01em; font-weight: 600; line-height: 1.2; margin-top: 18px; max-width: 24ch; }
.bars .copy { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.bars .copy > div { grid-column: 1 / span 5; }
.bars .copy > .story { grid-column: 7 / span 6; padding-top: 12px; }
.chart { margin: 72px 0 0; display: grid; gap: 14px; }
.chart figcaption { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; margin-bottom: 10px; }
.chart figcaption strong { font-size: 20px; font-weight: 600; }
.chart figcaption span { color: var(--muted); font-size: 15px; }
.hbar { display: grid; grid-template-columns: minmax(150px, 240px) 1fr 96px; gap: 20px; align-items: center; }
.hbar .lbl { font-size: 17px; font-weight: 600; line-height: 1.2; }
.hbar small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.hbar .track { display: block; height: 40px; background: var(--surface); }
.hbar .fill { display: block; height: 100%; width: calc(var(--v) * 100%); background: #4a5368; transition: width 900ms var(--ease-out); }
.hbar.bad .fill { background: var(--bad); }
.hbar.good .fill { background: var(--good); }
.hbar .val { font-size: 24px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hbar.bad .val { color: var(--bad); }
.js .chart.waiting .fill { width: 0; }

/* ---------- the loop: round tabs, banded agenda ---------- */
.agenda .top { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.agenda h2 { font-size: clamp(2.25rem, 1.5rem + 2.5vw, 3.75rem); }
.agenda h2 span { display: block; color: var(--muted); }
.agenda .body { display: grid; grid-template-columns: 190px 1fr; gap: 40px; margin-top: 56px; }
.agenda .tabs { display: grid; gap: 6px; align-content: start; }
.agenda .tabs button { width: 100%; min-height: 64px; background: var(--surface); text-align: left; padding: 10px 16px; transition: background var(--t-hover) ease; }
.agenda .tabs button span { display: block; font-size: 16px; }
.agenda .tabs button small { display: block; font-size: 13px; color: var(--muted); }
.agenda .tabs button[aria-selected='true'] { background: var(--ink); color: var(--bg); }
.agenda .tabs button[aria-selected='true'] small { color: #3d4555; }
.agenda .tabs button:hover:not([aria-selected='true']) { background: var(--raised); }
.agenda .day { display: none; }
.agenda .day.on { display: grid; gap: 4px; }
.band { display: grid; grid-template-columns: 1.1fr 3fr 1.3fr 1.3fr; align-items: center; gap: 16px; min-height: 76px; padding: 12px 20px; background: var(--surface); }
.band:nth-child(even) { background: var(--raised); }
.band .n { font-size: 20px; font-variant-numeric: tabular-nums; }
.band .t { font-size: 18px; font-weight: 600; }
.band .t small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.band .m { font-size: 15px; font-variant-numeric: tabular-nums; }
.band .m small { display: block; color: var(--muted); font-size: 13px; }
.band.v4strip { grid-template-columns: 3fr 2fr; gap: 40px; align-items: start; padding: 24px 20px 20px; }
.v4strip .lab { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }
.v4strip .track { position: relative; height: 56px; margin: 10px 0 6px; }
.v4strip .track i { position: absolute; display: block; }
.v4strip .zero { top: 4px; bottom: 18px; width: 0; border-left: 1px dashed var(--muted); }
.v4strip .zero b { position: absolute; top: -2px; left: 6px; font-size: 12px; font-weight: 400; color: var(--muted); }
.v4strip .whisk { top: 18px; height: 4px; background: var(--accent); border-radius: 2px; }
.v4strip .dot { top: 13px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--accent); }
.v4strip .end { position: absolute; bottom: 0; transform: translateX(-50%); font-size: 13px; font-variant-numeric: tabular-nums; }
.v4strip .swap p { display: flex; justify-content: space-between; gap: 16px; margin: 10px 0 0; font-size: 16px; }
.v4strip .swap p b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.v4strip .swap .lab:last-child { margin-top: 12px; }
.band.decision { background: var(--accent); color: var(--accent-ink); }
.band.decision .t { grid-column: 1 / -1; }
.band.decision .t small { max-width: 90ch; font-size: 14px; margin-top: 4px; }
.band.decision small { color: #1d2a44; }
.agenda .loopnote { margin-top: 40px; display: grid; grid-template-columns: 190px 1fr; gap: 40px; }
.agenda .loopnote p { grid-column: 2; max-width: 70ch; }

/* ---------- Flagsmith's own prompt: wide picture, colour tile, facts ---------- */
.mosaic h2 { font-size: clamp(2.5rem, 4vw, 3.75rem); }
.mosaic .lead { margin-top: 24px; grid-column: 1 / span 7; max-width: 46ch; }
.mosaic .tiles { margin-top: 72px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; }
.mosaic .shot { grid-column: 1 / span 8; }
.mosaic .shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; background: #fff; }
.mosaic .shot .over { margin-top: 14px; max-width: 62ch; font-size: 16px; line-height: 1.5; }
.mosaic .side { grid-column: 9 / span 4; }
.mosaic .tile { background: var(--accent); color: var(--accent-ink); padding: 28px; display: grid; align-content: start; }
.mosaic .tile .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mosaic .tile b { display: block; font-family: var(--font-display); font-size: clamp(3rem, 2rem + 3vw, 5rem); line-height: 0.9; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.mosaic .tile a { text-decoration: none; color: inherit; }
.mosaic .tile a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.mosaic .tile span { display: block; font-size: 15px; margin-top: 8px; line-height: 1.3; }
.mosaic .facts { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: 14px; }
.mosaic .facts dt { color: var(--muted); }
.mosaic .verdict-line { margin-top: 28px; grid-column: 1 / span 8; }

/* ---------- Flagsmith decides: three pictures, three lines ---------- */
.fs h2 { font-size: var(--step-head); }
.fs .lead { margin-top: 20px; max-width: 52ch; }
.trio { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px var(--gutter); align-items: start; }
.trio figure { display: grid; grid-template-rows: subgrid; grid-row: span 2; align-content: start; }
.trio figure:first-child { grid-column: 1 / -1; }
.trio .crop { overflow: hidden; border-radius: 6px; }
.trio img { width: 100%; height: auto; background: transparent; }
.trio figcaption { font-size: 16px; max-width: 40ch; padding-bottom: 34px; }
.trio figcaption strong { font-weight: 600; }
.also { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); max-width: 1100px; }
.also li { font-size: 15px; color: var(--muted); border-top: 2px solid var(--raised); padding-top: 14px; }
.also strong { color: var(--ink); font-weight: 600; }

/* ---------- questions: index, one answer ---------- */
.qa { align-items: start; }
.qa .qs { grid-column: 1 / span 5; }
.qa .qs h2 { font-family: var(--font-text); font-size: 18px; letter-spacing: 0; font-weight: 600; line-height: 1.4; color: var(--muted); margin-bottom: 18px; }
.qa .qs button { display: flex; gap: 14px; align-items: baseline; text-align: left; font-size: 18px; line-height: 1.4; color: var(--muted); padding: 9px 0; width: 100%; transition: color var(--t-hover) ease; }
.qa .qs button::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); transform: translateY(-2px); }
.qa .qs button[aria-selected='true'] { color: var(--ink); }
.qa .qs button[aria-selected='true']::before { background: var(--accent); }
.qa .qs button:hover { color: var(--ink); }
.qa .pane { grid-column: 7 / span 6; position: sticky; top: 120px; }
.qa .answer { display: none; }
.qa .answer.on { display: block; animation: fade 150ms ease; }
.qa .answer p { font-size: clamp(1.25rem, 1rem + 0.7vw, 1.625rem); line-height: 1.3; max-width: 32ch; }
.qa .answer p + p { font-size: 1.0625rem; line-height: 1.5; max-width: 52ch; margin-top: 20px; color: var(--ink); }
.qa .inline-answer { display: none; }
@keyframes fade { from { opacity: 0; } }

/* ---------- use it: a plain sentence, one action ---------- */
.cta { padding-top: var(--section); padding-bottom: var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.cta .say { grid-column: 1 / span 5; }
.cta pre { grid-column: 7 / span 6; }
.cta h2 { font-family: var(--font-text); font-size: 1.25rem; letter-spacing: 0; font-weight: 600; line-height: 1.3; }
.cta p { margin-top: 10px; font-size: 1.25rem; max-width: 40ch; }
.cta pre { margin: 0; background: var(--surface); padding: 18px 20px; font-size: 14px; line-height: 1.7; max-width: 70ch; white-space: pre-wrap; overflow-wrap: anywhere; }
.cta .actions { margin-top: 24px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

/* ---------- limits ---------- */
.limits h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
.limits ul { margin-top: 32px; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px var(--gutter); }
.limits li { border-top: 2px solid var(--bad); padding-top: 14px; font-size: 16px; color: var(--muted); }
.limits li strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }

/* ---------- footer: one plain block ---------- */
.footer { margin-top: 0; padding-top: 40px; padding-bottom: 56px; border-top: 2px solid var(--raised); display: grid; gap: 16px; }
.footer p { max-width: 80ch; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer a { color: var(--ink); text-underline-offset: 0.2em; }

/* ---------- entrances ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 450ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter { clip-path: inset(0 0 100% 0); transition: clip-path 800ms var(--ease-in-out); }
  .js .shutter img { transform: scale(1.12); transition: transform 1500ms var(--ease-soft); }
  .js .shutter.is-in { clip-path: inset(0); }
  .js .shutter.is-in img { transform: none; }
  .js .stage { animation: rise var(--t-reveal) var(--ease-out) both 300ms; opacity: 0; transform: translateY(18px); }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .hero-copy { grid-column: 1 / -1; }
  .stage { grid-column: 1 / -1; margin-top: 48px; max-width: 720px; }
  .mosaic .tile b { font-size: 2.75rem; }
  .exhibit { display: block; }
  .exhibit .notes { max-width: 720px; }
  .page { margin-top: 40px; }
  .mosaic .tile { padding: 20px; aspect-ratio: auto; }
  .checklist ol { columns: 1; }
}

/* ---------- phone ---------- */
@media (max-width: 767px) {
  .nav { flex-wrap: wrap; row-gap: 12px; }
  .nav ul { flex: 1 0 100%; min-width: 0; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
  .hero { padding-top: 48px; padding-bottom: 24px; }
  .hero h1 { font-size: 11vw; }
  .hero-grid { display: block; margin-top: 24px; }
  .hero .intro, .hero .second, .hero .caveat { font-size: 16px; }
  .stage { margin: 40px calc(var(--margin) * -1) 0; }
  .stage-cap { padding-inline: var(--margin); }
  .stage .lane-run { display: none; }
  .js .stage { animation: none; opacity: 1; transform: none; }
  .crowd { gap: 2px; }
  .rows td:nth-child(3), .rows th:nth-child(3) { display: none; }
  .tally dd { font-size: 18px; }

  .grid { display: block; }
  .pinned .holder { position: static; height: auto; display: block; margin: 32px calc(var(--margin) * -1) 0; }
  .pinned .steps { padding: 0; }
  .pinned .board { padding: 16px; min-height: 0; }
  .pinned .state { display: block; }
  .pinned .state + .state { margin-top: 16px; }
  .pinned .step { min-height: 0; margin-top: 32px; }
  .pinned .step p:first-child { font-size: 22px; color: var(--ink); }
  .stage .rows { display: none; }

  .split { grid-template-columns: 1fr; }
  .split .left, .split .right { padding: 48px var(--margin) 96px; min-height: 62svh; }
  .split h2 { position: static; height: auto; font-size: 11vw; order: -1; padding: 0 var(--margin) 28px; }
  .split { --split-top: 48px; }
  .split h2 .a, .split h2 .b { position: static; display: inline; color: var(--ink); }

  .exhibit .notes, .page { grid-column: auto; }
  .page { margin-top: 32px; padding: 20px 20px 136px; max-height: none; }
  .page pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
  .page .credit { padding-inline: 20px; }

  .checklist ol { columns: 1; }
  .ctable { display: block; }
  .ctable .feat { display: none; }
  .ctable > div { min-height: 0; padding: 6px 0; }
  .ctable > div.head { display: none; }
  .ctable > div.name { margin-top: 22px; font-size: 20px; }
  .ctable > div[data-col]::before { content: attr(data-col) ': '; color: var(--muted); font-weight: 400; margin-right: 6px; }
  .ctable > div.alt { background: transparent; }
  .ctable > div.c3 { background: var(--accent) !important; color: var(--accent-ink); padding: 6px 10px; }
  .ctable > div.c3::before { color: var(--accent-ink); }
  .compare .after { display: block; }
  .compare .after p + p { margin-top: 16px; }

  .bars { min-height: 0; }
  .bars .copy { display: block; }
  .bars .copy > .story { padding-top: 24px; }
  .bars .figure { font-size: 26vw; }
  .bars h2 { font-size: 22px; }
  .chart { margin-top: 40px; gap: 18px; }
  .hbar { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .hbar .lbl { grid-column: 1; font-size: 16px; }
  .hbar .val { grid-column: 2; grid-row: 1; font-size: 20px; text-align: right; }
  .hbar .track { grid-column: 1 / -1; height: 22px; }

  .agenda .top { display: block; }
  .agenda .top .button { margin-top: 20px; width: 100%; }
  .agenda .body, .agenda .loopnote { display: block; margin-top: 32px; }
  .agenda .tabs { grid-template-columns: 1fr 1fr; gap: 6px; }
  .agenda .day.on { margin-top: 12px; }
  .band { grid-template-columns: 1fr 1fr; padding: 16px; }
  .band .t { grid-column: 1 / -1; order: -1; }
  .band.v4strip { grid-template-columns: 1fr; gap: 24px; }


  .trio, .also { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
  .trio { row-gap: 14px; }
  .trio figcaption { padding-bottom: 18px; }
  .mosaic .tiles { display: block; margin-top: 32px; }
  .mosaic .shot img { aspect-ratio: 4 / 3; }
  .mosaic .side { margin-top: 16px; }

  .qa .pane { display: none; }
  .qa .inline-answer { display: none; margin: 4px 0 14px 22px; }
  .qa .inline-answer.on { display: block; }
  .qa .inline-answer p { font-size: 19px; line-height: 1.35; }
  .qa .inline-answer p + p { font-size: 16px; margin-top: 10px; }

  .cta { display: block; }
  .cta pre { margin-top: 24px; }
  .limits ul { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* On phones nothing waits for a scroll reveal: content is always there. */
@media (max-width: 767px) {
  .js [data-reveal], .js .shutter, .js .shutter img { opacity: 1; transform: none; clip-path: none; }
}

/* ---------- run explorer (app screen, data-ui throughout: "data terminal" style) ---------- */
.app .explorer { padding-top: 40px; padding-bottom: 80px; }
.ex-title { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.ex-title h1 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; }
.ex-title p { margin-top: 6px; max-width: 80ch; }
.ex-tabs { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 28px; border-bottom: 1px solid #222a3b; } /* taste-skill-ignore: app screen tab rule */
.ex-tabs button { padding: 10px 0 11px; font-size: 14px; color: var(--muted); white-space: nowrap; border-bottom: 1px solid transparent; margin-bottom: -1px; } /* taste-skill-ignore: app selection line */
.ex-tabs button[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--accent); }
.ex-tabs button:hover { color: var(--ink); }
.ex-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 24px; font-size: 14px; }
.ex-bar input, .ex-bar select { height: 34px; background: var(--surface); border: 1px solid #262e40; color: var(--ink); padding: 0 10px; border-radius: 4px; font-size: 14px; } /* taste-skill-ignore: form fields */
.ex-bar input { width: 260px; }
.ex-bar label { display: flex; gap: 8px; align-items: center; }
.ex-count { margin-left: auto; color: var(--muted); }
.ex-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; margin-top: 20px; align-items: start; }
.ex-table-wrap { min-width: 0; }
.ex-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ex-table th { text-align: left; font-weight: 400; color: var(--muted); font-size: 13px; padding: 0 12px 8px 0; }
.ex-table td { padding: 10px 12px 10px 0; border-top: 1px solid #1a2030; vertical-align: top; } /* taste-skill-ignore: real table */
.ex-table .r { text-align: right; }
.ex-table tr[data-id] { cursor: pointer; }
.ex-table tr[data-id]:hover td { background: var(--surface); }
.ex-table tr[aria-selected='true'] td { background: var(--surface); }
.ex-table tr[aria-selected='true'] td:first-child { box-shadow: inset 2px 0 0 var(--accent); padding-left: 10px; } /* taste-skill-ignore: app selection line */
.ex-table .id { display: block; font-size: 13px; }
.ex-table .sub { display: block; font-size: 13px; margin-top: 2px; }
.mark { font-size: 14px; }
.mark.wired { color: var(--good); }
.mark.crashed { color: var(--bad); }
.mark.looks_fine { color: #f0c36a; }
.ex-more { margin-top: 16px; }
.ex-detail { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); padding: 24px; border-radius: 6px; font-size: 14px; }
.ex-detail h2 { font-family: var(--font-text); font-size: 18px; letter-spacing: 0; line-height: 1.3; word-break: break-all; }
.ex-detail h3 { font-family: var(--font-text); font-size: 14px; font-weight: 600; letter-spacing: 0; margin: 24px 0 10px; }
.ex-detail .verdict-line { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.ex-detail .kind { background: var(--raised); padding: 2px 8px; font-size: 13px; }
.ex-detail .facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #222a3b; margin-top: 16px; }
.ex-detail .facts div { background: var(--surface); padding: 10px 12px 10px 0; }
.ex-detail .facts dt { color: var(--muted); font-size: 13px; }
.ex-detail .facts dd { font-size: 18px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.checks li { display: grid; grid-template-columns: 48px 1fr; gap: 8px; }
.checks li span { font-size: 13px; }
.checks li.pass span { color: var(--good); }
.checks li.fail span { color: var(--bad); }
.ex-detail .lane { background: var(--bg); border-radius: 6px; }
.ex-detail .report { white-space: pre-wrap; line-height: 1.5; max-width: none; }
.ex-detail .report code { color: var(--accent); }
.ex-detail pre { background: var(--bg); padding: 14px; font-size: 12.5px; line-height: 1.5; overflow-x: auto; margin: 0; }
.diff .add { color: var(--good); }
.diff .del { color: var(--bad); }
.diff .hunk, .diff .file { color: var(--muted); }
.log { color: #f0c36a; white-space: pre-wrap; }
@media (max-width: 1000px) {
  .ex-split { grid-template-columns: 1fr; }
  .ex-detail { position: static; max-height: none; }
  .ex-table th:nth-child(n+4), .ex-table td:nth-child(n+4) { display: none; }
  .ex-bar input { width: 100%; }
  .ex-count { margin-left: 0; }
  .ex-detail .facts { grid-template-columns: 1fr 1fr; }
}

/* Another language, two more models */
.reach .reach-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.reach .reach-card { display: flex; flex-direction: column; gap: .6rem; }
.reach .reach-card h3 { margin: 0; font-size: 1.35rem; }
.reach .reach-card .meta { margin: 0; opacity: .75; font-size: .9rem; }
.reach .reach-table { width: 100%; border-collapse: collapse; font-size: .95rem; table-layout: fixed; }
.reach .reach-table th:first-child, .reach .reach-table td:first-child { width: 44%; }
.reach .reach-table th, .reach .reach-table td { text-align: left; padding: .4rem .3rem; border-bottom: 1px solid rgba(233, 237, 243, .12); vertical-align: baseline; }
.reach .reach-table thead th { font-weight: 600; opacity: .7; font-size: .8rem; }
.reach .reach-table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.reach .stamp { margin: .3rem 0 0; font-weight: 700; color: var(--accent, #a497f5); line-height: 1.4; min-height: 2.8em; }
.reach .note { margin: 0; font-size: .92rem; line-height: 1.5; }
.reach .foot { margin-top: 1.5rem; }
@media (max-width: 900px) { .reach .reach-cards { grid-template-columns: 1fr; } }
.reach .reach-table tbody tr:first-child td { font-size: 1.35rem; font-weight: 700; }
.reach .lead { margin-top: .75rem; }
