/* mobile.css — M-00 mobile layout system + M-01 hero spacing (14 Oct sprint).
   Loaded LAST so it wins. Phone-first: everything here applies at ≤768px and
   is tuned for 360 and 390 wide. Rules:
     • body text ≥16px, nothing under 14px
     • every tap target ≥44px
     • 16px side gutters, no horizontal scroll anywhere
     • breakpoints: 360 (small Android), 390 (iPhone), 768 (tablet/desktop edge) */

:root {
  --m-gutter: 16px;
  --m-tap: 44px;
  --m-nav-h: 56px;
}

@media (max-width: 768px) {
  /* ---------- base ---------- */
  html,
  body {
    overflow-x: clip;
    max-width: 100vw;
  }
  body {
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
  }
  .wrap {
    width: calc(100% - 2 * var(--m-gutter));
  }
  img,
  svg,
  video,
  canvas {
    max-width: 100%;
    height: auto;
  }
  canvas.gl {
    height: 100%;
  }

  /* ---------- type scale ---------- */
  h1 {
    font-size: clamp(36px, 10vw, 44px);
    line-height: 1.06;
    letter-spacing: -0.03em;
  }
  h2,
  .s-h2 {
    font-size: clamp(28px, 7.6vw, 34px);
    line-height: 1.12;
    letter-spacing: -0.02em;
  }
  h3 {
    font-size: 22px;
    line-height: 1.2;
  }
  h4,
  h5 {
    font-size: 17px;
  }
  p,
  li,
  dd,
  dt,
  .plan__sub,
  .review p,
  .strat__card p {
    font-size: 16px;
  }
  small,
  .note,
  p.note,
  .eyebrow,
  .section-eyebrow,
  .lbl,
  .pill,
  .plan__tag,
  .plan__save,
  .plan dt,
  .plan dd,
  .plan em,
  .plan b,
  .plan span,
  label,
  .label,
  th,
  td,
  .foot h5,
  .disc,
  .disc p,
  .made,
  .cmp__table thead th,
  .pw span,
  .pw small,
  .tier small,
  .review__meta,
  .review small,
  .legal small,
  .a-el,
  .link,
  .row a,
  .or,
  .or span,
  .legal__toc a {
    font-size: 14px !important;
    line-height: 1.4;
  }
  /* M-07: the comparison rows are body copy on phones (one line per value), not
     data-table small print — keep them at 16px despite the generic th/td rule above */
  .cmp__table tbody th,
  .cmp__table tbody td {
    font-size: 16px !important;
    line-height: 1.4;
  }
  .plan dl > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
  }
  .plan__price b {
    font-size: 34px !important;
  }
  .plan__price s,
  .plan__price span {
    font-size: 15px !important;
  }
  .proof__grid b {
    font-size: 30px !important;
  }
  .proof__grid span {
    font-size: 14px !important;
  }

  /* ---------- tap targets ---------- */
  .btn,
  .nav .btn--blue,
  .nav .btn--ghost,
  .foot__cta,
  .plan .btn,
  .plan__cta,
  button:not(.burger):not(.eye),
  input[type='submit'] {
    min-height: var(--m-tap);
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 16px;
  }
  .btn--lg,
  .hero__cta .btn,
  .hero__cta .btn--ghostw,
  .s-close__cta .btn {
    min-height: 52px;
    font-size: 17px;
  }
  .burger {
    width: var(--m-tap);
    height: var(--m-tap);
  }
  .nav {
    height: var(--m-nav-h);
    padding: 0 6px 0 var(--m-gutter);
  }
  .nav .brand {
    min-height: var(--m-tap);
    display: inline-flex;
    align-items: center;
    margin-right: auto;
  }
  .nav .brand__img {
    height: 26px;
  }
  /* mobile menu links */
  .nav__links > a,
  .nav__links .dd > a,
  .nav__links .dd__menu a,
  .mnav a,
  .menu a {
    min-height: var(--m-tap);
    display: flex;
    align-items: center;
    font-size: 17px;
  }
  /* footer link lists */
  .foot ul a,
  .disc a,
  .foot__bottom a,
  .foot__legal a,
  .foot__links a {
    display: inline-flex;
    align-items: center;
    min-height: var(--m-tap);
    padding: 2px 0;
  }
  .foot ul li {
    margin: 0;
  }
  .socials a {
    min-height: var(--m-tap);
    padding-top: 10px;
    padding-bottom: 10px;
  }
  /* the generic ".foot__bottom a" rule above turns these circles into inline-flex
     boxes with no horizontal justification, so the icon sat at the left edge;
     restate the grid centring from home.css with enough specificity to win */
  .foot__socials .foot__soc {
    width: var(--m-tap);
    height: var(--m-tap);
    display: grid;
    place-items: center;
    padding: 0;
  }
  .foot__soc svg {
    width: 20px;
    height: 20px;
  }
  /* forms */
  input:not([type='checkbox']):not([type='radio']):not([type='range']),
  select,
  textarea {
    min-height: 48px;
    font-size: 16px; /* 16px stops iOS zooming on focus */
    padding: 12px 14px;
    width: 100%;
  }
  textarea {
    min-height: 120px;
  }
  input[type='checkbox'],
  input[type='radio'] {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin: 0 10px 0 0;
  }
  label.chk {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: var(--m-tap);
    font-size: 15px !important;
  }
  input[type='range'] {
    height: 44px;
  }
  /* pill tabs (payouts / rules switches) */
  .tabs button,
  .seg button,
  .switch button,
  button.on {
    min-height: var(--m-tap);
  }
  /* inline text links inside copy keep their size; padding + negative margin gives a
     44px touch box without changing the line layout */
  p a,
  li a:not(.btn),
  label a,
  .note a,
  small a,
  .s-close__social a,
  .legal__nav a,
  .legal-nav a,
  .legal__toc a {
    display: inline-block;
    padding: 11px 0;
    margin: -11px 0;
    min-height: var(--m-tap);
    box-sizing: border-box;
  }
  .s-close__social a,
  .legal__nav a,
  .legal-nav a {
    padding: 11px 8px;
    margin: -11px -8px;
  }
  .signin .row a,
  .row > a {
    display: inline-flex !important;
    align-items: center;
    min-height: var(--m-tap);
    padding: 0;
    margin: 0;
  }
  .signin .row {
    align-items: center;
  }
  .eye,
  button.eye {
    width: var(--m-tap) !important;
    min-width: var(--m-tap);
  }
  input[type='checkbox'],
  input[type='radio'] {
    width: 22px !important;
    height: 22px !important;
    min-height: 0;
  }

  /* ---------- no horizontal scroll ---------- */
  section,
  .page,
  .wrap,
  .foot,
  footer,
  .disc {
    max-width: 100%;
    min-width: 0;
  }
  /* data tables scroll inside their own box rather than pushing the page */
  .phase {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .phase > div {
    min-width: 0;
  }
  .tbl {
    max-width: 100%;
  }
  .page table:not(.dash__table):not(.tbl table):not(.cmp__table) {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
  }
  .tbl table {
    display: table;
    min-width: 520px;
  }
  .kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .kpis span {
    font-size: 14px;
    padding: 8px 12px;
  }
  /* ---------- M-10: footer on phones — CTA on top, two tidy columns, legal panel below ---------- */
  footer {
    padding: 12px var(--m-gutter) 0;
  }
  .foot {
    padding: 28px 20px 24px;
    border-radius: 20px;
    min-height: 0;
    font-size: 16px;
  }
  .foot__cols {
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
  }
  .foot__cols > div {
    min-width: 0;
  }
  .foot__cols > div:first-child {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(11, 11, 20, 0.08);
  }
  .foot__cols > div:first-child h5 {
    width: 100%;
    margin-bottom: 4px;
  }
  .foot__cols > div:nth-child(4) {
    grid-column: auto;
    order: 4;
  }
  .foot__cols > div:nth-child(6) {
    grid-column: auto;
    order: 5;
  }
  .foot__cols > div:nth-child(5) {
    grid-column: 1 / -1;
    order: 6;
    padding-top: 4px;
    border-top: 1px solid rgba(11, 11, 20, 0.08);
  }
  .foot ul a[href^='mailto:'] {
    word-break: normal;
    overflow-wrap: anywhere;
  }
  .foot h5 {
    font-size: 14px !important;
    letter-spacing: 0.08em;
    margin: 0 0 6px;
  }
  .foot ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .foot ul li {
    margin: 0;
  }
  .foot ul a,
  .foot__links a {
    display: inline-flex;
    align-items: center;
    min-height: var(--m-tap);
    padding: 0;
    font-size: 16px;
    line-height: 1.25;
  }
  .foot__cta {
    white-space: normal;
    flex: 1 1 100%;
    width: 100%;
    margin: 0;
    justify-content: center;
    text-align: center;
  }
  .foot__bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(11, 11, 20, 0.08);
  }
  .foot__socials {
    display: flex;
    gap: 10px;
  }
  .foot__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 22px;
  }
  .foot__links a {
    white-space: nowrap;
  }
  .disc {
    padding: 22px var(--m-gutter) 0;
    font-size: 14px !important;
  }
  .disc p {
    margin: 0 0 12px;
    line-height: 1.45;
  }

  /* ---------- section rhythm ---------- */
  .proof,
  .strat,
  .pricing,
  .reviews,
  .cmp,
  .s-close,
  .sub {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .s-head {
    margin-bottom: 28px;
  }
  .proof__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
    padding-top: 28px;
  }
  .strat__grid,
  .reviews__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .strat__card,
  .review {
    padding: 20px;
  }
}

/* ---------- M-01: hero spacing on phones ---------- */
@media (max-width: 768px) {
  .hero__pin {
    padding: calc(var(--m-nav-h) + 24px + 36px) 0 0; /* nav offset + nav + clear air */
  }
  .hero__copy {
    text-align: center;
  }
  .hero h1 {
    font-size: clamp(34px, 9.6vw, 46px); /* 23 Oct: was 10.5vw; the two-sentence headline is four lines on phones */
    line-height: 1.04;
    margin: 0;
    text-wrap: balance; /* each sentence is its own block (.grad), so each splits evenly: no lone "profit." */
  }
  .hero h1 .grad {
    display: block;
  }
  .hero__sub {
    font-size: 17px;
    line-height: 1.5;
    margin: 18px auto 0;
    max-width: 32ch;
  }
  .hero__cta {
    margin-top: 26px;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .hero__cta .btn {
    width: 100%;
    min-height: 54px;
    font-size: 17px;
  }
  .hero__cta .btn--blue {
    order: -1; /* primary first, always */
  }
  .hero__stage {
    margin-top: 32px;
  }
  .laptop__lid {
    padding: 6px 6px 8px;
  }
  .hero__still {
    display: block;
  }
}

/* ---------- 360-wide Androids: slightly tighter ---------- */
@media (max-width: 374px) {
  .hero h1 {
    font-size: 36px;
  }
  h2,
  .s-h2 {
    font-size: 27px;
  }
  .plan__price b {
    font-size: 30px !important;
  }
  .foot__cols {
    gap: 20px 12px;
  }
}

/* ---------- M-06: plans swipe row on phones (10K · 25K · 50K · 100K, opens on 50K) ---------- */
@media (max-width: 768px) {
  /* row copied from the live site (PricingPreview.tsx): flex, gap 24, px 16, snap-x mandatory,
     cards 80vw (min 280, max 380) snapping to centre. No snap-stop, no scroll-padding: those made
     iOS stall on every card. */
  .plans.plans--swipe {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--m-gutter));
    padding: 8px 16px 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .plans.plans--swipe[hidden] {
    display: none;
  }
  .plans.plans--swipe::-webkit-scrollbar {
    display: none;
  }
  .plans.plans--swipe .plan {
    flex: 0 0 auto;
    width: 80vw;
    min-width: 280px;
    max-width: 380px;
    scroll-snap-align: center;
    margin: 0;
    /* nothing may animate or repaint inside the moving row */
    transform: none !important;
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    will-change: auto;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .plans.plans--swipe .plan::before,
  .plans.plans--swipe .plan::after {
    animation: none !important;
  }
  .plans__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 4px 0 8px;
  }
  .plans[hidden] + .plans__nav {
    display: none;
  }
  .plans__arrow {
    width: var(--m-tap);
    height: var(--m-tap);
    border-radius: 50%;
    border: 1px solid var(--m-line, #e3e3ea);
    background: #fff;
    color: var(--m-ink, #0b0b14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
  }
  .plans__arrow:disabled {
    opacity: 0.35;
    cursor: default;
  }
  .plans__dots {
    display: flex;
    gap: 6px;
  }
  .plans__dot {
    width: 28px;
    height: var(--m-tap);
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    position: relative;
  }
  .plans__dot::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c9cad6;
    transform: translate(-50%, -50%);
    transition: width 0.2s, background 0.2s;
  }
  .plans__dot.on::after {
    width: 22px;
    border-radius: 4px;
    background: var(--s-blue, #2b5cff);
  }
}
@media (min-width: 769px) {
  .plans__nav {
    display: none;
  }
}

/* ---------- MH-g: 3-D / smooth-scroll scripts removed for speed (three.js was 603 KB).
   The canvases they painted stay in the markup but are hidden on every width. ---------- */
canvas.gl,
.hero__bg,
.s-close__fx,
.si-panel__globe {
  display: none !important;
}

/* ---------- M-05: strategy section — one line per strategy, CTA at the end ---------- */
.strat__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  text-align: center;
}
.strat__cta span {
  font-size: 15px;
  color: var(--m-ink-2, #5b5b6b);
}
@media (max-width: 768px) {
  .strat .s-head h2 {
    margin-bottom: 4px;
  }
  .strat__grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .strat__card {
    padding: 14px 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    align-content: start;
  }
  .strat__card .strat__ico {
    width: 56px;
    height: 56px;
    padding: 6px;
    margin-bottom: 4px;
    box-sizing: border-box;
    border-radius: 16px;
  }
  .strat__card .strat__ico svg {
    width: 100%;
    height: 100%;
  }
  .strat__card b {
    font-size: 16px;
    line-height: 1.2;
  }
  .strat__card > span:not(.strat__ico) {
    font-size: 14px !important;
    line-height: 1.35;
  }
  .strat__cta {
    margin-top: 18px;
  }
  .strat__cta .btn {
    width: 100%;
  }
}

/* ---------- M-11: contact + affiliate forms on phones ---------- */
@media (max-width: 768px) {
  .form {
    gap: 16px;
  }
  .form .field > label:not(.chk) {
    font-size: 15px !important; /* the generic 14px label rule above is !important */
  }
  .form button[type='submit'] {
    width: 100%;
    min-height: 52px; /* button:not(.burger) above wins over .btn--lg; restate here */
    font-size: 17px;
  }
  .form .chk input[type='checkbox'] {
    margin: 1px 0 0; /* the generic rule adds a right margin on top of the flex gap */
  }
  .form .field--check .field__err {
    padding-left: 32px; /* 22px box + 10px gap */
  }
  /* 27 Oct (Task 1.3) */
  select.pwall__filter {
    font-size: 16px; /* payouts.css sets 15px; iOS zooms on focus below 16 */
  }
  /* the mailto link above the contact form is a long address in a nowrap pill */
  #page-contact .pcard a[href^='mailto:'] {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    line-height: 1.3;
  }
}

/* ---------- MH-B: floating Discord button + footer social icons on phones ---------- */
@media (max-width: 768px) {
  /* footer: the three social icons centre as a group; the link lists stay left-aligned */
  .foot__socials {
    align-self: center;
    justify-content: center;
  }
}

/* .chat (styles.css) is fixed at the bottom-left, 44px square, i.e. the 20–64px strip at
   the left edge. Anything whose left edge sits inside that strip gets the button on top of
   it as the page scrolls past: the plan cards' price line / "Start for" pill, the "What you
   get" tiles' headings and "+" links, the payout stats, legal text — on every route. The
   centred containers only clear the strip from ~1408px up (.wrap 1240px at 1384, .s-wrap
   1280px at 1408), so up to 1420px app.js hides the button the moment the page scrolls
   (.chat--away) and brings it back 900ms after the last scroll event. Above 1420px nothing
   is applied and the button simply stays put. */
@media (max-width: 1420px) {
  .chat {
    transition:
      opacity 0.2s,
      translate 0.2s,
      visibility 0s;
  }
  .chat--away {
    opacity: 0;
    translate: -120% 0;
    visibility: hidden; /* out of the tab order and of hit-testing, not merely transparent */
    pointer-events: none;
    transition-delay: 0s, 0s, 0.2s; /* visibility flips once the fade-out has finished */
  }
  /* styles.css sets `transition: none !important` under prefers-reduced-motion, so there the
     button disappears and reappears instantly: the hide/show still works, only without motion */
}
@media (max-width: 768px) {
  /* at the very end of the page the resting button would sit permanently on the last lines
     of the disclaimer; leave it room to scroll clear */
  .disc {
    padding-bottom: 76px;
  }
}
/* 28 Oct (Alfi): phones (≤640px) have no floating Discord bubble at all; Discord stays in the footer
   icons, the menu sheet, the community row and the Help panel. The Help button (help.css) takes the
   bottom-right corner. app.js keeps toggling .chat--away on scroll, which is harmless on a hidden node. */
@media (max-width: 640px) {
  .chat {
    display: none !important;
  }
}

/* ---------- phones: hero shows at once (Ali, 16 Oct) and reveals match the live site ---------- */
@media (max-width: 768px) {
  /* a) headline, text and buttons are on screen immediately: no fade, no rise */
  .hero h1,
  .hero h1.reveal-load,
  .hero__sub,
  .hero__cta,
  .hero__example,
  .hero__panel,
  .hero__stage,
  .laptop {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  /* live SectionReveal/RevealOnScroll: opacity + 20px rise, 0.6s cubic-bezier(.2,.7,.2,1).
     Replaces the 3-D tip-up (perspective rotateX) that iOS repaints on every scroll frame. */
  .fx-in {
    transform: translateY(20px) !important;
    transform-origin: 50% 50%;
    transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) !important;
  }
  .fx-in.is-in {
    transform: none !important;
  }
  /* headings: simple fade instead of the masked slide-up */
  .fx-line {
    overflow: visible;
  }
  .fx-line > span {
    transform: none !important;
    opacity: 0;
    transition: opacity 0.5s ease-out !important;
  }
  .fx-line.is-in > span {
    opacity: 1;
  }
  /* no hover-only flourishes on touch */
  .strat__card,
  .review {
    transform: none !important;
  }
}

/* ---------- FE-19: mobile walkthrough fixes (19 Oct) ---------- */
@media (max-width: 768px) {
  /* 1. The "section rhythm" block above gives .sub the same 56px top padding as the home
     sections, but on sub pages that is the fixed nav's own band (24px offset + 56px nav =
     80px): the eyebrow pill on Checkout, Contact, Rules, Payouts, Affiliates, FAQ and Legal
     sat at y=56, behind the navbar, at every phone and tablet width. Same offset the hero
     uses (nav offset + nav + 36px of air = 116px), so every page's first element lands at
     the same height. Desktop (styles.css, 120px) is untouched. */
  .sub {
    padding-top: calc(env(safe-area-inset-top, 0px) + var(--m-nav-h) + 24px + 36px);
  }
  /* 2. Contact: the support address pill broke mid-word ("…fundi / ng.com" at 320,
     "…co / m" at 390). A <wbr> after the "@" (same as the footer, DT-06) gives it a clean
     break point, and 16px side padding lets the whole address fit on one line from 390 up
     (267px of text in the 306px pill). */
  #page-contact .pcard a[href^='mailto:'] {
    padding-left: 16px;
    padding-right: 16px;
  }
  /* 3. Checkout: "Change plan" was a 79×20px, 13px link under the plan card; 44px tap box
     and ≥14px text like every other link on phones. The 14px gap to the card stays. */
  .co__change {
    display: inline-flex;
    align-items: center;
    min-height: var(--m-tap);
    margin-top: 2px;
    font-size: 15px;
  }
}
/* 4. Menu sheet (shown wherever the burger is, i.e. ≤1024px): the links inside an opened
   group (Rules, Payouts, Affiliates) were inline, so they ran together as one wrapped
   paragraph ("Rules for / every plan") with 36px-tall tap boxes. One link per row, 44px
   tall; the 17px size and 14px indent from styles.css stay. */
@media (max-width: 1024px) {
  .sheet__grp a {
    display: flex;
    align-items: center;
    min-height: var(--m-tap);
    padding-top: 0;
    padding-bottom: 0;
  }
  .sheet__grp a.sheet__all {
    margin-bottom: 6px;
  }
  /* 27 Oct (Task 1.1): social pills are full tap targets on tablets too (styles.css only did it
     ≤768), and the round close button keeps its 44×44 box under the phone-wide button rule */
  .sheet__foot .socials a {
    height: 44px;
    min-height: 44px;
    padding: 0 14px 0 12px;
  }
  .sheet button.sheet__close {
    height: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 0;
  }
}

/* ---------- 27 Oct (Task 1.3): touch tablets between 769 and 1024px (iPad portrait / small landscape) ----------
   iOS zooms the page when a focused field is under 16px, on iPads as much as on phones. The ≤768 rules above
   stop at 768; here the same floor applies to touch devices only (pointer: coarse), so desktop browsers at
   these widths keep the 13–15px fields. */
@media (min-width: 769px) and (max-width: 1024px) and (pointer: coarse) {
  input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='submit']):not([type='button']),
  select,
  textarea,
  input.pwall__search,
  select.pwall__filter {
    font-size: 16px;
  }
}

/* ---------- 27 Oct (Task 1.4): phone typography scale ---------- */
@media (max-width: 768px) {
  /* Page titles: every sub page shares one smooth scale: 34px at 320, 36px from 410px up. home.css's
     .sub h1 clamp takes over at 769px with 35px, so there is no step at the breakpoint. */
  .sub h1 {
    font-size: clamp(34px, 8.8vw, 36px);
    line-height: 1.1;
  }
  /* hero title: four lines at 320px were set almost solid (1.04); a little more leading keeps the
     descenders of one line off the caps of the next */
  .hero h1 {
    line-height: 1.08;
  }
  /* Home section headings. home.css sizes them per section (fixed 30px; 34px for the pricing and
     closing sections; min(30px, 7.6vw) for the comparison), and those selectors beat the generic h2
     scale at the top of this file, so at 320px they ran 24–34px under a 36px hero title. One clamp
     for all of them: 27px at 320, 29.6px at 390, 33px at 430, 34px at 768. */
  .s-head h2,
  .cmp h2,
  .reviews h2,
  .strat h2,
  .hfaq h2,
  .pricing h2,
  .s-close h2,
  .s-h2 {
    font-size: clamp(27px, 7.6vw, 34px);
    line-height: 1.1;
  }
  /* the comparison intro was the one 15px lede among 17px ones */
  .cmp__sub {
    font-size: 17px;
    line-height: 1.6;
  }
  /* FAQ sub-group headings (h3.faq__grp, and the category heading while searching) are 12px uppercase
     labels in faq.css; on phones they follow the same 14px floor as the eyebrow labels (faq.css loads
     after this file, so the page id carries the override) */
  #page-faq .faq__grp,
  #page-faq .faq.is-searching .faq__h {
    font-size: 14px;
  }
  /* headings balance their lines and ledes avoid a lone last word, where the browser supports it */
  h1,
  h2 {
    text-wrap: balance;
  }
  .lede,
  .hero__sub,
  .s-head p,
  .cmp__sub {
    text-wrap: pretty;
  }
}
/* ---------- 27 Oct (Task 1.5): motion on phones and touch screens ---------- */
@media (max-width: 768px) {
  /* The three blurred sky blobs behind every sub-page header (fx.css .sub__sky i) drifted for ever
     (mesh-drift, 18s, alternate) on 40px-blurred layers promoted with will-change: a permanent
     compositor cost for a background nobody watches move. On phones they hold one frame of the drift;
     the gradient, blur and scroll parallax (fx.js --py) stay, so the header looks the same. */
  .mesh i,
  .sub__sky i {
    animation: none;
    will-change: auto;
  }
}
/* Touch screens have no hover: a tap left cards lifted, the strategy icon spinning for 0.9s and buttons
   raised until the next tap. The lift / spin transforms are off where hover is not available; colour and
   shadow states stay, and fine-pointer devices are untouched. */
@media (hover: none) {
  .btn:hover,
  .review:hover,
  .strat__card:hover,
  .pw__card:hover,
  #page-payouts .pw__card:hover,
  .how__card:hover,
  .rule:hover,
  .why__btn:hover,
  #faq .faq__next-btn:hover,
  .hp__card:hover,
  .hp__card:hover .hp__title,
  .tix i:hover {
    transform: none;
    translate: none;
  }
  .strat__card:hover .strat__ico,
  #faq .faq__next-btn:hover svg,
  .partner__more:hover span {
    transform: none;
  }
}
