/* QuantKit v12 homepage — 16 Nov 2026 ship. */

/* ---------- Fonts (local only) ---------- */
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/IBMPlexSans-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/IBMPlexSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: block; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: block; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: block; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }

/* ---------- Tokens ---------- */
:root {
  --paper: #F1F4F3;
  --sheet: #FFFFFF;
  --ink: #14232B;
  --ink-2: #43555D;
  --teal: #0B6E78;
  --teal-dk: #095A63;
  --rule: #C5D0D0;
  --edge: #6E8087;
  --spread: #79AFB5;
  --board: #0F2832;
  --tint: #E8EEED;
  --hair: #E1E8E8;
  --r: 3px;

  --banner-h: 26px;
  --head-h: 62px;
  --head-h-compact: 52px;
  --pin-top: 92px;

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --shadow-window:
    0 1px 1px rgba(20, 35, 43, .06),
    0 3px 6px rgba(20, 35, 43, .06),
    0 12px 24px rgba(20, 35, 43, .07),
    0 32px 64px rgba(20, 35, 43, .09),
    0 64px 120px rgba(20, 35, 43, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--banner-h) + var(--head-h-compact) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: var(--r); }

/* Mono figures + decimal fix */
.fig { font-family: var(--mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.predec, .dec { letter-spacing: -0.14em; }

/* ---------- Top spacer + header ---------- */
.site-top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
/* Empty 26px spacer: keeps approved --banner-h first-fold geometry; paper, not the ink mock bar. */
.top-spacer {
  height: var(--banner-h);
  background: #F1F4F3; /* var(--paper); no text */
  overflow: hidden;
}
.site-header {
  position: relative;
  height: var(--head-h);
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(241, 244, 243, 0);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition: height .25s ease, background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease, -webkit-backdrop-filter .25s ease;
}
.site-header.is-compact {
  height: var(--head-h-compact);
  background: rgba(241, 244, 243, .94); /* keeps paper behind the Q bowl */
  border-bottom-color: var(--rule);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
/* v12: paper tuck under the compact header (banner 26 + header 52 = 78px, pin-top 92px; +6px margin of safety, ghost sheets start at ~104px), so hero chrome
   (the top of the hero CTA row, teal primary, #0B6E78) cannot peek through the 14px gap above the pin and ghost sheets. */
html.pin-mode .site-header.is-compact::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: calc(var(--pin-top) - var(--banner-h) - var(--head-h-compact) + 6px); background: var(--paper); pointer-events: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-q { width: 36px; height: 36px; }
.brand-word { font: 600 22px/1 var(--sans); letter-spacing: -0.02em; color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav-toggle { display: none; }
.nav-link { position: relative; font: 600 14px/1 var(--sans); color: var(--ink-2); padding: 8px 0; transition: color .15s ease; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: 0 50%; transition: transform .2s ease; }
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 26px;
  font: 600 17px/1 var(--sans); letter-spacing: -0.005em;
  border-radius: var(--r);
  transition: background-color .15s ease, color .15s ease, box-shadow .2s ease, transform .2s ease;
}
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 1px 2px rgba(11, 110, 120, .35); }
.btn-primary:hover { background: var(--teal-dk); transform: translateY(-1px); box-shadow: 0 1px 2px rgba(11, 110, 120, .35), 0 8px 16px -6px rgba(11, 110, 120, .5); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { position: relative; color: var(--ink); padding: 0 14px; }
.btn-ghost::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 13px; height: 1px; background: var(--ink); transform-origin: 0 50%; transition: transform .25s ease, background-color .15s ease; }
.btn-ghost:hover { color: var(--teal); }
.btn-ghost:hover::after { background: var(--teal); transform: scaleX(1.0); }
.btn-ghost::after { transform: scaleX(.0); }
.btn-ghost:focus-visible::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 1; /* hero type + CTAs always paint above the pin's wash */
  padding: calc(var(--banner-h) + var(--head-h) + 22px) 32px 0;
  text-align: center;
}
.hero-title {
  max-width: 1240px; margin: 0 auto;
  font: 600 clamp(44px, 6.2vw, 92px)/0.98 var(--sans);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-lede {
  margin-top: 14px;
  font: 400 clamp(20px, 1.95vw, 28px)/1.3 var(--serif);
  color: var(--ink-2);
}
.cta-row { margin-top: 20px; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero .cta-row.is-tucked { opacity: 0; pointer-events: none; }
.cta-row-left { justify-content: flex-start; }

/* ---------- v9 atmosphere: paper grain, paper-to-paper wash, hairline rules, hero still ----------
   Everything here is decorative, pointer-events:none, and paints below in-flow content (z-index -1),
   so grain / rules / still can never sit on the opaque window, sheet, ledger figures or the header plate. */
main { position: relative; }
.closer { position: relative; }

/* Paper grain + fibre: tiny feTurbulence tiles, monochrome ink at low alpha, fixed to the viewport. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .045;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='g' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .078  0 0 0 0 .137  0 0 0 0 .169  1.5 0 0 0 -.62'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='480' height='480'><filter id='f' x='0' y='0' width='100%25' height='100%25' color-interpolation-filters='sRGB'><feTurbulence type='fractalNoise' baseFrequency='.014 .5' numOctaves='2' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .078  0 0 0 0 .137  0 0 0 0 .169  1.1 0 0 0 -.5'/></filter><rect width='100%25' height='100%25' filter='url(%23f)'/></svg>");
  background-size: 240px 240px, 480px 480px;
}

/* Soft paper wash behind the product window: lighter paper (~#F8FAF9 at centre) fading back into #F1F4F3.
   Translucent white so the grain stays visible through it; no hue, no glow behind type. */
.stage-pin::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 0; right: 0; top: -150px; bottom: -130px;
  background: radial-gradient(ellipse 54% 50% at 50% 50%, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .5) 38%, rgba(255, 255, 255, 0) 100%);
}
.closer::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 0; right: 0; top: 0; bottom: 0;
  background: radial-gradient(ellipse 54% 56% at 50% 50%, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .5) 40%, rgba(255, 255, 255, 0) 100%);
}

/* Hero still (Codex): outer margins only. Intersected masks dissolve it into paper before the content column,
   the product window and the header band, so the Q at the top-left never sits on it. */
.atmo { position: absolute; left: 0; right: 0; z-index: -1; pointer-events: none; overflow: hidden; display: none; }
.atmo-hero {
  top: 0; height: 940px;
  -webkit-mask-image:
    linear-gradient(90deg, #000 0, #000 calc(50% - 760px), rgba(0,0,0,.6) calc(50% - 690px), transparent calc(50% - 600px), transparent calc(50% + 600px), rgba(0,0,0,.6) calc(50% + 690px), #000 calc(50% + 760px), #000 100%),
    linear-gradient(180deg, transparent 0, transparent 104px, #000 230px, #000 640px, transparent 940px);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, #000 0, #000 calc(50% - 760px), rgba(0,0,0,.6) calc(50% - 690px), transparent calc(50% - 600px), transparent calc(50% + 600px), rgba(0,0,0,.6) calc(50% + 690px), #000 calc(50% + 760px), #000 100%),
    linear-gradient(180deg, transparent 0, transparent 104px, #000 230px, #000 640px, transparent 940px);
  mask-composite: intersect;
}
.atmo-hero img { position: absolute; left: 50%; top: 0; width: max(1536px, 100%); max-width: none; height: auto; transform: translateX(-50%); }

/* Hairline column rules + short margin rules; they sit outside the headline and the window, never over them. */
.atmo-rules { top: 0; height: 1180px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 96px, #000 220px, #000 700px, transparent 1180px);
  mask-image: linear-gradient(180deg, transparent 0, transparent 96px, #000 220px, #000 700px, transparent 1180px); }
.ar { position: absolute; display: block; background: var(--rule); opacity: .5; }
.ar-v { top: 0; bottom: 0; width: 1px; }
.ar-l { left: calc(50% - 672px); }
.ar-r { left: calc(50% + 672px); }
.ar-h { height: 1px; }
.ar-hl1, .ar-hl2 { left: 0; width: calc(50% - 672px); }
.ar-hr1, .ar-hr2 { right: 0; width: calc(50% - 672px); }
.ar-hl1, .ar-hr1 { top: 300px; opacity: .4; }
.ar-hl2, .ar-hr2 { top: 640px; opacity: .3; }

@media (min-width: 1360px) { .atmo { display: block; } }

/* v12: first-fold fade. Pin mode only, before the pin starts: the viewport bottom dissolves into paper so the fold
   ends on a complete ledger row. js/main.js sets --fold-top (end of the last complete row) and --fold-o (1 → 0 as the
   page scrolls to the pin start); the pinned ledger therefore still shows all eight rows. */
.fold-fade { display: none; }
html.pin-mode .fold-fade {
  display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; pointer-events: none;
  top: var(--fold-top, 100vh); opacity: var(--fold-o, 0);
  background: linear-gradient(180deg, rgba(241, 244, 243, 0) 0, var(--paper) 20px, var(--paper) 100%);
}

/* ---------- Product window ---------- */
.stage-pin { position: relative; padding: 40px 32px 24px; }
.window-wrap { position: relative; width: min(1180px, 100%); margin: 0 auto; isolation: isolate; }
/* v9: three stacked paper sheets behind the window / closer sheet (light paper, hairline, soft shadow) */
.window-wrap::before, .window-wrap::after, .sheet-wrap::before, .sheet-wrap::after, .ghost {
  content: ""; position: absolute;
  border: 1px solid var(--rule); border-radius: var(--r);
}
.window-wrap::before, .sheet-wrap::before { z-index: -1; left: 14px; right: 14px; top: -10px; bottom: -5px; background: #FAFBFB; box-shadow: 0 2px 8px rgba(20, 35, 43, .06); }
.window-wrap::after,  .sheet-wrap::after  { z-index: -2; left: 30px; right: 30px; top: -19px; bottom: -10px; background: #F6F8F8; box-shadow: 0 2px 8px rgba(20, 35, 43, .05); }
.ghost-3 { z-index: -3; left: 46px; right: 46px; top: -28px; bottom: -15px; background: #F3F6F5; box-shadow: 0 3px 10px rgba(20, 35, 43, .05); }
.sheet-wrap { position: relative; width: min(1180px, 100%); margin: 0 auto; isolation: isolate; }

.window {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  box-shadow: var(--shadow-window);
  overflow: hidden;
}
.win-bar {
  display: flex; align-items: stretch; justify-content: space-between;
  height: 44px;
  background: #F7F9F8;
  border-bottom: 1px solid var(--rule);
}
.win-title { display: grid; align-items: center; padding: 0 20px; font: 600 14px/1 var(--sans); color: var(--ink); }
.wt { grid-area: 1 / 1; opacity: 0; transition: opacity .25s ease; white-space: nowrap; }
.window[data-stage="ledger"] .wt-ledger,
.window[data-stage="schematic"] .wt-schematic,
.window[data-stage="toolkit"] .wt-toolkit { opacity: 1; }
html:not(.pin-mode) .wt { opacity: 0; }
html:not(.pin-mode) .wt-ledger { opacity: 1; }

.tabs { display: flex; }
.tab {
  position: relative; display: flex; align-items: center; padding: 0 22px;
  font: 600 13.5px/1 var(--sans); color: var(--ink-2);
  border-left: 1px solid var(--hair);
  transition: color .15s ease, background-color .15s ease;
}
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s ease; }
.tab:hover { background: var(--tint); color: var(--ink); }
.tab[aria-current="true"] { color: var(--teal); }
html.pin-mode .tab[aria-current="true"]::after { transform: scaleX(1); }

.win-body { position: relative; }
.panel { position: relative; }
.panel + .panel { border-top: 1px solid var(--rule); }
.panel-stack-label { padding: 18px 24px 0; font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

/* pinned mode: panels overlay inside a fixed-height body */
html.pin-mode { --body-h: clamp(470px, calc(100vh - 92px - 44px - 74px - 36px), 560px); }
html.pin-mode .win-body { height: var(--body-h); }
html.pin-mode .panel { position: absolute; inset: 0; border-top: 0; overflow: hidden; }
html.pin-mode .panel-schematic, html.pin-mode .panel-sch, html.pin-mode .panel-toolkit { opacity: 0; visibility: hidden; }
html.pin-mode .panel-stack-label { display: none; }

/* ---------- Ledger ---------- */
.panel-ledger { display: flex; flex-direction: column; padding: 14px 24px 12px; }
html:not(.pin-mode) .panel-ledger { padding-top: 0; }
html:not(.pin-mode) .panel-stack-label { padding-left: 0; padding-bottom: 12px; }
.lg-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 12px; font-size: 13px; color: var(--ink-2); }
.lg-inputs, .lg-legend { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lg-lbl { font: 600 11.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
/* published period values: plain type, no field chrome (not inputs) */
.lg-pv { display: inline-flex; align-items: baseline; gap: 6px; color: var(--ink-2); }
.lg-pv b { font-weight: 500; font-size: 13px; color: var(--ink); }
.lg-x { color: var(--ink-2); }
.lg-eq { margin-left: 8px; }
.lg-legend { gap: 18px; }
.lg-key { display: inline-flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.lg-key .sw { margin-right: 0; }
.sw-spread { background: var(--spread); }
.sw-comm { background: var(--teal); }

.lg-cols, .lg-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) 100px minmax(260px, 2.6fr) 100px 126px;
  column-gap: 22px;
  align-items: center;
}
.lg-cols {
  padding: 8px 8px; margin: 0 -8px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font: 600 11.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}
.lg-cols .r, .lg-allin, .lg-comm, .lg-period { text-align: right; }
.lg-scale { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0; text-transform: none; font-weight: 400; }
.lg-scale .fig:nth-child(2) { margin-left: -6px; }

.lg-rows { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.lg-row {
  flex: 1 1 0; min-height: 46px;
  margin: 0 -8px; padding: 0 8px;
  border-bottom: 1px solid var(--hair);
  box-shadow: inset 2px 0 0 transparent;
  transition: background-color .15s ease, box-shadow .15s ease;
  cursor: default;
}
.lg-row:hover, .lg-row:focus-visible, .lg-row.is-hl { background: var(--tint); box-shadow: inset 2px 0 0 var(--teal); outline: none; }
.lg-name { font-size: 15px; line-height: 1.25; }
.lg-name b { font-weight: 600; }
.lg-name .acct { color: var(--ink-2); }
.lg-note { display: block; font-size: 11.5px; color: var(--ink-2); margin-top: 1px; }
.lg-row-note { flex-grow: 1.25; }
.lg-allin { font-weight: 500; font-size: 14.5px; }
.lg-comm, .lg-period { font-size: 14px; color: var(--ink-2); }
.lg-period { color: var(--ink); font-weight: 500; }

.lg-track { position: relative; height: 20px; border-left: 1px solid var(--edge); }
.lg-track::before, .lg-track::after { content: ""; position: absolute; top: -9px; bottom: -9px; width: 1px; background: var(--hair); pointer-events: none; }
.lg-track::before { left: 50%; }
.lg-track::after { right: 0; background: var(--rule); }
.bar { position: relative; z-index: 1; display: flex; width: 100%; height: 100%; transform-origin: 0 50%; }
.seg { display: block; height: 100%; }
.seg.spread { background: var(--spread); border-radius: 2px 0 0 2px; border-right: 1px solid var(--sheet); }
.seg.comm { background: var(--teal); border-radius: 0 2px 2px 0; }

.lg-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 12px; }
.lg-readout { font-size: 14px; color: var(--ink-2); }
.lg-readout b { color: var(--ink); font-weight: 600; }
.lg-readout .fig { font-size: 14px; color: var(--ink); }
.lg-readout .sw { margin-right: 6px; }
.lg-fine { font-size: 12.5px; color: var(--ink-2); text-align: right; }

/* ---------- Schematic ---------- */
.panel-sch { display: flex; flex-direction: column; padding: 16px 28px 12px; }
html:not(.pin-mode) .panel-sch { padding-top: 0; }
.sch-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-bottom: 6px; }
.sch-title { display: flex; align-items: center; gap: 12px; font: 600 20px/1.2 var(--sans); letter-spacing: -0.01em; }
.sch-sub { font-size: 13px; color: var(--ink-2); }
.sch-fig { flex: 1; min-height: 0; margin: 0; display: flex; flex-direction: column; }
.sch { flex: 1; min-height: 0; width: 100%; display: block; }
html:not(.pin-mode) .sch { height: auto; flex: none; }
.sch-cap { padding-top: 6px; font: 600 13px/1.3 var(--sans); color: var(--ink-2); }

.tag-waitlist {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal); border: 1px solid var(--teal); border-radius: var(--r); background: transparent;
}

.sch text { font-family: var(--sans); font-size: 13px; fill: var(--ink); }
.sch .tm { fill: var(--ink-2); font-size: 12px; }
.sch .tb { font-weight: 600; }
.sch .inv { fill: #fff; font-weight: 600; }
.sch .badge-bg { fill: var(--ink); }
.sch .badge-t { fill: #fff; font-weight: 600; font-size: 12px; text-anchor: middle; }
.sch .pill { fill: var(--ink); }
.sch .pill-t { fill: #fff; font-weight: 600; font-size: 12.5px; }
.sch .st-on { fill: var(--spread); }
.sch .st-on-t { fill: var(--board); font-weight: 600; font-size: 12.5px; }
.sch .st-off-t { fill: var(--paper); font-weight: 600; font-size: 12.5px; }
.sch .board { fill: var(--board); }
.sch .b-used { fill: var(--teal); }
.sch .b-left { fill: rgba(121, 175, 181, .3); stroke: var(--spread); stroke-width: 1; }
.sch .b-floor { fill: #fff; stroke: var(--rule); stroke-width: 1; }
.sch .b-breach { stroke: var(--edge); stroke-width: 1; }
.sch .chip { fill: var(--sheet); }
.sch .ev { fill: rgba(11, 110, 120, .1); stroke: var(--teal); stroke-width: 1; }
.sch .hatch-line { stroke: var(--edge); stroke-width: 1.5; }
.sch .hatch-line-b { stroke: var(--edge); stroke-width: 1.5; }
.sch .ln-thin { stroke: var(--edge); stroke-width: 1; }
.sch .ln-dot { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 4; }
.sch .ln-cap { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 6 4; }
.sch .ln-floor { stroke: var(--ink); stroke-width: 2; }
.sch .ln-mark { stroke: var(--ink); stroke-width: 1.5; }
.sch .br { fill: none; stroke: var(--edge); stroke-width: 1; }
.sch .sr { transform-box: fill-box; }

/* ---------- Toolkit ---------- */
.panel-toolkit { padding: 14px 28px 10px; display: flex; flex-direction: column; }
html:not(.pin-mode) .panel-toolkit { padding-top: 0; padding-bottom: 20px; }
.tk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-bottom: 8px; }
.tk-title { font: 600 20px/1.2 var(--sans); letter-spacing: -0.01em; }
.tk-sub { font-size: 13px; color: var(--ink-2); }
.tk-groups { display: flex; flex-direction: column; gap: 8px; }
.tk-group-title { padding: 0 0 6px; font: 600 14px/1.2 var(--sans); letter-spacing: -0.005em; color: var(--ink-2); }
.tk-list { border-top: 1px solid var(--rule); }
.tk-row {
  display: grid; grid-template-columns: 40px minmax(340px, 1fr) minmax(0, 1.25fr) 190px;
  column-gap: 24px; align-items: center;
  min-height: 62px; margin: 0 -12px; padding: 6px 12px;
  border-bottom: 1px solid var(--hair);
  transition: background-color .15s ease;
}
.tk-row:hover { background: var(--tint); }
.tk-n { font: 600 13px/1 var(--sans); color: var(--ink-2); letter-spacing: .04em; }
.tk-name { font: 600 clamp(18px, 1.6vw, 23px)/1.1 var(--sans); white-space: nowrap; letter-spacing: -0.02em; transition: color .15s ease; }
.tk-row:hover .tk-name { color: var(--teal); }
.tk-desc { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.tk-desc a { color: var(--ink-2); border-bottom: 1px solid var(--rule); transition: color .15s ease, border-color .15s ease; }
.tk-desc a:hover { color: var(--teal); border-bottom-color: var(--teal); }
.tk-status { justify-self: end; }
a.tk-status.tag-waitlist { transition: background-color .15s ease, color .15s ease; }
a.tk-status.tag-waitlist:hover { background: var(--teal); color: #fff; }
.tk-pub { font: 600 13px/1 var(--sans); color: var(--teal); border-bottom: 1px solid transparent; transition: border-color .15s ease; }
.tk-pub:hover { border-bottom-color: var(--teal); }
.tk-endpoint { margin-top: 8px; padding: 6px 12px; background: #FAFBFB; border: 1px solid var(--hair); border-radius: var(--r); font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.tk-endpoint code { font: 500 11.5px/1 var(--mono); color: var(--ink); margin-right: 5px; }
.tk-endpoint code:last-of-type { margin-right: 0; }
.tk-ep-k { font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; margin-right: 4px; }
.tk-ep-sep { margin: 0 4px; }
.tk-ep-fine { display: block; }

/* short desktop viewports: the pinned body drops below 560px, so the optional endpoint strip steps aside and rows tighten */
@media (max-height: 805px) {
  html.pin-mode .tk-row { min-height: 46px; }
  html.pin-mode .tk-endpoint { display: none; }
}

/* ---------- Stage caption ---------- */
.stage-caption { width: min(1180px, 100%); margin: 30px auto 0; display: grid; grid-template-columns: 1fr 220px; align-items: center; gap: 32px; font-size: 14px; color: var(--ink-2); }
.cap-stack { display: grid; }
.cap { grid-area: 1 / 1; opacity: 0; transform: translateY(4px); transition: opacity .3s ease, transform .3s ease; }
.cap b { color: var(--ink); font-weight: 600; margin-right: 10px; }
.stage-pin[data-stage="ledger"] .cap-ledger,
.stage-pin[data-stage="schematic"] .cap-schematic,
.stage-pin[data-stage="toolkit"] .cap-toolkit { opacity: 1; transform: none; }
.stage-meter { height: 2px; background: var(--rule); border-radius: 1px; overflow: hidden; }
.stage-meter i { display: block; height: 100%; background: var(--teal); transform: scaleX(0); transform-origin: 0 50%; }
html:not(.pin-mode) .stage-caption { display: none; }

/* ---------- Store (typographic list, after the pin, before the closer) ---------- */
.store-section { position: relative; padding: 88px 32px 0; }
.store-inner { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(280px, 4fr) minmax(0, 7fr); column-gap: 64px; align-items: start; }
.store-title { font: 600 clamp(32px, 3.6vw, 52px)/1.05 var(--sans); letter-spacing: -0.03em; }
.store-lede { margin-top: 16px; max-width: 440px; text-wrap: pretty; font: 400 clamp(18px, 1.5vw, 21px)/1.4 var(--serif); color: var(--ink-2); }
.store-lede a { color: var(--ink); border-bottom: 1px solid var(--rule); transition: color .15s ease, border-color .15s ease; }
.store-lede a:hover { color: var(--teal); border-bottom-color: var(--teal); }
.store-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.store-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; margin: 0 -12px; padding: 0 12px; border-bottom: 1px solid var(--hair); transition: background-color .15s ease; }
.store-row:hover { background: var(--tint); }
.store-name { font: 600 clamp(18px, 1.6vw, 23px)/1.15 var(--sans); letter-spacing: -0.02em; }
.store-go { font: 600 14px/1 var(--sans); color: var(--teal); padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .15s ease; white-space: nowrap; }
.store-go:hover { border-bottom-color: var(--teal); }
.store-more { grid-column: 2; margin-top: 18px; font: 600 14px/1 var(--sans); }
.store-more a { color: var(--ink-2); border-bottom: 1px solid var(--rule); padding-bottom: 2px; transition: color .15s ease, border-color .15s ease; }
.store-more a:hover { color: var(--teal); border-bottom-color: var(--teal); }

/* ---------- Closer + footer ---------- */
.closer { padding: 88px 32px 72px; }
.closer::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; display: none;
  left: calc(50% - 672px); right: calc(50% - 672px); top: 0; bottom: 0;
  border-left: 1px solid rgba(197, 208, 208, .5); border-right: 1px solid rgba(197, 208, 208, .5);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 35%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 35%, #000 70%, transparent 100%);
}
@media (min-width: 1360px) { .closer::after { display: block; } }
.sheet { width: 100%; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow-window); overflow: hidden; }
.sheet-bar { height: 44px; display: flex; align-items: center; padding: 0 20px; background: #F7F9F8; border-bottom: 1px solid var(--rule); font: 600 14px/1 var(--sans); }
.sheet-body { padding: 56px 56px 48px; }
.closer-title { max-width: 900px; font: 600 clamp(32px, 4.2vw, 60px)/1.08 var(--sans); letter-spacing: -0.03em; text-wrap: balance; }
.closer-lede { margin-top: 18px; font: 400 clamp(18px, 1.6vw, 22px)/1.35 var(--serif); color: var(--ink-2); }
.closer .cta-row { margin-top: 28px; }
.closer-fine { margin-top: 20px; font-size: 13px; color: var(--ink-2); }

.site-footer { border-top: 1px solid var(--rule); padding: 28px 32px 40px; }
.foot-grid { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: 120px 1fr auto; gap: 40px; align-items: start; font-size: 13px; color: var(--ink-2); }
.foot-brand { font: 600 16px/1.2 var(--sans); color: var(--ink); letter-spacing: -0.01em; }
.foot-method { max-width: 720px; line-height: 1.55; }
.foot-method b { color: var(--ink); font-weight: 600; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 18px; max-width: 310px; font-weight: 600; }
.foot-nav a { transition: color .15s ease; }
.foot-nav a:hover { color: var(--teal); }

/* Legal block appended for the live homepage ship: ink-2, small type, a rule, no decorative chrome. */
.footer-legal {
  width: min(1180px, 100%);
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}
.footer-disclosure strong { color: var(--ink); font-weight: 600; }
.footer-legal-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.footer-legal-nav a { transition: color .15s ease; }
.footer-legal-nav a:hover { color: var(--teal); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 16px; }

/* ---------- Responsive (stacked, no pin) ---------- */
@media (max-width: 1100px) {
  .lg-cols, .lg-row { grid-template-columns: minmax(180px, 1fr) 90px minmax(160px, 1.6fr) 90px 110px; column-gap: 14px; }
  .tk-row { grid-template-columns: 36px 1fr 1fr 150px; column-gap: 16px; }
  .tk-name { white-space: normal; }
}
@media (max-width: 860px) {
  :root { --head-h: 56px; }
  .site-header { padding: 0 16px; }
  .nav-toggle { display: block; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); color: var(--ink); padding: 8px 12px; font: 600 14px/1 var(--sans); }
  .site-header { background: rgba(241, 244, 243, .94); }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 16px; background: var(--paper); border-bottom: 1px solid var(--rule); align-items: stretch; flex-direction: column; gap: 4px; }
  .site-nav.is-open { display: flex; }
  .site-nav .nav-link { display: block; padding: 10px 0; }
  .site-nav .btn { align-self: flex-start; margin-top: 8px; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .stage-pin { padding: 40px 12px 16px; }
  .win-bar { flex-direction: column; height: auto; }
  .win-title { padding: 12px 16px; }
  .tabs { border-top: 1px solid var(--hair); }
  .tab { flex: 1; justify-content: center; height: 40px; padding: 0; border-left: 0; }
  .lg-head, .lg-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .lg-fine { text-align: left; }
  .lg-cols { display: none; }
  .lg-row { grid-template-columns: 1fr auto auto; grid-template-areas: "n a p" "t t t"; row-gap: 8px; padding: 12px 8px; }
  .lg-name { grid-area: n; } .lg-allin { grid-area: a; } .lg-period { grid-area: p; min-width: 84px; } .lg-track { grid-area: t; } .lg-comm { display: none; }
  .panel-ledger, .panel-sch, .panel-toolkit { padding-left: 16px; padding-right: 16px; }
  .sch-head, .tk-head { flex-direction: column; gap: 4px; }
  .tk-name { white-space: normal; }
  .tk-row { grid-template-columns: 1fr; row-gap: 6px; padding-top: 16px; padding-bottom: 16px; }
  .tk-n { display: none; }
  .tk-status { justify-self: start; }
  .store-section { padding: 56px 16px 0; }
  .store-inner { grid-template-columns: 1fr; row-gap: 24px; }
  .store-more { grid-column: 1; }
  .closer { padding: 56px 12px 40px; }
  .sheet-body { padding: 32px 20px; }
  .foot-grid { grid-template-columns: 1fr; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
