/* AdoptionFunded type floor and small-screen fixes (product-polish pass, 2026-11-16).
   Rules: labels are never smaller than 13px, helper and explanatory text never smaller than 14px, headings keep a clear scale.
   Selectors start with "body" so they win over each page's own styles whatever the load order. Loaded after the page styles. */

/* labels (uppercase tags, figure captions, table heads): 13px */
body .step .k, body .figs dt, body .fig .k, body .qn, body .mlab, body .fact dt, body th, body .ps .w,
body .af-tag, body .fg label, body .c-lbl, body .paths-h, body .pill, body .cnt span, body .top .k, body .when, body .home-ba .k, body .first b, body .doc-h span { font-size: .8125rem; }

/* helper and explanatory text, including every figure explanation and disclaimer: 14px */
body .snap .who, body .snap-note, body .path span, body .fig .d, body .fig .chg, body .note-fict, body .sched small, body p.fam,
body .apc-preview-label, body .fine, body .terms, body .opt small, body .pic .sub, body .uc .d, body .fact dd small, body .carry span,
body .src, body td small, body .figs small, body .note, body .f-copy, body .box li span, body .tally span, body .go .after,
body .top .fine, body .step .price small { font-size: .875rem; }

body small, body .af-path small { font-size: .8125rem; }
body .af-links .af-cta { font-size: max(.8125rem, .85rem); }

/* ONE HEADING SCALE for every marketing and content page (owner, 2026-11-23: headers ran 21-42px page to page).
   Five levels only. Components that are pictures of the product (homepage snapshot card, report preview, Journey demo app)
   keep their own internal sizes; every page heading uses these. Change the scale here, never per page. */
/* 2026-11-23 (owner: "the Our Founder and other headers are tiny"): sections at 44px desktop, labels at 14px - fintech proportions. */
/* Owner, later the same day: he meant the small labels ("OUR FOUNDER"), not the headings; the headings under them are now back to a calm size. */
:root { --fs-hero: clamp(2.4rem, 4.6vw, 3.5rem); --fs-h1: clamp(2.125rem, 4vw, 3rem); --fs-h2: clamp(1.625rem, 2.5vw, 2.125rem); --fs-card: clamp(1.25rem, 1.8vw, 1.375rem); --fs-item: 1.0625rem; --fs-eyebrow: .875rem; }
/* Section labels above headings ("OUR FOUNDER", "HOW IT WORKS"): 18px desktop / 15px phone, bold (owner, 2026-11-23: measured
   11-14px page to page and read as tiny next to 44px headings). Every label class uses this one rule. */
body .eyebrow, body .af-eyebrow, body .af-kick, body .sp-eyebrow, body .kick, body .gd-eyebrow, body .stages-k { font-size: clamp(.9375rem, 1.45vw, 1.125rem) !important; font-weight: 700; letter-spacing: .08em; line-height: 1.3; margin-bottom: .6rem; }
body .founder-hi { font-size: clamp(1.2rem, 1.8vw, 1.4rem); }
body .h2 + .lede, body .af-h2 + p, body .h2 + p { margin-top: .75rem; }
/* 1. homepage hero */
body section.hero h1 { font-size: var(--fs-hero); line-height: 1.06; }
/* 2. page titles */
body .af-hero h1, body .gd-in h1, body .sp-main h1, body div.hero h1, body main .wrap > h1, body header.top > .wrap > h1 { font-size: var(--fs-h1); line-height: 1.1; letter-spacing: -.015em; }
/* 3. section headings */
body .h2, body .af-h2, body .sp-main h2, body .gd-main > h2, body .cta-card h2, body main section > .wrap > h2, body section > .wrap > h2 { font-size: var(--fs-h2); line-height: 1.2; letter-spacing: -.01em; }
/* 4. card headings (a heading inside a card, box or document) */
body .doc .blk h2, body .jr h2, body .gd-main div > h2, body .gd-cta h2, body .af-next h2, body .form-box h3, body .plan h3, body h3.acc-group, body .story-grid ~ * .af-next h2 { font-size: var(--fs-card); line-height: 1.25; }
/* 5. item titles (short labels on steps, feature tiles, list cards) */
body .step h3, body .fx h3, body .t h3, body .gd-main h3, body .feat h3 { font-size: var(--fs-item); line-height: 1.3; }

/* headings and prose on the content pages */
body .sp-main p, body .story p { line-height: 1.65; }
body .box h3 { font-size: 1rem; }

/* one section-heading size on phones (owner, 2026-11-20): these ran 22-29px from page to page */
@media (max-width: 520px) {
  body .h2, body .af-h2, body .sp-main h2, body .gd-main > h2, body .cta-card h2, body section > .wrap > h2 { font-size: 1.625rem; line-height: 1.2; }
}

/* a long email address must wrap instead of pushing the page sideways on small phones */
body a[href^="mailto:"] { overflow-wrap: anywhere; }

/* very narrow phones (320px): the header may wrap instead of forcing a sideways scroll. It wraps only when the logo and the button do not
   fit on one line, and the bar grows with it (2026-11-21: a fixed 56px bar plus a forced second line put the button over the step bar at 375px). */
@media (max-width: 380px) {
  body .af-bar { flex-wrap: wrap; row-gap: 8px; height: auto; min-height: 56px; padding-top: 6px; padding-bottom: 6px; }
  body .af-links { margin-left: auto; justify-content: flex-end; }
  body .af-links .af-cta { white-space: normal; text-align: center; max-width: 100%; }
}
