/* vgc-engine product page — buildless, no external assets */

:root {
  --paper: #f4f0e6;
  --paper-2: #ebe5d6;
  --card: #fbf9f3;
  --ink: #17202b;
  --ink-2: #3c4654;
  --muted: #5a6371;
  --rule: #cfc6b2;
  --accent: #b83d0c;         /* vermilion, 5:1 on paper */
  --accent-strong: #9a3209;
  --accent-soft: #f6d9c8;
  --teal: #0d6b6b;
  --teal-soft: #cfe6e3;
  --amber: #8a5a00;
  --amber-soft: #f4e3b8;
  --focus: #1f5fd1;
  --band-ink-bg: #17202b;
  --band-ink-fg: #ece7dc;
  --band-ink-muted: #b9c0ca;
  --band-ink-rule: #39455a;
  --code-bg: #121922;
  --code-fg: #e6e1d6;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10151c;
    --paper-2: #151c25;
    --card: #19212c;
    --ink: #ece7dc;
    --ink-2: #cdd3dc;
    --muted: #a3acb8;
    --rule: #2f3a4a;
    --accent: #ff8a5c;
    --accent-strong: #ffa47f;
    --accent-soft: #3a2218;
    --teal: #5cc8c0;
    --teal-soft: #15302f;
    --amber: #f0c060;
    --amber-soft: #33290f;
    --focus: #7fb0ff;
    --band-ink-bg: #0a0e13;
    --band-ink-fg: #ece7dc;
    --band-ink-muted: #a9b2be;
    --band-ink-rule: #2a3442;
    --code-bg: #0a0e13;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
code { font-family: var(--mono); font-size: .88em; background: color-mix(in srgb, var(--ink) 7%, transparent); padding: .08em .35em; border-radius: 5px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); max-width: 22ch; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: .6em 1em; border-radius: 8px; }
.skip:focus { top: 12px; color: var(--paper); }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font: 600 1.05rem var(--mono); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.site-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .5em .75em; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.site-nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: .55rem;
    background: transparent; color: var(--ink); border: 1px solid var(--rule);
    border-radius: 10px; padding: .55em .85em; font: inherit; font-size: .95rem; cursor: pointer; min-height: 44px;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, opacity .2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    box-shadow: 0 18px 30px -18px rgba(0,0,0,.35);
    display: none;
  }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: .5rem 16px 1rem; }
  .site-nav a { padding: .8em .75em; font-size: 1.05rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
  /* without JS, keep the links visible and scrollable */
  html:not(.js) .site-nav ul { flex-direction: row; overflow-x: auto; padding: 0; }
  html:not(.js) .header-row { flex-wrap: wrap; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7em 1.2em; border-radius: 999px;
  font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 40px; padding: .45em .95em; font-size: .92rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
@media (prefers-color-scheme: dark) { .btn-primary:hover { color: #10151c; } }
.file-tag { font: 500 .78rem var(--mono); padding: .1em .45em; border-radius: 5px; background: color-mix(in srgb, currentColor 14%, transparent); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 1.2rem; }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.3rem); max-width: 14ch; }
.hero h1 em { font-style: italic; color: var(--accent); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 54ch; }
.hero-note { font-size: .95rem; color: var(--muted); max-width: 52ch; }
.status-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 500 .82rem var(--mono); letter-spacing: .01em;
  padding: .35em .85em; border-radius: 999px; border: 1px solid var(--rule); background: var(--card); color: var(--ink-2);
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }

.hero-figure { margin: 0; }
.hero-figure figcaption { font: .8rem var(--mono); color: var(--muted); margin-top: .6rem; }
.hero-svg { width: 100%; height: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); }
.hero-svg .grid-line { stroke: var(--rule); stroke-width: .6; opacity: .55; }
.hero-svg .field-box { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.hero-svg .field-mid { stroke: var(--ink); stroke-dasharray: 4 5; stroke-width: 1; }
.hero-svg .slot circle { stroke: var(--ink); stroke-width: 1.5; }
.hero-svg .slot-a circle { fill: var(--teal-soft); }
.hero-svg .slot-b circle { fill: var(--accent-soft); }
.hero-svg .slot text, .hero-svg .leaf text { font: 600 13px var(--mono); fill: var(--ink); text-anchor: middle; }
.hero-svg .leaf text { text-anchor: start; font-size: 12px; }
.hero-svg .cap { font: 12px var(--mono); fill: var(--muted); text-anchor: middle; }
.hero-svg .edge { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.hero-svg .edge-main { stroke-width: 2.4; }
.hero-svg .node-root circle { fill: var(--accent); stroke: var(--ink); stroke-width: 1.5; }
.hero-svg .leaf rect { fill: var(--card); stroke: var(--ink); stroke-width: 1.2; }
.hero-svg .leaf rect.leaf-fill { fill: var(--accent-soft); stroke: none; }
.hero-svg .branches .edge { stroke-dasharray: 220; stroke-dashoffset: 0; }

@media (prefers-reduced-motion: no-preference) {
  .hero-svg .branches .edge { animation: draw 1.4s cubic-bezier(.2,.7,.2,1) both; }
  .hero-svg .branches .e2 { animation-delay: .12s; }
  .hero-svg .branches .e3 { animation-delay: .24s; }
  .hero-svg .branches .e4 { animation-delay: .36s; }
  .hero-svg .branches .e5 { animation-delay: .48s; }
  .hero-svg .leaf { animation: fade .6s ease both; }
  .hero-svg .l1 { animation-delay: .9s; } .hero-svg .l2 { animation-delay: 1s; } .hero-svg .l3 { animation-delay: 1.1s; }
  .hero-svg .l4 { animation-delay: 1.2s; } .hero-svg .l5 { animation-delay: 1.3s; }
  .hero-svg .node-root circle { animation: pulse 2.8s ease-in-out 1.6s infinite; transform-origin: 282px 210px; }
}
@keyframes draw { from { stroke-dashoffset: 220; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* ---------- bands ---------- */
.band { padding: clamp(3rem, 7vw, 5.5rem) 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 64px; }
.band-paper2 { background: var(--paper-2); }
.band-ink { background: var(--band-ink-bg); color: var(--band-ink-fg); border-bottom-color: var(--band-ink-rule); }
.band-ink .section-lede, .band-ink p { color: var(--band-ink-muted); }
.band-ink code { background: rgba(255,255,255,.09); color: var(--band-ink-fg); }
.band-ink a { color: #ffa47f; }
.band-ink :focus-visible { outline-color: #7fb0ff; }
.kicker { font: 600 .8rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; }
.band-ink .kicker { color: #ffa47f; }
.section-lede { font-size: 1.1rem; color: var(--ink-2); max-width: 62ch; margin-bottom: 2.2rem; }
.fine { font-size: .88rem; color: var(--muted); max-width: 72ch; margin-top: 1.2rem; }
.band-ink .fine { color: var(--band-ink-muted); }
.mt { margin-top: 1.8rem; }

/* who */
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.who-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.3rem 1.25rem; position: relative; }
.who-card::before { content: ""; position: absolute; left: 1.25rem; top: 0; width: 34px; height: 3px; background: var(--accent); }
.who-card p { color: var(--ink-2); font-size: .97rem; margin: 0; }
.not-this { margin-top: 2rem; border: 1.5px dashed var(--rule); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.not-this h3 { font: 600 .82rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.not-this ul { margin: 0; padding-left: 1.1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem 2rem; }
.not-this li { color: var(--ink-2); font-size: .97rem; }

/* engine spec list */
.spec-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--band-ink-rule); }
.spec-list li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; padding: 1.5rem 1.4rem 1.5rem 0; border-bottom: 1px solid var(--band-ink-rule); }
.spec-list li:nth-child(odd) { border-right: 1px solid var(--band-ink-rule); }
.spec-list li:nth-child(even) { padding-left: 1.4rem; }
.spec-num { font: 600 1rem var(--mono); width: 2.3rem; height: 2.3rem; display: grid; place-items: center; border: 1.5px solid #ffa47f; color: #ffa47f; border-radius: 8px; }
.spec-list h3 { color: var(--band-ink-fg); }
.spec-list p { margin: 0; font-size: .98rem; }
.spec-list strong { color: var(--band-ink-fg); }

/* ---------- demo ---------- */
.demo { background: var(--card); border: 1px solid var(--rule); border-radius: calc(var(--radius) + 4px); overflow: hidden; }
.demo-banner { margin: 0; padding: .75rem 1.2rem; background: var(--amber-soft); color: var(--ink); font-size: .92rem; border-bottom: 1px solid var(--rule); }
.demo-grid { display: grid; grid-template-columns: 300px 1fr; }
.demo-controls { padding: 1.2rem; border-right: 1px solid var(--rule); display: grid; gap: 1.2rem; align-content: start; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font: 600 .78rem var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: .55rem; }
.radio { display: flex; gap: .7rem; align-items: flex-start; padding: .65rem .75rem; border: 1px solid var(--rule); border-radius: 10px; margin-bottom: .45rem; cursor: pointer; background: var(--paper); }
.radio:hover { border-color: var(--ink-2); }
.radio:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--card); }
.radio input { margin-top: .3rem; accent-color: var(--accent); width: 1.05rem; height: 1.05rem; flex: none; }
.radio span { display: grid; }
.radio small { color: var(--muted); font-size: .85rem; }

.demo-stage { padding: 1.2rem 1.4rem 1.4rem; min-width: 0; }
.passes { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; counter-reset: none; }
.passes button {
  width: 100%; display: flex; align-items: center; gap: .5rem; justify-content: center;
  min-height: 44px; padding: .4em .5em; font: 600 .92rem var(--sans); color: var(--ink-2);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; cursor: pointer;
}
.passes button span { font: 600 .78rem var(--mono); width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; }
.passes button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pass-panel { border: 1px solid var(--rule); border-radius: 12px; padding: 1.1rem 1.2rem; min-height: 330px; background: var(--paper); }
.pass-title { font-family: var(--serif); font-size: 1.35rem; }
.pass-text { color: var(--ink-2); max-width: 62ch; }
.pass-visual { margin: 1rem 0; }
.pass-stats { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin: 0; }
.pass-stats div { display: grid; }
.pass-stats dt { font: .76rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pass-stats dd { margin: 0; font: 600 1.35rem var(--mono); color: var(--ink); }
.pass-nav { display: flex; justify-content: space-between; gap: .6rem; margin-top: .9rem; flex-wrap: wrap; }
.demo-noscript { padding: 1rem 1.2rem; margin: 0; }

/* visuals inside demo */
.sites { display: flex; flex-wrap: wrap; gap: .5rem; }
.site-chip { font: 500 .85rem var(--mono); padding: .4em .7em; border-radius: 8px; border: 1px solid var(--rule); background: var(--card); }
.site-chip b { color: var(--accent); font-weight: 600; }
.site-chip.off { opacity: .55; text-decoration: line-through; }
.cells { display: grid; grid-template-columns: repeat(64, 1fr); gap: 1px; max-width: 520px; }
.cells i { display: block; aspect-ratio: 1; background: var(--rule); border-radius: 1px; }
.cells i.on { background: var(--accent); }
.cells-note { font: .8rem var(--mono); color: var(--muted); margin-top: .4rem; }
.replay-bar { height: 14px; border-radius: 7px; background: var(--paper-2); border: 1px solid var(--rule); overflow: hidden; max-width: 520px; }
.replay-bar > span { display: block; height: 100%; width: 0; background: var(--teal); transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.outcomes { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.outcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 4.6rem; gap: .6rem; align-items: center; font: .82rem var(--mono); }
.hpbar { position: relative; height: 18px; border-radius: 5px; background: var(--paper-2); border: 1px solid var(--rule); overflow: hidden; }
.hpbar > span { position: absolute; inset: 0 auto 0 0; background: var(--teal); }
.hpbar > em { position: relative; font-style: normal; padding-left: .4rem; line-height: 16px; color: var(--ink); font-size: .74rem; mix-blend-mode: normal; }
.hpbar.ko > span { background: transparent; }
.hpbar.ko > em { color: var(--accent); font-weight: 600; }
.prob { text-align: right; position: relative; }
.prob-bar { display: block; height: 4px; background: var(--accent); border-radius: 2px; margin-top: 3px; margin-left: auto; }
.outcome-head { font: .72rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- code tabs ---------- */
.tabs { background: var(--code-bg); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); position: relative; }
.tablist { display: flex; overflow-x: auto; border-bottom: 1px solid #2b3646; scrollbar-width: thin; }
.tablist button {
  flex: none; background: transparent; color: #aeb7c3; border: 0; border-bottom: 3px solid transparent;
  padding: .9em 1.1em; font: 600 .9rem var(--sans); cursor: pointer; min-height: 48px;
}
.tablist button[aria-selected="true"] { color: #fff; border-bottom-color: #ff8a5c; }
.tablist button:hover { color: #fff; }
.tabs :focus-visible { outline-color: #7fb0ff; }
.tabpanel { position: relative; }
.tabpanel pre { margin: 0; padding: 1.3rem 1.3rem 1.5rem; overflow-x: auto; color: var(--code-fg); font: .88rem/1.65 var(--mono); tab-size: 4; }
.tabpanel code { background: none; padding: 0; font-size: inherit; color: inherit; }
.tabpanel .c { color: #8995a6; }
.tabpanel .s { color: #9fe0b0; }
.tabpanel .n { color: #ffb38a; }
.copy {
  position: absolute; top: .7rem; right: .7rem; z-index: 2;
  background: #233041; color: #e6e1d6; border: 1px solid #3a475a; border-radius: 8px;
  font: 600 .8rem var(--sans); padding: .45em .8em; cursor: pointer; min-height: 36px;
}
.copy:hover { background: #2e3d52; }
.cta-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; padding: 1.1rem 1.3rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); }
.cta-strip p { margin: 0; font-weight: 500; }

/* ---------- use cases ---------- */
.use-table { border-top: 2px solid var(--ink); }
.use-row { display: grid; grid-template-columns: 15rem 1fr minmax(0, 20rem); gap: 1.4rem; align-items: baseline; padding: 1.05rem 0; border-bottom: 1px solid var(--rule); }
.use-row h3 { margin: 0; font-family: var(--serif); font-size: 1.2rem; }
.use-row p { margin: 0; color: var(--ink-2); }
.use-row code { justify-self: start; font-size: .8rem; color: var(--teal); background: var(--teal-soft); overflow-wrap: anywhere; }

/* ---------- evidence ---------- */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.ledger-col h3 { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; color: var(--band-ink-fg); font-size: 1.02rem; }
.ledger-list { list-style: none; margin: 0; padding: 0; }
.ledger-list li { display: grid; grid-template-columns: 6.2rem 1fr; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--band-ink-rule); align-items: baseline; color: var(--band-ink-muted); }
.ledger-list .big { font: 600 1.45rem var(--mono); color: var(--band-ink-fg); letter-spacing: -.02em; }
.ledger-list strong { color: #ffb38a; }
.ledger-p { font-size: .98rem; }
.tag { display: inline-block; font: 600 .7rem var(--mono); letter-spacing: .07em; text-transform: uppercase; padding: .3em .6em; border-radius: 6px; white-space: nowrap; }
.tag-current { background: #1e4d4a; color: #bdf0e9; }
.tag-diag { background: #5a3a07; color: #ffe2a8; }
.tag-hist { background: #34404f; color: #dbe2ea; }
.tag-done { background: #1e4d4a; color: #bdf0e9; }
.tag-open { background: #5c2512; color: #ffd0bb; }
.tag-wait { background: #5a3a07; color: #ffe2a8; }
.gates { margin-top: 2.6rem; }
.gates h3 { color: var(--band-ink-fg); }
.gates table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.gates th, .gates td { text-align: left; padding: .8rem .8rem .8rem 0; border-top: 1px solid var(--band-ink-rule); vertical-align: top; }
.gates thead th { font: 600 .75rem var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--band-ink-muted); }
.gates tbody th { color: var(--band-ink-fg); font-weight: 600; white-space: nowrap; }
.gates td { color: var(--band-ink-muted); }

/* ---------- roadmap ---------- */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.rm-col { border-radius: var(--radius); padding: 1.3rem 1.3rem 1.1rem; border: 1px solid var(--rule); background: var(--card); }
.rm-col h3 { font: 600 .82rem var(--mono); letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: .5rem; }
.rm-col h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.rm-now { border-top: 4px solid var(--teal); }
.rm-now h3::before { background: var(--teal); }
.rm-next { border-top: 4px solid var(--amber); }
.rm-next h3::before { background: var(--amber); }
.rm-later { border-top: 4px dashed var(--muted); background: transparent; }
.rm-later h3::before { border: 2px solid var(--muted); }
.rm-col ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .55rem; color: var(--ink-2); font-size: .97rem; }

/* ---------- faq ---------- */
details { border-top: 1px solid var(--rule); }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font: 600 1.08rem var(--sans); list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: .3rem; top: .9rem; font: 400 1.5rem var(--mono); color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); max-width: 64ch; }

/* ---------- closing / footer ---------- */
.closing { padding: clamp(3rem, 7vw, 5rem) 0; text-align: center; }
.closing h2 { margin-inline: auto; max-width: 20ch; }
.closing .cta-row { justify-content: center; }
.site-footer { border-top: 1px solid var(--rule); padding: 2rem 0 2.4rem; background: var(--paper-2); }
.footer-row { display: grid; gap: .3rem; }
.footer-row p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .who-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-controls { border-right: 0; border-bottom: 1px solid var(--rule); grid-template-columns: 1fr 1fr; }
  .use-row { grid-template-columns: 12rem 1fr; }
  .use-row code { grid-column: 2; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .spec-list { grid-template-columns: 1fr; }
  .spec-list li:nth-child(odd) { border-right: 0; }
  .spec-list li:nth-child(even) { padding-left: 0; }
  .ledger { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .not-this ul { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .who-grid { grid-template-columns: 1fr; }
  .demo-controls { grid-template-columns: 1fr; }
  .passes button { flex-direction: column; gap: .2rem; font-size: .8rem; }
  .use-row { grid-template-columns: 1fr; gap: .35rem; }
  .use-row code { grid-column: auto; }
  .ledger-list li { grid-template-columns: 1fr; gap: .2rem; }
  .gates thead { display: none; }
  .gates tr { display: grid; padding: .7rem 0; border-top: 1px solid var(--band-ink-rule); }
  .gates th, .gates td { border: 0; padding: .15rem 0; }
  .cells { grid-template-columns: repeat(32, 1fr); }
  .outcome { grid-template-columns: 1fr 1fr 3.8rem; gap: .4rem; }
  .cta-row .btn, .cta-strip .btn { width: 100%; }
  .pass-nav .btn { flex: 1 1 auto; }
  /* keep the Copy button off the first line of code */
  .tabpanel pre { padding-top: 3.4rem; }
}

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