/* Layout: survey-drawing calm. Wide 1200px grid, homes as large imagery, numbers set in a
   tabular grotesk, provenance shown with small plotted tags like a drawing's annotations. */
:root {
  --paper: #f2f4f2;        /* cool, slightly green-biased paper */
  --surface: #ffffff;
  --surface-2: #e8ece9;
  --ink: #15201d;          /* spruce-black */
  --ink-2: #4a5a55;
  --ink-3: #7b8a85;
  --line: #d3dad6;
  --pine: #1d5c4d;         /* accent: Maine pine */
  --pine-soft: #dcebe5;
  --brass: #a8721f;        /* annotations / changes */
  --brass-soft: #f4e8d2;
  --good: #2f7a4f;
  --warn: #a8721f;
  --bad: #b0473a;
  --src: #2a6f97;  --inp: #1d5c4d;  --est: #a8721f;  --asm: #7a5c9e;
  --shadow: 0 1px 2px rgba(21,32,29,.06), 0 12px 32px -12px rgba(21,32,29,.18);
  --f-display: "Young Serif", Georgia, "Times New Roman", serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 14px;
  --max: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1513; --surface: #161e1b; --surface-2: #1d2724; --ink: #e7eeeb; --ink-2: #a9b8b2;
    --ink-3: #75857f; --line: #2a3632; --pine: #5fbf9f; --pine-soft: #183129; --brass: #d9a54e;
    --brass-soft: #2c2416; --good: #63c08a; --warn: #d9a54e; --bad: #e07a6b;
    --src: #6fb3d9; --inp: #5fbf9f; --est: #d9a54e; --asm: #b39ad6;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -16px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1513; --surface: #161e1b; --surface-2: #1d2724; --ink: #e7eeeb; --ink-2: #a9b8b2;
  --ink-3: #75857f; --line: #2a3632; --pine: #5fbf9f; --pine-soft: #183129; --brass: #d9a54e;
  --brass-soft: #2c2416; --good: #63c08a; --warn: #d9a54e; --bad: #e07a6b;
  --src: #6fb3d9; --inp: #5fbf9f; --est: #d9a54e; --asm: #b39ad6;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -16px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: 20px; }
section { padding-block: clamp(64px, 9vw, 120px); scroll-margin-top: 72px; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.01em; text-wrap: balance; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; }
h3 { font-size: 1.35rem; line-height: 1.2; }
p { margin: 0; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 36em; }
.eyebrow { font: 500 12px/1 var(--f-data); letter-spacing: .12em; text-transform: uppercase; color: var(--pine); display: inline-flex; gap: 8px; align-items: center; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.sec-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.soon { font: 500 11px/1 var(--f-data); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 99px; background: var(--brass-soft); color: var(--brass); white-space: nowrap; }

/* Buttons + form */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--f-body); padding: 14px 20px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s ease, background .15s ease; white-space: nowrap; }
.btn-primary { background: var(--pine); color: var(--paper); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.signup { display: flex; flex-wrap: wrap; gap: 8px; max-width: 480px; }
.signup input[type="email"] { flex: 1 1 220px; min-width: 0; font: 400 16px/1 var(--f-body); padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.signup input[type="email"]::placeholder { color: var(--ink-3); }
.signup .hp { position: absolute; left: -9999px; }
.form-note { font-size: 13.5px; color: var(--ink-3); margin-top: 10px; }
.form-msg { font-size: 15px; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--good); }
.form-msg.err { color: var(--bad); }

/* Header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 18px/1 var(--f-body); letter-spacing: -.01em; }
.logo svg { width: 28px; height: 28px; }
.logo b { font-weight: 600; color: var(--pine); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.nav ul a:hover { color: var(--ink); }
.nav .btn { padding: 11px 16px; font-size: 14px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; color: var(--ink); cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .nav ul { display: none; }
  .nav.open ul { display: grid; position: absolute; top: 64px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 18px; gap: 0; }
  .nav.open ul a { display: block; padding: 12px 0; font-size: 17px; }
}
@media (max-width: 420px) { .nav .btn { display: none; } }

/* Hero */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(56px, 8vw, 100px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-copy h1 em { font-style: normal; color: var(--pine); }
.hero-ctas { display: grid; gap: 12px; }
.hero-alt { font-size: 15px; color: var(--ink-2); }
.hero-alt a { color: var(--pine); text-underline-offset: 3px; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* App window mock */
.app { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.app-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.app-bar .dots { display: flex; gap: 6px; }
.app-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.app-bar .t { font: 600 14px/1 var(--f-body); }
.demo-tag { font: 500 10.5px/1 var(--f-data); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border: 1px dashed var(--line); padding: 5px 8px; border-radius: 6px; white-space: nowrap; }
.app-body { padding: 16px; }
.profile-strip { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 400 12.5px/1.4 var(--f-data); color: var(--ink-3); margin-bottom: 14px; }
.profile-strip b { color: var(--ink-2); font-weight: 500; }

.home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) {
  .home-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; }
  .home-grid > .home { flex: 0 0 78%; scroll-snap-align: start; }
}
.home { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; min-width: 0; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.home:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.home .img { aspect-ratio: 16 / 10; position: relative; background: var(--surface-2); }
.home .img svg { width: 100%; height: 100%; }
.home .fit { position: absolute; left: 10px; top: 10px; }
.home .meta { padding: 12px 12px 14px; display: grid; gap: 10px; }
.home .addr { font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.home .town { font-size: 12.5px; color: var(--ink-3); }
.home .price { font: 400 1.3rem/1 var(--f-display); }
.home .big { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--line); }
.home .big .v { font: 600 1.5rem/1.1 var(--f-body); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.home .big .k { font-size: 12px; color: var(--ink-3); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px/1 var(--f-body); padding: 6px 9px; border-radius: 99px; background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.good::before { background: var(--good); }
.chip.mod::before { background: var(--warn); }

/* Problem */
.problem-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .problem-grid { grid-template-columns: minmax(0, 1fr); } }
.listing-mini { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.listing-mini .img { aspect-ratio: 16/9; }
.listing-mini .img svg { width: 100%; height: 100%; }
.listing-mini .b { padding: 16px; display: grid; gap: 8px; }
.listing-mini .p { font: 400 1.8rem/1 var(--f-display); }
.listing-mini .pay { font-size: 15px; color: var(--ink-2); }
.listing-mini .pay s { color: var(--ink-3); }
.truth { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--pine-soft); display: grid; gap: 4px; }
.truth .v { font: 600 1.6rem/1.1 var(--f-body); font-variant-numeric: tabular-nums; color: var(--pine); }
.truth p { font-size: 14px; color: var(--ink-2); }
.questions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 560px) { .questions { grid-template-columns: minmax(0, 1fr); } }
.questions li { padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font: 400 1.12rem/1.35 var(--f-display); }
.questions li span { display: block; margin-top: 8px; font: 400 13.5px/1.5 var(--f-body); color: var(--ink-3); }
.cap { font: 400 12.5px/1.5 var(--f-data); color: var(--ink-3); margin-top: 10px; }

/* Paste flow */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.4fr); gap: 16px; align-items: start; }
.flow .arrow { padding-top: 64px; }
.flow .arrow { color: var(--ink-3); font: 400 22px/1 var(--f-data); text-align: center; }
@media (max-width: 1000px) { .flow { grid-template-columns: minmax(0, 1fr); } .flow .arrow { transform: rotate(90deg); padding-top: 0; } }
.step { display: grid; gap: 12px; min-width: 0; }
.step-label { font: 500 12px/1 var(--f-data); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.paste { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.paste .field { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--pine); border-radius: 10px; padding: 11px 12px; font: 400 13px/1.2 var(--f-data); color: var(--ink-2); overflow: hidden; }
.paste .field span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.paste .field .caret { width: 1.5px; height: 16px; background: var(--pine); animation: blink 1.1s steps(1) infinite; flex: none; }
@keyframes blink { 50% { opacity: 0; } }
.paste .or { font-size: 12.5px; color: var(--ink-3); }
.sorted { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px 14px; }
.sorted li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.sorted li:last-child { border-bottom: 0; }
.sorted ul { list-style: none; margin: 0; padding: 0; }
.sorted b { font-variant-numeric: tabular-nums; }

.tag { font: 500 10.5px/1 var(--f-data); letter-spacing: .06em; text-transform: uppercase; padding: 4px 6px 3px; border-radius: 4px; border: 1px solid currentColor; white-space: nowrap; }
.tag.src { color: var(--src); } .tag.inp { color: var(--inp); } .tag.est { color: var(--est); } .tag.asm { color: var(--asm); }

.detail { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.detail .img { aspect-ratio: 2 / 1; }
.detail .img svg { width: 100%; height: 100%; }
.detail .b { padding: 16px; display: grid; gap: 14px; }
.detail .top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.detail .specs { font-size: 13px; color: var(--ink-3); }
.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--surface-2); border-radius: 10px; padding: 10px; display: grid; gap: 2px; }
.stat .v { font: 600 1.15rem/1.15 var(--f-body); font-variant-numeric: tabular-nums; }
.stat .k { font-size: 11.5px; color: var(--ink-3); line-height: 1.3; }
.obs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.obs li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; }
.obs li::before { content: "→"; color: var(--brass); font-family: var(--f-data); }

/* My homes */
.homes-sec { background: var(--surface-2); }
.homes-app .toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters span { font-size: 13px; padding: 7px 11px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-2); }
.filters span.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.home.pick { cursor: pointer; text-align: left; font: inherit; color: inherit; padding: 0; }
.home.pick .check { position: absolute; right: 10px; top: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.2); color: transparent; font-size: 14px; }
.home.pick[aria-pressed="true"] { border-color: var(--pine); box-shadow: 0 0 0 2px var(--pine) inset, var(--shadow); }
.home.pick[aria-pressed="true"] .check { background: var(--pine); color: var(--paper); }
.home-grid.lg .home .img { aspect-ratio: 4 / 3; }
.home-grid.lg .home .big .v { font-size: 1.75rem; }
.homes-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.homes-foot p { font-size: 14px; color: var(--ink-3); }

/* Compare */
.cmp-wrap { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .cmp-wrap { grid-template-columns: minmax(0, 1fr); } }
.table-scroll { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
table.cmp { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.cmp th:first-child, .cmp td:first-child { text-align: left; color: var(--ink-2); font-weight: 400; }
.cmp thead th { vertical-align: bottom; background: var(--surface-2); font-weight: 600; }
.cmp thead .h { display: grid; gap: 6px; justify-items: end; }
.cmp thead .h .thumb { width: 84px; height: 52px; border-radius: 8px; overflow: hidden; }
.cmp thead .h .thumb svg { width: 100%; height: 100%; }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tr.key td { font-weight: 600; font-size: 15.5px; }
.cmp td.best { color: var(--pine); font-weight: 700; }
.cmp .sub { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 400; }
.insight { background: var(--ink); color: var(--paper); border-radius: 16px; padding: 22px; display: grid; gap: 12px; }
.insight .eyebrow { color: var(--brass); }
.insight p.big { font: 400 1.35rem/1.3 var(--f-display); color: var(--paper); }
.insight p.small { font-size: 14px; opacity: .78; }
.bridge { display: grid; gap: 6px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.bridge div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed color-mix(in srgb, var(--paper) 25%, transparent); padding-bottom: 6px; }
.bridge div:last-child { border: 0; font-weight: 700; }

.scen { margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.scen-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; margin-bottom: 14px; }
.scen-head h3 { font-size: 1.15rem; }
.scen-head p { font-size: 13px; color: var(--ink-3); }
.scen-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .scen-grid { grid-template-columns: minmax(0, 1fr); } }
.sc { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 10px; }
.sc.flag { border-color: var(--bad); }
.sc .n { font: 600 13px/1 var(--f-data); letter-spacing: .04em; }
.sc .v { font: 600 1.45rem/1 var(--f-body); font-variant-numeric: tabular-nums; }
.sc .v small { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.sc .note { font-size: 12.5px; color: var(--ink-3); }
.sc.flag .note { color: var(--bad); font-weight: 600; }

/* Bank vs life */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .two { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 30px); display: grid; gap: 18px; align-content: start; }
.panel .q { font: 400 1.5rem/1.2 var(--f-display); }
.verdict { display: flex; align-items: center; gap: 12px; }
.verdict .pill { font: 600 15px/1 var(--f-body); padding: 9px 14px; border-radius: 99px; }
.verdict .pill.yes { background: var(--pine-soft); color: var(--good); }
.verdict .pill.mod { background: var(--brass-soft); color: var(--warn); }
.verdict span { font-size: 13px; color: var(--ink-3); }
.gauge { display: grid; gap: 8px; }
.gauge .track { position: relative; height: 10px; border-radius: 99px; background: var(--surface-2); overflow: visible; }
.gauge .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.gauge .mark { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--ink); }
.gauge .lab { position: relative; height: 1.3em; display: flex; justify-content: space-between; font: 400 12px/1.3 var(--f-data); color: var(--ink-3); }
.gauge .head { display: flex; justify-content: space-between; font-size: 14px; gap: 10px; }
.gauge .head b { font-variant-numeric: tabular-nums; }
.fine { font-size: 13.5px; color: var(--ink-3); }

/* Show the math */
.math-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .math-grid { grid-template-columns: minmax(0, 1fr); } }
.legend { display: grid; gap: 14px; }
.legend div { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: baseline; }
.legend p { grid-column: 2; font-size: 14.5px; color: var(--ink-2); }
.legend .tag { grid-row: span 2; justify-self: start; }
.legend h3 { font: 600 16px/1.3 var(--f-body); }
.breakdown { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.breakdown .hd { padding: 16px 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; border-bottom: 1px solid var(--line); }
.breakdown .hd b { font: 600 1.6rem/1 var(--f-body); font-variant-numeric: tabular-nums; }
.stack { display: flex; height: 14px; margin: 16px 18px 6px; border-radius: 99px; overflow: hidden; gap: 2px; }
.stack i { display: block; height: 100%; }
.rows { list-style: none; margin: 0; padding: 4px 18px 10px; }
.rows li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.rows li:last-child { border-bottom: 0; }
.rows .sw { width: 10px; height: 10px; border-radius: 3px; }
.rows .lbl small { display: block; font: 400 12px/1.35 var(--f-data); color: var(--ink-3); }
.rows .amt { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; min-width: 64px; }
.breakdown .ft { padding: 12px 18px; font: 400 12.5px/1.5 var(--f-data); color: var(--ink-3); background: var(--surface-2); }

/* Feed */
.feed-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 900px) { .feed-grid { grid-template-columns: minmax(0, 1fr); } }
.feed { list-style: none; margin: 0; padding: 0; position: relative; }
.feed::before { content: ""; position: absolute; left: 19px; top: 18px; bottom: 18px; width: 1px; background: var(--line); }
.feed li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 10px 0; position: relative; }
.feed .dot { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font: 600 15px/1 var(--f-data); z-index: 1; }
.feed .dot.down { color: var(--good); }
.feed .dot.warn { color: var(--warn); }
.feed .card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 6px; }
.feed .row1 { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.feed .ev { font-weight: 600; }
.feed .when { font: 400 12px/1 var(--f-data); color: var(--ink-3); }
.feed .where { font-size: 13px; color: var(--ink-3); }
.feed .impact { font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.feed .impact b { font-variant-numeric: tabular-nums; }
.feed .impact .g { color: var(--good); } .feed .impact .w { color: var(--warn); }

/* Founder */
.founder { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .founder { grid-template-columns: minmax(0, 1fr); } }
.founder .body { display: grid; gap: 16px; font-size: 1.1rem; color: var(--ink-2); max-width: 36em; }
.founder .body p:first-child { color: var(--ink); }

/* Final CTA */
.final { background: var(--ink); color: var(--paper); border-radius: 28px; padding: clamp(36px, 6vw, 72px); display: grid; gap: 22px; justify-items: start; position: relative; overflow: hidden; }
.final h2 { color: var(--paper); max-width: 14em; }
.final p { color: color-mix(in srgb, var(--paper) 75%, transparent); max-width: 34em; }
.final .signup input[type="email"] { background: color-mix(in srgb, var(--paper) 8%, transparent); border-color: color-mix(in srgb, var(--paper) 25%, transparent); color: var(--paper); }
.final .signup input[type="email"]::placeholder { color: color-mix(in srgb, var(--paper) 55%, transparent); }
.final .btn-primary { background: var(--paper); color: var(--ink); }
.final .form-note { color: color-mix(in srgb, var(--paper) 60%, transparent); }
.final .form-msg.ok { color: var(--paper); }
.final .grid-bg { position: absolute; inset: 0; pointer-events: none; opacity: .09; background-image: linear-gradient(var(--paper) 1px, transparent 1px), linear-gradient(90deg, var(--paper) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(120deg, transparent 40%, #000); -webkit-mask-image: linear-gradient(120deg, transparent 40%, #000); }
.final > *:not(.grid-bg) { position: relative; }

/* Footer */
.site-foot { padding-block: 40px 56px; border-top: 1px solid var(--line); }
.foot-in { display: grid; gap: 20px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.disclaimer { font-size: 12.5px; color: var(--ink-3); max-width: 80ch; }

.gauge .lab .m { position: absolute; transform: translateX(-50%); white-space: nowrap; color: var(--ink-2); }

/* Legal / prose pages */
.form-note a { color: inherit; text-underline-offset: 3px; }
.legal { padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px); }
.legal .wrap { max-width: 760px; }
.legal header { display: grid; gap: 14px; margin-bottom: 40px; }
.legal .meta { font: 400 13px/1.4 var(--f-data); color: var(--ink-3); }
.legal .summary { background: var(--pine-soft); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 8px; margin-bottom: 40px; }
.legal .summary ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.legal h2 { font-size: 1.55rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; margin: 10px 0 0; display: grid; gap: 6px; }
.legal a { color: var(--pine); text-underline-offset: 3px; }
.legal .tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-top: 12px; }
.legal table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal tr:last-child td { border-bottom: 0; }
.legal th { background: var(--surface-2); font-weight: 600; color: var(--ink); }
.legal ul + p, .legal .tbl + p { margin-top: 14px; }
