/* Phone type scale for the whole site: loaded last, so one file sets the ladder from page title to fine print.
   !important is deliberate here, as page stylesheets set sizes at many different specificities.
   Tablet and desktop are untouched. Mock product screens inside previews keep their own sizes. */
@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --m-h1: clamp(1.75rem, 8.6vw, 2.25rem);
    --m-h2: clamp(1.4rem, 6.4vw, 1.625rem);
  }

  /* ---------- headings ---------- */
  .bk-hero h1, .hero-copy h1, .nf h1 { font-size: var(--m-h1) !important; line-height: 1.1 !important; letter-spacing: -.03em !important; }
  main h2:not(.sr-only) { font-size: var(--m-h2) !important; line-height: 1.15 !important; letter-spacing: -.025em !important; }
  main .bk-cta h2, main .co-aside h2 { font-size: 1.375rem !important; }
  main .co-prose h2 { font-size: 19px !important; line-height: 1.25 !important; letter-spacing: -.015em !important; }
  main h3:not(.faq-item *, .scr-pane *, .sr-only) { font-size: 17px !important; line-height: 1.25 !important; }
  main .p8-plan h3, main .pxp-top h3, main .py-way-body h3, main .plan h3 { font-size: 20px !important; }
  main .co-prose h3 { font-size: 15.5px !important; line-height: 1.3 !important; }

  /* ---------- hero supporting text ---------- */
  .bk-crumbs, .bk-crumbs a, .bk-crumbs span { font-size: 13px !important; }
  .bk-hero-copy .bk-kicker { font-size: 13px !important; line-height: 1.4 !important; }
  .bk-hero .lede, .hero-copy .hero-sub { font-size: 15px !important; line-height: 1.5 !important; }
  .bk-hero-note, .co-meta li, .co-meta time { font-size: 12.5px !important; line-height: 1.45 !important; }

  /* ---------- section intros and long-form copy ---------- */
  .co-intro > p:not(.eyebrow), .about-entity-intro > p:not(.about-entity-kicker), .fx-split p, .bk-why-copy p,
  .bk-cta-copy p, .feat-dev-head p, .feat-who-copy > p, main .center > .lede, .rs-app-copy .lede, .faq-lede,
  .co-aside > p, .letters-copy p { font-size: 15px !important; line-height: 1.5 !important; }

  /* ---------- labels never below 11px ---------- */
  main .eyebrow, .about-entity-kicker { font-size: 11px !important; line-height: 1.4 !important; }
  .feat-pill, .feat-dev-pill, .mcard-kicker, .plan .kicker, .plan .price-sub, .plan .ribbon { font-size: 11px !important; }

  /* ---------- big numbers ---------- */
  .tl-stat b { font-size: 30px !important; line-height: 1 !important; }
  .co-flow-year { font-size: 24px !important; }

  /* ---------- Terms and Privacy ---------- */
  .ld-keys dt { font-size: 11px !important; line-height: 1.4 !important; }
  .ld-keys dd, .ld-keys dd a { font-size: 14px !important; font-weight: 650 !important; line-height: 1.4 !important; }
  .co-toc > p { font-size: 11px !important; }
  .co-rail .co-toc ol a { font-size: 14px !important; line-height: 1.35 !important; }
  .co-toc a.ld-top { font-size: 13px !important; }
  .co-rail .co-prose { padding: 20px 16px !important; border-radius: 18px !important; }
  .co-rail .co-prose p, .co-rail .co-prose li { font-size: 15px !important; line-height: 1.6 !important; }
  .co-rail .co-prose > p:first-child { color: var(--body) !important; margin-bottom: 20px !important; }
  .co-rail .co-prose strong, .co-rail .co-prose .ld-key { font-weight: 650 !important; }
  .co-rail .co-prose h2 { gap: 10px !important; }
  .co-rail .co-prose h2 .ld-num { flex: none; width: 28px !important; height: 28px !important; border-radius: 8px !important; font-size: 12.5px !important; }

  /* ---------- footer ---------- */
  .foot-line { font-size: 13.5px !important; line-height: 1.55 !important; }
  .foot-label { font-size: 12px !important; }

  /* ---------- forms: under 16px, iPhones zoom the page when a field is tapped ---------- */
  input:not([type=checkbox], [type=radio], [type=range], .scr *), select:not(.scr *), textarea:not(.scr *) { font-size: 16px !important; }
}
