/* Overclaud: graphite. One stylesheet for the home page and the Learn section.
   Near-black page, light ink, one blue accent; Inter for words, JetBrains Mono for code and labels.
   Code panels are a shade darker than the page so they read as real terminals. */
:root {
  --bg: #0a0a0a; --paper: #111; --soft: #151515; --ink: #ededed; --on-ink: #0a0a0a;
  --ink-2: #a1a1a1; --ink-3: #6b6b6b; --line: #222; --line-2: #2e2e2e; --track: #262626;
  --accent: #3b82ff; --accent-text: #6aa1ff; --on-accent: #fff; --accent-soft: #0f1a2e;
  --ok: #3ecf8e; --bad: #f0614a; --heal: #14231b; --heal-scan: #1f4130;
  --code: #050505; --code-line: #1f1f1f; --nav: rgba(10, 10, 10, .8); --shadow: rgba(0, 0, 0, .8);
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --nav-h: 60px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-2); }
.label { font: 500 12px/1 var(--mono); color: var(--accent-text); }
.label { text-transform: lowercase; }
.label::before { content: "// "; }
h1, h2, h3 { color: var(--ink); }
h2 { font: 600 clamp(30px, 3.8vw, 44px)/1.05 var(--sans); letter-spacing: -.04em; max-width: 15em; margin-top: 14px; }
h3 { font: 600 17px/1.3 var(--sans); letter-spacing: -.015em; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 34em; }
section { position: relative; }
.sec { padding: 112px 0 0; }
.head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; margin-bottom: 40px; }
.head > p:not(.label) { color: var(--ink-2); max-width: 28em; }
.head.center { display: block; text-align: center; }
.head.center h2, .head.center .lede { margin-left: auto; margin-right: auto; }
.head.center .lede { margin-top: 12px; font-size: 17px; }
.reveal { transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(14px); }

/* ───────── buttons ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; font: 500 14px/1 var(--sans); white-space: nowrap; transition: background .15s, border-color .15s, opacity .15s, transform .15s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { opacity: .86; }
.btn-ghost { border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn s { opacity: .5; }
.btn[disabled] { opacity: .5; cursor: progress; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 6px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 13px/1 var(--sans); color: var(--ink-2); background: var(--paper); transition: border-color .15s; }
.chip:hover { border-color: var(--ink-3); }
.chip b { font: 500 11px/1 var(--mono); background: var(--ink); color: var(--on-ink); border-radius: 999px; padding: 5px 8px; }

/* ───────── nav ───────── */
.nav { position: sticky; top: 0; z-index: 40; background: var(--nav); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 9px; font: 600 16px/1 var(--sans); letter-spacing: -.02em; }
.brand svg { display: block; flex: none; }
.nav-links { display: flex; gap: 24px; margin-right: auto; margin-left: 12px; font-size: 14px; color: var(--ink-2); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav .short { display: none; }
.mark-tile { fill: var(--ink); } .mark-chev { stroke: var(--on-ink); } .mark-cur { stroke: var(--accent); }

/* ───────── banners (checkout return, newsletter confirm) ───────── */
.banner { position: relative; z-index: 41; padding: 12px 24px; text-align: center; font-size: 14px; border-bottom: 1px solid var(--line); }
.banner.ok { background: color-mix(in srgb, var(--ok) 12%, var(--bg)); color: var(--ink); }
.banner.off { background: var(--soft); color: var(--ink-2); }

/* ───────── code panels ───────── */
.app { position: relative; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--code); color: #e8e8e8; text-align: left; box-shadow: 0 40px 80px -40px var(--shadow); }
.app-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--code-line); font: 400 12px/1 var(--mono); color: #7d7d7d; }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2b2b2b; }
.app-bar span { margin-left: 10px; }
.app-bar em { margin-left: auto; font-style: normal; }
.pane { padding: 18px; font: 400 12.5px/1.8 var(--mono); white-space: pre; overflow: hidden; }
.k { color: #7aa7ff; } .d { color: #6e6e6e; } .g { color: #5fd39a; } .w { color: #fff; } .y { color: #e7c56b; } .r { color: var(--bad); }

/* ───────── home: hero ───────── */
.grid-bg { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); }
.hero { padding: 88px 0 0; text-align: center; }
.hero .wrap { position: relative; }
.hero h1 { font: 600 clamp(42px, 6.6vw, 76px)/1 var(--sans); letter-spacing: -.05em; margin: 24px auto 22px; max-width: 13em; }
.hero .lede { margin: 0 auto; }
.hero .cta-row { justify-content: center; margin: 32px 0 18px; }
.install { display: inline-flex; align-items: center; gap: 14px; font: 400 13.5px/1 var(--mono); color: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; background: var(--soft); white-space: nowrap; }
.install b { color: var(--ink); font-weight: 400; }
.install span { color: var(--ink-3); }
.install a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.install a:hover { color: var(--ink); }
.copy { color: var(--ink-3); padding: 2px; border-radius: 4px; transition: color .15s; }
.copy:hover { color: var(--ink); }
.hero .app { margin: 64px auto 0; max-width: 1040px; }
.app-body { display: grid; grid-template-columns: 230px 1fr 1fr; }
.tree { border-right: 1px solid var(--code-line); color: #8a8a8a; }
.tree .on { color: #fff; background: #1d1d1d; box-shadow: -18px 0 0 #1d1d1d, 40px 0 0 #1d1d1d; }
.file { border-right: 1px solid var(--code-line); color: #bdbdbd; white-space: pre-wrap; }
.sess { white-space: pre-wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1040px; margin: 0 auto; border-bottom: 1px solid var(--line); }
.stat { padding: 28px 0; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 600 32px/1 var(--sans); letter-spacing: -.04em; }
.stat span { font: 400 12px/1 var(--mono); color: var(--ink-3); }

/* ───────── home: how it works (pinned; scroll plays the session) ───────── */
.run { height: 340vh; }
.run-stage { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); display: flex; align-items: center; }
.run-grid { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; width: 100%; }
.phases { margin-top: 28px; border-left: 1px solid var(--line); }
.phase { position: relative; padding: 12px 0 12px 20px; color: var(--ink-3); transition: color .25s; }
.phase::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 2px; background: var(--ink); transform: scaleY(0); transform-origin: top; transition: transform .3s ease; }
.phase b { display: block; font: 600 15px/1.3 var(--sans); color: inherit; }
.phase span { font-size: 14px; }
.phase.on { color: var(--ink); }
.phase.on span { color: var(--ink-2); }
.phase.on::before { transform: scaleY(1); }
.phase.done { color: var(--ink-2); }
.run .pane { height: min(420px, 52vh); white-space: pre-wrap; font-size: 13px; display: flex; flex-direction: column; justify-content: flex-end; }
.ln { display: none; }
.ln.show { display: block; animation: ln .2s ease both; }
@keyframes ln { from { opacity: 0; transform: translateY(4px); } }
.run-bar { height: 2px; background: #1c1c1c; }
.run-bar i { display: block; height: 100%; width: 0; background: var(--accent); }

/* ───────── home: what you get (each card has a live graphic) ───────── */
.cells { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cell { grid-column: span 2; padding: 20px 20px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.cell.wide { grid-column: span 3; }
/* rows: 3 cards, 2 wide cards, 3 cards */
.cell:nth-child(3), .cell:nth-child(5), .cell:nth-child(8) { border-right: 0; }
.cell:nth-child(n+6) { border-bottom: 0; }
.viz-keys li { animation: none; grid-template-columns: 68px 1fr; }
.cell .n { display: flex; justify-content: space-between; font: 500 12px/1 var(--mono); color: var(--ink-3); margin: 14px 8px 6px; }
.cell .n b { color: var(--ink); font-weight: 500; }
.cell h3, .cell p { margin: 0 8px; }
.cell p { color: var(--ink-2); font-size: 15px; }
.viz { position: relative; height: 190px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); overflow: hidden; font: 400 12px/1 var(--mono); color: var(--ink-2); }
.viz.dark { background: var(--code); border-color: var(--code-line); }
.cell.wide .viz { height: 210px; }
.viz-skills { -webkit-mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent); mask-image: linear-gradient(transparent, #000 28%, #000 72%, transparent); }
.reel { position: absolute; left: 0; right: 0; top: 0; animation: reel 18s linear infinite; }
.reel li { display: flex; justify-content: space-between; height: 32px; align-items: center; padding: 0 18px; color: var(--ink-2); }
.reel li i { font-style: normal; color: var(--ink-3); font-size: 11px; }
@keyframes reel { to { transform: translateY(-50%); } }
.scan-row { position: absolute; left: 10px; right: 10px; top: 79px; height: 32px; border: 1px solid var(--accent); border-radius: 8px; background: color-mix(in srgb, var(--accent) 10%, transparent); z-index: 1; }
.scan-row span { position: absolute; left: 8px; top: calc(100% + 6px); background: var(--accent); color: var(--on-accent); font-size: 10px; padding: 3px 6px; border-radius: 4px; }
.viz-cmd pre { position: absolute; left: 16px; right: 16px; bottom: 14px; margin: 0; font: 400 12.5px/1.75 var(--mono); color: #d8d8d8; white-space: pre-wrap; }
.cur { display: inline-block; width: 7px; height: 14px; background: #d8d8d8; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.viz-head { display: flex; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 11px; }
.viz-head b { color: var(--ink); font-weight: 500; }
.viz-head b.on { color: var(--ok); }
.viz-mem ol { padding: 6px 0; }
.viz-mem li { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 7px 14px; line-height: 1.45; color: var(--ink-2); transition: background .3s, color .3s; animation: memin .45s cubic-bezier(.2, .8, .2, 1) both; }
.viz-mem li b { font-weight: 400; color: var(--ink-3); }
.viz-mem li.hit { background: var(--accent-soft); color: var(--ink); }
.viz-mem li.hit b { color: var(--accent-text); }
.viz-mem li.hit::after { content: "recalled"; grid-column: 2; font-size: 10px; color: var(--accent-text); margin-top: 2px; }
@keyframes memin { from { opacity: 0; transform: translateY(-10px); } }
.viz-evo ul { padding: 12px 14px; display: grid; gap: 10px; }
.viz-evo li { display: grid; grid-template-columns: 130px 1fr 64px; gap: 12px; align-items: center; white-space: nowrap; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.viz-evo .bar { height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; }
.viz-evo .bar i { display: block; height: 100%; border-radius: 99px; background: var(--ink); transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.viz-evo li.lead .bar i { background: var(--accent); }
.viz-evo .v { text-align: right; color: var(--ink); }
.viz-evo .v.up::before { content: "▲ "; color: var(--ok); }
.viz-evo .v.dn::before { content: "▼ "; color: var(--bad); }
.heal-grid { position: absolute; left: 14px; right: 14px; top: 14px; bottom: 46px; display: grid; grid-template-columns: repeat(16, 1fr); grid-auto-rows: 1fr; gap: 5px; }
.heal-grid i { border-radius: 3px; background: var(--heal); transition: background .3s, box-shadow .3s, transform .3s; }
.heal-grid i.scan { background: var(--heal-scan); }
.heal-grid i.bad { background: var(--bad); transform: scale(1.15); }
.heal-grid i.quar { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--bad); transform: scale(1); }
.heal-grid i.fixed { background: var(--ok); }
.heal-state { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 24px; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.heal-state .g { color: var(--ok); }

/* ───────── home: the engine (pinned; scroll turns the ring and slides the deck) ───────── */
.engine { height: calc(100vh + 7 * 60vh); }
.engine-stage { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); display: flex; align-items: center; overflow: hidden; }
.engine-stage > .wrap { width: 100%; }
.engine .head { margin-bottom: 28px; }
.engine h2 { font-size: clamp(28px, 3.4vw, 40px); }
.engine-count { display: block; margin-top: 10px; font: 400 13px/1 var(--mono); color: var(--ink-3); }
.engine-count b { color: var(--ink); font-weight: 500; }
.engine-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper); }
.loop { background: var(--soft); border-right: 1px solid var(--line); display: grid; place-items: center; padding: 24px; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 18px 18px; }
.loop svg { width: 100%; max-width: min(400px, 52vh); height: auto; display: block; overflow: visible; }
.loop .arc { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 3 5; }
.loop .arc-on { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.loop .spoke { stroke: var(--line); stroke-width: 1; }
.loop .node .core { fill: var(--paper); stroke: var(--line-2); stroke-width: 1.5; transition: fill .3s, stroke .3s; }
.loop .node text { font: 500 10px var(--mono); fill: var(--ink-3); transition: fill .3s; }
.loop .node.past .core { stroke: var(--accent); }
.loop .node.past text { fill: var(--accent-text); }
.loop .node.on .core { fill: var(--ink); stroke: var(--ink); }
.loop .node.on text { fill: var(--on-ink); }
.loop .node .halo { fill: var(--accent); opacity: 0; transform-box: fill-box; transform-origin: center; }
.loop .node.on .halo { animation: halo 1.8s ease-out infinite; }
@keyframes halo { 0% { opacity: .28; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.6); } }
.loop .pointer { fill: var(--accent); }
.loop .hub { fill: var(--paper); stroke: var(--line); }
.loop .center-t { font: 600 22px var(--sans); fill: var(--ink); letter-spacing: -.03em; }
.loop .center-s { font: 400 13px var(--sans); fill: var(--ink-2); }
.loop .packet { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
.deck { position: relative; height: min(470px, calc(100vh - 290px)); overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); }
.deck-track { position: absolute; left: 0; right: 0; top: 0; padding: 0 28px; will-change: transform; }
.sys { height: var(--card-h, 300px); margin-bottom: var(--card-gap, 24px); border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 20px; display: flex; flex-direction: column; gap: 10px; will-change: transform, opacity; }
.sys header { display: flex; align-items: baseline; gap: 12px; }
.sys header .i { font: 400 12px var(--mono); color: var(--ink-3); }
.sys header b { font: 600 15px var(--mono); letter-spacing: .03em; }
.sys header em { font-style: normal; color: var(--ink-2); font-size: 14px; margin-left: auto; }
.sys.on header b { color: var(--accent-text); }
.sys > p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.sg { margin-top: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); padding: 14px; font: 400 12px/1.4 var(--mono); color: var(--ink-2); min-height: 130px; position: relative; overflow: hidden; }
.g-oracle li { display: grid; grid-template-columns: 1fr 70px 30px; gap: 10px; align-items: center; padding: 3px 0; }
.g-oracle li i, .ab i { height: 6px; border-radius: 9px; background: var(--track); position: relative; overflow: hidden; }
.g-oracle li i::after, .ab i::after { content: ""; position: absolute; inset: 0; width: calc(var(--w) * 100%); background: var(--ink); border-radius: 9px; transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.g-oracle li:first-child i::after { background: var(--accent); }
.sys.on .g-oracle li i::after, .sys.on .ab i::after { transform: none; }
.g-oracle li small { text-align: right; color: var(--ink-3); }
.rec-box { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--ink); opacity: 0; transform: translateY(6px); transition: all .5s .5s; }
.rec-box b { color: var(--accent-text); font-weight: 500; }
.sys.on .rec-box { opacity: 1; transform: none; }
.g-scout { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.radar { position: relative; width: 96px; height: 96px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper); overflow: hidden; }
.radar i { position: absolute; inset: 16px; border-radius: 50%; border: 1px solid var(--line); }
.radar i:nth-child(2) { inset: 32px; }
.radar i:nth-child(3) { inset: 46px; background: var(--accent); border: 0; }
.radar span { position: absolute; inset: 0; background: conic-gradient(from 0deg, transparent 0 300deg, color-mix(in srgb, var(--accent) 35%, transparent) 360deg); animation: spin 2.4s linear infinite paused; }
.sys.on .radar span { animation-play-state: running; }
@keyframes spin { to { transform: rotate(1turn); } }
.g-scout li { display: grid; grid-template-columns: 1fr auto 52px; gap: 8px; align-items: center; padding: 3px 0; opacity: 0; transform: translateX(8px); transition: all .4s; }
.sys.on .g-scout li { opacity: 1; transform: none; }
.sys.on .g-scout li:nth-child(2) { transition-delay: .15s; } .sys.on .g-scout li:nth-child(3) { transition-delay: .3s; } .sys.on .g-scout li:nth-child(4) { transition-delay: .45s; }
.g-scout li b { font-weight: 500; color: var(--ink); }
.g-scout li em { font-style: normal; font-size: 10px; padding: 2px 6px; border-radius: 99px; border: 1px solid var(--line-2); }
.g-scout .t-mcp { color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.g-scout li small { text-align: right; color: var(--ink-3); }
.g-forge ol { display: grid; gap: 7px; }
.g-forge li { display: flex; gap: 10px; align-items: center; opacity: .35; transition: opacity .3s; }
.g-forge li i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--track); color: transparent; font-size: 10px; transition: background .3s, color .3s; }
.sys.on .g-forge li { opacity: 1; }
.sys.on .g-forge li i { background: var(--ok); color: #fff; }
.sys.on .g-forge li:nth-child(2), .sys.on .g-forge li:nth-child(2) i { transition-delay: .3s; }
.sys.on .g-forge li:nth-child(3), .sys.on .g-forge li:nth-child(3) i { transition-delay: .6s; }
.sys.on .g-forge li:nth-child(4), .sys.on .g-forge li:nth-child(4) i { transition-delay: .9s; }
.pipe { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 3px; border-radius: 9px; background: var(--track); overflow: hidden; }
.pipe span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.2s ease; }
.sys.on .pipe span { transform: none; }
.g-crucible { display: grid; gap: 12px; align-content: center; }
.ab { display: grid; grid-template-columns: 110px 1fr 40px; gap: 10px; align-items: center; }
.ab i { height: 14px; }
.ab i::after { background: var(--accent); }
.ab.lose i::after { background: var(--ink-3); }
.ab b { font-weight: 500; color: var(--ink); text-align: right; }
.verdict { color: var(--ink); opacity: 0; transition: opacity .4s .8s; }
.verdict small { color: var(--ink-3); }
.sys.on .verdict { opacity: 1; }
.heat { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; }
.heat i { aspect-ratio: 1; border-radius: 3px; background: var(--accent); opacity: .08; transition: opacity .5s; }
.heat-key { display: flex; justify-content: space-between; margin-top: 10px; color: var(--ink-3); }
.g-sentinel li { display: flex; gap: 10px; align-items: center; padding: 4px 0; color: var(--ink); }
.g-sentinel li i { font-style: normal; width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: 10px; color: #fff; }
.g-sentinel .ok { background: var(--ok); }
.g-sentinel .bad { background: var(--bad); }
.g-sentinel .fix { background: var(--ok); display: none; }
.g-sentinel small { margin-left: auto; }
.g-sentinel .b { color: var(--bad); }
.g-sentinel .f { color: var(--ok); display: none; }
.g-sentinel .flip { border-radius: 6px; margin: 0 -6px; padding: 4px 6px; }
.sys.on .g-sentinel .flip { animation: flash 2.4s infinite; }
.sys.on .g-sentinel .flip .bad, .sys.on .g-sentinel .flip .b { animation: swapOut 2.4s steps(1) infinite; }
.sys.on .g-sentinel .flip .fix { display: grid; animation: swapIn 2.4s steps(1) infinite; }
.sys.on .g-sentinel .flip .f { display: inline; animation: swapIn 2.4s steps(1) infinite; }
@keyframes swapOut { 0% { display: grid; } 50% { display: none; } }
@keyframes swapIn { 0% { display: none; } 50% { display: grid; } }
@keyframes flash { 0%, 45% { background: color-mix(in srgb, var(--bad) 10%, transparent); } 55%, 100% { background: transparent; } }
.phases4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; position: relative; padding-top: 8px; }
.phases4::before, .phases4::after { content: ""; position: absolute; left: 12%; right: 12%; top: 20px; height: 2px; background: var(--track); }
.phases4::after { background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.6s ease; }
.sys.on .phases4::after { transform: none; }
.phases4 li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; position: relative; z-index: 1; }
.phases4 li i { width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--line-2); transition: background .3s, border-color .3s; }
.sys.on .phases4 li i { background: var(--accent); border-color: var(--accent); }
.sys.on .phases4 li:nth-child(2) i { transition-delay: .4s; } .sys.on .phases4 li:nth-child(3) i { transition-delay: .8s; } .sys.on .phases4 li:nth-child(4) i { transition-delay: 1.2s; }
.phases4 b { font: 500 12px var(--sans); color: var(--ink); }
.phases4 small { color: var(--ink-3); font-size: 11px; }

/* ───────── home: start here (three ways in) ───────── */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.way { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); transition: border-color .2s, transform .2s, background .2s; }
.way:hover { border-color: var(--line-2); transform: translateY(-3px); }
.way-top { display: flex; justify-content: space-between; align-items: center; font: 500 12px/1 var(--mono); color: var(--ink-3); }
.way-price { color: var(--ink); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 10px; }
.way-art { height: 136px; margin: 6px 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); overflow: hidden; font: 400 12px/1.5 var(--mono); }
.way-art.dark { background: var(--code); border-color: var(--code-line); }
.way-art pre { padding: 16px; font: 400 12.5px/1.9 var(--mono); color: #d8d8d8; white-space: pre-wrap; }
.way-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; padding: 11px 14px; white-space: nowrap; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.way-list li:last-child { border-bottom: 0; }
.way-list b { font-weight: 500; color: var(--accent-text); }
.way-list i { font-style: normal; color: var(--ink-3); }
.way-list li > :nth-child(2), .way-list li { overflow: hidden; text-overflow: ellipsis; }
.way-book { display: flex; gap: 14px; align-items: center; padding: 16px; }
.way-book img { width: 56px; height: 70px; object-fit: cover; border-radius: 8px; filter: grayscale(1); flex: none; }
.way-book b { display: block; font: 600 14px var(--sans); color: var(--ink); }
.way-book span { color: var(--ink-3); }
.slots { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.slots i { font-style: normal; font-size: 11px; padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); }
.slots i.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.way h3 { font-size: 20px; }
.way p { color: var(--ink-2); font-size: 15px; }
.way-go { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; font: 500 14px var(--sans); }
.way-go i { font-style: normal; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s; }
.way:hover .way-go i { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.way-main { border-color: var(--line-2); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--paper)), var(--paper) 45%); }
.way-main .way-price { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.way-main .way-go i { background: var(--accent); border-color: var(--accent); color: #fff; }
.latest { display: grid; grid-template-columns: 200px 1fr; gap: 40px; margin-top: 48px; }
.latest h3 { font: 500 12px/1.4 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.latest h3 a { display: block; margin-top: 10px; color: var(--accent-text); text-transform: none; letter-spacing: 0; font-size: 13px; }
.guide-row { display: grid; grid-template-columns: 80px 1fr auto; gap: 20px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.guide-row:last-child { border-bottom: 1px solid var(--line); }
.guide-row .tg { font: 500 11px/1 var(--mono); color: var(--accent-text); }
.guide-row-title { font-size: 16px; }
.guide-row-min { font: 400 12px var(--mono); color: var(--ink-3); }
.guide-row:hover .guide-row-title { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }

/* ───────── home: founder ───────── */
.founder { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: center; }
.portrait { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--soft); }
.portrait img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 20%; }
.portrait figcaption { display: flex; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); font: 400 12px var(--mono); color: var(--ink-3); }
.founder h2 { margin-bottom: 18px; }
.founder p + p { margin-top: 12px; }
.creds { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px; margin: 28px 0; overflow: hidden; }
.creds li { padding: 14px 16px; border-left: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.creds li:first-child { border-left: 0; }
.creds li b { display: block; font: 600 18px/1.2 var(--sans); color: var(--ink); letter-spacing: -.02em; margin-bottom: 2px; }
.aside { margin-top: 20px; font-size: 14px; color: var(--ink-3); }
.aside a, .fineprint a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* ───────── home: pricing ───────── */
.plans { display: grid; grid-template-columns: 1fr 1.08fr 1fr; gap: 16px; align-items: center; }
.plan { border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; background: var(--paper); }
.plan.featured { position: relative; padding: 34px 30px; border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, var(--paper)), var(--paper) 38%); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--accent) 35%, transparent), 0 0 0 1px color-mix(in srgb, var(--accent) 15%, transparent) inset; }
.plan .tag { font: 500 12px/1 var(--mono); color: var(--ink-3); display: flex; justify-content: space-between; align-items: center; }
.pop { color: var(--on-accent); background: var(--accent); border-radius: 999px; padding: 5px 9px; font-size: 11px; }
.plan h3 { margin: 14px 0 18px; font-size: 20px; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price b { font: 600 46px/1 var(--sans); letter-spacing: -.05em; }
.plan.featured .price b { font-size: 60px; }
.price s { color: var(--ink-3); font-size: 18px; }
.price small { color: var(--ink-3); font: 400 13px var(--mono); }
.plan .note { color: var(--ink-2); font-size: 14px; margin: 12px 0 20px; }
.ticks { border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 24px; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 24px; font-size: 14.5px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px; border-left: 1.6px solid var(--ok); border-bottom: 1.6px solid var(--ok); transform: rotate(-45deg); }
.plan.featured .ticks li::before { border-color: var(--accent-text); }
.seats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; margin-bottom: 18px; }
.seats button { height: 34px; border-radius: 999px; font: 500 13px var(--sans); color: var(--ink-2); transition: background .15s, color .15s; }
.seats button small { font: 400 11px var(--mono); margin-left: 4px; color: inherit; opacity: .7; }
.seats button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.plan .btn { margin-top: auto; }
.plan-foot { margin-top: 12px; text-align: center; font: 400 12px var(--mono); color: var(--ink-3); }
.every { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 36px; font: 400 13px var(--mono); color: var(--ink-2); }
.every li::before { content: "✓ "; color: var(--ok); }
.fineprint { text-align: center; color: var(--ink-3); font-size: 14px; margin-top: 18px; }

/* ───────── field notes sign-up (home and Learn) ───────── */
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 40px; background: var(--soft); background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 16px 16px; }
.notes > div { background: var(--soft); box-shadow: 0 0 0 12px var(--soft); }
.notes h2 { font-size: clamp(26px, 3vw, 34px); }
.notes p.muted { margin-top: 10px; }
.notes form { min-width: 0; }
/* .later is /pay's 10% code form (pay-core.css); it shares the field. */
.notes .field, .later .field { display: flex; gap: 8px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; transition: border-color .15s, box-shadow .15s; }
.notes .field:focus-within, .later .field:focus-within { border-color: var(--ink-3); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 8%, transparent); }
.notes input[type=email], .later input[type=email] { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: none; color: var(--ink); font: 400 15px var(--sans); padding: 0 14px; }
.notes input[aria-invalid="true"], .later input[aria-invalid="true"] { color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#notes-turnstile:not(:empty) { margin-top: 10px; }
.form-note { font-size: 13px; color: var(--ink-3); margin-top: 10px; padding-left: 14px; }
.form-note a { text-decoration: underline; text-underline-offset: 3px; }
.form-note.ok { color: var(--ok); }
.form-note.err { color: var(--bad); }

/* ───────── FAQ ───────── */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; font: 500 16.5px/1.4 var(--sans); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 20px/1 var(--mono); color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding: 0 40px 22px 0; }
.faq a { text-decoration: underline; text-underline-offset: 3px; }

/* ───────── closing call ───────── */
.final { padding: 120px 0; }
.final-box { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line-2); background: var(--code); padding: 72px 32px; text-align: center; }
.final-box .grid-bg { background-image: linear-gradient(#1a1a1a 1px, transparent 1px), linear-gradient(90deg, #1a1a1a 1px, transparent 1px); -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 20%, transparent 75%); }
.final h2 { position: relative; margin: 0 auto 16px; font-size: clamp(34px, 4.6vw, 56px); }
.final h2 s { color: var(--ink-3); text-decoration-thickness: 3px; }
.final p { position: relative; color: var(--ink-2); max-width: 30em; margin: 0 auto; }
.final .cta-row { position: relative; justify-content: center; margin-top: 32px; }

/* ───────── footer ───────── */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 13.5px; color: var(--ink-3); }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot h2 { font: 500 12px/1 var(--mono); color: var(--ink); margin: 0 0 14px; letter-spacing: 0; }
.foot ul { display: grid; gap: 8px; }
.foot a:hover { color: var(--ink); }
.foot p { margin-top: 12px; max-width: 22em; }
.foot .brand { color: var(--ink); }

/* ───────── buy bar ───────── */
.buybar { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 140%); z-index: 30; display: flex; align-items: center; gap: 14px; padding: 6px 6px 6px 18px; background: var(--code); border: 1px solid var(--line-2); color: #d6d6d6; border-radius: 999px; font: 400 13px var(--mono); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .7); transition: transform .35s cubic-bezier(.2, .8, .2, 1); white-space: nowrap; }
.buybar.show { transform: translate(-50%, 0); }
.buybar b { color: #fff; font-weight: 500; }
.buybar .btn { height: 34px; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 8px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent); }

/* ───────── Learn: shared ───────── */
.learn .head { margin-bottom: 32px; }
.card.guide { position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, background .2s; }
.card.guide:hover { border-color: var(--line-2); background: var(--soft); }
.card.guide .tag { display: flex; justify-content: space-between; font: 500 11px/1 var(--mono); color: var(--accent-text); text-transform: uppercase; letter-spacing: .04em; }
.card.guide .tag b { font-weight: 400; color: var(--ink-3); text-transform: none; }
.card.guide h3 { font-size: 18px; line-height: 1.3; }
.card.guide h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.card.guide p { color: var(--ink-2); font-size: 14.5px; }
.card.guide .live { margin-top: auto; padding-top: 8px; font: 400 12px var(--mono); color: var(--ink-3); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* Learn index */
.learn-hero { padding: 80px 0 24px; }
.learn-hero .wrap { position: relative; }
.learn-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.learn-hero h1 { font: 600 clamp(40px, 5.6vw, 68px)/1 var(--sans); letter-spacing: -.05em; margin: 20px 0 20px; }
.learn-hero h1 span { color: var(--ink-3); }
.find { display: flex; align-items: center; gap: 10px; margin-top: 28px; height: 48px; padding: 0 8px 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); transition: border-color .15s; }
.find:focus-within { border-color: var(--ink-3); }
.find > span { font: 400 14px var(--mono); color: var(--ink-3); }
.find input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: 400 15px var(--sans); }
.find input::-webkit-search-cancel-button { filter: invert(1); }
.find kbd { font: 400 12px var(--mono); color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 8px; }
.find-status { min-height: 1.4em; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.learn-stats { display: flex; gap: 24px; flex-wrap: wrap; font: 400 13px var(--mono); color: var(--ink-3); }
.learn-stats b { color: var(--ink); font-weight: 500; }
.learn-map .pane { white-space: pre-wrap; font-size: 12.5px; }
.learn-map a { color: #d8d8d8; }
.learn-map a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.path { display: grid; gap: 16px; }
.path-step { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; }
.path-node span { display: block; font: 500 12px var(--mono); color: var(--accent-text); }
.path-node b { display: block; margin-top: 8px; font: 600 20px/1.2 var(--sans); letter-spacing: -.02em; }
.path-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.path-soon { color: var(--ink-3); font-size: 14.5px; align-self: center; }
.path-soon a { color: var(--accent-text); }
.cheat { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cheat-tabs { display: flex; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--soft); overflow-x: auto; }
.cheat-tabs button { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; font: 500 13.5px var(--sans); color: var(--ink-2); transition: background .15s, color .15s; }
.cheat-tabs button:hover { color: var(--ink); }
.cheat-tabs button[aria-selected="true"] { background: var(--ink); color: var(--on-ink); }
.cheat-panel { padding: 24px; }
.cheat-intro { color: var(--ink-2); max-width: 60em; }
.cheat-intro a, .cheat-source a { color: var(--accent-text); }
.cheat-tables { display: grid; gap: 18px; margin-top: 18px; }
.cheat-source { margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-wrap caption { text-align: left; padding: 12px 14px; font: 500 12px var(--mono); color: var(--ink); border-bottom: 1px solid var(--line); background: var(--soft); }
.table-wrap th { text-align: left; padding: 10px 14px; font: 500 11px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
.table-wrap td { padding: 10px 14px; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { color: var(--ink); }
.try { border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: var(--soft); }
.try .field { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 6px 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); }
.try .field:focus-within { border-color: var(--ink-3); }
.try-prompt { font: 500 15px var(--mono); color: var(--accent-text); }
.try input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: 400 15px var(--sans); }
.try-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.try-chips button { height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--ink-2); transition: border-color .15s, color .15s; }
.try-chips button:hover { border-color: var(--ink-3); color: var(--ink); }
.try-results { display: grid; gap: 8px; margin-top: 18px; }
.try-hit { display: grid; grid-template-columns: 1fr 120px; gap: 18px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); animation: memin .4s var(--d, 0ms) both; }
.try-hit b { display: block; font: 500 14px var(--mono); color: var(--accent-text); }
.try-hit span { font-size: 14px; color: var(--ink-2); }
.try-hit i { height: 6px; border-radius: 9px; background: var(--track); overflow: hidden; }
.try-hit em { display: block; height: 100%; background: var(--accent); border-radius: 9px; }
.try-none { color: var(--ink-2); font-size: 14.5px; padding: 8px 2px; }
.try-note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

/* Learn article */
.progress { position: fixed; left: 0; right: 0; top: var(--nav-h); height: 2px; z-index: 39; }
.progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.article-head { padding-top: 64px; padding-bottom: 40px; }
.article-head h1 { max-width: 20em; }
.article-head .lede { max-width: 38em; }
.crumbs { display: flex; gap: 8px; font: 400 13px var(--mono); color: var(--ink-3); margin-bottom: 28px; }
.crumbs a:hover { color: var(--ink); }
.article-head h1 { font: 600 clamp(34px, 4.6vw, 52px)/1.05 var(--sans); letter-spacing: -.045em; margin: 16px 0 18px; }
.byline { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.byline a { color: var(--ink); }
.article-grid { display: grid; grid-template-columns: minmax(0, 720px) 220px; gap: 64px; justify-content: space-between; padding-bottom: 40px; border-top: 1px solid var(--line); padding-top: 40px; }
.toc { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
.toc ol { margin-top: 14px; display: grid; gap: 8px; border-left: 1px solid var(--line); }
.toc a { display: block; padding-left: 14px; font-size: 13.5px; color: var(--ink-3); line-height: 1.4; }
.toc a:hover { color: var(--ink); }
.prose { font-size: 17px; line-height: 1.75; color: #cfcfcf; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.03em; margin-top: 2em; max-width: none; position: relative; }
.prose h3 { font-size: 19px; margin-top: 1.6em; position: relative; }
.prose .anchor { position: absolute; left: -1.1em; color: var(--ink-3); opacity: 0; transition: opacity .15s; }
.prose .anchor::before { content: "#"; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose a { color: var(--accent-text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--ink-3); }
.prose :not(pre) > code { overflow-wrap: anywhere; font: 500 .86em var(--mono); color: var(--ink); background: var(--soft); border: 1px solid var(--line); padding: .1em .4em; border-radius: 6px; }
.prose blockquote { border-left: 2px solid var(--accent); padding-left: 18px; color: var(--ink-2); }
.prose .table-wrap { font-size: 15px; }
figure.code { position: relative; border: 1px solid var(--line-2); border-radius: 12px; background: var(--code); overflow: hidden; }
figure.code pre { padding: 18px; overflow-x: auto; font: 400 13.5px/1.7 var(--mono); color: #e2e2e2; }
.code-lang { position: absolute; right: 12px; top: 10px; font: 400 11px var(--mono); color: #6e6e6e; }
.tldr, .endcap { border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; background: var(--soft); }
.tldr p:last-child { margin-top: 8px; color: var(--ink); font-size: 16.5px; }
.endcap { margin-top: 3em !important; background: var(--code); border-color: var(--line-2); }
.endcap h2 { margin-top: 10px; font-size: 26px; }
.endcap p { color: var(--ink-2); margin-top: 10px; }
.endcap .cta-row { margin-top: 20px; }
.prose .endcap a.btn { text-decoration: none; color: inherit; }
.prose .endcap a.btn-primary { color: var(--on-ink); }
.author { display: flex; gap: 18px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 2.4em !important; }
.author img { width: 72px; height: 90px; object-fit: cover; border-radius: 10px; flex: none; filter: grayscale(1); }
.author p { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.author b { color: var(--ink); }
.related { padding: 72px 0 0; }
.related h2 { margin-bottom: 24px; font-size: 28px; }
.learn > section:last-child { padding: 96px 0 112px; }

/* ───────── small screens ───────── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero { padding-top: 56px; }
  .install { font-size: 12px; }
  .install span:last-child, .install a { display: none; }
  .install { max-width: 100%; }
  .install b { min-width: 0; overflow: hidden; text-overflow: ellipsis; } /* the copy button copies the full command */
  .app-body { grid-template-columns: 1fr; }
  .tree, .file { display: none; }
  .hero .pane { font-size: 11.5px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .sec { padding-top: 80px; }
  .head { grid-template-columns: 1fr; gap: 16px; }
  .run { height: 300vh; }
  .run-grid { grid-template-columns: 1fr; gap: 16px; }
  .run h2 { font-size: 28px; }
  .run-copy > p:not(.label) { display: none; }
  .phases { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 0; border-top: 1px solid var(--line); margin-top: 12px; }
  .phase { padding: 10px 6px 0 0; }
  .phase::before { left: 0; right: 6px; top: -1px; bottom: auto; width: auto; height: 2px; transform: scaleX(0); transform-origin: left; }
  .phase.on::before { transform: scaleX(1); }
  .phase span { display: none; }
  .phase b { font-size: 13px; }
  .run .pane { height: min(360px, 46vh); font-size: 11.5px; padding: 14px; }
  .cells { grid-template-columns: 1fr; }
  .cell, .cell.wide { grid-column: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .cell:last-child { border-bottom: 0; }
  .viz-evo li { grid-template-columns: 122px 1fr 52px; gap: 8px; font-size: 11px; }
  .engine .head { gap: 0; margin-bottom: 12px; }
  .engine h2 { font-size: 24px; }
  .engine-sub { display: none; }
  .engine-count { margin-top: 8px; }
  .engine-grid { grid-template-columns: 1fr; }
  .loop { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }
  .loop svg { max-width: min(220px, 30vh); }
  .deck { height: calc(100vh - var(--nav-h) - min(220px, 30vh) - 170px); }
  .deck-track { padding: 0 12px; }
  .sys { --card-h: 270px; --card-gap: 16px; padding: 16px; }
  .sys > p { font-size: 13.5px; }
  .sg { min-height: 0; padding: 12px; }
  .g-scout { grid-template-columns: 1fr; }
  .radar { display: none; }
  .g-oracle li { grid-template-columns: 1fr 50px 28px; }
  .ways { grid-template-columns: 1fr; }
  .latest { grid-template-columns: 1fr; gap: 16px; }
  .guide-row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .guide-row .tg { grid-column: 1/-1; }
  .founder { grid-template-columns: 1fr; gap: 32px; }
  .portrait { max-width: 380px; }
  .creds { grid-template-columns: repeat(2, 1fr); }
  .creds li:nth-child(3) { border-left: 0; }
  .creds li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .plans { grid-template-columns: 1fr; }
  .plan.featured { order: -1; }
  .notes { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 24px; }
  .final { padding: 80px 0; }
  .final-box { padding: 56px 20px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1/-1; }
  .buybar { gap: 10px; padding-left: 14px; font-size: 12px; }
  .buybar .long { display: none; }
  .learn-hero { padding-top: 48px; }
  .learn-grid { grid-template-columns: 1fr; gap: 32px; }
  .path-step { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .cheat-panel { padding: 16px; }
  .try { padding: 16px; }
  .try-hit { grid-template-columns: 1fr; gap: 10px; }
  .article-head { padding-top: 40px; }
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
  .prose .anchor { display: none; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .nav .long { display: none; }
  .nav .short { display: inline; }
  .faq details p { padding-right: 0; }
  .find kbd { display: none; }
  .try-more { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ln.show, .try-hit, .viz-mem li { animation: none; }
  .js .reveal:not(.in) { opacity: 1; transform: none; }
}
