/* TOVELU — Material 3 theme for the two program pages (4 August 2026).
 *
 * collab.html (Affiliate) and apply.html (Affiliate Manager) are the last two
 * marketing surfaces someone reads before they represent TOVELU, and until now
 * they wore the old sales-page styling while the app, the funnel and both
 * application forms had already moved to Material 3. An applicant who scrolls
 * a green-and-ink marketing page and then lands on an M3 form is looking at two
 * different companies at the moment we are asking them to trust one.
 *
 * Same standalone-copy rule as apply-m3.css: the marketing site is static HTML
 * on its own Vercel project and cannot import from the Next.js bundle, so the
 * tokens below are copied verbatim from webapp/app/app/m3.css. If those change,
 * change these AND apply-m3.css together.
 *
 * Scoped under `.m3p` so nothing here can leak into pages still on sales.css.
 */

.m3p {
  --primary: #1F6F4A; --on-primary: #FFFFFF;
  --primary-container: #9BF3BE; --on-primary-container: #00210F;
  --secondary-container: #CFE9D7; --on-secondary-container: #0A1F13;
  --tertiary-container: #BEEAF8; --on-tertiary-container: #001F27;
  --ember-container: #FFDCC2; --on-ember-container: #2E1500;
  --error: #BA1A1A; --error-container: #FFDAD6; --on-error-container: #410002;
  --surface: #F5FAF5; --s-lowest: #FFFFFF; --s-low: #EFF5EF;
  --s-cont: #E9EFE9; --s-high: #E3E9E3;
  --on-surface: #171D18; --on-surface-variant: #3F4A42;
  --outline: #6F7A72; --outline-variant: #BFC9C0;
  --vibrant: #CDEEDA; --on-vibrant: #00210F;
  --ink: #0E1C14; --on-ink: #E6F2EA;

  /* Call-to-action pair, deliberately NOT --primary/--on-primary.
   * Material 3 flips a filled button in dark mode to a light green surface with
   * near-black label, which is technically high-contrast and reads wrong on a
   * page whose entire job is getting a button pressed — the founder saw the
   * dark-theme buttons as "green with black text, can't see it clearly".
   * So every CTA surface (filled buttons, selected segment, step numerals) uses
   * a brand-green fill with a WHITE label in both themes. The dark value is
   * lifted slightly so the button still separates from the dark background;
   * white on it stays above 4.5:1. */
  --cta: #1F6F4A; --on-cta: #FFFFFF;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px;
  --r-xxl: 28px; --r-3xl: 36px; --r-full: 999px;
  --e1: 0 1px 2px rgba(0,0,0,.10), 0 1px 3px 1px rgba(0,0,0,.07);
  --e2: 0 2px 6px 2px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.10);
  --e3: 0 4px 8px 3px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.12);

  --font: "Roboto Flex", Roboto, -apple-system, "Segoe UI", sans-serif;
  --spring: cubic-bezier(.2,.8,.2,1);

  --gut: clamp(1rem, 4vw, 2rem);
}

/* The app follows the device theme, so these pages do too. */
@media (prefers-color-scheme: dark) {
  .m3p {
    --primary: #7FD6A4; --on-primary: #00391F;
    --primary-container: #005230; --on-primary-container: #9BF3BE;
    --secondary-container: #2A4636; --on-secondary-container: #CFE9D7;
    --tertiary-container: #00404F; --on-tertiary-container: #BEEAF8;
    --ember-container: #5C3300; --on-ember-container: #FFDCC2;
    --error: #FFB4AB; --error-container: #93000A; --on-error-container: #FFDAD6;
    --surface: #0E140F; --s-lowest: #090E0A; --s-low: #161D18;
    --s-cont: #1A211C; --s-high: #252C27;
    --on-surface: #DEE4DD; --on-surface-variant: #BFC9C0;
    --outline: #8A948B; --outline-variant: #3F4A42;
    --vibrant: #053E24; --on-vibrant: #9BF3BE;
    --ink: #05130B; --on-ink: #DEE4DD;
    --cta: #24784E; --on-cta: #FFFFFF;
    --e1: 0 1px 2px rgba(0,0,0,.5), 0 1px 3px 1px rgba(0,0,0,.35);
    --e2: 0 2px 6px 2px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.5);
    --e3: 0 4px 8px 3px rgba(0,0,0,.4), 0 1px 3px rgba(0,0,0,.5);
  }
}

/* ------------------------------------------------------------------ shell */

.m3p {
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  /* iOS inflates text when a page rotates to landscape; on a page this
     type-heavy that reflows every card. */
  -webkit-text-size-adjust: 100%;
  /* Long unbroken strings — affiliatemanager@tovelu.store, tovelu.store/collab
     — are the one thing that can force a horizontal scrollbar on a 320px
     phone, and roughly 80% of this page's traffic is mobile. */
  overflow-wrap: break-word;
}
.m3p * { box-sizing: border-box; }
/* `:not(.btn)` is load-bearing. As a bare `.m3p a`, this reset (0,1,1) beat
   every `.btn-*` colour rule (0,1,0), so an anchor styled as a button inherited
   its surrounding text colour instead: filled green CTAs rendered with near-black
   labels, and the white button on the dark closing panel rendered white-on-white.
   Buttons are <a> on these pages, so the reset has to exclude them. */
.m3p a:not(.btn) { color: inherit; }
.m3p :focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: var(--r-sm); }
.m3p img, .m3p svg { max-width: 100%; }

.wrap { width: 100%; max-width: 70rem; margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 52rem; }

/* Reveal-on-scroll. Armed by the inline <script> that adds .js-reveal to
   <html> before first paint — with scripting off the rule never applies and
   the page renders complete. */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); }
.js-reveal .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--spring), transform .6s var(--spring);
}

/* --------------------------------------------------------------- topbar */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--outline-variant);
}
.topbar-in {
  display: flex; align-items: center; gap: 1rem;
  height: 4rem;
}
.brand {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em;
  text-decoration: none; color: var(--on-surface); flex: none;
}
.brand svg { width: 30px; height: 30px; border-radius: 9px; }
.topnav { display: none; margin-left: auto; gap: .25rem; }
.topnav a {
  font-size: .875rem; font-weight: 500; text-decoration: none;
  color: var(--on-surface-variant);
  padding: .5rem .75rem; border-radius: var(--r-full);
  transition: background .15s var(--spring), color .15s var(--spring);
}
.topnav a:hover { background: var(--s-cont); color: var(--on-surface); }
.topbar .btn { margin-left: auto; flex: none; }
/* The nav sits between the brand and the button only on wide screens. Below
   that it is display:none but still in the DOM, so this margin has to be
   scoped to the same breakpoint — otherwise the sibling selector still matches
   and cancels the `margin-left:auto` that pushes the button to the right. */
@media (min-width: 62rem) {
  .topnav { display: flex; }
  .topnav + .btn { margin-left: .5rem; }
}

/* Phones: the section links become a scrollable chip row on a second line.
 * Eight long sections are unnavigable without them, and a hamburger would be a
 * whole menu behaviour to maintain for six links. The bar also stops being
 * sticky here — two rows pinned to the top would eat ~15% of a phone screen,
 * and the bottom Apply bar already carries the CTA once you start scrolling. */
@media (max-width: 61.99rem) {
  .topbar { position: static; }
  .topbar-in { flex-wrap: wrap; height: auto; padding-top: .625rem; padding-bottom: .5rem; }
  .brand { order: 1; }
  .topbar .btn { order: 2; }
  .topnav {
    order: 3; display: flex; width: 100%; margin: .5rem 0 0;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav a { white-space: nowrap; background: var(--s-cont); }
  /* Nothing is pinned, so anchors don't need to duck under a bar. */
  .m3p section[id], .m3p [id] { scroll-margin-top: .75rem; }
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-size: .9375rem; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer;
  border: 0; border-radius: var(--r-full);
  padding: .875rem 1.5rem;
  transition: transform .12s var(--spring), box-shadow .18s var(--spring),
              background .18s var(--spring);
}
.btn:active { transform: scale(.98); }
.btn .arr { transition: transform .18s var(--spring); }
.btn:hover .arr { transform: translateX(3px); }
.btn-fill { background: var(--cta); color: var(--on-cta); box-shadow: var(--e1); }
.btn-fill:hover { box-shadow: var(--e2); }
.btn-tonal { background: var(--secondary-container); color: var(--on-secondary-container); }
.btn-tonal:hover { background: var(--primary-container); color: var(--on-primary-container); }
.btn-out { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 1px var(--outline); }
.btn-out:hover { background: var(--s-cont); }
.btn-snow { background: var(--s-lowest); color: var(--primary); box-shadow: var(--e2); }
.btn-lg { font-size: 1rem; padding: 1.0625rem 1.875rem; }
.btn-block { display: flex; width: 100%; }
@media (min-width: 30rem) { .btn-block { width: auto; display: inline-flex; } }

/* ------------------------------------------------------------------ hero */

.hero {
  background: var(--vibrant); color: var(--on-vibrant);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 0;
  overflow: hidden;
}
.hero-in { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
@media (min-width: 62rem) { .hero-in { grid-template-columns: 1.08fr .92fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  background: var(--s-lowest); color: var(--primary);
  padding: .5rem .875rem; border-radius: var(--r-full);
  margin: 0 0 1.125rem;
}
.hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.4rem); line-height: 1.06;
  font-weight: 700; letter-spacing: -.03em; margin: 0 0 1.125rem;
}
.hero h1 em { font-style: normal; color: var(--primary); }
@media (prefers-color-scheme: dark) { .hero h1 em { color: var(--on-vibrant); opacity: .95; } }
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.1875rem); line-height: 1.6;
  margin: 0 0 1.75rem; max-width: 34rem; opacity: .88;
}
.hero-sub b { font-weight: 700; opacity: 1; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }

.assure {
  display: flex; flex-wrap: wrap; gap: .5rem .875rem;
  margin: 1.5rem 0 0; padding: 0; list-style: none;
}
.assure li {
  display: inline-flex; align-items: center; gap: .4375rem;
  font-size: .8125rem; font-weight: 600;
}
.assure svg { width: 1rem; height: 1rem; flex: none; }

/* The offer card floating on the vibrant backdrop — the same shape as every
   sheet in the app. */
.offer {
  background: var(--s-lowest); color: var(--on-surface);
  border-radius: var(--r-3xl); box-shadow: var(--e3);
  padding: clamp(1.375rem, 3vw, 1.875rem);
}
.offer-cap {
  font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--on-surface-variant);
}
.offer-big {
  display: flex; align-items: baseline; gap: .625rem; flex-wrap: wrap;
  margin: .625rem 0 1.25rem; padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--outline-variant);
}
.offer-big b { font-size: clamp(2.75rem, 8vw, 3.75rem); line-height: .9; letter-spacing: -.04em; color: var(--primary); }
.offer-big span { font-size: .9375rem; font-weight: 600; color: var(--on-surface-variant); }
.offer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.offer-list li { display: flex; gap: .875rem; align-items: flex-start; }
.offer-list b {
  flex: none; min-width: 5.25rem;
  font-size: .8125rem; font-weight: 700; text-align: center;
  background: var(--secondary-container); color: var(--on-secondary-container);
  border-radius: var(--r-full); padding: .4375rem .5rem;
}
.offer-list span { font-size: .875rem; line-height: 1.5; color: var(--on-surface-variant); }
.offer-foot {
  font-size: .8125rem; line-height: 1.55; margin: 1.25rem 0 0;
  padding: .875rem 1rem; border-radius: var(--r-lg);
  background: var(--tertiary-container); color: var(--on-tertiary-container);
}

/* Numbers strip riding the seam between the hero and the page. */
.strip { margin-top: clamp(2.25rem, 5vw, 3.5rem); }
.strip-in {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--outline-variant);
  border-radius: var(--r-xxl) var(--r-xxl) 0 0;
  overflow: hidden;
}
@media (min-width: 48rem) { .strip-in { grid-template-columns: repeat(4, 1fr); } }
.strip-cell { background: var(--surface); padding: 1.125rem 1rem; text-align: center; }
.strip-cell b {
  display: block; font-size: clamp(1.375rem, 3vw, 1.75rem); font-weight: 700;
  letter-spacing: -.02em; color: var(--primary);
}
.strip-cell span {
  display: block; font-size: .75rem; line-height: 1.4; margin-top: .25rem;
  color: var(--on-surface-variant);
}

/* -------------------------------------------------------------- sections */

.sec { padding: clamp(3.25rem, 7vw, 5.5rem) 0; }
/* The topbar is sticky and 4rem tall, so an anchor jump would otherwise park
   the section heading underneath it. */
.m3p section[id], .m3p [id] { scroll-margin-top: 4.75rem; }
.sec.tint { background: var(--s-low); }
.sec-head { max-width: 44rem; margin: 0 0 clamp(1.75rem, 4vw, 2.75rem); }
.sec-head.mid { margin-left: auto; margin-right: auto; text-align: center; }
.sec-num {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--primary); margin: 0 0 .75rem;
}
.sec-num::before {
  content: ""; width: 1.75rem; height: 2px; background: var(--primary); border-radius: 2px;
}
.sec-head.mid .sec-num { justify-content: center; }
.sec h2 {
  font-size: clamp(1.625rem, 3.6vw, 2.5rem); line-height: 1.12;
  font-weight: 700; letter-spacing: -.025em; margin: 0 0 .875rem;
}
.sec h2 em { font-style: normal; color: var(--primary); }
.lede {
  font-size: clamp(.9375rem, 1.3vw, 1.0625rem); line-height: 1.65;
  color: var(--on-surface-variant); margin: 0;
}
.sub-head { margin: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem; }
.sub-head h3 { font-size: clamp(1.25rem, 2.4vw, 1.625rem); font-weight: 700; letter-spacing: -.02em; margin: 0 0 .5rem; }
.sub-head p { font-size: .9375rem; line-height: 1.6; color: var(--on-surface-variant); margin: 0; }

/* ----------------------------------------------------------------- cards */

.grid { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .g2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 40rem) { .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .g3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--s-lowest);
  border-radius: var(--r-xxl);
  padding: clamp(1.25rem, 2.5vw, 1.625rem);
  box-shadow: var(--e1);
  display: flex; flex-direction: column;
}
/* NB: no `.sec.tint .card` override here. It would out-specify every tonal
   variant below and repaint the coloured cards white on tinted sections. */
.card-p { background: var(--primary-container); color: var(--on-primary-container); box-shadow: none; }
.card-s { background: var(--secondary-container); color: var(--on-secondary-container); box-shadow: none; }
.card-t { background: var(--tertiary-container); color: var(--on-tertiary-container); box-shadow: none; }
.card-e { background: var(--ember-container); color: var(--on-ember-container); box-shadow: none; }

.card .ic {
  width: 2.75rem; height: 2.75rem; flex: none;
  display: grid; place-content: center;
  font-size: 1.375rem;
  background: var(--s-cont); border-radius: var(--r-lg);
  margin-bottom: .875rem;
}
.card-p .ic, .card-s .ic, .card-t .ic, .card-e .ic { background: rgba(0,0,0,.07); }
@media (prefers-color-scheme: dark) {
  .card-p .ic, .card-s .ic, .card-t .ic, .card-e .ic { background: rgba(255,255,255,.10); }
}
.card h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 .5rem; }
.card p { font-size: .875rem; line-height: 1.6; margin: 0; color: var(--on-surface-variant); }
.card-p p, .card-s p, .card-t p, .card-e p { color: inherit; opacity: .85; }
.card .amt {
  font-size: clamp(2rem, 5vw, 2.625rem); font-weight: 700; letter-spacing: -.035em;
  line-height: 1; margin: 0 0 .625rem; color: var(--primary);
}
.card-p .amt, .card-s .amt, .card-t .amt, .card-e .amt { color: inherit; }
.card .pill {
  align-self: flex-start; margin-top: 1rem;
  font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--s-cont); color: var(--on-surface-variant);
  border-radius: var(--r-full); padding: .375rem .75rem;
}
.card-p .pill, .card-s .pill, .card-t .pill, .card-e .pill {
  background: rgba(0,0,0,.09); color: inherit;
}
@media (prefers-color-scheme: dark) {
  .card-p .pill, .card-s .pill, .card-t .pill, .card-e .pill { background: rgba(255,255,255,.12); }
}
.card .note {
  margin-top: auto; padding-top: 1rem;
  font-size: .8125rem; line-height: 1.5; font-weight: 600;
}

/* A wide callout bar — used for the "what qualified means" style clarifiers. */
.callout {
  margin-top: 1.25rem;
  background: var(--s-cont); color: var(--on-surface);
  border-left: 4px solid var(--primary);
  border-radius: var(--r-lg);
  padding: 1.125rem 1.25rem;
  font-size: .9375rem; line-height: 1.65;
}
.callout b { font-weight: 700; }

/* Four-up fact band (payout terms). */
.band {
  display: grid; gap: 1px; margin-top: 1.25rem;
  background: var(--outline-variant);
  border-radius: var(--r-xl); overflow: hidden;
}
@media (min-width: 40rem) { .band { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .band { grid-template-columns: repeat(4, 1fr); } }
.band > div { background: var(--s-lowest); padding: 1.125rem 1.25rem; }
.band b { display: block; font-size: .9375rem; font-weight: 700; margin-bottom: .3125rem; }
.band span { font-size: .8125rem; line-height: 1.5; color: var(--on-surface-variant); }

/* ------------------------------------------------------------ calculator */

.calc {
  background: var(--s-lowest);
  border-radius: var(--r-3xl);
  box-shadow: var(--e2);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: grid; gap: 1.5rem;
}
@media (min-width: 62rem) {
  .calc.split { grid-template-columns: 1.15fr .85fr; align-items: start; gap: 2rem; }
  .calc.split .calc-note { grid-column: 1 / -1; }
}
.calc-rows { display: grid; gap: 1.125rem; }
@media (min-width: 48rem) { .calc-rows.two { grid-template-columns: repeat(2, 1fr); gap: 1.125rem 1.75rem; } }

.field {
  background: var(--s-low); border-radius: var(--r-xl);
  padding: 1rem 1.125rem 1.125rem;
}
.field-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-bottom: .625rem;
}
.field-top label { font-size: .875rem; font-weight: 600; }
.field-top .val {
  font-size: 1rem; font-weight: 700; color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.field-out {
  font-size: .8125rem; line-height: 1.5; margin: .75rem 0 0;
  color: var(--on-surface-variant);
}
.field-out b { color: var(--on-surface); font-weight: 700; }

/* M3 slider: 4px tonal track, filled thumb. */
.m3p input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 1.5rem; margin: 0; background: transparent; cursor: pointer;
}
.m3p input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: var(--r-full); background: var(--outline-variant);
}
.m3p input[type="range"]::-moz-range-track {
  height: 6px; border-radius: var(--r-full); background: var(--outline-variant);
}
.m3p input[type="range"]::-moz-range-progress {
  height: 6px; border-radius: var(--r-full); background: var(--primary);
}
.m3p input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 1.25rem; height: 1.25rem; margin-top: -.4375rem;
  border-radius: 50%; background: var(--primary);
  border: 3px solid var(--s-lowest); box-shadow: var(--e1);
}
.m3p input[type="range"]::-moz-range-thumb {
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--primary); border: 3px solid var(--s-lowest); box-shadow: var(--e1);
}

/* Segmented follower-range picker (Affiliate Manager calculator). */
.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
@media (min-width: 48rem) { .seg { grid-template-columns: repeat(4, 1fr); } }
.seg button {
  font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer;
  background: var(--s-cont); color: var(--on-surface-variant);
  border: 1px solid transparent; border-radius: var(--r-lg);
  padding: .75rem .5rem; text-align: center; line-height: 1.3;
  transition: background .15s var(--spring), color .15s var(--spring);
}
.seg button small { display: block; font-size: .6875rem; font-weight: 600; opacity: .75; margin-top: .25rem; }
.seg button:hover { background: var(--s-high); }
.seg button.on {
  background: var(--cta); color: var(--on-cta);
}
.seg button.on small { opacity: .85; }

/* The result panel. */
.calc-out {
  background: var(--primary-container); color: var(--on-primary-container);
  border-radius: var(--r-xxl); padding: 1.375rem 1.5rem;
}
.calc-out-cap {
  font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  opacity: .75;
}
.calc-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .75rem 0; border-bottom: 1px solid rgba(0,0,0,.10);
}
@media (prefers-color-scheme: dark) { .calc-row { border-bottom-color: rgba(255,255,255,.12); } }
.calc-row:last-of-type { border-bottom: 0; }
.calc-row .k { font-size: .875rem; font-weight: 600; opacity: .85; }
.calc-row .v { font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-row.big { padding: 1rem 0 .875rem; }
.calc-row.big .k { font-size: .9375rem; opacity: 1; }
.calc-row.big .v { font-size: clamp(1.75rem, 5vw, 2.25rem); letter-spacing: -.03em; }
.calc-split {
  font-size: .8125rem; line-height: 1.6; margin: .875rem 0 0;
  padding-top: .875rem; border-top: 1px solid rgba(0,0,0,.10);
  opacity: .9;
}
@media (prefers-color-scheme: dark) { .calc-split { border-top-color: rgba(255,255,255,.12); } }
.calc-note {
  font-size: .8125rem; line-height: 1.65; color: var(--on-surface-variant);
  background: var(--s-low); border-radius: var(--r-lg); padding: 1rem 1.125rem; margin: 0;
}

/* ----------------------------------------------------------------- steps */

.steps { display: grid; gap: 1rem; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 2.75rem 1fr; gap: 1.125rem;
  background: var(--s-lowest); border-radius: var(--r-xxl);
  padding: clamp(1.125rem, 2.5vw, 1.5rem);
  box-shadow: var(--e1);
}
.step-n {
  width: 2.75rem; height: 2.75rem;
  display: grid; place-content: center;
  font-size: 1.0625rem; font-weight: 700;
  background: var(--cta); color: var(--on-cta);
  border-radius: var(--r-lg);
}
.step-when {
  display: inline-block; font-size: .6875rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--primary); margin-bottom: .375rem;
}
.step h3 { font-size: 1.0625rem; font-weight: 700; margin: 0 0 .4375rem; letter-spacing: -.01em; }
.step p { font-size: .875rem; line-height: 1.6; color: var(--on-surface-variant); margin: 0; }
.step-tags { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .75rem; }
.step-tags span {
  font-size: .6875rem; font-weight: 600;
  background: var(--secondary-container); color: var(--on-secondary-container);
  border-radius: var(--r-full); padding: .3125rem .625rem;
}

/* --------------------------------------------------------- rules columns */

.rules { display: grid; gap: 1rem; }
@media (min-width: 52rem) { .rules { grid-template-columns: repeat(2, 1fr); } }
.rule-col {
  border-radius: var(--r-xxl);
  padding: clamp(1.25rem, 2.5vw, 1.625rem);
}
.rule-col.good { background: var(--secondary-container); color: var(--on-secondary-container); }
.rule-col.bad { background: var(--error-container); color: var(--on-error-container); }
.rule-col h3 {
  display: flex; align-items: center; gap: .625rem;
  font-size: 1.0625rem; font-weight: 700; margin: 0 0 1rem;
}
.rule-col h3 .m {
  width: 1.75rem; height: 1.75rem; flex: none;
  display: grid; place-content: center; border-radius: 50%;
  background: rgba(0,0,0,.10);
}
@media (prefers-color-scheme: dark) { .rule-col h3 .m { background: rgba(255,255,255,.14); } }
.rule-col h3 .m svg { width: .9375rem; height: .9375rem; }
.rule-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.rule-col li {
  font-size: .875rem; line-height: 1.6;
  padding-left: 1.125rem; position: relative;
}
.rule-col li::before {
  content: ""; position: absolute; left: 0; top: .5rem;
  width: .375rem; height: .375rem; border-radius: 50%; background: currentColor; opacity: .5;
}

/* ------------------------------------------------------------ announcement */

.announce {
  background: var(--ink); color: var(--on-ink);
  border-radius: var(--r-3xl);
  padding: clamp(1.625rem, 4vw, 2.75rem);
  display: grid; gap: 1.5rem;
}
@media (min-width: 52rem) { .announce { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.announce .tagline {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255,255,255,.10); border-radius: var(--r-full);
  padding: .4375rem .875rem; margin: 0 0 1rem;
}
.announce h3 {
  font-size: clamp(1.375rem, 3vw, 1.875rem); line-height: 1.2;
  font-weight: 700; letter-spacing: -.02em; margin: 0 0 .875rem;
}
.announce p { font-size: .9375rem; line-height: 1.7; margin: 0 0 .75rem; opacity: .8; }
.announce p:last-child { margin-bottom: 0; }
.announce b { opacity: 1; font-weight: 700; }
.announce-box {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-xxl);
  padding: 1.375rem 1.5rem;
}
.announce-box h4 {
  font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  margin: 0 0 .875rem; opacity: .7;
}
.announce-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.announce-box li { display: flex; gap: .625rem; font-size: .875rem; line-height: 1.55; }
.announce-box li svg { width: 1.0625rem; height: 1.0625rem; flex: none; margin-top: .125rem; opacity: .85; }

/* ------------------------------------------------------------------- FAQ */

.faq { display: grid; gap: .625rem; max-width: 52rem; margin: 0 auto; }
.faq-item {
  background: var(--s-lowest); border-radius: var(--r-xl);
  box-shadow: var(--e1); overflow: hidden;
}
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font: inherit; font-size: .9375rem; font-weight: 600; text-align: left;
  color: var(--on-surface); background: transparent; border: 0; cursor: pointer;
  padding: 1.125rem 1.25rem;
}
.faq-q .pm {
  width: 1.625rem; height: 1.625rem; flex: none;
  display: grid; place-content: center; border-radius: 50%;
  background: var(--s-cont); color: var(--primary);
  transition: transform .25s var(--spring), background .2s var(--spring);
}
.faq-q .pm svg { width: .875rem; height: .875rem; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); background: var(--cta); color: var(--on-cta); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--spring); }
.faq-a-in {
  padding: 0 1.25rem 1.25rem;
  font-size: .875rem; line-height: 1.7; color: var(--on-surface-variant);
}
.faq-a-in a { color: var(--primary); font-weight: 600; }

/* --------------------------------------------------------------- closing */

.finale {
  background: var(--ink); color: var(--on-ink);
  border-radius: var(--r-3xl);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  position: relative; overflow: hidden;
}
.finale-ring {
  position: absolute; right: -3rem; top: -3rem;
  width: 14rem; height: 14rem; opacity: .12; pointer-events: none;
}
.finale h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.25rem); line-height: 1.16;
  font-weight: 700; letter-spacing: -.025em; margin: 0 auto .875rem; max-width: 30ch;
}
.finale p {
  font-size: .9375rem; line-height: 1.7; opacity: .78;
  margin: 0 auto 1.75rem; max-width: 46ch;
}
.finale .assure { justify-content: center; margin-top: 1.5rem; opacity: .82; }
.finale .btn-snow { background: #FFFFFF; color: #1F6F4A; }

.crossover {
  display: grid; gap: 1rem; align-items: center;
  margin-top: 1rem;
  background: var(--s-lowest); border-radius: var(--r-xxl);
  padding: clamp(1.25rem, 3vw, 1.75rem); box-shadow: var(--e1);
}
@media (min-width: 48rem) { .crossover { grid-template-columns: 1fr auto; } }
.crossover b { display: block; font-size: 1rem; font-weight: 700; margin-bottom: .3125rem; }
.crossover span { font-size: .875rem; line-height: 1.55; color: var(--on-surface-variant); }

/* Inline apply block used mid-page. */
.apply-block {
  text-align: center;
  background: var(--s-lowest); border-radius: var(--r-3xl);
  padding: clamp(1.75rem, 4vw, 2.5rem); box-shadow: var(--e2);
}
.apply-block h3 { font-size: clamp(1.25rem, 2.6vw, 1.625rem); font-weight: 700; letter-spacing: -.02em; margin: 0 0 .625rem; }
.apply-block p { font-size: .9375rem; line-height: 1.6; color: var(--on-surface-variant); margin: 0 auto 1.5rem; max-width: 44ch; }
.apply-note {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.125rem;
  font-size: .8125rem; font-weight: 600;
  background: var(--tertiary-container); color: var(--on-tertiary-container);
  border-radius: var(--r-full); padding: .5rem 1rem;
}
.apply-note svg { width: 1rem; height: 1rem; }
.apply-small { font-size: .8125rem; color: var(--on-surface-variant); margin: 1rem 0 0; }
.apply-small a { color: var(--primary); font-weight: 600; }

/* ---------------------------------------------------------------- footer */

.foot { background: var(--s-low); padding: clamp(2.5rem, 5vw, 3.5rem) 0 2.5rem; }
.foot-in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--outline-variant);
}
.foot-links { display: flex; flex-wrap: wrap; gap: .375rem 1.25rem; }
.foot-links a { font-size: .875rem; font-weight: 500; color: var(--on-surface-variant); text-decoration: none; }
.foot-links a:hover { color: var(--primary); }
.foot-legal {
  font-size: .75rem; line-height: 1.7; color: var(--on-surface-variant);
  margin: 1.5rem 0 0; opacity: .85;
}
.site-line {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center;
  margin: 1.25rem 0 0; font-size: .875rem; font-weight: 600;
}
.site-line a { color: var(--primary); text-decoration: none; }

/* ------------------------------------------------------------ sticky CTA */

.sticky {
  position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 60;
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
  background: var(--ink); color: var(--on-ink);
  border-radius: var(--r-full); box-shadow: var(--e3);
  padding: .625rem .625rem .625rem 1.25rem;
  transform: translateY(150%); opacity: 0; pointer-events: none;
  transition: transform .35s var(--spring), opacity .25s var(--spring);
}
.sticky.show { transform: none; opacity: 1; pointer-events: auto; }
/* Clears the iPhone home indicator. */
@supports (padding: env(safe-area-inset-bottom)) {
  .sticky { bottom: calc(.75rem + env(safe-area-inset-bottom)); }
}
.sticky b { display: block; font-size: .875rem; font-weight: 700; }
.sticky span { display: block; font-size: .75rem; opacity: .72; }
.sticky .btn { padding: .75rem 1.375rem; font-size: .875rem; }
@media (min-width: 62rem) { .sticky { display: none; } }

/* --------------------------------------------------------------- phones */

/* ~80% of this page's traffic is mobile, so these are corrections to the
   defaults above rather than an afterthought. */
@media (max-width: 47.99rem) {
  /* A slider dragged with a thumb needs a taller grab area than a mouse does. */
  .m3p input[type="range"] { height: 2.5rem; }
  .m3p input[type="range"]::-webkit-slider-thumb { width: 1.5rem; height: 1.5rem; margin-top: -.5625rem; }
  .m3p input[type="range"]::-moz-range-thumb { width: 1.5rem; height: 1.5rem; }

  /* Every tappable control clears the ~48px minimum. Measured on a 390px
     viewport, the buttons were landing at 38–43px. */
  .seg button { min-height: 3.25rem; }
  .topnav a { display: flex; align-items: center; min-height: 2.75rem; padding: 0 .875rem; }
  .btn { min-height: 3rem; }
  .sticky .btn { min-height: 2.75rem; }
  .brand { padding: .375rem 0; }

  /* The uppercase micro-labels (offer caption, step timing, pills, tags) were
     11px — legible on a monitor, squinty on a phone, and this page is mostly
     read on phones. */
  .offer-cap, .calc-out-cap, .step-when, .card .pill, .step-tags span,
  .announce .tagline, .announce-box h4 { font-size: .75rem; }

  /* Full-width CTAs — a thumb reaching across a phone shouldn't have to aim. */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn, .apply-block > .btn, .finale > .btn, .crossover .btn { width: 100%; }

  /* The label chips in the offer card give the sentence beside them more room. */
  .offer-list b { min-width: 4.5rem; font-size: .75rem; }

  /* Two long numbers on one row start colliding below ~380px. */
  .calc-row { gap: .625rem; }
  .calc-row.big { flex-direction: column; align-items: flex-start; gap: .25rem; }

  .strip-cell { padding: .875rem .625rem; }
  .band > div, .card, .step, .rule-col { padding-left: 1.125rem; padding-right: 1.125rem; }

  /* The bottom Apply bar floats over the last screenful; keep it off the
     footer's own links. */
  .foot { padding-bottom: 5.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .m3p *, .m3p *::before, .m3p *::after {
    transition-duration: .01ms !important; animation-duration: .01ms !important;
  }
  .js-reveal .reveal { opacity: 1; transform: none; }
}
