/* Tieout — concept landing page by FREELANCED (v2, "columnar ledger")
   The visual language is borrowed from the work itself: columnar ledger paper, auditor tickmarks,
   double-underlined totals, a red pencil used only for what doesn't tie, green for what does.
   Type: Source Serif 4 (display) · Schibsted Grotesk (UI, body) · IBM Plex Mono (figures only). */

@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/IBMPlexMono-normal-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/IBMPlexMono-normal-500.woff2) format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/SchibstedGrotesk-normal-400_800.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/SourceSerif4-normal-300_700.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 300 700; font-display: swap; src: url(../fonts/SourceSerif4-italic-300_700.woff2) format('woff2'); }

:root {
  --paper: #f2f1e9;
  --paper-2: #e8e7dd;
  --sheet: #fbfaf5;
  --surface: #fdfdfa;
  --surface-2: #f6f5ef;
  --ink: #141613;
  --ink-2: #30332d;
  --muted: #5d6058;
  --faint: #696c64;
  --line: rgba(20, 22, 19, .14);
  --line-2: rgba(20, 22, 19, .08);
  --rule: rgba(46, 104, 82, .13);
  --rule-strong: rgba(46, 104, 82, .34);
  --ledger: #2e6852;
  --ledger-tint: #e2ece5;
  --pencil: #cf3e1e;
  --pencil-ink: #ad3119;
  --pencil-tint: #f6e4dc;
  --desk: #111412;
  --desk-2: #191d1a;
  --on-desk: #ecede6;
  --on-desk-muted: #a6aa9f;

  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --sans: 'Schibsted Grotesk', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;

  /* type scale: 12 / 14 / 17 / 22 / 32 / 48 / 80 / 128 */
  --t12: 12px; --t14: 14px; --t17: 17px; --t22: clamp(19px, 1.55vw, 22px);
  --t32: clamp(26px, 2.25vw, 32px); --t48: clamp(34px, 3.35vw, 48px);
  --t80: clamp(44px, 5.6vw, 80px); --t128: clamp(52px, 8.9vw, 128px);

  --gutter: clamp(20px, 3.6vw, 56px);
  --max: 1440px;
  --section: clamp(104px, 12vw, 176px);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --shadow-sm: 0 1px 2px rgba(20,22,19,.06), 0 0 0 1px rgba(20,22,19,.07);
  --shadow-lg: 0 2.8px 2.2px rgba(0,0,0,.02), 0 6.7px 5.3px rgba(0,0,0,.028), 0 12.5px 10px rgba(0,0,0,.035), 0 22.3px 17.9px rgba(0,0,0,.042), 0 41.8px 33.4px rgba(0,0,0,.05), 0 100px 80px rgba(0,0,0,.07);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--t17)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, h4, h5, p, figure, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img, svg { display: block; }
/* icons drawn with <use>: stroke must be inherited from the <svg>, CSS can't reach inside the symbol */
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tm .g svg, .legend li .g svg, .wp-row .mark svg { stroke-width: 1.8; }
.stamp svg { stroke-width: 2.2; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--ledger); color: #fff; }
:focus-visible { outline: 2px solid var(--ledger); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 18px; transform: translateY(-200%); transition: transform .3s var(--ease); }
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 28px); }

/* ── Columnar ruling: the page is drawn on ledger paper ── */
.ruling { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.ruling .wrap { height: 100%; }
.ruling .grid { height: 100%; position: relative; }
.ruling i { border-left: 1px solid var(--rule); height: 100%; }
.ruling i:last-child { border-right: 1px solid var(--rule); }
.ruling .grid::before { content: ''; position: absolute; top: 0; bottom: 0; left: -14px; width: 3px; border-left: 1px solid var(--rule-strong); border-right: 1px solid var(--rule-strong); }

/* ── Type ── */
.h-xl { font-family: var(--serif); font-weight: 420; font-size: var(--t128); line-height: .98; letter-spacing: -.026em; }
.h-l { font-family: var(--serif); font-weight: 420; font-size: var(--t80); line-height: 1.02; letter-spacing: -.022em; }
.h-m { font-family: var(--serif); font-weight: 440; font-size: var(--t48); line-height: 1.06; letter-spacing: -.018em; }
.lead { font-size: var(--t22); line-height: 1.5; color: var(--ink-2); letter-spacing: -.005em; }
.body { color: var(--muted); font-size: var(--t17); line-height: 1.65; }
.small { font-size: var(--t14); color: var(--muted); line-height: 1.55; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dbl { text-decoration: underline double var(--ledger); text-decoration-thickness: .045em; text-underline-offset: .14em; text-decoration-skip-ink: none; }
.pencil-u { background: linear-gradient(var(--pencil), var(--pencil)) 0 100% / 100% 2px no-repeat; padding-bottom: 2px; }

/* Tickmarks — the section markers are an auditor's legend */
.tm { display: inline-flex; align-items: center; gap: 12px; font: 600 var(--t12)/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.tm .g { width: 22px; height: 22px; display: grid; place-items: center; flex: none; color: var(--ledger); }
.tm .g svg { width: 22px; height: 22px; }
.tm .g svg path, .tm .g svg circle { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tm .g.txt { font: italic 600 19px/1 var(--serif); letter-spacing: 0; text-transform: none; }
.tm .g.f { text-decoration: underline double; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tm .g.red { color: var(--pencil-ink); }
.tm .what { color: var(--muted); font-weight: 500; }

/* ── Buttons (square; the affordance is a tick that draws on hover) ── */
.btn {
  display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 22px;
  border-radius: 3px; font-weight: 600; font-size: 16px; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ledger); }
.btn .bt { width: 18px; height: 18px; flex: none; }
.btn .bt path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 0; }
.btn:hover .bt path { animation: tick-draw .55s var(--ease); }
@keyframes tick-draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 16px; text-decoration: underline double var(--ink); text-decoration-thickness: 1px; text-underline-offset: 6px; transition: text-decoration-color .3s, color .3s; }
.link:hover { color: var(--ledger); text-decoration-color: var(--ledger); }

/* ── Navigation: a ruled ledger header ── */
.nav { position: fixed; z-index: 40; inset: 0 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); transition: transform .5s var(--ease); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-row { display: flex; align-items: stretch; height: 60px; }
.nav .brand { display: flex; align-items: center; gap: 10px; padding-right: 28px; margin-right: auto; }
.brand-mark { width: 26px; height: 26px; }
.brand-word { font: 700 22px/1 var(--sans); letter-spacing: -.045em; }
.nav-cells { display: flex; }
.nav-cells a { display: flex; align-items: center; padding: 0 22px; border-left: 1px solid var(--line-2); font-size: 15px; font-weight: 500; color: var(--ink-2); transition: background-color .3s, color .3s; }
.nav-cells a:hover { background: var(--paper-2); color: var(--ink); }
.nav-cells a .k { font: italic 500 13px/1 var(--serif); color: var(--faint); margin-right: 8px; }
.nav-cta { display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter) 0 22px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 15px; margin-right: calc(var(--gutter) * -1); transition: background-color .35s var(--ease); }
.nav-cta:hover { background: var(--ledger); }
.nav-cta .bt { width: 16px; height: 16px; }
.nav-cta .bt path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; }
.nav-cta:hover .bt path { animation: tick-draw .55s var(--ease); }
.menu-btn { display: none; align-items: center; gap: 10px; padding: 0 0 0 18px; border-left: 1px solid var(--line-2); font-weight: 600; font-size: 15px; min-width: 44px; }
.menu-btn .bars { position: relative; width: 18px; height: 10px; }
.menu-btn .bars i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.menu-btn .bars i:first-child { top: 0; }
.menu-btn .bars i:last-child { bottom: 0; }
.menu-open .menu-btn .bars i:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-open .menu-btn .bars i:last-child { transform: translateY(-4.25px) rotate(-45deg); }
.menu { display: none; position: fixed; inset: 60px 0 0 0; z-index: 39; background: var(--paper); padding: 8px var(--gutter) 28px; flex-direction: column; justify-content: space-between; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.menu li { border-bottom: 1px solid var(--line); overflow: hidden; }
.menu li a { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; font: 420 36px/1.1 var(--serif); letter-spacing: -.02em; transform: translateY(105%); transition: transform .6s var(--ease); }
.menu li a span { font: italic 500 15px/1 var(--serif); color: var(--faint); }
.menu-open .menu li a { transform: none; }
.menu-open .menu li:nth-child(2) a { transition-delay: .05s; }
.menu-open .menu li:nth-child(3) a { transition-delay: .1s; }
.menu-open .menu li:nth-child(4) a { transition-delay: .15s; }

/* ── Hero ── */
.hero { padding-top: clamp(120px, 12vw, 172px); padding-bottom: clamp(28px, 3vw, 40px); }
.hero .tm { margin-bottom: clamp(28px, 3vw, 44px); }
.hero h1 .ln { display: block; overflow: hidden; padding: .16em 0 .12em; margin: -.16em 0 -.12em; }
.hero h1 .ln > span { display: block; }
.ring-word { position: relative; white-space: nowrap; display: inline-block; }
.ring-word .ring { position: absolute; left: -.14em; right: -.12em; top: .02em; bottom: -.06em; color: var(--pencil); pointer-events: none; }
.ring-word .ring svg { width: 100%; height: 100%; overflow: visible; }
.ring-word .ring path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hero-body { margin-top: clamp(32px, 3.4vw, 52px); align-items: start; row-gap: 40px; }
.hero-copy { grid-column: 1 / span 6; display: grid; gap: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.hero-copy .small { max-width: 470px; }
.legend { grid-column: 8 / span 5; justify-self: end; width: min(100%, 420px); background: var(--sheet); box-shadow: var(--shadow-sm); padding: 20px 22px 18px; }
.legend-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.legend-head b { font: 600 var(--t14)/1.2 var(--sans); }
.legend-head span { font: italic 400 var(--t14)/1.2 var(--serif); color: var(--muted); }
.legend li { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: var(--t14); color: var(--ink-2); }
.legend li:last-child { border-bottom: 0; }
.legend li .g { width: 24px; height: 24px; display: grid; place-items: center; color: var(--ledger); }
.legend li .g svg { width: 22px; height: 22px; }
.legend li .g svg path, .legend li .g svg circle { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.legend li .g.txt { font: italic 600 19px/1 var(--serif); }
.legend li .g.f { text-decoration: underline double; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legend li .g.red { color: var(--pencil-ink); }

.exhibit { margin-top: clamp(56px, 6vw, 88px); }
.ex-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 0 0 12px; border-bottom: 1px solid var(--ink); margin-bottom: 18px; }
.ex-head b { font: italic 500 var(--t17)/1.2 var(--serif); }
.ex-head span { font-size: var(--t14); color: var(--muted); }
.hero-stage { perspective: 2200px; }
.hero-stage .app { transform-origin: 50% 0; }

/* ── Product UI (shared by hero + story frames) ── */
.app { position: relative; background: var(--surface); color: var(--ink); font-size: 13.5px; line-height: 1.4; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(20,22,19,.09); }
.app-top { display: flex; align-items: center; gap: 14px; height: 50px; padding: 0 16px; border-bottom: 1px solid var(--line-2); background: var(--surface); }
.app-org { display: flex; align-items: center; gap: 9px; font-weight: 600; white-space: nowrap; }
.org-badge { width: 22px; height: 22px; border-radius: 4px; background: #2b3a31; color: #e5eee7; display: grid; place-items: center; font: 500 10px/1 var(--mono); }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); white-space: nowrap; min-width: 0; }
.crumbs b { color: var(--ink); font-weight: 600; }
.crumbs .sep { color: var(--faint); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 3px; font: 500 12px/1 var(--sans); letter-spacing: .01em; white-space: nowrap; }
.pill-day { background: var(--ink); color: var(--paper); }
.pill-soft { background: rgba(20,22,19,.06); color: var(--ink-2); }
.pill-red { background: var(--pencil-tint); color: var(--pencil-ink); }
.pill-red i { width: 6px; height: 6px; border-radius: 50%; background: var(--pencil); }
.pill-green { background: var(--ledger-tint); color: var(--ledger); }
.spacer { flex: 1; }
.kbd-search { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border-radius: 4px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--faint); font-size: 12.5px; min-width: 190px; }
.kbd-search svg { width: 13px; height: 13px; }
.kbd-search kbd { margin-left: auto; font: 500 11px/1 var(--mono); padding: 3px 5px; border-radius: 3px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.avatars { display: flex; }
.av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 10px/1 var(--sans); color: #fff; box-shadow: 0 0 0 2px var(--surface); }
.avatars .av + .av { margin-left: -6px; }
.av-km { background: #3c5a49; } .av-dl { background: #6b5844; } .av-ri { background: #4b5566; } .av-ao { background: #7a4b3c; }
.app-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr) 318px; min-height: 540px; }
.app-side { border-right: 1px solid var(--line-2); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; background: var(--surface-2); }
.side-item { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 9px; border-radius: 4px; color: var(--ink-2); white-space: nowrap; }
.side-item svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.side-item .count { margin-left: auto; font: 500 11px/1 var(--mono); color: var(--faint); }
.side-item.active { background: var(--surface); box-shadow: var(--shadow-sm); color: var(--ink); font-weight: 600; }
.side-item.active svg { color: var(--ink); }
.side-item .count.red { color: var(--pencil-ink); }
.side-head { margin: 16px 9px 6px; font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.app-main { padding: 18px 20px 20px; min-width: 0; }
.main-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.main-head h3 { font: 600 19px/1.1 var(--sans); letter-spacing: -.015em; }
.main-head .sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.progress { display: grid; gap: 7px; justify-items: end; }
.progress .num { font-size: 12.5px; color: var(--ink-2); }
.progress .num b { color: var(--ink); font-weight: 500; }
.bar { width: 190px; height: 6px; border-radius: 1px; background: rgba(20,22,19,.08); overflow: hidden; }
.bar > span { display: block; height: 100%; width: 100%; background: var(--ledger); transform-origin: left; transform: scaleX(var(--p, .84)); }
.chips { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.chip { height: 28px; padding: 0 10px; border-radius: 3px; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
.chip b { font: 500 11px/1 var(--mono); color: var(--faint); }
.chip.on { background: var(--ink); color: var(--paper); box-shadow: none; }
.chip.on b { color: rgba(242,241,233,.8); }
.rec { display: grid; }
.rec-row { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1.05fr) minmax(0, 1.05fr) minmax(0, .9fr) 96px; align-items: center; gap: 12px; min-height: 46px; padding: 0 10px; border-bottom: 1px solid var(--line-2); position: relative; }
.rec-row.head { min-height: 32px; font: 600 12px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); border-bottom-color: var(--line); }
.rec-row .acct { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.rec-row .code { font: 500 12px/1 var(--mono); color: var(--faint); flex: none; }
.rec-row .name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-row .src { display: block; font-size: 12px; color: var(--faint); margin-top: 1px; }
.rec-row .acct > span:last-child { min-width: 0; }
.rec-row .amt { text-align: right; font: 400 12.5px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.rec-row .amt.zero { color: var(--faint); }
.rec-row .amt.diff { color: var(--pencil-ink); font-weight: 500; position: relative; }
.rec-row .status { display: flex; justify-content: flex-end; align-items: center; }
.rec-row.sel { background: #f8f1ec; box-shadow: inset 2px 0 0 var(--pencil); }
.tick { width: 22px; height: 22px; color: var(--ledger); }
.tick path { stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tick.red { color: var(--pencil); }
.ring { position: absolute; pointer-events: none; color: var(--pencil); left: -10px; right: -12px; top: -9px; bottom: -9px; }
.ring svg { width: 100%; height: 100%; overflow: visible; }
.ring path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.app-detail { border-left: 1px solid var(--line-2); padding: 18px 18px 20px; background: var(--surface-2); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.detail-head { display: grid; gap: 8px; }
.detail-head .acct-t { font-weight: 600; font-size: 15px; }
.detail-head .acct-t span { font: 500 12px/1 var(--mono); color: var(--faint); margin-right: 6px; }
.big-diff { font: 500 30px/1 var(--mono); letter-spacing: -.04em; color: var(--pencil-ink); font-variant-numeric: tabular-nums; }
.big-diff .c { font-size: .6em; vertical-align: .45em; letter-spacing: 0; }
.mini-label { font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.why { display: grid; gap: 6px; }
.why-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 11px; border-radius: 4px; background: var(--surface); box-shadow: var(--shadow-sm); }
.why-item b { font: 500 12px/1.3 var(--mono); }
.why-item .amt { font: 500 12px/1.3 var(--mono); text-align: right; }
.why-item small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.journal { border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line); padding: 10px 11px; display: grid; gap: 6px; font: 400 12px/1.35 var(--mono); }
.journal div { display: flex; justify-content: space-between; gap: 10px; }
.detail-actions { display: flex; gap: 6px; }
.mini-btn { height: 30px; padding: 0 12px; border-radius: 3px; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); white-space: nowrap; }
.mini-btn.ink { background: var(--ink); color: var(--paper); box-shadow: none; }
.comment { display: grid; grid-template-columns: 26px 1fr; gap: 9px; align-items: start; margin-top: auto; }
.comment p { font-size: 12.5px; line-height: 1.45; color: var(--ink-2); background: var(--surface); padding: 9px 11px; border-radius: 2px 8px 8px 8px; box-shadow: var(--shadow-sm); }
.comment p b { display: block; font-weight: 600; color: var(--ink); font-size: 12px; margin-bottom: 2px; }
.comment p b time { font: 400 11px/1 var(--mono); color: var(--faint); margin-left: 6px; }

/* ── 01 Footed: statement + days ── */
.statement { padding-block: var(--section) 0; }
.statement .tm { margin-bottom: 30px; }
.statement .grid { align-items: end; row-gap: 28px; }
.statement h2 { grid-column: 1 / span 7; }
.statement .lead { grid-column: 8 / span 5; padding-bottom: .6em; }
.days { padding-block: clamp(56px, 6vw, 88px) var(--section); }
.ledger-table { background: var(--sheet); box-shadow: var(--shadow-sm); padding: 26px clamp(18px, 2.4vw, 34px) 22px; }
.lt-head { display: grid; grid-template-columns: 200px 1fr 120px; gap: 24px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.lt-head b { font: italic 500 var(--t17)/1.2 var(--serif); }
.lt-head span { font-size: var(--t14); color: var(--muted); }
.lt-head span:last-child { text-align: right; }
.days-row { display: grid; grid-template-columns: 200px 1fr 120px; gap: 24px; align-items: center; padding-block: 22px; border-bottom: 1px solid var(--line-2); }
.days-row .who b { display: block; font-weight: 600; font-size: var(--t17); }
.days-row .who span { font-size: var(--t14); color: var(--muted); }
.days-row .total { text-align: right; font: 400 var(--t32)/1 var(--serif); letter-spacing: -.02em; text-decoration: underline double var(--ink); text-decoration-thickness: 1px; text-underline-offset: 8px; }
.days-row.ours .total { color: var(--ledger); text-decoration-color: var(--ledger); }
.track { position: relative; display: grid; grid-template-columns: repeat(18, minmax(0, 1fr)); gap: 3px; height: 54px; }
.seg { position: relative; border-radius: 2px; display: flex; align-items: flex-end; padding: 8px 10px; font-size: 12.5px; font-weight: 600; line-height: 1.15; overflow: hidden; transform-origin: left; }
.seg span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s1 { background: #dddcd2; color: var(--ink-2); } .s2 { background: #d0cfc5; color: var(--ink-2); } .s3 { background: #c3c2b7; color: var(--ink); } .s4 { background: #aaa99e; color: var(--ink); } .s5 { background: #6d6e66; color: #fff; }
.t1 { background: var(--pencil-tint); color: var(--pencil-ink); } .t2 { background: #2f6b55; color: #f0f4f1; } .t3 { background: #1f4a3b; color: #f0f4f1; }
.saved { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; gap: 12px; color: var(--ledger); font: 600 var(--t14)/1.2 var(--sans); }
.saved svg { height: 54px; width: auto; color: var(--ledger); flex: none; }
.days-scale { display: grid; grid-template-columns: 200px 1fr 120px; gap: 24px; padding-top: 12px; }
.days-scale ol { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); font: 400 12px/1 var(--mono); color: var(--faint); }
.days-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-top: 22px; }
.days-foot .small { max-width: 560px; }
.day-legend { display: none; }

/* ── 02 Agreed to source: pinned story ── */
.story { padding-block: 0 var(--section); }
.story-intro { padding-bottom: clamp(44px, 5vw, 72px); }
.story-intro .tm { margin-bottom: 30px; }
.story-intro .grid { align-items: end; row-gap: 24px; }
.story-intro h2 { grid-column: 1 / span 8; }
.story-intro p { grid-column: 9 / span 4; }
.chapters { display: grid; gap: clamp(64px, 9vw, 112px); }
.chapter { display: grid; gap: 26px; }
.chapter-text { display: grid; gap: 12px; max-width: 520px; }
.chapter-num { font: italic 500 var(--t17)/1 var(--serif); color: var(--muted); }
.chapter h3 { font-family: var(--serif); font-weight: 440; font-size: var(--t32); letter-spacing: -.016em; line-height: 1.12; }
.chapter p { color: var(--muted); }
.frame .app { min-height: 0; }
.steps { display: none; }
.has-pin .story-inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; column-gap: clamp(16px, 2vw, 28px); height: 100vh; height: 100svh; padding-top: 104px; padding-bottom: 36px; align-items: start; }
.has-pin .steps { display: block; grid-column: 1 / span 4; grid-row: 1; border-top: 1px solid var(--ink); }
.has-pin .chapters, .has-pin .chapter { display: contents; }
.has-pin .chapter-text { grid-column: 1 / span 4; grid-row: 2; align-self: start; padding-top: 26px; max-width: 420px; }
.has-pin .chapter-text .chapter-num, .has-pin .chapter-text h3 { display: none; }
.has-pin .chapter-text p { font-size: var(--t17); color: var(--ink-2); }
.has-pin .frame { grid-column: 6 / span 7; grid-row: 1 / span 2; align-self: start; }
.steps li { display: grid; grid-template-columns: 36px 1fr 24px; align-items: center; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--faint); transition: color .4s var(--ease); }
.steps li .n { font: italic 500 var(--t17)/1 var(--serif); }
.steps li .t { font: 440 var(--t22)/1.2 var(--serif); letter-spacing: -.01em; }
.steps li svg { width: 22px; height: 22px; opacity: 0; transition: opacity .4s var(--ease); }
.steps li svg path { fill: none; stroke: var(--ledger); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.steps li.on { color: var(--ink); }
.steps li.done svg, .steps li.on svg { opacity: 1; }
.steps li.done { color: var(--muted); }
.frame-body { position: relative; padding: 20px 22px 22px; }
.f-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.f-head h4 { font: 600 16px/1.2 var(--sans); letter-spacing: -.01em; }
/* sync log */
.log { display: grid; font: 400 12.5px/1.3 var(--mono); }
.log li { display: grid; grid-template-columns: 74px 1fr auto 24px; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line-2); }
.log time { color: var(--faint); }
.log .what { font-family: var(--sans); font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log .what b { font-weight: 600; color: var(--ink); }
.log .n { color: var(--muted); text-align: right; white-space: nowrap; }
.log .tick { width: 20px; height: 20px; }
.log li.total { border-bottom: 0; padding-top: 14px; }
.log li.total .what { font-weight: 600; color: var(--ink); }
.log li.total .n { color: var(--ink); text-decoration: underline double var(--ledger); text-underline-offset: 4px; }
/* match */
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.m-col { display: grid; gap: 6px; align-content: start; }
.m-line { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 10px; height: 40px; padding: 0 11px; border-radius: 3px; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 12.5px; white-space: nowrap; }
.m-line .d { font: 400 12px/1 var(--mono); color: var(--faint); }
.m-line .t { overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.m-line .a { font: 500 12px/1 var(--mono); }
.m-line.l { background: var(--surface-2); grid-template-columns: 50px 1fr auto 20px; }
.m-line .mt { width: 18px; height: 18px; }
.m-line.partial { box-shadow: inset 0 0 0 1px rgba(207,62,30,.4); }
.match-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.match-foot .num { font-size: 12.5px; color: var(--ink-2); }
.mark-list .rec-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 84px; }
/* sign-off */
.signoff { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.sign-card { border-radius: 4px; background: var(--surface); box-shadow: var(--shadow-sm); padding: 18px; display: grid; gap: 12px; align-content: start; }
.sign-line { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); }
.sign-line b { font-weight: 600; font-size: 13px; display: block; }
.sign-line small { font: 400 12px/1.3 var(--mono); color: var(--faint); }
.locked { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ledger); }
.locked svg { width: 13px; height: 13px; }
.binder-mini { border-radius: 4px; background: var(--ink); color: var(--paper); padding: 18px; display: grid; gap: 12px; align-content: start; }
.binder-mini .mini-label { color: rgba(242,241,233,.75); margin: 0; }
.binder-mini h5 { font: 440 19px/1.15 var(--serif); margin: 0; }
.binder-mini .pages { display: grid; gap: 7px; font: 400 12px/1.2 var(--mono); color: rgba(242,241,233,.85); }
.binder-mini .pages div { display: flex; justify-content: space-between; border-top: 1px solid rgba(242,241,233,.12); padding-top: 7px; }
.binder-mini .bar { width: 100%; background: rgba(242,241,233,.16); }
.binder-mini .bar > span { background: #7fb59c; }

/* ── 03 Cross-footed: a working paper on the desk ── */
.desk { background: var(--desk); color: var(--on-desk); position: relative; }
.flux { padding-block: var(--section); }
.flux .tm, .cta .tm { color: var(--on-desk); margin-bottom: 30px; }
.flux .tm .g, .cta .tm .g { color: #8cc3a8; }
.flux .tm .what, .cta .tm .what { color: var(--on-desk-muted); }
.flux h2 { max-width: 16ch; }
.flux .intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 28px); margin-top: 26px; }
.flux .intro p { grid-column: 1 / span 6; color: var(--on-desk-muted); font-size: var(--t22); line-height: 1.5; }
.wp { margin-top: clamp(48px, 5vw, 80px); background: var(--sheet); color: var(--ink); box-shadow: 0 50px 80px -40px rgba(0,0,0,.65), 0 0 0 1px rgba(0,0,0,.2); position: relative; }
.wp::before { content: ''; position: absolute; top: 0; bottom: 0; left: 64px; width: 3px; border-left: 1px solid var(--rule-strong); border-right: 1px solid var(--rule-strong); }
.wp-head { display: grid; grid-template-columns: 64px 1fr auto; align-items: end; gap: 0 24px; padding: 22px clamp(20px, 2.4vw, 34px) 14px 0; border-bottom: 1px solid var(--ink); }
.wp-head .ref { grid-column: 2; font: italic 500 var(--t22)/1.2 var(--serif); padding-left: 24px; }
.wp-head .meta { font-size: var(--t14); color: var(--muted); text-align: right; }
.wp-row { display: grid; grid-template-columns: 64px minmax(0, 5fr) minmax(0, 7fr); gap: 0 clamp(20px, 3vw, 48px); padding: 32px clamp(20px, 2.4vw, 34px) 32px 0; border-bottom: 1px solid var(--line); align-items: start; }
.wp-row:last-child { border-bottom: 0; }
.wp-row .mark { display: grid; justify-items: center; padding-top: 4px; color: var(--ledger); }
.wp-row .mark svg { width: 26px; height: 26px; }
.wp-row .mark svg path, .wp-row .mark svg circle { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wp-row .mark.red { color: var(--pencil-ink); }
.wp-row .mark .txt { font: italic 600 22px/1 var(--serif); }
.wp-row h3 { font-family: var(--serif); font-weight: 440; font-size: var(--t32); line-height: 1.12; letter-spacing: -.016em; }
.wp-row .copy { display: grid; gap: 10px; align-content: start; padding-left: 24px; }
.wp-row .copy p { color: var(--muted); }
.wp-row.lead-row h3 { font-size: var(--t48); }
.flux-card { background: var(--surface); border-radius: 4px; box-shadow: var(--shadow-sm); padding: 18px 18px 16px; display: grid; gap: 14px; }
.flux-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.flux-top .acct-t { font-weight: 600; font-size: 15px; }
.flux-top .acct-t span { font: 500 12px/1 var(--mono); color: var(--faint); margin-right: 6px; }
.flux-top small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.flux-delta { text-align: right; }
.flux-delta .pct { font: 500 26px/1 var(--mono); letter-spacing: -.04em; color: var(--pencil-ink); }
.flux-delta small { font: 400 12px/1.3 var(--mono); color: var(--muted); }
.chart { display: grid; grid-template-columns: 40px 1fr; gap: 8px; }
.chart .yax { display: flex; flex-direction: column; justify-content: space-between; font: 400 11px/1 var(--mono); color: var(--faint); text-align: right; height: 150px; }
.chart .plot { position: relative; height: 150px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; border-bottom: 1px solid var(--ink); padding: 0 6px; }
.chart .col { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 100%; }
.chart .b { width: 100%; background: #c9c8bd; border-radius: 1px 1px 0 0; transform-origin: 50% 100%; }
.chart .b.now { background: var(--pencil); }
.chart .val { position: absolute; left: 50%; transform: translateX(-50%); font: 500 11px/1 var(--mono); color: var(--pencil-ink); white-space: nowrap; }
.chart .thr { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--ledger); }
.chart .thr span { position: absolute; left: 6px; top: -17px; font: 600 11px/1 var(--sans); color: var(--ledger); background: var(--surface); padding-right: 6px; }
.chart .xax { grid-column: 2; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; padding: 6px 6px 0; font: 400 11px/1 var(--mono); color: var(--faint); text-align: center; }
.chart .xax .now { color: var(--pencil-ink); font-weight: 500; }
.drivers { display: grid; }
.driver { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 13px; }
.driver b { font-weight: 600; }
.driver small { color: var(--faint); font-size: 12px; display: block; }
.driver .amt { font: 500 12.5px/1.3 var(--mono); text-align: right; }
.draft { border-radius: 4px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); padding: 12px 13px; display: grid; gap: 8px; }
.draft p { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.draft-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.draft-foot small { font-size: 12px; color: var(--faint); }
.sheet-ui { background: var(--surface); border-radius: 4px; box-shadow: var(--shadow-sm); padding: 6px 14px; display: grid; }
.su-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.su-row:last-child { border-bottom: 0; }
.su-row small { display: block; font: 400 12px/1.3 var(--mono); color: var(--faint); }
.su-row .num { font-size: 13px; }
.tag { font: 600 11px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; padding: 5px 7px; border-radius: 2px; background: var(--ledger-tint); color: var(--ledger); white-space: nowrap; }
.tag.red { background: var(--pencil-tint); color: var(--pencil-ink); }
.check-row { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.check-row:last-child { border-bottom: 0; }
.check-row .cb { width: 16px; height: 16px; border-radius: 2px; box-shadow: inset 0 0 0 1.5px var(--faint); display: grid; place-items: center; }
.check-row.done .cb { background: var(--ledger); box-shadow: none; color: #fff; }
.check-row.done .cb svg { width: 11px; height: 11px; }
.check-row.done span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.check-row small { font: 400 12px/1 var(--mono); color: var(--faint); }
.check-row.blocked small { color: var(--pencil-ink); }
.dep { margin-left: 8px; border-left: 1px dashed var(--line); padding-left: 12px; }
.chat { display: grid; gap: 10px; }
.bubble { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.bubble .bot { width: 28px; height: 28px; border-radius: 4px; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.bubble .bot svg { width: 16px; height: 16px; }
.bubble p { background: var(--surface); box-shadow: var(--shadow-sm); border-radius: 2px 8px 8px 8px; padding: 10px 12px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.bubble p b { display: block; font-size: 12.5px; margin-bottom: 2px; color: var(--ink); }
.bubble p b time { font: 400 11px/1 var(--mono); color: var(--faint); margin-left: 6px; font-weight: 400; }
.audit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.audit-cell { padding: 14px 14px 4px 0; display: grid; gap: 6px; align-content: start; }
.audit-cell + .audit-cell { padding-left: 14px; border-left: 1px solid var(--line); }
.audit-cell b { font: 400 var(--t32)/1 var(--serif); letter-spacing: -.02em; }
.audit-cell small { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* ── 04 Signed off: the binder ── */
.binder-sec { padding-block: var(--section) calc(var(--section) * .6); overflow: hidden; }
.binder-sec .tm { margin-bottom: 30px; }
.binder-grid { align-items: center; row-gap: 48px; }
.binder-copy { grid-column: 1 / span 6; display: grid; gap: 22px; }
.binder-copy .stamp-line { font: italic 500 var(--t22)/1.4 var(--serif); color: var(--ledger); }
.binder-stage { grid-column: 7 / span 6; position: relative; height: clamp(420px, 40vw, 560px); }
.sheet { position: absolute; left: 6%; top: 6%; width: 74%; height: 84%; background: var(--sheet); box-shadow: 0 1px 2px rgba(20,22,19,.08), 0 18px 40px -22px rgba(20,22,19,.35), 0 0 0 1px rgba(20,22,19,.07); transform-origin: 30% 90%; }
.sheet::before { content: ''; position: absolute; top: 0; bottom: 0; left: 36px; width: 3px; border-left: 1px solid var(--rule-strong); border-right: 1px solid var(--rule-strong); }
.sheet .lines { position: absolute; inset: 56px 22px 22px 52px; background: repeating-linear-gradient(180deg, transparent 0 25px, var(--rule) 25px 26px); }
.sheet .s-title { position: absolute; left: 52px; top: 20px; font: italic 500 15px/1 var(--serif); color: var(--muted); }
.sheet .s-ticks { position: absolute; left: 9px; top: 62px; display: grid; gap: 4px; color: var(--ledger); }
.sheet .s-ticks svg { width: 18px; height: 22px; }
.sheet .s-ticks svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sheet.s-a { transform: rotate(-7deg) translate(-8%, 4%); }
.sheet.s-b { transform: rotate(-3.5deg) translate(-3%, 2%); }
.sheet.s-c { transform: rotate(2deg) translate(4%, -1%); }
.cover { position: absolute; left: 14%; top: 4%; width: 72%; height: 86%; background: #1f3d32; color: #eef3ef; box-shadow: 0 2px 3px rgba(0,0,0,.12), 0 40px 70px -30px rgba(20,22,19,.55); padding: clamp(22px, 2.6vw, 38px); display: flex; flex-direction: column; justify-content: space-between; transform: rotate(4.5deg); transform-origin: 50% 90%; }
.cover .c-top { display: flex; justify-content: space-between; font: 600 12px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: rgba(238,243,239,.9); }
.cover h3 { font: 420 clamp(30px, 3vw, 46px)/1.04 var(--serif); letter-spacing: -.02em; }
.cover .c-meta { display: grid; gap: 8px; font: 400 13px/1.3 var(--mono); color: rgba(238,243,239,.9); }
.cover .c-meta div { display: flex; justify-content: space-between; border-top: 1px solid rgba(238,243,239,.2); padding-top: 8px; }
.tabs { position: absolute; right: -26px; top: 12%; display: grid; gap: 8px; }
.tabs span { display: block; width: 26px; height: 54px; border-radius: 0 3px 3px 0; }
.tabs span:nth-child(1) { background: #e8e1c9; } .tabs span:nth-child(2) { background: #d8e3dc; } .tabs span:nth-child(3) { background: #f1d9cf; } .tabs span:nth-child(4) { background: #dcdcd3; }
.stamp { position: absolute; right: 0; bottom: 6%; width: clamp(150px, 14vw, 200px); aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--ledger); color: var(--ledger); display: grid; place-items: center; text-align: center; background: rgba(251,250,245,.94); transform: rotate(-12deg); }
.stamp div { display: grid; gap: 5px; justify-items: center; }
.stamp b { font: 700 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.stamp svg { width: 44px; height: 44px; }
.stamp svg path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.stamp span { font: 500 12px/1.2 var(--mono); }

/* ── 05 Pricing: a ledger, not cards ── */
.pricing { padding-block: calc(var(--section) * .6) calc(var(--section) * .7); }
.pricing .tm { margin-bottom: 30px; }
.pricing-head { align-items: end; padding-bottom: clamp(36px, 4vw, 56px); row-gap: 28px; }
.pricing-head h2 { grid-column: 1 / span 7; }
.pricing-head .p-side { grid-column: 9 / span 4; display: grid; gap: 20px; justify-items: start; }
.billing { display: inline-flex; border: 1px solid var(--ink); }
.billing button { min-height: 44px; padding: 0 18px; font-size: 15px; font-weight: 600; color: var(--ink-2); transition: background-color .3s var(--ease), color .3s var(--ease); white-space: nowrap; }
.billing button + button { border-left: 1px solid var(--ink); }
.billing button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.billing small { font: italic 500 13px/1 var(--serif); margin-left: 6px; }
.plans { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); background: var(--sheet); box-shadow: var(--shadow-sm); border-top: 2px solid var(--ink); }
.plan { padding: 28px clamp(18px, 2vw, 30px) 30px; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 22px; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan-team { grid-column: span 4; }
.plan-group { grid-column: span 5; background: var(--surface); box-shadow: inset 0 3px 0 var(--ledger); }
.plan-ent { grid-column: span 3; }
.plan-name { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.plan-name h3 { font: 440 var(--t32)/1 var(--serif); letter-spacing: -.016em; }
.plan-for { color: var(--muted); font-size: 15.5px; line-height: 1.55; max-width: 34ch; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price .amount { font: 400 clamp(46px, 4.4vw, 64px)/.95 var(--serif); letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; text-decoration: underline double var(--ink); text-decoration-thickness: 1px; text-underline-offset: 10px; }
.plan-group .price .amount { text-decoration-color: var(--ledger); }
.price .amount.word { font-size: clamp(38px, 3.4vw, 50px); text-decoration: none; }
.price .per { color: var(--muted); font-size: 15px; }
.price .was { width: 100%; margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.feat { display: grid; gap: 10px; align-content: start; }
.feat li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.feat li svg { width: 20px; height: 20px; margin-top: 1px; }
.feat li svg path { stroke: var(--ledger); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; border: 1px solid var(--line); }
.stepper .s-label { font-size: 14px; color: var(--ink-2); }
.stepper .s-label b { font-weight: 600; }
.stepper .s-ctrl { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 44px; height: 44px; border: 1px solid var(--line); display: grid; place-items: center; transition: background-color .25s; }
.stepper button:hover:not(:disabled) { background: var(--paper-2); }
.stepper button:disabled { opacity: .4; cursor: not-allowed; }
.stepper button svg { width: 14px; height: 14px; }
.stepper output { min-width: 34px; text-align: center; font: 500 17px/1 var(--mono); }
.plan .btn { justify-self: start; }
.btn-line { min-height: 52px; display: inline-flex; align-items: center; padding: 0 20px; border: 1px solid var(--ink); border-radius: 3px; font-weight: 600; font-size: 16px; justify-self: start; transition: background-color .35s var(--ease), color .35s var(--ease); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.pricing-note { display: flex; justify-content: space-between; gap: 12px 20px; padding-top: 18px; color: var(--muted); font-size: 14.5px; flex-wrap: wrap; }
.pricing-note b { color: var(--ink); font-weight: 600; }

/* ── 06 Queries ── */
.faq { padding-block: calc(var(--section) * .45) var(--section); }
.faq .grid { row-gap: 32px; }
.faq-side { grid-column: 1 / span 4; display: grid; gap: 22px; align-content: start; }
.faq-list { grid-column: 6 / span 7; border-top: 2px solid var(--ink); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 30px 1fr 44px; align-items: center; gap: 14px; padding: 22px 0; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .q { font: italic 600 22px/1 var(--serif); color: var(--pencil-ink); }
.qa[open] summary .q { color: var(--ledger); }
.qa summary h3 { font: 440 var(--t22)/1.3 var(--serif); letter-spacing: -.008em; }
.qa .pm { width: 44px; height: 44px; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .45s var(--ease), background-color .3s; }
.qa .pm svg { width: 14px; height: 14px; }
.qa[open] .pm { transform: rotate(45deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.qa .ans { padding: 0 58px 26px 44px; max-width: 760px; color: var(--muted); font-size: 16.5px; line-height: 1.7; }
.qa[open] .ans { animation: ans-in .5s var(--ease); }
@keyframes ans-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ── 07 CTA on the desk ── */
.cta { padding-block: var(--section); }
.cta .grid { row-gap: 40px; align-items: end; }
.cta h2 { grid-column: 1 / span 8; }
.cta h2 .dbl { text-decoration-color: #8cc3a8; }
.cta-side { grid-column: 9 / span 4; display: grid; gap: 22px; }
.cta-side p { color: var(--on-desk-muted); }
.cta-form { display: grid; gap: 10px; }
.cta-form label { font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--on-desk-muted); }
.cta-form input { width: 100%; min-height: 52px; background: transparent; border: 0; border-bottom: 1px solid rgba(236,237,230,.45); color: var(--on-desk); font-size: 18px; padding: 0 2px; outline: none; transition: border-color .3s; }
.cta-form input:focus { border-bottom-color: var(--on-desk); }
.cta-form input::placeholder { color: rgba(236,237,230,.55); }
.cta-form .btn { background: var(--on-desk); color: var(--ink); justify-content: space-between; margin-top: 8px; }
.cta-form .btn:hover { background: #8cc3a8; }
.form-help { font-size: 14px; color: var(--on-desk-muted); min-height: 22px; }
.form-help.err { color: #ffa48e; }
.form-help.ok { color: var(--on-desk); }

/* ── Footer: the bottom line ── */
.footer { padding-block: 64px 36px; }
.footer-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 28px); row-gap: 32px; }
.footer-brand { grid-column: 1 / span 5; display: grid; gap: 14px; align-content: start; }
.footer-brand .brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; justify-self: start; }
.footer-brand p { color: var(--muted); font-size: 15px; max-width: 36ch; }
.footer-col { grid-column: span 2; display: grid; gap: 2px; align-content: start; }
.footer-col .h { font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.footer-col a { font-size: 15px; color: var(--ink-2); min-height: 44px; display: inline-flex; align-items: center; }
.footer-col a:hover { color: var(--ledger); }
.bottom-line { margin-top: clamp(48px, 6vw, 88px); display: grid; gap: 4px; }
.bottom-line .word { font: 700 clamp(84px, 19vw, 300px)/.8 var(--sans); letter-spacing: -.065em; padding-bottom: .05em; }
.bottom-line .rules { height: 8px; border-top: 2px solid var(--ledger); border-bottom: 2px solid var(--ledger); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px 20px; padding-top: 22px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.footer-bottom strong { color: var(--ink); font-weight: 600; }

/* ── Motion gates (JS + motion only) ── */
.has-motion [data-reveal] { opacity: 0; transform: translateY(24px); }
.has-motion .hero h1 .ln > span { transform: translateY(105%); }
.has-motion .hero [data-hero-fade] { opacity: 0; transform: translateY(14px); }
.has-motion .hero-stage .app { opacity: 0; }

/* ── Responsive ── */
@media (max-width: 1180px) {
  .app-grid { grid-template-columns: 172px minmax(0, 1fr) 286px; }
  .kbd-search { display: none; }
  .nav-cells a { padding: 0 14px; }
  .nav-cells a .k { display: none; }
}
@media (max-width: 1023px) {
  .nav-cells, .nav-cta { display: none; }
  .menu-btn { display: flex; }
  .menu { display: flex; }
  .hero-copy, .legend { grid-column: 1 / -1; justify-self: start; }
  .app-grid { grid-template-columns: minmax(0, 1fr) 280px; }
  .app-side { display: none; }
  .statement h2, .statement .lead, .story-intro h2, .story-intro p, .flux .intro p, .pricing-head h2, .pricing-head .p-side, .faq-side, .faq-list, .cta h2, .cta-side, .binder-copy, .binder-stage { grid-column: 1 / -1; }
  .plans { grid-template-columns: 1fr; }
  .plan-team, .plan-group, .plan-ent { grid-column: 1 / -1; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col { grid-column: span 4; }
  .wp-row { grid-template-columns: 52px 1fr; row-gap: 22px; }
  .wp-row > :last-child { grid-column: 2; padding-left: 24px; }
  .wp::before { left: 52px; }
  .wp-head { grid-template-columns: 52px 1fr; }
  .wp-head .meta { grid-column: 2; text-align: left; margin-top: 6px; padding-left: 24px; }
}
@media (max-width: 760px) {
  :root { --section: 92px; }
  .ruling .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ruling i:nth-child(n+5) { display: none; }
  .ruling i:nth-child(4) { border-right: 1px solid var(--rule); }
  .ruling .grid::before { left: -10px; }
  .nav-row { height: 56px; }
  .menu { inset: 56px 0 0 0; }
  .hero { padding-top: 100px; }
  .hero h1 { font-size: clamp(42px, 12vw, 54px); line-height: 1.02; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  .legend { width: 100%; }
  .ex-head { flex-direction: column; gap: 4px; }
  .app { font-size: 13px; }
  .app-top { height: 46px; padding: 0 12px; gap: 10px; }
  .app-top .crumbs .hide-s, .app-top .avatars, .app-org .org-name { display: none; }
  .app-grid { grid-template-columns: 1fr; min-height: 0; }
  .app-detail { border-left: 0; border-top: 1px solid var(--line-2); }
  .app-detail .comment { display: none; }
  .app-main { padding: 14px 12px 8px; }
  .main-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .bar { width: 160px; }
  .progress { justify-items: start; }
  .rec-row { grid-template-columns: minmax(0, 1fr) 86px 30px; gap: 8px; padding: 0 6px; min-height: 52px; }
  .rec-row .c-erp, .rec-row .c-sup { display: none; }
  .rec-row .status .pill { display: none; }
  .rec-row.head .status { visibility: hidden; }
  .rec .hide-s { display: none; }
  .chips .chip:nth-child(3) { display: none; }
  .statement .lead { padding-bottom: 0; }
  .lt-head, .days-row { grid-template-columns: 1fr auto; column-gap: 16px; }
  .lt-head span:nth-child(2) { display: none; }
  .days-row .track { grid-column: 1 / -1; grid-row: 2; height: 46px; margin-top: 14px; }
  .days-row .who { grid-column: 1; grid-row: 1; }
  .days-row .total { grid-column: 2; grid-row: 1; font-size: 26px; }
  .days-scale { display: none; }
  .seg span { display: none; }
  .saved { font-size: 13px; }
  .saved svg { height: 46px; }
  .day-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; grid-column: 1 / -1; margin-top: 12px; }
  .day-legend li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
  .day-legend i { width: 10px; height: 10px; border-radius: 2px; display: block; }
  .frame-body { padding: 14px; }
  .log li { grid-template-columns: 62px 1fr 22px; }
  .log .n { display: none; }
  .log li.total { grid-template-columns: 62px 1fr; }
  .log li.total .n { display: block; grid-column: 2; text-align: left; }
  .log li.total .tick { display: none; }
  .match { grid-template-columns: 1fr; }
  .m-col:not(.erp-col) { display: none; }
  .signoff { grid-template-columns: 1fr; }
  .wp-row { grid-template-columns: 36px 1fr; padding-right: 14px; gap: 18px 14px; }
  .wp-row > :last-child { padding-left: 14px; }
  .wp-row .copy { padding-left: 14px; }
  .wp::before { left: 36px; }
  .wp-head { grid-template-columns: 36px 1fr; padding-right: 14px; }
  .wp-head .ref, .wp-head .meta { padding-left: 14px; }
  .wp-row .mark svg { width: 22px; height: 22px; }
  .chart .plot { height: 120px; gap: 6px; }
  .chart .yax { height: 120px; }
  .chart .xax { gap: 6px; }
  .audit-grid { grid-template-columns: 1fr; }
  .audit-cell + .audit-cell { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .binder-stage { height: 360px; margin-right: 18px; }
  .tabs { right: -18px; }
  .tabs span { width: 18px; height: 42px; }
  .stamp { width: 118px; right: -6px; bottom: -2%; }
  .cover { left: 10%; width: 78%; padding: 20px; }
  .cover h3 { font-size: 26px; }
  .cover .c-meta { font-size: 12px; }
  .plan { padding-inline: 18px; }
  .qa summary { grid-template-columns: 24px 1fr 44px; gap: 10px; padding: 20px 0; }
  .qa .ans { padding: 0 0 24px 34px; font-size: 16px; }
  .footer-col { grid-column: span 6; }
  .footer-bottom { flex-direction: column; }
}
@media (min-width: 1700px) { :root { --max: 1600px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Ledger documents sit on ordinary page scroll; the four passes have explicit tabs. */
[hidden]{display:none!important}.ruling{display:none}.hero{padding-top:110px}.hero .tm{margin-bottom:25px}.hero-body{margin-top:28px}.hero-copy{gap:20px}.hero-stage{margin-top:35px}.hero .h-xl{font-size:clamp(52px,7.8vw,106px)}.hero-copy .lead{font-size:18px}.story-tabs .story-inner{display:grid;grid-template-columns:240px minmax(0,1fr);gap:45px;align-items:start;min-height:580px;padding-block:30px 55px}.story-tabs .steps{display:block;border-top:1px solid var(--ink)}.story-tabs .steps li{display:block;padding:0}.story-tabs .steps button{display:grid;grid-template-columns:28px 1fr 22px;gap:10px;width:100%;text-align:left;align-items:center;padding:17px 0;min-height:56px}.story-tabs .chapters{display:block;min-width:0}.story-tabs .chapter{gap:25px}.story-tabs .chapter-text{max-width:65ch}.story-tabs .chapter-text h3{font-size:36px}.story-tabs .chapter-num{display:none}.body,.story-intro .body{font-size:17px;color:var(--ink-2)}.tm .what{font-size:13px}.wp .val,.wp .thr{font-size:12px}
@media(max-width:700px){.hero{padding-top:100px}.hero .h-xl{font-size:56px}.ring-word .ring{left:-.2em;right:-.2em;top:-.08em;bottom:-.1em}.story-tabs .story-inner{display:block;min-height:0;padding-bottom:35px}.story-tabs .steps{display:grid;grid-template-columns:repeat(2,1fr);margin-bottom:28px}.story-tabs .steps button{padding:14px 8px;grid-template-columns:20px 1fr}.story-tabs .steps svg{display:none}.story-tabs .steps .t{font-size:20px}.story-tabs .chapter-text h3{font-size:30px}.hero-copy .lead{font-size:17px}}

.hero .h-xl{font-size:clamp(50px,6.1vw,82px)}.hero-body{display:block}.hero-copy{max-width:860px;gap:16px}.hero-copy .small{max-width:760px;font-size:14px;color:#55524a}.legend{width:100%;max-width:none;background:none;box-shadow:none;padding:0;margin-top:24px}.legend-head{display:none}.legend ul{display:flex;flex-wrap:wrap;gap:8px 30px}.legend li{border:0;padding:5px 0;font-size:13px;grid-template-columns:22px 1fr}.hero-stage{margin-top:25px}.hero .tm{margin-bottom:20px}.hero-body{margin-top:22px}.story-tabs .story-inner{min-height:0;padding-bottom:15px}.story-tabs .steps{align-self:start}.pricing-formula{font:400 13px/1.6 var(--mono);color:var(--ink-2);margin-top:18px;border-block:1px solid var(--line);padding-block:14px}.small,.was,.fig-note{font-size:14px}.ring-word .ring{left:-.15em;right:-.15em;top:-.15em;bottom:-.18em}
@media(max-width:700px){.hero .h-xl{font-size:54px}.legend ul{gap:4px 18px}.legend li{font-size:12px}.hero-copy .small{font-size:13px}.ring-word .ring{left:-.17em;right:-.15em;top:-.15em;bottom:-.15em}}

/* The film stays user-controlled; its written description carries the visual story. */
.concept-film{padding-block:70px;border-block:1px solid var(--line);scroll-margin-top:90px}.film-heading{display:grid;grid-template-columns:1fr 1fr;gap:20px 50px;align-items:end;margin-bottom:32px}.film-heading .tm{grid-column:1/-1}.film-heading h2{font-size:clamp(34px,4.2vw,58px);line-height:1.08;font-weight:500;letter-spacing:-.045em;margin:0}.film-heading>p:last-child{font-size:17px;line-height:1.65;color:var(--ink-2);max-width:44ch;margin:0}.film-primary{margin:0}.concept-film video{display:block;width:100%;height:auto;background:var(--paper-2)}.film-primary video{aspect-ratio:16/9}.film-primary figcaption{font-size:14px;line-height:1.7;max-width:85ch;padding-block:20px 26px;color:var(--ink-2)}.film-alternate{border-top:1px solid var(--line)}.film-alternate summary{padding-block:18px;min-height:54px;cursor:pointer;font-size:16px;font-weight:600}.film-alternate summary span{float:right;font:400 13px/1.8 var(--mono);color:var(--ink-2)}.film-alternate video{max-width:360px;aspect-ratio:9/16;margin:10px auto 0}.film-alternate summary:focus-visible{outline:2px solid var(--ink);outline-offset:5px}@media(max-width:700px){.concept-film{padding-block:38px}.film-heading{display:block;margin-bottom:24px}.film-heading .tm{margin-bottom:20px}.film-heading h2{font-size:36px}.film-heading>p:last-child{font-size:15px;margin-top:18px}.film-primary figcaption{font-size:13px}.film-alternate summary{font-size:15px}.film-alternate summary span{display:block;float:none;margin-top:4px}}
