:root {
  --paper: #EEF1F4;
  --panel: #FFFFFF;
  --subtle: #F4F6F9;
  --ink: #0A2038;
  --muted: #4E5D6C;
  --rule: #CBD3DB;
  --hair: #E1E6EB;
  --low: #0A5EA6;
  --low-soft: rgba(10, 94, 166, 0.12);
  --blue-light: #17A6F5;
  --blue-light-soft: rgba(23, 166, 245, 0.12);
  --high: #C8332E;
  --high-soft: rgba(200, 51, 46, 0.12);
  --tape: #F2C230;
  --tape-ink: #0A2038;
  --band: #0A2038;
  --band-ink: #EEF1F4;
  --band-muted: #A9B6C3;
  --lift: 0 1px 2px rgba(21, 32, 43, 0.06), 0 12px 32px -12px rgba(21, 32, 43, 0.18);
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10161D;
    --panel: #18212B;
    --subtle: #141C25;
    --ink: #E6ECF2;
    --muted: #9AA8B6;
    --rule: #2C3946;
    --hair: #24303C;
    --low: #4FA8F0;
    --low-soft: rgba(79, 168, 240, 0.16);
    --blue-light: #5BC2FA;
    --blue-light-soft: rgba(91, 194, 250, 0.16);
    --high: #F0625C;
    --high-soft: rgba(240, 98, 92, 0.16);
    --band: #0D1B2A;
    --band-ink: #E6ECF2;
    --band-muted: #9AA8B6;
    --lift: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Surface tiers, shared by every page: white canvas, a very light cool gray
   used only to separate a section from its neighbours, navy for authority. */
body {
  margin: 0; background: var(--panel); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
.tone-subtle { background: var(--subtle); }
.wrap { max-width: 1248px; margin: 0 auto; padding: 0 clamp(1.25rem, 3vw, 2rem); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.9rem, 5.6vw, 4.6rem); line-height: 0.96; }
h2 { font-size: clamp(2.1rem, 3.6vw, 2.9rem); line-height: 1; }
h3 { font-size: 1.45rem; line-height: 1.1; }
p { margin: 0 0 1rem; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--low); outline-offset: 3px; border-radius: 6px; }

/* Buy button: the price is part of the button */
.buy {
  display: inline-flex; align-items: stretch; text-decoration: none; cursor: pointer;
  background: var(--tape); color: var(--tape-ink); border-radius: 8px; overflow: hidden;
  font: 700 1.3rem/1 var(--display); letter-spacing: 0.005em;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16), 0 1px 2px rgba(21, 32, 43, 0.12);
  transition: filter 150ms ease, transform 150ms ease;
}
.buy > span { display: flex; align-items: center; padding: 1.05rem 1.35rem; }
.buy .buy-price { border-left: 1px solid rgba(21, 32, 43, 0.22); font-size: 1.45rem; }
.buy:hover { filter: brightness(1.06); }
.buy:active { transform: translateY(1px); }

/* Top bar */
/* One header geometry for every page, so the logo never shifts between pages */
.topbar { border-bottom: 1px solid var(--hair); background: var(--panel); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }
@media (max-width: 599px) { .topbar-in { min-height: 68px; gap: 1rem; } }
.mark { font: 700 1.2rem/1.1 var(--display); display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); flex: none; }
/* logo.png is trimmed to its visible artwork (~3.93:1), so height maps directly to legible size */
.mark img { height: 48px; width: auto; display: block; }
@media (max-width: 1023px) { .mark img { height: 42px; } }
@media (max-width: 599px) { .mark img { height: 36px; } }
.mark .mark-sub { font: 500 0.9rem/1 var(--body); color: var(--muted); margin-left: 0.35rem; }
.topbar-buy { font: 600 0.95rem/1 var(--body); text-decoration: none; padding: 0.6rem 0.9rem; border: 1px solid var(--rule); border-radius: 8px; white-space: nowrap; }
.topbar-buy:hover { border-color: var(--ink); }
@media (max-width: 600px) { .mark .mark-sub { display: none; } }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4.5rem; } }
.hero h1 { max-width: 13.5ch; }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--muted); margin: 1.4rem 0 2rem; max-width: 34ch; }
.cta-note { font-size: 0.95rem; color: var(--muted); margin: 1rem 0 0; max-width: 40ch; }
.cta-note span { color: var(--ink); font-weight: 600; }

/* Hero side panel (chart on cash flow page, stats on onboarding page) */
.gauge { margin: 0; background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--lift); overflow: hidden; }
.gauge-head { padding: 1.35rem 1.4rem 1.1rem; display: grid; gap: 1rem; }
.gauge-title { font: 700 1.35rem/1.1 var(--display); display: block; }
.gauge-sub { font-size: 0.9rem; color: var(--muted); margin: 0.3rem 0 0; }
.chart-wrap { padding: 1.1rem 1.4rem 0.4rem; }
.gauge-foot { font-size: 0.82rem; color: var(--muted); margin: 0; padding: 0.8rem 1.4rem 1.1rem; border-top: 1px solid var(--hair); }

/* Statement band */
.statement { background: var(--band); color: var(--band-ink); padding: clamp(4rem, 9vw, 7.5rem) 0; }
.statement-grid { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 980px) { .statement-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 4rem; } }
.statement h2 { font-size: clamp(3.4rem, 9.5vw, 8rem); line-height: 0.88; letter-spacing: -0.015em; }
.statement h2 span { display: block; }
.statement h2 .s2 { color: var(--high); margin-top: 0.12em; }
@media (prefers-color-scheme: light) { .statement h2 .s2 { color: #E8554F; } }
.statement-copy p { color: var(--band-muted); max-width: 42ch; }
.statement-copy .pivot { color: var(--band-ink); font-size: 1.2rem; line-height: 1.45; font-weight: 600; margin: 1.6rem 0 0; padding-top: 1.4rem; border-top: 1px solid rgba(238, 241, 244, 0.18); }

/* Covers */
.covers-sec { background: var(--panel); padding: clamp(4rem, 8vw, 6.5rem) 0; }
.covers-grid { display: grid; gap: 2.5rem; }
@media (min-width: 980px) { .covers-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 4.5rem; } .covers-intro { position: sticky; top: 2rem; align-self: start; } }
.covers-intro p { color: var(--muted); margin-top: 1rem; max-width: 34ch; }
.covers { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.covers li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 0 1rem; padding: 1.6rem 0; border-bottom: 1px solid var(--rule); }
.covers .num { font: 700 1.45rem/1.1 var(--display); color: var(--low); font-variant-numeric: tabular-nums; }
.covers p { grid-column: 2; margin: 0.45rem 0 0; color: var(--muted); max-width: 52ch; }
@media (min-width: 760px) { .covers li { grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.25fr); gap: 0 1.5rem; padding: 1.8rem 0; } .covers p { grid-column: 3; margin: 0.1rem 0 0; } }

/* Fit */
.fit-sec { background: var(--subtle); padding: clamp(4rem, 8vw, 6.5rem) 0; }
.fit-grid { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .fit-grid { grid-template-columns: 1.15fr 1fr; gap: 1.5rem; } }
.fit { border-radius: 14px; padding: 2rem; }
.fit h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); margin-bottom: 1.25rem; }
.fit ul { list-style: none; margin: 0; padding: 0; }
.fit li { position: relative; padding: 0.85rem 0 0.85rem 2.4rem; border-top: 1px solid var(--hair); }
.fit li::before { position: absolute; left: 0; top: 0.78rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font: 700 0.9rem/1 var(--body); }
.fit-yes { background: var(--panel); border: 1px solid var(--rule); box-shadow: inset 0 4px 0 var(--low), var(--lift); }
.fit-yes li::before { content: "\2713"; background: var(--low); color: #fff; }
.fit-no { border: 1px solid var(--rule); }
.fit-no h2 { color: var(--muted); }
.fit-no li { color: var(--muted); }
.fit-no li::before { content: "\2715"; background: var(--high-soft); color: var(--high); }

/* FAQ */
.faq-sec { background: var(--panel); padding: clamp(4rem, 8vw, 6.5rem) 0; }
.faq-grid { display: grid; gap: 2rem; }
@media (min-width: 980px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 4.5rem; } }
.faq-list { border-top: 2px solid var(--ink); }
details { border-bottom: 1px solid var(--rule); }
summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.35rem 0; font: 600 1.15rem/1.35 var(--body); transition: color 150ms ease;
}
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--low); }
summary::after {
  content: "+"; flex: none; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--rule);
  display: grid; place-items: center; font: 500 1.3rem/1 var(--body); color: var(--muted);
  transition: transform 200ms ease, background 200ms ease, color 200ms ease;
}
details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: var(--panel); border-color: var(--ink); }
details p { margin: -0.4rem 0 1.4rem; color: var(--muted); max-width: 60ch; }

/* Closer */
.closer { background: var(--band); color: var(--band-ink); padding: clamp(4rem, 8vw, 6.5rem) 0; }
.closer-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 980px) { .closer-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 4.5rem; } }
.closer h2 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); line-height: 0.95; max-width: 12ch; }
.closer-copy p { color: var(--band-muted); margin-top: 1.25rem; max-width: 44ch; font-size: 1.1rem; }
.card { background: var(--panel); color: var(--ink); border-radius: 14px; padding: 1.75rem; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.45); }
.card-name { font: 700 1.35rem/1.15 var(--display); margin: 0; }
.card-price { font: 700 3rem/1 var(--display); margin: 0.9rem 0 0.2rem; font-variant-numeric: tabular-nums; }
.card-format { font-size: 0.9rem; color: var(--muted); margin: 0; }
.card-list-title { font-size: 0.85rem; font-weight: 600; margin: 1.4rem 0 0.4rem; padding-top: 1.2rem; border-top: 1px solid var(--hair); }
.card ul { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.card li { position: relative; padding: 0.35rem 0 0.35rem 1.6rem; font-size: 0.98rem; }
.card li::before { content: "\2713"; position: absolute; left: 0; top: 0.35rem; color: var(--low); font-weight: 700; }
.card .buy { width: 100%; }
.card .buy > span:first-child { flex: 1; justify-content: center; }
.card-next { font-size: 0.88rem; color: var(--muted); margin: 0.9rem 0 0; }
.card-rating { font-size: 0.85rem; color: var(--muted); margin: 0.4rem 0 0; }

/* Sticky mobile bar */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: var(--panel); border-top: 1px solid var(--rule);
  box-shadow: 0 -8px 24px -12px rgba(21, 32, 43, 0.25);
  transform: translateY(110%); transition: transform 250ms ease;
}
.sticky.show { transform: translateY(0); }
.sticky-info { min-width: 0; }
.sticky-name { display: block; font-size: 0.8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-price { font: 700 1.5rem/1.05 var(--display); }
.sticky .buy > span { padding: 0.8rem 1.1rem; font-size: 1.15rem; }
@media (min-width: 980px) { .sticky { display: none; } }
/* The fixed buy bar overlays the bottom of the viewport, so whatever is last on
   the page (the footer) reserves room for it. */
@media (max-width: 979px) { body:has(.sticky) .site-footer { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px)); } }

/* Footer, shared by every page */
.site-footer { border-top: 1px solid var(--hair); padding: 3.5rem 0 2.25rem; }
.site-footer-top { display: grid; gap: 2.5rem; padding-bottom: 2.25rem; border-bottom: 1px solid var(--hair); }
@media (min-width: 760px) { .site-footer-top { grid-template-columns: minmax(0, 6fr) repeat(2, minmax(0, 3fr)); } }
.site-footer-brand img { height: 38px; width: auto; display: block; margin-bottom: 1rem; }
.site-footer-brand p { color: var(--muted); max-width: 36ch; font-size: 0.95rem; margin: 0; }
.site-footer-col h2 { font: 600 0.82rem/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.site-footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.site-footer-col a { color: var(--ink); text-decoration: none; font-size: 0.98rem; }
.site-footer-col a:hover { color: var(--low); }
.site-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; font-size: 0.88rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
