/* OneScan for Ootle. Deep indigo and one soft periwinkle accent. Sage, sand and clay keep their meaning: match, caveat, refused. */
:root,
.tokens-base {
  --paper: #f6f5fb;
  --surface: #ffffff;
  --ink: #17163a;
  --muted: #55547a;
  --rule: #dcdaf0;
  --accent: #4a3fc4;
  --accent-ink: #ffffff;
  --ok: #1f6b52;
  --ok-bg: #e0f1ea;
  --warn: #755610;
  --warn-bg: #f4ecd6;
  --bad: #a53d33;
  --bad-bg: #f7e3df;
  --print-line: #cfcce8;
  --print-shadow: #17163a1f;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  :root,
  .tokens-base {
    --paper: #0d0e1f;
    --surface: #17193a;
    --ink: #f3f0ff;
    --muted: #b4b6d6;
    --rule: #30325e;
    --accent: #9c97ff;
    --accent-ink: #0d0c2a;
    --ok: #8fe0bd;
    --ok-bg: #12332b;
    --warn: #e8c877;
    --warn-bg: #2f2814;
    --bad: #f0a79b;
    --bad-bg: #38201f;
    --print-line: #3a3c70;
    --print-shadow: #0000006b;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
main { width: 100%; flex: 1; overflow-x: clip; } /* the stamp presses in from 1.22x; never let that widen the page */
h1, h2, h3, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
code, .mono { font-family: var(--mono); font-size: 0.875rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
input:focus-visible, select:focus-visible { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 8px; }

/* Layout */
.wrap { margin: 0 auto; width: 100%; max-width: 72rem; padding: 0 16px; }
.work { margin: 0 auto; width: 100%; max-width: 72rem; padding: 32px 16px; }
@media (min-width: 640px) { .work { padding: 48px 16px; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 48px; align-items: start; }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 1fr) 24rem; } }
.sec { padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 1024px) { .sec { padding-top: 80px; padding-bottom: 80px; } }
.muted { color: var(--muted); }
.ok { color: var(--ok); } .warn { color: var(--warn); } .bad { color: var(--bad); }
.small { font-size: 0.875rem; }
.lead { font-size: 1.125rem; max-width: 36rem; }
.link { color: var(--accent); text-decoration: underline; }
.link:hover { opacity: 0.8; }
.break { overflow-wrap: anywhere; word-break: break-all; }
.h2 { font-family: var(--serif); font-weight: 500; font-size: 2.25rem; line-height: 1.2; letter-spacing: -0.025em; }
@media (min-width: 640px) { .h2 { font-size: 3rem; } }
.h-page { font-family: var(--serif); font-weight: 500; font-size: 2.25rem; line-height: 1.2; }
.h-card { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; line-height: 1.3; }
.h-card-lg { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.3; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-10 { margin-top: 40px; }

/* Header */
.site-head { top: 0; z-index: 20; border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-head.sticky { position: sticky; }
@media (min-width: 640px) { .site-head { position: sticky; } }
.head-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent); text-decoration: none; }
.brand span { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.brand svg { width: 26px; height: 26px; flex: none; }
.tabs { display: flex; align-items: center; gap: 24px; }
.tabs a { display: inline-flex; min-height: 44px; align-items: center; border-bottom: 2px solid transparent; padding: 0 4px; color: var(--muted); text-decoration: none; transition: color 150ms; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { border-color: var(--accent); font-weight: 500; color: var(--ink); }
.tabs-home { margin-left: auto; display: none; }
.head-cta { margin-left: auto; }
@media (min-width: 640px) { .tabs-home { display: flex; } .head-cta { margin-left: 0; } }
.head-search { width: 100%; padding-bottom: 4px; display: flex; gap: 8px; }
@media (min-width: 640px) { .head-search { margin-left: auto; width: 20rem; padding-bottom: 0; } }
.head-search input { flex: 1; min-width: 0; }

/* Buttons, inputs, cards: a thin rule and a short, quiet offset */
.btn {
  display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px;
  border-radius: 8px; padding: 0 16px; font-size: 1rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--print-line); box-shadow: 2px 2px 0 var(--print-shadow);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms ease;
}
.btn:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--print-shadow); }
.btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--print-shadow); }
.btn:disabled { cursor: not-allowed; opacity: 0.5; }
.btn-primary { background: var(--accent); color: var(--accent-ink); padding: 0 20px; }
.btn-block { width: 100%; }
@media (min-width: 640px) { .btn-block { width: auto; min-width: 10rem; } }
.input {
  min-height: 44px; width: 100%; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  background: var(--paper); padding: 0 12px; font-size: 1rem; color: var(--ink); transition: box-shadow 150ms;
}
.input::placeholder { color: var(--muted); }
.input.mono { font-family: var(--mono); font-size: 0.875rem; }
.input[aria-invalid="true"] { border-color: var(--bad); }
.copy {
  display: inline-flex; min-height: 36px; flex: none; align-items: center; border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); background: transparent;
  padding: 0 12px; font-size: 0.875rem; font-weight: 500; color: var(--ink); transition: background-color 150ms;
}
.copy:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.print { background: var(--surface); border: 1px solid var(--print-line); border-radius: 12px; box-shadow: 4px 4px 0 var(--print-shadow); }
.pad { padding: 20px; }
@media (min-width: 640px) { .pad-lg { padding: 24px; } }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--print-line); border-radius: 999px; padding: 2px 10px; font-size: 0.875rem; font-weight: 500; white-space: nowrap; }
.chip-accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.box { border: 1px solid var(--rule); background: var(--surface); }
.box-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--rule); padding: 12px 16px; }
.box-body { padding: 0 16px; }

/* Colour blocks. Each one resets the tokens, so everything inside stays readable on it. */
.block-sage, .block-sand, .block-clay, .block-lilac {
  --ink: #14123a; --muted: #34325c; --rule: #14123a33; --accent: #2f2796; --accent-ink: #ffffff;
  --ok: #124a38; --warn: #4f3a08; --bad: #6f2319; --print-line: #14123a40; --print-shadow: #14123a1f;
  color: var(--ink);
}
.block-sage { --paper: #a9dcc6; --surface: #a9dcc6; background: #a9dcc6; }
.block-sand { --paper: #e3cf9e; --surface: #e3cf9e; background: #e3cf9e; }
.block-clay { --paper: #e6a99b; --surface: #e6a99b; background: #e6a99b; }
.block-lilac { --paper: #c9c6ff; --surface: #c9c6ff; background: #c9c6ff; }
.block-slate, .block-pine, .block-plum {
  --ink: #f3f0ff; --muted: #c2c3e2; --rule: #f3f0ff2e; --accent: #c0bcff; --accent-ink: #0d0c2a;
  --ok: #8fe0bd; --warn: #e8c877; --bad: #f0a79b; --print-line: #f3f0ff2e; --print-shadow: #0000006b;
  color: var(--ink);
}
.block-slate { --paper: #191a42; --surface: #191a42; background: #191a42; }
.block-pine { --paper: #131431; --surface: #131431; background: #131431; }
.block-plum { --paper: #2a2670; --surface: #2a2670; background: #2a2670; }
.block-paper {
  --paper: #efedf9; --surface: #efedf9; --ink: #14123a; --muted: #45436d; --rule: #14123a33; --accent: #2f2796;
  --accent-ink: #ffffff; --ok: #124a38; --warn: #4f3a08; --bad: #6f2319; --print-line: #14123a40; --print-shadow: #14123a1f;
  background: #efedf9; color: var(--ink);
}
.bg-surface { background: var(--surface); }
.shadow-deep { --print-shadow: #00000040; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 40px 56px; padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 1024px) { .hero { grid-template-columns: minmax(0, 1fr) 28rem; padding-top: 80px; padding-bottom: 80px; } }
.hero h1 { margin-top: 16px; font-family: var(--serif); font-weight: 500; font-size: 3rem; line-height: 1.08; letter-spacing: -0.025em; }
@media (min-width: 640px) { .hero h1 { font-size: 3.75rem; } }
@media (max-width: 400px) { .hero h1 { font-size: 2.6rem; } }
.hero .lead { margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

/* A highlighter stroke that draws itself across a word when the page opens. */
.mark {
  background-color: transparent; color: #14123a; padding: 0 0.12em; border-radius: 6px;
  background-repeat: no-repeat; background-size: 100% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  animation: mark-draw 1000ms 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mark-clay { background-image: linear-gradient(#e6a99b, #e6a99b); }
.mark-sage { background-image: linear-gradient(#a9dcc6, #a9dcc6); animation-delay: 650ms; }
@keyframes mark-draw { from { background-size: 0% 100%; color: var(--ink); } }

/* Live status line */
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--muted); }
.live b { font-family: var(--mono); font-weight: 400; color: var(--ink); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--accent); flex: none; }
.dot-ok { background: var(--ok); }
.dot-warn { background: var(--warn); }
.pulse { animation: pulse-dot 1.1s ease-in-out infinite; }
@keyframes pulse-dot { 50% { opacity: 0.3; } }

/* The proof machine: real records, replayed */
.machine-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.machine dl { margin-top: 16px; display: grid; gap: 12px; }
.machine dt { font-size: 0.875rem; color: var(--muted); }
.machine .m-name { font-size: 1.125rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.machine .m-name a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; }
.machine .m-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.machine .m-two dd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.machine .m-hash { margin-top: 4px; font-family: var(--mono); font-size: 0.875rem; line-height: 1.5rem; word-break: break-all; }
.machine .m-hash .k { color: var(--ok); }
.machine .m-hash .u { color: var(--muted); }
.machine .m-foot { margin-top: 16px; display: flex; min-height: 64px; flex-wrap: wrap; align-items: center; gap: 12px; }
.machine .m-empty { padding: 64px 0; color: var(--muted); }
.stamp-word { position: relative; display: inline-flex; align-items: center; border-radius: 6px; border: 1px solid #14123a40; padding: 8px 12px; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.machine-in { animation: machine-in 320ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes machine-in { from { opacity: 0; transform: translateY(8px); } }
.slam { animation: stamp-slam 420ms cubic-bezier(0.22, 1.15, 0.36, 1) both; }
@keyframes stamp-slam { from { opacity: 0; transform: scale(1.22) rotate(-1.5deg); } 60% { opacity: 1; transform: scale(0.99); } to { transform: none; } }

/* Ticker: the real records moving past, paused under the pointer */
.ticker { overflow: hidden; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--surface); padding: 12px 0; min-height: 50px; }
.ticker-track { display: flex; width: max-content; animation: ticker 110s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; flex: none; align-items: center; }
.ticker li { display: flex; align-items: center; white-space: nowrap; padding: 0 20px; }
.ticker li a { font-weight: 500; text-decoration: none; }
.ticker li a:hover { text-decoration: underline; }
.ticker li span { margin-left: 8px; font-family: var(--mono); font-size: 0.875rem; color: var(--muted); }
.ticker li i { margin-left: 20px; display: inline-block; width: 6px; height: 6px; transform: rotate(45deg); background: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Live numbers */
.numbers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 32px; }
@media (min-width: 640px) { .numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.numbers li { padding: 20px; }
.numbers .n { display: block; font-family: var(--serif); font-size: 3.75rem; font-weight: 500; line-height: 1; }
.numbers .l { margin-top: 12px; display: block; font-weight: 500; }
.ledger-card { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .ledger-card { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.ledger-card > div { min-width: 0; padding: 20px; }
.ledger-card > div + div { border-top: 2px solid var(--rule); display: grid; gap: 20px; align-content: start; }
@media (min-width: 1024px) { .ledger-card > div + div { border-top: 0; border-left: 2px solid var(--rule); } }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }

/* Proof ledger rows */
.ledger li + li { border-top: 1px solid var(--rule); }
.ledger a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 12px; padding: 12px 0; color: var(--ink); text-decoration: none; transition: background-color 150ms; }
.ledger a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.ledger .seal { width: 24px; height: 24px; color: var(--ok); }
.ledger .seal.w { color: var(--warn); }
.ledger .t { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.ledger .s { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.875rem; color: var(--muted); }
.ledger .r { text-align: right; font-size: 0.875rem; }
.ledger .r b { display: block; font-weight: 500; }
.ledger-empty { padding: 32px 0; color: var(--muted); }

/* Coverage meter */
.meter { height: 10px; overflow: hidden; border-radius: 999px; background: var(--rule); }
.meter > i { display: block; height: 100%; background: #a9dcc6; border-radius: 999px; transition: width 500ms cubic-bezier(0.22, 1, 0.36, 1); }
.meter-run > i { background-image: repeating-linear-gradient(-45deg, #a9dcc6 0 12px, #97cfb7 12px 24px); background-size: 200% 100%; animation: stripes 2.6s linear infinite; }
@keyframes stripes { to { background-position: -68px 0; } }
.cov p { margin-top: 8px; font-size: 0.875rem; }
.cov b { font-weight: 600; }

/* Facts: label and value rows */
.fields > div { display: grid; gap: 4px; border-top: 1px solid var(--rule); padding: 12px 0; }
@media (min-width: 640px) { .fields > div { grid-template-columns: 11rem minmax(0, 1fr); gap: 16px; } .fields-tight > div { grid-template-columns: 7rem minmax(0, 1fr); } }
.fields dt { font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.fields dd { min-width: 0; overflow-wrap: anywhere; }
.hash { display: inline-flex; max-width: 100%; align-items: center; gap: 8px; vertical-align: middle; }
.hash code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* How it works */
.steps { margin-top: 32px; display: grid; gap: 24px; max-width: 44rem; }
.steps li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0 12px; }
.steps .num { font-family: var(--serif); font-size: 1.875rem; line-height: 1; color: var(--accent); }
.steps h3 { font-weight: 600; font-size: 1rem; }
.steps p { margin-top: 4px; color: var(--muted); }
.flow { margin: 40px auto 0; max-width: 40rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; text-align: center; }
.flow .node { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--print-line); background: var(--surface); font-weight: 500; }
.flow .node.chain { background: #c9c6ff; color: #14123a; border-color: #14123a40; }
.flow .node.wide { grid-column: 1 / -1; justify-self: center; min-width: 60%; }
.flow .node.verdict { background: #a9dcc6; color: #14123a; border-color: #14123a40; }
.flow .edge { height: 28px; display: flex; justify-content: center; }
.flow .edge::before { content: ""; width: 2px; background: var(--print-line); }
.flow .edge.dashed::before { background: repeating-linear-gradient(var(--accent) 0 5px, transparent 5px 10px); }
.flow .edge.wide { grid-column: 1 / -1; }

/* Verdict explorer */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 10px; border: 1px solid var(--print-line); background: var(--paper); }
.seg button { min-height: 40px; border-radius: 7px; border: 0; background: transparent; padding: 0 12px; font-weight: 500; color: var(--muted); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.vx-panel { margin-top: 20px; display: grid; gap: 20px; }
@media (min-width: 768px) { .vx-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }

/* The verdict stamp: a double rule ring, pressed in once on arrival */
.stamp { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; border: 1px solid var(--print-line); border-radius: 12px; box-shadow: 5px 5px 0 #00000040; padding: 24px 28px; }
.stamp.press { animation: stamp-slam 420ms cubic-bezier(0.22, 1.15, 0.36, 1) both; }
.stamp::after { content: ""; position: absolute; inset: 4px; border: 1px solid var(--print-line); border-radius: 6px; pointer-events: none; }
.stamp > div { min-width: 0; }
.stamp .kick { font-size: 0.875rem; font-weight: 500; }
.stamp .st-title { margin-top: 4px; font-family: var(--serif); font-weight: 500; font-size: 2.25rem; line-height: 1.2; }
@media (min-width: 640px) { .stamp .st-title { font-size: 3rem; letter-spacing: -0.025em; } }
.stamp .st-body { margin-top: 12px; max-width: 42rem; }
.stamp-sm { padding: 18px 20px; box-shadow: 4px 4px 0 #00000040; }
.stamp-sm .st-title { font-size: 1.875rem !important; letter-spacing: 0 !important; }
.seal-big { position: relative; display: none; flex: none; }
@media (min-width: 640px) { .seal-big { display: block; } }
.seal-big svg { width: 72px; height: 72px; }
.seal-check { stroke-dasharray: 1; animation: draw 420ms 180ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.burst { position: absolute; inset: 50% auto auto 50%; pointer-events: none; }
.burst i { position: absolute; width: 6px; height: 6px; border-radius: 1px; background: var(--c); opacity: 0; animation: burst 900ms 120ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes burst { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); } }

/* Notices */
.notice { border-left: 4px solid var(--rule); background: var(--surface); padding: 12px 16px; color: var(--ink); }
.notice .nt { display: block; font-weight: 600; }
.notice .nt + * { margin-top: 4px; }
.notice-ok { border-color: var(--ok); background: var(--ok-bg); }
.notice-warn { border-color: var(--warn); background: var(--warn-bg); }
.notice-bad { border-color: var(--bad); background: var(--bad-bg); }
.notice p + p, .notice ul { margin-top: 4px; }
.notice ul { list-style: disc; padding-left: 20px; }
.field-err { margin-top: 4px; font-size: 0.875rem; color: var(--bad); }

/* Check form */
.check-form { margin-top: 24px; padding: 16px; display: grid; gap: 20px; }
@media (min-width: 640px) { .check-form { padding: 24px; } }
.check-form label { display: block; font-weight: 500; }
.check-form .input { margin-top: 4px; }
.examples { margin-top: 32px; }
.examples ul { margin-top: 12px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.examples li + li { border-top: 1px solid var(--rule); }
.examples button { display: flex; min-height: 44px; width: 100%; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 16px; border: 0; background: transparent; padding: 12px 0; text-align: left; transition: background-color 150ms; }
.examples button:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.examples .ex-t { display: block; font-weight: 500; color: var(--accent); }
.examples .ex-h { display: block; font-size: 0.875rem; color: var(--muted); }
.examples .ex-go { font-size: 0.875rem; font-weight: 500; color: var(--accent); }

/* Check progress: the real stages */
.stages-head { margin-bottom: 20px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 16px; }
.stages .meter { margin-bottom: 20px; }
.stage { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0 12px; border-radius: 8px; }
.stage[data-s="run"] { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.stage .rail { display: flex; flex-direction: column; align-items: center; }
.stage .node { position: relative; margin-top: 4px; display: flex; width: 28px; height: 28px; flex: none; align-items: center; justify-content: center; border-radius: 999px; border: 2px solid var(--rule); font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.stage .node svg { width: 14px; height: 14px; }
.stage .line { width: 2px; flex: 1; background: var(--rule); }
.stage:last-child .line { display: none; }
.stage .body { min-width: 0; padding-bottom: 24px; }
.stage:last-child .body { padding-bottom: 4px; }
.stage .top { display: flex; min-height: 32px; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; }
.stage .lbl { font-weight: 500; }
.stage .word { font-size: 0.875rem; color: var(--muted); }
.stage .det { margin-top: 4px; font-family: var(--mono); font-size: 0.875rem; color: var(--muted); overflow-wrap: anywhere; }
.stage[data-s=""] .lbl { color: var(--muted); }
.stage[data-s="run"] .node { color: var(--accent); }
.stage[data-s="run"] .node::after { content: ""; position: absolute; inset: -4px; border-radius: 999px; border: 2px solid var(--accent); border-right-color: transparent; animation: node-spin 1s linear infinite; }
@keyframes node-spin { to { transform: rotate(360deg); } }
.stage[data-s="ok"] .node { border-color: var(--ok); background: var(--ok); color: var(--paper); }
.stage[data-s="ok"] .line { background: var(--ok); }
.stage[data-s="warn"] .node { border-color: var(--warn); background: var(--warn); color: var(--paper); }
.stage[data-s="warn"] .line { background: var(--warn); }
.stage[data-s="fail"] .node { border-color: var(--bad); background: var(--bad); color: var(--paper); }
.stage[data-s="fail"] .word { font-weight: 500; color: var(--bad); }
.stage[data-s="skip"] .node { border-style: dashed; }

/* Result sections */
.rsec { margin-top: 40px; }
.rsec > h2 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.3; }
.rsec > h2 + * { margin-top: 12px; }
.res-grid { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 48px; align-items: start; }
@media (min-width: 1024px) { .res-grid { grid-template-columns: minmax(0, 1fr) 24rem; } }
.fail-kick { font-size: 0.875rem; font-weight: 500; color: var(--bad); }
.fail-title { margin-top: 4px; font-family: var(--serif); font-weight: 500; font-size: 1.875rem; line-height: 1.25; }
@media (min-width: 640px) { .fail-title { font-size: 2.25rem; } }
.bytes { font-family: var(--mono); font-size: 0.875rem; word-break: break-all; line-height: 1.6; }
.bytes .d { color: var(--bad); text-decoration: underline; text-decoration-thickness: 2px; }
.cmd { display: flex; align-items: flex-start; gap: 8px; }
.cmd pre { flex: 1; min-width: 0; overflow-x: auto; border: 1px solid var(--rule); background: var(--surface); padding: 8px 12px; font-family: var(--mono); font-size: 0.875rem; white-space: pre-wrap; word-break: break-all; }
@media (max-width: 520px) { .cmd { flex-direction: column; } .cmd pre { width: 100%; } }
.fns-wrap { overflow-x: auto; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.fns { width: 100%; border-collapse: collapse; }
.fns th { text-align: left; font-size: 0.875rem; font-weight: 500; color: var(--muted); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); }
.fns td { padding: 10px 12px 10px 0; vertical-align: top; border-top: 1px solid var(--rule); }
.fns tr:first-child td { border-top: 0; }
.fns .fn { font-family: var(--mono); font-size: 0.875rem; font-weight: 500; }
.fns .sig { display: block; font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); overflow-wrap: anywhere; }
.fns .chip { margin: 0 4px 4px 0; font-size: 0.8125rem; border-color: var(--warn); color: var(--warn); }
.fns .chip.info { border-color: var(--print-line); color: var(--muted); }
.req { display: grid; gap: 16px; max-width: 42rem; }
.req label { display: block; font-weight: 500; }
.req .input { margin-top: 4px; }
.req .two { display: grid; gap: 16px; }
@media (min-width: 640px) { .req .two { grid-template-columns: 1fr 1fr; } }
.badge-img { height: 20px; display: block; }

/* Proofs list (board) */
.toolbar { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 40px; background: transparent; color: var(--ink); padding: 4px 12px; }
.filters button .c { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }
.filters button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.filters button[aria-pressed="true"] .c { color: inherit; }
.sortby { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--muted); }
.sortby select { min-height: 40px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); background: var(--paper); padding: 0 8px; color: var(--ink); }
.plist { margin-top: 16px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.plist > li + li { border-top: 1px solid var(--rule); }
.prow { display: grid; gap: 4px 24px; padding: 16px 0; }
@media (min-width: 768px) { .prow { grid-template-columns: minmax(14rem, 1fr) minmax(0, 2.2fr); } }
.prow .nm { font-weight: 500; color: var(--accent); text-decoration: underline; overflow-wrap: anywhere; }
.prow .addr { display: block; font-family: var(--mono); font-size: 0.875rem; color: var(--muted); }
.prow .meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; font-size: 0.875rem; color: var(--muted); }
@media (min-width: 768px) { .prow .meta { justify-content: flex-end; text-align: right; } }
.prow .meta a { color: var(--accent); }
.prow .st { font-weight: 600; }
.prow .why { grid-column: 1 / -1; font-size: 0.875rem; color: var(--muted); }
.own { margin-left: 6px; font-size: 0.75rem; vertical-align: 2px; }
.empty-row { padding: 24px 0; color: var(--muted); }
.notes-list { margin-top: 32px; display: grid; gap: 12px; max-width: 48rem; font-size: 0.875rem; color: var(--muted); }

/* Home extras */
.limits { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.limits li { padding: 12px 0; font-size: 1.125rem; }
.limits li + li { border-top: 1px solid var(--rule); }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 64px; padding-bottom: 64px; }
.cta-band p { max-width: 48rem; font-family: var(--serif); font-size: 2.25rem; font-weight: 500; line-height: 1.2; letter-spacing: -0.025em; }
@media (min-width: 640px) { .cta-band p { font-size: 3rem; } }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 56px; align-items: start; }
@media (min-width: 1024px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } .two-col.top { align-items: start; } .two-col.limits-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
.two-col .lead { margin-top: 16px; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); }
.foot-row { display: grid; gap: 24px; padding-top: 32px; padding-bottom: 32px; font-size: 0.875rem; color: var(--muted); }
@media (min-width: 640px) { .foot-row { grid-template-columns: minmax(0, 1fr) auto; } }
.foot-row p + p { margin-top: 4px; }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 4px 24px; align-content: start; }
@media (min-width: 640px) { .foot-row nav { justify-content: flex-end; } }
.foot-row nav a { color: var(--accent); text-decoration: underline; }

/* Sections appear as they scroll in. Browsers without scroll timelines just show them. */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}
@keyframes reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.scroll-bar { position: fixed; inset: 0 0 auto; z-index: 40; height: 3px; background: var(--accent); transform-origin: left; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .scroll-bar { animation: scroll-grow linear both; animation-timeline: scroll(root); }
}
@keyframes scroll-grow { to { transform: scaleX(1); } }

/* View switch on the index page: home, or the check workspace (?t= or ?check) */
html:not([data-view="check"]) .v-check { display: none !important; }
html[data-view="check"] .v-home { display: none !important; }
html[data-view="home"] .site-head { position: sticky; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .mark, .pulse, .machine-in, .slam, .stamp.press, .seal-check, .burst i, .meter-run > i, .ticker-track, .stage[data-s="run"] .node::after { animation: none !important; }
  .scroll-bar { display: none; }
  .ticker { overflow-x: auto; }
  .btn, .meter > i { transition: none; }
}

/* Long paths, keys and hashes wrap instead of widening the page. */
.notice, .fields dd, .prow .why, .rsec p, .stamp .st-body { overflow-wrap: anywhere; }
.stage[data-s="none"] .word { color: var(--ink); }
