/* Neurouter landing — one stylesheet, no JavaScript, system fonts only. */

:root {
  color-scheme: light dark;
  --bg: #f6f6f2;
  --bg-2: #eeede7;
  --surface: #ffffff;
  --ink: #12151a;
  --ink-2: #353b44;
  --muted: #5a616b;
  --line: #dcdbd3;
  --line-strong: #b5b4ab;
  --accent: #0b7166;
  --accent-strong: #075a51;
  --accent-ink: #ffffff;
  --accent-soft: #dcefea;
  --warn: #9a5800;
  --warn-soft: #f6e7cf;
  --deny: #b0222e;
  --grid: rgba(18, 21, 26, 0.07);
  --shadow: 0 1px 2px rgba(18, 21, 26, 0.05), 0 8px 24px -12px rgba(18, 21, 26, 0.12);

  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 14px;
  --gutter: 16px;
  --max: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0e11;
    --bg-2: #11151a;
    --surface: #141a20;
    --ink: #edf0f2;
    --ink-2: #c4cad0;
    --muted: #97a0a9;
    --line: #242b33;
    --line-strong: #3b454f;
    --accent: #43c8b4;
    --accent-strong: #6fdac9;
    --accent-ink: #04201c;
    --accent-soft: #10302b;
    --warn: #f2a947;
    --warn-soft: #3a2a12;
    --deny: #f47079;
    --grid: rgba(237, 240, 242, 0.06);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -14px rgba(0, 0, 0, 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 650; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
code, kbd, pre { font-family: var(--mono); font-size: 0.88em; }
:not(pre) > code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.08em 0.35em; white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 1.08rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 28px; height: 28px; flex: none; }
.nav { display: none; gap: 4px; margin-left: 8px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 0.93rem; padding: 6px 10px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.header-cta { margin-left: auto; display: flex; gap: 8px; }
@media (min-width: 940px) { .nav { display: flex; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: 10px;
  font: 600 0.95rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--line-strong); color: var(--ink); background: var(--surface);
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { color: var(--ink); border-color: var(--ink-2); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--bg); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 0.88rem; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 24px; }
@media (min-width: 720px) { .hero { padding: 88px 0 32px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font: 500 0.8rem/1.4 var(--mono); color: var(--muted); letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { max-width: 19ch; }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 62ch; margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font: 0.82rem/1.5 var(--mono); color: var(--muted); }
.hero-facts li::before { content: "— "; color: var(--line-strong); }

/* ---------- illustration ---------- */
.illo {
  margin: 48px 0 0; padding: 20px 12px; position: relative;
  border: 1px solid var(--line); border-radius: 22px;
  background:
    radial-gradient(circle at 1px 1px, var(--grid) 1px, transparent 1.2px) 0 0 / 22px 22px,
    linear-gradient(var(--surface), var(--bg));
  box-shadow: var(--shadow);
}
@media (min-width: 720px) { .illo { padding: 28px 24px 20px; } }
.illo svg { display: block; width: 100%; height: auto; overflow: visible; }
.illo .v-wide { display: none; }
.illo .v-tall { max-width: 400px; margin: 0 auto; }
@media (min-width: 880px) { .illo .v-wide { display: block; } .illo .v-tall { display: none; } }
.illo figcaption { font: 0.78rem/1.5 var(--mono); color: var(--muted); text-align: center; margin-top: 14px; padding: 0 8px; }

/* line-art vocabulary */
.illo text { font-family: var(--sans); fill: var(--ink); }
.illo .t-name { font-size: 14px; font-weight: 600; }
.illo .t-sm { font-size: 13px; font-weight: 600; }
.illo .t-title { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.illo .t-mono { font-family: var(--mono); font-size: 10.5px; fill: var(--muted); }
.illo .t-mono-acc { font-family: var(--mono); font-size: 11px; fill: var(--accent); font-weight: 600; }
.illo .t-deny { font-family: var(--mono); font-size: 11px; fill: var(--deny); font-weight: 600; }
.illo .t-warn { font-family: var(--mono); font-size: 10.5px; fill: var(--warn); }
.illo .card { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.2; }
.illo .card-ghost { fill: none; stroke: var(--deny); stroke-width: 1.2; stroke-dasharray: 4 4; opacity: .75; }
.illo .gw { fill: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); stroke: var(--accent); stroke-width: 1.5; }
.illo .panel { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; }
.illo .ln { fill: none; stroke: var(--line-strong); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.illo .ln-acc { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.illo .ln-bus { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.illo .ln-warn { fill: none; stroke: var(--warn); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 3 4; }
.illo .ln-deny { fill: none; stroke: var(--deny); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 3 4; }
.illo .ln-dot { fill: none; stroke: var(--line-strong); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 1 5; }
.illo .glyph { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.illo .glyph-acc { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.illo .glyph-warn { fill: none; stroke: var(--warn); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.illo .glyph-deny { fill: none; stroke: var(--deny); stroke-width: 2; stroke-linecap: round; }
.illo .ico-bg { fill: var(--bg-2); stroke: var(--line); stroke-width: 1; }
.illo .st { fill: var(--surface); stroke: var(--accent); stroke-width: 1.6; }
.illo .st-warn { fill: var(--surface); stroke: var(--warn); stroke-width: 1.6; }
.illo .port { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.illo .blk { fill: var(--bg-2); stroke: var(--line-strong); stroke-width: 1; }
.illo .blk-line { stroke: var(--line-strong); stroke-width: 1.2; stroke-linecap: round; }
.illo .seal { fill: var(--accent); }
.illo .spark { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.illo .spark-area { fill: var(--accent-soft); opacity: .7; }
.illo .mark-bg { fill: var(--ink); }
.illo .mark-n { fill: none; stroke: var(--bg); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* motion — subtle, and fully off for prefers-reduced-motion */
.illo .flow { fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 0 64; animation: flow 2.6s linear infinite; }
.illo .flow-deny { stroke: var(--deny); }
.illo .flow-warn { stroke: var(--warn); }
.illo .d1 { animation-delay: -0.4s; } .illo .d2 { animation-delay: -1.1s; } .illo .d3 { animation-delay: -1.7s; }
.illo .d4 { animation-delay: -2.2s; } .illo .d5 { animation-delay: -0.8s; } .illo .slow { animation-duration: 3.4s; }
@keyframes flow { to { stroke-dashoffset: -64; } }
.illo .pulse { fill: none; stroke: var(--warn); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
.illo .new-blk { animation: append 5s ease-in-out infinite; }
@keyframes append { 0%, 12% { opacity: 0; transform: translateX(-6px); } 28%, 100% { opacity: 1; transform: none; } }
.illo .spark { stroke-dasharray: 260; animation: draw 6s ease-in-out infinite; }
@keyframes draw { 0% { stroke-dashoffset: 260; } 45%, 100% { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .illo .flow, .illo .pulse, .illo .new-blk, .illo .spark { animation: none; }
  .illo .flow { display: none; }
  .illo .pulse { opacity: 0; }
}

/* ---------- sections ---------- */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .section { padding: 112px 0; } }
.section-alt { background: var(--bg-2); }
.kicker { display: block; font: 600 0.78rem/1.4 var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.muted { color: var(--muted); }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tile h3 { display: flex; align-items: center; gap: 10px; }
.tile p { color: var(--ink-2); font-size: 0.98rem; margin: 0; }
.tile p + p { margin-top: 0.6em; }
.tile .ico { width: 36px; height: 36px; flex: none; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); background: var(--bg); }
.tile .ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.problem .tile h3 { font-size: 1.05rem; }
.problem .tile .q { display: block; font: 0.82rem/1.5 var(--mono); color: var(--muted); margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.steps li::before { content: "0" counter(step); font: 600 0.8rem/1 var(--mono); color: var(--accent); display: block; margin-bottom: 18px; }
.steps p { color: var(--ink-2); font-size: 0.96rem; margin: 0; }

.code {
  margin: 0; background: var(--ink); color: var(--bg); border-radius: 12px; padding: 18px 20px;
  overflow-x: auto; font: 0.85rem/1.65 var(--mono); tab-size: 2; -webkit-overflow-scrolling: touch;
}
@media (prefers-color-scheme: dark) { .code { background: #05070a; color: var(--ink); border: 1px solid var(--line); } }
.code .c { opacity: .6; }
.code .k { color: var(--accent); }
@media (prefers-color-scheme: light) { .code .k { color: #6fdac9; } }
.code-label { font: 600 0.78rem/1 var(--mono); color: var(--muted); margin: 0 0 10px; }

.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 980px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split > * { min-width: 0; }

/* feature list */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.feature-list li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 28px 1fr; gap: 4px 14px; }
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list svg { width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; grid-row: span 2; }
.feature-list strong { font-weight: 600; }
.feature-list span { color: var(--ink-2); font-size: 0.96rem; }

/* audit record */
.record { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.record-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 600 0.82rem/1.3 var(--mono); flex-wrap: wrap; }
.record-head .tag { color: var(--muted); font-weight: 400; }
.record dl { margin: 0; padding: 6px 18px 14px; display: grid; grid-template-columns: minmax(100px, 34%) 1fr; font: 0.8rem/1.5 var(--mono); }
.record dt, .record dd { padding: 7px 0; border-bottom: 1px dashed var(--line); margin: 0; min-width: 0; }
.record dt { color: var(--muted); padding-right: 12px; }
.record dd { overflow-wrap: anywhere; }
.record dl > :nth-last-child(-n+2) { border-bottom: 0; }
.pill { display: inline-block; font: 600 0.72rem/1 var(--mono); padding: 4px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.redacted { background: var(--ink); color: var(--ink); border-radius: 3px; padding: 0 2px; user-select: none; }
.record-foot { padding: 12px 18px; border-top: 1px solid var(--line); font: 0.74rem/1.5 var(--mono); color: var(--muted); background: var(--bg-2); }

/* metrics strip */
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metrics div { background: var(--surface); padding: 20px; }
.metrics b { display: block; font: 600 1.05rem/1.3 var(--sans); margin-bottom: 4px; }
.metrics span { color: var(--muted); font-size: 0.9rem; }

/* deployment */
.targets { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; }
.targets li { font: 500 0.82rem/1 var(--mono); padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-2); background: var(--surface); }

/* tiers */
.tiers { display: grid; gap: 16px; }
@media (min-width: 860px) { .tiers { grid-template-columns: 1fr 1fr; } }
.tier { border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: var(--surface); display: flex; flex-direction: column; }
.tier-feature { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.tier-soon { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.tier .status { align-self: flex-start; margin-bottom: 16px; }
.tier h3 { font-size: 1.5rem; margin-bottom: 4px; }
.tier .sub { color: var(--muted); margin-bottom: 20px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.tier li { padding-left: 26px; position: relative; color: var(--ink-2); font-size: 0.97rem; }
.tier li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.tier-soon li::before { width: 8px; height: 8px; border: 1.5px solid var(--line-strong); border-radius: 50%; transform: none; top: 0.45em; left: 3px; }
.tier .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.tier .note { font-size: 0.85rem; color: var(--muted); margin: 14px 0 0; }

/* roadmap */
.roadmap { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.roadmap li { font-size: 0.88rem; padding: 7px 12px; border-radius: 8px; border: 1px dashed var(--line-strong); color: var(--ink-2); }

/* faq */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 22px; color: var(--ink-2); max-width: 72ch; }
.faq details > div p:last-child { margin-bottom: 0; }

/* closing */
.closing { text-align: center; }
.closing h2 { max-width: 22ch; margin-inline: auto; }
.closing p { color: var(--ink-2); max-width: 56ch; margin: 0 auto 28px; }
.closing .hero-ctas { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 36px; font-size: 0.92rem; color: var(--muted); background: var(--bg); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; } }
.footer-grid .about { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-grid .about { grid-column: auto; } }
.footer-grid h2 { font: 600 0.78rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-grid a { color: var(--muted); text-decoration: none; display: inline-block; padding: 4px 0; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.82rem; }

/* ---------- prose pages (legal, security, 404) ---------- */
.page { padding: 56px 0 88px; }
@media (min-width: 720px) { .page { padding: 80px 0 112px; } }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2rem, 4.4vw, 3rem); max-width: none; }
.prose h2 { font-size: 1.35rem; margin-top: 2.2em; letter-spacing: -0.015em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose .meta { font: 0.82rem/1.5 var(--mono); color: var(--muted); margin-bottom: 28px; }
.draft-note { display: flex; gap: 12px; align-items: flex-start; border: 1px dashed var(--line-strong); border-radius: 12px; padding: 14px 16px; font-size: 0.9rem; color: var(--muted); margin: 0 0 36px; background: var(--surface); }
.draft-note b { color: var(--ink-2); font-weight: 600; }
.ph { font-family: var(--mono); font-size: 0.86em; color: var(--warn); background: var(--warn-soft); border-radius: 4px; padding: 0 4px; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.94rem; margin: 0 0 1.2em; }
.prose th, .prose td { text-align: left; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink); }
.prose pre { margin: 0 0 1.2em; }

.notfound { text-align: center; padding: 100px 0 140px; }
.notfound svg { width: min(100%, 360px); height: auto; margin: 0 auto 28px; display: block; }
.notfound h1 { max-width: none; font-size: clamp(2rem, 5vw, 3rem); }
.notfound p { color: var(--ink-2); max-width: 48ch; margin: 0 auto 28px; }
.notfound .hero-ctas { justify-content: center; }
.notfound .ln { fill: none; stroke: var(--line-strong); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 3 6; }
.notfound .node { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.4; }
.notfound .node-acc { fill: var(--surface); stroke: var(--accent); stroke-width: 1.8; }
.notfound .x { stroke: var(--deny); stroke-width: 2.2; stroke-linecap: round; }
.notfound text { font: 600 13px var(--mono); fill: var(--muted); }

/* spacing between stacked blocks */
.code + .code-label { margin-top: 26px; }
.steps + .split { margin-top: 64px; }
.metrics + .targets { margin-top: 28px; }
.split h3 { font-size: 1.3rem; }
.roadmap-block { margin-top: 56px; }
.roadmap-title { font-size: 1rem; color: var(--ink-2); margin-bottom: 16px; }

/* logo mark */
.m-bg { fill: var(--ink); }
.m-n { fill: none; stroke: var(--bg); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.m-dot { fill: var(--accent); }
.illo .m-dot { fill: var(--accent); }
.illo .t-head { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; fill: var(--muted); font-weight: 600; }
.illo .t-xs { font-size: 12px; font-weight: 600; }

.footer-tm { font-size: 0.78rem; margin: 14px 0 0; max-width: 90ch; }
@media (min-width: 980px) { .sticky { position: sticky; top: 96px; } }
.notfound .glyph { stroke: var(--ink-2); }
.footer-grid .brand { display: inline-flex; color: var(--ink); margin-bottom: 10px; }

/* tables that stack into labelled rows on phones */
@media (max-width: 599px) {
  .prose table.stack, .prose table.stack tbody, .prose table.stack tr, .prose table.stack td { display: block; width: 100%; }
  .prose table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose table.stack tr { border: 1px solid var(--line); border-radius: 12px; padding: 6px 14px; margin-bottom: 12px; background: var(--surface); }
  .prose table.stack td { border: 0; padding: 6px 0; }
  .prose table.stack td + td { border-top: 1px dashed var(--line); }
  .prose table.stack td::before { content: attr(data-label); display: block; font: 600 0.72rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 2px; }
}

/* ---------- navigation additions ---------- */
.nav a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.header-cta { align-items: center; }
.mnav { position: relative; }
.mnav summary { list-style: none; cursor: pointer; width: 44px; height: 38px; border: 1px solid var(--line-strong); border-radius: 10px; display: grid; place-items: center; background: var(--surface); }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary span, .mnav summary span::before, .mnav summary span::after { display: block; width: 16px; height: 1.6px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
.mnav summary span::before { position: absolute; top: -5px; }
.mnav summary span::after { position: absolute; top: 5px; }
.mnav[open] summary { border-color: var(--ink-2); }
.mnav nav { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: grid; z-index: 60; }
.mnav nav a { padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 0.98rem; }
.mnav nav a:hover { background: var(--bg-2); }
@media (min-width: 940px) { .mnav { display: none; } }
@media (max-width: 420px) { .gh-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .gh-btn { padding: 0 11px; } }

/* ---------- docs layout ---------- */
.doc-page { padding-top: 28px; }
@media (min-width: 720px) { .doc-page { padding-top: 40px; } }
.breadcrumbs ol { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font: 0.82rem/1.5 var(--mono); color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.doc-layout { display: grid; gap: 28px; }
@media (min-width: 980px) { .doc-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 56px; } .doc-layout.no-side { grid-template-columns: minmax(0, 1fr); } }
.doc-layout > * { min-width: 0; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 0.92rem; line-height: 1.35; }
.side-nav a:hover { background: var(--bg-2); color: var(--ink); }
.side-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side-m { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.side-m summary { cursor: pointer; padding: 12px 14px; font: 600 0.8rem/1.2 var(--mono); color: var(--ink-2); }
.side-m ul { padding: 0 6px 8px; }
.side-d { display: none; }
.side-h { font: 600 0.78rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); margin: 0 0 10px; padding: 0 10px; }
@media (min-width: 980px) {
  .side-nav { position: sticky; top: 88px; align-self: start; }
  .side-m { display: none; }
  .side-d { display: block; }
}
.prose.doc { max-width: 800px; }
.prose .kicker { margin-bottom: 10px; }
.prose .lede-sm { font-size: 1.12rem; color: var(--ink-2); margin-bottom: 10px; }
.prose h2 { scroll-margin-top: 84px; }
.prose h3 { font-size: 1.08rem; }
.prose pre.code { margin: 0 0 1.4em; }
.prose :not(pre) > code { white-space: normal; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; }
.table-wrap table { margin: 0; min-width: 560px; font-size: 0.9rem; }
.table-wrap th, .table-wrap td { padding: 10px 12px; }
.table-wrap thead th { background: var(--bg-2); font-size: 0.82rem; }
.table-wrap tr:last-child td { border-bottom: 0; }
.callout { border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 0 0 1.4em; }
.callout p { margin: 0; color: var(--ink-2); }
.callout p + p { margin-top: 0.6em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose ol { padding-left: 1.4em; }

/* hub cards (index pages) */
.cards { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: 12px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.cards li { margin: 0; }
.cards a { display: block; height: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--surface); text-decoration: none; color: var(--ink); }
.cards a:hover { border-color: var(--accent); }
.cards b { display: block; font-weight: 600; margin-bottom: 4px; }
.cards span { display: block; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* home: "read more" links and works-with strip */
.more { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.more::after { content: "→"; }
.more-row { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; }
.prose.doc.wide { max-width: none; }
.prose.doc.wide > p, .prose.doc.wide > ul, .prose.doc.wide > h2, .prose.doc.wide > .lede-sm { max-width: 800px; }
.wide .table-wrap table { min-width: 880px; font-size: 0.84rem; }
.table-wrap th:first-child, .table-wrap td:first-child { min-width: 9.5rem; font-weight: 600; color: var(--ink); }
@media (max-width: 599px) {
  .table-wrap { border: 0; border-radius: 0; overflow: visible; }
  .table-wrap table.stack, .wide .table-wrap table.stack { min-width: 0; }
  .table-wrap table.stack, .table-wrap table.stack tbody, .table-wrap table.stack tr, .table-wrap table.stack td { display: block; width: 100%; }
  .table-wrap table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap table.stack tr { border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; margin-bottom: 10px; background: var(--surface); }
  .table-wrap table.stack td { border: 0; padding: 6px 0; min-width: 0; }
  .table-wrap table.stack td + td { border-top: 1px dashed var(--line); }
  .table-wrap table.stack td:first-child { font-size: 1rem; }
  .table-wrap table.stack td + td::before { content: attr(data-label); display: block; font: 600 0.7rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 2px; }
}
.table-wrap thead th { white-space: nowrap; }
@media (max-width: 599px) { .table-wrap table.stack td:first-child::before { display: none; } }
