:root { --accent: #98edc6; --accent-alt: #f7c789; --bg: #0c1118; --panel: #141d26; --panel-raised: #1c2935; --border: #31424f; --muted: #b2c2cb; }
html { scroll-behavior: smooth; }
body { background: radial-gradient(ellipse at 10% 0, #28534445, transparent 38%), radial-gradient(ellipse at 95% 38%, #71512c26, transparent 35%), var(--bg); }
main { width: min(1190px, 92vw); }
.skip-link { position: absolute; left: 1rem; top: -6rem; padding: 1rem; background: var(--panel); z-index: 2; }
.skip-link:focus { top: 1rem; }
.masthead, .checkpoint-top, .outcome-label, .section-heading { display: flex; align-items: center; gap: 1rem; }
.masthead { justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 1.4rem; margin-bottom: 3.5rem; flex-wrap: wrap; }
.hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.kicker { color: var(--accent-alt); font-size: .88rem; letter-spacing: .03em; }
h1 { font-size: clamp(2.75rem, 5.6vw, 5rem); line-height: 1.06; margin: 1rem 0 1.5rem; font-weight: 760; }
h1 span { color: var(--accent); }
.lede { color: var(--muted); font-size: 1.12rem; max-width: 49ch; }
.button { text-decoration: none; display: inline-block; }
.primary { background: var(--accent); color: var(--bg); font-weight: 700; border-color: var(--accent); }
.primary:hover { background: #b6f8dc; color: #0c1118; }
.checkpoint { border: 1px solid var(--border); border-radius: 1.2rem; padding: 1.7rem; background: linear-gradient(145deg, #20372eaa, var(--panel) 65%); box-shadow: 0 24px 70px #0003; }
.checkpoint-top { color: var(--muted); font-size: .75rem; letter-spacing: .09em; }
.checkpoint-top strong { font-size: 1.4rem; letter-spacing: -.03em; color: var(--text); }
.seal { border: 1px solid var(--accent); color: var(--accent); border-radius: 50%; width: 3rem; height: 3rem; display: grid; place-items: center; font: 1.1rem ui-monospace, monospace; }
dl { margin: 1.4rem 0; }
dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--border); }
dt { color: var(--muted); font-size: .9rem; }
dd { margin: 0; text-align: right; font-size: .92rem; }
.fine { color: var(--muted); font-size: .85rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; margin-top: 3.5rem; background: #121c25c9; }
.stat { padding: 1.5rem 1.7rem; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat strong { display: block; font-size: 2.8rem; line-height: 1.3; margin-top: .6rem; font-variant-numeric: tabular-nums; }
.stat small { font-size: 1rem; color: var(--text); font-weight: 500; }
.stat p { margin: .4rem 0 0; font-size: .85rem; color: var(--muted); }
.section { margin-top: 5rem; scroll-margin-top: 1.5rem; }
.section-heading { margin-bottom: 1.7rem; }
.section-heading .eyebrow { margin: 0 0 .5rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-number { font: 1rem ui-monospace, monospace; color: var(--accent-alt); border: 1px solid var(--border); padding: .9rem; border-radius: .6rem; }
.replay-shell { margin-top: 1.8rem; border: 1px solid var(--border); border-radius: 1.1rem; background: var(--panel); padding: 1.6rem; }
.replay-controls { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.replay-controls .toolbar { margin: 0 0 0 auto; }
.replay-controls label { font-size: .88rem; color: var(--muted); }
.replay-controls select { max-width: 100%; }
.frame-status { min-height: 1.7rem; margin-bottom: .5rem; color: var(--accent-alt); }
progress { width: 100%; height: .45rem; accent-color: var(--accent); border: 0; border-radius: 1rem; margin-bottom: 1.5rem; background: var(--bg); }
progress::-webkit-progress-bar { background: var(--bg); border-radius: 1rem; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 1rem; }
caption { color: var(--muted); text-align: left; font-size: .8rem; padding-bottom: .6rem; }
.receipt-table { font-size: .82rem; }
.receipt-table td:nth-child(2) { font-family: ui-monospace, monospace; }
.receipt-table tbody tr { opacity: .45; }
.receipt-table tbody tr.processed { opacity: 1; }
.receipt-table tbody tr.current { background: #29403970; }
.receipt-table .replayed { color: var(--accent-alt); }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.7rem 0; }
.outcome { border: 1px solid var(--border); border-radius: .85rem; padding: 1.4rem; background: var(--bg); }
.before { border-top: 3px solid var(--danger); }
.after { border-top: 3px solid var(--accent); }
.outcome-label { justify-content: space-between; flex-wrap: wrap; font-size: .9rem; }
.big-count { margin: 1rem 0 0; line-height: 1.1; }
.big-count > span { font-size: 4rem; font-weight: 720; font-variant-numeric: tabular-nums; }
.big-count small { font-size: 1rem; color: var(--muted); }
.before .big-count > span { color: var(--danger); }
.after .big-count > span { color: var(--accent); }
.item-row { display: flex; justify-content: space-between; gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--border); font-size: .84rem; }
.item-row span:last-child { color: var(--muted); text-align: right; }
summary { cursor: pointer; color: var(--muted); }
details pre { font-size: .76rem; max-height: 24rem; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.timeline-step { color: var(--accent-alt); font: .7rem ui-monospace, monospace; letter-spacing: .06em; }
.timeline h3 { margin-top: 1rem; }
.timeline p { color: var(--muted); font-size: .93rem; }
.timeline a { font-size: .86rem; }
.context-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.context-grid h3 { margin-top: 0; }
.context-grid ul { padding-left: 1.2rem; color: var(--muted); font-size: .9rem; }
.context-grid li { margin: .5rem 0; }
.independence { margin-top: 1.4rem; font-size: .9rem; }
.kit-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: start; }
.kit-grid p:first-child { margin-top: 0; }
.kit-grid pre { font-size: .84rem; border: 1px solid var(--border); }
.kit-boundaries h3 { margin-top: 0; }
.kit-boundaries dl { margin-top: .5rem; }
.kit-boundaries dd { font-size: .82rem; }
.hash-panel { padding: .6rem 1.5rem; border: 1px solid var(--border); border-radius: .85rem; background: var(--panel); }
.hash-panel dd { overflow-wrap: anywhere; }
.hash-panel dl > div:last-child { border-bottom: 0; }
.hash-panel code { font-size: .81rem; }
.evidence-links { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; margin: 1.5rem 0; font-size: .88rem; }
footer { margin-top: 4.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .86rem; }
footer p { max-width: 104ch; }
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1.2fr 1fr; gap: 1.5rem; }
  .checkpoint { padding: 1.2rem; }
  .stat { padding: 1.3rem; }
  .stat small { display: block; }
  .replay-controls .toolbar { margin: .5rem 0; width: 100%; }
  .timeline { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .hero-grid, .stats, .comparison, .context-grid, .kit-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 2rem; }
  .masthead { margin-bottom: 2rem; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--border); }
  .stat small { display: inline; }
  .section { margin-top: 3.5rem; }
  .replay-shell { padding: 1rem; }
  .receipt-table { min-width: 580px; }
  .hash-panel dl > div { flex-direction: column; gap: .3rem; }
  .hash-panel dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
