/* =====================================================================
   WhatsMyNIL — site styles
   Brand: Brick by Brick — orange #FF914D / black / white, Dela Gothic One.
   Data colors (keep/tax/agent, stack buckets) validated for color-vision
   deficiency on the dark surface; every chart also carries text labels.
   ===================================================================== */
:root {
  --bg: #0A0A0A;
  --surface: #121212;
  --surface-2: #171717;
  --surface-3: #1E1E1E;
  --line: #262626;
  --line-2: #363636;
  --text: #F5F1EC;
  --text-2: #CFC9C1;
  --mute: #958E85;
  --dim: #655E56;
  --orange: #FF914D;
  --orange-2: #FF7A2E;
  --paper: #F4EEE4;
  --paper-2: #E9E0D1;
  --ink: #17130F;
  --ink-2: #5B5249;
  --stamp: #C4411A;

  /* data */
  --keep: #E4692A;
  --tax: #3987E5;
  --agent: #D55181;
  --exp: #6E675F;
  --foundation: #E4692A;
  --invest: #199E70;
  --family: #9085E9;
  --fun: #C98500;
  --living: #6E675F;

  /* status (always paired with an icon + label) */
  --good: #3DBE8B;
  --warn: #E3A33B;
  --bad: #F0575B;

  --r: 20px;
  --maxw: 1200px;
  --display: 'Dela Gothic One', 'Arial Black', system-ui, sans-serif;
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --hand: 'Caveat', 'Bradley Hand', cursive;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(1100px 560px at 88% -8%, rgba(255,145,77,.13), transparent 60%), radial-gradient(800px 500px at -12% 28%, rgba(255,145,77,.05), transparent 60%);
}
.noise { position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .035; mix-blend-mode: overlay; background-image: radial-gradient(rgba(255,255,255,.7) 1px, transparent 1px), radial-gradient(rgba(255,255,255,.4) 1px, transparent 1px); background-size: 3px 3px, 7px 7px; background-position: 0 0, 1px 2px; }
main, .nav, .strip, .foot { position: relative; z-index: 2; }
img { max-width: 100%; }
a { color: var(--orange); }
a:hover { color: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
button { touch-action: manipulation; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.sr { 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: absolute; left: -999px; top: 8px; z-index: 200; background: var(--orange); color: #000; padding: 8px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { left: 12px; }
.accent { color: var(--orange); }
.fine { font-size: 12px; color: var(--mute); line-height: 1.55; margin: 0; }
.fine a { color: var(--text-2); }
.src { font-size: 11.5px; color: var(--mute); margin: 0; }
.src a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-2); }
.src a:hover { color: var(--orange); }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px; padding: 13px 20px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #000; }
.btn-primary:hover { background: #fff; color: #000; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-sm { padding: 8px 12px; font-size: 12.5px; border-radius: 10px; }
.btn:disabled { opacity: .35; cursor: default; }
.btn-sub { font-weight: 500; font-size: 12px; color: var(--mute); }
.chip { background: var(--surface); border: 1px solid var(--line); color: var(--text-2); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; transition: all .15s; }
.chip:hover { border-color: var(--orange); color: var(--text); }
.chip[aria-selected="true"], .chip.on { background: var(--orange); color: #000; border-color: var(--orange); }
.chip .n { font-family: var(--mono); font-size: 11px; opacity: .7; margin-left: 5px; }
.seg { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.seg button { cursor: pointer; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; flex-shrink: 0; }
.sw-keep { background: var(--keep); } .sw-tax { background: var(--tax); } .sw-agent { background: var(--agent); } .sw-exp { background: var(--exp); }
.sw-foundation { background: var(--foundation); } .sw-invest { background: var(--invest); } .sw-family { background: var(--family); } .sw-fun { background: var(--fun); } .sw-living { background: var(--living); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; flex-shrink: 0; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- top strip + nav ---------- */
.strip { background: #000; color: var(--mute); font-size: 12px; padding: 8px 20px; border-bottom: 1px solid var(--line); display: flex; gap: 10px 14px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; }
.strip-badge { background: var(--orange); color: #000; font-weight: 800; font-size: 10px; letter-spacing: .14em; padding: 2px 7px; border-radius: 5px; }
.strip-lock { color: var(--text-2); }
.nav { position: sticky; top: 0; z-index: 60; background: rgba(10,10,10,.84); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 22px; padding: 12px 24px; }
.logo { font-family: var(--display); font-size: 19px; color: var(--text); text-decoration: none; white-space: nowrap; letter-spacing: -.01em; }
.logo:hover { color: var(--text); }
.nav-links { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--mute); text-decoration: none; font-size: 13px; font-weight: 600; transition: color .15s; position: relative; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.nav-links a.on { color: var(--orange); }
.nav-links a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -18px; height: 2px; background: var(--orange); }
.nav-links .nav-ext { color: var(--text-2); border-left: 1px solid var(--line-2); padding-left: 16px; }
.nav-cta { background: var(--orange); color: #000; padding: 9px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.nav-cta:hover { background: #fff; color: #000; }
.nav-menu { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-menu span:not(.sr) { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s; }
.nav-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-menu[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); padding: 8px 16px 18px; display: grid; gap: 2px; background: rgba(10,10,10,.97); max-height: calc(100vh - 70px); overflow: auto; }
.mobile-menu a { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 6px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-family: var(--display); font-size: 20px; text-transform: uppercase; }
.mobile-menu a em { font-family: var(--mono); font-style: normal; font-size: 11px; color: var(--mute); text-transform: none; }

/* ---------- sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 84px 24px 8px; scroll-margin-top: 70px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px 28px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-head h1, .sec-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4.4vw, 52px); line-height: .98; letter-spacing: -.025em; text-transform: uppercase; margin: 10px 0 0; }
.sec-sub { color: var(--text-2); font-size: 17px; max-width: 660px; margin: 12px 0 0; line-height: 1.5; }
.kicker { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .18em; color: var(--orange); display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.kicker-mute { color: var(--mute); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.persona-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.persona-chips > span { font-family: var(--mono); font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .1em; }

/* ---------- carousels ---------- */
.rail-wrap { position: relative; }
.rail-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.rail-title { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--mute); }
.rail-nav { display: flex; align-items: center; gap: 8px; }
.rail-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 17px; cursor: pointer; display: grid; place-items: center; transition: all .15s; }
.rail-btn:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); }
.rail-btn:disabled { opacity: .3; cursor: default; }
.rail-count { font-family: var(--mono); font-size: 11.5px; color: var(--mute); min-width: 64px; text-align: center; }
.rail-static .rail-nav { display: none; }
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding: 2px 2px 8px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: 0 0 auto; }
.rail:focus-visible { outline-offset: 4px; }

/* ---------- NEWS (top of page) ---------- */
.wire { padding-top: 40px; }
.wire-head { margin-bottom: 20px; }
.wire-meta { font-family: var(--mono); font-size: 12px; color: var(--mute); display: flex; align-items: center; gap: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.wire-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 16px; margin-bottom: 26px; }
.story { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; position: relative; transition: border-color .2s, transform .2s; min-width: 0; }
.story:hover { border-color: rgba(255,145,77,.7); transform: translateY(-2px); }
.story-img { aspect-ratio: 16 / 9; background: #1a1a1a; position: relative; overflow: hidden; flex-shrink: 0; }
.story-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.story:hover .story-img img { transform: scale(1.035); }
.story-credit { position: absolute; right: 8px; bottom: 8px; font-family: var(--mono); font-size: 9px; color: #ddd; background: rgba(0,0,0,.62); padding: 2px 6px; border-radius: 4px; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-ph { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 14px; background: radial-gradient(120% 90% at 100% 0%, rgba(255,145,77,.55), transparent 55%), linear-gradient(160deg, #1b1b1b, #0c0c0c); }
.story-ph b { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: .95; text-transform: uppercase; color: var(--text); letter-spacing: -.02em; }
.story-ph b small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--orange); margin-bottom: 6px; }
.story-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.story-src { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--orange); font-weight: 600; }
.story-src b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-src time { color: var(--mute); font-weight: 400; white-space: nowrap; }
.story h3 { font-size: 16.5px; line-height: 1.3; font-weight: 700; margin: 0; letter-spacing: -.005em; }
.story h3 a { color: var(--text); text-decoration: none; }
.story h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.story p { font-size: 13.5px; color: var(--text-2); line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; flex-wrap: wrap; }
.story-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.topic { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 8px; }
.story-learn { position: relative; z-index: 2; font-size: 12px; font-weight: 800; color: var(--orange); text-decoration: none; white-space: nowrap; }
.story-learn:hover { color: #fff; }
.story-lead { grid-row: span 2; }
.story-lead .story-img { aspect-ratio: auto; flex: 1 1 auto; min-height: 300px; }
.story-lead h3 { font-size: clamp(21px, 2.3vw, 28px); font-weight: 800; line-height: 1.15; letter-spacing: -.015em; }
.story-lead p { font-size: 15px; -webkit-line-clamp: 3; }
.story-lead .story-body { padding: 18px 20px 20px; gap: 10px; flex: 0 0 auto; }
.story-side h3 { font-size: 15.5px; }
.story-side .story-img { aspect-ratio: 2 / 1; }
.story-rail { width: 270px; }
.story-rail .story-body { gap: 6px; padding: 12px 14px 14px; }
.story-rail h3 { font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.skel .story-img, .skel .story-body i { background: linear-gradient(90deg, #161616 0%, #202020 50%, #161616 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
.skel .story-body i { display: block; height: 12px; border-radius: 6px; margin: 4px 0; }
.skel .story-body i:nth-child(2) { width: 80%; } .skel .story-body i:nth-child(3) { width: 55%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.credit { font-family: var(--mono); font-size: 11px; color: var(--mute); margin: 18px 0 0; line-height: 1.6; max-width: 900px; }
.wire-empty { grid-column: 1 / -1; text-align: center; color: var(--mute); padding: 40px 0; }

/* ---------- KEEP THE BAG ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 52px; align-items: center; }
.hero-h { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 4.7vw, 66px); line-height: .92; letter-spacing: -.035em; text-transform: uppercase; margin: 14px 0 0; }
.lead { font-size: 18px; color: var(--text-2); line-height: 1.55; max-width: 560px; margin: 20px 0 0; text-wrap: pretty; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; max-width: 580px; }
.door { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; color: var(--text); position: relative; overflow: hidden; transition: border-color .15s, transform .15s, background .15s; }
.door::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(255,145,77,.18), transparent 70%); opacity: 0; transition: opacity .2s; }
.door:hover { border-color: var(--orange); transform: translateY(-2px); }
.door:hover::after, .door.on::after { opacity: 1; }
.door.on { border-color: var(--orange); background: linear-gradient(160deg, rgba(255,145,77,.12), transparent 60%), var(--surface); }
.door-k { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .16em; color: var(--orange); }
.door-t { font-family: var(--display); font-size: 19px; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.05; margin-top: 2px; }
.door-d { font-size: 13px; color: var(--mute); line-height: 1.4; }
.door-go { font-size: 12.5px; font-weight: 800; color: var(--orange); margin-top: 6px; }
.trust { font-family: var(--mono); font-size: 11.5px; color: var(--mute); margin: 14px 0 0; }

/* the check */
.hero-tool { position: relative; }
.check, .stub { position: relative; z-index: 1; }
.check { color: var(--ink); border-radius: 16px 16px 0 0; padding: 22px 24px 16px; background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,0) 45%), repeating-linear-gradient(135deg, rgba(23,19,15,.035) 0 2px, transparent 2px 7px), repeating-radial-gradient(circle at 85% 30%, rgba(228,105,42,.05) 0 1px, transparent 1px 9px), var(--paper); box-shadow: 0 30px 80px -30px rgba(0,0,0,.85), inset 0 0 0 1px rgba(0,0,0,.08); }
.check-top { display: flex; justify-content: space-between; align-items: flex-start; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); gap: 10px; }
.check-bank { font-weight: 600; color: var(--ink); }
.check-bank em { display: block; font-family: var(--sans); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--ink-2); font-weight: 500; }
.check-row { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 12px; margin-top: 20px; }
.check-label { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); line-height: 1.25; }
.check-payee { font-family: var(--hand); font-weight: 600; font-size: 36px; line-height: .9; border-bottom: 1.5px solid var(--ink); padding: 0 8px 2px; }
.check-amt { display: flex; align-items: center; border: 2px solid var(--ink); border-radius: 9px; padding: 5px 10px; background: rgba(255,255,255,.55); font-family: var(--mono); font-weight: 600; cursor: text; }
.check-amt span { font-size: 22px; margin-right: 2px; }
.check-amt input { font-family: var(--mono); font-weight: 600; font-size: 27px; width: 8.6ch; background: transparent; border: 0; color: var(--ink); outline: none; text-align: right; padding: 0; font-variant-numeric: tabular-nums; }
.check-amt:focus-within { box-shadow: 0 0 0 4px rgba(228,105,42,.35); }
.check-words { margin-top: 16px; display: flex; align-items: flex-end; gap: 10px; border-bottom: 1.5px solid var(--ink); padding-bottom: 1px; min-height: 36px; }
.check-words #h-words { font-family: var(--hand); font-weight: 600; font-size: 26px; line-height: 1.05; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check-dollars { margin-left: auto; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; padding-bottom: 4px; }
.check-bottom { display: grid; grid-template-columns: 1fr auto; gap: 16px; margin-top: 18px; align-items: end; }
.memo-k { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); display: block; margin-bottom: 7px; }
.seg-paper button { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 999px; }
.seg-paper button:hover { background: rgba(23,19,15,.08); }
.seg-paper button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.check-sig { text-align: center; min-width: 150px; }
.sig { display: block; font-family: var(--hand); font-weight: 600; font-size: 28px; line-height: 1; transform: rotate(-3deg); }
.sig-line { display: block; border-top: 1.5px solid var(--ink); font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; padding-top: 3px; margin-top: 4px; color: var(--ink-2); }
.micr { margin-top: 14px; font-family: var(--mono); font-size: 15px; letter-spacing: .2em; color: var(--ink); opacity: .7; white-space: nowrap; overflow: hidden; }
.stub { background: repeating-linear-gradient(135deg, rgba(23,19,15,.03) 0 2px, transparent 2px 7px), var(--paper-2); color: var(--ink); border-radius: 0 0 16px 16px; padding: 18px 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; box-shadow: 0 30px 60px -30px rgba(0,0,0,.85); }
.stub::before, .stub::after { content: ''; position: absolute; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.stub::before { left: -11px; } .stub::after { right: -11px; }
.stub-perf { position: absolute; top: -1px; left: 16px; right: 16px; border-top: 2px dashed rgba(23,19,15,.35); }
.stub-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 3px 0; font-weight: 500; }
.stub-row span { display: inline-flex; align-items: center; }
.stub-row em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--ink-2); margin-left: 6px; }
.stub-row b { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.stub-bar { display: flex; gap: 2px; height: 10px; margin: 10px 0; border-radius: 999px; overflow: hidden; }
.stub-bar i { display: block; height: 100%; transition: flex-basis .5s cubic-bezier(.2,.8,.2,1); flex: 0 0 0%; }
.stub-bar .b-keep { background: var(--keep); } .stub-bar .b-tax { background: var(--tax); } .stub-bar .b-agent { background: var(--agent); }
.stub-keep { display: flex; justify-content: space-between; align-items: center; border-top: 1.5px solid var(--ink); padding-top: 10px; gap: 10px; }
.stub-keep span { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; display: inline-flex; align-items: center; white-space: nowrap; }
.stub-keep strong { font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: -.02em; background: var(--orange); color: #000; padding: 3px 12px 2px; border-radius: 8px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stamp { width: 108px; height: 108px; border: 3px solid var(--stamp); color: var(--stamp); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-12deg); text-align: center; font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; line-height: 1.2; box-shadow: inset 0 0 0 4px rgba(196,65,26,.15); font-weight: 600; }
.stamp b { font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: -.03em; line-height: 1; margin-bottom: 3px; }
.stamp.thump { animation: thump .45s cubic-bezier(.2,.8,.2,1); }
@keyframes thump { 0% { transform: rotate(-12deg) scale(1.25); opacity: .3; } 100% { transform: rotate(-12deg) scale(1); opacity: 1; } }
.hero-controls { display: flex; gap: 10px; margin-top: 18px; align-items: flex-end; flex-wrap: wrap; }
.mini { display: flex; flex-direction: column; gap: 5px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); }
.mini select, .fld select {
  appearance: none; -webkit-appearance: none; background-color: #000; border: 1px solid var(--line); color: var(--text); border-radius: 12px;
  padding: 11px 34px 11px 12px; font-size: 14.5px; font-weight: 600; font-family: var(--sans); letter-spacing: 0; text-transform: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'><path d='M0 0l5 6 5-6z' fill='%23FF914D'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 10px 6px; cursor: pointer; width: 100%;
}
.mini select { min-width: 132px; }
.mini:first-child select { min-width: 170px; }
.hero-controls .btn { margin-left: auto; }

/* ---------- the breakdown card ---------- */
.breakdown { margin-top: 34px; padding: 22px 24px 18px; }
.bd-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; }
.bd-keep { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.bd-keep b { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 4.4vw, 52px); color: var(--orange); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.bd-keep span { color: var(--text-2); font-size: 14px; }
.bd-keep em { font-style: normal; color: var(--text); font-weight: 700; }
.tabs, .deal-tabs, .decide-tabs { display: inline-flex; gap: 4px; background: #000; border: 1px solid var(--line); border-radius: 14px; padding: 4px; flex-wrap: wrap; }
.tabs button, .deal-tabs button, .decide-tabs button { background: transparent; border: 0; color: var(--text-2); padding: 10px 16px; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 700; transition: background .15s, color .15s; white-space: nowrap; }
.tabs button:hover, .deal-tabs button:hover, .decide-tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"], .deal-tabs button[aria-selected="true"], .decide-tabs button[aria-selected="true"] { background: var(--orange); color: #000; }
.deal-tabs, .decide-tabs { margin-bottom: 18px; background: var(--surface); }
.deal-tabs button { text-align: left; font-weight: 600; font-size: 12.5px; padding: 10px 16px; }
.deal-tabs button b { display: block; font-family: var(--display); font-weight: 400; font-size: 16px; text-transform: uppercase; color: var(--text); }
.deal-tabs button[aria-selected="true"] b { color: #000; }
.decide-tabs button { font-family: var(--display); font-weight: 400; font-size: 14px; text-transform: uppercase; }
.tune { margin-top: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tune summary { cursor: pointer; list-style: none; padding: 12px 0; display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.tune summary::-webkit-details-marker { display: none; }
.tune summary em { font-family: var(--mono); font-size: 10.5px; color: var(--mute); font-style: normal; font-weight: 400; margin-right: auto; }
.tune summary::after { content: '+'; color: var(--orange); font-size: 18px; margin-left: auto; }
.tune[open] summary::after { content: '−'; }
.tune-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; padding: 4px 0 16px; align-items: end; }
.tune-hint { grid-column: 1 / -1; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld > span:first-child { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); }
.fld input[type="text"], .fld input:not([type]) { background: #000; border: 1px solid var(--line); border-radius: 12px; color: var(--text); padding: 12px; font-size: 15px; font-weight: 600; width: 100%; outline: none; }
.fld select:focus, .fld input:focus, .mini select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,145,77,.16); outline: none; }
.money-in { display: flex; align-items: center; background: #000; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; transition: border-color .15s, box-shadow .15s; }
.money-in i { font-style: normal; color: var(--mute); font-family: var(--mono); font-weight: 600; margin-right: 4px; }
.money-in input { border: 0 !important; background: transparent !important; padding: 11px 0 !important; flex: 1; min-width: 0; font-family: var(--mono) !important; font-variant-numeric: tabular-nums; box-shadow: none !important; }
.money-in:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,145,77,.16); }
.slider { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.slider label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.slider output { font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--orange); text-align: right; font-variant-numeric: tabular-nums; }
.slider input { grid-column: 1 / -1; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; outline: none; cursor: pointer; background: linear-gradient(var(--orange), var(--orange)) 0 / var(--fill, 50%) 100% no-repeat, #2a2a2a; margin: 8px 0; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); border: 4px solid #000; box-shadow: 0 0 0 1px var(--orange); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--orange); border: 4px solid #000; box-shadow: 0 0 0 1px var(--orange); cursor: grab; }
input[type="range"]:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.hint { font-size: 12px; color: var(--mute); line-height: 1.5; margin: 0; }
.seg-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #000; border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.seg-wide button { background: transparent; border: 0; color: var(--text-2); padding: 7px 8px; border-radius: 9px; font-weight: 700; font-size: 12.5px; }
.seg-wide button em { display: block; font-family: var(--mono); font-size: 9.5px; color: var(--mute); font-style: normal; font-weight: 400; }
.seg-wide button[aria-checked="true"] { background: var(--orange); color: #000; }
.seg-wide button[aria-checked="true"] em { color: rgba(0,0,0,.62); }
.bp { padding-top: 16px; }
.bp-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.wf-head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }
.wf-legend { display: inline-flex; align-items: center; gap: 2px 12px; flex-wrap: wrap; text-transform: none; letter-spacing: 0; font-size: 12px; }
.waterfall { display: flex; flex-direction: column; gap: 3px; }
.wf-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) 96px; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 11px; cursor: pointer; border: 1px solid transparent; text-align: left; width: 100%; background: transparent; color: var(--text); transition: background .15s, border-color .15s; }
.wf-row:hover { background: #0c0c0c; border-color: var(--line); }
.wf-row[aria-expanded="true"] { background: #000; border-color: var(--orange); }
.wf-label { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 2px; min-width: 0; white-space: nowrap; overflow: hidden; }
.wf-label em { font-family: var(--mono); font-size: 10px; color: var(--mute); font-style: normal; margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wf-track { position: relative; height: 20px; background: #0d0d0d; border-radius: 6px; overflow: hidden; }
.wf-seg { position: absolute; top: 0; bottom: 0; border-radius: 4px; transition: left .55s cubic-bezier(.2,.8,.2,1), width .55s cubic-bezier(.2,.8,.2,1); min-width: 2px; }
.wf-gross .wf-seg { background: #D8CFC1; }
.wf-amt { font-family: var(--mono); font-weight: 600; font-size: 13.5px; text-align: right; font-variant-numeric: tabular-nums; }
.wf-total { margin-top: 4px; border-top: 1px dashed var(--line-2); border-radius: 0 0 11px 11px; padding-top: 11px; }
.wf-total .wf-label { color: var(--orange); font-weight: 800; }
.wf-total .wf-amt { color: var(--orange); font-weight: 700; font-size: 14.5px; }
.wf-row .chev { color: var(--dim); font-size: 12px; margin-left: 4px; transition: transform .2s; }
.wf-row[aria-expanded="true"] .chev { transform: rotate(90deg); color: var(--orange); }
.explain { background: #000; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.explain-hint { color: var(--mute); font-size: 13.5px; margin: 0; }
.explain-sum { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 6px; }
.explain-sum li { display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; color: var(--text-2); background: var(--surface); border-radius: 10px; padding: 9px 12px; }
.explain-sum li b { margin-left: auto; font-family: var(--mono); font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.explain-sum li.k { color: var(--text); }
.explain-sum li.k b { color: var(--orange); }
.explain h4 { font-size: 18px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.01em; }
.explain p { font-size: 14px; color: var(--text-2); line-height: 1.6; margin: 0 0 8px; }
.explain p b { color: var(--text); }
.explain .tip { background: var(--surface); border-left: 3px solid var(--orange); padding: 10px 12px; border-radius: 8px; font-size: 13.5px; color: var(--text); margin-top: 10px; }
.explain .tip b { color: var(--orange); }
.explain a { color: var(--orange); font-weight: 700; }
.bp-lede { color: var(--text-2); font-size: 14.5px; line-height: 1.55; margin: 0 0 14px; max-width: 760px; }
.bp-lede b { color: var(--text); }
.bp-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.bp-more { margin: 14px 0 0; font-size: 13.5px; color: var(--text-2); }
.bp-more a { font-weight: 700; }
.flow { display: flex; align-items: center; gap: 8px; }
.flow-step { flex: 1; background: #000; border: 1px solid var(--line); border-radius: 14px; padding: 14px 10px; text-align: center; min-width: 0; box-shadow: inset 0 3px 0 #D8CFC1; }
.flow-agent { box-shadow: inset 0 3px 0 var(--agent); }
.flow-vault { box-shadow: inset 0 3px 0 var(--tax); }
.flow-keep { box-shadow: inset 0 3px 0 var(--keep); border-color: rgba(255,145,77,.4); }
.flow-step span { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); display: block; }
.flow-step b { display: block; font-weight: 800; font-size: 22px; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.flow-keep b { color: var(--orange); }
.flow-op { font-family: var(--display); font-size: 20px; color: var(--dim); }
.cal { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 8px 0 0; }
.cal li { background: #000; border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 12px; position: relative; }
.cal li.next { border-color: var(--orange); }
.cal li.next::before { content: 'Next'; position: absolute; top: -9px; right: 10px; background: var(--orange); color: #000; font-family: var(--mono); font-weight: 700; font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; padding: 2px 7px; border-radius: 999px; }
.cal-date { font-family: var(--display); font-size: 22px; text-transform: uppercase; line-height: 1; }
.cal-dow { font-family: var(--mono); font-size: 10.5px; color: var(--mute); margin-top: 4px; }
.cal-label { font-size: 12.5px; color: var(--text-2); margin-top: 10px; }
.cal-amt { font-weight: 800; font-size: 18px; margin-top: 2px; font-variant-numeric: tabular-nums; }
#bp-dates .fine { margin-top: 12px; }
.insights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ins { background: #000; border: 1px solid var(--line); border-radius: 16px; padding: 15px 17px; }
.ins-k { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .13em; color: var(--orange); font-weight: 600; }
.ins-good .ins-k { color: var(--good); } .ins-warn .ins-k { color: var(--warn); }
.ins .big { display: block; font-weight: 800; font-size: 22px; margin: 6px 0 2px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ins p { font-size: 13.5px; color: var(--text-2); line-height: 1.5; margin: 6px 0 0; }
.ins p b { color: var(--text); }
.bd-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- decode ---------- */
.deal-wrap { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.deal-score { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.doc-scroll { position: relative; max-height: 620px; overflow-y: auto; border-radius: 16px; scrollbar-width: thin; scrollbar-color: #b9ab98 transparent; box-shadow: 0 30px 70px -30px rgba(0,0,0,.85); }
.doc-scroll::after { content: ''; position: sticky; bottom: 0; display: block; height: 56px; margin-top: -56px; background: linear-gradient(rgba(244,238,228,0), var(--paper) 85%); pointer-events: none; border-radius: 0 0 16px 16px; }
.doc-scroll::-webkit-scrollbar { width: 8px; } .doc-scroll::-webkit-scrollbar-thumb { background: #b9ab98; border-radius: 8px; }
.contract { color: var(--ink); padding: 32px 34px 56px; font-family: var(--mono); font-size: 13px; line-height: 1.75; position: relative; background: linear-gradient(180deg, rgba(255,255,255,.4), rgba(255,255,255,0) 30%), var(--paper); border-radius: 16px; min-height: 100%; }
.contract h3 { font-family: var(--display); font-weight: 400; font-size: 21px; text-transform: uppercase; letter-spacing: -.01em; margin: 0 0 12px; line-height: 1.08; padding-right: 110px; }
.contract .parties, .contract .recital { font-family: var(--sans); font-size: 13.5px; color: var(--ink-2); margin: 0 0 12px; line-height: 1.55; }
.contract .recital { border-bottom: 1.5px solid var(--ink); padding-bottom: 14px; margin-bottom: 16px; }
.contract p { margin: 0 0 13px; }
.contract-stamp { position: absolute; top: 20px; right: 22px; transform: rotate(8deg); border: 2px solid var(--stamp); color: var(--stamp); font-weight: 700; font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; padding: 5px 9px; border-radius: 6px; line-height: 1.2; }
.sign-row { display: flex; justify-content: space-between; gap: 20px; margin-top: 22px; font-size: 11.5px; color: var(--ink-2); flex-wrap: wrap; line-height: 1.9; }
.doc-fine { margin-top: 10px; }
mark.hl { --hl: rgba(255,145,77,.35); color: inherit; cursor: pointer; padding: 1px 1px; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; background-color: transparent; background-image: linear-gradient(transparent 10%, var(--hl) 10%, var(--hl) 90%, transparent 90%); background-repeat: no-repeat; background-size: 100% 100%; transition: background-size 1s cubic-bezier(.2,.8,.2,1), outline-color .15s; outline: 2px solid transparent; outline-offset: 1px; }
.js .contract:not(.drawn) mark.hl { background-size: 0% 100%; }
mark.hl::after { font-family: var(--sans); font-weight: 800; font-size: 10px; vertical-align: super; margin-left: 2px; }
mark.hl-green { --hl: rgba(61,190,139,.40); } mark.hl-green::after { content: '✓'; color: #13704B; }
mark.hl-amber { --hl: rgba(236,170,54,.50); } mark.hl-amber::after { content: '⚠'; color: #8A5A00; }
mark.hl-red { --hl: rgba(240,87,91,.40); } mark.hl-red::after { content: '⚑'; color: #A5161C; }
mark.hl:hover { filter: saturate(1.3); }
mark.hl.active { outline-color: var(--ink); }
.contract.only-red mark.hl:not(.hl-red) { background-size: 0 100% !important; }
.contract.only-red mark.hl:not(.hl-red)::after { content: ''; }
.deal-notes { position: sticky; top: 90px; }
.note-empty { background: var(--surface); border: 1px dashed var(--line-2); border-radius: 18px; padding: 20px; color: var(--mute); font-size: 14px; display: flex; flex-direction: column; gap: 12px; }
.note-empty p { margin: 0; }
.legend-row { display: flex; gap: 8px; flex-wrap: wrap; }
.note-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; position: relative; }
.note-sheet h4 { font-size: 21px; font-weight: 800; margin: 12px 0 8px; line-height: 1.2; letter-spacing: -.01em; padding-right: 20px; }
.note-sheet p { font-size: 14.5px; color: var(--text-2); line-height: 1.6; margin: 0 0 10px; }
.note-sheet p b { color: var(--text); }
.note-sheet .ask { background: #000; border-left: 3px solid var(--orange); border-radius: 8px; padding: 11px 13px; color: var(--text); }
.note-sheet .ask b { color: var(--orange); }
.note-close { position: absolute; top: 8px; right: 12px; background: none; border: 0; color: var(--mute); font-size: 28px; cursor: pointer; line-height: 1; padding: 4px; }
.note-close:hover { color: var(--text); }
.note-nav { display: flex; justify-content: space-between; margin-top: 14px; gap: 10px; }
.note-count { font-family: var(--mono); font-size: 11px; color: var(--mute); }
.tag { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-weight: 600; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; padding: 4px 9px; border-radius: 7px; }
.tag-green { background: rgba(61,190,139,.14); color: #74DDB3; } .tag-amber { background: rgba(227,163,59,.15); color: #F2C06B; } .tag-red { background: rgba(240,87,91,.15); color: #FF9092; }
.score-pill { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.score-pill b { font-family: var(--sans); font-size: 13px; color: var(--text); }
.score-pill.on { border-color: var(--orange); color: var(--text); }

/* red flag check — one question at a time */
.redflag { padding: 24px 26px; margin-top: 26px; }
.rf-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.rf-head h3 { font-family: var(--display); font-weight: 400; font-size: 26px; text-transform: uppercase; margin: 8px 0 6px; letter-spacing: -.015em; line-height: 1.02; }
.rf-head p { margin: 0; color: var(--text-2); font-size: 14px; }
.rf-progress { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.rf-progress b { color: var(--orange); font-size: 22px; font-family: var(--sans); font-weight: 800; }
.rf-step { margin-top: 18px; background: #000; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.rf-track { height: 6px; background: #1c1c1c; border-radius: 999px; overflow: hidden; }
.rf-track i { display: block; height: 100%; background: var(--orange); border-radius: 999px; transition: width .35s cubic-bezier(.2,.8,.2,1); }
.rf-qnum { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); margin-top: 14px; }
.rf-qnum b { color: var(--orange); }
.rf-q { font-size: clamp(18px, 2.2vw, 23px); font-weight: 800; line-height: 1.3; margin: 8px 0 16px; letter-spacing: -.01em; min-height: 2.6em; }
.rf-ans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 560px; }
.rf-ans button { background: var(--surface); border: 1px solid var(--line-2); color: var(--text); border-radius: 12px; padding: 13px 8px; font-weight: 800; font-size: 15px; cursor: pointer; transition: all .15s; }
.rf-ans button:hover { border-color: var(--orange); }
.rf-ans button[aria-pressed="true"] { background: var(--text); color: #000; border-color: var(--text); }
.rf-nav { display: flex; justify-content: space-between; margin-top: 14px; max-width: 560px; }
.rf-out { margin-top: 18px; }
.rf-meter-top { display: flex; justify-content: space-between; align-items: baseline; }
.rf-meter-top b { font-family: var(--display); font-weight: 400; font-size: 28px; text-transform: uppercase; }
.rf-bar { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 12px; }
.rf-z { height: 30px; display: grid; place-items: center; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; border-radius: 6px; }
.rf-z:nth-of-type(1) { background: #12352A; color: #74DDB3; } .rf-z:nth-of-type(2) { background: #3A2E12; color: #F2C06B; } .rf-z:nth-of-type(3) { background: #3E1618; color: #FF9092; }
.rf-bar i { position: absolute; top: -6px; bottom: -6px; width: 5px; background: #fff; border-radius: 3px; box-shadow: 0 0 0 3px #000; transform: translateX(-50%); transition: left .5s cubic-bezier(.2,.8,.2,1); z-index: 1; }
.rf-flags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.rf-flag { background: #000; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.rf-flag.bad { border-color: rgba(240,87,91,.4); } .rf-flag.maybe { border-color: rgba(227,163,59,.4); }
.rf-flag h5 { font-size: 15px; font-weight: 800; margin: 8px 0 4px; }
.rf-flag p { font-size: 13.5px; color: var(--text-2); margin: 0; line-height: 1.5; }
.rf-flag p.ask { margin-top: 6px; color: var(--text); }
.rf-flag p.ask b { color: var(--orange); }
.rf-clean { grid-column: 1 / -1; background: rgba(61,190,139,.08); border: 1px solid rgba(61,190,139,.35); border-radius: 12px; padding: 16px; font-size: 14px; }
.rf-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* ---------- stack ---------- */
.stack { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.wall-card { padding: 22px; margin: 0; }
.wall { display: flex; flex-direction: column-reverse; gap: 5px; }
.wall-row { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 5px; }
.brick { grid-column: span 2; height: 26px; border-radius: 3px; background: var(--c, #333); box-shadow: inset 0 -3px 0 rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.2); transition: background-color .35s, border-color .35s, opacity .35s; }
.brick.half { grid-column: span 1; }
.brick.ghost { background: transparent; border: 1.5px dashed var(--c); box-shadow: none; opacity: .85; }
.js .wall:not(.built) .brick { opacity: 0; transform: translateY(-36px); }
.wall.built .brick { animation: drop .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 9ms); }
@keyframes drop { from { opacity: 0; transform: translateY(-36px); } to { opacity: 1; transform: none; } }
.wall.built .brick.ghost { animation-name: dropGhost; }
@keyframes dropGhost { from { opacity: 0; transform: translateY(-36px); } to { opacity: .85; transform: none; } }
.wall-cap { display: flex; justify-content: center; gap: 16px; font-size: 12.5px; color: var(--mute); margin-top: 14px; flex-wrap: wrap; }
.brick-ghost { display: inline-block; width: 20px; height: 11px; border: 1.5px dashed var(--mute); border-radius: 2px; vertical-align: -1px; margin-right: 6px; }
.stack-ctl { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.alloc { display: flex; flex-direction: column; }
.alloc-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 96px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.alloc-row:last-child { border-bottom: 0; }
.alloc-name { font-size: 14px; font-weight: 700; display: flex; align-items: center; min-width: 0; }
.alloc-name > span { display: flex; flex-direction: column; }
.alloc-name em { display: block; font-family: var(--mono); font-size: 10px; color: var(--mute); font-style: normal; font-weight: 400; }
.alloc-row b { text-align: right; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.alloc-row b small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--mute); font-weight: 400; }
.alloc-row input[type="range"] { margin: 0; }
.alloc-auto { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; color: var(--mute); text-align: center; letter-spacing: .1em; }
.stack-notes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sn { font-size: 13.5px; color: var(--text-2); background: #000; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; line-height: 1.5; }
.sn b { color: var(--text); }
.sn.warn { border-color: rgba(227,163,59,.45); }

/* ---------- decide ---------- */
.offers { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: center; }
.offer { padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; align-content: start; transition: border-color .2s, box-shadow .2s; }
.offer-h, .offer-keep { grid-column: 1 / -1; }
.offer-h { display: flex; align-items: center; gap: 10px; }
.offer-tag { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--line-2); color: var(--text); font-family: var(--display); font-size: 16px; flex-shrink: 0; }
.offer-name { background: transparent; border: 0; border-bottom: 1px dashed var(--line-2); color: var(--text); font-weight: 800; font-size: 18px; width: 100%; padding: 4px 0; outline: none; }
.offer-name:focus { border-bottom-color: var(--orange); }
.offer-keep { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; gap: 10px; }
.offer-keep span { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); }
.offer-keep b { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.offer.win { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.offer.win .offer-tag { background: var(--orange); color: #000; }
.offer.win .offer-keep b { color: var(--orange); }
.vs { font-family: var(--display); font-size: 22px; color: var(--dim); }
.compare-out { padding: 22px; margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.cmp-bars { display: flex; flex-direction: column; gap: 12px; }
.cmp-bar { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 12px; align-items: center; }
.cmp-bar > span { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-track { height: 26px; background: #000; border-radius: 7px; overflow: hidden; display: flex; gap: 2px; }
.cmp-track i { display: block; height: 100%; transition: flex-basis .5s cubic-bezier(.2,.8,.2,1); flex: 0 0 0; }
.cmp-track .k { background: var(--keep); } .cmp-track .t { background: var(--tax); } .cmp-track .a { background: var(--agent); }
.cmp-nums { grid-column: 2; font-family: var(--mono); font-size: 11.5px; color: var(--mute); }
.cmp-nums b { color: var(--text); font-family: var(--sans); }
.cmp-verdict h4 { font-family: var(--display); font-weight: 400; font-size: 26px; text-transform: uppercase; line-height: 1.02; margin: 0 0 10px; letter-spacing: -.015em; }
.cmp-verdict p { font-size: 14.5px; color: var(--text-2); margin: 0 0 8px; line-height: 1.55; }
.cmp-verdict p b { color: var(--text); }
.compare-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.compare-foot .fine { max-width: 560px; }
.fair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.fair-in { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.fg { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fg-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fld-deal { border-top: 1px solid var(--line); padding-top: 14px; }
.fld-deal > span:first-child { color: var(--orange) !important; }
.fair-out { padding: 22px; display: flex; flex-direction: column; gap: 20px; }
.fr-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 700; margin-bottom: 10px; gap: 10px; }
.fr-label span { font-family: var(--mono); font-size: 12px; color: var(--text-2); font-weight: 500; }
.fr-track { position: relative; height: 16px; background: #000; border: 1px solid var(--line); border-radius: 999px; }
.fr-band { position: absolute; top: 3px; bottom: 3px; border-radius: 999px; background: linear-gradient(90deg, rgba(228,105,42,.35), rgba(228,105,42,.95)); transition: left .5s, width .5s; }
.fr-mark { position: absolute; top: -9px; width: 4px; height: 32px; background: #fff; border-radius: 2px; box-shadow: 0 0 0 3px #000; transform: translateX(-50%); transition: left .5s; }
.fr-mark::after { content: 'You'; position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: .08em; }
.fr-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--dim); margin-top: 7px; }
.fr-verdict { background: #000; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.fr-verdict h4 { font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.fr-verdict p { font-size: 14px; color: var(--text-2); margin: 0 0 6px; line-height: 1.55; }
.fr-verdict p b { color: var(--text); }
.drivers { display: flex; flex-direction: column; gap: 7px; }
.drivers-h { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); margin-bottom: 4px; }
.drv { display: grid; grid-template-columns: 170px minmax(0, 1fr) 56px; gap: 10px; align-items: center; font-size: 13px; }
.drv > span { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drv-track { position: relative; height: 10px; background: #000; border: 1px solid var(--line); border-radius: 999px; }
.drv-track::before { content: ''; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--line-2); }
.drv-track i { position: absolute; top: 1px; bottom: 1px; border-radius: 999px; }
.drv-track i.up { background: var(--keep); } .drv-track i.down { background: var(--exp); }
.drv b { font-family: var(--mono); font-size: 12px; text-align: right; font-weight: 600; }
.fr-note { font-size: 12px; color: var(--mute); margin: 0; line-height: 1.55; }

/* ---------- rules (carousel) ---------- */
.verified { font-family: var(--mono); font-size: 12px; color: var(--good); border: 1px solid rgba(61,190,139,.4); border-radius: 999px; padding: 7px 13px; white-space: nowrap; }
.horizon { background: linear-gradient(120deg, rgba(255,145,77,.10), transparent 55%), var(--surface); border: 1px solid rgba(255,145,77,.35); border-radius: 16px; padding: 16px 20px; margin-bottom: 18px; }
.horizon p { margin: 6px 0 0; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.horizon p b { color: var(--text); }
.horizon a { font-weight: 700; }
.rules .rule { width: 372px; }
.rule { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 18px; position: relative; display: flex; flex-direction: column; gap: 10px; }
.rule-n { position: absolute; top: 16px; right: 20px; font-family: var(--display); font-size: 38px; color: transparent; -webkit-text-stroke: 1px rgba(255,145,77,.55); line-height: 1; }
.rule h3 { font-size: 19px; line-height: 1.2; font-weight: 800; margin: 0; padding-right: 64px; letter-spacing: -.01em; }
.rule p { font-size: 14px; color: var(--text-2); line-height: 1.58; margin: 0; }
.rule p b { color: var(--text); }
.rule-money { background: #000; border-radius: 10px; padding: 11px 13px; border-left: 3px solid var(--orange); color: var(--text) !important; font-size: 13.5px !important; }
.rule-money b { color: var(--orange) !important; }
.rule .src { margin-top: auto; padding-top: 2px; }

/* ---------- podcast + bricktalk links ---------- */
.eps .ep { width: 340px; }
.ep h4 { font-size: 15px; font-weight: 700; margin: 12px 2px 0; line-height: 1.35; }
.yt { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .88; transition: transform .5s, opacity .3s; }
.yt:hover img { transform: scale(1.03); opacity: 1; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 66px; height: 46px; transform: translate(-50%, -50%); background: var(--orange); border-radius: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.yt-play::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #000; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-inline { display: flex; align-items: center; gap: 12px; aspect-ratio: auto; background: var(--surface-2); border: 1px solid var(--line); padding: 8px; text-align: left; color: var(--text); }
.yt-inline img { width: 112px; aspect-ratio: 16 / 9; height: auto; border-radius: 9px; flex-shrink: 0; }
.yt-inline .yt-play { left: 64px; width: 34px; height: 24px; border-radius: 7px; }
.yt-inline .yt-play::after { border-width: 5px 0 5px 9px; }
.yt-cap { font-size: 13px; font-weight: 700; line-height: 1.35; }
.yt-inline.playing { aspect-ratio: 16 / 9; padding: 0; }
.bt-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.bt-card { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.bt-card:hover { border-color: var(--orange); transform: translateY(-2px); color: var(--text); }
.bt-card b { font-family: var(--display); font-weight: 400; font-size: 18px; text-transform: uppercase; }
.bt-card span { font-size: 13px; color: var(--mute); }
.pods { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pods a { background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 8px 13px; font-weight: 700; font-size: 12.5px; color: var(--text-2); text-decoration: none; transition: all .15s; }
.pods a:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- share dialog ---------- */
.share-dialog { border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface); color: var(--text); padding: 26px; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; }
.share-dialog::backdrop { background: rgba(0,0,0,.75); backdrop-filter: blur(4px); }
.share-dialog h3 { font-family: var(--display); font-weight: 400; font-size: 24px; text-transform: uppercase; margin: 8px 0 6px; line-height: 1.05; }
.share-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.share-card { background: #000; border: 2px solid var(--line); border-radius: 16px; padding: 8px 8px 10px; cursor: pointer; color: var(--mute); font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; display: flex; flex-direction: column; gap: 9px; transition: border-color .15s, transform .15s; }
.share-card:hover { transform: translateY(-3px); }
.share-card canvas { width: 100%; height: auto; border-radius: 10px; display: block; background: #000; }
.share-card[aria-pressed="true"] { border-color: var(--orange); color: var(--orange); }
.share-actions { margin-top: 16px; display: flex; justify-content: center; }

/* ---------- method + footer ---------- */
.method { padding-top: 56px; }
.method-in summary { padding: 18px 22px; cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.method-in summary::-webkit-details-marker { display: none; }
.method-in summary em { font-family: var(--mono); font-size: 11px; color: var(--mute); font-style: normal; font-weight: 400; margin-right: auto; margin-left: 10px; }
.method-in summary::after { content: '+'; color: var(--orange); font-size: 20px; }
.method-in[open] summary::after { content: '−'; }
.method-body { padding: 0 22px 22px; color: var(--text-2); font-size: 14px; line-height: 1.7; }
.method-body h4 { color: var(--orange); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; margin: 18px 0 6px; font-weight: 600; }
.method-body p { margin: 0; }
.method-body b { color: var(--text); }
.foot { border-top: 1px solid var(--line); margin-top: 64px; padding: 36px 24px 46px; background: #050505; }
.foot-in { max-width: calc(var(--maxw) - 48px); margin: 0 auto; display: grid; gap: 16px; }
.foot-brand { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.foot-brand b { font-family: var(--display); font-weight: 400; font-size: 18px; }
.foot-brand span { font-family: var(--mono); font-size: 11.5px; color: var(--mute); }
.foot-links { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.foot-links a { color: var(--text-2); font-size: 13px; font-weight: 600; text-decoration: none; }
.foot-links a:hover { color: var(--orange); }
.foot-fine { font-size: 12px; color: var(--dim); max-width: 780px; margin: 0; line-height: 1.6; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--text); color: #000; padding: 12px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; z-index: 300; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1140px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 12.5px; }
  .tune-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-menu { display: flex; }
  .hero { grid-template-columns: 1fr; gap: 34px; }
  .hero-copy { max-width: 640px; }
  .bp-grid { grid-template-columns: 1fr; }
  .explain { min-height: 0; }
  .wire-top { grid-template-columns: 1fr 1fr; }
  .story-lead { grid-column: 1 / -1; grid-row: auto; }
  .story-lead .story-img { aspect-ratio: 16 / 9; flex: none; min-height: 0; }
  .insights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deal-wrap { grid-template-columns: 1fr; }
  .deal-notes { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 80; pointer-events: none; }
  .note-empty { display: none; }
  .note-sheet { pointer-events: auto; border-radius: 20px 20px 0 0; max-height: 72vh; overflow: auto; box-shadow: 0 -20px 60px rgba(0,0,0,.7); border-color: var(--line-2); padding-bottom: calc(22px + env(safe-area-inset-bottom)); animation: sheetUp .3s cubic-bezier(.2,.8,.2,1); }
  @keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
  .stack { grid-template-columns: 1fr; }
  .fair { grid-template-columns: 1fr; }
  .compare-out { grid-template-columns: 1fr; }
  .bt-links { grid-template-columns: 1fr; }
  .stack-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  body { font-size: 15px; }
  .strip { font-size: 11px; padding: 7px 14px; }
  .strip-lock { display: none; }
  .nav-in { padding: 10px 16px; }
  .section { padding: 64px 16px 4px; }
  .wire { padding-top: 22px; }
  .sec-head { margin-bottom: 18px; }
  .sec-sub { font-size: 15px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 16px; padding: 0 16px 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .wire-top { grid-template-columns: 1fr; gap: 10px; margin-bottom: 18px; }
  .story-side { flex-direction: row; }
  .story-side .story-img { width: 112px; aspect-ratio: auto; min-height: 104px; }
  .story-side .story-body { padding: 11px 13px; gap: 5px; }
  .story-side p, .story-side .story-tags, .story-side .story-credit { display: none; }
  .story-side h3 { font-size: 14.5px; }
  .story-side .story-ph b { font-size: 15px; }
  .story-lead h3 { font-size: 20px; }
  .story-lead p { -webkit-line-clamp: 2; font-size: 14px; }
  .story-rail { width: 76vw; max-width: 290px; }
  .rail { margin: 0 -16px; padding: 2px 16px 8px; scroll-padding-left: 16px; }
  .rails-nav-hide .rail-nav { display: none; }
  .hero-h { font-size: clamp(38px, 11.5vw, 52px); }
  .lead { font-size: 16px; }
  .doors { gap: 8px; }
  .door { padding: 13px 13px 12px; }
  .door-t { font-size: 15.5px; }
  .door-d { display: none; }
  .check { padding: 18px 16px 14px; }
  .check-row { grid-template-columns: auto 1fr; }
  .check-amt { grid-column: 1 / -1; justify-content: space-between; }
  .check-amt input { font-size: 28px; width: 100%; }
  .check-payee { font-size: 30px; }
  .check-words #h-words { font-size: 22px; }
  .check-bottom { grid-template-columns: 1fr; gap: 14px; }
  .check-sig { justify-self: end; }
  .micr { font-size: 12px; }
  .stub { padding: 16px; gap: 12px; }
  .stub-keep strong { font-size: 26px; padding: 3px 9px 2px; }
  .stamp { width: 82px; height: 82px; font-size: 8px; }
  .stamp b { font-size: 23px; }
  .hero-controls .btn { margin-left: 0; width: 100%; }
  .mini { flex: 1; }
  .mini select, .mini:first-child select { min-width: 0; }
  .breakdown { padding: 18px 16px 14px; margin-top: 26px; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .tabs button { padding: 10px 8px; font-size: 12.5px; }
  .tune summary em { display: none; }
  .tune-in { grid-template-columns: 1fr; }
  .wf-row { grid-template-columns: 104px minmax(0, 1fr) 78px; gap: 8px; padding: 8px 6px; }
  .wf-label { font-size: 12.5px; }
  .wf-label em { display: none; }
  .wf-amt { font-size: 12.5px; }
  .flow { display: grid; grid-template-columns: 1fr 1fr; }
  .flow-op { display: none; }
  .flow-step b { font-size: 19px; }
  .cal { grid-template-columns: 1fr 1fr; }
  .bp-actions .btn { width: 100%; }
  .insights { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; scroll-padding: 0 16px; }
  .insights::-webkit-scrollbar { display: none; }
  .insights .ins { flex: 0 0 80%; scroll-snap-align: start; }
  .deal-tabs, .decide-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .deal-tabs button { padding: 9px 10px; font-size: 11.5px; white-space: normal; line-height: 1.3; }
  .deal-tabs button b { font-size: 14.5px; }
  .decide-tabs button { font-size: 12.5px; padding: 11px 8px; text-align: center; }
  .doc-scroll { max-height: 62vh; }
  .contract { padding: 22px 16px 18px; font-size: 12.5px; line-height: 1.7; }
  .contract h3 { font-size: 17px; padding-right: 0; margin-top: 26px; }
  .contract-stamp { top: 12px; right: 12px; font-size: 9.5px; }
  .redflag { padding: 18px 16px; }
  .rf-step { padding: 16px; }
  .rf-flags { grid-template-columns: 1fr; }
  .alloc-row { grid-template-columns: minmax(0, 1fr) auto; }
  .alloc-row b small { white-space: nowrap; }
  .stack-notes { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; scroll-padding: 0 16px; }
  .stack-notes::-webkit-scrollbar { display: none; }
  .stack-notes .sn { flex: 0 0 80%; scroll-snap-align: start; }
  .offer { padding: 16px; gap: 10px; }
  .offer .fld select { font-size: 14px; padding-right: 28px; background-position: right 10px center; }
  .method-in summary em { display: none; }
  .bt-links { gap: 8px; margin-top: 18px; }
  .bt-card { padding: 12px 14px; }
  .bt-card b { font-size: 16px; }
  .alloc-row input[type="range"] { grid-column: 1 / -1; grid-row: 2; }
  .alloc-auto { display: none; }
  .brick { height: 20px; }
  .wall, .wall-row { gap: 4px; }
  .wall-card, .stack-ctl, .fair-in, .fair-out, .compare-out { padding: 18px 16px; }
  .offers { grid-template-columns: 1fr; }
  .vs { justify-self: center; font-size: 18px; }
  .drv { grid-template-columns: 120px minmax(0, 1fr) 48px; }
  .fg-2 { grid-template-columns: 1fr; }
  .rules .rule { width: 84vw; max-width: 360px; }
  .eps .ep { width: 78vw; max-width: 320px; }
  .share-grid { gap: 8px; }
  .share-card { font-size: 8.5px; padding: 5px 5px 8px; }
  .share-dialog { padding: 20px 16px; }
}
@media (max-width: 380px) {
  .cal { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
