/* The landing pages's site: white, tight type, soft grey surfaces, sized for readers 55 to 75. */
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #fff;
  --surface: #f5f5f3;
  --surface-2: #ebebe8;
  --card: #fff;
  --ink: #121212;
  --ink-2: #4c4c48;
  --ink-3: #6b6b66;
  --ink-faint: #8a8a85;
  --line: rgba(0, 0, 0, .08);
  --line-2: rgba(0, 0, 0, .15);
  --pill: #121212;
  --pill-ink: #fff;
  --pill-2: #eeeeec;
  --pill-2-hover: #e5e5e2;
  --good: #0a7a3f;
  --good-bg: #e7f5ec;
  --bad: #c0302f;
  --spectrum: linear-gradient(95deg, #0b7a5a 0%, #1f78c8 40%, #5b3df5 75%, #a821e8 100%);
  --c-pretax: #eb6834;
  --c-roth: #1baf7a;
  --c-taxable: #2a78d6;
  --c-cash: #eda100;
  --c-line: #2a78d6;
  --c-wall: #d03b3b;
  --c-grid: #e6e5df;
  --c-axis: #c3c2b7;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .05), 0 2px 8px rgba(0, 0, 0, .04);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, .05), 0 12px 32px -8px rgba(0, 0, 0, .12);
  --shadow-3: 0 2px 4px rgba(0, 0, 0, .05), 0 32px 64px -16px rgba(0, 0, 0, .22);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(18px, 3.4vw, 40px);
  --max: 1180px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1e1e1e;
  --card: #111;
  --ink: #f5f5f3;
  --ink-2: #b9b8b2;
  --ink-3: #9c9b95;
  --ink-faint: #6d6c67;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --pill: #f5f5f3;
  --pill-ink: #121212;
  --pill-2: #1f1f1f;
  --pill-2-hover: #2a2a2a;
  --good: #3fcf86;
  --good-bg: #0f2a1d;
  --spectrum: linear-gradient(95deg, #3fcf9d 0%, #4d9fff 40%, #8c7bff 75%, #cf6bff 100%);
  --c-pretax: #d95926;
  --c-roth: #199e70;
  --c-taxable: #3987e5;
  --c-cash: #c98500;
  --c-line: #3987e5;
  --c-wall: #e66767;
  --c-grid: #2a2a28;
  --c-axis: #3d3d3a;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px -8px rgba(0, 0, 0, .6);
  --shadow-3: 0 2px 4px rgba(0, 0, 0, .5), 0 32px 64px -16px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.6 "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; }
b, strong { font-weight: 640; }
:focus-visible { outline: 3px solid #2a78d6; outline-offset: 3px; border-radius: 8px; }
::selection { background: #2a78d6; color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }

h1 { font-weight: 660; font-size: clamp(44px, 6.4vw, 84px); line-height: 1.03; letter-spacing: -.042em; text-wrap: balance; }
h2 { font-weight: 650; font-size: clamp(34px, 4.3vw, 56px); line-height: 1.06; letter-spacing: -.036em; text-wrap: balance; }
h2 .dim { color: var(--ink-faint); }
h3 { font-weight: 630; font-size: 21px; line-height: 1.3; letter-spacing: -.018em; }
.lede { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.grad { background: var(--spectrum); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shift 12s ease-in-out infinite alternate; padding-bottom: .1em; margin-bottom: -.1em; }
@keyframes shift { to { background-position: 100% 0; } }
.band { padding-block: clamp(76px, 10vw, 136px); }
.head { max-width: 800px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; display: grid; gap: 18px; justify-items: center; }
.eyebrow { font-size: 15px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }

.js .reveal { opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; filter: none; } .grad { animation: none; } }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 99px; font-weight: 620; font-size: 18px; letter-spacing: -.012em; white-space: nowrap; transition: transform .25s var(--ease), background-color .2s, box-shadow .25s; }
.btn .ic { transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--pill); color: var(--pill-ink); }
.btn-soft { background: var(--pill-2); color: var(--ink); }
.btn-soft:hover { background: var(--pill-2-hover); }
.btn-white { background: #fff; color: #121212; }
.btn-line { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 16px; }
.btn-glow { isolation: isolate; }
.btn-glow::before { content: ""; position: absolute; z-index: -1; left: 14%; right: 14%; bottom: -7px; height: 22px; border-radius: 50%; background: var(--spectrum); background-size: 220% 100%; filter: blur(13px); opacity: .85; animation: shift 6s ease-in-out infinite alternate; }
.btn-glow::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--pill); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 26px; height: 74px; padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2)); transition: background-color .25s, box-shadow .25s; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 680; letter-spacing: -.02em; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(140deg, #0b7a5a, #1f78c8 60%, #5b3df5); display: grid; place-items: center; color: #fff; }
.brand-mark svg { width: 23px; height: 23px; }
.nav-links { display: flex; gap: 4px; margin-left: 10px; }
.nav-links a { padding: 10px 14px; border-radius: 99px; font-weight: 540; font-size: 16.5px; color: var(--ink-2); white-space: nowrap; }
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); }
.icon-btn:hover { background: var(--surface); color: var(--ink); }
@media (max-width: 1180px) { .nav-links { display: none; } }
@media (max-width: 520px) { .nav .btn-soft { display: none; } .nav { gap: 10px; } .brand { font-size: 19px; } }
/* The header's button: a short label on phones where the long one would not fit beside the name. */
.cta-s { display: none; }
@media (max-width: 520px) { .cta-l { display: none; } .cta-s { display: inline; } }
/* The narrowest phones: the light/dark switch steps aside (the site follows the phone's own setting). */
@media (max-width: 380px) { .nav [data-theme-toggle] { display: none; } .brand { font-size: 18px; } .brand-mark { width: 32px; height: 32px; } }

/* Hero */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -74px 0 auto; height: 780px; z-index: -1; background: radial-gradient(60% 55% at 22% 8%, rgba(31, 120, 200, .10), transparent 70%), radial-gradient(50% 50% at 82% 4%, rgba(91, 61, 245, .09), transparent 70%), radial-gradient(40% 40% at 55% 30%, rgba(11, 122, 90, .07), transparent 70%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 1040px) { .hero-in { grid-template-columns: 1fr; } }
.hero-copy { display: grid; gap: 22px; align-content: start; }
.pill-note { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 8px 16px 8px 12px; border-radius: 99px; background: var(--good-bg); color: var(--good); font-weight: 600; font-size: 15.5px; }
.pill-note .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-2); font-size: 16px; }
.checks span { display: inline-flex; align-items: center; gap: 8px; }
.checks .ic { color: var(--good); width: 18px; height: 18px; }

/* The live calculator card */
.calc { position: relative; border-radius: 28px; background: var(--card); box-shadow: var(--shadow-3), 0 0 0 1px var(--line); padding: clamp(20px, 2.4vw, 30px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.calc-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calc-bar .t { font-weight: 650; font-size: 17px; }
.calc-live { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--good); }
.calc-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.calc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
@media (max-width: 520px) { .calc-fields { grid-template-columns: 1fr; } }
.cf { display: grid; gap: 6px; min-width: 0; }
.cf label, .cf .l { font-size: 15px; font-weight: 600; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.cf label b { color: var(--ink); font-variant-numeric: tabular-nums; }
/* A dropdown sits under its label (the slider labels keep their value at the right). */
.cf label:has(> select) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.cf.wide { grid-column: 1 / -1; }
.cf input[type=range] { width: 100%; accent-color: var(--ink); height: 30px; }
.cf select, .cf .box { width: 100%; min-height: 48px; border-radius: 12px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line-2); background: var(--bg); padding: 0 12px; font-size: 17px; font-weight: 560; }
.seg2 { display: flex; gap: 6px; padding: 4px; background: var(--surface); border-radius: 12px; }
.seg2 button { flex: 1; min-height: 42px; border-radius: 9px; font-weight: 580; font-size: 15px; color: var(--ink-2); }
.seg2 button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: var(--shadow-1); }
.calc-out { display: grid; gap: 10px; padding: 18px 20px; border-radius: 18px; background: var(--surface); }
.calc-out .lbl { font-size: 15.5px; font-weight: 600; color: var(--ink-2); }
.calc-out .big { font-size: clamp(38px, 4.4vw, 54px); line-height: 1; letter-spacing: -.04em; font-weight: 700; }
.calc-out .note { font-size: 15.5px; color: var(--ink-2); }
.calc-out.wait .big { opacity: .45; }
/* Quick answer shown, the full search still running: a quiet note beside the label. */
.calc-out.refining .lbl::after { content: ' \00b7  refining\2026'; font-weight: 500; color: var(--ink-faint, var(--ink-2)); animation: refine 1.4s ease-in-out infinite; }
@keyframes refine { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .calc-out.refining .lbl::after { animation: none; } }
.calc .chart { margin-top: -6px; }
.calc .chart text { font-family: inherit; fill: var(--ink-3); font-size: 12px; }
.calc .chart .grid line { stroke: var(--c-grid); }
.calc .chart .axis { stroke: var(--c-axis); }
.calc .chart .zone-lbl { fill: var(--ink-2); font-size: 12px; font-weight: 600; }
.calc .chart .zone-rate { fill: var(--ink); font-size: 13.5px; font-weight: 700; }
.calc .chart .wall-lbl { fill: var(--bad); font-size: 12px; font-weight: 650; }
.tip { position: absolute; z-index: 5; pointer-events: none; min-width: 170px; padding: 10px 12px; border-radius: 12px; background: var(--bg); box-shadow: var(--shadow-3), 0 0 0 1px var(--line); font-size: 14px; opacity: 0; transition: opacity .12s; }
.tip.on { opacity: 1; }
.tip .v { font-size: 17px; font-weight: 680; }
.tip .r { display: flex; justify-content: space-between; gap: 12px; }
.tip .k { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }

/* Stats row */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--line); }
.stats > div { padding: 26px 22px; display: grid; gap: 4px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats b { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.035em; font-weight: 700; line-height: 1.05; }
.stats span { color: var(--ink-2); font-size: 16px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats > div:nth-child(3) { border-left: 0; } .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Cards */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .grid3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
.card { border-radius: 26px; background: var(--surface); padding: clamp(24px, 2.6vw, 34px); display: grid; gap: 14px; align-content: start; }
.card.white { background: var(--card); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.card p { color: var(--ink-2); }
.card .ic-tile { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, #0b7a5a, #1f78c8 60%, #5b3df5); }
.card .ic-tile .ic { width: 26px; height: 26px; }
.card .more { font-weight: 620; display: inline-flex; gap: 8px; align-items: center; margin-top: 6px; }
.card .more .ic { width: 18px; height: 18px; }
.wedge-card { transition: transform .3s var(--ease), box-shadow .3s; }
.wedge-card:hover { transform: translateY(-3px); }
.w-adv .ic-tile { background: linear-gradient(140deg, #0b7a5a, #1f78c8); }
.w-inh .ic-tile { background: linear-gradient(140deg, #6250d6, #a821e8); }
.w-roth .ic-tile { background: linear-gradient(140deg, #eb6834, #e8175d); }
.w-full .ic-tile { background: linear-gradient(140deg, #1baf7a, #0b7a5a); }

/* Split feature rows */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split + .split { margin-top: clamp(64px, 8vw, 110px); }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.split .copy { display: grid; gap: 18px; align-content: start; }
.ticks { display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: var(--ink-2); }
.ticks .ic { color: var(--good); margin-top: 3px; }

/* A Form 1040 card, drawn */
.f1040 { border-radius: 22px; background: var(--card); box-shadow: var(--shadow-3), 0 0 0 1px var(--line); overflow: hidden; font-size: 16px; }
.f1040 .fh { display: flex; justify-content: space-between; padding: 16px 20px; background: var(--surface); font-weight: 700; }
.f1040 .fl { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; padding: 10px 20px; border-top: 1px solid var(--line); }
.f1040 .fl .n { color: var(--ink-3); font-weight: 650; }
.f1040 .fl .a { font-family: "Geist Mono", ui-monospace, monospace; font-weight: 600; font-variant-numeric: tabular-nums; }
.f1040 .fl.hi { background: color-mix(in srgb, #2a78d6 7%, transparent); }
.f1040 .fl small { display: block; color: var(--ink-3); font-size: 13.5px; }

/* Air gap */
.airgap-card { border-radius: 26px; background: #0d1117; color: #e6edf3; padding: clamp(24px, 3vw, 36px); display: grid; gap: 16px; box-shadow: var(--shadow-3); font-size: 16px; }
.airgap-card code { font-family: "Geist Mono", ui-monospace, monospace; font-size: 14.5px; color: #7ee2b8; background: rgba(255,255,255,.06); padding: 3px 7px; border-radius: 6px; }
.airgap-card .badge { display: inline-flex; gap: 10px; align-items: center; padding: 8px 14px; border-radius: 99px; background: rgba(63, 207, 134, .14); color: #3fcf86; font-weight: 650; justify-self: start; }
.airgap-card .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.08); }
.airgap-card .row span:last-child { color: #3fcf86; font-weight: 650; }

/* Pricing */
.anchors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
@media (max-width: 860px) { .anchors { grid-template-columns: 1fr; } }
.anchor { padding: 20px 22px; border-radius: 20px; background: var(--surface); display: grid; gap: 4px; }
.anchor b { font-size: 30px; letter-spacing: -.03em; }
.anchor.us { background: var(--good-bg); color: var(--good); }
.anchor.us span { color: var(--good); }
.anchor span { color: var(--ink-2); font-size: 16px; }
.anchor s { color: var(--ink-faint); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }
.plan { border-radius: 26px; padding: clamp(24px, 2.6vw, 34px); background: var(--surface); display: grid; gap: 16px; align-content: start; }
.plan.feature { background: #121212; color: #f5f5f3; box-shadow: var(--shadow-3); }
:root[data-theme="dark"] .plan.feature { background: #1c1c1c; box-shadow: 0 0 0 1px var(--line-2); }
.plan .name { font-weight: 650; font-size: 19px; }
.plan .price { font-size: 52px; font-weight: 720; letter-spacing: -.045em; line-height: 1; }
.plan .price small { font-size: 18px; font-weight: 560; letter-spacing: 0; opacity: .75; }
.plan p { color: inherit; opacity: .82; }
.plan ul { display: grid; gap: 10px; font-size: 16.5px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.plan li .ic { width: 18px; height: 18px; margin-top: 4px; color: #3fcf86; }
.plan .tag { justify-self: start; padding: 5px 11px; border-radius: 99px; background: var(--spectrum); color: #fff; font-size: 13.5px; font-weight: 650; }
.plan.feature .btn-dark { background: #fff; color: #121212; }
.fineprint { text-align: center; color: var(--ink-3); font-size: 15px; margin-top: 22px; }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--surface); padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; min-height: 64px; font-weight: 620; font-size: 18.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); }

/* Final band and footer */
.final { margin: 0 var(--gutter) clamp(40px, 5vw, 64px); border-radius: 34px; background: #0f0f10; color: #f5f5f3; padding: clamp(56px, 8vw, 110px) var(--gutter); text-align: center; display: grid; gap: 22px; justify-items: center; position: relative; overflow: hidden; isolation: isolate; }
.final::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 90%; z-index: -1; background: radial-gradient(50% 60% at 50% 50%, rgba(91, 61, 245, .35), transparent 70%); }
.final h2 { color: #fff; }
.final p { color: #c9c9c4; max-width: 640px; font-size: 19px; }
footer { padding: 40px 0 64px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 15.5px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
@media (max-width: 820px) { .foot { grid-template-columns: 1fr 1fr; } }
.foot .fh { margin: 0 0 10px; color: var(--ink); font-size: 15.5px; font-weight: 700; line-height: 1.4; letter-spacing: 0; }
.foot a { display: block; padding: 4px 0; }
.foot a:hover { color: var(--ink); }
.legal { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.6; }
.prose { max-width: 760px; margin-inline: auto; display: grid; gap: 16px; padding-block: 40px 80px; }
.prose h1 { font-size: clamp(36px, 5vw, 54px); }
.prose h2 { font-size: 26px; margin-top: 18px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; }

/* Inherited IRA calculator: the years at a glance */
.mini-bars { display: flex; gap: 5px; align-items: flex-end; height: 140px; margin-top: 6px; }
.mb { flex: 1; display: grid; justify-items: center; gap: 4px; min-width: 0; }
.mb i { display: block; width: 100%; max-width: 22px; background: var(--c-taxable); border-radius: 4px 4px 0 0; }
.mb i.ret { background: var(--c-roth); }
.mb span { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.link { text-decoration: underline; text-underline-offset: 4px; font-weight: 560; }
code { font-family: "Geist Mono", ui-monospace, monospace; font-size: .9em; }

/* =========================================================================================================
   The five apps' landing pages: hypothetical labels, feature grid, single plan, download grid.
   ========================================================================================================= */
:root { --brand: #1f78c8; --brand-2: #2bb3c0; --brand-3: #5b3df5; --c-min: #b9bfcb; }
:root[data-theme="dark"] { --c-min: #5a606c; }
.hero-calc { min-width: 0; }
.hypo { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.calc-out .hypo { margin-bottom: 2px; }
.example { margin-top: 28px; padding: 20px 22px; border-radius: 20px; background: var(--surface); color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.example .hypo { margin-right: 8px; }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 34px; }
.feat { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; }
.feat h3 { font-size: 19.5px; letter-spacing: -.015em; font-weight: 650; margin: 2px 0 6px; }
.feat p { color: var(--ink-2); font-size: 16.5px; line-height: 1.55; }
.feat .ic-tile, .ic-tile.sm { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--brand), var(--brand-2) 62%, var(--brand-3)); }
.feat .ic-tile .ic { width: 22px; height: 22px; }
.plans.one { grid-template-columns: minmax(0, 560px); justify-content: center; }
/* Download options: one row each, the action at the right (stacked on a phone). */
.dl-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
.dl-grid .card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "h btn" "p btn" "note note"; column-gap: 28px; row-gap: 8px; align-items: center; }
.dl-grid .card > h2 { grid-area: h; }
.dl-grid .card > p:not(.small) { grid-area: p; }
.dl-grid .card > .btn { grid-area: btn; justify-self: end; white-space: nowrap; }
.dl-grid .card > .small { grid-area: note; padding-top: 10px; border-top: 1px solid var(--line); }
.dl-grid b { overflow-wrap: anywhere; }
@media (max-width: 760px) { .dl-grid .card { grid-template-columns: 1fr; grid-template-areas: "h" "p" "btn" "note"; } .dl-grid .card > .btn { justify-self: start; } }
.btn-wide { width: 100%; margin-top: 6px; }
.mb.two { display: grid; justify-items: center; gap: 4px; }
.mb.two .mb-pair { display: flex; gap: 2px; align-items: flex-end; height: 112px; width: 100%; justify-content: center; }
.mb.two i { width: 45%; max-width: 11px; background: var(--brand); }
.mb.two i.min { background: var(--c-min); }
.scen { display: grid; gap: 6px; margin-top: 10px; }
.scen-r { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--surface); font-size: 15.5px; }
.scen-r.best { background: color-mix(in srgb, var(--brand) 12%, var(--surface)); font-weight: 650; }
.scen-r b { font-variant-numeric: tabular-nums; }
.prose .lede { color: var(--ink-2); font-size: 19px; }
@media (max-width: 980px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .feats, .dl-grid { grid-template-columns: 1fr; } .hide-sm { display: none; } }

/* The hidden attribute always wins over a component's own display. */
[hidden] { display: none !important; }

/* Short pages (privacy, terms, buy, download, not found): the footer sits at the foot of the window. */
body:has(> main > .prose) { display: flex; flex-direction: column; min-height: 100dvh; }
body:has(> main > .prose) > main { flex: 1 0 auto; }
body:has(> main > .prose.nf) > main { display: grid; align-content: center; }
.prose.nf { padding-block: 56px 96px; }
.prose.nf .actions { margin-top: 10px; }

/* A longer headline steps down so it reads in four or five lines, not seven. */
h1.h1-long { font-size: clamp(40px, 5.1vw, 66px); }

/* On a phone or tablet, the option that works there comes first on the download page. */
@media (hover: none) and (pointer: coarse) { .dl-grid #ipad { order: -1; } }

/* The map's pin tag in the landing calculators: its own ink, not the chart's grey tick text. */
.calc .chart .pin-tag-bg { fill: var(--ink); }
.calc .chart text.pin-tag-t { fill: var(--bg); font-size: 15px; font-weight: 700; }
/* Cliff labels get a halo in the panel's color, so a line never runs through the words. */
.calc .chart .wall-lbl { paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
/* A phone held sideways: the header scrolls away instead of covering a fifth of the screen. */
@media (max-height: 500px) and (orientation: landscape) { .nav { position: relative; height: 62px; } html { scroll-padding-top: 12px; } }
/* A notched iPhone held sideways: content stays clear of the notch (the page covers the whole screen). */
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
/* Windows High Contrast: buttons and the calculator's fields keep visible edges; chart and legend colours stay. */
@media (forced-colors: active) {
  .btn, .chip, .nav-links a[aria-current] { border: 1px solid ButtonBorder; }
  .calc select, .calc input:not([type=range]) { border: 1px solid CanvasText; }
  .chart svg, .legend i { forced-color-adjust: none; }
  .calc { border: 1px solid CanvasText; }
  .seg2 button { border: 1px solid ButtonBorder; }
  .seg2 button[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
}
/* Safari before 16.2 has no color-mix(): plain colours for the header and highlights. */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .nav.scrolled { background: var(--bg); }
  .f1040 .fl.hi { background: rgba(42, 120, 214, .07); }
  .scen-r.best { background: var(--surface); }
}
