/* Fonts, self-hosted (SIL Open Font License, see assets/fonts/LICENSE-*.txt): Bricolage Grotesque for headings,
   Instrument Sans for text and the navbar, Geist Mono for numbers and code. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-grotesque-latin-opsz.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-latin-wght.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* CrowRank site: tokens, the floating navbar, footer, and the inner-page layouts (features, blog, FAQ, changelog).
   The home page keeps its own inline styles and loads this file for the navbar and footer. */
:root {
  --bg: #0f0f11; --sunk: #0b0b0d; --raised: #1a1a1e; --raised-2: #222227; --tile: #2a2a2f;
  --line: rgba(255,255,255,.09); --line-soft: rgba(255,255,255,.055);
  --fg: #f2f2f4; --soft: #b4b4ba; --mute: #8e8e97;
  --accent: #5a9cf8; --button: #1f6fe0; --button-hover: #1d64cf; --good: #5fcf7f; --warn: #e7b14d; --bad: #f07a6a;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 5vw, 72px);
  --nav-h: 58px;
  --font-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --glass: rgba(15,15,17,.74); --glass-strong: rgba(15,15,17,.9); --menu: #16161a; --prose: #d2d2d8; --ghost: #25252b;
  --dot: rgba(255,255,255,.05); --panel: rgba(26,26,30,.84); --panel-2: rgba(26,26,30,.7); --scroll: #3a3a42;
  --line-strong: rgba(255,255,255,.2); --lit-fg: #fff; --shadow: rgba(0,0,0,.9);
}
/* Light theme: chosen with the navbar toggle, or the Mac's appearance when no choice was made (set before paint in <head>). */
:root[data-theme="light"] {
  --bg: #f6f6f8; --sunk: #ececf0; --raised: #ffffff; --raised-2: #f1f1f4; --tile: #e6e6ea;
  --line: rgba(10,10,20,.12); --line-soft: rgba(10,10,20,.07);
  --fg: #141418; --soft: #44444c; --mute: #64646d;
  --accent: #1a5fd0; --button: #1f6fe0; --button-hover: #1a5fd0; --good: #157a48; --warn: #8f5b00; --bad: #b3402b;
  --glass: rgba(246,246,248,.8); --glass-strong: rgba(246,246,248,.94); --menu: #ffffff; --prose: #2a2a31; --ghost: #dedee4;
  --dot: rgba(10,10,20,.07); --panel: rgba(255,255,255,.9); --panel-2: rgba(255,255,255,.75); --scroll: #c6c6ce;
  --line-strong: rgba(10,10,20,.28); --lit-fg: #0d3f94; --shadow: rgba(20,20,40,.18);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--scroll) var(--bg); scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 17px/1.6 var(--font-body); text-rendering: optimizeLegibility; overflow-x: hidden; background: var(--bg); }
h1, h2, h3, .big-q, .statement, .feat-list b, .post-list .pl-t, .board-top .kw, .ask h2, .how b { font-family: var(--font-display); }
h1, h2, h3, .big-q, .statement { font-optical-sizing: auto; }
/* The navbar is all text face: wordmark, links, menu, version badge. */
.nav, .nav .nav-mark, .nav .nav-ver, .nav-sheet nav a { font-family: var(--font-body); }
code, kbd, .num, td.n, time { font-variant-numeric: tabular-nums; }
::selection { background: rgba(90,156,248,.35); color: #fff; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--raised); color: var(--fg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 18px; height: 18px; flex: none; }
.wrap { width: min(100% - var(--gutter) * 2, 1180px); margin-inline: auto; }

.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 10px; font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none; transition: transform .25s var(--ease), background-color .2s, box-shadow .25s var(--ease); }
.btn.primary { background: var(--button); color: #fff; box-shadow: 0 10px 24px -12px rgba(0,0,0,.8); }
.btn.primary:hover { background: var(--button-hover); transform: translateY(-1px); }
.btn.small { height: 42px; padding: 0 18px; font-size: 15px; }
.btn.ghost { color: var(--fg); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--line-strong); }

/* ---------- Navbar: a floating bar; a crow glides above the link under the pointer, a hairline fills with scroll ---------- */
.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.nav-bar { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 6px; height: var(--nav-h); width: min(100% - 24px, 1180px); padding: 0 8px 0 16px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 18px 40px -24px rgba(0,0,0,.9); transition: width .6s var(--ease), background-color .4s; }
.nav.compact .nav-bar { width: min(100% - 24px, 900px); background: var(--glass-strong); }
.nav-mark { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 650; font-size: 17px; letter-spacing: -.01em; margin-right: 10px; }
.nav-mark img { width: 28px; height: 28px; }
.nav-links { position: relative; display: flex; align-items: center; gap: 2px; margin: 0 auto; height: 100%; }
.nav-item { position: relative; display: flex; align-items: center; height: 100%; }
.nav-link { position: relative; display: flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 8px; color: var(--soft); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--fg); }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent); }
.nav-caret { display: grid; place-items: center; width: 22px; height: 30px; margin-left: -10px; padding: 0; border: 0; background: none; color: var(--mute); cursor: pointer; border-radius: 6px; }
.nav-caret .ic { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.nav-caret[aria-expanded="true"] .ic { transform: rotate(180deg); }
.nav-caret:hover { color: var(--fg); }
.nav-crow { position: absolute; top: 2px; left: 0; width: 30px; height: 13px; color: var(--accent); opacity: 0; pointer-events: none; transform: translateX(var(--crow-x, 0)) rotate(var(--crow-r, 0deg)); transition: transform .7s var(--ease), opacity .3s; }
.nav-links.crow-on .nav-crow { opacity: 1; }
.nav-ver { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; margin-right: 6px; border-radius: 8px; border: 1px solid var(--line-soft); color: var(--mute);
  font: 600 12px/1 var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nav-ver .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.nav-cta { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 8px; background: var(--button); color: #fff; text-decoration: none; font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: background-color .2s; }
.nav-cta:hover { background: var(--button-hover); }
.nav-burger, .nav-close { display: none; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 8px; background: none; color: var(--fg); cursor: pointer; }
.nav-burger .ic, .nav-close .ic { width: 22px; height: 22px; }
.nav-progress { pointer-events: none; width: min(100% - 48px, 1150px); height: 2px; margin-top: -2px; overflow: hidden; border-radius: 2px; transition: width .6s var(--ease); }
.nav.compact .nav-progress { width: min(100% - 48px, 870px); }
.nav-progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--progress, 0)); }

/* Feature menu */
.mega { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); width: min(720px, calc(100vw - 32px)); padding: 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--menu); box-shadow: 0 40px 80px -30px var(--shadow); }
.mega:not([hidden]) { animation: mega-in .35s var(--ease); }
@keyframes mega-in { from { opacity: 0; transform: translate(-50%, -6px); } }
.mm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.mm-item { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; border-radius: 8px; color: var(--fg); text-decoration: none; }
.mm-item .ic { width: 36px; height: 36px; padding: 8px; border-radius: 8px; background: rgba(90,156,248,.12); color: var(--accent); }
.mm-item b { display: block; font-size: 15px; font-weight: 600; }
.mm-item small { display: block; color: var(--mute); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.mm-item:hover, .mm-item[aria-current="page"] { background: var(--dot); }
.mm-all { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding: 12px; border-top: 1px solid var(--line-soft); color: var(--soft); text-decoration: none; font-size: 14px; font-weight: 600; }
.mm-all:hover { color: var(--fg); }

/* Mobile sheet */
.nav-sheet { pointer-events: auto; position: fixed; inset: 0; z-index: 60; background: var(--bg); padding: 76px var(--gutter) 40px; overflow-y: auto; }
.nav-sheet .nav-close { display: grid; position: absolute; top: 20px; right: 20px; }
.nav-sheet nav { display: flex; flex-direction: column; }
.nav-sheet nav a { color: var(--fg); text-decoration: none; font-size: 30px; font-weight: 700; letter-spacing: -.02em; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.nav-sheet nav a.sub { font-size: 18px; font-weight: 500; color: var(--soft); padding: 9px 0 9px 18px; }
.nav-sheet nav a[aria-current="page"] { color: var(--accent); }
.nav-sheet .sheet-cta { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 26px; height: 54px; border: 0; border-radius: 10px; background: var(--button); font-size: 17px; font-weight: 600; letter-spacing: 0; }
.nav-sheet:not([hidden]) { animation: sheet-in .4s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-10px); } }

@media (max-width: 960px) { .nav-ver { display: none; } }
@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: grid; margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-bar, .nav-progress, .nav-crow { transition: none; }
  .mega:not([hidden]), .nav-sheet:not([hidden]) { animation: none; }
}

/* ---------- Footer ---------- */
.foot { position: relative; z-index: 1; border-top: 1px solid var(--line); background: var(--bg); padding: 64px var(--gutter) 36px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; max-width: 1180px; margin: 0 auto; }
.foot-brand p { color: var(--soft); max-width: 40ch; margin: 16px 0 22px; font-size: 15px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-cols h2 { font-size: 13px; font-weight: 600; color: var(--mute); margin: 4px 0 14px; }
.foot-cols a { display: block; color: var(--soft); text-decoration: none; font-size: 15px; padding: 5px 0; }
.foot-cols a:hover { color: var(--fg); }
.foot-base { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; max-width: 1180px; margin: 48px auto 0; padding-top: 22px; border-top: 1px solid var(--line-soft); color: var(--mute); font-size: 13px; }
@media (max-width: 760px) { .foot-top { grid-template-columns: minmax(0, 1fr); } .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Inner pages ---------- */
.inner-main { padding-top: 120px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 22px; padding: 0; font-size: 13px; color: var(--mute); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--mute); }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }

.page-hero { padding: 132px 0 56px; position: relative; }
.page-hero h1 { font-size: clamp(42px, 6.4vw, 88px); line-height: .98; letter-spacing: -.035em; margin: 0 0 22px; max-width: 15ch; text-wrap: balance; }
.page-hero h1 span { color: var(--accent); }
.page-hero .lede { font-size: clamp(18px, 1.7vw, 22px); color: var(--soft); max-width: 52ch; margin: 0 0 30px; }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.page-hero.has-art { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.hero-art { width: 100%; height: auto; color: var(--accent); }

/* Split: words and a picture side by side, alternating */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: 64px 0; border-top: 1px solid var(--line-soft); }
.split.flip > :first-child { order: 2; }
.split h2, .band h2, .cols h2, .steps-h { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.04; letter-spacing: -.03em; margin: 0 0 18px; text-wrap: balance; }
.split p, .cols p { color: var(--soft); margin: 0 0 16px; max-width: 56ch; }
.split figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--raised); box-shadow: 0 50px 100px -40px var(--shadow); }
.split figure img { display: block; width: 100%; height: auto; }
.split figcaption { font-size: 12px; color: var(--mute); padding: 10px 14px; border-top: 1px solid var(--line-soft); }

/* Band: one big statement across the page */
.band { padding: 96px 0; border-top: 1px solid var(--line-soft); }
.band .big-q { font-size: clamp(30px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; max-width: 22ch; margin: 0; text-wrap: balance; }
.band .big-q em { font-style: normal; color: var(--accent); }

/* Spec table: facts in rows */
.spec { width: 100%; border-collapse: collapse; margin: 8px 0 0; font-size: 15px; }
.spec th, .spec td { text-align: left; padding: 14px 16px 14px 0; border-top: 1px solid var(--line-soft); vertical-align: top; }
.spec th { color: var(--fg); font-weight: 600; width: 34%; }
.spec td { color: var(--soft); }
.spec .num { font-variant-numeric: tabular-nums; color: var(--fg); font-weight: 600; }

/* Columns of short points, separated by hairlines */
.cols { padding: 72px 0; border-top: 1px solid var(--line-soft); }
.cols .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 28px; }
.cols .grid > div { padding: 24px 24px 24px 0; }
.cols .grid > div + div { padding-left: 24px; border-left: 1px solid var(--line-soft); }
.cols h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -.01em; }
.cols .grid p { font-size: 15px; margin: 0; }

/* Steps: a numbered flow where order matters */
.flow { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; border-top: 2px solid var(--line); }
.flow li { position: relative; padding: 26px 22px 0 0; counter-increment: s; }
.flow li::before { content: counter(s); position: absolute; top: -15px; left: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); color: var(--accent); font: 700 13px/1 var(--font-body); }
.flow b { display: block; font-size: 17px; margin-bottom: 6px; }
.flow span { color: var(--soft); font-size: 15px; }

/* CTA band at the end of inner pages */
.end-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin: 40px auto 96px; padding: 40px; border: 1px solid var(--line); border-radius: 10px;
  background: radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 1.4px) 0 0 / 7px 7px, var(--sunk); }
.end-cta h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.025em; line-height: 1.1; margin: 0 0 8px; }
.end-cta p { color: var(--soft); margin: 0; max-width: 52ch; }

/* Feature index */
.feat-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.feat-list a { display: grid; grid-template-columns: 56px minmax(0, 4fr) minmax(0, 6fr) 28px; gap: 20px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line-soft); color: var(--fg); text-decoration: none; transition: background-color .3s; }
.feat-list .ic { width: 44px; height: 44px; padding: 10px; border-radius: 10px; background: rgba(90,156,248,.12); color: var(--accent); }
.feat-list b { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -.02em; line-height: 1.1; }
.feat-list span { color: var(--soft); font-size: 16px; }
.feat-list .go { color: var(--mute); transition: transform .3s var(--ease), color .2s; }
.feat-list a:hover .go { transform: translateX(4px); color: var(--accent); }

/* Blog list */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-list a { display: grid; grid-template-columns: 170px minmax(0, 1fr) 90px; grid-template-areas: "d t m" "d s m"; gap: 4px 28px; padding: 26px 0; border-bottom: 1px solid var(--line-soft); color: var(--fg); text-decoration: none; }
.post-list time { grid-area: d; color: var(--mute); font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 4px; }
.post-list .pl-t { grid-area: t; font-size: clamp(20px, 2vw, 26px); font-weight: 650; letter-spacing: -.02em; line-height: 1.3; transition: color .2s; }
.post-list .pl-d { grid-area: s; color: var(--soft); font-size: 15px; max-width: 70ch; }
.post-list .pl-m { grid-area: m; color: var(--mute); font-size: 13px; text-align: right; padding-top: 6px; }
.post-list a:hover .pl-t { color: var(--accent); }

/* Article */
.post-head { padding: 132px 0 28px; max-width: 760px; }
.post-head h1 { font-size: clamp(36px, 5vw, 62px); line-height: 1.03; letter-spacing: -.033em; margin: 0 0 18px; text-wrap: balance; }
.post-lede { font-size: 20px; color: var(--soft); margin: 0 0 18px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--mute); font-size: 14px; margin: 0; padding-bottom: 26px; border-bottom: 1px solid var(--line-soft); }
.prose { max-width: 760px; padding: 18px 0 20px; font-size: 18px; line-height: 1.7; }
.prose > * { max-width: 68ch; }
.prose h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.025em; margin: 52px 0 14px; }
.prose h3 { font-size: 21px; margin: 34px 0 10px; letter-spacing: -.01em; }
.prose p, .prose li { color: var(--prose); }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 20px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--fg); }
.prose code { font: 15px var(--font-mono); background: var(--raised); border: 1px solid var(--line-soft); padding: 1px 6px; border-radius: 5px; color: var(--fg); }
.prose table { width: 100%; border-collapse: collapse; margin: 10px 0 26px; font-size: 16px; max-width: none; }
.prose th, .prose td { text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose th { color: var(--fg); font-weight: 600; border-bottom-color: var(--line); }
.prose td { color: var(--soft); }
.prose td.n { font-variant-numeric: tabular-nums; color: var(--fg); font-weight: 600; }
.prose .callout { margin: 28px 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); }
.prose .callout p:last-child { margin: 0; }
.prose .example { margin: 22px 0; padding: 18px 20px; border-radius: 10px; background: var(--sunk); border: 1px solid var(--line-soft); font: 15px/1.6 var(--font-mono); color: var(--fg); overflow-wrap: anywhere; }
.prose .example .lbl { display: block; color: var(--mute); font: 600 12px var(--font-body); margin-bottom: 6px; }
.post-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; max-width: 760px; margin: 30px auto 0; padding: 30px; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); }
.post-cta h2 { font-size: 24px; margin: 0 0 6px; letter-spacing: -.02em; }
.post-cta p { color: var(--soft); margin: 0; max-width: 46ch; font-size: 15px; }
.post-cta .rel { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.post-cta .rel a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; }
.post-cta .rel .ic { width: 14px; height: 14px; }
.more { max-width: 760px; padding: 72px 0 96px; }
.more h2 { font-size: 22px; margin: 0 0 18px; }
.more .post-list a { grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "s"; }
.more .post-list time, .more .post-list .pl-m { display: none; }

/* FAQ */
.faq { padding-bottom: 40px; }

.faq-layout { display: grid; grid-template-columns: 240px minmax(0, 860px); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-cats { position: sticky; top: 104px; }
.faq-cats ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.faq-cats a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-left: -1px; padding: 10px 0 10px 18px; border-left: 2px solid transparent; color: var(--soft); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s, border-color .2s; }
.faq-cats a span { font: 600 12px var(--font-mono); color: var(--mute); }
.faq-cats a:hover { color: var(--fg); }
.faq-cats a.on { color: var(--fg); border-left-color: var(--accent); }
.faq-cats a.on span { color: var(--accent); }
.faq-group { scroll-margin-top: 104px; }
.faq-group + .faq-group { margin-top: 44px; }
.faq h2 { font-family: var(--font-display); font-size: 26px; letter-spacing: -.02em; color: var(--fg); font-weight: 700; margin: 0 0 4px; }
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .faq-cats { position: sticky; top: 76px; z-index: 5; background: var(--bg); margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter); border-bottom: 1px solid var(--line-soft); overflow-x: auto; }
  .faq-cats ol { display: flex; gap: 6px; border-left: 0; white-space: nowrap; }
  .faq-cats a { margin: 0; padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: 8px; }
  .faq-cats a.on { border-color: var(--accent); }
}
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--mute); transition: transform .3s var(--ease); }
.faq details[open] summary .ic { transform: rotate(180deg); color: var(--accent); }
.faq details p { color: var(--soft); margin: -6px 0 22px; max-width: 68ch; }

/* Changelog */
.rel-list { padding-bottom: 40px; }
.rel-list > * { max-width: 860px; }
.rel-v { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 28px; padding: 30px 0; border-top: 1px solid var(--line-soft); }
.rel-v h2 { margin: 0; }
.seg-v { display: inline-block; font: 700 28px/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--good); letter-spacing: .02em; }
.rel-v ul { margin: 0; padding-left: 20px; }
.rel-v li { color: var(--soft); margin: 4px 0 8px; }
.rel-v li::marker { color: var(--accent); }
.rel-v:first-child .seg-v::after { content: "latest"; display: block; margin-top: 8px; font: 600 12px var(--font-body); color: var(--mute); letter-spacing: 0; }

/* Prose page (privacy, about) */
.doc.prose { max-width: none; padding-bottom: 80px; }
.doc > * { max-width: 70ch; }

/* 404 */
.nf-wrap { padding: 180px 0 120px; }
.nf-code { font: 700 clamp(90px, 18vw, 200px)/1 var(--font-mono); color: var(--ghost); margin: 0; letter-spacing: -.02em; }
.nf-wrap h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -.035em; margin: -10px 0 12px; }
.nf-wrap p { color: var(--soft); }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-weight: 600; }

@media (max-width: 900px) {
  .page-hero.has-art { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 420px; }
  .split, .split.flip { grid-template-columns: minmax(0, 1fr); }
  .split.flip > :first-child { order: 0; }
  .cols .grid { grid-template-columns: minmax(0, 1fr); }
  .cols .grid > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .flow { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 2px solid var(--line); margin-left: 14px; }
  .flow li { padding: 0 0 28px 30px; }
  .flow li::before { top: 0; left: -15px; }
  .feat-list a { grid-template-columns: 48px minmax(0, 1fr) 24px; }
  .feat-list a span:not(.go) { grid-column: 2; }
  .post-list a { grid-template-columns: minmax(0, 1fr); grid-template-areas: "d" "t" "s"; }
  .post-list .pl-m { display: none; }
  .rel-v { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
.sect { padding: 64px 0; border-top: 1px solid var(--line-soft); }
.sect-p { color: var(--soft); max-width: 60ch; margin: 0 0 8px; }

/* Example ledger on inner pages (same look as the home page's) */
.ledger-x { border: 1px solid var(--line); border-radius: 10px; background: var(--raised); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.lx-head { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.lx-head span { color: var(--mute); font-size: 13px; }
.lx-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 15px 20px; font-size: 15px; }
.lx-row + .lx-row { border-top: 1px solid var(--line-soft); }
.lx-row small { display: block; color: var(--mute); font-size: 13px; margin-top: 2px; }
.lx-row > b { font: 600 13px/22px var(--font-mono); color: var(--good); }
.lx-n { font: 600 12px/22px var(--font-mono); text-align: center; border-radius: 6px; background: rgba(90,156,248,.14); color: var(--accent); }
.lx-n.hi { background: rgba(240,122,106,.14); color: var(--bad); }
.blog-index { padding-bottom: 96px; }

/* Early access: the Ravolti lead form, embedded as a light card */
.lead-card { width: 100%; max-width: 480px; justify-self: end; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -36px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08); }
.lead-card iframe { display: block; width: 100%; height: 540px; border: 0; background: #fff; }
.page-hero.ea { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-bottom: 96px; }
.ea-list { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid var(--line); max-width: 52ch; }
.ea-list li { padding: 14px 0; border-bottom: 1px solid var(--line-soft); color: var(--soft); font-size: 16px; }
.ea-list b { color: var(--fg); font-weight: 600; }
.ea-have { color: var(--mute); font-size: 14px; }
@media (max-width: 900px) { .page-hero.ea { grid-template-columns: minmax(0, 1fr); } .lead-card { justify-self: stretch; max-width: none; } }

/* Blog covers */
.post-cover { max-width: 760px; margin: 0 auto 8px; }
.post-cover img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.post-cover figcaption { margin-top: 10px; font-size: 13px; color: var(--mute); }
.post-cover figcaption a { color: var(--soft); }
.post-list.thumbs a { grid-template-columns: 300px minmax(0, 1fr) 90px; grid-template-areas: "i d m" "i t m" "i s m"; align-items: start; }
.post-list.thumbs .pl-i { grid-area: i; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line-soft); transition: transform .5s var(--ease), border-color .3s; }
.post-list.thumbs a:hover .pl-i { transform: scale(1.02); border-color: rgba(90,156,248,.4); }
.post-list.thumbs time { padding-top: 0; }
@media (max-width: 900px) { .post-list.thumbs a { grid-template-columns: minmax(0, 1fr); grid-template-areas: "i" "d" "t" "s"; } .post-list.thumbs .pl-i { margin-bottom: 8px; } }

/* Theme toggle */
.nav-theme { display: grid; place-items: center; width: 36px; height: 36px; margin-right: 6px; padding: 0; border: 1px solid var(--line-soft); border-radius: 8px; background: none; color: var(--soft); cursor: pointer; transition: color .2s, border-color .2s; }
.nav-theme:hover { color: var(--fg); border-color: var(--line); }
.nav-theme .ic { width: 17px; height: 17px; }
.nav-theme .sun { display: none; }
:root[data-theme="light"] .nav-theme .sun { display: block; }
:root[data-theme="light"] ::selection { color: var(--fg); }
:root[data-theme="light"] .nav-theme .moon { display: none; }
.sheet-theme { display: flex; align-items: center; gap: 10px; margin-top: 18px; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--fg); font: 600 16px var(--font-body); cursor: pointer; }
@media (max-width: 820px) { .nav-theme { margin-left: auto; margin-right: 0; } .nav-burger { margin-left: 6px; } }
