/* solebot.app, light only */
:root {
  color-scheme: light;
  --paper: #f6f4ee;
  --paper-2: #efece3;
  --surface: #ffffff;
  --ink: #16150f;
  --ink-2: #3b3830;
  --muted: #756f5f;
  --line: #e2ddd0;
  --line-2: #cec6b3;
  --accent: #2b40d4;
  --accent-ink: #1c2ca3;
  --accent-soft: #e8ebfc;
  --run: #1d7348;
  --run-soft: #e2f1e8;
  --review: #8f5d00;
  --review-soft: #f9efd8;
  --queued: #5c584f;
  --queued-soft: #ece9e1;
  --blocked: #b2261b;
  --blocked-soft: #fae5e2;
  --done: #4f3fb8;
  --done-soft: #ece9fb;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(22, 21, 15, 0.04), 0 12px 32px -12px rgba(22, 21, 15, 0.14);
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
::selection { background: var(--accent-soft); }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 238, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -0.01em; font-size: 18px; }
.brand svg { width: 26px; height: 26px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.nav .btn { padding: 8px 14px; font-size: 14px; }
.nav .btn-primary, .nav .btn-primary:hover { color: var(--paper); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font: 500 15px/1 var(--sans); text-decoration: none; letter-spacing: -0.005em;
  border: 1px solid var(--ink); transition: transform .15s ease, background .15s ease, color .15s ease;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #000; color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn:disabled, .btn:disabled:hover { cursor: not-allowed; opacity: .42; transform: none; background: var(--ink); color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions.center { justify-content: center; margin-top: 44px; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  align-self: start;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h3 { line-height: 1.3; }
.display { font: 700 clamp(42px, 5.3vw, 72px)/1.03 var(--sans); letter-spacing: -0.042em; }
.h2 { font: 700 clamp(30px, 3.5vw, 46px)/1.1 var(--sans); letter-spacing: -0.035em; }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--muted); }
.k { display: block; font: 600 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
code, kbd, pre { font-family: var(--mono); }
:not(pre) > code { font-size: 0.86em; background: var(--paper-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero h1 { margin: 22px 0 24px; }
.hero .actions { margin-top: 34px; }
.hero .fineprint { margin-top: 22px; font-size: 14px; color: var(--muted); }

/* product mock */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.mock-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fbfaf6; }
.mock-bar .lights { display: flex; gap: 6px; }
.mock-bar .lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: block; }
.mock-bar .title { font: 500 12.5px/1 var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-bar .live { font: 500 12px/1 var(--mono); color: var(--run); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mock-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--run); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.mail-msg { padding: 13px 18px; }
.mail-msg + .mail-msg { border-top: 1px solid var(--line); }
.from { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.from b { font-weight: 600; }
.from .via { color: var(--muted); font-size: 12.5px; }
.from time { margin-left: auto; font: 500 12px/1 var(--mono); color: var(--muted); }
.av { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 11px/1 var(--mono); color: #fff; flex: none; }
.av.you { background: #8a8270; }
.av.bot { background: var(--accent); }
.mail-msg p { margin: 5px 0 0 30px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.ref { font-family: var(--mono); font-size: 0.92em; color: var(--accent); }

.ledger { border-top: 1px solid var(--line); }
.ledger-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; font: 500 12px/1 var(--mono); color: var(--muted); letter-spacing: 0.03em; background: #fbfaf6; }
.row { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 14px; }
.row .num { font-family: var(--mono); color: var(--muted); font-size: 13px; }
.row .t { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .t small { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.row.is-done .t { color: var(--muted); }

.pill { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--mono); padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.running { color: var(--run); background: var(--run-soft); }
.pill.review { color: var(--review); background: var(--review-soft); }
.pill.queued { color: var(--queued); background: var(--queued-soft); }
.pill.blocked { color: var(--blocked); background: var(--blocked-soft); }
.pill.done { color: var(--done); background: var(--done-soft); }
.pill.agent { color: var(--accent-ink); background: var(--accent-soft); }
.pill.agent::before { display: none; }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: 104px 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--surface); }
.section-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; margin-bottom: 52px; }
.section-head .eyebrow { padding-top: 12px; }
.section-head p { margin: 16px 0 0; }

/* architecture */
.arch { display: grid; grid-template-columns: minmax(0, 0.9fr) 64px minmax(0, 1.2fr) 64px minmax(0, 1.2fr) 64px minmax(0, 0.9fr); align-items: stretch; }
.lane { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lane-head { display: flex; flex-direction: column; gap: 4px; padding: 6px 6px 8px; }
.lane-head b { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.lane-head span { font: 500 11.5px/1.3 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.node { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; min-width: 0; }
.node h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.node p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.node.is-key { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); }
.link svg { width: 34px; height: auto; color: var(--line-2); }
.link small { font: 500 10.5px/1.35 var(--mono); text-align: center; letter-spacing: 0.03em; text-transform: uppercase; }
.link small span { display: block; }
.arch-note { margin: 28px 0 0; font-size: 15.5px; color: var(--ink-2); display: flex; gap: 10px; align-items: baseline; }
.arch-note::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--run); transform: translateY(-1px); }

/* flow */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 0; counter-reset: step; }
.step { position: relative; padding: 0 32px 0 0; min-width: 0; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-2); font: 500 15px/1 var(--mono); color: var(--ink);
  position: relative; z-index: 1;
}
.step::after { content: ""; position: absolute; top: 20px; left: 40px; right: 0; height: 1px; background: var(--line-2); }
.step:nth-child(3n)::after { display: none; }
.step h3 { font-size: 18.5px; font-weight: 600; letter-spacing: -0.015em; margin: 20px 0 8px; }
.step p { margin: 0 0 14px; color: var(--ink-2); font-size: 16px; }
.artifact { display: inline-block; max-width: 100%; font: 500 12.5px/1.45 var(--mono); color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; overflow-wrap: anywhere; }

/* design */
.design-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panels { display: grid; gap: 16px; min-width: 0; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 24px; min-width: 0; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.ticks b { color: var(--ink); font-weight: 600; }
.tree { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px 26px; font: 13.5px/1.9 var(--mono); color: var(--ink-2); white-space: pre; overflow-x: auto; min-width: 0; }
.tree .c { color: var(--muted); }
.tree .d { color: var(--ink); font-weight: 600; }

/* ledger */
.ledger-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.labels { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 32px; }
.labels td { padding: 10px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.labels tr:last-child td { border-bottom: 1px solid var(--line); }
.labels td:first-child { width: 150px; }
.labels td:last-child { color: var(--ink-2); }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.why-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--ink-2); }
.why-list svg { width: 20px; height: 20px; margin-top: 4px; color: var(--accent); }
.why-list strong { color: var(--ink); font-weight: 600; }

.issue { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.issue-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.issue-head .meta { font: 500 12.5px/1 var(--mono); color: var(--muted); margin-bottom: 10px; }
.issue-head h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.issue-head h3 span { color: var(--muted); font-weight: 400; }
.issue-head .pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.issue-body { padding: 20px 24px; font-size: 15px; display: grid; gap: 14px; }
.issue-body h4 { margin: 0 0 4px; font: 600 12px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.issue-body p { margin: 0; color: var(--ink-2); }
.issue-body .kv { font-family: var(--mono); font-size: 13px; color: var(--ink-2); line-height: 1.7; overflow-wrap: anywhere; }
.timeline { border-top: 1px solid var(--line); padding: 8px 24px 20px; background: #fbfaf6; }
.event { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding-top: 14px; font-size: 14.5px; }
.event .av { width: 30px; height: 30px; }
.event .av.worker { background: #2a2a2a; }
.event .av.front { background: var(--accent); }
.event .who { font: 500 12.5px/1.4 var(--mono); color: var(--muted); }
.event p { margin: 3px 0 0; color: var(--ink); }
.event b { font-weight: 600; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 36px; }
.feature { border-top: 1px solid var(--line-2); padding-top: 18px; }
.feature h3 { font-size: 17.5px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.feature p { margin: 8px 0 0; font-size: 15.5px; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 60px; }
.facts > div { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.facts p { margin: 0; font-size: 15.5px; color: var(--ink-2); }

/* principles */
.rules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.rules li { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rules .n { font: 700 30px/1 var(--sans); letter-spacing: -0.04em; color: var(--accent); }
.rules h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.rules p { margin: 0; color: var(--ink-2); }

/* models */
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.model { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px; min-width: 0; }
.model h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.model p { margin: 10px 0 0; font-size: 15.5px; color: var(--ink-2); }

/* run */
.run-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.run-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.run-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 18px; }
.run-card > p { margin: 0 0 16px; color: var(--ink-2); font-size: 15.5px; }
.run-card .actions { margin-top: auto; padding-top: 26px; }
.restart { counter-reset: r; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.restart li { display: grid; grid-template-columns: 32px 1fr; gap: 8px; color: var(--ink-2); font-size: 15.5px; }
.restart li::before { counter-increment: r; content: counter(r); font: 500 13px/1 var(--mono); color: var(--accent); background: var(--accent-soft); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }

/* shortcuts */
.shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shortcut { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px; min-width: 0; }
.shortcut h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.shortcut .sum { margin: 8px 0 14px; color: var(--ink); font-weight: 500; font-size: 15.5px; }
.shortcut p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* faq */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; font-size: 18.5px; font-weight: 600; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--sans); color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--ink-2); max-width: 46em; }

/* cta */
.cta { padding: 112px 0; border-top: 1px solid var(--line); text-align: center; }
.cta .h2 { font-size: clamp(36px, 5vw, 60px); }
.cta p { margin: 18px auto 32px; max-width: 32em; }
.cta .actions { justify-content: center; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- code ---------- */
.code { position: relative; background: #fbfaf6; border: 1px solid var(--line); border-radius: 12px; }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.65; color: var(--ink); }
.code pre .c { color: var(--muted); }
.code .copy {
  position: absolute; top: 8px; right: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font: 500 11.5px/1 var(--mono); padding: 6px 8px; border-radius: 7px; cursor: pointer; opacity: 0; transition: opacity .15s ease;
}
.code:hover .copy, .code .copy:focus-visible { opacity: 1; }
.code .copy.ok { color: var(--run); }

/* ---------- spec page ---------- */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding: 64px 0 120px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14.5px; min-width: 0; }
.toc .eyebrow { margin-bottom: 16px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line-2); }
.toc ol a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--ink-2); text-decoration: none; }
.toc ol a:hover, .toc ol a.is-active { color: var(--ink); border-left-color: var(--accent); }
.toc .dl { display: grid; gap: 10px; margin-top: 28px; }
.toc .dl .btn { justify-content: center; }
.prose { max-width: 780px; min-width: 0; }
.prose > h1 { font: 700 clamp(42px, 5vw, 60px)/1.04 var(--sans); letter-spacing: -0.04em; margin-bottom: 12px; }
.prose h2 { font: 700 30px/1.15 var(--sans); letter-spacing: -0.03em; margin: 60px 0 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.prose h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 18px 0; display: block; overflow-x: auto; }
.prose th { text-align: left; font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-2); }
.prose td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.prose pre { margin: 18px 0; }
.prose .version { font: 500 13px/1 var(--mono); color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* ---------- motion ---------- */
.hero .mock { animation: rise .8s cubic-bezier(.2,.7,.2,1) .1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero .mock { animation: none; }
  .mock-bar .live::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .section-head { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .section-head .eyebrow { padding-top: 0; }
  .arch { grid-template-columns: minmax(0, 1fr); }
  .lane { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lane-head { grid-column: 1 / -1; }
  .lane > .node:nth-child(even):last-child { grid-column: 1 / -1; }
  .link { flex-direction: row; padding: 10px 0; }
  .link svg { transform: rotate(90deg); width: 28px; }
  .link small span { display: inline; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::after { display: none; }
  .design-grid { grid-template-columns: minmax(0, 1fr); }
  .ledger-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts, .models, .shortcuts { grid-template-columns: minmax(0, 1fr); }
  .rules li { grid-template-columns: 56px minmax(0, 1fr); gap: 8px 20px; }
  .rules li p { grid-column: 2; }
  .run-grid { grid-template-columns: minmax(0, 1fr); }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 40px; }
  .toc > .eyebrow { display: none; }
  .toc { position: static; }
  .toc ol { display: none; }
  .toc .dl { grid-template-columns: 1fr 1fr; margin-top: 0; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .nav a:not(.btn) { display: none; }
  .hero { padding: 40px 0 72px; }
  .section { padding: 76px 0; }
  .lane { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .step { padding-right: 0; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .tree { font-size: 11.5px; padding: 18px 16px; }
  .rules li { grid-template-columns: 44px minmax(0, 1fr); }
  .rules .n { font-size: 24px; }
  .row { grid-template-columns: 40px 1fr auto; padding: 10px 14px; }
  .mail-msg { padding: 12px 14px; }
  .mail-msg p { margin-left: 0; }
  .run-card { padding: 22px; }
  .cta { padding: 84px 0; }
  .toc .dl { grid-template-columns: 1fr; }
  .prose td, .prose th { min-width: 8.5em; }
}
