/* ════════════════════════════════════════════════════════════════════
   Hence · design system
   Graphite ink on warm paper. Hairline rules, tabular figures,
   oxblood reserved for the brand. One typeface: Instrument Sans.
   ════════════════════════════════════════════════════════════════════ */
:root {
  --paper: #f4f2ec;
  --paper-2: #ebe8e0;
  --surface: #ffffff;
  --ink: #1c1b19;
  --ink-2: #3b3a36;
  --muted: #74716a;
  --faint: #a7a39a;
  --line: #e2ded5;
  --line-2: #cfcabe;
  --charcoal: #1c1b19;
  --charcoal-2: #262522;
  --charcoal-line: #34332f;
  --on-dark: #f4f2ec;
  --on-dark-2: #b5b1a8;
  --brand: #7a1f2b;
  --brand-soft: #f3e9e9;
  --accent: #b5532c;
  --pos: #2f6b45;
  --pos-soft: #e8f1ea;
  --neg: #a8361f;
  --neg-soft: #f8ece8;
  --amber: #8a5a00;
  --amber-soft: #f7f0de;
  --serif: 'Newsreader', 'Times New Roman', serif;
  --sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --r: 3px;
  --r-sm: 2px;
  --shadow-1: none;
  --shadow-2: 0 1px 0 rgba(28,27,25,.04), 0 18px 40px -28px rgba(28,27,25,.35);
  --shadow-3: 0 30px 70px -36px rgba(0,0,0,.55);
  --ease: cubic-bezier(.2,.8,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, select, textarea, input { font: inherit; color: inherit; }
button { cursor: pointer; }
code, .mono { font-family: var(--mono); font-size: .92em; }
svg { stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; }
::selection { background: #e9d9da; }
.dim { color: var(--muted); }
.hint { font-size: 12px; color: var(--muted); }
.num, .pct, .kpi-n, .big, .v { font-variant-numeric: tabular-nums; }
body.is-landing .shell { display: none; }
body:not(.is-landing) .landing { display: none; }

/* ─── primitives ─────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid transparent; font-size: 13.5px; font-weight: 600; letter-spacing: -.005em; transition: background .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: #000; }
.btn.ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink-2); }
.btn[disabled] { opacity: .5; cursor: progress; }
.kbd { font: 11px var(--mono); opacity: .55; }
.link { background: none; border: 0; padding: 0; font-weight: 600; color: var(--ink); text-align: left; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--ink); }
.pill { display: inline-flex; align-items: center; font: 11.5px var(--mono); padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink-2); text-decoration: none; }
a.pill:hover, button.pill:hover { border-color: var(--ink-2); }
.pill.warn { background: var(--neg-soft); border-color: #f0d2ce; color: var(--neg); }
.status-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-chip.ok { background: var(--pos-soft); color: var(--pos); }
.status-chip.cal { background: var(--amber-soft); color: var(--amber); }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 4px; margin-left: 8px; vertical-align: 1px; }
.badge.gov { background: var(--paper-2); color: var(--ink-2); }
.badge.bad { background: var(--neg-soft); color: var(--neg); }
.eyebrow { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.h { font-size: 15px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.sub { font-size: 12.5px; color: var(--muted); margin: 4px 0 14px; }
.explain { font-size: 13px; color: var(--muted); margin: 0 0 18px; max-width: 82ch; line-height: 1.6; }
.explain b { color: var(--ink-2); font-weight: 600; }
.prose { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; max-width: 80ch; }
.note { font-size: 12.5px; color: var(--muted); min-height: 20px; margin: 8px 2px 14px; }
.note.ok { color: var(--ink-2); }
.note.ok::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--pos); margin-right: 8px; vertical-align: 1px; }
.alert { padding: 10px 12px; border: 1px solid #f0d2ce; background: var(--neg-soft); color: #7c241b; font-size: 13px; border-radius: var(--r-sm); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pos); display: inline-block; flex: none; }
.dot.amber { background: #c08a2b; }
.mark { width: 22px; height: 22px; flex: none; background: var(--brand); -webkit-mask: url(/logo.svg) center / contain no-repeat; mask: url(/logo.svg) center / contain no-repeat; }
.wordmark { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.rail-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.skeleton { display: grid; gap: 10px; padding: 22px; }
.skeleton i { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--paper-2), #e9e6e0, var(--paper-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton i:nth-child(1) { width: 40%; height: 34px; } .skeleton i:nth-child(3) { width: 82%; } .skeleton i:nth-child(4) { width: 64%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* form controls */
select { width: 100%; max-width: 100%; appearance: none; height: 38px; border: 1px solid var(--line-2); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2376746d' fill='none' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 12px center; border-radius: var(--r-sm); padding: 0 32px 0 11px; font-size: 13.5px; outline: none; text-overflow: ellipsis; transition: border-color .15s, box-shadow .15s; }
select:hover { border-color: var(--faint); }
select:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(20,20,19,.07); }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field em { font-style: normal; color: var(--faint); font-weight: 500; margin-left: 4px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 7px; background: var(--paper-2); }
.seg button { border: 0; background: transparent; padding: 7px 8px; border-radius: 5px; font-size: 12.5px; font-weight: 500; color: var(--muted); line-height: 1.3; transition: background .15s, color .15s; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.chips { display: grid; gap: 2px; }
.chip { display: flex; gap: 10px; align-items: flex-start; text-align: left; border: 0; background: none; padding: 7px 8px; margin: 0 -8px; border-radius: var(--r-sm); font-size: 13px; line-height: 1.4; color: var(--ink-2); transition: background .12s; }
.chip:hover { background: var(--paper); }
.chip i { flex: none; width: 16px; height: 16px; margin-top: 1px; border: 1.5px solid var(--line-2); border-radius: 4px; position: relative; background: var(--surface); transition: background .15s, border-color .15s; }
.chip.on { color: var(--ink); }
.chip.on i { background: var(--ink); border-color: var(--ink); }
.chip.on i::after { content: ''; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }

/* composer */
.composer, .l-composer { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow-1); transition: border-color .15s, box-shadow .2s; }
.composer:focus-within, .l-composer:focus-within { border-color: var(--ink-2); box-shadow: 0 0 0 4px rgba(20,20,19,.06), var(--shadow-2); }
.composer textarea, .l-composer textarea { display: block; width: 100%; border: 0; outline: none; resize: none; background: transparent; padding: 14px 16px 6px; font-size: 14.5px; line-height: 1.55; }
.composer textarea::placeholder, .l-composer textarea::placeholder { color: var(--faint); }
.composer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; }
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; }
.presets #presets, .l-presets #landingPresets { display: contents; }
.preset { height: 28px; padding: 0 11px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--ink-2); transition: border-color .15s, color .15s, transform .15s; }
.preset:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }

/* probability scale */
.prob .big { font-size: 56px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.prob .big sup { font-size: .38em; font-weight: 500; color: var(--muted); vertical-align: 1.15em; margin-left: 2px; letter-spacing: 0; }
.scale { position: relative; height: 8px; border-radius: 4px; background: var(--paper-2); margin: 14px 0 6px; overflow: visible; }
.scale i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--ink); transition: width .7s var(--ease); }
.scale b { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 1px; background: var(--ink); transition: left .7s var(--ease); }
.scale-ticks { display: flex; justify-content: space-between; font: 10.5px var(--mono); color: var(--faint); }

/* driver bars */
.drivers { display: flex; flex-direction: column; }
.drv { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(110px, 1fr) 56px; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.drv:last-child { border-bottom: 0; }
.drv .lbl { color: var(--ink-2); line-height: 1.35; }
.axis { position: relative; height: 8px; border-radius: 4px; background: var(--paper-2); }
.axis::before { content: ''; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--line-2); }
.axis span { position: absolute; top: 0; height: 8px; animation: grow .7s var(--ease) both; }
.axis span.pos { left: 50%; background: var(--pos); border-radius: 0 4px 4px 0; transform-origin: left; }
.axis span.neg { right: 50%; background: var(--neg); border-radius: 4px 0 0 4px; transform-origin: right; }
.drv .v { font: 12px var(--mono); text-align: right; }
.v.pos { color: var(--pos); } .v.neg { color: var(--neg); }
@keyframes grow { from { transform: scaleX(0); } }
.meter { position: relative; height: 6px; border-radius: 3px; background: var(--paper-2); min-width: 90px; }
.meter > i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--ink); }
.meter > b { position: absolute; top: -3px; height: 12px; border-left: 1px solid var(--muted); border-right: 1px solid var(--muted); background: rgba(20,20,19,.07); }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 0 10px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr { transition: background .12s; }
tbody tr:hover td { background: var(--paper); }
tr.current td { background: #f6f4ef; }
tr.current td:first-child { box-shadow: inset 2px 0 0 var(--ink); }
td.num, th.num { text-align: right; font-family: var(--mono); font-size: 12.5px; }
th.num { font-family: var(--sans); font-size: 11px; }
tr.excluded td { color: var(--faint); }
tr.excluded td:first-child { color: var(--ink-2); }

/* ─── landing ────────────────────────────────────────────────────────── */
.landing { background: var(--paper); }
.l-wrap { max-width: 1180px; margin: 0 auto; padding: 0 40px; }
.l-nav { position: sticky; top: 0; z-index: 30; background: rgba(247,246,243,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.l-nav.scrolled { border-bottom-color: var(--line); }
.l-nav-in { max-width: 1180px; margin: 0 auto; height: 60px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; }
.l-links { display: flex; align-items: center; gap: 26px; }
.l-links a { font-size: 13.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; cursor: pointer; }
.l-links a:hover { color: var(--ink); }
.l-links .l-cta-sm { height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-weight: 600; }
.l-links .l-cta-sm:hover { background: #000; color: #fff; }

.l-top { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.l-top::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px);
  background-size: 100% 32px; opacity: .55;
  mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 10%, transparent 70%); }
.l-hero { position: relative; max-width: 1180px; margin: 0 auto; padding: 72px 40px 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: start; }
.l-kicker { display: inline-flex; align-items: center; gap: 9px; height: 28px; padding: 0 12px 0 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.l-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.l-hero h1 { margin: 22px 0 0; font-size: clamp(38px, 4.4vw, 58px); line-height: 1.04; font-weight: 600; letter-spacing: -.035em; max-width: 14ch; }
.l-hero .lede { margin: 20px 0 30px; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
.l-composer textarea { font-size: 15.5px; padding: 16px 18px 8px; min-height: 104px; }
.l-composer .composer-bar { padding: 10px 10px 10px 18px; border-top: 1px solid var(--line); }
.l-composer .btn.primary { height: 40px; padding: 0 16px; font-size: 14px; }
.l-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 16px; }
.l-presets > .hint { margin-right: 2px; }
.l-note { min-height: 20px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.l-note.ok::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--pos); margin-right: 8px; vertical-align: 1px; }
.l-manual { background: none; border: 0; padding: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.l-manual:hover { color: var(--ink); }

/* product window */
.l-hero-demo { position: relative; perspective: 1800px; }
.l-window { position: relative; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-3); overflow: hidden; transform: rotateY(-7deg) rotateX(2deg); transform-origin: left center; transition: transform .8s var(--ease), box-shadow .8s var(--ease); }
.l-hero-demo:hover .l-window, .l-window.live { transform: none; box-shadow: 0 2px 4px rgba(20,20,19,.04), 0 30px 70px -30px rgba(20,20,19,.32); }
.l-window-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fbfaf8; }
.wb-dots { display: inline-flex; gap: 6px; } .wb-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.wb-path { flex: 1; font: 11.5px var(--mono); color: var(--faint); }
.wb-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--pos); }
.wb-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s ease-in-out infinite; }
.wb-live.typing { color: var(--brand); }
@keyframes pulse { 50% { opacity: .3; } }
.dc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px 0; }
.dc-title { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.dc-title span { color: var(--muted); font-weight: 500; }
.dc-facts { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 20px 0; min-height: 26px; }
.dc-fact { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 3px 10px; border-radius: 12px; line-height: 1.35; background: var(--paper); border: 1px solid var(--line); font-size: 11.5px; font-weight: 500; color: var(--ink-2); animation: pop .45s var(--ease) both; }
.dc-fact::before { content: ''; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
@keyframes pop { from { opacity: 0; transform: translateY(4px) scale(.96); } }
.dc-body { display: grid; grid-template-columns: 200px 1fr; gap: 0; margin-top: 14px; border-top: 1px solid var(--line); }
.dc-body > div:first-child { padding: 18px 20px; border-right: 1px solid var(--line); }
.dc-body > div:last-child { padding: 12px 20px; }
.dc-body .prob .big { font-size: 48px; }
.dc-body .drv { grid-template-columns: minmax(0, 1.4fr) minmax(64px, 1fr) 48px; gap: 10px; padding: 7px 0; font-size: 12.5px; }
.dc-benches { border-top: 1px solid var(--line); padding: 12px 20px 16px; }
.dc-benches .row { display: grid; grid-template-columns: 1fr 120px 40px; gap: 12px; align-items: center; padding: 5px 0; font-size: 12.5px; }
.dc-benches .row span:last-child { font: 12px var(--mono); text-align: right; }
.dc-empty { padding: 26px 20px 30px; font-size: 13px; color: var(--muted); }
.l-float { position: relative; margin: -22px -18px 0 auto; width: 280px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-3); padding: 14px 16px; opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease) .4s, transform .6s var(--ease) .4s; }
.l-float.in { opacity: 1; transform: none; }
.l-float .eyebrow { font-size: 10.5px; }
.l-float .cite { margin: 6px 0 4px; font-size: 13px; font-weight: 600; line-height: 1.35; }
.l-float .hold { font-size: 12px; color: var(--muted); line-height: 1.45; }

/* ticker */
.l-ticker { position: relative; display: flex; align-items: center; border-top: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.lt-label { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 40px; border-right: 1px solid var(--line); background: var(--surface); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; z-index: 1; }
.lt-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--pos); animation: pulse 2s ease-in-out infinite; }
.lt-track { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.lt-row { display: flex; width: max-content; animation: ltscroll 110s linear infinite; }
.l-ticker:hover .lt-row { animation-play-state: paused; }
@keyframes ltscroll { to { transform: translateX(-50%); } }
.lt-item { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 26px; border-right: 1px solid var(--line); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.lt-item b { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 4px; }
.lt-item b.yes { background: var(--pos-soft); color: var(--pos); }
.lt-item b.no { background: var(--neg-soft); color: var(--neg); }
.lt-item em { font-style: normal; font-size: 12px; color: var(--muted); }

/* proof band */
.l-band { background: var(--surface); border-bottom: 1px solid var(--line); }
.l-proof { display: grid; grid-template-columns: repeat(4, 1fr); }
.l-proof > div { padding: 30px 28px; border-left: 1px solid var(--line); }
.l-proof > div:first-child { border-left: 0; padding-left: 0; }
.l-proof b { display: block; font-size: 34px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.l-proof span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }

/* sections */
.l-sec { padding: 112px 0; }
.l-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.l-head h2, .l-final h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; font-weight: 600; letter-spacing: -.03em; max-width: 20ch; }
.l-head p { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }
.l-head p.l-small { font-size: 13.5px; color: var(--muted); }
.l-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 12.5px; font-weight: 600; color: var(--brand); }
.l-eyebrow::before { content: ''; width: 14px; height: 1.5px; background: currentColor; }
.l-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }

/* method pipeline */
.l-pipe { margin-top: 56px; display: grid; grid-template-columns: 1.1fr 1.2fr 1.5fr .9fr; gap: 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-2); overflow: hidden; }
.lp-step { padding: 26px 24px; border-left: 1px solid var(--line); position: relative; min-width: 0; }
.lp-step:first-child { border-left: 0; }
.lp-step:not(:last-child)::after { content: ''; position: absolute; right: -7px; top: 34px; width: 12px; height: 12px; background: var(--surface); border-top: 1px solid var(--line-2); border-right: 1px solid var(--line-2); transform: rotate(45deg); z-index: 1; }
.lp-n { font: 11.5px var(--mono); color: var(--brand); }
.lp-step h3 { margin: 8px 0 14px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.lp-brief { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.lp-brief mark { background: none; color: var(--ink); font-weight: 600; box-shadow: inset 0 -6px 0 #efe1e2; padding: 0 1px; }
.lp-facts { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.lp-terms .t { display: grid; grid-template-columns: minmax(0, 1fr) 54px; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; opacity: 0; transform: translateX(-6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.lp-terms .t.in { opacity: 1; transform: none; }
.lp-terms .t.sum { border-bottom: 0; border-top: 1px solid var(--ink); margin-top: 4px; font-weight: 600; }
.lp-terms .t span:last-child { font: 12px var(--mono); text-align: right; }
.lp-out .big { font-size: 52px; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.lp-out .big sup { font-size: .38em; color: var(--muted); vertical-align: 1.15em; }
.lp-out p { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* published accuracy */
.l-acc { background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-2); overflow: hidden; }
.acc-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr) 52px 110px; gap: 16px; align-items: center; padding: 15px 22px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.acc-row:last-child { border-bottom: 0; }
.acc-row.head { padding-top: 13px; padding-bottom: 11px; background: #fbfaf8; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.acc-row .nm { font-weight: 600; }
.acc-row .nm small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.acc-bar { position: relative; height: 8px; border-radius: 4px; background: var(--paper-2); }
.acc-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--ink); width: 0; transition: width 1s var(--ease); }
.acc-bar::after { content: ''; position: absolute; top: -4px; bottom: -4px; left: 30%; width: 1px; background: var(--brand); opacity: .6; }
.acc-row .n { font: 13px var(--mono); text-align: right; }
.acc-row.off { color: var(--faint); }
.acc-row.off .acc-bar i { background: var(--line-2); }

/* capabilities */
.l-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.l-grid > div { background: var(--surface); padding: 30px 28px; transition: background .2s; }
.l-grid > div:hover { background: #fbfaf8; }
.l-grid svg { width: 22px; height: 22px; color: var(--brand); }
.l-grid h3 { margin: 18px 0 8px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.l-grid p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* integrity */
.l-checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.l-checks li { position: relative; padding-left: 30px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.l-checks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); }
.l-checks li::after { content: ''; position: absolute; left: 6.5px; top: 7px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.l-checks b { color: var(--ink); font-weight: 600; }
.l-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-2); }
.l-stats > div { background: var(--surface); padding: 28px; }
.l-stats b { display: block; margin: 14px 0 6px; font-size: 40px; font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.l-stats span { font-size: 13px; color: var(--muted); }

/* faq + coverage */
.l-faq { border-top: 1px solid var(--line-2); }
.l-faq details { border-bottom: 1px solid var(--line-2); }
.l-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary::after { content: '+'; font: 400 20px var(--mono); color: var(--muted); transition: transform .25s var(--ease); }
.l-faq details[open] summary::after { transform: rotate(45deg); }
.l-faq details p { margin: -6px 0 20px; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); max-width: 62ch; }
#coverageLead { font-size: 14px; color: var(--muted); }
.l-courts { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.l-court { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: baseline; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.l-court .nm { font-size: 13.5px; font-weight: 600; }
.l-court .ct { font: 11.5px var(--mono); color: var(--muted); }
.l-court .bar { grid-column: 1 / -1; height: 3px; border-radius: 2px; background: var(--paper-2); overflow: hidden; }
.l-court .bar i { display: block; height: 100%; background: var(--ink); }
.l-court.soon { background: transparent; border-style: dashed; color: var(--faint); }

/* closing */
.l-final { position: relative; overflow: hidden; padding: 120px 0; background: var(--ink); color: #f5f4f1; text-align: center; }
.l-final::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 100% 32px; mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 75%); }
.l-final .l-wrap { position: relative; }
.l-final h2 { margin: 0 auto; max-width: none; }
.l-final p { margin: 14px 0 30px; color: #a9a69f; font-size: 15px; }
.l-big { height: 46px !important; padding: 0 22px !important; font-size: 15px !important; background: #fff !important; color: var(--ink) !important; border-radius: 7px !important; }
.l-big:hover { background: #f1efe9 !important; }
.l-foot { background: var(--ink); border-top: 1px solid #2a2a28; color: #8b8983; font-size: 12px; }
.l-foot .l-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 22px; }
.l-foot .rail-brand { color: #f5f4f1; } .l-foot .wordmark { font-size: 15px; } .l-foot .mark { background: #d9a4ab; width: 18px; height: 18px; }
.l-foot #landingFoot { flex: 1; text-align: center; }

/* scroll reveal */
.reveal-up { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-up.in { opacity: 1; transform: none; }
.l-hero-copy { padding-top: 18px; }
.l-hero-copy > * { animation: rise .7s var(--ease) both; }
.l-hero-copy > *:nth-child(2) { animation-delay: .06s; } .l-hero-copy > *:nth-child(3) { animation-delay: .12s; }
.l-hero-copy > *:nth-child(4) { animation-delay: .18s; } .l-hero-copy > *:nth-child(n+5) { animation-delay: .24s; }
.l-hero-demo { animation: rise .9s var(--ease) .2s both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ─── workspace shell ────────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; animation: fade .35s both; }
@keyframes fade { from { opacity: 0; } }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 14px; background: #fbfaf8; border-right: 1px solid var(--line); }
.rail > .rail-brand { padding: 4px 8px 18px; cursor: pointer; }
.rail-new { display: flex; align-items: center; justify-content: center; gap: 8px; height: 36px; margin: 0 2px 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); font-size: 13px; font-weight: 600; box-shadow: var(--shadow-1); transition: border-color .15s; }
.rail-new:hover { border-color: var(--ink-2); }
.rail-new svg { width: 14px; height: 14px; }
.rail-label { padding: 18px 10px 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.rail-nav button { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-2); font-size: 13.5px; font-weight: 500; text-align: left; transition: background .12s, color .12s; }
.rail-nav button svg { width: 16px; height: 16px; opacity: .65; flex: none; }
.rail-nav button:hover { background: var(--paper-2); color: var(--ink); }
.rail-nav button.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.rail-nav button.on svg { opacity: 1; }
.rail-foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.status { display: flex; align-items: center; gap: 8px; }

.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; height: 56px; padding: 0 28px; background: rgba(247,246,243,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.crumbs b { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.crumbs .sep { color: var(--faint); }
.stats { margin-left: auto; display: flex; gap: 20px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.stats b { margin-right: 4px; color: var(--ink); font: 600 12.5px var(--mono); }
.notice { margin: 16px 28px 0; padding: 10px 14px; border: 1px solid #ecdcb8; background: var(--amber-soft); color: var(--amber); border-radius: var(--r-sm); font-size: 12.5px; }

.workspace { display: grid; grid-template-columns: 372px minmax(0, 1fr); gap: 24px; max-width: 1560px; padding: 22px 28px 64px; }
.workspace > * { min-width: 0; }
.intake { position: sticky; top: 78px; align-self: start; max-height: calc(100vh - 96px); overflow: auto; padding: 1px 4px 8px 1px; scrollbar-width: thin; }
.results { min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 14px; font-weight: 600; }
.panel-body { padding: 18px 18px 4px; }
.intake .composer { margin-bottom: 4px; }
.intake .panel { margin-top: 14px; }

/* outlook dashboard */
.outlook { overflow: hidden; }
.outlook.reveal > * { animation: rise .5s var(--ease) both; }
.outlook.reveal > *:nth-child(2) { animation-delay: .05s; } .outlook.reveal > *:nth-child(3) { animation-delay: .1s; }
.ov-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.ov-title { font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.ov-title span { color: var(--muted); font-weight: 500; }
.ov-sub { margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; border-bottom: 1px solid var(--line); }
.kpi { display: flex; flex-direction: column; min-width: 0; padding: 18px 22px; border-left: 1px solid var(--line); }
.kpi:first-child { border-left: 0; }
.kpi .eyebrow { font-size: 11px; line-height: 1.35; }
.kpi-n { margin: 12px 0 2px; font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
.kpi-n small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.kpi-foot { margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.kpi-main .prob { margin-top: 10px; }
.kpi-main .prob .big { font-size: 48px; }
.ov-drivers { padding: 18px 22px 20px; }
.ov-drivers-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 6px; }
.levers { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.levers code { color: var(--muted); font-size: 12px; }
.lv-tag { display: inline-block; margin-right: 8px; padding: 1px 6px; border-radius: 4px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.lv-tag.pos { background: var(--pos-soft); color: var(--pos); }
.lv-tag.neg { background: var(--neg-soft); color: var(--neg); }

/* tabs + panes */
.tabs { display: flex; gap: 2px; margin: 22px 0 0; padding: 3px; border-radius: 9px; background: var(--paper-2); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { height: 32px; padding: 0 14px; border: 0; border-radius: 6px; background: none; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.pane { margin-top: 14px; padding: 22px; min-height: 280px; overflow-x: auto; }
.pane.reveal > * { animation: rise .45s var(--ease) both; }
.pane table { min-width: 620px; }

/* bench/forum/counsel/orders */
.forums { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.forum { padding: 16px; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s; }
.forum:hover { border-color: var(--line-2); }
.forum.here { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.forum .n { margin: 10px 0 8px; font-size: 34px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.forum small { display: block; font-size: 12px; color: var(--muted); }
.orders { display: flex; flex-direction: column; }
.order { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.order:last-child { border-bottom: 0; }
.order .no { font: 12.5px var(--mono); }
.order .who { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.order .tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.stamp { align-self: start; padding: 3px 8px; border-radius: 4px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.stamp.yes { background: var(--pos-soft); color: var(--pos); }
.stamp.no { background: var(--neg-soft); color: var(--neg); }
.cf-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.cf-card { display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: border-color .15s, box-shadow .2s; }
.cf-card:hover { box-shadow: var(--shadow-2); }
.cf-card:first-child { border-color: var(--ink); }
.cf-card.retained { background: #fbfaf8; }
.cf-rank { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cf-card:first-child .cf-rank { color: var(--brand); }
.cf-name { margin: 8px 0 12px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.cf-p { display: flex; align-items: center; gap: 12px; padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.cf-p b { font-size: 32px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cf-p span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.cf-why { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 7px; flex: 1; }
.cf-why li { position: relative; padding-left: 14px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.cf-why li::before { content: ''; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.cf-flags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.cf-flags span { padding: 2px 7px; border-radius: 4px; background: var(--paper-2); font-size: 11px; color: var(--muted); }
.cf-retain { width: 100%; }

/* strategy note */
.memo-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px; border: 1px solid var(--line-2); border-radius: var(--r); background: linear-gradient(180deg, #fbfaf8, var(--surface)); }
.memo-cta .h { font-size: 16px; }
.btn.cta { height: 40px; }
.memo-loading { display: flex; align-items: center; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); }
.memo-loading .bars { flex: 1; display: grid; gap: 9px; }
.memo-loading .bars i { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--paper-2), #e9e6e0, var(--paper-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.memo-loading .bars i:nth-child(3) { width: 82%; } .memo-loading .bars i:nth-child(4) { width: 64%; }
.quill { display: none; }
.memo { padding: 34px 38px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-2); }
.memo-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.memo-head span:last-child { color: var(--muted); }
.memo-title { margin: 20px 0 24px; font-size: 21px; line-height: 1.35; font-weight: 600; letter-spacing: -.02em; max-width: 60ch; }
.memo h4 { margin: 0 0 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.memo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.memo ol { margin: 0; padding-left: 18px; }
.memo li { margin-bottom: 12px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.memo li b { color: var(--ink); font-weight: 600; }
.ref { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 600; color: var(--brand); }
.memo-bench { margin: 12px 0 22px; padding: 14px 16px; border-left: 2px solid var(--ink); background: var(--paper); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.memo-bench p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border: 1.5px solid var(--line-2); border-radius: 4px; }
.auths-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 30px 0 12px; }
.auths { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.auth { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); }
.auth.idle { opacity: .55; }
.auth .cite { margin: 6px 0 4px; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.auth .hold { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.side-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--muted); }
.side-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.auth.us .side-tag { color: var(--pos); } .auth.us .side-tag::before { background: var(--pos); }
.auth.them .side-tag { color: var(--neg); } .auth.them .side-tag::before { background: var(--neg); }

/* model card */
.mc { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.mc-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.mc-stats > div { padding: 16px 18px; border-left: 1px solid var(--line); }
.mc-stats > div:first-child { border-left: 0; }
.mc-stats b { display: block; margin: 8px 0 2px; font-size: 30px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mc-stats small { font-size: 12px; color: var(--muted); }
.calib { margin: 0; }
.calib svg { width: 100%; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.calib figcaption { margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.mc-table td, .mc-table th { padding: 9px 10px; }

/* judgment search */
.sx-bar { display: grid; grid-template-columns: minmax(0, 1fr) 170px 200px; gap: 10px; }
.sx-input { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); }
.sx-input:focus-within { border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(20,20,19,.07); }
.sx-input svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.sx-input input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 14px; }
.sx-count { margin: 18px 0 2px; font-size: 12px; color: var(--muted); }
.sx-hit { cursor: pointer; padding: 14px 10px; margin: 0 -10px; border-radius: var(--r-sm); }
.sx-hit:hover { background: var(--paper); }
.sx-title { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.sx-snip { grid-column: 1 / -1; margin-top: 6px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }
mark { background: #f3e5c3; color: inherit; padding: 0 2px; border-radius: 2px; }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 40; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(20,20,19,.3); animation: fade .2s both; }
.drawer-body { position: absolute; top: 0; right: 0; bottom: 0; width: min(580px, 100%); overflow: auto; padding: 30px 34px; background: var(--surface); box-shadow: -24px 0 60px -24px rgba(0,0,0,.3); animation: slide .35s var(--ease) both; }
.drawer-body.wide { width: min(880px, 100%); }
.drawer-body .close { position: absolute; top: 18px; right: 20px; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font-size: 18px; color: var(--muted); }
.drawer-body .close:hover { border-color: var(--ink-2); color: var(--ink); }
.drawer-body h2 { margin: 6px 0 12px; font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -.025em; padding-right: 40px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.catrow { padding: 14px 0 22px; border-bottom: 1px solid var(--line); }
.catrow .top2 { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 13.5px; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 32px; margin-top: 10px; }
.spark div { position: relative; flex: 1; border-radius: 2px 2px 0 0; background: var(--line-2); }
.spark div:last-child { background: var(--ink); }
.spark div span { position: absolute; left: 0; right: 0; bottom: -16px; text-align: center; font: 10px var(--mono); color: var(--faint); }
.jx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 22px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; }
.jx-grid h4 { margin: 0 0 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.jx-grid > div { min-width: 0; overflow-wrap: anywhere; }
.jx-text { white-space: pre-wrap; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
@keyframes slide { from { transform: translateX(28px); opacity: 0; } }

/* print = export the strategy note */
@media print {
  .rail, .topbar, .notice, .intake, .tabs, .memo-cta, [data-memo], .landing, .outlook { display: none !important; }
  .shell, .workspace { display: block; padding: 0; }
  .panel, .memo { border: 0; box-shadow: none; }
  body { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-up { opacity: 1; transform: none; }
  .l-window { transform: none; }
}

/* ─── responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .l-hero { grid-template-columns: 1fr; gap: 48px; padding: 48px 32px 56px; }
  .l-hero h1 { max-width: 18ch; }
  .l-window { transform: none; }
  .l-float { margin-right: 12px; }
  .l-split { grid-template-columns: 1fr; gap: 40px; }
  .l-pipe { grid-template-columns: 1fr 1fr; }
  .lp-step:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .lp-step:nth-child(4) { border-top: 1px solid var(--line); }
  .lp-step:nth-child(2)::after { display: none; }
  .shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .workspace { grid-template-columns: 1fr; padding: 16px; }
  .intake { position: static; max-height: none; overflow: visible; }
  .topbar { padding: 0 16px; }
  .stats { display: none; }
  .notice { margin: 12px 16px 0; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi-main { grid-column: 1 / -1; }
  .kpi:nth-child(2) { border-left: 0; }
  .kpi:not(.kpi-main) { border-top: 1px solid var(--line); }
  .mc, .memo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .l-wrap, .l-nav-in { padding: 0 18px; }
  .l-links a:not(.l-cta-sm) { display: none; }
  .l-hero { padding: 32px 18px 44px; gap: 36px; }
  .l-hero h1 { font-size: 34px; margin-top: 18px; }
  .l-hero .lede { font-size: 15.5px; margin: 14px 0 22px; }
  .l-composer .composer-bar { flex-direction: column; align-items: stretch; }
  .l-composer .composer-bar .hint { display: none; }
  .l-composer .btn.primary { width: 100%; height: 44px; }
  .l-window { border-radius: 10px; }
  .wb-path { display: none; }
  .dc-body { grid-template-columns: 1fr; }
  .dc-body > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .dc-benches .row { grid-template-columns: 1fr 80px 36px; }
  .l-float { width: auto; margin: 14px 8px 0; }
  .lt-label { padding: 0 12px 0 18px; font-size: 10.5px; }
  .lt-item { padding: 0 18px; font-size: 12.5px; }
  .l-proof { grid-template-columns: 1fr 1fr; }
  .l-proof > div { padding: 20px 0 20px 18px; border-top: 1px solid var(--line); }
  .l-proof > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .l-proof > div:nth-child(-n+2) { border-top: 0; }
  .l-proof b { font-size: 26px; }
  .l-sec { padding: 64px 0; }
  .l-head h2, .l-final h2 { font-size: 27px; }
  .l-pipe { grid-template-columns: 1fr; margin-top: 32px; }
  .lp-step { border-left: 0 !important; border-top: 1px solid var(--line); }
  .lp-step:first-child { border-top: 0; }
  .lp-step::after { display: none; }
  .acc-row { grid-template-columns: minmax(0, 1fr) 72px 44px; gap: 10px; padding: 13px 16px; }
  .acc-row > :nth-child(4) { display: none; }
  .l-grid { grid-template-columns: 1fr; margin-top: 28px; }
  .l-grid > div { padding: 22px; }
  .l-stats > div { padding: 20px; }
  .l-stats b { font-size: 30px; }
  .l-final { padding: 72px 0; }
  .l-foot .l-wrap { flex-direction: column; text-align: center; }
  .topbar .btn.ghost { width: 36px; padding: 0; font-size: 0; gap: 0; }
  .workspace { padding: 12px; gap: 16px; }
  .ov-head, .ov-drivers { padding: 14px 16px; }
  .kpi { padding: 14px 16px; }
  .kpi-n { font-size: 24px; }
  .kpi-main .prob .big { font-size: 42px; }
  .drv { grid-template-columns: minmax(0, 1fr) 84px 48px; gap: 10px; font-size: 12.5px; }
  .pane { padding: 14px; }
  .memo { padding: 22px 18px; }
  .drawer-body { padding: 22px 18px; }
  .sx-bar { grid-template-columns: 1fr; }
  .jx-grid { grid-template-columns: 1fr 1fr; }
}


/* ═════════════ Editorial scheme: serif display, mono labels, square geometry ═════════════ */
.l-hero h1, .l-head h2, .l-final h2, .ov-title, .memo-title, .drawer-body h2, .dc-title, .cf-name, .lp-step h3, .l-faq summary, .caps-item b, .panel-head h2, .acc-row .nm {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; }
.l-hero h1 { font-size: clamp(42px, 5vw, 70px); line-height: 1.02; letter-spacing: -.025em; max-width: 13ch; }
.l-head h2, .l-final h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.08; }
.ov-title { font-size: 22px; } .ov-title span { font-family: var(--sans); font-size: 14px; }
.memo-title { font-size: 25px; line-height: 1.3; }
.drawer-body h2 { font-size: 30px; }
.panel-head h2 { font-size: 18px; }
.eyebrow, .l-eyebrow, th, .kpi .eyebrow, .wb-path, .lt-label, .memo-head, .memo h4, .jx-grid h4, .cf-rank, .acc-row.head, .lp-n, .l-kicker, .rail-label {
  font-family: var(--mono) !important; font-weight: 500 !important; text-transform: uppercase; letter-spacing: .08em !important; font-size: 10.5px !important; }
.l-eyebrow { color: var(--muted); } .l-eyebrow::before { display: none; }
.btn, .preset, .seg, .seg button, .tabs, .tabs button, select, .sx-input, .l-links .l-cta-sm, .rail-new, .rail-nav button, .status-chip, .pill, .dc-fact, .stamp, .lv-tag, .badge { border-radius: 2px !important; }
.btn.primary { background: var(--ink); }
.composer, .l-composer, .panel, .l-window, .l-acc, .l-stats, .l-grid, .l-pipe, .forum, .cf-card, .memo, .auth, .l-court, .memo-cta, .l-float { border-radius: 2px !important; }
.panel, .l-acc, .l-stats, .l-pipe, .memo, .cf-card { box-shadow: none; }
.status-chip::before { border-radius: 0; width: 5px; height: 5px; }

/* hero: charcoal, light document on top */
.l-nav { background: rgba(28,27,25,.0); }
body.is-landing .l-nav { position: absolute; left: 0; right: 0; background: transparent; }
body.is-landing .l-nav .wordmark, body.is-landing .l-links a { color: var(--on-dark); }
body.is-landing .l-links a:hover { color: #fff; }
body.is-landing .l-links .l-cta-sm { background: var(--on-dark); color: var(--ink); }
body.is-landing .l-links .l-cta-sm:hover { background: #fff; color: var(--ink); }
.l-nav .mark { background: #d9a4ab; }
.l-top { background: var(--charcoal); color: var(--on-dark); border-bottom: 0; }
.l-top::before { background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px); background-size: 100% 36px; opacity: 1; }
.l-hero { padding-top: 132px; padding-bottom: 76px; }
.l-kicker { height: auto; padding: 0; border: 0; background: none; color: var(--on-dark-2); }
.l-hero h1 { color: var(--on-dark); margin-top: 20px; }
.l-hero .lede { color: var(--on-dark-2); }
.l-hero .l-composer { border-color: #000; }
.l-presets .hint, .l-note { color: var(--on-dark-2); }
.l-presets .preset { background: transparent; border-color: var(--charcoal-line); color: #d5d1c8; }
.l-presets .preset:hover { border-color: var(--on-dark); color: #fff; }
.l-manual { color: var(--on-dark-2); }
.l-manual:hover { color: #fff; }
.l-window { border: 1px solid #000; box-shadow: var(--shadow-3); background: var(--paper); }
.l-window-bar { height: 40px; background: var(--surface); border-bottom: 1.5px solid var(--ink); }
.wb-path { color: var(--ink); }
.dc-head { padding-top: 18px; }
.dc-title { font-size: 20px; } .dc-title span { font-family: var(--sans); font-size: 13px; }
.l-window .dc-body, .l-window .dc-benches { background: var(--surface); }
.l-window .dc-body { border-top: 1px solid var(--line-2); }
.l-float { border: 1px solid #000; }
.l-ticker { background: var(--charcoal-2); border-top: 1px solid var(--charcoal-line); }
.lt-label { background: var(--charcoal-2); border-right-color: var(--charcoal-line); color: var(--on-dark); }
.lt-item { color: #d5d1c8; border-right-color: var(--charcoal-line); }
.lt-item em { color: #8f8b82; }
.lt-item b.yes { background: rgba(115,170,130,.16); color: #9fd0ac; }
.lt-item b.no { background: rgba(214,120,100,.16); color: #eba493; }

/* proof band */
.l-band { background: var(--paper); border-bottom: 1px solid var(--line-2); }
.l-proof b { font-family: var(--serif); font-weight: 400; font-size: 46px; letter-spacing: -.02em; }

/* dark method band */
.l-dark { background: var(--charcoal); color: var(--on-dark); }
.l-dark .l-head p { color: var(--on-dark-2); }
.l-dark .l-eyebrow { color: var(--on-dark-2); }
.l-dark .l-pipe { border: 1px solid #000; background: var(--paper); box-shadow: var(--shadow-3); color: var(--ink); }
.l-pipe .lp-step { border-left-color: var(--line-2); }
.lp-step:not(:last-child)::after { background: var(--paper); border-color: var(--line-2); }
.lp-out .big { font-family: var(--serif); font-weight: 400; font-size: 64px; letter-spacing: -.03em; }
.lp-n { color: var(--accent) !important; }

/* capability list → document panel */
.l-caps { margin-top: 52px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.caps-list { border-left: 1.5px solid var(--line-2); }
.caps-item { display: block; width: 100%; margin-left: -1.5px; padding: 12px 0 12px 24px; border: 0; border-left: 1.5px solid transparent; background: none; text-align: left; transition: border-color .25s; }
.caps-item b { display: block; font-size: 30px; line-height: 1.15; color: var(--faint); transition: color .25s; }
.caps-item span { display: block; max-height: 0; overflow: hidden; opacity: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); transition: max-height .4s var(--ease), opacity .3s, margin .3s; max-width: 48ch; }
.caps-item:hover b { color: var(--ink-2); }
.caps-item.on { border-left-color: var(--ink); }
.caps-item.on b { color: var(--ink); }
.caps-item.on span { max-height: 120px; opacity: 1; margin-top: 8px; }
.caps-panel { padding: 30px; background: var(--paper-2); min-height: 420px; }
.caps-label { margin: 0 0 10px; }
.caps-label:not(:first-child) { margin-top: 20px; }
.caps-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.caps-chips span { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; background: var(--surface); font-size: 13px; }
.caps-chips span i { font: normal 10px var(--mono); color: var(--faint); text-transform: uppercase; }
.doc { background: var(--surface); box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 16px 34px -26px rgba(0,0,0,.4); }
.doc-h { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1.5px solid var(--ink); font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.doc-h span:last-child { color: var(--muted); }
.doc table { min-width: 0; font-size: 12.5px; }
.doc th { padding: 10px 16px 8px; border-bottom: 1px solid var(--line); }
.doc td { padding: 10px 16px; font-family: var(--mono); font-size: 12px; }
.doc td:first-child { font-family: var(--sans); font-size: 13px; }
.doc tr.hl td { color: var(--accent); }
.doc .doc-body { padding: 14px 16px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.caps-foot { margin: 16px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.caps-more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--ink); background: none; border: 0; padding: 0; }
.caps-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* accuracy, integrity, faq, coverage, closing */
.l-alt { background: var(--paper-2); border-color: var(--line-2); }
.l-acc { border: 1px solid var(--ink); }
.acc-row.head { background: var(--surface); border-bottom: 1.5px solid var(--ink); color: var(--ink); }
.acc-row .nm { font-size: 18px; }
.acc-bar, .acc-bar i { border-radius: 0; }
.l-stats { border: 1px solid var(--ink); }
.l-stats b { font-family: var(--serif); font-weight: 400; font-size: 52px; }
.l-checks li::before { border-radius: 0; }
.l-faq summary { font-size: 22px; padding: 22px 0; }
.l-faq summary::after { font-family: var(--sans); font-weight: 300; font-size: 24px; }
.l-court { border-color: var(--line-2); }
.l-final { background: var(--charcoal); }
.l-final::before { background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px); background-size: 100% 36px; }
.l-final h2 { font-size: clamp(36px, 4vw, 56px); }
.l-big { border-radius: 2px !important; background: var(--on-dark) !important; }
.l-foot { background: var(--charcoal); border-top-color: var(--charcoal-line); }

/* workspace: same voice */
.rail { background: var(--paper); }
.rail-nav button.on { box-shadow: inset 2px 0 0 var(--ink); background: var(--surface); }
.wordmark { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: -.02em; }
.kpi-main .prob .big, .prob .big { font-family: var(--serif); font-weight: 400; letter-spacing: -.03em; }
.kpi-n, .forum .n, .cf-p b, .mc-stats b { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; }
.kpi-n { font-size: 34px; }
.outlook, .pane { border-color: var(--line-2); }
.ov-head { border-bottom: 1.5px solid var(--ink); }
.memo { border: 1px solid var(--ink); }
.memo-head { border-bottom: 1.5px solid var(--ink); color: var(--ink); }
.memo-bench { border-radius: 0; }
.tabs { background: none; padding: 0; border-bottom: 1px solid var(--line-2); width: 100%; border-radius: 0 !important; gap: 0; }
.tabs button { height: 40px; padding: 0 16px; border-bottom: 1.5px solid transparent !important; margin-bottom: -1px; }
.tabs button.on { background: none; box-shadow: none; border-bottom-color: var(--ink) !important; }
.scale, .scale i, .axis, .axis span, .meter, .meter > i { border-radius: 0 !important; }

@media (max-width: 1100px) {
  .l-caps { grid-template-columns: 1fr; gap: 28px; }
  .l-hero { padding-top: 108px; }
}
@media (max-width: 640px) {
  .l-hero { padding-top: 96px; }
  .l-hero h1 { font-size: 40px; }
  .caps-item b { font-size: 23px; }
  .caps-panel { padding: 16px; min-height: 0; }
  .l-proof b { font-size: 32px; }
  .l-stats b { font-size: 36px; }
  .l-faq summary { font-size: 18px; }
  .doc td, .doc th { padding-left: 10px; padding-right: 10px; }
}
.l-window, .l-float { color: var(--ink); }
.l-window .hint { color: var(--muted); }

/* ═════════════ Hero: the input is the hero. Centered, flat, no tilt, no halo. ═════════════ */
.l-hero { display: flex; flex-direction: column; align-items: center; gap: 0; max-width: 1180px; padding: 140px 40px 72px; text-align: center; }
.l-hero-copy { width: 100%; max-width: 860px; padding-top: 0; display: flex; flex-direction: column; align-items: center; }
.l-hero h1 { max-width: 16ch; margin-left: auto; margin-right: auto; font-size: clamp(40px, 5vw, 68px); }
.l-hero .lede { max-width: 56ch; margin: 18px auto 36px; }
.l-hero .l-composer { width: 100%; text-align: left; background: var(--surface); border: 1px solid #000; box-shadow: none !important; }
.l-hero .l-composer:focus-within { border-color: #000; box-shadow: 0 0 0 3px rgba(244,242,236,.22) !important; }
.l-hero .l-composer textarea { font-size: 18px; line-height: 1.55; min-height: 120px; padding: 20px 22px 10px; }
.l-hero .l-composer .composer-bar { padding: 12px 12px 12px 22px; }
.l-hero .l-composer .btn.primary { height: 44px; padding: 0 20px; font-size: 15px; }
.l-hero .l-presets { justify-content: center; }
.l-hero .l-manual { margin-top: 2px; }
.l-hero-demo { width: 100%; max-width: 980px; margin-top: 56px; perspective: none; text-align: left; animation: rise .8s var(--ease) .25s both; }
.l-window, .l-hero-demo:hover .l-window, .l-window.live { transform: none !important; box-shadow: none !important; border: 1px solid #000; }
.l-float { box-shadow: none !important; border: 1px solid #000; margin: -1px 0 0 auto; width: 340px; transform: none; }
.l-float.in { transform: none; }
.l-hero-demo .dc-body { grid-template-columns: 240px 1fr; }
@media (max-width: 1100px) { .l-hero { padding: 116px 32px 56px; } }
@media (max-width: 640px) {
  .l-hero { padding: 96px 18px 44px; }
  .l-hero h1 { font-size: 38px; }
  .l-hero .lede { font-size: 15.5px; margin-bottom: 24px; }
  .l-hero .l-composer textarea { font-size: 16px; min-height: 110px; padding: 16px 16px 8px; }
  .l-hero-demo { margin-top: 36px; }
  .l-hero-demo .dc-body { grid-template-columns: 1fr; }
  .l-float { width: auto; margin: -1px 0 0; }
}
.l-hero { padding-top: 104px; }
.l-kicker { margin-bottom: 0; }
.l-hero h1 { font-size: clamp(38px, 4.4vw, 60px); margin-top: 14px; }
.l-hero .lede { margin: 14px auto 28px; }
.l-hero .l-composer:focus-within { box-shadow: none !important; }
@media (max-width: 1100px) { .l-hero { padding-top: 96px; } }
@media (max-width: 640px) { .l-hero { padding-top: 84px; } }

/* ═════════════ Brand: signature wordmark + court seal ═════════════ */
.mark, .l-nav .mark, .l-foot .mark { width: 30px; height: 30px; background: url(/seal-96.png) center / contain no-repeat !important; -webkit-mask: none !important; mask: none !important; }
.wordmark { font-family: 'Parisienne', cursive !important; font-weight: 400 !important; font-size: 31px !important; letter-spacing: 0 !important; line-height: 1; transform: translateY(2px); }
.rail-brand { gap: 10px; }
.rail > .rail-brand .wordmark { font-size: 30px !important; }
.l-foot .mark { width: 24px; height: 24px; }
.l-foot .wordmark { font-size: 26px !important; }
/* inputs always use ink text, whatever section they sit in */
.l-composer, .composer, .l-composer textarea, .composer textarea, select, .sx-input input { color: var(--ink); }
.l-composer textarea { caret-color: var(--ink); }
