/* COR-63 mobile readability (390–767px). Desktop typography is unchanged. */
@media (max-width: 767px){
  html{-webkit-text-size-adjust:100%;scroll-behavior:auto}
  body{font-size:17px;line-height:1.5}

  /* Body / paragraphs: at least 17px, line-height ~1.45–1.55 */
  p, li, td, dd, dt, label, blockquote,
  .hc-sub, .rh-lede, .rh-pts, .rh-pts li, .rh-pts span, .rh-pts b,
  .rh-q, .rh-real, .rh-cta,
  .form-price, .ins-body, .ins-kick, .ins-h, #ins-h,
  .ms-skills-line, .grow p, .hv-founder p, .hv-guarantee p,
  .pt-head p, .pt-reg, .pt-all, .pt-card li, .pt-card p,
  .faq .a, .faq p, .consent, .err, .field input, .field textarea,
  .hv-mod p, .hv-mod li, .compare td, .compare th,
  .now p, .dates p, .luke-note p, .need p, .gap p, .impact p,
  .hv-sec p, .hv-sec li, article p, article li,
  body.ms-short-on #overview .hv-ov-line,
  body.ms-short-on #ms-app-track .rh-lede,
  body.ms-short-on #ms-app-track .rh-pts span,
  body.ms-short-on #ms-app-track .rh-pts b{
    font-size:17px;
    line-height:1.5;
  }

  /* Secondary / captions / fine print: at least 15px */
  .label, .label.light, .hc-eyebrow, .rh-eyebrow,
  .pill, .pt-badge, .pt-save, .pt-flag, .pt-month, .pt-fine, .pt-price span,
  figcaption, .hv-ai-note, .fine, .hv-fine, .hv-time, .bn-micro,
  .hv-src, .hc-strip li, .hp3-cap li, .sk-chips li,
  .ms-jump a, .site-header .nav a, .site-footer .nav a,
  small, cite, .hv-n, .hv-legend, .hv-mod .pill,
  thead th, .compare thead th, tr > th,
  .site-verse-text, .form-price,
  body.ms-short-on #ms-app-track .rh-eyebrow,
  body.ms-short-on .hv-presalebar p{
    font-size:15px;
    line-height:1.45;
  }
  /* form-price is a paragraph users must read — 17px wins over the secondary rule above */
  .form-price, #f-home > p.form-price, p.form-price{font-size:17px;line-height:1.5}
  .bn-micro, .bn-micro a, .bn-micro b{font-size:15px;line-height:1.45}

  /* Only the legal footer may be 14px */
  .site-footer .legal, .site-footer .legal a, .site-verse-cite{
    font-size:14px;
    line-height:1.5;
  }

  /* Buttons and primary CTAs: at least 17px, 44px tap */
  .btn, a.btn, button,
  .ms-card-more, body.ms-short-on .ms-card-more,
  .ms-toggle button, .ms-toggle-rest, button.ms-toggle-rest,
  .site-header .nav .btn, .site-header .nav .btn-primary.sm,
  body.ms-short-on .site-header .nav .btn-primary.sm,
  summary{
    font-size:17px;
    line-height:1.25;
    min-height:44px;
  }
  .ms-card-more, body.ms-short-on .ms-card-more{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:.7rem 1.05rem;
  }
  .ms-jump a, .ms-jump.ms-only a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:0 .45rem;
    font-size:15px;
  }
  #ms-app-prev, #ms-app-next, #ms-skills-prev, #ms-skills-next{
    width:44px;
    height:44px;
    min-width:44px;
    min-height:44px;
  }
  /* Carousel/quote dots: 44px hit, small visual */
  .ms-dots button, .ms-quote-dots button, .ms-app-dots button, .ms-skills-dots button,
  #ms-app-dots button, #ms-skills-dots button, #ms-quote-dots button{
    min-width:44px;
    min-height:44px;
    width:44px;
    height:44px;
    padding:0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
  .hv-src, figcaption a, .site-footer a, .legal a, .consent a, .hv-fine a, .fine a{
    display:inline-flex;
    align-items:center;
    min-height:44px;
  }
  .code summary, details.code summary{min-height:44px;font-size:17px}

  /* Headings scaled up so they still lead the 17px body */
  h1, .hc h1, #hero-h1{line-height:1.12}
  h2, .hv-head h2, .sec-head h2, #ins-h, .pt-head h2,
  body.ms-short-on #officials .hv-head h2,
  body.ms-short-on #insurance h2,
  body.ms-short-on #inside .hv-head h2,
  body.ms-short-on #faq h2{
    font-size:1.85rem; /* 29.6px at 16px root */
    line-height:1.2;
  }
  /* Compact section label so "In the app" can share the 390 screen
     with the card, Show more, and the carousel dots. */
  body.ms-short-on .ms-app-head h2{
    font-size:1.5rem;
    line-height:1.15;
  }
  body.ms-short-on #ms-app-track h2,
  #ms-app-track h2, .rh-sol h2, .ms-skills-head h2, .pt-card h3{
    font-size:1.5rem; /* 24px */
    line-height:1.22;
  }
  body.ms-short-on #ms-app-track .ms-card-title{
    font-size:1.5rem;
    line-height:1.2;
  }
  .rh-pts b, body.ms-short-on #ms-app-track .rh-pts b{font-size:1.125rem;line-height:1.35} /* 18px */

  /* Don't let larger type overflow the 390 viewport */
  body, .wrap, main, h1, h2, h3, p, li, td, a{overflow-wrap:break-word;word-wrap:break-word}
  body{overflow-x:hidden}
}

/* Slightly larger FAQ open answers already covered. Keep sticky CTA readable. */
@media (max-width: 767px){
  #hv-sticky a, #hv-sticky .btn, .hv-sticky a, .hv-sticky .btn{
    font-size:17px;
    min-height:44px;
  }
}

/* Higher-specificity overrides so existing mobile-short / pricing / inline rules cannot leave type under the scale. */
@media (max-width: 767px){
  p.form-price, #f-home > p.form-price, .form-price, .form-price b,
  p.bn-micro, .bn-micro, .bn-micro a, .bn-micro b,
  p.fine, .fine, .fine strong,
  .hv-founder p, .hv-founder cite,
  body.ms-short-on .hv-presalebar p, body.ms-short-on .hv-presalebar a, body.ms-short-on .hv-presalebar b{
    font-size:17px !important;
    line-height:1.5 !important;
  }
  body.ms-short-on #ms-app-track .ms-card-more,
  body.ms-short-on .ms-toggle button,
  body.ms-short-on .ms-toggle-rest button,
  .ms-card-more{
    font-size:17px !important;
    line-height:1.25 !important;
    min-height:44px !important;
    padding:.7rem 1.1rem !important;
  }
  .pt-badge, .pt-save, .pt-flag, .pt-month, .pt-fine, .pt-price span,
  .pt-price span.pt-badge, .pt-price span.pt-save,
  body.ms-short-on #officials .hv-quotes figcaption,
  .hv-quotes figcaption, figcaption, figcaption a,
  .hv-src, .hv-n, .hv-mod .hv-n,
  .hv-timeline span, .hv-timeline .now > span, .hv-timeline li > span,
  .compare th, .compare thead th, table th,
  .site-footer .nav a, .site-footer nav a,
  .field label, .field > label, label > small, li > small,
  .hc-gh a, .hc-gh span,
  .wrap > b, /* FAA / FCC / CISA row */
  .hv-ov-line + p, .wrap > span{
    font-size:15px !important;
    line-height:1.45 !important;
  }
  .site-footer .legal, .site-footer .legal a, .site-verse-cite{
    font-size:14px !important;
    line-height:1.5 !important;
  }

  /* Carousel dots: 44px hit target without widening the row (padding + negative margin). */
  body.ms-short-on .ms-app-ctrl,
  body.ms-short-on .ms-skills-ctrl{
    max-width:100%;
    overflow:visible;
    padding-left:.75rem;
    padding-right:.75rem;
  }
  body.ms-short-on .ms-app-ctrl button#ms-app-prev,
  body.ms-short-on .ms-app-ctrl button#ms-app-next,
  body.ms-short-on .ms-skills-ctrl button#ms-skills-prev,
  body.ms-short-on .ms-skills-ctrl button#ms-skills-next,
  #ms-app-prev, #ms-app-next, #ms-skills-prev, #ms-skills-next{
    width:44px !important;
    height:44px !important;
    min-width:44px !important;
    min-height:44px !important;
    flex:0 0 44px;
  }
  body.ms-short-on .ms-dots{
    gap:10px;
    flex:1 1 auto;
    justify-content:center;
    max-width:calc(100vw - 8rem);
  }
  body.ms-short-on .ms-dots button,
  body.ms-short-on .ms-skills-ctrl .ms-dots button,
  body.ms-short-on .ms-quote-dots button,
  #ms-quote-dots button{
    width:8px !important;
    height:8px !important;
    min-width:0 !important;
    min-height:0 !important;
    padding:18px !important;
    margin:-18px !important;
    box-sizing:content-box !important;
    background-clip:content-box !important;
    border-radius:50% !important;
  }

  /* Inline links in running text: keep 44px tall without wrapping the line oddly */
  .bn-micro a, .hv-fine a, p > a, .fine a{
    display:inline;
    padding:.35rem 0;
  }
  .hv-src, figcaption a, .site-footer .nav a{
    display:inline-flex;
    align-items:center;
    min-height:44px;
  }
}
@media (max-width: 767px){
  .rh-tiers span, .rh-tiers li span{font-size:15px !important;line-height:1.45 !important}
  p.hv-time, .hv-time, .hv-mod .hv-time{font-size:17px !important;line-height:1.45 !important}
  .hv-get li, .hv-get p, .hv-get span, .pt-up, .pt-up span, .pt-up b,
  .founding li, .founding p, .founding span{font-size:17px !important;line-height:1.5 !important}
  .site-header .brand, .site-header a.brand{
    display:inline-flex;align-items:center;min-height:44px;
  }
  .bn-micro a, .hv-presalebar a, .hv-fine a, p.hv-ov-line a, #overview a,
  .site-footer nav a, .ms-banner a{
    min-height:44px;display:inline-flex;align-items:center;
  }
}

/* Keep the 100+ launch band huge on phones; do not let the 1.85rem h2 rule shrink it. */
@media (max-width: 767px){
  #sk-count h2, .sk-count h2{
    font-size:inherit;
    line-height:1;
    color:#F3EDE3;
    font-weight:700;
  }
  #sk-count .sk-count-num{
    display:block;
    font-size:clamp(5.8rem,30vw,7.4rem);
    line-height:.84;
    font-weight:700;
    color:#F3EDE3;
    letter-spacing:-.05em;
  }
  #sk-count .sk-count-rest, .sk-count-rest{
    display:block;
    font-size:clamp(1.55rem,6.6vw,1.9rem);
    line-height:1.12;
    font-weight:700;
    color:#F3EDE3;
    letter-spacing:-.03em;
  }
  #sk-count .sk-count-cta, #sk-count .sk-count-cta a.btn{
    font-size:17px;
    line-height:1.25;
  }
  body.ms-short-on .ms-skills-head h2,
  #ms-skills .ms-skills-head h2{
    font-size:1.85rem;
    line-height:1.15;
    font-weight:700;
  }
  #skills .sk-launch-line, .sk-launch-line{
    font-size:1.25rem;
    line-height:1.25;
    font-weight:700;
  }
}

/* Phrase punch bands stay huge on phones; do not use the 100+ numeral size. */
@media (max-width: 767px){
  .sk-band h2{
    font-size:inherit;
    line-height:1;
    color:#F3EDE3;
    font-weight:700;
  }
  .sk-band-h{
    display:block;
    font-size:clamp(3.35rem,14.5vw,4.2rem);
    line-height:.94;
    font-weight:700;
    color:#F3EDE3;
    letter-spacing:-.04em;
  }
  .sk-band .sk-count-rest{
    font-size:clamp(1.35rem,5.6vw,1.65rem);
    line-height:1.15;
    font-weight:700;
    color:#F3EDE3;
  }
}
