/* Hallmark · system-managed: ../CONCEPT.md (locked) · macrostructure: specimen-led narrative
 * theme: GPD ink/paper (custom, locked) · nav: 5-item law · footer: corporate-register (custom Ft)
 * pre-emit critique: P5 H5 E4 S5 R5 V4 · studied: yes · DNA-source: CONCEPT.md + website PRD
 *
 * Font stand-ins for this prototype only:
 *   display/ui  Geist          → production: Söhne (Klim)
 *   data/code   IBM Plex Mono  → production: Berkeley Mono (U.S. Graphics)
 * Every saturated color on these pages is an epistemic token. If something else
 * turns blue, it is a bug, not a choice.
 */

/* ============ 1. tokens ============ */
:root {
  /* canon (law) */
  --ink: #0E0F12;
  --paper: #FBFBF9;
  --g100: #15171B;
  --g200: #272A30;
  --g300: #3A3F47;
  --g400: #595F67;
  --g500: #7A8089;
  --g600: #999EA7;
  --g700: #B9BDC7;
  --measured-paper: #2742F5;
  --measured-ink: #4D73EE;
  --contested-paper: #A76406;
  --contested-ink: #C77B1E;
  --aggregated-paper: #5E6B7A;
  --aggregated-ink: #6F7C8C;

  /* surface resolution: ink theme (marketing default) */
  --bg: var(--ink);
  --fg: var(--paper);
  --fg-2: var(--g700);
  --fg-3: var(--g600);
  --fg-4: var(--g500);
  --raised: var(--g100);
  --hairline: rgba(122, 128, 137, 0.26);
  --hairline-strong: rgba(122, 128, 137, 0.5);
  --epi-measured: var(--measured-ink);
  --epi-contested: var(--contested-ink);
  --epi-aggregated: var(--aggregated-ink);

  /* type */
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --d-fast: 120ms;
  --d-base: 180ms;
  --d-panel: 240ms;
  --d-curve: 600ms;

  --radius: 6px;
  --container: 1120px;
}

[data-theme="paper"] {
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-2: var(--g300);
  --fg-3: var(--g400);
  --fg-4: var(--g500);
  --raised: #f3f3ef;
  --hairline: rgba(122, 128, 137, 0.32);
  --hairline-strong: rgba(122, 128, 137, 0.55);
  --epi-measured: var(--measured-paper);
  --epi-contested: var(--contested-paper);
  --epi-aggregated: var(--aggregated-paper);
}

/* display-XL tweak */
html[data-xl] { --display-size: clamp(49px, 7.2vw, 88px); --doctrine-size: clamp(72px, 12vw, 152px); }
html:not([data-xl]) { --display-size: clamp(39px, 5.4vw, 64px); --doctrine-size: clamp(56px, 9vw, 120px); }

/* ============ 2. base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; }
html[data-motion-off] *, html[data-motion-off] *::before, html[data-motion-off] *::after {
  transition-duration: 0ms !important; animation-duration: 0ms !important;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  overflow-x: clip;
  font-feature-settings: "tnum" 1;
}
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-weight: 600; margin: 0; text-wrap: balance; font-style: normal; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 32px; }
@media (max-width: 768px) { .container { padding-inline: 20px; } }

/* type ramp */
.t-display { font-size: var(--display-size); line-height: 1.06; letter-spacing: -0.035em; font-weight: 600; }
.t-h1 { font-size: clamp(34px, 4.4vw, 49px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }
.t-h2 { font-size: clamp(28px, 3.5vw, 39px); line-height: 1.18; letter-spacing: -0.025em; font-weight: 600; }
.t-h3 { font-size: 31px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; }
.t-h4 { font-size: 25px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; }
.t-lead { font-size: 20px; line-height: 1.5; letter-spacing: -0.01em; color: var(--fg-2); font-weight: 400; }
.t-meta { font-family: var(--mono); font-size: 13px; line-height: 1.55; letter-spacing: 0.01em; }
.t-axis { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }
.muted { color: var(--fg-3); }
.muted-2 { color: var(--fg-4); }

/* links */
.lnk {
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, currentColor 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--d-fast) var(--ease-out);
}
.lnk:hover { text-decoration-color: currentColor; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius);
  background: var(--fg); color: var(--bg);
  font-weight: 500; font-size: 16px; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  transition: transform var(--d-fast) var(--ease-out), opacity var(--d-fast) var(--ease-out);
}
.btn:hover { opacity: 0.92; }
.btn:active { transform: scale(0.97); }
.btn .kbd { opacity: 0.55; }
.btn-ghost {
  background: transparent; color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
}
.btn-ghost:hover { opacity: 1; box-shadow: inset 0 0 0 1px var(--fg-4); background: color-mix(in oklab, var(--fg) 4%, transparent); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.kbd {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em;
  border: 1px solid var(--hairline-strong); border-radius: 4px;
  padding: 1px 6px;
}

/* chips */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--hairline);
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.01em;
  color: var(--fg-2); background: transparent; text-decoration: none;
  transition: box-shadow var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out), transform var(--d-fast) var(--ease-out);
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--fg-4); color: var(--fg); }
.chip:active { transform: scale(0.97); }
.chip .chip-k { color: var(--fg-4); }

/* ============ 3. nav ============ */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav-in { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.5em; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; font-size: 16px; min-height: 40px; }
.brand svg { height: 0.71em; width: auto; }
.brand span { line-height: 1; }
.bmark-check { fill: var(--epi-measured); animation: gpd-blink 1.12s step-end infinite; }
@media (prefers-reduced-motion: reduce) { .bmark-check { animation: none; } }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  text-decoration: none; color: var(--fg-2); font-size: 15px; letter-spacing: -0.01em;
  border-radius: var(--radius);
  transition: color var(--d-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a[aria-current="page"] { color: var(--fg); box-shadow: inset 0 -1px 0 0 var(--fg); border-radius: 0; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav-cta .lnk { font-size: 15px; color: var(--fg-2); }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .lnk { display: none; }
}

/* ============ 3b. document meta band (the standard, stated) ============ */
.metaband { border-bottom: 1px solid var(--hairline); }
.metaband-in { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; min-height: 36px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--fg-4); }
.metaband-in .mb-r { display: flex; gap: 8px 20px; flex-wrap: wrap; }

/* ============ 3c. mega menu (the index drawer) ============ */
.nav { position: sticky; }
.nav-links a { position: relative; }
.nav-links a[aria-expanded="true"] { color: var(--fg); box-shadow: inset 0 -1px 0 0 var(--fg); border-radius: 0; }
.mega {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 39;
  background: color-mix(in oklab, var(--bg) 97%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 260ms var(--ease-drawer), visibility 0s 260ms;
}
.mega.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 280ms var(--ease-drawer), visibility 0s; }
.mega-panel { display: none; }
.mega-panel.on { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; padding-block: 36px 40px; }
.mp-col { grid-column: span 3; }
.mp-col.wide { grid-column: span 4; }
.mp-mod { grid-column: span 4; grid-column-end: -1; border-left: 1px solid var(--hairline); padding-left: 32px; }
.mp-h { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--fg-4); margin-bottom: 10px; }
.mp-col a { display: flex; align-items: baseline; gap: 10px; min-height: 38px; align-items: center; text-decoration: none; color: var(--fg-2); font-size: 15px; letter-spacing: -0.01em; transition: color var(--d-fast) var(--ease-out); }
.mp-col a:hover { color: var(--fg); }
.mp-col a .mp-n { font-family: var(--mono); font-size: 12px; color: var(--fg-4); min-width: 22px; }
.mp-mod .specbox { box-shadow: none; padding: 0; }
.mp-mod .sb-row { min-height: 36px; }
.mp-mod p { font-size: 14px; line-height: 1.6; color: var(--fg-3); }
.mp-mod .proof { border: 0; padding: 0; display: grid; gap: 14px; }
.mega.open .mega-panel.on > * { opacity: 0; transform: translateY(-6px); animation: mp-in 220ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 30ms + 60ms); }
@keyframes mp-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .mega { transition: none; clip-path: none; display: none; }
  .mega.open { display: block; }
  .mega.open .mega-panel.on > * { animation: none; opacity: 1; transform: none; }
}
@media (max-width: 900px) { .mega { display: none; } }

/* mobile nav */
.nav-burger { display: none; font-family: var(--mono); font-size: 13px; color: var(--fg-2); min-height: 40px; padding: 0 4px; }
@media (max-width: 900px) { .nav-burger { display: inline-flex; align-items: center; } }
.mnav {
  position: fixed; inset: 0; z-index: 60; background: var(--bg); color: var(--fg);
  display: none; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 20px 40px;
}
.mnav.open { display: block; }
.mnav-head { display: flex; justify-content: space-between; align-items: center; height: 64px; border-bottom: 1px solid var(--hairline); margin-bottom: 8px; }
.mn-group { border-bottom: 1px solid var(--hairline); padding-block: 18px; }
.mn-group .mp-h { margin-bottom: 6px; }
.mn-group a { display: flex; min-height: 46px; align-items: center; gap: 12px; text-decoration: none; color: var(--fg-2); font-size: 17px; letter-spacing: -0.01em; }
.mn-group a .mp-n { font-family: var(--mono); font-size: 12px; color: var(--fg-4); min-width: 22px; }
.mn-group a:active { color: var(--fg); }
.mnav .btn { width: 100%; margin-top: 24px; }
.mnav.open .mn-group, .mnav.open .btn { opacity: 0; transform: translateY(-6px); animation: mp-in 220ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 35ms + 40ms); }
@media (prefers-reduced-motion: reduce) { .mnav.open .mn-group, .mnav.open .btn { animation: none; opacity: 1; transform: none; } }
html[data-mnav-open] { overflow: hidden; }

/* ============ 4. sections ============ */
.section { padding-block: 112px; border-top: 1px solid var(--hairline); }
.section:first-of-type, .section.no-rule { border-top: 0; }
@media (max-width: 768px) { .section { padding-block: 80px; } }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.01em; color: var(--fg-4); margin-bottom: 20px; }
.sec-head { max-width: 720px; }
.sec-head .t-lead { margin-top: 20px; }
.sec-cta { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* reveal */
.rv { opacity: 0; transform: translateY(6px); transition: opacity var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ============ 5. hero ============ */
.hero { padding-block: 112px 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; justify-items: center; text-align: center; }
.hero-copy { max-width: 880px; }
.hero-copy .t-display { margin: 0 auto; }
.hero-copy .t-lead { margin: 24px auto 0; max-width: 620px; }
.hero-ctas { margin-top: 36px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
html[data-hero-left] .hero-grid { justify-items: stretch; text-align: left; grid-template-columns: minmax(0, 1fr); }
html[data-hero-left] .hero-copy .t-lead, html[data-hero-left] .hero-copy .t-display { margin-inline: 0; }
html[data-hero-left] .hero-ctas, html[data-hero-left] .resolve-wrap { justify-content: flex-start; }
html[data-hero-left] .resolve-wrap { margin-inline: 0; }

/* resolve input */
.resolve-wrap { width: 100%; max-width: 720px; margin-inline: auto; }
.resolve {
  display: flex; align-items: stretch;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
  background: var(--raised);
  transition: box-shadow var(--d-fast) var(--ease-out);
}
.resolve:focus-within { box-shadow: inset 0 0 0 1px var(--fg-4); }
.resolve input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg);
  font-family: var(--mono); font-size: 16px; padding: 0 20px; height: 56px;
}
.resolve input:focus-visible { outline: none; }
.resolve .btn { border-radius: 0 var(--radius) var(--radius) 0; min-height: 56px; }
.resolve-chips { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
.resolve-status { margin-top: 14px; min-height: 20px; font-family: var(--mono); font-size: 13px; color: var(--fg-4); text-align: center; }
html[data-hero-left] .resolve-chips, html[data-hero-left] .resolve-status { justify-content: flex-start; text-align: left; }

/* ============ 6. specimen card ============ */
.card {
  /* always paper; themes change the desk, never the document */
  background: var(--paper); color: var(--ink);
  --fg: var(--ink); --fg-2: var(--g300); --fg-3: var(--g400); --fg-4: var(--g500);
  --hairline: rgba(122, 128, 137, 0.32); --hairline-strong: rgba(122, 128, 137, 0.55);
  --epi-measured: var(--measured-paper); --epi-contested: var(--contested-paper); --epi-aggregated: var(--aggregated-paper);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%; max-width: 720px;
  text-align: left;
}
[data-theme="paper"] .card { box-shadow: inset 0 0 0 1px var(--hairline); }
.card-eyebrow { display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.01em; color: var(--g400); }
.card-eyebrow .verdict b { color: var(--ink); font-weight: 500; }
.card-name { font-size: 31px; line-height: 1.25; letter-spacing: -0.02em; margin-top: 14px; }
.card-name.xl { font-size: clamp(31px, 4vw, 39px); }
.card-sub { color: var(--g400); margin-top: 2px; font-size: 16px; }
.card-sub a { text-decoration: underline; text-decoration-color: rgba(89, 95, 103, 0.4); text-underline-offset: 3px; }
.card hr { border-color: rgba(122, 128, 137, 0.32); margin-block: 22px; }
.rows { margin: 0; }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px 24px;
  min-height: 48px; padding-block: 12px;
}
.row + .row { border-top: 1px solid rgba(122, 128, 137, 0.22); }
.row dt { color: var(--g300); font-size: 16px; }
.row dd { margin: 0; display: flex; align-items: baseline; gap: 14px; justify-content: flex-end; flex-wrap: wrap; }
.row .val { font-family: var(--mono); font-size: 16px; color: var(--ink); white-space: nowrap; }
.row .val.is-measured { color: var(--epi-measured); }
.row .val.is-contested { color: var(--epi-contested); }
.row .val.soft { color: var(--g400); font-size: 13px; }
.tag { font-family: var(--mono); font-size: 13px; letter-spacing: 0.01em; }
.tag.claimed { color: var(--g400); }
.tag.measured { color: var(--epi-measured); }
.tag.contested { color: var(--epi-contested); }
.tag.aggregated { color: var(--epi-aggregated); }
.delta { font-family: var(--mono); font-size: 13px; color: var(--g400); }
.card-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; color: var(--g400); margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(122, 128, 137, 0.32); }
.card-foot .replayed { color: var(--g500); }

/* curve module (inside card and standalone) */
.curve { margin-top: 22px; }
.curve svg { width: 100%; height: auto; }
.curve .c-line { fill: none; stroke: var(--g400); stroke-width: 1; }
.curve .c-area { fill: var(--ink); opacity: 0.06; }
.curve .c-marker-line { stroke: var(--epi-measured); stroke-width: 1; }
.curve .c-marker-dot { fill: var(--epi-measured); }
.curve .c-tick { stroke: rgba(122, 128, 137, 0.4); stroke-width: 1; }
.curve text { font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; fill: var(--g500); }
.curve text.c-marker-label { fill: var(--epi-measured); }
.curve-caption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--g500); margin-top: 8px; }

/* standalone curve on ink sections */
.curve-ink .c-line { stroke: var(--g500); }
.curve-ink .c-area { fill: var(--paper); opacity: 0.05; }
.curve-ink .c-marker-line { stroke: var(--epi-measured); }
.curve-ink .c-marker-dot { fill: var(--epi-measured); }
.curve-ink text { fill: var(--g600); }
.curve-ink text.c-marker-label { fill: var(--epi-measured); }

/* drawing */
.curve .c-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.curve .c-area, .curve .c-marker-line, .curve .c-marker-dot, .curve text { opacity: 0; }
.curve .c-area { transition: opacity var(--d-panel) var(--ease-out) 480ms; }
.curve .c-marker-line, .curve .c-marker-dot, .curve text.c-marker-label { transition: opacity var(--d-base) var(--ease-out) 520ms, transform var(--d-base) var(--ease-out) 520ms; transform: translateY(-8px); }
.curve text { transition: opacity var(--d-base) var(--ease-out) 560ms; }
.curve.drawn .c-line { transition: stroke-dashoffset var(--d-curve) var(--ease-out); stroke-dashoffset: 0; }
.curve.drawn .c-area { opacity: 0.06; }
.curve-ink.drawn .c-area { opacity: 0.05; }
.curve.drawn .c-marker-line, .curve.drawn .c-marker-dot, .curve.drawn text { opacity: 1; transform: none; }
.curve.drawn .c-marker-line { opacity: 0.9; }
@media (prefers-reduced-motion: reduce) {
  .curve .c-line { stroke-dashoffset: 0; }
  .curve .c-area { opacity: 0.06; }
  .curve .c-marker-line, .curve .c-marker-dot, .curve text { opacity: 1; transform: none; }
}

/* ============ 7. code pane (always ink: documents are paper, terminals are ink) ============ */
.code {
  background: var(--ink); color: var(--g700);
  --epi-measured: var(--measured-ink); --epi-contested: var(--contested-ink);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(122, 128, 137, 0.26);
  overflow: hidden;
  text-align: left;
}
.code-tabs { display: flex; gap: 2px; padding: 6px 8px 0; border-bottom: 1px solid rgba(122, 128, 137, 0.26); }
.code-tabs button {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.01em; color: var(--g500);
  padding: 8px 12px; min-height: 40px; border-radius: var(--radius) var(--radius) 0 0;
  transition: color var(--d-fast) var(--ease-out);
}
.code-tabs button:hover { color: var(--g700); }
.code-tabs button[aria-selected="true"] { color: var(--paper); box-shadow: inset 0 -1px 0 0 var(--paper); }
.code-tabs .code-copy { margin-left: auto; }
.code pre {
  margin: 0; padding: 24px; overflow-x: auto;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.65; letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.code .ck { color: var(--g500); }          /* keys, punctuation */
.code .cs { color: var(--paper); }         /* strings, values */
.code .cn { color: var(--g700); }          /* numbers */
.code .cc { color: var(--g500); font-style: normal; } /* comments */
.code .cm { color: var(--epi-measured); }  /* measured values: the only color in code */
.code .cx { color: var(--epi-contested); }

/* ============ 8. doctrine (claims, not facts) ============ */
.doctrine { display: grid; gap: 8px; margin-top: 64px; }
.doc-row { display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap; padding-block: 24px; }
.doc-row + .doc-row { border-top: 1px solid var(--hairline); }
.doc-val { font-family: var(--mono); font-size: var(--doctrine-size); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.doc-val .unit { font-size: 0.38em; color: var(--fg-4); letter-spacing: 0; }
.doc-row .tag { font-size: 16px; }
.doc-row .doc-note { font-family: var(--mono); font-size: 13px; color: var(--fg-4); margin-left: auto; }
.doc-row.is-measured .doc-val { color: var(--epi-measured); }
@media (max-width: 768px) { .doc-row .doc-note { margin-left: 0; width: 100%; } }

/* ============ 9. proof strip / counters ============ */
.proof {
  display: flex; gap: 12px 48px; flex-wrap: wrap; align-items: baseline;
  padding-block: 24px; border-block: 1px solid var(--hairline);
  font-family: var(--mono); font-size: 13px; color: var(--fg-3);
}
.proof b { font-weight: 500; color: var(--fg); font-size: 16px; }
.proof .ok { color: var(--fg-2); }
.counters { display: flex; gap: 16px 64px; flex-wrap: wrap; margin-top: 48px; }
.counter .num { font-family: var(--mono); font-size: 49px; line-height: 1.1; letter-spacing: -0.02em; display: block; }
.counter .lbl { font-family: var(--mono); font-size: 13px; color: var(--fg-4); margin-top: 6px; display: block; }

/* ============ 10. two-pane layouts ============ */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; margin-top: 64px; }
@media (max-width: 980px) { .split { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.split .sec-head { position: sticky; top: 96px; }
@media (max-width: 980px) { .split .sec-head { position: static; } }

/* pipeline frieze */
.frieze { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 64px; border-top: 1px solid var(--hairline); }
.frieze li { list-style: none; padding: 28px 28px 36px 28px; border-right: 1px solid var(--hairline); position: relative; }
.frieze li:first-child { padding-left: 0; }
.frieze li:last-child { border-right: 0; padding-right: 0; }
.frieze .f-step { font-family: var(--mono); font-size: 13px; color: var(--fg-4); }
.frieze h4 { font-size: 20px; letter-spacing: -0.01em; margin-top: 12px; font-weight: 500; }
.frieze p { font-size: 14px; color: var(--fg-3); margin-top: 8px; line-height: 1.55; }
.frieze { padding-left: 0; }
@media (max-width: 768px) { .frieze { grid-template-columns: minmax(0, 1fr); } .frieze li { border-right: 0; border-bottom: 1px solid var(--hairline); padding: 24px 0 28px; } .frieze li:last-child { border-bottom: 0; } }

/* dictionary tease grid */
.attr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--hairline); margin-top: 64px; border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.attr-cell { background: var(--bg); padding: 20px; text-decoration: none; display: block; transition: background var(--d-fast) var(--ease-out); }
.attr-cell:hover { background: color-mix(in oklab, var(--fg) 4%, var(--bg)); }
.attr-cell .a-name { font-size: 20px; letter-spacing: -0.01em; font-weight: 500; }
.attr-cell .a-path { font-family: var(--mono); font-size: 12px; color: var(--fg-4); margin-top: 4px; display: block; }
@media (max-width: 900px) { .attr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .attr-grid { grid-template-columns: minmax(0, 1fr); } }

/* ============ 11. footer (the register) ============ */
.footer { margin-top: 128px; }
.footer .band { padding-block: 40px; border-top: 1px solid var(--hairline); }
.footer .band:first-child { border-top: 0; }
.f-proof { display: flex; gap: 12px 40px; flex-wrap: wrap; align-items: baseline; font-family: var(--mono); font-size: 13px; color: var(--fg-3); }
.f-proof b { color: var(--fg); font-weight: 500; }
.f-proof .f-status { margin-left: auto; display: inline-flex; align-items: baseline; gap: 8px; color: var(--fg-2); text-decoration: none; }
.f-proof .f-status::before { content: ""; width: 7px; height: 7px; background: var(--fg-2); display: inline-block; border-radius: 1px; align-self: center; }
.f-cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 40px 32px; }
@media (max-width: 1024px) { .f-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .f-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.f-col h5 { font-size: 13px; font-weight: 500; letter-spacing: 0; margin: 0 0 14px; color: var(--fg); }
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.f-col a { display: inline-flex; min-height: 32px; align-items: center; text-decoration: none; color: var(--fg-3); font-size: 14px; transition: color var(--d-fast) var(--ease-out); }
.f-col a:hover { color: var(--fg); }
.f-col .f-note { font-family: var(--mono); font-size: 11px; color: var(--fg-4); margin-left: 6px; }
.f-machines { display: flex; gap: 10px 24px; flex-wrap: wrap; align-items: baseline; font-family: var(--mono); font-size: 13px; }
.f-machines .f-lbl { color: var(--fg-4); }
.f-machines a { color: var(--fg-3); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.f-machines a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.f-legalese { columns: 2; column-gap: 64px; font-size: 13px; line-height: 1.65; color: var(--fg-4); }
.f-legalese p { margin: 0 0 14px; break-inside: avoid; }
.f-legalese b { color: var(--fg-3); font-weight: 500; }
@media (max-width: 768px) { .f-legalese { columns: 1; } }
.f-bottom { display: flex; gap: 16px 32px; flex-wrap: wrap; align-items: center; font-family: var(--mono); font-size: 13px; color: var(--fg-4); }
.f-bottom .brand { font-size: 14px; }
.f-bottom .f-right { margin-left: auto; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.f-grew { color: var(--fg-3); }
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-family: var(--mono); font-size: 13px; color: var(--fg-3); }
.theme-toggle:hover { color: var(--fg); }
.theme-toggle .sw { width: 28px; height: 16px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--hairline-strong); position: relative; display: inline-block; }
.theme-toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border-radius: 5px; background: var(--fg-2); transition: transform var(--d-fast) var(--ease-out); }
[data-theme="paper"] .theme-toggle .sw::after { transform: translateX(12px); }
html[data-footer-compact] .f-cols, html[data-footer-compact] .f-legalese, html[data-footer-compact] .band-machines { display: none; }

/* ============ 12. forms (signup) ============ */
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; color: var(--fg-2); }
.field .hint { font-family: var(--mono); font-size: 12px; color: var(--fg-4); }
.input, .select, textarea.input {
  width: 100%; min-height: 48px; padding: 12px 16px;
  background: var(--raised); color: var(--fg);
  border: 0; border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
  font: inherit; font-size: 15px;
  transition: box-shadow var(--d-fast) var(--ease-out);
}
.input:focus-visible, .select:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--fg-4); }
.input.mono { font-family: var(--mono); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg-4) 50%), linear-gradient(135deg, var(--fg-4) 50%, transparent 50%); background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field.is-error .input { box-shadow: inset 0 0 0 1px var(--epi-contested); }
.field .err { font-size: 13px; line-height: 1.6; color: var(--fg-2); display: none; }
.field.is-error .err { display: block; animation: mp-in 180ms var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .field.is-error .err { animation: none; } }
.check { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: start; padding-block: 6px; font-size: 14px; color: var(--fg-2); }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--fg); }
.check .t-meta { color: var(--fg-4); }
.rulelist { list-style: none; margin: 24px 0 0; padding: 0; }
.rulelist li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 24px; padding-block: 18px; border-top: 1px solid var(--hairline); font-size: 15px; color: var(--fg-2); }
.rulelist li:last-child { border-bottom: 1px solid var(--hairline); }
.rulelist .r-id { font-family: var(--mono); font-size: 13px; color: var(--fg-4); padding-top: 2px; }
.rulelist b { color: var(--fg); font-weight: 500; }
@media (max-width: 540px) { .rulelist li { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* ============ 13. legal ============ */
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; }
@media (max-width: 900px) { .legal-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.legal-toc { position: sticky; top: 96px; display: grid; gap: 2px; }
@media (max-width: 900px) { .legal-toc { position: static; } }
.legal-toc a { display: flex; min-height: 36px; align-items: center; text-decoration: none; color: var(--fg-3); font-size: 14px; padding-left: 14px; border-left: 1px solid var(--hairline); transition: color var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out); }
.legal-toc a:hover { color: var(--fg); }
.legal-toc a.active { color: var(--fg); border-left-color: var(--fg); }
.legal-toc .toc-h { font-family: var(--mono); font-size: 12px; color: var(--fg-4); margin: 20px 0 6px; padding-left: 14px; }
.legal-body { max-width: 720px; }
.legal-body section { padding-block: 48px; border-top: 1px solid var(--hairline); }
.legal-body section:first-child { border-top: 0; padding-top: 0; }
.legal-body h2 { font-size: 31px; letter-spacing: -0.02em; }
.legal-body h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; margin-top: 36px; }
.legal-body p, .legal-body li { font-size: 15px; line-height: 1.7; color: var(--fg-2); }
.legal-body p { margin-top: 14px; }
.legal-body ol, .legal-body ul { margin: 14px 0 0; padding-left: 22px; }
.legal-body li { margin-top: 8px; }
.legal-meta { display: flex; gap: 12px 32px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; color: var(--fg-4); margin-top: 16px; }
.legal-meta .draft { color: var(--epi-contested); }
.legal-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 14px; }
.legal-table th { text-align: left; font-weight: 500; color: var(--fg); padding: 10px 16px 10px 0; border-bottom: 1px solid var(--hairline-strong); }
.legal-table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--hairline); color: var(--fg-2); vertical-align: top; }
.legal-table td:first-child { font-family: var(--mono); font-size: 13px; color: var(--fg-3); white-space: nowrap; }

/* ============ 14. dictionary specimen page ============ */
.spec-head { padding-block: 80px 0; }
.label-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; margin-top: 48px; }
.label-grid div { background: var(--bg); padding: 16px 20px; }
.label-grid .lg-loc { font-family: var(--mono); font-size: 12px; color: var(--fg-4); display: block; }
.label-grid .lg-val { font-size: 16px; margin-top: 4px; display: block; }
@media (max-width: 768px) { .label-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.meta-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.spec-section { padding-block: 64px; border-top: 1px solid var(--hairline); }
.spec-section h2 { font-size: 25px; letter-spacing: -0.015em; font-weight: 500; }
.spec-section .sub { color: var(--fg-3); margin-top: 8px; max-width: 640px; }
.type-tabs { display: flex; gap: 2px; flex-wrap: wrap; margin-top: 32px; }
.type-tabs button { font-family: var(--mono); font-size: 13px; color: var(--fg-4); padding: 8px 14px; min-height: 40px; border-radius: var(--radius); transition: color var(--d-fast) var(--ease-out); }
.type-tabs button[aria-selected="true"] { color: var(--fg); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.type-tabs button:hover { color: var(--fg); }
.syn-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }

/* search field that opens cmd-k */
.search-fake {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 560px;
  min-height: 52px; padding: 0 18px;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
  background: var(--raised); color: var(--fg-4);
  font-size: 15px; text-align: left;
  transition: box-shadow var(--d-fast) var(--ease-out);
}
.search-fake:hover { box-shadow: inset 0 0 0 1px var(--fg-4); }
.search-fake .kbd { margin-left: auto; }

/* cmd-k */
.cmdk { position: fixed; inset: 0; z-index: 80; display: none; }
.cmdk.open { display: block; }
.cmdk-back { position: absolute; inset: 0; background: rgba(14, 15, 18, 0.55); opacity: 0; transition: opacity var(--d-base) var(--ease-out); }
.cmdk.open .cmdk-back { opacity: 1; }
.cmdk-panel {
  position: relative; margin: 12vh auto 0; width: min(600px, calc(100vw - 40px));
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(122,128,137,0.4), 0 24px 64px rgba(14,15,18,0.35);
  transform: scale(0.98) translateY(-6px); opacity: 0;
  transition: transform 280ms var(--ease-drawer), opacity var(--d-base) var(--ease-out);
  overflow: hidden;
}
.cmdk.open .cmdk-panel { transform: none; opacity: 1; }
.cmdk input { width: 100%; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; padding: 18px 20px; border-bottom: 1px solid rgba(122,128,137,0.32); }
.cmdk input:focus-visible { outline: none; }
.cmdk-scope { display: flex; gap: 2px; padding: 8px 12px; border-bottom: 1px solid rgba(122,128,137,0.22); }
.cmdk-scope span { font-family: var(--mono); font-size: 12px; color: var(--g500); padding: 4px 10px; border-radius: var(--radius); }
.cmdk-scope span.on { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(122,128,137,0.4); }
.cmdk ul { list-style: none; margin: 0; padding: 8px; max-height: 320px; overflow: auto; }
.cmdk li { border-radius: var(--radius); }
.cmdk li a { display: flex; align-items: baseline; gap: 14px; padding: 12px; text-decoration: none; color: var(--ink); border-radius: var(--radius); }
.cmdk li.sel a, .cmdk li a:hover { background: rgba(122, 128, 137, 0.12); }
.cmdk .ck-path { font-family: var(--mono); font-size: 12px; color: var(--g500); margin-left: auto; }
.cmdk-foot { display: flex; gap: 20px; padding: 10px 16px; border-top: 1px solid rgba(122,128,137,0.22); font-family: var(--mono); font-size: 12px; color: var(--g500); }

/* ============ 15. tweaks panel ============ */
.tweaks { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 260px; background: var(--g100); color: var(--g700); border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(122,128,137,0.35), 0 16px 48px rgba(14,15,18,0.5); padding: 16px; display: none; font-size: 13px; }
.tweaks.open { display: block; }
.tweaks h6 { margin: 0 0 10px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.02em; color: var(--g500); display: flex; justify-content: space-between; }
.tweaks h6 button { color: var(--g500); min-height: 24px; }
.tweaks label { display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; }
.tweaks input { accent-color: var(--measured-ink); }
.tweaks .tw-note { font-family: var(--mono); font-size: 11px; color: var(--g500); margin-top: 10px; }
.tw-hint { position: fixed; left: 20px; bottom: 20px; z-index: 90; font-family: var(--mono); font-size: 12px; color: var(--fg-4); opacity: 0; transition: opacity 400ms var(--ease-out); pointer-events: none; }
.tw-hint.show { opacity: 1; }
.toast-note { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(6px); z-index: 95; font-family: var(--mono); font-size: 13px; color: var(--bg); background: var(--fg); border-radius: var(--radius); padding: 10px 16px; opacity: 0; transition: opacity var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out); pointer-events: none; }
.toast-note.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* grid overlay */
html[data-grid] body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none;
  margin-inline: auto; max-width: var(--container); padding-inline: 32px;
  background-image: repeating-linear-gradient(to right,
    rgba(39, 66, 245, 0.07) 0, rgba(39, 66, 245, 0.07) calc((100% - 11 * 24px) / 12),
    transparent calc((100% - 11 * 24px) / 12), transparent calc((100% - 11 * 24px) / 12 + 24px));
  background-clip: content-box;
}

/* ============ 15b. use cases (the commerce section, spec register) ============ */
.aud-strip { margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--hairline); font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--fg-4); text-align: center; }
html[data-hero-left] .aud-strip { text-align: left; }
.uc-list { list-style: none; margin: 72px 0 0; padding: 0; counter-reset: uc; }
.uc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 64px; padding-block: 56px; border-top: 1px solid var(--hairline); align-items: start; }
.uc:last-child { border-bottom: 1px solid var(--hairline); }
@media (max-width: 980px) { .uc { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 48px; } }
.uc-id { font-family: var(--mono); font-size: 13px; letter-spacing: 0.01em; color: var(--fg-4); }
.uc h3 { font-size: 25px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; margin-top: 14px; }
.uc-meta p { font-size: 15px; line-height: 1.65; color: var(--fg-3); margin-top: 16px; max-width: 52ch; }
.uc-meta p b { color: var(--fg); font-weight: 500; }
.uc-meta .t-meta { color: var(--fg-4); margin-top: 16px; }

/* spec module: dense hairline boxes that read like an instrument panel */
.specbox { box-shadow: inset 0 0 0 1px var(--hairline); border-radius: var(--radius); padding: 20px 24px; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--fg-2); }
.specbox .sb-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--fg-4); padding-bottom: 14px; border-bottom: 1px solid var(--hairline); }
.sb-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(64px, 120px) auto; align-items: center; gap: 16px; min-height: 44px; }
.sb-row + .sb-row { border-top: 1px solid color-mix(in oklab, var(--fg-4) 14%, transparent); }
.sb-row .sb-label { color: var(--fg-2); overflow-wrap: anywhere; }
.sb-row .sb-count { color: var(--fg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb-row.two { grid-template-columns: minmax(0, 1fr) auto; }
.sb-bar { height: 2px; background: color-mix(in oklab, var(--fg-4) 22%, transparent); position: relative; border-radius: 1px; }
.sb-bar i { position: absolute; inset: 0 auto 0 0; width: var(--w, 50%); background: var(--fg-3); border-radius: 1px; }
.sb-foot { padding-top: 14px; border-top: 1px solid var(--hairline); color: var(--fg-4); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.specbox .sb-q { font-size: 15px; color: var(--fg); padding-block: 14px; }
.specbox .chips-row { display: flex; gap: 8px; flex-wrap: wrap; padding-block: 12px; }
.specbox .chip { min-height: 36px; font-size: 12px; }
.specbox .chip[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--fg-4); color: var(--fg); }
.specbox .sb-sample { font-family: var(--sans); font-size: 15px; line-height: 1.6; color: var(--fg-2); padding-block: 12px; }
.specbox .sb-sample b { color: var(--fg); font-weight: 500; }
.fig-label { color: var(--fg-4); }

/* ============ 15c. method (the reading page) ============ */
.method-wrap { max-width: 680px; margin-inline: auto; }
.method-toc { list-style: none; margin: 56px 0 0; padding: 0; }
.method-toc li { border-top: 1px solid var(--hairline); transform-origin: left; }
.method-toc li:last-child { border-bottom: 1px solid var(--hairline); }
.method-toc a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 52px; text-decoration: none; color: var(--fg-2); font-size: 16px; transition: color var(--d-fast) var(--ease-out); }
.method-toc a:hover { color: var(--fg); }
.method-toc .mp-n { font-family: var(--mono); font-size: 12px; color: var(--fg-4); }
.method-toc .mp-go { font-family: var(--mono); font-size: 12px; color: var(--fg-4); }
.chapter { padding-block: 88px; border-top: 1px solid var(--hairline); }
.chapter .ch-n { font-family: var(--mono); font-size: 13px; color: var(--fg-4); }
.chapter h2 { font-size: clamp(28px, 3.4vw, 39px); letter-spacing: -0.025em; margin-top: 16px; }
.chapter p { font-size: 17px; line-height: 1.75; color: var(--fg-2); margin-top: 22px; }
.chapter .doctrine-line { margin-top: 28px; padding: 16px 20px; box-shadow: inset 0 0 0 1px var(--hairline); border-radius: var(--radius); font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--fg-3); }
.chapter .doctrine-line b { color: var(--fg); font-weight: 500; }

/* ============ 15d. pricing ============ */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; margin-top: 64px; }
@media (max-width: 860px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { background: var(--bg); padding: 28px 28px 24px; display: grid; gap: 0; align-content: start; }
.plan .pl-name { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.plan .pl-line { font-size: 14px; color: var(--fg-3); margin-top: 8px; min-height: 44px; }
.plan .pl-price { font-family: var(--mono); font-size: 31px; letter-spacing: -0.01em; margin-top: 16px; }
.plan .pl-price .u { font-size: 13px; color: var(--fg-4); }
.plan ul { list-style: none; margin: 20px 0 0; padding: 0; }
.plan li { display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 13px; color: var(--fg-2); min-height: 36px; align-items: center; border-top: 1px solid color-mix(in oklab, var(--fg-4) 14%, transparent); }
.plan li b { font-weight: 500; color: var(--fg); }
.plan .btn, .plan .btn-ghost { margin-top: 24px; }
.ent-row { display: flex; gap: 12px 32px; flex-wrap: wrap; align-items: baseline; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 20px 28px; margin-top: 16px; font-size: 15px; color: var(--fg-2); }
.ent-row b { color: var(--fg); font-weight: 500; }
.ent-row .mono { color: var(--fg-4); font-size: 13px; margin-left: auto; }
.faq { margin-top: 64px; }
.faq dt { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; padding-top: 28px; border-top: 1px solid var(--hairline); }
.faq dd { margin: 10px 0 28px; font-size: 15px; line-height: 1.7; color: var(--fg-3); max-width: 64ch; }

/* ============ 15e. docs ============ */
.docs-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
@media (max-width: 900px) { .docs-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.docs-side { position: sticky; top: 88px; display: grid; gap: 2px; max-height: calc(100vh - 120px); overflow: auto; }
@media (max-width: 900px) { .docs-side { position: static; max-height: none; } }
.docs-side .mp-h { margin-top: 18px; }
.docs-side a { display: flex; min-height: 34px; align-items: center; text-decoration: none; color: var(--fg-3); font-size: 14px; padding-left: 12px; border-left: 1px solid var(--hairline); transition: color var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out); }
.docs-side a:hover { color: var(--fg); }
.docs-side a.active { color: var(--fg); border-left-color: var(--fg); }
.docs-body { max-width: 760px; }
.docs-body section { padding-block: 48px; border-top: 1px solid var(--hairline); }
.docs-body section:first-child { border-top: 0; padding-top: 0; }
.docs-body h2 { font-size: 28px; letter-spacing: -0.02em; }
.docs-body h3 { font-size: 17px; font-weight: 500; margin-top: 32px; }
.docs-body p, .docs-body li { font-size: 15px; line-height: 1.7; color: var(--fg-2); }
.docs-body p { margin-top: 12px; }
.docs-body .code { margin-top: 20px; }
.docs-meta { display: flex; gap: 12px 28px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--fg-4); margin-top: 12px; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding-block: 24px; border-top: 1px solid var(--hairline); }
.step:first-of-type { border-top: 0; }
.step .mp-n { font-family: var(--mono); font-size: 13px; color: var(--fg-4); padding-top: 2px; }
.step h4 { font-size: 17px; font-weight: 500; margin: 0; }
.step p { margin-top: 6px; }

/* ============ 15f. changelog + status ============ */
.track { list-style: none; margin: 64px 0 0; padding: 0; }
.track li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding-block: 32px; border-top: 1px solid var(--hairline); }
.track li:last-child { border-bottom: 1px solid var(--hairline); }
@media (max-width: 640px) { .track li { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.track .tr-tag { font-family: var(--mono); font-size: 13px; color: var(--fg-4); }
.track .tr-tag b { display: block; color: var(--fg); font-weight: 500; }
.track h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.track p { font-size: 15px; color: var(--fg-3); margin-top: 8px; max-width: 64ch; }
.track .counts { display: flex; gap: 8px 24px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; color: var(--fg-2); margin-top: 12px; }
.statusline { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 24px 28px; margin-top: 48px; }
.statusline .s-ok { font-size: 25px; font-weight: 500; letter-spacing: -0.015em; }
.statusline .mono { color: var(--fg-4); font-size: 13px; margin-left: auto; }

/* ============ 15g. use-case surfaces (the rendered demos) ============ */
.surface { background: var(--paper); color: var(--ink);
  --fg: var(--ink); --fg-2: var(--g300); --fg-3: var(--g400); --fg-4: var(--g500);
  --hairline: rgba(122, 128, 137, 0.32); --hairline-strong: rgba(122, 128, 137, 0.55);
  --epi-measured: var(--measured-paper); --epi-contested: var(--contested-paper); --epi-aggregated: var(--aggregated-paper);
  border-radius: var(--radius); padding: 32px; }
[data-theme="paper"] .surface { box-shadow: inset 0 0 0 1px var(--hairline); }
.surface .specbox { box-shadow: inset 0 0 0 1px rgba(122, 128, 137, 0.32); }
.pdp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; }
@media (max-width: 760px) { .pdp { grid-template-columns: minmax(0, 1fr); } }
.pdp-img { border: 1px solid rgba(122, 128, 137, 0.32); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; align-content: start; }
.pdp-img svg { width: 100%; height: auto; }
.pdp-img .img-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pdp-img .chip { min-height: 32px; font-size: 11px; padding: 0 10px; }
.pdp-img .chip[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--g400); color: var(--ink); }
/* image profile renderings: one drawing, three styles */
.pimg .p-fill { fill: #e9e9e4; stroke: none; }
.pimg .p-line { fill: none; stroke: var(--g300); stroke-width: 1; }
.pimg .p-detail { stroke: var(--g500); stroke-width: 1; fill: none; }
.pimg .p-room { stroke: rgba(122,128,137,0.45); stroke-width: 1; fill: none; stroke-dasharray: 3 4; opacity: 0; }
.pdp-img[data-style="technical"] .pimg .p-fill { fill: none; }
.pdp-img[data-style="situ"] .pimg .p-room { opacity: 1; }
.pdp-img[data-style="situ"] .pimg .p-fill { fill: #f1f1ec; }
.pdp-img .img-note { font-family: var(--mono); font-size: 11px; color: var(--g500); }
.pdp-name { font-size: 25px; font-weight: 600; letter-spacing: -0.015em; }
.pdp-context { font-size: 14px; color: var(--g400); margin-top: 6px; }
.pdp-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pdp-badges .chip { min-height: 32px; font-size: 11px; }
.pdp .rows { margin-top: 18px; }
.pdp .row { min-height: 42px; padding-block: 8px; }
.pdp-groups { font-family: var(--mono); font-size: 12px; color: var(--g500); margin-top: 18px; }
.pdp-assets { display: flex; gap: 8px 20px; flex-wrap: wrap; margin-top: 16px; font-family: var(--mono); font-size: 13px; }
.pdp-assets a { color: var(--g300); text-decoration: underline; text-decoration-color: rgba(89,95,103,0.4); text-underline-offset: 3px; min-height: 36px; display: inline-flex; align-items: center; }
/* the mount diagram: a technical drawing, hairline only */
.vesa { border: 1px solid rgba(122, 128, 137, 0.32); border-radius: var(--radius); padding: 20px; }
.vesa svg { width: 100%; height: auto; }
.vesa .v-line { stroke: var(--g300); stroke-width: 1; fill: none; }
.vesa .v-dim { stroke: var(--g500); stroke-width: 1; fill: none; }
.vesa text { font-family: var(--mono); font-size: 10px; fill: var(--g400); letter-spacing: 0.02em; }
/* locale switcher */
.loc-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.loc-tabs .chip { min-height: 36px; font-size: 12px; }
.loc-tabs .chip[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--g400); color: var(--ink); }
.loc-out { margin-top: 20px; }
.loc-out .lo-label { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.loc-out .lo-value { font-family: var(--mono); font-size: 16px; margin-top: 6px; }
.loc-out .lo-value .m { color: var(--epi-measured); }
.loc-out .lo-prose { font-size: 15px; line-height: 1.65; color: var(--g300); margin-top: 14px; max-width: 56ch; }
.loc-out .lo-meta { font-family: var(--mono); font-size: 11px; color: var(--g500); margin-top: 14px; }

/* ============ 15h. onboarding (the application dossier) ============ */
.ob-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 80px; align-items: start; }
@media (max-width: 980px) { .ob-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; } }
.ob-rail { position: sticky; top: 96px; display: grid; gap: 36px; }
@media (max-width: 980px) { .ob-rail { position: static; } .ob-rail .ob-progress { display: none; } }

/* progress spine */
.ob-progress { display: grid; gap: 0; }
.ob-progress li { list-style: none; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: baseline; min-height: 44px; position: relative; }
.ob-progress li::before { content: ""; position: absolute; left: 8px; top: 26px; bottom: -4px; width: 1px; background: var(--hairline); }
.ob-progress li:last-child::before { display: none; }
.ob-progress .op-n { font-family: var(--mono); font-size: 12px; color: var(--fg-4); width: 17px; height: 17px; display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px var(--hairline-strong); border-radius: 4px; background: var(--bg); position: relative; z-index: 1; transition: color var(--d-fast) var(--ease-out), box-shadow var(--d-fast) var(--ease-out); }
.ob-progress .op-l { font-size: 14px; color: var(--fg-4); transition: color var(--d-fast) var(--ease-out); }
.ob-progress li[data-state="active"] .op-n { color: var(--bg); background: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); transform: scale(1.06); }
.ob-progress li[data-state="active"] .op-l { color: var(--fg); }
.ob-progress li[data-state="done"] .op-n { color: var(--fg-2); background: color-mix(in oklab, var(--fg) 12%, transparent); box-shadow: none; }
.ob-progress li[data-state="done"] .op-l { color: var(--fg-3); }
.ob-progress .op-n { transition: transform var(--d-fast) var(--ease-out), background var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out); }

/* per-step aside: one quiet line, inside the step, not a box under the stepper */
.step-aside { margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--hairline); font-size: 13px; line-height: 1.7; color: var(--fg-4); max-width: 56ch; }
.step-aside b { color: var(--fg-3); font-weight: 500; }

/* the dossier that fills as you go */
.ob-dossier .card-eyebrow b { color: var(--ink); font-weight: 500; }
.ob-dossier .rows { margin-top: 4px; }
.ob-dossier .row { min-height: 42px; padding-block: 9px; grid-template-columns: minmax(92px, auto) minmax(0, 1fr); }
.ob-dossier .row dt { white-space: nowrap; }
.ob-dossier .row dd { font-family: var(--mono); font-size: 13px; color: var(--ink); text-align: right; overflow-wrap: anywhere; min-width: 0; }
.ob-dossier .row .empty { color: var(--g500); }
.ob-dossier .row.filled dd { animation: step-in 240ms var(--ease-out); }

/* steps */
.ob-form { max-width: 560px; }
.ob-mini { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--fg-4); margin-bottom: 24px; }
.ob-step { display: none; }
.ob-step.on { display: grid; gap: 24px; }
/* enter: the step's children cascade up; leave: the whole step slides toward its past */
.ob-step.on > * { opacity: 0; transform: translateY(6px); animation: mp-in 220ms var(--ease-out) forwards; }
.ob-step.on > *:nth-child(1) { animation-delay: 30ms; }
.ob-step.on > *:nth-child(2) { animation-delay: 60ms; }
.ob-step.on > *:nth-child(3) { animation-delay: 90ms; }
.ob-step.on > *:nth-child(4) { animation-delay: 120ms; }
.ob-step.on > *:nth-child(5) { animation-delay: 150ms; }
.ob-step.on > *:nth-child(6) { animation-delay: 180ms; }
.ob-step.on > *:nth-child(n+7) { animation-delay: 210ms; }
.ob-step.leave { display: grid; gap: 24px; pointer-events: none; animation: step-out 150ms var(--ease-out) forwards; }
.ob-step.leave.back-dir { animation-name: step-out-back; }
@keyframes step-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes step-out { to { opacity: 0; transform: translateX(-14px); } }
@keyframes step-out-back { to { opacity: 0; transform: translateX(14px); } }
@media (prefers-reduced-motion: reduce) {
  .ob-step.on > * { animation: none; opacity: 1; transform: none; }
  .ob-step.leave { animation: none; display: none; }
  .ob-dossier .row.filled dd { animation: none; }
}
.ob-step h2 { font-size: 28px; letter-spacing: -0.02em; }
.ob-step .step-sub { color: var(--fg-3); font-size: 15px; margin-top: -12px; max-width: 52ch; }
.ob-nav { display: flex; gap: 16px; align-items: center; margin-top: 8px; }
.ob-nav .lnk { font-size: 14px; color: var(--fg-3); }
.ob-note { font-family: var(--mono); font-size: 12px; color: var(--fg-4); }

/* plan picker */
.plan-pick { display: grid; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.plan-pick label { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 18px 20px; background: var(--bg); cursor: pointer; transition: background var(--d-fast) var(--ease-out); }
.plan-pick label:hover { background: color-mix(in oklab, var(--fg) 4%, var(--bg)); }
.plan-pick input { appearance: none; width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--hairline-strong); margin: 0; align-self: center; transition: box-shadow var(--d-fast) var(--ease-out); position: relative; }
.plan-pick input:checked { box-shadow: inset 0 0 0 1px var(--fg); }
.plan-pick input:checked::after { content: ""; position: absolute; inset: 4px; border-radius: 2px; background: var(--fg); }
.plan-pick label:has(input:checked) { background: color-mix(in oklab, var(--fg) 5%, var(--bg)); }
.plan-pick .pp-name { display: block; font-weight: 500; font-size: 16px; }
.plan-pick .pp-line { display: block; font-size: 13px; color: var(--fg-3); margin-top: 2px; }
.plan-pick .pp-meta { font-family: var(--mono); font-size: 12px; color: var(--fg-4); text-align: right; white-space: nowrap; }
.plan-pick .pp-meta b { display: block; color: var(--fg-2); font-weight: 500; }
@media (max-width: 640px) {
  .plan-pick label { grid-template-columns: 18px minmax(0, 1fr); }
  .plan-pick .pp-meta { grid-column: 2; text-align: left; white-space: normal; margin-top: 6px; }
  .plan-pick .pp-meta b { display: inline; }
  .plan-pick .pp-meta b::after { content: " · "; color: var(--fg-4); font-weight: 400; }
}

/* review block */
.ob-review { border: 1px solid var(--hairline); border-radius: var(--radius); padding: 4px 20px; }
.ob-review .sb-row { min-height: 44px; }

/* done: the finishing sequence */
.ob-done { display: none; }
.ob-done.on { display: block; }
.ob-done .od-mark { width: 76px; height: auto; margin-bottom: 32px; }
.ob-done .od-mark rect { fill: var(--fg); transform: scaleY(0); transform-origin: center bottom; transform-box: fill-box; }
.ob-done .od-mark .od-check { fill: var(--epi-measured); }
.ob-done.play .od-mark rect { animation: od-bar 300ms var(--ease-out) forwards; }
.ob-done.play .od-mark rect:nth-child(2) { animation-delay: 70ms; }
.ob-done.play .od-mark rect:nth-child(3) { animation-delay: 140ms; }
.ob-done.play .od-mark rect:nth-child(4) { animation-delay: 210ms; }
.ob-done.play .od-mark .od-check { animation: od-bar 300ms var(--ease-out) 280ms forwards, od-blink 560ms step-end 700ms 1; }
@keyframes od-bar { to { transform: scaleY(1); } }
@keyframes od-blink { 0%, 52% { opacity: 1; } 53%, 100% { opacity: 0; } }
.ob-done .rv-seq { opacity: 0; transform: translateY(6px); }
.ob-done.play .rv-seq { animation: mp-in 240ms var(--ease-out) forwards; animation-delay: calc(560ms + var(--i, 0) * 120ms); }
@media (prefers-reduced-motion: reduce) {
  .ob-done .od-mark rect { transform: none; animation: none; }
  .ob-done .rv-seq { opacity: 1; transform: none; animation: none; }
}
.od-next { list-style: none; margin: 40px 0 0; padding: 0; max-width: 480px; }
.od-next li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding-block: 14px; border-top: 1px solid var(--hairline); font-size: 15px; color: var(--fg-2); }
.od-next li:last-child { border-bottom: 1px solid var(--hairline); }
.od-next .mp-n { font-family: var(--mono); font-size: 12px; color: var(--fg-4); padding-top: 3px; }

/* ============ 15i. method figures (hairline concept diagrams) ============ */
.mviz { margin-top: 32px; }
.mviz svg { width: 100%; height: auto; }
.mviz text { font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; fill: var(--fg-4); }
.mviz text.t2 { fill: var(--fg-2); font-size: 12px; }
.mviz text.tb { fill: var(--epi-measured); }
.mviz .bx { fill: none; stroke: var(--fg-4); stroke-opacity: 0.5; }
.mviz .bx2 { fill: none; stroke: var(--fg-3); stroke-opacity: 0.8; }
.mviz .bxd { fill: none; stroke: var(--fg-4); stroke-opacity: 0.6; stroke-dasharray: 4 4; }
.mviz .bxb { fill: none; stroke: var(--epi-measured); stroke-opacity: 0.85; }
.mviz .ln { stroke: var(--fg-4); stroke-opacity: 0.45; fill: none; }
.mviz .dot { fill: var(--fg-4); }
.mviz .dotb { fill: var(--epi-measured); }
.mviz .curve-caption { margin-top: 10px; }

/* ============ 16. misc ============ */
.two-col-copy { columns: 2; column-gap: 64px; max-width: 960px; }
.two-col-copy p { break-inside: avoid; margin-bottom: 16px; color: var(--fg-2); }
@media (max-width: 768px) { .two-col-copy { columns: 1; } }
.footnote { font-family: var(--mono); font-size: 12px; color: var(--fg-4); margin-top: 12px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--fg); color: var(--bg); padding: 12px 18px; z-index: 200; border-radius: var(--radius); }
.skip:focus-visible { left: 16px; top: 16px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============ 17. anchor offset + docbar ============ */
/* jumped-to headings land below the sticky chrome, never under it */
html { scroll-padding-top: 88px; }

/* sticky reading bar on long documents (legal); see initDocbar in gpd.js */
.docbar {
  position: sticky; top: 64px; z-index: 38;
  background: color-mix(in oklab, var(--bg) 94%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.docbar::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px;
  width: calc(var(--p, 0) * 100%);
  background: var(--fg);
  transition: width 80ms linear;
}
.db-in {
  display: flex; align-items: center; gap: 16px; height: 44px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em;
}
.db-lbl { color: var(--fg-4); flex: none; }
.db-n { color: var(--fg-4); flex: none; margin-left: auto; }
.db-roll {
  position: relative; flex: 1; min-width: 0; height: 100%;
  overflow: hidden; perspective: 320px;
}
.db-cur {
  position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--sans); font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em; color: var(--fg);
  transition: transform 320ms var(--ease-out), opacity 320ms var(--ease-out);
  transform-origin: 50% 50%;
}
.db-cur.db-enter { transform: translateY(calc(var(--dir, 1) * 130%)) rotateX(calc(var(--dir, 1) * -58deg)); opacity: 0; }
.db-cur.db-leave { transform: translateY(calc(var(--dir, 1) * -130%)) rotateX(calc(var(--dir, 1) * 58deg)); opacity: 0; }
@media (max-width: 640px) { .db-n { display: none; } }

/* ============ 18. the divider as furniture (DV-01) ============ */
.rule-bc { display: flex; align-items: center; gap: 18px; color: var(--fg); }
.rule-bc::before, .rule-bc::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.rule-bc svg { height: 13px; width: auto; flex: none; opacity: 0.85; }
.rule-bc + .section, .rule-bc + .chapter { border-top: 0; }
.legal-body .rule-bc + section { border-top: 0; }
.footer .band-lead { border-top: 0; }

/* the record is being written: the pulse line carries the cursor */
@keyframes gpd-blink { 0%, 52% { opacity: 1; } 53%, 100% { opacity: 0; } }
.f-grew::after {
  content: ""; display: inline-block; width: 0.42em; height: 0.9em;
  margin-left: 0.4em; vertical-align: -0.08em;
  background: var(--epi-measured);
  animation: gpd-blink 1.12s step-end infinite;
}
@media (prefers-reduced-motion: reduce) { .f-grew::after { animation: none; } }
