:root {
  --ink: #e8ecf1;
  --mute: #9aa4b2;
  --line: #2e3644;
  --paper: #12161d;
  --wash: #1a2029;
  --card: #1e252f;
  --yellow: #fff361;
  --on-yellow: #253140;
  --link: #fff361;
  --loss: #ff8a8a;
  --gain: #9be7a8;
  --loss-fill: #5a2a2e;
  --gain-fill: #1f3d2c;
  --radius: 12px;
  --panel: 340px;
}
html { color-scheme: dark; scroll-behavior: smooth; overflow-x: clip; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Satoshi, ui-sans-serif, system-ui, sans-serif;
  background:
    radial-gradient(1100px 480px at 72% -10%, rgba(255, 243, 97, 0.1), transparent 55%),
    var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.drawer-open { overflow: hidden; }
button, input { font-family: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
a { color: var(--link); }

header {
  max-width: none;
  margin: 0;
  padding: 16px 28px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand > a { display: flex; align-items: center; }
.brand img { height: 40px; width: auto; display: block; filter: brightness(0) invert(1); }
.brand em { font-style: normal; font-size: 14px; color: var(--mute); }
.brand .labs { color: var(--mute); text-decoration: none; }
.brand .labs:hover { color: var(--yellow); }
header .aside { color: var(--mute); font-size: 13px; text-align: right; }

.dash {
  display: grid;
  grid-template-columns: var(--panel) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 8px 28px 72px;
  max-width: 1600px;
  margin: 0 auto;
}
.panel {
  position: sticky;
  top: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px 16px;
  max-height: calc(100vh - 32px);
  overflow: auto;
}
.panel h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.panel .sub { font-size: 13px; color: var(--mute); margin-bottom: 14px; }
.panel h3 {
  font-size: 12px;
  color: var(--mute);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 14px 0 8px;
}
.lever { margin-bottom: 12px; }
.lever .txt { font-size: 14px; color: var(--ink); font-weight: 600; }
.lever .hint { font-size: 11px; color: #7d8796; margin: 2px 0 6px; }
.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 8px;
  align-items: center;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--yellow);
  height: 44px;
  min-height: 44px;
}
input[type="number"] {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  background: var(--wash);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 16px;
  font-weight: 500;
  min-height: 44px;
}
input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 243, 97, 0.22);
  border-color: var(--yellow);
}
.fund { display: flex; gap: 8px; flex-wrap: wrap; }
.fund button, .scope button, .chips button, .more, .drawer-toggle {
  border: 1px solid var(--line);
  background: var(--wash);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  min-height: 44px;
}
.fund button.on, .scope button.on, .chips button.on {
  background: var(--yellow);
  color: var(--on-yellow);
  border-color: var(--yellow);
}
.more {
  display: block;
  margin-top: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: var(--yellow);
}
.more:hover { border-color: var(--yellow); }
.scrim {
  display: none;
}
.drawer-toggle {
  display: none;
  width: 100%;
  align-items: center;
  gap: 10px;
  text-align: left;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 10px 4px 12px;
}
.drawer-toggle .handle {
  display: none;
}
.drawer-copy { min-width: 0; flex: 1; }
.drawer-copy strong { display: block; font-size: 15px; }
.drawer-peek {
  display: block;
  font-size: 12px;
  color: var(--mute);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drawer-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--yellow);
  border-bottom: 2px solid var(--yellow);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.results { min-width: 0; }
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-top: 4px;
}
h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 6px 0 10px;
}
.lede { color: var(--mute); max-width: 46em; margin-bottom: 18px; }
.simple-story { max-width: 880px; }
.how-h {
  font-size: 18px;
  font-weight: 700;
  margin: 18px 0 10px;
  letter-spacing: -0.02em;
}
.how-steps {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}
.how-steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px 14px 16px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}
.how-steps .n {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--on-yellow);
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
}
.how-steps p { font-size: 15px; color: var(--ink); margin: 0; }
.how-steps h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
}
.guardrail {
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  background: var(--wash);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.45;
}
.reassure { font-size: 15px; color: var(--ink); margin-top: 8px; }
.already-have {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}
.already-have strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.talk {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 20px 18px;
  margin: 0 0 16px;
}
.talk > h2 {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 14px;
}
.talk-item { margin-bottom: 14px; }
.talk-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
}
.talk-item p {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.45;
  margin: 0;
}
.talk-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.talk-list li {
  font-size: 15px;
  color: var(--ink);
  padding: 6px 0 6px 22px;
  position: relative;
  line-height: 1.4;
  border-bottom: 1px solid var(--line);
}
.talk-list li:last-child { border-bottom: 0; }
.talk-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid var(--yellow);
  border-radius: 3px;
  position: absolute;
  left: 0;
  top: 10px;
}
#plan-details {
  margin: 8px 0 24px;
}
#plan-details > summary {
  cursor: pointer;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
#plan-details > summary::-webkit-details-marker { display: none; }
#plan-details > summary::after {
  content: "Show";
  float: right;
  font-size: 13px;
  font-weight: 600;
  color: var(--yellow);
  letter-spacing: 0;
}
#plan-details[open] > summary { margin-bottom: 16px; }
#plan-details[open] > summary::after { content: "Hide"; }
.plan-kicker {
  font-size: 13px;
  font-weight: 600;
  color: var(--mute);
  margin: 0 0 6px;
}
.q-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 20px 18px;
  margin-bottom: 14px;
}
.q-block.keep {
  position: relative;
}
.q-block.keep::before {
  content: "";
  position: absolute;
  left: 0; top: 16px; bottom: 16px;
  width: 4px;
  border-radius: 0 4px 4px 0;
}
.q-block.keep.yes { background: var(--gain-fill); }
.q-block.keep.yes::before { background: var(--gain); }
.q-block.keep.no { background: var(--loss-fill); }
.q-block.keep.no::before { background: var(--loss); }
.q-block.keep.if { background: var(--wash); }
.q-block.keep.if::before { background: var(--yellow); }
.q-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.q-n {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--on-yellow);
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.q-block h2 {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0;
}
.q-amt {
  font-size: clamp(32px, 5.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 10px 0 8px;
}
.q-formula {
  font-size: 15px;
  color: var(--mute);
  line-height: 1.4;
}
.q-note {
  font-size: 15px;
  color: var(--ink);
  margin-top: 10px;
  line-height: 1.45;
  max-width: 46em;
}
.q-note[hidden], .q-formula[hidden] { display: none; }
.plan-capture {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  max-width: 46em;
}
.plan-capture[hidden] { display: none; }
.if-more {
  margin: 16px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--mute);
}
.fund-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.scen {
  border-radius: 12px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  background: var(--wash);
}
.scen .kicker { font-size: 13px; font-weight: 500; color: var(--mute); margin-bottom: 6px; text-transform: none; letter-spacing: 0; }
.scen .amt { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.scen .why { font-size: 13px; color: var(--mute); margin-top: 6px; line-height: 1.4; }
.who-lite { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.who-lite h3 { font-size: 13px; font-weight: 500; color: var(--mute); margin-bottom: 12px; }
.verdict-title { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; margin: 14px 0 6px; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.steps article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.steps .n {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--on-yellow);
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}
.steps h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.steps p { font-size: 13px; color: var(--mute); }
.vs-line { margin-bottom: 16px; }

.verdict {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 24px 20px;
  margin-bottom: 14px;
  position: relative;
}
.verdict::before {
  content: "";
  position: absolute;
  left: 0; top: 16px; bottom: 16px;
  width: 4px;
  border-radius: 0 4px 4px 0;
}
.verdict.yes { background: var(--gain-fill); }
.verdict.yes::before { background: var(--gain); }
.verdict.no { background: var(--loss-fill); }
.verdict.no::before { background: var(--loss); }
.verdict.if { background: var(--wash); }
.verdict.if::before { background: var(--yellow); }
.verdict h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 10px;
}
.verdict .why { font-size: 16px; max-width: 48em; }
.money {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 8px;
}
.money .cell {
  background: rgba(18, 22, 29, 0.35);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.money .lab { font-size: 12px; color: var(--mute); }
.money .val {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-top: 4px;
}
.be { font-size: 14px; color: var(--mute); margin-top: 8px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
}
.card h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.lims {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.lim {
  border: 1px solid var(--line);
  background: var(--wash);
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
}
.lim.on { border-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow); }
.lim .t { display: block; font-weight: 700; margin-bottom: 4px; }
.lim .d { display: block; font-size: 12px; color: var(--mute); }
.lims-note { font-size: 13px; color: var(--mute); margin-top: 8px; }

.scope { display: flex; gap: 8px; margin-bottom: 12px; }
.row3 { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; margin-bottom: 10px; }
.row3 .name { font-size: 14px; color: var(--mute); }
.row3 .amt { font-weight: 700; font-size: 18px; letter-spacing: -0.03em; text-align: right; }
.bar-track { grid-column: 1 / -1; height: 10px; background: var(--wash); border-radius: 999px; overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 999px; }
.bar-track.rev i { background: var(--yellow); }
.bar-track.cost i { background: #9aa4b2; }
.bar-track.net.pos i { background: var(--gain); }
.bar-track.net.neg i { background: var(--loss); }
.eq { font-size: 13px; color: var(--mute); margin: 4px 0 10px; }
.items { list-style: none; margin-top: 8px; }
.items li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--mute); padding: 3px 0; }
.items .amt { color: var(--ink); font-weight: 600; }
.sit-line { font-size: 13px; color: var(--mute); margin-top: 10px; }

.charts {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  min-width: 0;
}
.chart-wrap {
  position: relative;
  display: flex;
  gap: 6px;
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
}
.chart-y {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--mute);
  font-size: 12px;
  text-align: center;
  flex: 0 0 auto;
}
.chart-svg {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  flex: 1;
  min-width: 0;
}
.chart-note { font-size: 13px; color: var(--mute); margin-top: 8px; }
.chart-note.tight { margin-top: 0; margin-bottom: 8px; }

.scenarios { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scenario {
  border: 1px solid var(--line);
  background: var(--wash);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: inherit;
}
.scenario:hover { border-color: var(--yellow); }
.scenario h3 { font-size: 16px; font-weight: 700; margin: 8px 0 6px; letter-spacing: -0.02em; }
.scenario .yr { font-size: 18px; font-weight: 700; }
.scenario .why { font-size: 14px; color: var(--mute); margin-top: 6px; }
.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 8px;
}
.badge.yes { background: var(--gain); color: #122018; }
.badge.no { background: var(--loss-fill); color: var(--loss); }

.fine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.fine-grid h3 {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--mute);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-top: 6px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mute);
}
label span.src { font-size: 11px; font-weight: 400; color: #7d8796; line-height: 1.35; }
.txt.muted { font-size: 13px; color: var(--mute); font-weight: 500; margin-bottom: 6px; }

details.adv {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 14px;
}
details.adv > summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  list-style: none;
}
details.adv > summary::-webkit-details-marker { display: none; }
details.adv > summary::after { content: " +"; color: var(--yellow); }
details.adv[open] > summary::after { content: " −"; }
.adv-body { margin-top: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.facts, .fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
.toggle { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 14px; font-weight: 400; margin-top: 10px; }
.toggle input { margin-top: 4px; accent-color: var(--yellow); width: 16px; height: 16px; }
.fine { font-size: 12px; color: var(--mute); line-height: 1.45; margin-top: 16px; }
.fine span { display: block; margin-bottom: 6px; }
footer { max-width: 1600px; margin: 0 auto; padding: 0 28px 40px; color: var(--mute); font-size: 14px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 759px) {
  .dash {
    display: block;
    padding: 8px 16px calc(96px + env(safe-area-inset-bottom, 0px));
  }
  header, footer { padding-left: 16px; padding-right: 16px; }
  .scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 14, 0.55);
    z-index: 30;
  }
  .scrim[hidden] { display: none; }
  .panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 40;
    max-height: 72px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    padding: 0 16px calc(8px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  }
  .panel.open {
    max-height: min(88vh, 720px);
    overflow: auto;
  }
  .drawer-toggle {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--card);
  }
  .drawer-toggle .handle {
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: #5b6573;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
  }
  .panel.open .drawer-chevron { transform: rotate(225deg); }
  .charts, .lims, .steps, .scenarios, .facts, .fields, .fine-grid {
    grid-template-columns: 1fr;
  }
  .fund-grid { grid-template-columns: 1fr; }
  .q-amt { font-size: 36px; }
  .money {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
  }
  .money .cell { padding: 8px 6px; }
  .money .val { font-size: 15px; }
  .money .lab { font-size: 10px; }
  header { flex-wrap: wrap; }
  header .aside { text-align: left; width: 100%; }
  h1 { font-size: 30px; }
}
@media (min-width: 760px) and (max-width: 1099px) {
  .dash {
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 18px;
    padding: 8px 18px 64px;
  }
  .panel { --panel: 280px; }
  .charts { grid-template-columns: 1fr; }
  .money, .lims { grid-template-columns: 1fr 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 1000px) {
  .charts { grid-template-columns: 1.15fr 0.85fr; }
}
@media (min-width: 760px) and (max-width: 879px) {
  .money, .lims, .steps { grid-template-columns: 1fr; }
  .fine-grid, .facts, .fields, .scenarios { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .pair { grid-template-columns: minmax(0, 1fr) 88px; }
  .pair input[type="number"] { padding-left: 6px; padding-right: 6px; }
  .money .val { font-size: 14px; word-break: break-word; }
}
