/* Zovereign — field-manual landing page. Buildless; no dependencies. */

:root {
  --paper: #f2ecdf;
  --paper-2: #e8dfcb;
  --paper-3: #ddd2b9;
  --ink: #17150f;
  --ink-2: #2b2820;
  --ink-3: #3b372d;
  --muted: #5a5446;
  --rule: #c9bda2;
  --gold: #f4b728;
  --gold-2: #f8cd5e;
  --gold-d: #c98f0a;
  --gold-text: #8a5f00;
  --green: #1d4a39;
  --green-2: #2c6650;
  --green-3: #153629;
  --green-l: #cfe0d4;
  --ivory-dim: #d9d1bf;

  --f-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
  --f-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec-y: clamp(72px, 10vw, 136px);
  --radius: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-sans);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
/* paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 0 0.15 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold-d); }
code { font-variant-ligatures: none; font: 500 .88em/1.4 var(--f-mono); background: rgba(23,21,15,.07); padding: .1em .35em; border-radius: 4px; overflow-wrap: anywhere; }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid var(--gold-d); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.display {
  font-family: var(--f-display); font-weight: 700; font-optical-sizing: auto;
  font-size: clamp(2.7rem, 6.4vw, 5.4rem); line-height: .96; letter-spacing: -.025em; margin: 0 0 .35em;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}
.display em { font-style: italic; font-weight: 500; color: var(--green); }
.display.sm { font-size: clamp(2.2rem, 5.4vw, 4.4rem); }
.h2 {
  font-family: var(--f-display); font-weight: 650; font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.02; letter-spacing: -.02em; margin: 0 0 .4em; max-width: 18ch; text-wrap: balance;
}
.lede { font-size: clamp(1.06rem, 1.5vw, 1.25rem); line-height: 1.55; max-width: 38em; color: var(--ink-2); margin: 0 0 1.6em; }
.kicker {
  font: 600 .74rem/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
}
.kicker { display: inline-flex; align-items: center; gap: .6em; margin: 0 0 1.6em; color: var(--green); }
.kicker .dot { width: .6em; height: .6em; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(244,183,40,.25); }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); display: grid; gap: 0 48px; grid-template-columns: 1fr; }
.sec-intro { font-size: 1.08rem; color: var(--muted); max-width: 36em; margin: 0 0 1em; }
@media (min-width: 960px) {
  .sec-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .sec-head .sec-intro { margin-bottom: .6em; }
}

/* ---------- buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px;
  padding: .75em 1.35em; border-radius: 999px; border: 1.5px solid var(--bd); background: var(--bg); color: var(--fg);
  font: 600 1rem/1 var(--f-sans); text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--ink); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-gold { --bg: var(--gold); --bd: var(--ink); }
.btn-ink { --bg: var(--ink); --fg: var(--paper); }
.btn-ghost:hover { --bg: rgba(23,21,15,.05); }
.btn-ghost.on-dark { --fg: var(--paper); --bd: var(--paper); }
.btn-ghost.on-dark:hover { box-shadow: 0 4px 0 var(--gold); --bg: rgba(242,236,223,.06); }
.btn-sm { min-height: 40px; padding: .55em 1em; font-size: .92rem; }
.btn svg { width: 1.05em; height: 1.05em; }

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .masthead { background: rgba(242,236,223,.94); } }
.masthead.scrolled { border-bottom-color: var(--rule); }
.masthead-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; }
.bm-t { fill: var(--gold); } .bm-l { fill: var(--green); } .bm-r { fill: var(--ink); }
.brand-mark polygon { stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.bm-s { stroke: var(--gold); stroke-width: 1.6; }
.brand-word { font: 700 1.38rem/1 var(--f-display); letter-spacing: -.01em; margin: 0; }
@media (max-width: 520px) { .masthead-row { gap: 12px; } }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); position: relative; }
.hero::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 0 auto; border-bottom: 1.5px solid var(--ink); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 4vw, 48px); align-items: center; }
@media (min-width: 1040px) { .hero-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.2fr); } }
.platform-note { margin: 0 0 1.5em; max-width: 38em; font-size: .95rem; line-height: 1.5; color: var(--green); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2.2em; }
.hero-actions.center { justify-content: center; }
.spec-plate { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; max-width: 520px; background: var(--paper); }
@media (min-width: 620px) { .spec-plate { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.spec-plate div { padding: 10px 14px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.spec-plate dt { font: 600 .66rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.spec-plate dd { margin: 4px 0 0; font: 600 .9rem/1.25 var(--f-sans); }
.hero-fig { margin: 0; }
.stack-illustration { width: 100%; max-width: 600px; height: auto; display: block; margin: 0 auto; }

/* One box, two services, direct wallet connections. */
.stack-box { fill: var(--paper-2); stroke: var(--ink); stroke-width: 2.5; }
.stack-brand { font: 600 22px var(--f-mono); letter-spacing: .16em; fill: var(--ink); }
.stack-rule { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
.stack-node { fill: var(--green); stroke: var(--ink); stroke-width: 2; }
.stack-ztreamer { fill: var(--gold); stroke: var(--ink); stroke-width: 2; }
.stack-service { font: 600 29px var(--f-sans); fill: var(--ink); }
.stack-service-light { fill: var(--paper); }
.stack-detail { font: 400 21px var(--f-sans); fill: var(--paper); }
.stack-link { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.stack-wallet-link { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.stack-port { fill: var(--gold); stroke: var(--ink); stroke-width: 2; }
.stack-device { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.stack-screen { fill: var(--gold-2); }
.stack-laptop-base { fill: var(--ink); }
.stack-wallet-mark { font: 600 18px var(--f-mono); fill: var(--ink); }
.stack-wallet-label { font: 500 25px var(--f-sans); fill: var(--green); }

/* ---------- inside (dark) ---------- */
.inside { padding: var(--sec-y) 0; background: var(--green-3); color: var(--paper); position: relative; }
.on-dark .sec-intro { color: var(--ivory-dim); }
.inside .h2 { color: var(--paper); }
.inside-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.blueprint { margin: 0; border: 1.5px solid rgba(242,236,223,.35); border-radius: var(--radius); padding: clamp(8px, 1.5vw, 18px); background: var(--green); }
.blueprint svg { display: block; width: 100%; height: auto; }
.bp-grid { fill: none; stroke: rgba(242,236,223,.07); stroke-width: 1; }
.bp-hull { fill: rgba(21,54,41,.55); stroke: var(--paper); stroke-width: 1.6; stroke-dasharray: 10 7; }
.bp-cap { font: 600 11px/1 var(--f-mono); letter-spacing: .12em; fill: var(--gold); }
.bp-box { fill: rgba(242,236,223,.04); stroke: var(--paper); stroke-width: 1.6; }
.bp-box.vol { fill: rgba(44,102,80,.45); }
.bp-t { font: 650 19px/1 var(--f-display); fill: var(--paper); }
.bp-t.sm { font: 600 14px/1 var(--f-mono); fill: var(--gold); }
.bp-s { font: 500 13px/1 var(--f-mono); fill: var(--ivory-dim); }
.bp-num { fill: var(--gold); stroke: var(--green-3); stroke-width: 3; }
.bp-numt { font: 700 14px/1 var(--f-mono); fill: var(--ink); text-anchor: middle; }
.bp-line { fill: none; stroke: var(--paper); stroke-width: 1.6; }
.bp-dash { fill: none; stroke: var(--paper); stroke-width: 1.4; stroke-dasharray: 4 5; opacity: .7; }
.bp-dash.wide { stroke-dasharray: 8 6; }
.bp-arrow { fill: var(--paper); }
.bp-pipe { stroke: var(--paper); stroke-width: 12; stroke-linecap: round; }
.bp-pipe-flow { stroke: var(--gold); stroke-width: 4; stroke-dasharray: 3 8; stroke-linecap: round; }
.bp-chain rect { fill: none; stroke: var(--paper); stroke-width: 1.5; }
.bp-chain rect.hot, .bp-cards rect.hot { fill: var(--gold); stroke: var(--gold); }
.bp-chain path { stroke: var(--paper); stroke-width: 1.5; }
.bp-cards rect { fill: rgba(244,183,40,.12); stroke: var(--gold); stroke-width: 1.2; }
.bp-port { fill: var(--green-2); stroke: var(--paper); stroke-width: 1.5; }
.bp-port.gold { fill: var(--gold); }
.bp-peers circle { fill: var(--green-3); stroke: var(--paper); stroke-width: 1.5; }
.bp-peers .hub { fill: var(--paper); }
.bp-peers path { fill: none; stroke: var(--paper); stroke-width: 1.2; opacity: .6; }
.bp-wallet rect { fill: var(--green-3); stroke: var(--paper); stroke-width: 1.6; }
.bp-wallet .scr { fill: var(--gold); stroke: none; opacity: .9; }
.bp-wallet.far rect { stroke-dasharray: 5 4; }
.bp-part { transition: opacity .25s ease; }
.blueprint.tracing .bp-part { opacity: .22; }
.blueprint.tracing .bp-part.active { opacity: 1; }
.bp-part.active .bp-box { stroke: var(--gold); stroke-width: 2.4; }

.legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
.legend li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 16px 10px 16px 6px; border-top: 1px solid rgba(242,236,223,.22); border-radius: 8px; cursor: default; transition: background-color .2s ease; }
@media (min-width: 700px) { .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
@media (min-width: 1100px) { .legend { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.legend li:hover, .legend li.active { background: rgba(242,236,223,.07); }
.legend li:focus-visible { outline-color: var(--gold); }
.lg-n { width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font: 700 .8rem/1 var(--f-mono); margin-top: 2px; }
.legend h3 { font: 650 1.12rem/1.25 var(--f-display); margin: 0 0 4px; }
.legend p { margin: 0; font-size: .95rem; color: var(--ivory-dim); }
.legend code, .install code, .closer code { background: rgba(242,236,223,.1); color: var(--paper); }

/* ---------- evidence ---------- */
.evidence { padding: var(--sec-y) 0; background: var(--paper-2); border-top: 1.5px solid var(--ink); }
.performance-card { padding: clamp(20px, 4vw, 40px); background: #fbf8f0; border: 1px solid var(--rule); border-radius: 12px; }
.performance-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin: 0; }
@media (min-width: 760px) { .performance-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.performance-grid dt { font-size: .9rem; color: var(--muted); }
.performance-grid dd { margin: 8px 0 0; font: 650 clamp(1.7rem, 3.5vw, 2.5rem)/1.2 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.timeline { margin: 32px 0 8px; }
.tl-title { margin: 0 0 12px; font-weight: 550; }
.tl-bar { display: flex; height: 46px; border: 1.5px solid var(--ink); border-radius: 8px; overflow: hidden; background: var(--paper); }
.tl-seg { flex: 0 0 var(--w); display: flex; align-items: center; overflow: hidden; }
.tl-seg.dl { background: var(--green); }
.tl-seg.rest { flex-shrink: 1; background: repeating-linear-gradient(135deg, var(--paper-3) 0 6px, var(--paper) 6px 12px); border-left: 1.5px solid var(--ink); }
.tl-seg.tip { background: var(--gold); border-left: 1.5px solid var(--ink); min-width: 6px; }
.js .tl-seg.dl { flex-basis: 0; transition: flex-basis 1.4s cubic-bezier(.5,.1,.2,1); }
.js .timeline.in .tl-seg.dl { flex-basis: var(--w); }
.tl-key { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .9rem; color: var(--ink-2); }
.tl-key li { display: flex; align-items: center; gap: 8px; }
.k { width: 14px; height: 14px; border: 1.5px solid var(--ink); border-radius: 3px; display: inline-block; flex: none; }
.k.dl { background: var(--green); } .k.rest { background: repeating-linear-gradient(135deg, var(--paper-3) 0 3px, var(--paper) 3px 6px); } .k.tip { background: var(--gold); }
.fine { font-size: .88rem; color: var(--muted); max-width: 52em; margin: 16px 0 0; }
/* ---------- requirements ---------- */
.reqs { padding: var(--sec-y) 0; }
.reqs-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
@media (min-width: 980px) { .reqs-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; } }
.plate { background: linear-gradient(160deg, #d9cfb6, #c8bb9b); border: 1.5px solid var(--ink); border-radius: 16px; padding: 22px; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 2px 0 var(--ink); }
.plate-head { display: flex; justify-content: space-between; align-items: center; font: 600 .74rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.rivets { display: flex; gap: 8px; }
.rivets i { width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f3ecd9, #8e8166); border: 1px solid var(--ink); }
.plate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; background: var(--ink); gap: 1.5px; border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; }
.plate-grid div { background: var(--paper); padding: 16px 18px; }
.plate-grid dt { font: 600 .7rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plate-grid dd { margin: 8px 0 0; font: 700 clamp(1.5rem, 3vw, 2.1rem)/1 var(--f-display); }
.compat { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.compat li { position: relative; padding: 10px 12px 10px 40px; background: rgba(251,248,240,.75); border-radius: 8px; font-size: .95rem; }
.compat li::before { position: absolute; left: 12px; top: 10px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: 700 11px/18px var(--f-mono); text-align: center; color: var(--paper); }
.compat .ok::before { content: "✓"; background: var(--green); }
.compat-note { margin: 16px 0 0; font-size: .88rem; color: var(--ink-2); }

/* ---------- install (dark) ---------- */
.install { padding: var(--sec-y) 0; background: var(--ink); color: var(--paper); border-top: 1.5px solid var(--ink); }
.install .h2 { color: var(--paper); }
.tablist { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: -1.5px; position: relative; z-index: 1; }
.tablist[hidden] { display: none; }
.tablist button { font: 600 .95rem/1 var(--f-sans); color: var(--ivory-dim); background: transparent; border: 1.5px solid rgba(242,236,223,.25); border-bottom-color: transparent; padding: 14px 18px; border-radius: 10px 10px 0 0; cursor: pointer; min-height: 48px; }
.tablist button[aria-selected="true"] { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.tablist button:hover:not([aria-selected="true"]) { color: var(--paper); border-color: rgba(242,236,223,.5); }
@media (max-width: 480px) { .tablist button { padding: 12px 13px; font-size: .9rem; } }
.panel { margin-bottom: 28px; }
.panel-h { font: 650 1.35rem/1.2 var(--f-display); margin: 0 0 14px; }
.panel-h span { font: 500 .95rem var(--f-sans); color: var(--ivory-dim); }
.js .tabs.ready .panel-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.js .tabs.ready .panel[hidden] { display: none; }
.code { border: 1.5px solid rgba(242,236,223,.25); border-radius: 0 12px 12px 12px; background: #0e0d09; overflow: hidden; }
.code.sm { border-radius: 12px; }
.code-bar { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid rgba(242,236,223,.12); min-height: 52px; }
.code-dots { display: flex; gap: 6px; } .code-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(242,236,223,.2); }
.code-dots i:first-child { background: var(--gold); }
.code-name { font: 600 .72rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-dim); margin-right: auto; }
.code pre { margin: 0; padding: 20px; overflow-x: auto; font: 500 clamp(.78rem, 1.4vw, .95rem)/1.75 var(--f-mono); color: #f4ecd8; tab-size: 2; }
.code pre code { background: none; padding: 0; font: inherit; color: inherit; overflow-wrap: normal; white-space: pre; font-variant-ligatures: none; }
.code.sm pre code { white-space: pre-wrap; overflow-wrap: anywhere; }
.copy { font: 600 .85rem/1 var(--f-sans); color: var(--ink); background: var(--paper); border: 0; border-radius: 8px; padding: 0 16px; min-height: 36px; min-width: 84px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background-color .2s ease; }
.copy[hidden] { display: none; }
.copy:hover { background: var(--gold); }
.copy:focus-visible { outline-color: var(--gold); }
.copy.done { background: var(--green-l); }
.flag-notes { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; color: var(--ivory-dim); font-size: .95rem; }
.flag-notes li { padding-left: 22px; position: relative; }
.flag-notes li::before { content: "→"; position: absolute; left: 0; color: var(--gold); }
.after { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin: 52px 0 0; padding: 40px 0 0; border-top: 1px solid rgba(242,236,223,.2); }
.after-step { min-width: 0; position: relative; padding: 22px; border: 1.5px solid rgba(242,236,223,.25); border-radius: 12px; }
.after-step h3 { font: 650 1.2rem/1.3 var(--f-sans); color: var(--gold); margin: 0 0 12px; }
.after-note { color: var(--ivory-dim); font-size: .92rem; margin: 0 0 16px; }
.after-step > :last-child { margin-bottom: 0; }
.after-step .code { border: 0; border-radius: 8px; }
.after-step .code-bar { border: 0; padding: 8px 10px; min-height: 44px; }
.after-step .copy { min-width: 64px; padding: 0 12px; }
.after-step .code pre { padding: 8px 12px 16px; font-size: .8rem; line-height: 1.65; }
.after-arrow { position: absolute; top: 100%; left: calc(50% - 20px); display: grid; place-items: center; width: 40px; height: 40px; color: var(--gold); font: 400 1.6rem/1 var(--f-sans); transform: rotate(90deg); }
@media (min-width: 980px) {
  .after { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .after-arrow { top: calc(50% - 20px); left: 100%; transform: none; }
}
.after-note a, .keep a, .install a:not(.btn) { color: var(--paper); text-decoration-color: var(--gold); }
.endpoint { margin: 0 0 16px; }
.endpoint code { display: inline-block; font: 700 clamp(1.05rem, 1.8vw, 1.35rem)/1.4 var(--f-mono); color: var(--gold); background: none; padding: 0; letter-spacing: -.02em; }
.keep { margin: 44px 0 0; padding: 18px 22px; border: 1.5px dashed rgba(244,183,40,.6); border-radius: 12px; color: var(--ivory-dim); }
.keep strong { color: var(--gold); }
.docs-cta { margin: 32px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; color: var(--ivory-dim); }

/* ---------- faq ---------- */
.faq { padding: var(--sec-y) 0; background: var(--paper-2); border-top: 1.5px solid var(--ink); }
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 64px; } }
.faq-list { border-top: 1.5px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font: 600 clamp(1.08rem, 1.8vw, 1.3rem)/1.3 var(--f-display); border-radius: 6px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border: 1.5px solid var(--ink); border-radius: 50%;
  background: linear-gradient(var(--ink), var(--ink)) center/12px 1.8px no-repeat, linear-gradient(var(--ink), var(--ink)) center/1.8px 12px no-repeat; transition: transform .25s ease, background-color .2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: var(--gold); }
.faq-list summary:hover { color: var(--green); }
.faq-list details p { margin: 0 0 24px; color: var(--ink-2); max-width: 44em; }

/* ---------- closer ---------- */
.closer { padding: var(--sec-y) 0; background: var(--green); color: var(--paper); text-align: center; border-top: 1.5px solid var(--ink); overflow: hidden; }
.closer-inner { display: flex; flex-direction: column; align-items: center; }
.closer .display { color: var(--paper); max-width: 16ch; text-wrap: balance; }
.closer .lede { color: var(--ivory-dim); margin-left: auto; margin-right: auto; }
.closer-art { width: 120px; height: 120px; margin-bottom: 28px; }
.closer-art polygon { stroke: var(--paper); stroke-width: 2; stroke-linejoin: round; }
.ca-t { fill: var(--gold); } .ca-l { fill: var(--green-3); } .ca-r { fill: var(--ink); }
.ca-band { fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-dasharray: 5 6; }
.ca-band.g { stroke: var(--green-l); opacity: .5; }
.ca-port { fill: var(--gold); stroke: var(--paper); stroke-width: 2; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--ivory-dim); padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; } }
.foot-brand .brand-word { color: var(--paper); margin-bottom: 12px; }
.foot-brand p { max-width: 34em; }
.foot-h { font: 600 .74rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--paper); text-decoration-color: rgba(242,236,223,.3); }
.footer a:hover { text-decoration-color: var(--gold); }
.foot-mono { font: 500 .88rem/1.4 var(--f-mono); color: var(--paper); overflow-wrap: anywhere; margin: 0 0 8px; }
.foot-small { font-size: .86rem; margin: 0; }
.footer code { background: rgba(242,236,223,.1); color: var(--paper); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 48px; padding-top: 22px; font-size: .85rem; background: linear-gradient(rgba(242,236,223,.15), rgba(242,236,223,.15)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.foot-base p { margin: 0; max-width: 46em; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--gold); color: var(--ink); border: 1.5px solid var(--ink); padding: 10px 18px; border-radius: 999px; font: 600 .92rem/1 var(--f-sans); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 120; box-shadow: 4px 4px 0 var(--ink); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .bp-pipe-flow { animation: flow 1.1s linear infinite; }
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@keyframes flow { to { stroke-dashoffset: -24; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .tl-seg.dl { flex-basis: var(--w); }
}

@media print {
  body::before, .masthead, .toast { display: none; }
}
