/* Pacta site v3 — institutional editorial + data-terminal design system.
   Structure comes from 1px hairlines and typography, not floating cards. Radii are 2–4px; dots are the only circles.
   Paper (light) is the default; Slate is the dark theme ([data-theme="slate"]). No web fonts, no third-party requests. */

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --sunken: #f0f0ed;
  --line: #e1e1dc;
  --line-2: #cdcdc6;
  --ink: #14161a;
  --ink-2: #353a42;
  --muted: #5f6570;
  --faint: #8a8f98;
  --accent: #1d4ed8;
  --accent-ink: #1e3a8a;
  --accent-weak: #e9eefb;
  --amber: #8f5400;
  --amber-bg: #fcf2df;
  --amber-line: #ecd3a3;
  --green: #0b6b44;
  --green-bg: #e6f4ec;
  --green-line: #b9dfca;
  --gray: #4a505c;
  --gray-bg: #efefeb;
  --gray-line: #d8d8d1;
  --term-bg: #0f1114;
  --term-ink: #e3e6ea;
  --term-mute: #8a919c;
  --term-line: #24272d;
  --term-acc: #9fb6f5;
  --topbar-bg: rgba(247, 247, 245, 0.92);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", "IBM Plex Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --r: 3px;
  --wrap: 1200px;
  color-scheme: light;
}

[data-theme="slate"] {
  --bg: #0a0b0d;
  --surface: #101216;
  --sunken: #0d0f12;
  --line: #22252b;
  --line-2: #30343b;
  --ink: #e8eaed;
  --ink-2: #c4c8cf;
  --muted: #959ba6;
  --faint: #6c727c;
  --accent: #a3b8ec;
  --accent-ink: #c9d6f5;
  --accent-weak: #161c2b;
  --amber: #e3a540;
  --amber-bg: #221a0c;
  --amber-line: #4a3713;
  --green: #5cc394;
  --green-bg: #0e1f17;
  --green-line: #1c3f2e;
  --gray: #adb3bd;
  --gray-bg: #181a1f;
  --gray-line: #2c3037;
  --term-bg: #07080a;
  --term-line: #1e2126;
  --topbar-bg: rgba(10, 11, 13, 0.9);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 68px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 var(--sans); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; text-underline-offset: 2px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-weak); }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -0.012em; }
p { margin: 0; }
code, kbd, .mono { font-family: var(--mono); font-size: 0.86em; font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 10px; z-index: 50; background: var(--surface); padding: 6px 10px; border: 1px solid var(--line-2); }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink);
  font-size: 13.5px; font-weight: 550; line-height: 1; white-space: nowrap; cursor: pointer;
}
.btn:hover { text-decoration: none; border-color: var(--ink-2); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn .arr { font-family: var(--mono); font-size: 12px; opacity: 0.7; }
.btn.done { border-color: var(--green-line); color: var(--green); }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-size: inherit; }
.linkish:hover { text-decoration: underline; }
.copy {
  display: inline-flex; align-items: center; height: 22px; padding: 0 7px; margin-left: 6px;
  border: 1px solid var(--line-2); border-radius: 2px; background: transparent; color: var(--muted);
  font: 500 11px/1 var(--sans); letter-spacing: 0.02em; cursor: pointer; vertical-align: 1px;
}
.copy:hover { color: var(--ink); border-color: var(--ink-2); }
.copy.done { color: var(--green); border-color: var(--green-line); }
input[type="search"], input[type="text"], input[type="email"], input[type="url"], textarea, select {
  width: 100%; height: 36px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--surface); color: var(--ink); font: 14px var(--sans);
}
textarea { height: auto; min-height: 84px; padding: 9px 11px; line-height: 1.45; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }

/* status badge: hairline box + dot. Never a pill. */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px;
  border: 1px solid var(--gray-line); border-radius: 2px; background: var(--gray-bg); color: var(--gray);
  font: 550 11.5px/1 var(--sans); letter-spacing: 0.01em; white-space: nowrap; vertical-align: middle;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.9; }
.badge.delta { color: var(--amber); background: var(--amber-bg); border-color: var(--amber-line); }
.badge.protect, .badge.ok, .badge.final { color: var(--green); background: var(--green-bg); border-color: var(--green-line); }
.badge.plain::before { display: none; }
.badge.observed { border-style: dashed; background: transparent; }  /* RPC-observed baseline: neutral, no doc-comparison claim */
pre.llms { white-space: pre-wrap; word-break: break-word; font: 12.5px/1.55 var(--mono); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gray); flex: none; }
.dot.delta { background: var(--amber); }
.dot.protect { background: var(--green); }
.dot.live { background: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; height: 52px; border-bottom: 1px solid var(--line);
  background: var(--topbar-bg); -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
}
.topbar .wrap { display: flex; align-items: center; height: 100%; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 650; font-size: 15px; letter-spacing: 0.06em; }
.brand:hover { text-decoration: none; }
.brand img { display: block; border-radius: 2px; }
.brand small { font-weight: 450; letter-spacing: 0; color: var(--muted); font-size: 12.5px; padding-left: 9px; border-left: 1px solid var(--line-2); }
.nav { display: flex; gap: 2px; margin-right: auto; }
.nav a { padding: 6px 9px; color: var(--ink-2); font-size: 13.5px; border-radius: 2px; }
.nav a:hover { color: var(--ink); background: var(--sunken); text-decoration: none; }
.tools { display: flex; align-items: center; gap: 10px; }
.tt { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--surface); padding: 0; cursor: pointer; height: 28px; }
.tt span { display: inline-flex; align-items: center; padding: 0 9px; font-size: 12px; color: var(--muted); }
.tt span.on { background: var(--ink); color: var(--bg); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 0; }
.eyebrow { font: 600 11.5px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hero h1 { max-width: 860px; margin: 18px 0 18px; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.14; letter-spacing: -0.022em; font-weight: 620; }
.lede { max-width: 700px; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.livebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.livebar b { color: var(--ink); font-weight: 600; }
.livebar .countdown { font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.ledger {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 52px;
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line);
}
.ledger > div { padding: 20px 24px 22px; border-left: 1px solid var(--line); min-width: 0; }
.ledger > div:first-child { border-left: 0; padding-left: 0; }
.ledger b { display: block; font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ledger span { display: block; margin-top: 6px; font-size: 13px; font-weight: 550; color: var(--ink-2); }
.ledger small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* ---------- sections ---------- */
.sec { padding: 72px 0 0; }
.sec:last-of-type { padding-bottom: 88px; }
.sec-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: baseline; gap: 0 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); margin-bottom: 0; }
.sec-head .n { font: 500 12px/1 var(--mono); color: var(--faint); }
.sec-head h2 { font-size: 22px; line-height: 1.25; }
.sec-head .aside { font-size: 13px; color: var(--muted); text-align: right; }
.sec-intro { max-width: 76ch; margin: 16px 0 0 48px; color: var(--muted); font-size: 14px; }

/* ---------- generic hairline table ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tbl th {
  text-align: left; font: 600 11px/1.2 var(--sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted);
  padding: 12px 14px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: transparent;
}
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl .r { text-align: right; }
.tbl .nowrap { white-space: nowrap; }
.sub { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.addr { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }

/* ---------- inspector workbench ---------- */
.bench { display: grid; grid-template-columns: 320px minmax(0, 1fr); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); margin-top: 24px; min-height: 560px; }
.bench-side { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-width: 0; }
.bench-search { padding: 14px; border-bottom: 1px solid var(--line); }
.bench-filter { display: flex; gap: 4px; margin-top: 10px; }
.bench-filter button { flex: 1; height: 26px; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.bench-filter button[aria-pressed="true"] { background: var(--sunken); color: var(--ink); border-color: var(--line-2); }
.bench-list { list-style: none; margin: 0; padding: 4px 0; overflow-y: auto; max-height: 640px; flex: 1; }
.bench-list a {
  display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 9px 14px;
  color: var(--ink); border-left: 2px solid transparent;
}
.bench-list a:hover { background: var(--sunken); text-decoration: none; }
.bench-list a[aria-current="true"] { background: var(--accent-weak); border-left-color: var(--accent); }
.bench-list .p { font-size: 13.5px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bench-list .s { grid-column: 2 / 4; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bench-list .sp { font: 500 11px/1 var(--mono); color: var(--faint); }
.bench-count { padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.sheet { padding: 26px 30px 30px; min-width: 0; }
.sheet-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sheet-h h3 { font-size: 20px; line-height: 1.25; }
.sheet-sub { margin-top: 6px; color: var(--muted); font-size: 13.5px; }
.kv { display: grid; grid-template-columns: 172px minmax(0, 1fr); margin: 20px 0 0; border-top: 1px solid var(--line); }
.kv dt, .kv dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; min-width: 0; }
.kv dt { color: var(--muted); padding-right: 16px; }
.kv dd { color: var(--ink); }
.kv dd .addr { color: var(--ink); }
.cmp { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { display: inline-flex; align-items: baseline; gap: 6px; height: 24px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 2px; font-size: 12.5px; white-space: nowrap; align-items: center; }
.chip i { font-style: normal; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.chip b { font: 600 12.5px var(--mono); }
.chip.obs { border-color: var(--ink-2); }
.chip.warn { border-color: var(--amber-line); background: var(--amber-bg); }
.chip.warn b { color: var(--amber); }
.vs { font-size: 11.5px; color: var(--faint); }
.obs-text { margin-top: 18px; max-width: 80ch; color: var(--ink-2); font-size: 14px; line-height: 1.62; overflow-wrap: break-word; }
.hx { font-family: var(--mono); font-size: 0.9em; border-bottom: 1px dotted var(--line-2); cursor: help; white-space: nowrap; }
.label { font: 600 11px/1 var(--sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }

/* terminal */
.term { margin-top: 20px; border: 1px solid var(--term-line); border-radius: var(--r); background: var(--term-bg); color: var(--term-ink); overflow: hidden; }
.term-h { display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--term-line); font: 500 11.5px/1 var(--mono); color: var(--term-mute); }
.term-h .copy { color: var(--term-ink); border-color: #3a3e46; }
.term-h .copy:hover { border-color: var(--term-ink); }
.term-h .copy.done { color: #7fd6a8; border-color: #2d5a43; }
.term pre { margin: 0; padding: 14px 16px 16px; overflow-x: auto; font: 12.5px/1.65 var(--mono); white-space: pre; tab-size: 2; }
.term .c { color: var(--term-mute); }
.term .k { color: var(--term-acc); }

/* ---------- radar ---------- */
.radar td { padding-top: 15px; padding-bottom: 15px; }
.radar td:first-child { width: 120px; }
.radar .op { font-weight: 600; }
.radar .op + .sub { max-width: 70ch; }
.radar .meta { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.radar .meta .addr { font-size: 12px; }
.radar .countdown { display: block; }
.drawer-title { margin: 6px 0 12px; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.countdown { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; color: var(--ink); }
.prov { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ---------- findings ---------- */
.frows { margin-top: 0; }
.frow { display: grid; grid-template-columns: 200px minmax(0, 1fr) 248px; gap: 0 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.frow .who { font-size: 13.5px; font-weight: 600; }
.frow .who .sub { font-weight: 400; }
.frow .who .badge { margin-top: 10px; }
.frow h3 { font-size: 16.5px; line-height: 1.4; font-weight: 600; letter-spacing: -0.008em; }
.frow p { margin-top: 6px; color: var(--ink-2); font-size: 14px; max-width: 72ch; }
.frow .cmpcol { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.frow .cmpcol a { margin-top: 4px; font-size: 13px; }

/* ---------- public index ---------- */
.ix-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ix-tools input { max-width: 340px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.seg button { height: 34px; padding: 0 12px; border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.seg button .num { opacity: 0.75; margin-left: 4px; }
.ix-count { margin-left: auto; font-size: 12.5px; color: var(--muted); }
#matrix { table-layout: fixed; }
#matrix col.c-p { width: 20%; } #matrix col.c-s { width: 30%; } #matrix col.c-c { width: 15%; }
#matrix col.c-d { width: 11%; } #matrix col.c-b { width: 15%; } #matrix col.c-x { width: 9%; }
#matrix td { padding-top: 11px; padding-bottom: 11px; }
#matrix th:first-child, #matrix td:first-child { padding-left: 10px; }
#matrix th:last-child, #matrix td:last-child { padding-right: 10px; }
#matrix tbody tr.rec { cursor: pointer; }
#matrix tbody tr.rec:hover td { background: var(--sunken); }
#matrix tbody tr.rec.open td { border-bottom-color: transparent; background: var(--sunken); }
#matrix .ell { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#matrix .x { text-align: right; }
.inspect-btn { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border: 1px solid var(--line-2); border-radius: 2px; background: var(--surface); color: var(--ink-2); font-size: 12px; cursor: pointer; white-space: nowrap; }
.inspect-btn:hover { border-color: var(--ink-2); color: var(--ink); text-decoration: none; }
tr.drawer { display: none; }
tr.drawer.open, tr.drawer:target { display: table-row; }
.js tr.drawer:not(.open) { display: none; }
tr.drawer > td { padding: 4px 0 24px; background: var(--sunken); border-bottom: 1px solid var(--line-2); }
.drawer-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 32px; padding: 6px 20px 0; }
.drawer-in .obs-text { margin-top: 8px; }
.drawer-in .kv { margin-top: 8px; grid-template-columns: 128px minmax(0, 1fr); }
.drawer-in .term { margin-top: 14px; }

/* ---------- verify ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0 48px; margin-top: 24px; }
.deflist { margin: 0; }
.deflist div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.deflist div:first-child { padding-top: 0; }
.deflist dt { font-weight: 600; font-size: 14px; }
.deflist dd { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.split .term { margin-top: 0; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 24px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.plan { display: flex; flex-direction: column; padding: 24px 24px 24px; border-left: 1px solid var(--line); min-width: 0; }
.plan:first-child { border-left: 0; padding-left: 0; }
.plan .tier { font: 600 11px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.plan h3 { margin-top: 10px; font-size: 16px; line-height: 1.35; }
.plan .price { margin-top: 14px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 13px; font-weight: 450; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.plan ul { list-style: none; margin: 16px 0 20px; padding: 0; font-size: 13.5px; color: var(--ink-2); }
.plan li { padding: 6px 0 6px 16px; position: relative; border-top: 1px solid var(--line); }
.plan li::before { content: ""; position: absolute; left: 0; top: 14px; width: 7px; height: 1px; background: var(--ink-2); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan.feat { background: linear-gradient(var(--accent), var(--accent)) top / 100% 2px no-repeat; }
.plan .pending { display: inline-block; margin-left: 6px; font: 500 11px/1 var(--sans); color: var(--amber); }
.note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.plans.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.plan .addon { margin-top: 6px; font-size: 13px; color: var(--ink-2); }

/* ---------- request builder ---------- */
.req { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); margin-top: 24px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
.req-form { padding: 24px 26px 26px; border-right: 1px solid var(--line); min-width: 0; }
.req-out { padding: 24px 26px 26px; background: var(--sunken); min-width: 0; display: flex; flex-direction: column; }
fieldset { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; font: 600 11px/1 var(--sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); }
.opts label { display: flex; align-items: flex-start; gap: 9px; padding: 9px 11px; border-bottom: 1px solid var(--line); font-size: 13.5px; cursor: pointer; min-width: 0; }
.opts label:nth-child(odd) { border-right: 1px solid var(--line); }
.opts label:nth-last-child(-n + 2) { border-bottom: 0; }
.opts.scroll { max-height: 236px; overflow-y: auto; }
.opts.scroll label:nth-last-child(-n + 2) { border-bottom: 0; }
.legend-note { text-transform: none; letter-spacing: 0; font-weight: 450; color: var(--faint); }
.opts.one { grid-template-columns: 1fr; }
.opts.one label { border-right: 0; }
.opts.one label:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
.opts.one label:last-child { border-bottom: 0; }
.opts input { margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.opts .sub { margin-top: 1px; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 550; color: var(--ink-2); }
.field .hint { margin-top: 5px; font-size: 12px; color: var(--muted); }
.req-out .term { margin-top: 10px; flex: 1; display: flex; flex-direction: column; }
.req-out .term pre { white-space: pre-wrap; overflow-wrap: anywhere; flex: 1; min-height: 220px; max-height: 420px; overflow-y: auto; }
.actions { display: grid; gap: 8px; margin-top: 14px; }
.actions .btn { justify-content: space-between; width: 100%; }
.actions .why { font-size: 12px; color: var(--muted); margin: -2px 0 4px; }
.status { min-height: 18px; margin-top: 10px; font-size: 12.5px; color: var(--green); }
.addrline { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.addrline b { font-family: var(--mono); font-weight: 500; color: var(--ink); font-size: 13px; }
.warn-line { margin-top: 10px; font-size: 12.5px; color: var(--amber); }
.pay { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.pay p { margin: 8px 0 0; }
.pay .kv { margin-top: 10px; grid-template-columns: 116px minmax(0, 1fr); }
.pay .kv dd { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.pay .full { color: var(--ink); overflow-wrap: anywhere; }
.pay .hint { font-size: 12px; color: var(--muted); }
.pay .pay-sum { color: var(--ink); font-weight: 550; }
.pay .opts { margin-top: 10px; }
.pay-opt .tag { display: block; margin-top: 3px; font: 600 10.5px/1.3 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pay-opt input:checked + span b { color: var(--accent-ink); }
.pay-opt:has(input:checked) { background: var(--accent-weak); }
.plan-bar { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink-2); }
.req-out > .note { font-size: 12.5px; }
.field input:invalid, .field input[aria-invalid="true"] { border-color: var(--amber); }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin-top: 8px; }
.faq div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq dt { font-weight: 600; font-size: 14.5px; }
.faq dd { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }

/* ---------- about + footer ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0 48px; margin-top: 24px; }
.about p { color: var(--ink-2); font-size: 15px; max-width: 64ch; }
.about .deflist dd { word-break: normal; }
.ftr { border-top: 1px solid var(--line-2); padding: 22px 0 30px; font-size: 12.5px; color: var(--muted); }
.ftr .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.ftr nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ftr a { color: var(--ink-2); }

/* ---------- memo (pre-execution briefs) ---------- */
.memo-wrap { max-width: 920px; margin: 0 auto; padding: 48px 28px 88px; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--ink-2); }
.crumbs + .sec-head { margin-top: 18px; }
.memo > header > div:first-child { display: flex; flex-wrap: wrap; gap: 8px; }
.memo .badge { height: 22px; border-radius: 2px; }
.memo .badge-cyan { color: var(--muted); background: transparent; border-color: var(--line-2); }
.memo .badge-cyan::before { display: none; }
.memo .badge-green { color: var(--green); background: var(--green-bg); border-color: var(--green-line); }
.memo .badge-amber { color: var(--amber); background: var(--amber-bg); border-color: var(--amber-line); }
.memo { margin-top: 18px; }
.memo > header { padding-bottom: 22px; border-bottom: 1px solid var(--line-2); }
.memo > header h1 { margin: 16px 0 10px; font-size: 27px; line-height: 1.25; letter-spacing: -0.018em; }
.memo > header p { color: var(--ink-2); font-size: 15.5px; max-width: 72ch; }
.memo-meta { display: grid; grid-template-columns: 150px minmax(0, 1fr); margin: 0; border-bottom: 1px solid var(--line-2); }
.memo-meta dt, .memo-meta dd { margin: 0; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.memo-meta dt:first-of-type, .memo-meta dd:first-of-type { border-top: 0; }
.memo-meta dt { color: var(--muted); }
.memo .meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 8px; border-bottom: 1px solid var(--line); }
.memo .kpi { padding: 16px 16px 16px; border-left: 1px solid var(--line); min-width: 0; }
.memo .kpi:first-child { border-left: 0; padding-left: 0; }
.memo .kpi .k { font: 600 10.5px/1.3 var(--sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.memo .kpi .v { margin-top: 7px; font: 600 14.5px/1.35 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.memo .kpi .s, .memo .kpi .s-ok { margin-top: 4px; font-size: 12.5px; line-height: 1.4; }
.memo .kpi .s { color: var(--muted); }
.memo .kpi .s-ok { color: var(--green); }
.memo h2 { margin: 40px 0 12px; padding-top: 0; font-size: 18px; line-height: 1.35; }
.memo .card { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.memo .card p + p, .memo .card p + ul { margin-top: 12px; }
.memo ul { padding-left: 20px; margin: 12px 0 0; }
.memo li { margin: 8px 0; }
.memo li strong, .memo p strong { color: var(--ink); }
.memo code { padding: 1px 4px; border-radius: 2px; background: var(--sunken); border: 1px solid var(--line); color: var(--ink); font-size: 0.84em; overflow-wrap: anywhere; }
.memo h1 code { font-size: 0.82em; border: 0; background: var(--sunken); }
.memo table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 4px; }
.memo th { text-align: left; font: 600 11px/1.2 var(--sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 9px 0; border-bottom: 1px solid var(--line-2); }
.memo td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.memo td:last-child, .memo th:last-child { padding-right: 0; white-space: nowrap; }
/* issuer conversion callout on briefs and protocol pages: hairline rule, no card chrome */
.convert { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.convert h2 { margin: 10px 0 8px; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.convert p { max-width: 72ch; color: var(--ink-2); }
.convert-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; }
.convert.quiet { padding-top: 16px; border-top-color: var(--line); }
.convert.quiet h2 { font-size: 16px; color: var(--ink-2); }
.convert.quiet p { font-size: 13.5px; }
.memo-foot { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav a:nth-child(3), .nav a:nth-child(5) { display: none; }
  .frow { grid-template-columns: 170px minmax(0, 1fr); }
  .frow .cmpcol { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; margin-top: 12px; }
  .frow .cmpcol a { margin: 0 0 0 6px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan:nth-child(3) { border-left: 0; padding-left: 0; }
  .plan:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .drawer-in { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .nav { display: none; }
  .topbar .wrap { justify-content: space-between; }
  .hero { padding-top: 48px; }
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .ledger > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .bench { grid-template-columns: 1fr; }
  .bench-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .bench-list { max-height: 260px; }
  .sheet { padding: 22px 20px 24px; }
  .kv { grid-template-columns: 130px minmax(0, 1fr); }
  .split, .about, .faq, .req { grid-template-columns: 1fr; }
  .split .term { margin-top: 24px; }
  .req-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .sec-head { grid-template-columns: 36px minmax(0, 1fr); }
  .sec-head .aside { grid-column: 2; text-align: left; margin-top: 6px; }
  .sec-intro { margin-left: 0; }
  #matrix col.c-d, #matrix col.c-b { width: 0; }
  #matrix .hide-m { display: none; }
  #matrix col.c-p { width: 28%; } #matrix col.c-s { width: 40%; } #matrix col.c-c { width: 20%; } #matrix col.c-x { width: 12%; }
  .radar .hide-m { display: none; }
  .memo .meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .memo .kpi:nth-child(3) { border-left: 0; padding-left: 0; }
  .memo .kpi:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .brand small { display: none; }
  .tools .btn { display: none; }
  .ledger b { font-size: 24px; }
  .ledger > div { padding: 16px 14px; }
  .frow { grid-template-columns: 1fr; }
  .frow .cmpcol { grid-column: 1; }
  .frow .who { margin-bottom: 10px; }
  .plans { grid-template-columns: 1fr; }
  .plan { border-left: 0; padding-left: 0; padding-right: 0; border-top: 1px solid var(--line); }
  .plan:first-child { border-top: 0; }
  .opts { grid-template-columns: 1fr; }
  .opts label:nth-child(odd) { border-right: 0; }
  .opts label:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  #matrix col.c-s { width: 0; }
  #matrix .hide-s { display: none; }
  #matrix col.c-p { width: 46%; } #matrix col.c-c { width: 34%; } #matrix col.c-x { width: 20%; }
  .memo .kpi .v { font-size: 13.5px; }
  .radar .countdown { white-space: normal; }
  .radar td:first-child { width: 96px; }
  .memo-meta { grid-template-columns: 110px minmax(0, 1fr); }
  .memo td:last-child, .memo th:last-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  .topbar, .tt, .copy, .bench-side, .ix-tools, .ctas { display: none !important; }
  body { background: #fff; color: #000; }
}

/* agent quickstarts (hero) + live pre-flight checker: hairline boxes, no cards, radius <= var(--r) */
.qs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.qs-item { padding: 18px 20px 18px 0; min-width: 0; }
.qs-item + .qs-item { padding-left: 20px; border-left: 1px solid var(--line); }
.qs-item h3 { margin-top: 8px; font-size: 15px; line-height: 1.35; }
.qs-snip { margin-top: 10px; min-width: 0; }
.qs-snip code { display: block; margin-top: 4px; padding: 7px 9px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.qs-snip .copy { margin: 6px 0 0; }
.qs-l { font: 500 11.5px/1 var(--sans); color: var(--muted); }
.qs-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13.5px; }
.qs .note { margin-top: 10px; }
.pf { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.pf-form { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.pf-form label { display: grid; gap: 6px; font: 500 12px/1.2 var(--sans); color: var(--muted); }
.pf-addr input { font-family: var(--mono); font-size: 13px; }
.pf-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.pf-out { margin-top: 18px; min-height: 48px; }
.pf-verdict { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.pf-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-top: 12px; border-top: 1px solid var(--line); }
.pf-dl > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; min-width: 0; }
.pf-dl dt { color: var(--muted); }
.pf-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.plan-sub { margin-top: 10px; font-size: 13px; }
@media (max-width: 860px) {
  .qs { grid-template-columns: minmax(0, 1fr); }
  .qs-item + .qs-item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .pf-form, .pf-dl { grid-template-columns: minmax(0, 1fr); }
}
