/* The landing pages' site, in the Mobbin manner: a white page, big tight headlines, soft grey panels holding real
   screens from the app, pill buttons. Phone first, and 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: #f6f9fc;
  --surface-2: #e8eef6;
  --card: #fff;
  --bezel: #fff;
  --ink: #0a2540;
  --ink-2: #425466;
  --ink-3: #5b6b80;
  --ink-faint: #6f7f96;
  --line: rgba(10, 37, 64, .09);
  --line-2: rgba(10, 37, 64, .16);
  --pill: #1d4ed8;
  --pill-hover: #1e40af;
  --pill-ink: #fff;
  --pill-2: #edf2f9;
  --pill-2-hover: #e1e9f5;
  --navy: #0a2540;
  --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: #e6ecf3;
  --c-axis: #c3cdd9;
  --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);
  --shadow-phone: 0 0 0 1px rgba(0, 0, 0, .06), 0 30px 60px -28px rgba(0, 0, 0, .32);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(18px, 3.4vw, 40px);
  --max: 1180px;
  --nav-h: 72px;
  --r-panel: clamp(26px, 3.2vw, 40px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0a0a0b;
  --surface: #161618;
  --surface-2: #212124;
  --card: #111113;
  --bezel: #232326;
  --ink: #f4f4f5;
  --ink-2: #b8b8bf;
  --ink-3: #9d9da6;
  --ink-faint: #76767f;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --pill: #f4f4f5;
  --pill-ink: #0b0b0c;
  --pill-2: #1d1d20;
  --pill-2-hover: #28282c;
  --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: #2a2a2e;
  --c-axis: #3d3d43;
  --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);
  --shadow-phone: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -28px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Smooth scrolling starts once the page has loaded (site.js): a page opened at a section (/#pricing) jumps there at
   once, instead of gliding while the calculator above is still settling and stopping short. */
html.smooth-scroll { scroll-behavior: smooth; }
/* A jump to a section (#pricing, #try...) lands its heading clear of the sticky header. */
[id] { scroll-margin-top: 96px; }
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; }
/* A section a link jumps to takes focus (so Tab carries on from there) without a ring around the whole band. */
main [tabindex="-1"]:focus, main [tabindex="-1"]:focus-visible { outline: none; }
::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: 680; font-size: clamp(36px, calc(23.6px + 4.72vw), 84px); line-height: 1.02; letter-spacing: -.046em; text-wrap: balance; }
h2 { font-weight: 670; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -.04em; text-wrap: balance; }
h2 .dim { color: var(--brand-2, #4f7cf0); }
h3 { font-weight: 640; font-size: 21px; line-height: 1.3; letter-spacing: -.02em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); 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(72px, 9vw, 128px); }
.head { max-width: 820px; margin: 0 auto clamp(36px, 4.6vw, 60px); text-align: center; display: grid; gap: 16px; justify-items: center; }
.head .lede { max-width: 700px; }
.eyebrow { font-size: 14.5px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--brand, #1d4ed8); }

/* Sections fade up as they come into view (site.js; a scroll check backs the observer, theme.js a timer). */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.tiles > .reveal:nth-child(2), .fgrid > .reveal:nth-child(2), .duo > .reveal:nth-child(2) { transition-delay: .08s; }
.tiles > .reveal:nth-child(3), .fgrid > .reveal:nth-child(3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .grad { animation: none; } html, html.smooth-scroll { scroll-behavior: auto; } }

.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; -webkit-tap-highlight-color: transparent; }
/* On a phone a long button label ("Unlock My 10-Year Plan for $499") wraps inside the button instead of pushing the
   page sideways; buttons that fit stay on one line. The small header buttons never wrap. */
@media (max-width: 520px) { .btn:not(.btn-sm) { max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-block: 10px; text-wrap: balance; } }
.btn .ic { transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--pill); color: var(--pill-ink); }
.btn-dark:hover { background: var(--pill-hover, var(--pill)); box-shadow: 0 10px 24px -10px rgba(29, 78, 216, .45); }
.btn-soft { background: var(--pill-2); color: var(--ink); }
.btn-soft:hover { background: var(--pill-2-hover); }
.btn-white { background: #fff; color: var(--navy, #0a2540); }
.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; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Header: links on wide screens, a menu on phones and tablets. */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px; height: var(--nav-h); 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) 82%, transparent); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); box-shadow: 0 1px 0 var(--line); }
.nav.open { background: var(--bg); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 690; letter-spacing: -.025em; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand, #141414); display: grid; place-items: center; color: #fff; flex: none; }
.brand-mark svg { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 2px; margin-left: 8px; }
.nav-links a { padding: 10px 14px; border-radius: 99px; font-weight: 550; font-size: 16px; color: var(--ink-2); white-space: nowrap; transition: background-color .2s, color .2s; }
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); flex: none; transition: background-color .2s, color .2s; }
.icon-btn:hover { background: var(--surface); color: var(--ink); }
.menu-btn { display: none; color: var(--ink); }
.menu-btn .ic { width: 24px; height: 24px; }
.menu-btn .i-close, .nav.open .menu-btn .i-open { display: none; }
.nav.open .menu-btn .i-close { display: block; }
.cta-s { display: none; }
/* The menu: a full sheet under the header, big rows that are easy to hit. */
.m-menu { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain; background: var(--bg); padding: 8px max(var(--gutter), calc((100% - var(--max)) / 2)) calc(40px + env(safe-area-inset-bottom)); display: grid; align-content: start; }
.m-menu:not([hidden]) { animation: menu-in .32s var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-10px); } }
.m-menu a { display: flex; align-items: center; min-height: 62px; font-size: 25px; font-weight: 660; letter-spacing: -.03em; border-bottom: 1px solid var(--line); }
.m-menu button { display: inline-flex; align-items: center; gap: 12px; justify-self: start; min-height: 52px; margin-top: 18px; padding: 0 20px; border-radius: 99px; background: var(--pill-2); font-size: 17px; font-weight: 600; }
.m-menu button .ic { width: 20px; height: 20px; }
html.menu-open, html.menu-open body { overflow: hidden; }
@media (max-width: 1180px) { .nav-links { display: none; } .menu-btn { display: grid; } }
@media (min-width: 1181px) { .m-menu { display: none !important; } }
@media (max-width: 820px) {
  :root { --nav-h: 64px; }
  .nav { gap: 8px; }
  .nav .theme-btn, .nav .hide-sm { display: none; }
  .nav-right { gap: 4px; }
  .nav-right .btn-sm { min-height: 42px; padding: 0 16px; font-size: 15.5px; }
}
@media (max-width: 520px) { .cta-l { display: none; } .cta-s { display: inline; } .brand { font-size: 18.5px; gap: 9px; } }
@media (max-width: 400px) { .brand-mark { width: 30px; height: 30px; border-radius: 9px; } .brand-mark svg { width: 20px; height: 20px; } .brand { font-size: 18px; gap: 8px; } .nav-right .btn-sm { padding: 0 14px; font-size: 15px; } }
/* The narrowest phones: the header keeps the name and the menu (the page's own buttons carry the rest). */
@media (max-width: 359px) { .nav-right .btn-sm { display: none; } }

/* ---- Hero: the words at the left and real phone screens fanned out at the right on wide screens; on tablets and
   phones the words come first, centred, then the screens. Always on a light page. */
.hero { position: relative; overflow: hidden; padding: clamp(24px, 4.4vw, 64px) 0 clamp(36px, 4vw, 60px); isolation: isolate; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: clamp(18px, 1.8vw, 24px); justify-items: start; align-content: center; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { flex: none; padding: 7px 14px; border-radius: 99px; background: var(--bg); color: var(--ink-2); font-size: 14px; font-weight: 600; letter-spacing: -.005em; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, .04); }
.chips span:first-child::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--brand); vertical-align: 1px; }
.hero h1 { font-size: clamp(40px, calc(10px + 3.6vw), 62px); line-height: 1.03; letter-spacing: -.045em; max-width: 12.5em; text-wrap: pretty; }
.hero h1.h1-long { font-size: clamp(34px, calc(10px + 3vw), 54px); max-width: 14em; }
.h1-b { color: var(--brand, #1d4ed8); }
.nw { white-space: nowrap; }
.sub { max-width: 33em; font-size: clamp(18px, 1.45vw, 20.5px); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.hero .actions { margin-top: 6px; }
.checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: clamp(28px, 3.6vw, 48px); padding-top: clamp(22px, 2.6vw, 30px); border-top: 1px solid var(--line); color: var(--ink-2); font-size: 16px; font-weight: 520; }
.checks span { display: inline-flex; align-items: center; gap: 8px; }
.checks .ic { color: var(--brand, #1d4ed8); width: 18px; height: 18px; }

/* The fan: the main screen in front, two behind it tilted out, and the bottom fading into the page. Each phone is a dark bezel around the real screenshot. */
.hero-art { position: relative; min-width: 0; display: grid; justify-items: center; }
.fan { position: relative; width: 100%; max-width: 600px; height: clamp(500px, 47vw, 626px); }
.fan::after { content: ""; position: absolute; z-index: 2; left: -30%; right: -30%; bottom: -1px; height: 20%; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 92%); pointer-events: none; }
.fan::before { content: none; }
.ph { position: absolute; top: 0; left: 50%; width: var(--w); margin: 0; padding: calc(var(--w) * .034); border-radius: calc(var(--w) * .17); background: #0c0c0e; box-shadow: inset 0 0 0 1.5px #2c2c31, 0 44px 70px -34px rgba(17, 24, 39, .55), 0 18px 30px -20px rgba(17, 24, 39, .35); }
.ph img { display: block; width: 100%; height: auto; border-radius: calc(var(--w) * .136); background: #fff; }
.ph-c { --w: clamp(224px, 21vw, 272px); z-index: 2; transform: translateX(-50%); }
.ph-l, .ph-r { --w: clamp(188px, 17.6vw, 228px); z-index: 1; top: 9%; }
.ph-l { transform: translateX(calc(-50% - var(--w) * .78)) rotate(-7deg); }
.ph-r { transform: translateX(calc(-50% + var(--w) * .78)) rotate(7deg); }
.float { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px; padding: 8px 15px 8px 8px; border-radius: 16px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 22px 40px -22px rgba(17, 24, 39, .5); font-size: 14px; font-weight: 640; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; animation: bob 7s ease-in-out infinite; }
.float .fi { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--good-bg); color: var(--good); flex: none; }
.float .fi .ic { width: 17px; height: 17px; }
.float .fi.lock { background: var(--surface); color: var(--ink); }
.float.f1 { left: -3%; bottom: 24%; }
.float.f2 { right: -4%; top: 12%; animation-delay: -3.5s; }
@keyframes bob { 50% { transform: translateY(-7px); } }
.art-note { margin-top: 10px; color: var(--ink-3); font-size: 13.5px; text-align: center; }
/* StrataTax Pro: its workstation's window, turned a little toward the words. */
.wide-art .fan { height: auto; max-width: none; width: 122%; justify-self: start; padding: 30px 0 40px; perspective: 1800px; }
.wide-art .fan::after { display: none; }
.wide-art .fan::before { top: 50%; width: 80%; }
.win { position: relative; z-index: 1; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 50px 90px -40px rgba(17, 24, 39, .5), 0 20px 34px -24px rgba(17, 24, 39, .3); transform: rotateY(-8deg) rotateX(2deg); transform-origin: left center; }
.win .sw-bar { background: var(--surface); }
.win img { display: block; width: 100%; height: auto; }
.wide-art .float.f1 { left: -5%; bottom: 10%; }
.wide-art .float.f2 { right: auto; left: 42%; top: 2%; }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }

/* The consumer apps' hero picture: the search for the optimum, drawn. A white card on the white page;
   the curve draws itself (0.2-1.6 s), a search probes it while two markers close in (1.6-4.2 s), then a dot lands
   on the lowest point with a pulse, sparks and an "Optimum" tag, and the status turns to "Optimum found". */
.opt { position: relative; width: 100%; max-width: 560px; margin-inline: auto; isolation: isolate; }
.opt::before { content: none; }
.opt-card { position: relative; border-radius: 28px; background: #fff; padding: clamp(18px, 2.2vw, 26px) clamp(16px, 2.2vw, 26px) clamp(14px, 1.8vw, 20px); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 34px 64px -34px rgba(17, 24, 39, .3), 0 12px 24px -18px rgba(17, 24, 39, .16); }
.opt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.opt-y { font-size: 14px; font-weight: 650; color: var(--ink-2); }
.opt-status { display: grid; }
.opt-status > span { grid-area: 1 / 1; justify-self: end; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; font-size: 13.5px; font-weight: 650; white-space: nowrap; }
.opt-status .s1 { background: var(--surface); color: var(--ink-2); animation: opt-out .25s ease 3.15s forwards; }
.opt-status .s2 { background: var(--good-bg); color: var(--good); opacity: 0; transform: scale(.85); animation: opt-pop .5s cubic-bezier(.34, 1.56, .64, 1) 3.25s forwards; }
.opt-status .s2 .ic { width: 15px; height: 15px; }
.spin { width: 11px; height: 11px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: opt-spin .8s linear infinite; }
.opt-plot { position: relative; margin: 12px 0 6px; }
.opt-plot svg { position: relative; display: block; width: 100%; height: auto; overflow: visible; }
.opt-x { display: flex; justify-content: flex-end; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 560; color: var(--ink-3); }
.opt-x .ic { width: 15px; height: 15px; }
.opt-grid { stroke: rgba(0, 0, 0, .06); stroke-width: 1; }
.opt-axis { stroke: rgba(0, 0, 0, .16); stroke-width: 1.5; }
.s-a { stop-color: var(--brand); }
.s-b { stop-color: var(--brand); }
.opt-glow { display: none; }
.opt-curve { fill: none; stroke-width: 4.5; stroke-linecap: round; }
/* The curve is drawn from the first paint; while the search runs, a soft highlight sweeps along it twice. */
.opt-sweep { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: .1 .9; stroke-dashoffset: .1; opacity: 0; animation: opt-sweep 1.3s ease-in-out .15s 2; }
@keyframes opt-sweep { 0% { stroke-dashoffset: .1; opacity: 0; } 12% { opacity: .85; } 88% { opacity: .85; } 100% { stroke-dashoffset: -1; opacity: 0; } }
.probe { fill: #fff; stroke: var(--brand-2); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.probe.p1 { animation: opt-probe .3s ease-out .6s forwards, opt-dim .5s ease 1.15s forwards; }
.probe.p2 { animation: opt-probe .3s ease-out .9s forwards, opt-dim .5s ease 1.45s forwards; }
.probe.p3 { animation: opt-probe .3s ease-out 1.25s forwards, opt-dim .5s ease 1.8s forwards; }
.probe.p4 { animation: opt-probe .3s ease-out 1.55s forwards, opt-dim .5s ease 2.1s forwards; }
.probe.p5 { animation: opt-probe .3s ease-out 1.9s forwards, opt-dim .5s ease 2.45s forwards; }
.probe.p6 { animation: opt-probe .3s ease-out 2.2s forwards, opt-dim .5s ease 2.75s forwards; }
.probe.p7 { animation: opt-probe .3s ease-out 2.55s forwards, opt-dim .5s ease 2.95s forwards; }
.br { stroke: var(--brand); stroke-width: 2; stroke-dasharray: 3 6; stroke-linecap: round; opacity: 0; }
.br-l { animation: opt-br-l 2.6s cubic-bezier(.45, 0, .2, 1) .5s forwards; }
.br-r { animation: opt-br-r 2.6s cubic-bezier(.45, 0, .2, 1) .5s forwards; }
.opt-drop { stroke: var(--brand); stroke-width: 2; stroke-dasharray: 3 6; stroke-linecap: round; opacity: 0; animation: opt-in .4s ease 3.15s forwards; }
.opt-ring { fill: none; stroke: var(--brand-2); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: opt-ring 2.8s ease-out 3.3s infinite; }
.opt-ring.r2 { animation-delay: 4.7s; }
.opt-dot { fill: var(--brand); stroke: #fff; stroke-width: 4; transform-box: fill-box; transform-origin: center; transform: scale(0); filter: drop-shadow(0 6px 10px rgba(17, 24, 39, .3)); animation: opt-dot .6s cubic-bezier(.34, 1.56, .64, 1) 2.95s forwards; }
.spark { fill: var(--brand-2); opacity: 0; transform-box: fill-box; transform-origin: center; animation: opt-spark .9s ease-out 3.05s forwards; }
.spark.k1 { --dx: 0px; --dy: -38px; }
.spark.k2 { --dx: 33px; --dy: -19px; }
.spark.k3 { --dx: 33px; --dy: 19px; }
.spark.k4 { --dx: 0px; --dy: 38px; }
.spark.k5 { --dx: -33px; --dy: 19px; }
.spark.k6 { --dx: -33px; --dy: -19px; }
.opt-tag { position: absolute; left: 42.62%; top: 74.25%; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 10px; border-radius: 12px; background: var(--navy, #0a2540); color: #fff; font-size: 14px; font-weight: 650; white-space: nowrap; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .45); opacity: 0; transform: translate(-50%, calc(-100% - 24px)) scale(.6); transform-origin: 50% 100%; animation: opt-tag .55s cubic-bezier(.34, 1.56, .64, 1) 3.2s forwards; }
.opt-tag::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 10px; height: 10px; background: var(--navy, #0a2540); border-radius: 2px; transform: translateX(-50%) rotate(45deg); }
.opt-tag .ic { width: 15px; height: 15px; color: #3fcf86; }
@keyframes opt-in { to { opacity: 1; } }
@keyframes opt-out { to { opacity: 0; transform: scale(.9); } }
@keyframes opt-pop { to { opacity: 1; transform: none; } }
@keyframes opt-spin { to { transform: rotate(360deg); } }
@keyframes opt-probe { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes opt-dim { from { opacity: 1; transform: scale(1); } to { opacity: .28; transform: scale(.7); } }
@keyframes opt-br-l { 0% { opacity: 0; transform: translateX(0); } 8% { opacity: .55; } 25% { transform: translateX(38px); } 50% { transform: translateX(144px); } 75% { transform: translateX(173px); } 90% { opacity: .55; transform: translateX(192px); } 100% { opacity: 0; transform: translateX(192px); } }
@keyframes opt-br-r { 0% { opacity: 0; transform: translateX(480px); } 8% { opacity: .55; } 25% { transform: translateX(413px); } 50% { transform: translateX(298px); } 75% { transform: translateX(240px); } 90% { opacity: .55; transform: translateX(211px); } 100% { opacity: 0; transform: translateX(211px); } }
@keyframes opt-dot { to { transform: scale(1); } }
@keyframes opt-ring { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(3.4); } }
@keyframes opt-spark { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.4); } }
@keyframes opt-tag { to { opacity: 1; transform: translate(-50%, calc(-100% - 24px)) scale(1); } }
/* The search waits until the card is on screen (site.js adds .play), so a phone sees it from the start. */
.js .opt:not(.play) .opt-card *, .js .opt:not(.play) .opt-card *::after, .js .opt:not(.play) .opt-plot::before { animation-play-state: paused; }
/* Less motion, and print: the finished picture, still. */
@media (prefers-reduced-motion: reduce) {
  .opt-card *, .opt-card *::after { animation: none !important; }
  .opt-sweep { display: none; }
  .opt-drop { opacity: 1; }
  .opt-plot::before { animation: none; opacity: 1; }
  .probe { opacity: .28; transform: scale(.7); }
  .opt-dot { transform: none; }
  .opt-status .s1 { display: none; }
  .opt-status .s2 { opacity: 1; transform: none; }
  .opt-tag { opacity: 1; transform: translate(-50%, calc(-100% - 24px)); }
}

/* Tablets and narrow windows: the words centred above the fan. */
@media (max-width: 1079px) {
  .hero-grid { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 48px); }
  .hero-copy { justify-items: center; text-align: center; max-width: 720px; margin-inline: auto; }
  .chips { justify-content: center; }
  .sub { margin-inline: auto; }
  .hero .actions { justify-content: center; }
  .fan { max-width: 640px; margin-inline: auto; }
  .win { transform: none; }
  .wide-art .fan { width: 100%; max-width: 760px; justify-self: center; }
}
/* Phones: a tighter, bolder stack; the chips scroll sideways in one line; the fan scales to the screen. */
@media (max-width: 640px) {
  .hero { padding-top: 18px; }
  .hero-grid { gap: 24px; }
  .chips { gap: 6px; }
  .chips span { font-size: 13px; padding: 5px 11px; }
  .hero h1 { font-size: clamp(35px, 10.4vw, 44px); line-height: 1.04; }
  .hero h1.h1-long { font-size: clamp(30px, 8.4vw, 36px); }
  .sub { font-size: 17.5px; }
  .fan { height: min(126vw, 520px); }
  .fan::after { height: 26%; }
  .ph-c { --w: min(55vw, 236px); }
  .ph-l, .ph-r { --w: min(45vw, 192px); top: 8%; }
  .ph-l { transform: translateX(calc(-50% - var(--w) * .64)) rotate(-8deg); }
  .ph-r { transform: translateX(calc(-50% + var(--w) * .64)) rotate(8deg); }
  .float { gap: 8px; padding: 6px 11px 6px 6px; border-radius: 13px; font-size: 12.5px; }
  .float .fi { width: 24px; height: 24px; border-radius: 8px; }
  .float .fi .ic { width: 14px; height: 14px; }
  .opt-card { border-radius: 22px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 22px 40px -26px rgba(17, 24, 39, .28); }
  .opt-y, .opt-x { font-size: 12.5px; }
  .opt-status > span { font-size: 12px; padding: 5px 10px; gap: 6px; }
  .opt-tag { font-size: 12.5px; padding: 5px 10px 5px 8px; border-radius: 10px; }
  .opt-tag .ic { width: 13px; height: 13px; }
  .float.f1 { left: -2%; bottom: 27%; }
  .float.f2 { right: -2%; top: 44%; }
  .wide-art .fan { padding: 18px 0 30px; }
  .wide-art .float.f1 { left: 0; bottom: 2%; }
  .wide-art .float.f2 { right: 0; top: 0; }
  .checks { border-top: 0; padding-top: 0; }
}

/* The showcase: phone screens rising from the bottom edge of the panel; a swipeable row on phones. */
.showcase { position: relative; margin-top: clamp(36px, 5vw, 64px); border-radius: var(--r-panel); background: var(--surface); overflow: hidden; }
.showcase::before { content: none; }
.sc-track { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: clamp(16px, 2.2vw, 30px); padding: clamp(32px, 4.4vw, 60px) clamp(20px, 3vw, 48px) 0; }
.sc-item { flex: 0 1 250px; min-width: 0; display: grid; gap: 14px; }
.sc-item figcaption { justify-self: center; padding: 6px 13px; border-radius: 99px; background: var(--bg); color: var(--ink-2); font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: 0 0 0 1px var(--line); }
.sc-phone { aspect-ratio: 600 / 1040; overflow: hidden; padding: 6px 6px 0; border-radius: 34px 34px 0 0; background: var(--bezel); box-shadow: var(--shadow-phone); }
.sc-item:nth-child(even) .sc-phone { aspect-ratio: 600 / 1160; }
.sc-phone img { width: 100%; height: auto; border-radius: 28px 28px 0 0; background: #fff; }
.sc-dots { display: none; }
.sc-note { margin-top: 14px; text-align: center; color: var(--ink-3); font-size: 14.5px; }
@media (max-width: 820px) {
  .sc-track { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 14px; padding: 26px calc(50% - min(34vw, 140px)) 0; }
  .sc-track::-webkit-scrollbar { display: none; }
  .sc-item { flex: 0 0 min(68vw, 280px); scroll-snap-align: center; }
  .sc-phone, .sc-item:nth-child(even) .sc-phone { aspect-ratio: 600 / 1080; }
  .sc-dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
  .sc-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--line-2); transition: width .3s var(--ease), background-color .3s; }
  .sc-dots i.on { width: 20px; background: var(--ink); }
  .sc-note { margin-top: 10px; }
  .checks { display: grid; justify-content: center; justify-items: start; gap: 10px; text-align: left; }
}

/* The workstation's showcase (StrataTax Pro): one wide screen in a window frame, buttons above to switch it. */
.showcase.wide { display: grid; justify-items: center; gap: clamp(16px, 2.4vw, 28px); padding: clamp(18px, 3vw, 40px) clamp(12px, 3.4vw, 56px) 0; }
.sw-tabs { position: relative; display: flex; gap: 4px; max-width: 100%; padding: 5px; border-radius: 99px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); overflow-x: auto; scrollbar-width: none; }
.sw-tabs::-webkit-scrollbar { display: none; }
.sw-tabs button { flex: none; min-height: 40px; padding: 0 16px; border-radius: 99px; font-size: 15px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: background-color .2s, color .2s; }
.sw-tabs button:hover { color: var(--ink); }
.sw-tabs button[aria-pressed="true"] { background: var(--pill); color: var(--pill-ink); }
.sw-window { position: relative; width: 100%; max-width: 1100px; border-radius: 16px 16px 0 0; overflow: hidden; background: var(--bezel); box-shadow: var(--shadow-phone); }
.sw-bar { display: flex; gap: 7px; align-items: center; height: 32px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.sw-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-2); }
.sw-view { aspect-ratio: 1600 / 900; overflow: hidden; background: #fff; }
.sw-view img { width: 100%; height: auto; transition: opacity .25s; }
.sw-view img.loading { opacity: .45; }
.sw-tabs .lbl-s { display: none; }
@media (max-width: 520px) { .sw-tabs .lbl-l { display: none; } .sw-tabs .lbl-s { display: inline; } .sw-tabs button { min-height: 38px; padding: 0 12px; font-size: 14px; } .sw-window { border-radius: 12px 12px 0 0; } .sw-bar { height: 24px; gap: 5px; padding: 0 10px; } .sw-bar i { width: 8px; height: 8px; } }

/* ---- The instant calculator, in its own grey panel. */
.try-in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.try-copy { display: grid; gap: 18px; align-content: center; }
.try-calc { min-width: 0; border-radius: var(--r-panel); background: var(--surface); padding: clamp(10px, 2.2vw, 30px); }
.try-calc .calc { box-shadow: var(--shadow-2), 0 0 0 1px var(--line); }
/* Wide screens: the words stay in view beside the tall calculator. */
@media (min-width: 961px) { .try-in { align-items: start; } .try-copy { position: sticky; top: calc(var(--nav-h) + 48px); padding-top: 24px; } .try-copy h2 { font-size: clamp(36px, 3.7vw, 54px); } }
@media (max-width: 960px) { .try-in { grid-template-columns: 1fr; } .try-copy { text-align: center; justify-items: center; max-width: 640px; margin-inline: auto; } }
/* On a phone the card itself is the panel: every pixel of width goes to the sliders and the chart. */
@media (max-width: 520px) { .try-calc { background: none; padding: 0; } }

/* 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; }
/* Before the first answer, the answer's parts hold their usual room, so the page below doesn't jump when it lands. */
.calc-out .lbl:empty, .calc-out .note:empty { min-height: 3.1em; }
.calc .mini:empty { min-height: 330px; }
.calc .scen:empty { min-height: 140px; }
/* 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; }
.calc .chart .floor-lbl { fill: var(--good); font-size: 12px; font-weight: 650; }
/* Each label on a white pill (the answer panel is grey), so the stepped line never runs through the words. */
.calc .chart .lbl-pill { fill: var(--bg); stroke-width: 1; }
.calc .chart .lbl-pill.wall { stroke: rgba(208, 59, 59, .28); }
.calc .chart .lbl-pill.floor { stroke: rgba(10, 122, 63, .3); }
.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; }

/* ---- Statement heading and soft grey tiles */
.statement { max-width: 17em; margin-bottom: clamp(30px, 4vw, 52px); font-size: clamp(34px, 5vw, 66px); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { border-radius: 30px; background: var(--surface); padding: clamp(26px, 2.8vw, 36px); display: grid; gap: 12px; align-content: start; }
.tile p, .fcard p { color: var(--ink-2); font-size: 17px; line-height: 1.55; }
.tile .ic-tile { margin-bottom: 8px; }
.ic-tile { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--brand, #1d4ed8); background: #fff; box-shadow: 0 0 0 1px var(--line), 0 2px 6px -2px rgba(10, 37, 64, .12); }
.ic-tile .ic { width: 26px; height: 26px; }
.ic-tile.sm { width: 46px; height: 46px; border-radius: 14px; }
.ic-tile.sm .ic { width: 22px; height: 22px; }
.example { margin-top: 16px; padding: 22px 26px; border-radius: 24px; background: var(--surface); color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.example .hypo { margin-right: 8px; }
@media (max-width: 960px) { .tiles { grid-template-columns: 1fr; gap: 12px; } }

/* ---- Feature cards: three with a real screen, then the rest as plain tiles. */
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fgrid + .fgrid { margin-top: 16px; }
.fcard { border-radius: 30px; background: var(--surface); padding: clamp(24px, 2.6vw, 32px); display: grid; gap: 10px; align-content: start; }
.fcard h3 { font-size: 20.5px; }
.fc-copy { display: grid; gap: 10px; align-content: start; }
.fc-copy .ic-tile { margin-bottom: 6px; }
.fcard.has-shot { padding-bottom: 0; overflow: hidden; grid-template-rows: auto 1fr; gap: 24px; }
.fc-shot { display: flex; justify-content: center; align-items: flex-start; height: clamp(300px, 27vw, 360px); overflow: hidden; }
.fc-shot img { width: min(100%, 268px); height: auto; padding: 6px 6px 0; border-radius: 32px 32px 0 0; background: var(--bezel); box-shadow: var(--shadow-phone); transition: transform .6s var(--ease); }
.fcard.has-shot:hover .fc-shot img { transform: translateY(-6px); }
/* A workstation screen in a card: its top-left corner, running off the card's right and bottom edges. */
.fc-shot.wide { justify-content: flex-start; height: clamp(230px, 21vw, 280px); margin-right: calc(-1 * clamp(24px, 2.6vw, 32px)); }
.fc-shot.wide img { width: 175%; max-width: none; padding: 5px 0 0 5px; border-radius: 14px 0 0 0; }
.fcard.has-shot:hover .fc-shot.wide img { transform: translate(-6px, -6px); }
@media (max-width: 960px) { .fgrid { grid-template-columns: 1fr; gap: 12px; } .fgrid + .fgrid { margin-top: 12px; } .fc-shot { height: 330px; } }
@media (min-width: 600px) and (max-width: 960px) { .fgrid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Deliverables and privacy, side by side */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.panel { border-radius: var(--r-panel); background: var(--surface); padding: clamp(28px, 3.6vw, 52px); display: grid; gap: 18px; align-content: start; }
.panel h2 { font-size: clamp(30px, 3.3vw, 44px); }
.panel > p { color: var(--ink-2); }
.panel.dark { background: var(--navy, #0a2540); color: #f4f4f5; }
.panel.dark .eyebrow { color: #a1a1a8; }
.panel.dark h2 .dim { color: #8b8b93; }
.panel.dark > p { color: #c2c2c8; }
.panel.dark .ticks li { color: #c2c2c8; }
.panel.dark .ticks .ic { color: #8fb0f8; }
.panel.dark code { font-family: "Geist Mono", ui-monospace, monospace; font-size: 14.5px; color: #7ee2b8; background: rgba(255, 255, 255, .07); padding: 2px 7px; border-radius: 6px; }
:root[data-theme="dark"] .panel.dark { background: #131315; box-shadow: inset 0 0 0 1px var(--line-2); }
.gap-rows { display: grid; }
.gap-rows .row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 17px; }
.gap-rows .row b { color: #3fcf86; font-weight: 680; }
.ticks { display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: var(--ink-2); }
.ticks .ic { color: var(--brand, #1d4ed8); margin-top: 3px; }
@media (max-width: 960px) { .duo { grid-template-columns: 1fr; gap: 12px; } }

/* Cards (the download page and the review index) */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@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 .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); }

/* ---- Pricing */
.anchors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.anchor { padding: 22px 24px; border-radius: 24px; background: var(--surface); display: grid; gap: 4px; align-content: start; }
.anchor b { font-size: clamp(26px, 2.6vw, 32px); letter-spacing: -.035em; line-height: 1.15; }
.anchor.us { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--brand, #1d4ed8); }
.anchor.us span { color: var(--ink-2); }
.anchor span { color: var(--ink-2); font-size: 16px; }
.anchor s { color: var(--ink-faint); }
/* Stacked on a phone, the app's own price shows once: on the plan card right below. */
@media (max-width: 860px) { .anchors { grid-template-columns: 1fr; } .anchor.us { display: none; } }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plans.one { grid-template-columns: minmax(0, 580px); justify-content: center; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } .plans.one { grid-template-columns: minmax(0, 1fr); } }
.plan { border-radius: var(--r-panel); padding: clamp(26px, 3vw, 40px); background: var(--surface); display: grid; gap: 16px; align-content: start; }
.plan.feature { background: var(--navy, #0a2540); color: #f4f4f5; box-shadow: var(--shadow-3); }
:root[data-theme="dark"] .plan.feature { background: #18181b; box-shadow: 0 0 0 1px var(--line-2); }
.plan .name { font-weight: 650; font-size: 19px; }
.plan .price { font-size: clamp(48px, 5vw, 60px); font-weight: 720; letter-spacing: -.05em; 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: #8fb0f8; }
.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: var(--navy, #0a2540); }
/* The calm second choice under a purchase button: email yourself the link, figures stay on the device. */
.later { display: grid; gap: 4px; justify-items: center; text-align: center; margin-top: 2px; }
.later-link { font-size: 15.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(127, 127, 127, .5); }
.later-link:hover { text-decoration-color: currentColor; }
.later-note { font-size: 13.5px; opacity: .72; max-width: 34em; }
.later-done { font-size: 13.5px; font-weight: 600; color: #3fcf86; }
.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: 22px; background: var(--surface); padding: 4px 24px; transition: background-color .2s; }
.faq details:hover { background: var(--surface-2); }
.faq details[open] { background: var(--surface); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; min-height: 66px; font-weight: 630; font-size: 18.5px; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bg); font-size: 22px; font-weight: 400; color: var(--ink-2); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); }

/* ---- Final band and footer */
.final { margin: 0 var(--gutter) clamp(40px, 5vw, 64px); border-radius: var(--r-panel); background: var(--navy, #0a2540); color: #f4f4f5; padding: clamp(60px, 8vw, 116px) var(--gutter); text-align: center; display: grid; gap: 22px; justify-items: center; position: relative; overflow: hidden; isolation: isolate; }
.final::before { content: none; }
:root[data-theme="dark"] .final { background: #121214; box-shadow: inset 0 0 0 1px var(--line); }
.final h2 { color: #fff; max-width: 16em; }
.final p { color: #c9c9ce; max-width: 640px; font-size: 19px; }
.final .actions { justify-content: center; }
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 > :first-child { grid-column: 1 / -1; } }
.foot .brand { margin-bottom: 10px; }
.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); }
.foot a.brand { display: inline-flex; }
.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; }
.prose .lede { color: var(--ink-2); font-size: 19px; }
/* Download and buy: a centred header over cards, as on the landing page. */
.prose.wide { max-width: 1100px; gap: 0; }
.page-hero { display: grid; justify-items: center; gap: 16px; text-align: center; margin: clamp(4px, 2vw, 24px) 0 clamp(28px, 4vw, 48px); }
.prose .page-hero h1 { font-size: clamp(36px, calc(23.6px + 4.2vw), 68px); }
.page-hero .lede { max-width: 620px; text-wrap: balance; }
.dl-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dl-card { border-radius: 30px; background: var(--surface); padding: clamp(24px, 2.6vw, 34px); display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 12px; align-content: start; }
.dl-card .ic-tile { margin-bottom: 8px; }
.prose .dl-card h2 { margin: 0; font-size: 24px; }
.dl-card p { font-size: 17px; }
.dl-card b { overflow-wrap: anywhere; }
.dl-card .btn { margin-top: 8px; width: 100%; max-width: 100%; min-width: 0; white-space: normal; text-align: center; line-height: 1.25; padding: 12px 20px; }
.dl-card > * { min-width: 0; }
.dl-card .btn .ic { width: 20px; height: 20px; }
.dl-card .btn:hover .ic { transform: none; }
.prose .dl-card .note { font-size: 14.5px; color: var(--ink-3); }
/* The browser install leads the page: one wide card, the action at its right (stacked on a phone). */
.dl-card.feature { order: -2; grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: none; align-items: center; column-gap: 24px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--brand, #1d4ed8); }
.dl-card.feature .ic-tile { margin: 0; }
.dl-card.feature .dl-copy { display: grid; gap: 8px; }
.dl-card.feature .btn { margin: 0; width: auto; white-space: nowrap; }
/* Three across only when each card has room; two across in between (the last card takes the full row). */
@media (max-width: 1099px) { .dl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dl-cards #ipad { grid-column: 1 / -1; } }
@media (max-width: 900px) { .dl-cards { grid-template-columns: 1fr; gap: 12px; } .dl-cards #ipad { grid-column: auto; } .dl-card.feature { grid-template-columns: 1fr; row-gap: 12px; } .dl-card.feature .btn { justify-self: start; width: auto; } }
@media (hover: none) and (pointer: coarse) { .dl-cards #ipad { order: -1; } }
.prose .plan ul { list-style: none; padding-left: 0; }
.prose .plan.feature p, .prose .plan.feature li { color: #e4e4e7; }
.plan-soon { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); font-size: 15.5px; color: #d4d4d8; }
.plan-note { font-size: 14px; text-align: center; opacity: .78; margin-top: -4px; }
/* The money-back guarantee (pricing box, /buy/), the support line, the free-vs-paid line under the hero buttons. */
.guarantee { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 13px 15px; border-radius: 16px; background: rgba(63, 207, 134, .12); box-shadow: inset 0 0 0 1px rgba(63, 207, 134, .38); font-size: 15px; line-height: 1.5; text-align: left; }
.guarantee .ic { width: 20px; height: 20px; margin-top: 2px; color: #3fcf86; }
.guarantee p { margin: 0; color: #dcefe5; }
/* IRAKeeper's hero: a receipt in two numbered rows (words left, bars right) and the proof banner. */
.pc-card { display: grid; gap: 14px; }
.pc-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--brand, #1d4ed8); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pc-rows { display: grid; gap: 12px; }
.pc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px; align-items: end; }
.pc-row + .pc-row { padding-top: 12px; border-top: 1px dashed var(--line-2); }
.pc-txt { display: grid; gap: 3px; min-width: 0; }
.pc-txt > b { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.pc-n { color: var(--ink-3); font-weight: 650; }
.pc-stat { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pc-stat b { color: var(--ink); font-weight: 720; }
.pc-note { font-size: 13px; font-weight: 650; line-height: 1.35; }
.pc-note.hot { color: #c81e1e; }
.pc-note.calm { color: var(--good, #0a7a3f); }
.pc-bars { display: block; width: 100%; height: auto; overflow: visible; }
.pc-m { fill: #c9d2de; }
.pc-m.spike { fill: #c81e1e; }
.pc-s { fill: var(--brand, #1d4ed8); }
.pc-m, .pc-s { transform-box: fill-box; transform-origin: 50% 100%; animation: yb-rise .9s var(--ease) both; }
.pc-yr { font-size: 10.5px; fill: var(--ink-3); }
.pc-spike-t { font-size: 12.5px; font-weight: 750; fill: #c81e1e; }
.pc-proof { display: grid; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--good-bg, #e7f5ec); }
.pc-k { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--good, #0a7a3f); }
.pc-big { font-size: clamp(18px, 1.45vw, 20.5px); font-weight: 720; letter-spacing: -.02em; color: var(--ink); line-height: 1.2; margin-top: 2px; }
.pc-sub { font-size: 13.5px; color: var(--ink-2); }
.pc-ver { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-top: 10px; border-top: 1px solid rgba(10, 122, 63, .16); }
.pc-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; background: #fff; color: var(--good, #0a7a3f); font-size: 13px; font-weight: 700; box-shadow: 0 0 0 1px rgba(10, 122, 63, .18); white-space: nowrap; }
.pc-badge .ic { width: 14px; height: 14px; }
.pc-lines { font-size: 12px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.pc-link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 650; color: var(--brand, #1d4ed8); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.pc-link .ic { width: 15px; height: 15px; }
@media (max-width: 560px) {
  .pc-row { grid-template-columns: 1fr; gap: 6px; }
  .pc-yr { font-size: 12px; }
  .pc-spike-t { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .pc-m, .pc-s { animation: none; } }
.guarantee b { color: #fff; }
.guarantee a { color: #fff; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.buy-support { margin-top: 18px; text-align: center; color: var(--ink-2); font-size: 16px; }
.buy-support a, .prose a[href^="mailto:"] { color: var(--brand, #1d4ed8); text-decoration: underline; text-underline-offset: 3px; }
.foot-note { display: block; font-size: 14px; margin-top: 4px; }
.free-line { max-width: 34em; font-size: 15px; line-height: 1.5; color: var(--ink-3); }
.micro { font-size: 14.5px; color: var(--ink-3); letter-spacing: .005em; }
.tech-line { margin-top: 14px; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .55); font-family: "Geist Mono", ui-monospace, monospace; }
/* IRAKeeper's hero: two bars, what the family keeps, and the forms behind it. */
.tb-card { display: grid; gap: 16px; padding: clamp(22px, 2.6vw, 30px); }
.tb-head { font-size: 13px; font-weight: 650; letter-spacing: .02em; color: var(--ink-3); text-wrap: balance; }
.tb-rows { display: grid; gap: 18px; }
.tb-row { display: grid; gap: 8px; }
.tb-l { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; color: var(--ink-2); font-weight: 560; }
.tb-l b { font-size: 19px; font-weight: 740; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tb-svg { display: block; width: 100%; height: auto; }
.tb-m { fill: var(--c-min, #b9bfcb); }
.tb-tip { fill: #c81e1e; }
.tb-s { fill: var(--brand, #1d4ed8); }
.tb-m, .tb-tip, .tb-s { transform-box: view-box; transform-origin: 0 50%; animation: tb-grow .9s var(--ease) both; }
.tb-s { animation-delay: .15s; }
@keyframes tb-grow { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .tb-m, .tb-tip, .tb-s { animation: none; } }
.tb-kept { padding-top: 16px; border-top: 1px solid var(--line); font-size: clamp(22px, 2.2vw, 27px); font-weight: 740; letter-spacing: -.03em; color: var(--brand, #1d4ed8); line-height: 1.15; }
.tb-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--ink-2); }
.tb-sep { color: var(--ink-faint); }
.tb-ok { display: inline-flex; align-items: center; gap: 5px; font-weight: 650; color: var(--good, #0a7a3f); }
.tb-ok .ic { width: 15px; height: 15px; }
.tb-link { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-weight: 650; color: var(--brand, #1d4ed8); text-decoration: underline; text-underline-offset: 3px; }
.tb-link .ic { width: 15px; height: 15px; }
.sample-pdf { margin-top: 18px; gap: 10px; max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; }
.sample-pdf .ic { width: 20px; height: 20px; }
.sample-pdf + .small { margin-top: 8px; font-size: 14px; }
/* IRAKeeper's hero: the sample's ten years as paired bars. */
.yb-card { padding-bottom: clamp(14px, 1.8vw, 20px); }
.yb-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; background: var(--good-bg); color: var(--good); font-size: 13.5px; font-weight: 650; white-space: nowrap; }
.yb-pill .ic { width: 15px; height: 15px; }
.yb-legend, .mb-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13.5px; font-weight: 560; color: var(--ink-2); }
.yb-legend i, .mb-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; background: var(--brand, #1d4ed8); }
.yb-legend i.k-min, .mb-legend i.k-min { background: var(--c-min, #b9bfcb); }
.yb-plot { display: block; width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.yb-m { fill: var(--c-min, #b9bfcb); }
.yb-m.last { fill: #9aa6b8; }
.yb-s { fill: var(--brand, #1d4ed8); }
.yb-m, .yb-s { transform-box: fill-box; transform-origin: 50% 100%; animation: yb-rise .9s var(--ease) both; }
.yb-yr { font-size: 12.5px; fill: var(--ink-3); }
.yb-bal { font-size: 13px; font-weight: 700; fill: var(--ink); }
@keyframes yb-rise { from { transform: scaleY(0); } }
/* On a phone the chart is drawn smaller: its words get bigger to stay readable. */
@media (max-width: 560px) { .yb-yr { font-size: 19px; } .yb-bal { font-size: 21px; } }
@media (prefers-reduced-motion: reduce) { .yb-m, .yb-s { animation: none; } }
.yb-foot { display: grid; gap: 4px; margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.yb-foot b { color: var(--ink); font-weight: 650; }
/* The calculator's bars: a legend, the balloon's figure, a tap shows a year's numbers, a line on why they move. */
.calc .cf-help { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.calc .mb-legend { margin: 4px 0 2px; }
.calc .mini-bars .mb { appearance: none; border: 0; background: none; padding: 2px 0; font: inherit; cursor: pointer; border-radius: 8px; }
.calc .mini-bars .mb:hover, .calc .mini-bars .mb[aria-pressed="true"] { background: var(--surface-2); }
.calc .mini-bars .mb i.min { position: relative; }
.calc .mb-val { position: absolute; left: 50%; bottom: calc(100% + 3px); transform: translateX(-50%); font-size: 12px; font-weight: 700; color: #c81e1e; white-space: nowrap; font-style: normal; }
.calc .mb-read { min-height: 1.4em; margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc .mb-note { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
/* The buy page after Stripe: the key, how to keep it and how to use it. */
.buy-note { padding: 12px 16px; border-radius: 14px; background: var(--surface); color: var(--ink); font-size: 16px; font-weight: 560; }
.is-paid .buy-hero, .is-paid .buy-plan { display: none; }
.paid { margin: clamp(8px, 2vw, 24px) auto clamp(28px, 4vw, 48px); max-width: 760px; }
.paid-card { display: grid; gap: 22px; padding: clamp(24px, 3.4vw, 40px); border-radius: var(--r-panel); background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 24px 48px -28px rgba(10, 37, 64, .28); }
.paid-card h1 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.035em; }
.paid-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
.paid-ok { width: 44px; height: 44px; border-radius: 50%; background: var(--brand, #1d4ed8); position: relative; flex: none; margin-top: 2px; }
.paid-ok::after { content: ""; position: absolute; left: 15px; top: 10px; width: 10px; height: 18px; border: solid #fff; border-width: 0 3.5px 3.5px 0; transform: rotate(45deg); }
.paid-wait { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink-2); }
.paid-wait p { margin: 0; }
.key-block { display: grid; gap: 12px; padding: 18px; border-radius: 18px; background: var(--surface); }
.key-label { font-size: 14px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--brand, #1d4ed8); }
.key { display: block; padding: 14px 16px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-family: "Geist Mono", ui-monospace, monospace; font-size: 15px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; word-break: break-all; user-select: all; }
.key-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.key-note { font-size: 14.5px; color: var(--ink-3); }
.key-steps { list-style: none; padding: 0; display: grid; gap: 10px; counter-reset: ks; }
.key-steps li { position: relative; padding-left: 38px; color: var(--ink-2); }
.key-steps li::before { counter-increment: ks; content: counter(ks); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--pill-2); color: var(--ink); font-size: 14px; font-weight: 650; }
.key-steps b { color: var(--ink); }
.plan-soon b { color: #fff; }

/* ---- Phones: a bar with the two main buttons once the hero's own have scrolled away. */
.mbar { display: none; }
@media (max-width: 820px) {
  .mbar { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 8px; padding: 7px; border-radius: 99px; background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); box-shadow: 0 0 0 1px var(--line), 0 14px 34px -12px rgba(0, 0, 0, .3); transform: translateY(calc(100% + 28px)); opacity: 0; pointer-events: none; transition: transform .45s var(--ease), opacity .3s; }
  .mbar.on { transform: none; opacity: 1; pointer-events: auto; }
  .mbar .btn { flex: 1 1 0; min-width: 0; min-height: 50px; padding: 0 14px; font-size: 16.5px; }
  .hero .actions { width: 100%; max-width: 440px; }
  .hero .actions .btn { flex: 1 1 auto; padding: 0 20px; font-size: 17px; }
}
@media (max-width: 820px) and (prefers-reduced-motion: reduce) { .mbar { transition: none; } }

/* 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' pages: hypothetical labels, single plan, download grid.
   ========================================================================================================= */
:root { --brand: #1f78c8; --brand-2: #2bb3c0; --brand-3: #5b3df5; --c-min: #b9bfcb; }
:root[data-theme="dark"] { --c-min: #5a606c; }
.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; }
/* 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: var(--surface-2); font-weight: 650; }
.scen-r b { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .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; }

/* 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, .calc .chart .floor-lbl { paint-order: stroke; stroke: var(--bg); 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; } [id] { scroll-margin-top: 12px; } .mbar { display: none; } }
/* 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); }
/* Printing: everything shown, no header, menu or phone bar. */
@media print {
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .nav, .m-menu, .mbar, .sc-dots { display: none !important; }
  .sc-track { overflow: visible; flex-wrap: wrap; justify-content: center; }
  .h1-b { background: none; color: #000; }
  .float { display: none; }
  .opt-card *, .opt-card *::after { animation: none !important; }
  .opt-sweep { display: none; }
  .opt-drop, .opt-tag, .opt-status .s2 { opacity: 1; }
  .opt-dot { transform: none; }
  .opt-status .s1 { display: none; }
}
/* Windows High Contrast: buttons, panels 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, .showcase, .tile, .fcard, .panel, .anchor, .plan, .faq details, .final, .try-calc, .chips span, .mbar, .m-menu, .dl-card, .sw-window { border: 1px solid CanvasText; }
  .m-menu button, .sw-tabs button, .menu-btn, .theme-btn { border: 1px solid ButtonBorder; }
  .sw-tabs button[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .sc-dots i.on { background: Highlight; }
  .h1-b { background: none; color: CanvasText; }
  .ph, .win, .float { border: 1px solid CanvasText; }
  .opt-card { border: 1px solid CanvasText; }
  .opt-plot svg { forced-color-adjust: none; }
  .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, the phone bar and highlights. */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .nav.scrolled, .mbar { background: var(--bg); }
  .showcase::before { display: none; }
  .hero::before, .fan::before, .opt::before { display: none; }
  .chips span:first-child::before { box-shadow: none; }
  .scen-r.best { background: var(--surface); }
}
