/* Overclaud CRT site: shared styles for the home page and the Learn section. */
:root {
  --bg: #04070e;
  --bg-2: #070d1a;
  --panel: rgba(18, 36, 72, .32);
  --line: rgba(120, 170, 255, .16);
  --line-strong: rgba(140, 185, 255, .34);
  --ink: #d6e4ff;        /* body text */
  --ink-bright: #f2f7ff; /* headings */
  --ink-dim: #8aa3cc;    /* secondary text */
  --ink-faint: #5a7096;
  --phos: #8fbaff;       /* phosphor blue */
  --phos-hot: #cfe1ff;
  --glow: rgba(91, 155, 255, .45);
  --accent: #2563eb;     /* Overclaud brand blue */
  --ok: #7ee2b8;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(64px, 8vw, 104px);
  --radius: 6px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 700px at 70% -10%, rgba(37, 99, 235, .18), transparent 60%),
    radial-gradient(900px 600px at 0% 40%, rgba(37, 99, 235, .07), transparent 60%),
    var(--bg);
}
/* CRT texture: fine scanlines and a soft vignette, fixed over everything, never intercepting input. */
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; }
body::before { background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px); opacity: .45; }
body::after { background: radial-gradient(130% 100% at 50% 50%, transparent 60%, rgba(0, 0, 0, .55) 100%); }
a { color: var(--phos-hot); }
img, canvas { display: block; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--phos-hot); outline-offset: 3px; border-radius: 3px; }

/* ───── type ───── */
h1, h2, h3 { font-family: var(--mono); color: var(--ink-bright); margin: 0; letter-spacing: -.02em; text-shadow: 0 0 18px var(--glow); }
h1 { font-weight: 800; font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.04; }
h2 { font-weight: 700; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.1; }
h3 { font-weight: 700; font-size: 1.15rem; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }
.lede { font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--ink); max-width: 58ch; }
.muted { color: var(--ink-dim); }
.label { font: 500 .78rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--phos); }
.label::before { content: "> "; color: var(--ink-faint); }
.cursor { display: inline-block; width: .55em; height: .9em; background: currentColor; vertical-align: -.08em; margin-left: .06em; animation: blink 1.06s steps(2, jump-none) infinite; box-shadow: 0 0 12px var(--glow); }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

/* ───── buttons ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: 0 24px; border-radius: var(--radius);
  font: 700 .95rem/1 var(--mono); letter-spacing: .02em; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--phos-hot); color: #061229; box-shadow: 0 0 0 1px rgba(207, 225, 255, .5), 0 0 28px rgba(91, 155, 255, .45); }
.btn-primary:hover { background: #fff; box-shadow: 0 0 0 1px #fff, 0 0 40px rgba(91, 155, 255, .65); }
.btn-ghost { color: var(--ink-bright); border-color: var(--line-strong); background: rgba(18, 36, 72, .25); }
.btn-ghost:hover { border-color: var(--phos); background: rgba(37, 99, 235, .14); }
.btn s { opacity: .55; font-weight: 500; }
.btn-block { width: 100%; }

/* ───── nav ───── */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: rgba(4, 7, 14, .72); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-bright); font: 800 1rem/1 var(--mono); letter-spacing: .08em; }
.brand canvas { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--ink-dim); text-decoration: none; font: 500 .86rem/1 var(--mono); }
.nav-links a:hover { color: var(--ink-bright); }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: .84rem; white-space: nowrap; }
.nav .short { display: none; }
@media (max-width: 520px) { .nav .long { display: none; } .nav .short { display: inline; } }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ───── hero ───── */
.hero { padding: clamp(48px, 8vw, 96px) 0 var(--section); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(32px, 6vw, 72px); }
.hero h1 { margin: 20px 0 22px; }
.hero h1 .word { color: var(--phos-hot); } /* own line, so the cycling word never reflows the page */
.hero .lede { margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.assure { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; font: 500 .82rem/1.4 var(--mono); color: var(--ink-dim); }
.assure span::before { content: "✓ "; color: var(--ok); }
.screen { position: relative; border: 1px solid var(--line-strong); border-radius: 14px; padding: 18px; background: radial-gradient(120% 90% at 50% 40%, rgba(37, 99, 235, .16), rgba(4, 7, 14, .6) 70%);
  box-shadow: inset 0 0 60px rgba(37, 99, 235, .12), 0 30px 80px rgba(0, 0, 0, .5); }
.screen-bar { display: flex; justify-content: space-between; font: 500 .72rem/1 var(--mono); letter-spacing: .14em; color: var(--ink-faint); text-transform: uppercase; margin-bottom: 8px; }
.screen-bar b { color: var(--ok); font-weight: 500; }
.art { width: 100%; }
#bunny { aspect-ratio: 1 / 1.02; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .screen { max-width: 300px; width: 100%; margin-inline: auto; padding: 12px; } /* after the pitch on phones: headline and button stay above the fold */
}

/* ───── stats ───── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.stat { padding: 28px 8px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font: 800 clamp(1.7rem, 3.4vw, 2.5rem)/1 var(--mono); color: var(--ink-bright); text-shadow: 0 0 18px var(--glow); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; font: 500 .74rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ───── sections ───── */
section { padding-block: var(--section); }
.head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.head h2 { margin: 18px 0 18px; }
.head.center { margin-inline: auto; text-align: center; }
.head.center .lede { margin-inline: auto; }

/* ───── terminal card ───── */
.term { border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(3, 6, 13, .85); box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 0 40px rgba(37, 99, 235, .08); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 500 .76rem/1 var(--mono); color: var(--ink-faint); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(140, 185, 255, .2); }
.term-bar span { margin-left: 8px; }
.term pre { margin: 0; padding: 22px 22px 26px; font: 400 clamp(.78rem, 1.6vw, .95rem)/1.75 var(--mono); color: var(--ink); white-space: pre-wrap; min-height: calc(10 * 1.75em + 48px); }
.term .p { color: var(--phos); } .term .d { color: var(--ink-faint); } .term .ok { color: var(--ok); } .term .hi { color: var(--ink-bright); text-shadow: 0 0 14px var(--glow); }
.install { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; counter-increment: s; }
.steps li::before { content: "0" counter(s); font: 700 .9rem/1 var(--mono); color: var(--phos); border: 1px solid var(--line-strong); border-radius: 4px; height: 32px; display: grid; place-items: center; }
.steps b { display: block; font: 700 .98rem/1.3 var(--mono); color: var(--ink-bright); margin-bottom: 3px; }
.steps span { color: var(--ink-dim); font-size: .98rem; }
code { font: 500 .9em var(--mono); color: var(--phos-hot); background: rgba(37, 99, 235, .14); padding: .12em .4em; border-radius: 4px; }
@media (max-width: 860px) { .install { grid-template-columns: 1fr; } }

/* ───── features ───── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 26px 24px 24px; transition: border-color .2s; }
.card:hover { border-color: var(--line-strong); }
.card .tag { display: flex; justify-content: space-between; font: 500 .74rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 22px; }
.card .tag b { color: var(--phos); font-weight: 500; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-dim); font-size: .98rem; }
.card .live { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); font: 500 .8rem/1.4 var(--mono); color: var(--phos); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.4em; }
.card.wide { grid-column: span 2; }
#helix { height: 96px; margin-top: 16px; }
@media (max-width: 960px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } .card.wide { grid-column: auto; } }

/* ───── harness ───── */
.harness { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
#ring { aspect-ratio: 1 / .92; }
.subs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.subs li { border-bottom: 1px solid var(--line); }
.subs button { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: 22px 120px 1fr; gap: 12px; align-items: baseline; padding: 14px 6px; }
.subs .dot { font: 700 .9rem/1 var(--mono); color: var(--ink-faint); }
.subs .name { font: 700 .95rem/1.3 var(--mono); color: var(--ink-dim); letter-spacing: .04em; }
.subs .verb { font-size: .95rem; color: var(--ink-faint); }
.subs .detail { grid-column: 2 / -1; display: none; color: var(--ink); font-size: .96rem; margin-top: 4px; }
.subs [aria-current="true"] .dot, .subs [aria-current="true"] .name { color: var(--ink-bright); text-shadow: 0 0 14px var(--glow); }
.subs [aria-current="true"] .verb { color: var(--phos); }
.subs [aria-current="true"] .detail { display: block; }
.subs button:hover .name { color: var(--ink-bright); }
@media (max-width: 860px) { .harness { grid-template-columns: 1fr; } #ring { max-width: 440px; margin-inline: auto; width: 100%; } .subs button { grid-template-columns: 22px 104px 1fr; } }

/* ───── pricing ───── */
.plans { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 30px 26px; }
.plan.featured { border-color: var(--phos); background: linear-gradient(180deg, rgba(37, 99, 235, .2), rgba(18, 36, 72, .3)); box-shadow: 0 0 0 1px rgba(143, 186, 255, .25), 0 0 60px rgba(37, 99, 235, .22); }
.plan .tag { font: 500 .74rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--phos); margin-bottom: 16px; }
.plan h3 { font-size: 1.3rem; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 6px; font-family: var(--mono); }
.price b { font-size: 3rem; line-height: 1; color: var(--ink-bright); text-shadow: 0 0 20px var(--glow); font-weight: 800; }
.price s { color: var(--ink-faint); font-size: 1.15rem; }
.price small { color: var(--ink-dim); font-size: .85rem; }
.plan .note { color: var(--ink-dim); font-size: .94rem; margin-bottom: 22px; }
.ticks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 9px; font-size: .95rem; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; }
.ticks li::before { content: "+"; font: 700 .95rem/1.65 var(--mono); color: var(--phos); }
.plan .btn { margin-top: auto; }
.seats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
.seats button { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; padding: 12px 6px; border: 1px solid var(--line-strong); border-radius: var(--radius); font: 700 .95rem/1.2 var(--mono); color: var(--ink-dim); }
.seats button small { display: block; font-weight: 500; font-size: .74rem; color: var(--ink-faint); margin-top: 4px; }
.seats button[aria-pressed="true"] { border-color: var(--phos); color: var(--ink-bright); background: rgba(37, 99, 235, .18); }
.fineprint { text-align: center; margin-top: 28px; color: var(--ink-dim); font-size: .94rem; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ───── faq ───── */
.faq { max-width: 820px; margin-inline: 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: 20px; padding: 22px 4px; font: 600 1.02rem/1.4 var(--mono); color: var(--ink-bright); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--phos); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 4px 24px; color: var(--ink-dim); max-width: 68ch; }

/* ───── final cta ───── */
.final .wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; border: 1px solid var(--line-strong); border-radius: 14px; padding: clamp(32px, 6vw, 64px);
  background: radial-gradient(90% 120% at 0% 50%, rgba(37, 99, 235, .22), transparent 70%), var(--panel); }
#bunny2 { width: clamp(160px, 22vw, 240px); aspect-ratio: 1 / 1.02; }
.final h2 s { color: var(--ink-faint); text-shadow: none; font-weight: 500; }
.final p { margin: 18px 0 28px; }
@media (max-width: 760px) { .final .wrap { grid-template-columns: 1fr; text-align: center; } #bunny2 { margin-inline: auto; } .final .cta-row { justify-content: center; } }

/* ───── founder ───── */
.founder { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.portrait { position: relative; margin: 0; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: var(--bg); box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 60px rgba(37, 99, 235, .15); }
.portrait img { width: 100%; height: auto; }
/* Same scanlines as the page, a touch stronger, so the photo reads as on-screen. */
.portrait::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px); pointer-events: none; }
.portrait figcaption { position: absolute; left: 14px; bottom: 12px; font: 500 .72rem/1 var(--mono); letter-spacing: .16em; color: var(--phos-hot); text-shadow: 0 0 10px var(--glow); }
.founder h2 { margin: 18px 0 20px; }
.founder .lede { margin-bottom: 16px; }
.founder .muted { max-width: 58ch; }
.founder .cta-row { margin-top: 30px; }
.aside { margin-top: 22px; font-size: .95rem; color: var(--ink-dim); }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } .portrait { max-width: 320px; } }

/* ───── field notes ───── */
.notes { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: clamp(28px, 5vw, 52px); background: var(--panel); }
.notes h2 { margin: 18px 0 16px; font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.field { display: flex; gap: 10px; }
.field input { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: rgba(3, 6, 13, .8); color: var(--ink-bright); font: 500 1rem var(--mono); }
.field input::placeholder { color: var(--ink-faint); }
.field input:focus { outline: none; border-color: var(--phos); box-shadow: 0 0 0 3px rgba(91, 155, 255, .25); }
.field input[aria-invalid="true"] { border-color: #ff8f8f; }
.form-note { margin-top: 12px; font: 500 .8rem/1.5 var(--mono); color: var(--ink-faint); }
.form-note.ok { color: var(--ok); } .form-note.err { color: #ff9f9f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 860px) { .notes { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .field { flex-direction: column; } }

/* ───── footer, banners, sticky bar ───── */
footer { padding: 48px 0 120px; border-top: 1px solid var(--line); margin-top: var(--section); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; font: 500 .82rem/1.6 var(--mono); color: var(--ink-faint); }
footer nav { display: flex; gap: 22px; }
footer a { color: var(--ink-dim); text-decoration: none; }
footer a:hover { color: var(--ink-bright); }
.banner { position: sticky; top: 0; z-index: 60; padding: 14px var(--gutter); text-align: center; font: 500 .92rem/1.5 var(--mono); }
.banner.ok { background: #0f3b2c; color: #c9f5e2; } .banner.off { background: #1c2333; color: var(--ink); }
.buybar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70; display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(6, 12, 26, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transform: translateY(140%); transition: transform .3s ease; }
.buybar.show { transform: none; }
.buybar span { font: 600 .86rem/1.3 var(--mono); color: var(--ink-bright); }
.buybar span small { display: block; color: var(--ink-dim); font-weight: 500; font-size: .74rem; }
.buybar .btn { min-height: 44px; padding: 0 18px; white-space: nowrap; }
@media (max-width: 860px) { .buybar { display: flex; } }

/* Reveal on scroll: content is visible without JS; the class only exists once JS has run. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ───── learn: index, articles, guide cards ───── */
.nav-links a[aria-current="page"] { color: var(--ink-bright); text-shadow: 0 0 12px var(--glow); }
.learn-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(24px, 4vw, 40px); }
.learn-hero h1 { margin: 18px 0 20px; }
.learn section { padding-block: clamp(40px, 6vw, 72px); }
.guide h3 a { color: inherit; text-decoration: none; }
.guide h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card is the link */
.guide h3 a:focus-visible { outline: none; }
.guide:focus-within { outline: 2px solid var(--phos-hot); outline-offset: 3px; }
.guide .live { color: var(--ink-faint); }
.latest-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.latest-head a { font: 600 .9rem/1 var(--mono); color: var(--phos-hot); text-decoration: none; }

.article-head { padding: clamp(40px, 7vw, 88px) 0 clamp(24px, 3vw, 36px); }
.article-head > * { max-width: 860px; } /* cap the text, not the container, so it lines up with the article body */
.article-head h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 16px 0 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; font: 500 .8rem/1.4 var(--mono); color: var(--ink-faint); }
.crumbs a { color: var(--ink-dim); text-decoration: none; }
.crumbs a:hover { color: var(--ink-bright); }
.byline { margin-top: 18px; font: 500 .84rem/1.5 var(--mono); color: var(--ink-faint); }
.byline a { color: var(--ink-dim); }
.article-grid { display: grid; grid-template-columns: minmax(0, 720px) 220px; gap: clamp(32px, 6vw, 80px); justify-content: start; padding-bottom: 24px; }
.toc { position: sticky; top: 96px; align-self: start; border-left: 1px solid var(--line); padding-left: 18px; }
.toc ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.toc a { color: var(--ink-dim); text-decoration: none; font-size: .9rem; line-height: 1.4; }
.toc a:hover { color: var(--ink-bright); }
@media (max-width: 1000px) { .article-grid { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }

.prose { font-size: 1.06rem; line-height: 1.75; color: var(--ink); min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-top: 2.2em; scroll-margin-top: 96px; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8em; scroll-margin-top: 96px; text-shadow: none; }
.prose .anchor { float: left; margin-left: -1.1em; width: 1.1em; color: var(--ink-faint); text-decoration: none; opacity: 0; transition: opacity .15s; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose p, .prose li { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--phos); }
.prose strong { color: var(--ink-bright); }
.prose a { color: var(--phos-hot); text-underline-offset: 3px; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--phos); color: var(--ink-dim); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose .code { position: relative; margin: 1.4em 0; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(3, 6, 13, .85); }
.prose .code pre { margin: 0; padding: 18px 20px; overflow-x: auto; font: 400 .88rem/1.65 var(--mono); color: var(--ink); }
.prose .code-lang { position: absolute; top: 8px; right: 12px; font: 500 .68rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 600 .82rem/1.4 var(--mono); color: var(--ink-bright); background: rgba(37, 99, 235, .1); }
.prose tr:last-child td { border-bottom: 0; }
.tldr { border: 1px solid var(--line-strong); border-radius: 10px; padding: 20px 22px; background: linear-gradient(180deg, rgba(37, 99, 235, .16), rgba(18, 36, 72, .2)); }
.tldr p:last-child { margin-top: 10px; color: var(--ink-bright); }
.endcap { margin-top: 3em !important; border: 1px solid var(--phos); border-radius: 12px; padding: clamp(24px, 4vw, 36px); background: linear-gradient(180deg, rgba(37, 99, 235, .2), rgba(18, 36, 72, .3)); box-shadow: 0 0 50px rgba(37, 99, 235, .18); }
.endcap h2 { margin: 12px 0 10px !important; font-size: 1.5rem; }
.endcap p { color: var(--ink-dim); margin-bottom: 22px; }
.author { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; margin-top: 2em !important; padding-top: 24px; border-top: 1px solid var(--line); }
.author img { border-radius: 8px; border: 1px solid var(--line-strong); }
.author p { font-size: .95rem; color: var(--ink-dim); }
.author b { color: var(--ink-bright); }
.related h2 { margin-bottom: 28px; }
.prose pre code { background: none; padding: 0; border-radius: 0; color: inherit; font: inherit; } /* inline-code styling stays out of code blocks */
.prose .code pre, .prose .table-wrap { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.prose .btn { text-decoration: none; } /* buttons inside articles keep button colours, not link colours */
.prose .btn-primary { color: #061229; }
.prose .btn-ghost { color: var(--ink-bright); }

/* ───── v4: ambient field, toasts ───── */
.hero, .learn-hero { position: relative; overflow: hidden; }
.ascii-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
/* Only the outer edges carry the field, so it never sits behind words. */
.ascii-field { -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 13%, transparent 87%, #000 100%); mask-image: linear-gradient(90deg, #000 0, transparent 13%, transparent 87%, #000 100%); }
.hero > .wrap, .learn-hero > .wrap { position: relative; z-index: 1; }
.toasts { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.toast { position: absolute; display: grid; gap: 3px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(6, 12, 26, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45), 0 0 24px rgba(37, 99, 235, .18); opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .5s ease, transform .5s ease; }
.toast.in { opacity: 1; transform: none; } .toast.out { opacity: 0; transform: translateY(-8px); }
.toast b { font: 600 .66rem/1 var(--mono); letter-spacing: .18em; color: var(--ok); }
.toast span { font: 500 .84rem/1.3 var(--mono); color: var(--ink-bright); }
.toast.t1 { right: max(24px, calc(50% - 600px)); top: 96px; }
.toast.t2 { left: max(24px, calc(50% - 640px)); bottom: 120px; }
@media (max-width: 1100px) { .toasts { display: none; } }

/* ───── v4: section head with copy on the right ───── */
.head.split { max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 64px; align-items: end; }
.head.split h2 { margin-bottom: 0; }
@media (max-width: 860px) { .head.split { grid-template-columns: 1fr; } }

/* ───── CRT screen: the framed glass panel shared by every live display ───── */
.crt { position: relative; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, rgba(37, 99, 235, .14), rgba(3, 6, 13, .92) 65%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03), inset 0 0 60px rgba(37, 99, 235, .14), 0 30px 80px rgba(0, 0, 0, .5), 0 0 60px rgba(37, 99, 235, .1); }
/* Corner brackets and scanlines sit over the content without catching clicks. */
.crt::before { content: ""; position: absolute; inset: 8px; pointer-events: none; z-index: 2;
  background:
    linear-gradient(var(--phos), var(--phos)) top left / 14px 1px no-repeat, linear-gradient(var(--phos), var(--phos)) top left / 1px 14px no-repeat,
    linear-gradient(var(--phos), var(--phos)) top right / 14px 1px no-repeat, linear-gradient(var(--phos), var(--phos)) top right / 1px 14px no-repeat,
    linear-gradient(var(--phos), var(--phos)) bottom left / 14px 1px no-repeat, linear-gradient(var(--phos), var(--phos)) bottom left / 1px 14px no-repeat,
    linear-gradient(var(--phos), var(--phos)) bottom right / 14px 1px no-repeat, linear-gradient(var(--phos), var(--phos)) bottom right / 1px 14px no-repeat;
  opacity: .55; }
.crt::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px), radial-gradient(120% 90% at 50% 50%, transparent 60%, rgba(0, 0, 0, .45)); }
.crt-bar { position: relative; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); font: 500 .76rem/1 var(--mono); color: var(--ink-faint); }
.crt-dots { display: flex; gap: 6px; } .crt-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(140, 185, 255, .22); }
.crt-dots i:first-child { background: var(--phos); box-shadow: 0 0 8px var(--glow); animation: blink 2.4s steps(2, jump-none) infinite; }
.crt-bar em { margin-left: auto; font-style: normal; letter-spacing: .14em; text-transform: uppercase; font-size: .66rem; }
/* Power-on: a bright line opens into the picture the first time a screen scrolls into view. */
/* The picture is clipped, never the frame: a fully clipped element counts as unseen, so its reveal would never fire. */
.js .crt.reveal { opacity: 1; transform: none; }
.js .crt > * { transition: clip-path .7s cubic-bezier(.7, 0, .2, 1), filter 1.2s ease .3s; }
.js .crt.reveal:not(.in) > *, .js .reveal:not(.in) .crt > * { clip-path: inset(50% 0 50% 0); filter: brightness(2.2); }
@media (prefers-reduced-motion: reduce) { .js .crt > * { transition: none; } .js .crt.reveal:not(.in) > *, .js .reveal:not(.in) .crt > * { clip-path: none; filter: none; } }

/* ───── how it works: example runs ───── */
.run-tabs { position: relative; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(3, 6, 13, .7); margin-bottom: 20px; }
.run-tabs button { all: unset; position: relative; z-index: 1; cursor: pointer; padding: 10px 14px; border-radius: 7px; font: 600 .84rem/1 var(--mono); color: var(--ink-dim); transition: color .25s; }
.run-tabs button:hover { color: var(--ink-bright); }
.run-tabs button[aria-selected="true"] { color: #061229; }
.run-tabs button:focus-visible { outline: 2px solid var(--phos-hot); outline-offset: 2px; }
.run-ind { position: absolute; z-index: 0; top: 5px; left: 0; height: calc(100% - 10px); width: 0; border-radius: 7px; background: var(--phos-hot); box-shadow: 0 0 24px rgba(91, 155, 255, .5);
  transition: transform .45s cubic-bezier(.6, 0, .2, 1), width .45s cubic-bezier(.6, 0, .2, 1); }
.run-body { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: stretch; }
.run-crt pre { position: relative; z-index: 0; margin: 0; padding: 22px 24px 18px; min-height: calc(10 * 1.8em + 40px); font: 400 clamp(.78rem, 1.5vw, .93rem)/1.8 var(--mono); color: var(--ink); white-space: pre-wrap; }
.run-crt pre .ln { display: block; animation: ln .5s ease both; }
.run-crt pre .ln.now { background: linear-gradient(90deg, rgba(91, 155, 255, .16), transparent 80%); box-shadow: inset 2px 0 0 var(--phos-hot); margin-inline: -24px; padding-inline: 22px; }
@keyframes ln { from { opacity: 0; transform: translateX(-6px); filter: blur(2px); } }
.run-crt .p { color: var(--phos); } .run-crt .d { color: var(--ink-faint); } .run-crt .ok { color: var(--ok); } .run-crt .hi { color: var(--ink-bright); text-shadow: 0 0 14px var(--glow); } .run-crt .bad { color: #ff9f9f; }
.run-crt .tg { display: inline-block; min-width: 6.4em; padding: 1px 6px; margin-right: 8px; border-radius: 3px; font-size: .74em; font-weight: 700; letter-spacing: .1em; text-align: center; vertical-align: 1px; }
.tg-you { background: rgba(214, 228, 255, .14); color: var(--ink-bright); }
.tg-skill { background: rgba(91, 155, 255, .22); color: #bcd6ff; }
.tg-hook { background: rgba(255, 159, 159, .18); color: #ffc0c0; }
.tg-memory { background: rgba(126, 226, 184, .18); color: var(--ok); }
.tg-agent { background: rgba(196, 160, 255, .2); color: #dcc8ff; }
.tg-edit, .tg-tool { background: rgba(255, 255, 255, .07); color: var(--ink-dim); }
.tg-claude { background: var(--phos-hot); color: #061229; }
.run-steps { position: relative; z-index: 3; list-style: none; display: flex; gap: 6px; margin: 0; padding: 12px 24px 16px; border-top: 1px solid var(--line); }
.run-steps li { flex: 1; height: 4px; border-radius: 2px; background: var(--line); transition: background .3s, box-shadow .3s; }
.run-steps li.done { background: var(--phos); }
.run-steps li.now { background: var(--phos-hot); box-shadow: 0 0 10px var(--glow); }
.layers { display: grid; gap: 10px; align-content: start; }
.layer { position: relative; overflow: hidden; padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); transition: border-color .3s, box-shadow .3s; }
.layer-top { display: flex; align-items: center; gap: 10px; }
.layer-glyph { width: 40px; flex: none; font: 700 .8rem/1 var(--mono); color: var(--phos); text-align: center; padding: 6px 0; border: 1px solid var(--line-strong); border-radius: 5px; }
.layer-name { font: 700 .92rem/1 var(--mono); color: var(--ink-bright); }
.layer-count { margin-left: auto; font: 800 1.5rem/1 var(--mono); color: var(--ink-bright); font-variant-numeric: tabular-nums; }
.layer-last { margin-top: 10px; font: 500 .78rem/1.4 var(--mono); color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.layer-scan { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(143, 186, 255, .28) 50%, transparent 70%); transform: translateX(-110%); }
.layer.fire { border-color: var(--phos); box-shadow: 0 0 0 1px rgba(143, 186, 255, .35), 0 0 30px rgba(37, 99, 235, .3); }
.layer.fire .layer-scan { animation: scan .8s ease; }
.layer.fire .layer-glyph { color: #061229; background: var(--phos-hot); border-color: var(--phos-hot); box-shadow: 0 0 14px var(--glow); }
.layer.fire .layer-last { color: var(--ink-bright); }
.layer.fire .layer-count { animation: bump .45s ease; text-shadow: 0 0 14px var(--glow); }
@keyframes scan { to { transform: translateX(110%); } }
@keyframes bump { 30% { transform: scale(1.3); color: #fff; } }
.run-learn { padding: 8px 4px 0; font: 500 .84rem/1.5 var(--mono); color: var(--ink-dim); }
.run-learn a { color: var(--phos-hot); }
@media (max-width: 960px) { .run-body { grid-template-columns: 1fr; } .layers { grid-template-columns: 1fr 1fr; } .run-learn { grid-column: 1 / -1; } }
@media (max-width: 520px) { .run-tabs { display: flex; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } .run-tabs button { white-space: nowrap; } .layer-last { display: none; } }
@media (prefers-reduced-motion: reduce) { .run-crt pre .ln, .layer.fire .layer-scan, .layer.fire .layer-count { animation: none; } .run-ind { transition: none; } }

/* ───── v4: skill playground ───── */
.try { border: 1px solid var(--line-strong); border-radius: 14px; padding: clamp(20px, 4vw, 36px); background: radial-gradient(90% 120% at 0% 0%, rgba(37, 99, 235, .16), transparent 60%), var(--panel); }
.try .field { position: relative; align-items: center; }
.try-prompt { position: absolute; left: 16px; font: 700 1.1rem/1 var(--mono); color: var(--phos); pointer-events: none; }
.try .field input { padding-left: 38px; font-size: 1.02rem; }
.try-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.try-chips button { all: unset; cursor: pointer; padding: 7px 12px; border: 1px dashed var(--line-strong); border-radius: 999px; font: 500 .8rem/1.2 var(--mono); color: var(--ink-dim); }
.try-chips button:hover, .try-chips button:focus-visible { color: var(--ink-bright); border-color: var(--phos); border-style: solid; }
.try-results { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; min-height: 1px; }
.try-hit { display: grid; grid-template-columns: 1fr 160px; gap: 18px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: rgba(3, 6, 13, .6);
  animation: hit .45s ease both; animation-delay: var(--d); }
@keyframes hit { from { opacity: 0; transform: translateY(8px); } }
.try-hit b { display: block; font: 700 1rem/1.3 var(--mono); color: var(--phos-hot); text-shadow: 0 0 12px var(--glow); }
.try-hit span { color: var(--ink-dim); font-size: .95rem; }
.try-hit i { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.try-hit em { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--phos-hot) 0 6px, transparent 6px 8px); box-shadow: 0 0 10px var(--glow); }
.try-none { color: var(--ink-dim); font: 500 .9rem/1.5 var(--mono); padding: 8px 2px; }
.try-note { margin-top: 18px; font: 500 .78rem/1.5 var(--mono); color: var(--ink-faint); }
@media (max-width: 640px) { .try-hit { grid-template-columns: 1fr; gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .try-hit { animation: none; } .toast { transition: none; } }

/* ───── v4: pricing fits one screen ───── */
.pricing-fit { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 72px 32px; }
.pricing-fit .head { margin-bottom: 26px; }
.pricing-fit .head h2 { margin: 12px 0 10px; }
.pricing-fit .plan { padding: 24px 22px; }
.pricing-fit .plan .tag { margin-bottom: 10px; }
.pricing-fit .price { margin: 10px 0 4px; }
.pricing-fit .price b { font-size: 2.5rem; }
.pricing-fit .plan .note { margin-bottom: 14px; font-size: .9rem; }
.pricing-fit .ticks { gap: 5px; margin-bottom: 18px; font-size: .9rem; }
.pricing-fit .seats { margin-bottom: 14px; }
.pricing-fit .seats button { padding: 8px 6px; }
.pricing-fit .fineprint { margin-top: 16px; font-size: .88rem; }
@media (max-height: 820px) and (min-width: 961px) { .pricing-fit .head .lede { display: none; } .pricing-fit .ticks li:nth-child(n+5) { display: none; } }
/* Phones: the plans swipe sideways so the section still fits one screen. */
@media (max-width: 960px) {
  .pricing-fit .plans { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; max-width: none; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .pricing-fit .plans::-webkit-scrollbar { display: none; }
  .pricing-fit .plan { scroll-snap-align: center; }
  .pricing-fit .head { margin-bottom: 18px; }
  .pricing-fit .head .lede { font-size: .98rem; }
}

/* ───── header logo ───── */
.brand canvas { width: 34px; height: 34px; transition: filter .3s; }
.brand:hover canvas { filter: drop-shadow(0 0 8px rgba(143, 186, 255, .8)); }

/* ───── learn index ───── */
.learn-hero { padding: clamp(64px, 10vw, 128px) 0 clamp(40px, 6vw, 72px); }
.learn-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1; margin: 18px 0 24px; }
.learn-hero h1 .word { color: var(--phos-hot); }
.find { display: flex; align-items: center; gap: 10px; max-width: 640px; margin-top: 32px; padding: 0 14px; min-height: 60px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(3, 6, 13, .85); box-shadow: 0 0 40px rgba(37, 99, 235, .15); }
.find:focus-within { border-color: var(--phos); box-shadow: 0 0 0 3px rgba(91, 155, 255, .25), 0 0 40px rgba(37, 99, 235, .25); }
.find > span { font: 700 1.1rem var(--mono); color: var(--phos); }
.find input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink-bright); font: 500 1.05rem var(--mono); }
.find input::placeholder { color: var(--ink-faint); }
.find kbd { font: 600 .74rem var(--mono); padding: 3px 8px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--ink-faint); }
.find-status { min-height: 1.5em; margin-top: 10px; font: 500 .82rem/1.5 var(--mono); color: var(--phos); }
.learn-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 14px; font: 500 .84rem/1 var(--mono); color: var(--ink-dim); }
.learn-stats b { color: var(--ink-bright); font-size: 1.05rem; text-shadow: 0 0 12px var(--glow); }
/* Learning path: a glowing rail joining three stages. */
.path { position: relative; display: grid; gap: 28px; }
.path::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: repeating-linear-gradient(180deg, var(--phos) 0 6px, transparent 6px 12px); opacity: .5; }
.path-step { position: relative; display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.path-node { display: flex; align-items: center; gap: 14px; position: sticky; top: 96px; }
.path-node span { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--phos); border-radius: 50%; background: var(--bg); font: 800 1.1rem var(--mono); color: var(--phos-hot); box-shadow: 0 0 24px rgba(91, 155, 255, .35); }
.path-node b { font: 700 1rem/1.2 var(--mono); color: var(--ink-bright); text-transform: uppercase; letter-spacing: .08em; }
.path-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.path-soon { color: var(--ink-faint); font: 500 .9rem/1.5 var(--mono); padding: 18px 0; }
@media (max-width: 760px) { .path-step { grid-template-columns: 1fr; } .path-node { position: static; } .path::before { left: 27px; } }
/* Cheat sheet */
.cheat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.cheat-tabs button { all: unset; cursor: pointer; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 6px; font: 600 .88rem/1 var(--mono); color: var(--ink-dim); }
.cheat-tabs button[aria-selected="true"] { background: var(--phos-hot); color: #061229; border-color: var(--phos-hot); }
.cheat-tabs button:focus-visible { outline: 2px solid var(--phos-hot); outline-offset: 3px; }
.cheat-intro { color: var(--ink-dim); margin-bottom: 18px; }
.cheat-intro a { color: var(--phos-hot); }
.cheat-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; align-items: start; }
.cheat .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: rgba(3, 6, 13, .6); }
.cheat table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.cheat caption { text-align: left; padding: 12px 14px; font: 600 .74rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--phos); border-bottom: 1px solid var(--line); }
.cheat th, .cheat td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cheat th { font: 600 .78rem/1.4 var(--mono); color: var(--ink-faint); }
.cheat tr:last-child td { border-bottom: 0; }
.cheat td { color: var(--ink-dim); }
.cheat td code { white-space: nowrap; }
.cheat-source { margin-top: 14px; font: 500 .78rem/1.4 var(--mono); color: var(--ink-faint); }
.cheat-source a { color: var(--ink-dim); }
/* Articles: reading progress */
.progress { position: fixed; top: 68px; left: 0; right: 0; height: 2px; z-index: 49; }
.progress i { display: block; height: 100%; background: var(--phos-hot); box-shadow: 0 0 10px var(--glow); transform-origin: 0 50%; transform: scaleX(0); }
.learn-hero .hero-grid { align-items: center; }
.topic-map canvas { aspect-ratio: 1 / .95; }
@media (max-width: 860px) { .topic-map { display: none; } }
/* Desktop: the three stages sit side by side on a horizontal rail. */
@media (min-width: 961px) {
  .path { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .path::before { left: 28px; right: 28px; top: 27px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, var(--phos) 0 6px, transparent 6px 12px); }
  .path-step { grid-template-columns: 1fr; gap: 20px; }
  .path-node { position: static; }
  .path-node b { background: var(--bg); padding-right: 10px; }
  .path-cards { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  /* Cards beside the first sit off-screen sideways, so a scroll reveal would never fire for them. */
  .js .pricing-fit .plan.reveal { opacity: 1; transform: none; }
  .pricing-fit { padding-block: 56px 16px; }
  .pricing-fit .ticks li:nth-child(n+5) { display: none; }
  .pricing-fit .head .lede { display: none; }
  .swipe-hint { display: block; margin: 10px 0 0; font: 500 .76rem/1 var(--mono); color: var(--ink-faint); text-align: right; }
}
@media (min-width: 961px) { .swipe-hint { display: none; } }

/* ───── what you get: bento cards with live screens ───── */
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento .card { display: flex; flex-direction: column; padding: 14px 14px 24px; }
.bento .card > :not(.mini) { margin-inline: 10px; }
.bento .card.wide { grid-column: span 2; }
/* Hover: a light runs round the border. */
.card.fx { isolation: isolate; }
.card.fx::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity .3s;
  background: conic-gradient(from var(--spin), transparent 0 70%, var(--phos-hot) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.card.fx:hover::before { opacity: 1; animation: spin 2.4s linear infinite; }
@keyframes spin { to { --spin: 360deg; } }
.mini { position: relative; height: 150px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, rgba(37, 99, 235, .14), rgba(3, 6, 13, .92) 70%); font: 500 .8rem/1.6 var(--mono); color: var(--ink-dim); }
.mini::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .2) 0 1px, transparent 1px 3px); }
.mini-marquee ul { list-style: none; margin: 0; padding: 10px 16px; animation: marquee 18s linear infinite; }
.mini-marquee li { line-height: 1.9; }
.mini-marquee li::before { content: "  "; white-space: pre; }
.mini-marquee { -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); }
.mini-cursor { position: absolute; left: 10px; right: 10px; top: 50%; transform: translateY(-50%); padding: 3px 6px; border-radius: 4px; background: rgba(143, 186, 255, .14); box-shadow: inset 2px 0 0 var(--phos-hot); color: transparent; }
@keyframes marquee { to { transform: translateY(-50%); } }
.mini-type pre, .mini-pulse pre { margin: 0; padding: 14px 16px; font: inherit; white-space: pre-wrap; color: var(--ink); }
.mini-type .p { color: var(--phos); } .mini-type .d { color: var(--ink-faint); } .mini-type .ok { color: var(--ok); }
.mini-type .caret { display: inline-block; width: .55em; height: 1em; vertical-align: -.15em; background: var(--phos-hot); animation: blink 1s steps(2, jump-none) infinite; }
.mini-log ol { list-style: none; margin: 0; padding: 10px 14px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 4px; }
.mini-log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: logIn .5s ease both; }
.mini-log li:last-child { color: var(--ink-bright); }
.mini-log li b { color: var(--ok); font-weight: 600; }
.mini-log li em { font-style: normal; color: var(--phos-hot); }
@keyframes logIn { from { opacity: 0; transform: translateY(10px); } }
.mini-helix { height: 170px; display: flex; flex-direction: column; }
.mini-helix canvas { flex: 1; min-height: 0; width: 100%; }
.mini-legend { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 8px 16px 12px; border-top: 1px solid var(--line); font-size: .74rem; }
.mini-legend b { color: var(--ok); font-weight: 600; }
.mini-legend span:last-child b { color: #ff9f9f; }
.mini-pulse pre { padding-top: 34px; color: var(--ok); text-shadow: 0 0 10px rgba(126, 226, 184, .5); line-height: 1.15; letter-spacing: 0; }
.mini-pulse.down pre { color: #ff9f9f; text-shadow: 0 0 10px rgba(255, 159, 159, .5); }
.pulse-state { position: absolute; left: 16px; bottom: 12px; z-index: 1; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ok); }
.mini-pulse.down .pulse-state { color: #ff9f9f; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bento .card.wide { grid-column: auto; } }
@media (prefers-reduced-motion: reduce) { .mini-marquee ul, .card.fx:hover::before, .mini-log li, .mini-type .caret { animation: none; } }

/* ───── the engine: ring in a CRT, list with timers ───── */
.ring-crt canvas { aspect-ratio: 1 / .9; width: 100%; padding: 6px 10px 12px; }
.subs button { position: relative; }
.subs .detail { grid-column: 2 / -1; display: grid !important; grid-template-rows: 0fr; transition: grid-template-rows .45s ease, margin .45s ease; margin-top: 0; }
.subs .detail > span { overflow: hidden; }
.subs [aria-current="true"] .detail { grid-template-rows: 1fr; margin-top: 4px; }
.subs .bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.subs .bar::after { content: ""; display: block; height: 100%; width: 100%; background: var(--phos-hot); box-shadow: 0 0 10px var(--glow); transform: scaleX(0); transform-origin: 0 50%; }
.subs [aria-current="true"] .bar::after { transform: scaleX(var(--fill, 0)); }
.subs [aria-current="true"] { background: linear-gradient(90deg, rgba(37, 99, 235, .14), transparent 70%); }
@media (prefers-reduced-motion: reduce) { .subs .detail { transition: none; } }

/* ───── founder portrait: ASCII scan resolving into the photo ───── */
.portrait img { transition: opacity 1.1s ease; }
.portrait.scanning:not(.resolved) img { opacity: 0; }
.portrait-ascii { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; transition: opacity 1.1s ease; }
.portrait.resolved .portrait-ascii { opacity: 0; }
.portrait figcaption { z-index: 2; }

/* ═════ One screen per section (home page, body.fit) ═════
   Every section's content fits the screen below the sticky nav. Long sections pin their stage
   and let scroll step through it; grids that can't fit a phone become swipeable rails. */
:root { --nav: 69px; }
.fit main > section:not(.pin) { min-height: calc(100svh - var(--nav)); display: flex; flex-direction: column; justify-content: center; padding-block: clamp(20px, 4svh, 48px); }
.fit .head { margin-bottom: clamp(18px, 3svh, 32px); }
.fit .head h2 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); margin: 12px 0 10px; }
.fit .head .lede { font-size: clamp(.98rem, 1.3vw, 1.1rem); }
@media (max-height: 820px) { .fit .head .lede { display: none; } .fit .head h2 { margin-bottom: 0; } }

/* Pinned sections: tall track, sticky stage. Without JS they're ordinary sections. */
.fit .pin { padding: 0; }
.js .fit .pin { height: calc(100svh - var(--nav) + var(--steps) * var(--per)); }
.js .fit .pin > .pin-stage { position: sticky; top: var(--nav); height: calc(100svh - var(--nav)); display: flex; flex-direction: column; padding-block: clamp(14px, 3svh, 40px); overflow: hidden; }
.js .fit .pin > .pin-stage > .wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.js .fit .pin .reveal { opacity: 1; transform: none; }

/* How it works, inside its stage. */
.js .fit .run { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.js .fit .run-body { flex: 1; min-height: 0; max-height: 620px; }
.js .fit .run-crt { display: flex; flex-direction: column; min-height: 0; }
.js .fit .run-crt pre { flex: 1; min-height: 0; overflow: hidden; }
.js .fit .layers { align-content: stretch; grid-template-rows: repeat(4, minmax(0, 1fr)) auto; min-height: 0; }
.js .fit .layer { display: flex; flex-direction: column; justify-content: center; }

/* The engine, inside its stage. */
.js .fit #harness .harness { flex: 1; min-height: 0; align-items: stretch; max-height: 640px; }
.js .fit .ring-crt { display: flex; flex-direction: column; min-height: 0; }
.js .fit .ring-crt canvas { flex: 1; min-height: 0; aspect-ratio: auto; }
.js .fit .subs { align-self: center; }
.fit .subs button { padding-block: 11px; }

/* What you get: tighter cards. */
.fit .mini { height: clamp(84px, 13svh, 120px); margin-bottom: 14px; }
.fit .mini-helix { height: clamp(100px, 15svh, 140px); }
.fit .bento .card { padding-bottom: 18px; }
.fit .bento .card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .95rem; }
.fit .bento .tag { margin-bottom: 10px; }

/* Start here: three ways in beside the latest guides. */
.start { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.ways { display: grid; gap: 12px; }
.way { position: relative; overflow: hidden; display: grid; grid-template-columns: 56px 1fr auto 20px; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-decoration: none; color: inherit; transition: border-color .25s, transform .25s, box-shadow .25s; }
.way-glyph { display: grid; place-items: center; height: 48px; border: 1px solid var(--line-strong); border-radius: 8px; font: 800 .95rem/1 var(--mono); color: var(--phos-hot); text-shadow: 0 0 12px var(--glow); background: rgba(3, 6, 13, .7); }
.way-body b { display: block; font: 700 1.05rem/1.3 var(--mono); color: var(--ink-bright); }
.way-body small { display: block; margin-top: 3px; font-size: .9rem; color: var(--ink-dim); }
.way-price { font: 700 .82rem/1 var(--mono); padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--phos-hot); white-space: nowrap; }
.way-go { font: 700 1.1rem/1 var(--mono); color: var(--phos); transition: transform .25s; }
.way-scan { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(143, 186, 255, .2) 50%, transparent 70%); transform: translateX(-110%); }
.way:hover, .way:focus-visible { border-color: var(--phos); transform: translateX(4px); box-shadow: 0 0 30px rgba(37, 99, 235, .25); outline: none; }
.way:hover .way-scan, .way:focus-visible .way-scan { animation: scan .8s ease; }
.way:hover .way-go, .way:focus-visible .way-go { transform: translateX(4px); color: var(--phos-hot); }
.way-main { border-color: var(--line-strong); background: linear-gradient(90deg, rgba(37, 99, 235, .2), rgba(18, 36, 72, .3)); }
.way-main .way-price { background: var(--phos-hot); color: #061229; border-color: var(--phos-hot); }
.latest { display: flex; flex-direction: column; }
.latest .crt-bar em a { color: var(--phos-hot); text-decoration: none; letter-spacing: .08em; }
.latest-list { position: relative; z-index: 3; flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 10px; }
.guide-row { display: grid; grid-template-columns: auto 1fr auto 16px; gap: 14px; align-items: center; padding: 14px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); transition: background .2s, box-shadow .2s; }
.guide-row + .guide-row { border-top: 1px dashed var(--line); }
.guide-row .tg { display: inline-block; min-width: 6.4em; padding: 2px 6px; border-radius: 3px; font: 700 .7rem/1.4 var(--mono); letter-spacing: .1em; text-align: center; }
.guide-row-title { font: 600 .95rem/1.4 var(--mono); color: var(--ink-bright); }
.guide-row-min { font: 500 .78rem/1 var(--mono); color: var(--ink-faint); white-space: nowrap; }
.guide-row-go { color: var(--phos); transition: transform .2s; }
.guide-row:hover, .guide-row:focus-visible { background: linear-gradient(90deg, rgba(91, 155, 255, .16), transparent 85%); box-shadow: inset 2px 0 0 var(--phos-hot); outline: none; }
.guide-row:hover .guide-row-go { transform: translateX(4px); color: var(--phos-hot); }
@media (prefers-reduced-motion: reduce) { .way, .way-go, .guide-row-go { transition: none; } .way:hover .way-scan { animation: none; } }

/* Founder: credential chips (shown where the long paragraph doesn't fit). */
.creds { display: none; list-style: none; padding: 0; margin: 0 0 4px; flex-wrap: wrap; gap: 8px; }
.creds li { padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font: 500 .76rem/1.2 var(--mono); color: var(--ink); }
.fit .founder .portrait { max-height: calc(100svh - var(--nav) - 80px); }
.fit .founder .portrait img { max-height: calc(100svh - var(--nav) - 80px); object-fit: cover; }

/* FAQ: compact, two columns on wide screens. */
.fit .faq { max-width: none; columns: 2 380px; column-gap: 40px; border-top: 0; }
.fit .faq details { break-inside: avoid; border-top: 1px solid var(--line); border-bottom: 0; }
.fit .faq summary { padding: 15px 4px; font-size: .96rem; }
.fit .faq details p { padding-bottom: 16px; font-size: .95rem; }

/* Pricing uses the shared nav offset. */
.fit .pricing-fit { min-height: calc(100svh - var(--nav)); padding-block: clamp(16px, 3svh, 40px); }

/* Hero: stats tighter. */
.fit .hero .stats .stat { padding-block: 18px; }

/* Swipe rails for grids that don't fit a small screen. */
.rail-hint { display: none; }
@media (max-width: 960px) {
  .fit .rail { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 360px); overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .fit .rail::-webkit-scrollbar { display: none; }
  .fit .rail > * { scroll-snap-align: center; grid-column: auto !important; }
  .js .fit .rail > .reveal { opacity: 1; transform: none; }
  .start { grid-template-columns: 1fr; gap: 14px; }
  .fit .faq { columns: 1; }
}

/* Tablets and phones: centred layouts. */
@media (max-width: 860px) {
  .fit .head, .fit .head.split { text-align: center; display: block; }
  .fit .head .lede { margin-inline: auto; }
  .fit .hero-grid > div:first-child { text-align: center; }
  .fit .hero .lede { margin-inline: auto; }
  .fit .hero .cta-row, .fit .hero .assure { justify-content: center; }
  .fit .founder { text-align: center; justify-items: center; }
  .fit .founder .cta-row, .fit .creds { justify-content: center; }
  .fit .notes { text-align: center; }
  .fit .notes .field { max-width: 460px; margin-inline: auto; }
  /* The engine: the ring with just the live subsystem under it. */
  .js .fit #harness .harness { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; max-height: none; }
  .js .fit .ring-crt { max-width: 460px; width: 100%; margin-inline: auto; }
  .js .fit .subs { border-top: 0; align-self: stretch; }
  .js .fit .subs li:not(:has(> [aria-current="true"])) { display: none; }
  .js .fit .subs li { border: 1px solid var(--line-strong); border-radius: 10px; }
  .js .fit .subs .dot::after { content: " / 07"; color: var(--ink-faint); }
  .js .fit .subs button { grid-template-columns: auto 1fr auto; padding: 12px 14px 14px; text-align: left; }
}

/* Phones. */
@media (max-width: 640px) {
  .fit .head h2 { font-size: clamp(1.45rem, 6.6vw, 1.9rem); }
  .fit .head .lede { display: none; }
  /* Hero: small bunny above centred copy; stats live elsewhere on the page. */
  .fit .hero { justify-content: center; }
  .fit .hero-grid { gap: 14px; }
  .fit .hero .screen { order: -1; max-width: 132px; padding: 8px; border-radius: 12px; }
  .fit .hero .screen-bar { display: none; }
  .fit .hero h1 { margin: 10px 0 14px; font-size: clamp(2.1rem, 10.5vw, 2.8rem); }
  .fit .hero .lede { font-size: 1rem; margin-bottom: 20px; }
  .fit .hero .cta-row { flex-direction: column; align-items: stretch; max-width: 340px; margin-inline: auto; gap: 10px; }
  .fit .hero .assure span:last-child { display: none; }
  .fit .hero .stats { display: none; }
  .fit .hero > .wrap:last-of-type { margin-top: 0 !important; }
  /* How it works: compact tabs and tiles. */
  .run-tabs { display: flex; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding: 4px; margin-bottom: 12px; gap: 2px; scrollbar-width: none; }
  .run-tabs::-webkit-scrollbar { display: none; }
  .run-tabs button { padding: 7px 10px; font-size: .74rem; white-space: nowrap; }
  .run-ind { top: 4px; height: calc(100% - 8px); }
  .js .fit .run-body { display: flex; flex-direction: column; gap: 10px; }
  .js .fit .run-crt { flex: 1; }
  .run-crt pre { padding: 14px 14px 10px; font-size: .72rem; line-height: 1.6; min-height: 0; }
  .run-crt .tg { min-width: 5.6em; margin-right: 6px; }
  .run-steps { padding: 8px 14px 10px; }
  .js .fit .layers { grid-template-columns: repeat(4, 1fr); grid-template-rows: auto; gap: 6px; }
  .layer { padding: 8px 6px; text-align: center; }
  .layer-top { flex-direction: column; gap: 4px; }
  .layer-glyph { width: 34px; font-size: .68rem; padding: 4px 0; }
  .layer-name { font-size: .7rem; }
  .layer-count { margin-left: 0; font-size: 1.1rem; }
  .run-learn { display: none; }
  /* Start here. */
  .way { grid-template-columns: 40px 1fr auto; gap: 12px; padding: 12px 14px; text-align: left; }
  .way-glyph { height: 38px; font-size: .78rem; }
  .way-go { display: none; }
  .way-body b { font-size: .92rem; }
  .way-body small { font-size: .8rem; }
  .guide-row { grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 8px; }
  .guide-row .tg { justify-self: start; }
  .guide-row-title { grid-column: 1 / -1; font-size: .86rem; }
  .guide-row-min { grid-row: 1; grid-column: 2; }
  .guide-row-go { display: none; }
  .latest-list { padding: 4px 8px; }
  /* Founder. */
  .fit .founder { gap: 16px; }
  .fit .founder .portrait { max-width: 150px; max-height: none; }
  .fit .founder .portrait img { max-height: none; }
  .fit .founder .portrait figcaption { display: none; }
  .fit .founder h2 { font-size: 1.5rem; margin: 10px 0 12px; }
  .fit .founder .lede { font-size: .98rem; margin-bottom: 12px; }
  .fit .founder .muted { display: none; }
  .fit .creds { display: flex; }
  .fit .founder .cta-row { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 16px; }
  .fit .founder .aside { margin-top: 12px; font-size: .86rem; }
  /* Try. */
  .try { padding: 16px; }
  .try .field { flex-direction: row; }
  .try .field .btn { padding: 0 14px; }
  .try-hit:nth-child(n+3) { display: none; }
  .try-chips button:nth-child(n+4) { display: none; }
  /* FAQ. */
  .fit .faq summary { padding: 12px 2px; font-size: .88rem; }
  /* What you get. */
  .fit .bento .card p { -webkit-line-clamp: 4; }
}
@media (max-width: 640px) and (max-height: 760px) {
  .fit .hero .assure { display: none; }
  .fit .pricing-fit .head h2 { font-size: 1.35rem; }
  .fit .pricing-fit .plan { padding: 18px 18px; }
  .fit .pricing-fit .plan .note { display: none; }
}
.fit .hero > .wrap:last-of-type { margin-top: clamp(20px, 5svh, 64px) !important; }
@media (max-height: 920px) and (min-width: 641px) { .fit .bento .card p { -webkit-line-clamp: 2; } }
@media (max-width: 640px) and (max-height: 760px) {
  .way-body small { display: none; }
  .way { padding: 10px 12px; }
  .guide-row { padding: 8px 6px; }
  .latest .crt-bar { padding-block: 9px; }
}
.js .fit .run-tabs { align-self: flex-start; max-width: 100%; }
@media (max-width: 640px) {
  .try-more { display: none; }
  .fit .final h2 { font-size: clamp(1.5rem, 7vw, 1.9rem); }
}
@media (max-height: 860px) { .toasts { display: none; } }

/* ───── slim floating buy bar (home page) ───── */
.buybar.slim { display: flex; left: 50%; right: auto; bottom: calc(10px + env(safe-area-inset-bottom)); transform: translate(-50%, 160%); gap: 14px; padding: 4px 4px 4px 14px; border-radius: 999px; white-space: nowrap; }
.buybar.slim.show { transform: translate(-50%, 0); }
.buybar.slim span { font: 500 .74rem/1 var(--mono); color: var(--ink-dim); }
.buybar.slim b { font-variant-numeric: tabular-nums; color: var(--phos-hot); }
.buybar.slim .btn { min-height: 30px; padding: 0 14px; font-size: .76rem; border-radius: 999px; }
.buybar .live-dot { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); vertical-align: 1px; animation: blink 1.6s steps(2, jump-none) infinite; }
@media (max-width: 400px) { .buybar.slim span { font-size: .68rem; } .buybar.slim { gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .buybar .live-dot { animation: none; } }
@media (max-width: 640px) { .fit main > section:not(.pin) { padding-bottom: 60px; } }
/* Every section and pinned stage keeps a strip at the bottom for the slim buy bar. */
:root { --bar: 52px; }
.fit main > section:not(.pin) { padding-bottom: calc(var(--bar) + 8px); }
.js .fit .pin > .pin-stage { padding-bottom: calc(var(--bar) + 4px); }
.fit .pricing-fit { padding-bottom: calc(var(--bar) + 8px); }
@media (max-height: 920px) and (min-width: 641px) { .fit #features .head .lede { display: none; } .fit #features .head h2 { margin-bottom: 0; } .fit #features .mini { height: clamp(80px, 11svh, 104px); } .fit #features .mini-helix { height: clamp(96px, 13svh, 124px); } }
@media (max-width: 640px) { .way-body small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .way-body { min-width: 0; } }
@media (max-width: 640px) and (max-height: 760px) { .fit .pricing-fit .head { margin-bottom: 10px; } .fit .pricing-fit .head h2 { margin-top: 6px; } }
/* Tighter vertical rhythm, and the hero (where the bar never shows) keeps its full height. */
:root { --bar: 46px; }
.fit main > section:not(.pin) { padding-top: clamp(12px, 2.5svh, 32px); }
.fit main > section.hero { padding-bottom: clamp(12px, 2.5svh, 32px); }
@media (max-height: 800px) and (min-width: 641px) {
  .fit .hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); margin: 12px 0 14px; }
  .fit .hero .lede { margin-bottom: 20px; }
  .fit .hero .stats .stat { padding-block: 12px; }
  .fit .hero .stats .stat b { font-size: 1.8rem; }
  .fit #features .mini { height: 72px; margin-bottom: 10px; }
  .fit #features .mini-helix { height: 96px; }
  .fit .bento .card h3 { font-size: 1.02rem; }
}
@media (max-width: 640px) { .fit .pricing-fit .plan .note { display: none; } }
@media (max-width: 640px) and (max-height: 760px) {
  .fit .hero h1 { font-size: 2rem; }
  .fit .hero .screen { max-width: 110px; }
  .latest .guide-row:nth-child(n+3) { display: none; }
  .try-chips button:nth-child(n+3) { display: none; }
  .try { padding: 12px; }
  .fit .pricing-fit .ticks li:nth-child(n+4) { display: none; }
}
@media (max-width: 640px) and (max-height: 760px) { .fit .pricing-fit .fineprint { margin-top: 8px; font-size: .8rem; } .swipe-hint { margin-top: 6px; } }

/* ───── What you get on phones: one card at a time, stacking as you scroll ───── */
@media (max-width: 640px) {
  .js .fit #features.pin-m { height: calc(100svh - var(--nav) + var(--steps) * var(--per)); min-height: 0; display: block; padding: 0; }
  .js .fit #features .pin-stage { position: sticky; top: var(--nav); height: calc(100svh - var(--nav)); display: flex; flex-direction: column; padding: 16px 0 calc(var(--bar) + 6px); overflow: hidden; }
  .js .fit #features .pin-stage > .wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .js .fit #features .bento { position: relative; flex: 1; min-height: 0; display: block; overflow: visible; margin: 0; padding: 0; }
  .js .fit #features .bento > .card { position: absolute; left: 0; right: 0; top: 0; max-height: 100%; opacity: 1; transform-origin: 50% 0; will-change: transform;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .55); background: linear-gradient(180deg, #0b1528, #070d1a); }
  .js .fit #features .bento > .card p { -webkit-line-clamp: 4; }
  .js .fit #features .mini { height: 150px; }
  .js .fit #features .mini-helix { height: 170px; }
  .stack-count { display: block; margin: 10px 0 0; text-align: center; font: 500 .74rem/1 var(--mono); letter-spacing: .14em; color: var(--ink-faint); }
}
@media (min-width: 641px) { .stack-count { display: none; } }
@media (max-width: 640px) and (max-height: 760px) { .js .fit #features .mini { height: 110px; } .js .fit #features .mini-helix { height: 130px; } }

/* Hero bunny: bigger on phones. */
@media (max-width: 640px) { .fit .hero .screen { max-width: min(220px, 58vw); } }
@media (max-width: 640px) and (max-height: 760px) { .fit .hero .screen { max-width: 170px; } }

/* ───── How it works, merged: terminal + activity strip, beside the feature it demonstrates ───── */
.run-body { grid-template-columns: minmax(0, 1fr) 340px; }
.run-main { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.js .fit .run-main .run-crt { flex: 1; }
.layers.strip, .js .fit .layers.strip { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto; gap: 8px; }
.layers.strip .layer { padding: 9px 10px; flex-direction: row; }
.layers.strip .layer-top { gap: 8px; }
.layers.strip .layer-glyph { width: 34px; padding: 4px 0; font-size: .7rem; }
.layers.strip .layer-name { font-size: .78rem; }
.layers.strip .layer-count { font-size: 1.15rem; }
.layers.strip .layer-last { display: none; }
.pillar { position: relative; display: flex; flex-direction: column; padding: 26px 24px; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden;
  background: radial-gradient(100% 70% at 100% 0%, rgba(37, 99, 235, .22), transparent 70%), var(--panel); }
.pillar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 500 .76rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--phos); }
.pillar-stat { font: 800 1rem/1 var(--mono); letter-spacing: 0; color: var(--ink-bright); text-shadow: 0 0 14px var(--glow); }
.pillar h3 { margin: 20px 0 12px; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.2; }
.pillar p { color: var(--ink-dim); font-size: 1rem; line-height: 1.6; }
.pillar-link { margin-top: 18px; font: 600 .86rem/1.4 var(--mono); color: var(--phos-hot); text-decoration: none; }
.pillar-link:hover { text-decoration: underline; }
.pillar-index { list-style: none; margin: auto 0 0; padding: 22px 0 0; display: grid; gap: 7px; counter-reset: p; }
.pillar-index li { counter-increment: p; display: flex; align-items: center; gap: 10px; font: 500 .78rem/1.2 var(--mono); color: var(--ink-faint); transition: color .3s; }
.pillar-index li::before { content: "0" counter(p); width: 26px; padding: 3px 0; text-align: center; border: 1px solid var(--line); border-radius: 4px; font-size: .7rem; }
.pillar-index li.done { color: var(--ink-dim); }
.pillar-index li.now { color: var(--ink-bright); }
.pillar-index li.now::before { background: var(--phos-hot); color: #061229; border-color: var(--phos-hot); box-shadow: 0 0 12px var(--glow); }
.pillar.swap .pillar-top, .pillar.swap h3, .pillar.swap p, .pillar.swap .pillar-link { animation: pillarIn .5s ease both; }
.pillar.swap h3 { animation-delay: .05s; } .pillar.swap p { animation-delay: .1s; } .pillar.swap .pillar-link { animation-delay: .15s; }
@keyframes pillarIn { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } }
@media (prefers-reduced-motion: reduce) { .pillar.swap * { animation: none !important; } }
@media (max-width: 960px) {
  .run-body, .js .fit .run-body { display: flex; flex-direction: column; gap: 10px; }
  .js .fit .run-main { flex: 1; }
  .pillar { padding: 14px 16px; border-radius: 10px; }
  .pillar h3 { margin: 10px 0 6px; font-size: 1.05rem; }
  .pillar p { font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pillar-link, .pillar-index { display: none; }
}
@media (max-width: 640px) {
  .layers.strip .layer { flex-direction: column; padding: 6px 4px; }
  .layers.strip .layer-top { flex-direction: column; gap: 3px; }
  .layers.strip .layer-name { font-size: .66rem; }
  .layers.strip .layer-count { margin-left: 0; font-size: 1rem; }
  .pillar-top { font-size: .68rem; }
}
@media (max-width: 640px) and (max-height: 760px) { .pillar p { display: none; } .pillar h3 { margin-bottom: 0; } }
@media (max-width: 640px) and (max-height: 760px) {
  .fit .founder .portrait { max-width: 112px; }
  .fit .creds { gap: 6px; }
  .fit .creds li { padding: 4px 8px; font-size: .68rem; }
  .fit .founder .cta-row { flex-direction: row; justify-content: center; }
  .fit .founder .cta-row .btn { min-height: 42px; padding: 0 12px; font-size: .8rem; }
  .fit .founder .lede { font-size: .92rem; }
}

/* ───── How it works: one session, scrubbed by scroll ───── */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; }
.js .fit .demo { flex: 1; min-height: 0; max-height: 640px; }
.demo-crt { display: flex; flex-direction: column; min-height: 420px; }
.js .fit .demo-crt { min-height: 0; }
.demo-screen { position: relative; z-index: 0; flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 18px 22px 12px; font: 400 clamp(.74rem, 1.35vw, .9rem)/1.75 var(--mono); }
.demo-shell { margin: 0; font: inherit; color: var(--ink); white-space: pre-wrap; }
.demo-shell .p { color: var(--phos); } .demo-shell .ok { color: var(--ok); } .demo-shell .d { color: var(--ink-faint); } .demo-shell .hi { color: var(--ink-bright); text-shadow: 0 0 14px var(--glow); }
.tui-caret { display: inline-block; width: .55em; height: 1.05em; margin-left: 2px; vertical-align: -.18em; background: var(--phos-hot); box-shadow: 0 0 8px var(--glow); animation: blink 1s steps(2, jump-none) infinite; }
/* The modded Claude Code: a welcome box, the conversation, memory beside it, input and status line. */
.tui { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; animation: tuiOn .5s ease both; }
@keyframes tuiOn { from { opacity: 0; filter: brightness(2.4) blur(2px); transform: scaleY(.96); } }
.tui-head { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--phos); border-radius: 10px; background: rgba(37, 99, 235, .08); box-shadow: 0 0 22px rgba(37, 99, 235, .18); }
.tui-head canvas { width: 46px; height: 46px; flex: none; }
.tui-head-text { min-width: 0; line-height: 1.5; }
.tui-head-text b { color: var(--phos-hot); text-shadow: 0 0 12px var(--glow); }
.tui-head-text span { color: var(--ink-dim); }
.tui-head-text small { display: block; color: var(--ink-faint); font-size: .86em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tui-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 12px; }
.tui-log { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
.tui-log::before { content: ""; flex: 1; } /* new lines settle at the bottom, like a terminal */
.tl { display: grid; grid-template-columns: 5.6em 1fr; gap: 8px; margin: 0; animation: ln .4s ease both; }
.tl-tag { font-size: .72em; font-weight: 700; letter-spacing: .08em; text-align: center; padding: 2px 4px; border-radius: 3px; align-self: start; margin-top: .25em; }
.tl-sys { color: var(--ink-dim); } .tl-sys .tl-tag { color: var(--phos-hot); }
.tl-you { color: var(--ink-bright); } .tl-you .tl-tag { background: rgba(214, 228, 255, .14); }
.tl-skill .tl-tag { background: rgba(91, 155, 255, .22); color: #bcd6ff; }
.tl-memory .tl-tag { background: rgba(126, 226, 184, .18); color: var(--ok); } .tl-memory { color: var(--ink); }
.tl-agent .tl-tag { background: rgba(196, 160, 255, .2); color: #dcc8ff; }
.tl-tool .tl-tag { background: rgba(255, 255, 255, .07); color: var(--ink-dim); }
.tl-hook .tl-tag { background: rgba(255, 159, 159, .18); color: #ffc0c0; }
.tl-claude { color: var(--ink-bright); } .tl-claude .tl-tag { background: var(--phos-hot); color: #061229; }
.tl-skill, .tl-agent, .tl-tool, .tl-hook { color: var(--ink-dim); }
.tui-mem { min-height: 0; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 8px; font-size: .86em; overflow: hidden; }
.tui-mem-title { margin: 0 0 8px; color: var(--ok); font-weight: 600; }
.tui-mem ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tui-mem li { color: var(--ink-faint); line-height: 1.45; padding: 6px 8px; border-radius: 6px; transition: color .4s, background .4s, box-shadow .4s; }
.tui-mem li b { display: block; font-weight: 600; font-size: .9em; color: var(--ink-faint); }
.tui-mem li.hit { color: var(--ink-bright); background: rgba(126, 226, 184, .1); box-shadow: inset 2px 0 0 var(--ok); }
.tui-mem li.hit b { color: var(--ok); }
.tui-input { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink-bright); min-height: 2.6em; }
.tui-caret-prompt { color: var(--phos); font-weight: 700; }
.tui-status { padding: 2px 4px 0; font-size: .8em; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-progress { position: relative; z-index: 3; height: 3px; margin: 0 22px 14px; background: var(--line); border-radius: 2px; overflow: hidden; }
.demo-progress i { display: block; height: 100%; background: var(--phos-hot); box-shadow: 0 0 10px var(--glow); transform-origin: 0 50%; transform: scaleX(0); }
.demo-phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: center; counter-reset: ph; }
.demo-phases li { counter-increment: ph; position: relative; padding: 14px 16px 14px 52px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-faint); transition: border-color .3s, background .3s, color .3s; }
.demo-phases li::before { content: "0" counter(ph); position: absolute; left: 14px; top: 14px; width: 26px; padding: 3px 0; text-align: center; border: 1px solid var(--line); border-radius: 4px; font: 600 .7rem/1 var(--mono); }
.demo-phases b { display: block; font: 700 .95rem/1.3 var(--mono); color: var(--ink-dim); }
.demo-phases span { display: block; margin-top: 3px; font-size: .88rem; line-height: 1.45; }
.demo-phases li.done b { color: var(--ink); }
.demo-phases li.now { border-color: var(--phos); background: rgba(37, 99, 235, .14); color: var(--ink-dim); box-shadow: 0 0 24px rgba(37, 99, 235, .2); }
.demo-phases li.now b { color: var(--ink-bright); }
.demo-phases li.now::before { background: var(--phos-hot); color: #061229; border-color: var(--phos-hot); box-shadow: 0 0 12px var(--glow); }
@media (prefers-reduced-motion: reduce) { .tui, .tl { animation: none; } .tui-caret { animation: none; } }
@media (max-width: 1100px) { .tui-body { grid-template-columns: 1fr; } .tui-mem { display: none; } }
@media (max-width: 960px) {
  .demo { display: flex; flex-direction: column; gap: 10px; }
  .js .fit .demo-crt { flex: 1; }
  .demo-phases { display: flex; gap: 6px; }
  .demo-phases li { flex: 1; padding: 8px 6px; text-align: center; }
  .demo-phases li::before { position: static; display: block; margin: 0 auto 4px; }
  .demo-phases b { font-size: .7rem; }
  .demo-phases span { display: none; }
}
@media (max-width: 640px) {
  .demo-screen { padding: 12px 12px 8px; font-size: .7rem; line-height: 1.6; }
  .tui-head { padding: 8px 10px; gap: 10px; }
  .tui-head canvas { width: 34px; height: 34px; }
  .tui-head-text span { display: none; }
  .tl { grid-template-columns: 4.8em 1fr; gap: 6px; }
  .demo-progress { margin: 0 12px 10px; }
  .demo-phases li { padding: 6px 2px; }
  .demo-phases b { font-size: .6rem; letter-spacing: -.01em; }
}
.tui[hidden], .demo-shell[hidden] { display: none; }
.tui-log { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 2.2em); mask-image: linear-gradient(180deg, transparent 0, #000 2.2em); }

/* Field notes on phones: a compact card with the field on one row. */
@media (max-width: 640px) {
  .fit .notes { padding: 22px 18px; gap: 14px; border-radius: 12px; }
  .fit .notes h2 { font-size: 1.35rem; margin: 10px 0 8px; }
  .fit .notes .muted { font-size: .92rem; }
  .fit .notes .field { flex-direction: row; }
  .fit .notes .field input { min-height: 46px; font-size: .92rem; padding: 0 12px; }
  .fit .notes .field .btn { min-height: 46px; padding: 0 14px; font-size: .82rem; }
  .fit .notes .form-note { font-size: .74rem; }
}

.fit { background: radial-gradient(130% 100% at 50% 0%, #060b17, #03050b 70%); }
.notes > *, .notes form { min-width: 0; } /* the email row can shrink to a narrow phone */

/* A soft dark halo keeps every line readable where a coloured glow passes behind it. */
.fit main :where(p, li, summary, small, figcaption, .label, .tag, dt, dd, .guide-row-title, .guide-row-min, .way-body):not(.btn *) {
  text-shadow: 0 0 2px #03050b, 0 0 6px #03050b, 0 0 14px #03050b;
}
.fit main :where(h1, h2) { text-shadow: 0 0 18px var(--glow), 0 0 3px #03050b, 0 0 12px #03050b; }

/* ───── Section colour (B2): soft glows that take each section's colour as you scroll ───── */
.aura { --aura: 37, 99, 235; --aura-2: 139, 92, 246; position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aura i { position: absolute; border-radius: 50%; will-change: transform; transition: background 1.2s ease; }
/* Big soft lights: one either side, kept to the edges so text sits on dark. */
.aura-a { width: 70vmax; height: 70vmax; left: -32vmax; top: -18vmax; background: radial-gradient(closest-side, rgba(var(--aura), .34), rgba(var(--aura), .12) 45%, transparent 72%); animation: auraA 26s ease-in-out infinite alternate; }
.aura-b { width: 64vmax; height: 64vmax; right: -30vmax; bottom: -24vmax; background: radial-gradient(closest-side, rgba(var(--aura-2), .26), rgba(var(--aura-2), .09) 45%, transparent 72%); animation: auraB 32s ease-in-out infinite alternate; }
.aura-c { width: 46vmax; height: 46vmax; left: 50%; top: 40%; margin-left: -23vmax; background: radial-gradient(closest-side, rgba(var(--aura), .08), transparent 70%); animation: auraC 22s ease-in-out infinite alternate; }
@keyframes auraA { to { transform: translate(8vmax, 10vmax) scale(1.08); } }
@keyframes auraB { to { transform: translate(-10vmax, -8vmax) scale(1.1); } }
@keyframes auraC { to { transform: translate(-6vmax, -10vmax) scale(.9); } }
@media (max-width: 640px) { .aura-a { left: -48vmax; } .aura-b { right: -46vmax; } }
@media (prefers-reduced-motion: reduce) { .aura i { animation: none; } }
@media (max-width: 640px) {
  .aura-a { width: 110vmax; height: 110vmax; left: -62vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(var(--aura), .42), rgba(var(--aura), .15) 45%, transparent 72%); }
  .aura-b { width: 100vmax; height: 100vmax; right: -58vmax; bottom: -40vmax; background: radial-gradient(closest-side, rgba(var(--aura-2), .34), rgba(var(--aura-2), .12) 45%, transparent 72%); }
}
