/* ==========================================================================
   FIT EZ - MOBILE RESPONSIVE POLISH (loads last, applies to dark AND light)
   Fixes found by scanning every page at 320 / 375 / 414 / 768 px:
     1. Form fields under 16px make iPhones zoom the page on focus.
     2. Touch targets under 44px are hard to tap.
     3. Text under 12px is hard to read on phones.
   Nothing here changes desktop layout (all rules are inside media queries).
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Anchor links (contact form, pricing cards, careers form ...): the fixed navbar is ~70px tall, so
      without this the target's top edge lands underneath it. This keeps every in-page jump clear of it.
      (Do not add scroll-margin-top to individual targets as well: the two values add up.)
   -------------------------------------------------------------------------- */
html {
  scroll-padding-top: 6rem;
}

/* --------------------------------------------------------------------------
   1. Stop iOS focus-zoom: form controls must be at least 16px on phones
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="submit"]):not([type="button"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* --------------------------------------------------------------------------
   2. Comfortable touch targets (44px) on touch / small screens
   -------------------------------------------------------------------------- */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .btn,
  .btn-lime,
  .btn-red,
  .btn-secondary,
  .btn-outline-forest,
  .btn-brochure,
  .pricing-tab-btn,
  .gender-btn,
  .filter-btn,
  .chart-tab-btn {
    min-height: 44px;
  }

  .input-field,
  .fs-input,
  select.input-field {
    min-height: 44px;
  }

  .footer-social-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .urgency-close {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Footer link lists: give each row a 40px hit area (still compact) */
  .footer-links li a,
  .footer-bottom-links a,
  .footer-contact-li a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }
}

/* --------------------------------------------------------------------------
   3. Readable text floor (12px) on phones. rem shrinks with the 14px root at
   576px, so the small utility text below is pinned in px.
   -------------------------------------------------------------------------- */
@media (max-width: 576px) {
  .footer-copyright,
  .footer-bottom-links a,
  #mobile-call-bar a span,
  .hero-proof-item,
  .goal-tag,
  .pp-tag,
  .badge-pill,
  .pricing-tab-btn,
  .image-label,
  .showroom-tag,
  .showroom-stat-label,
  .sci-badge,
  .intro-badge,
  .calc-formula-badge,
  .quick-swap-arrow,
  .r-stat-label,
  .about-member-role,
  .form-label,
  .coaching-subtext,
  .pricing-plan-goal,
  .period-label,
  .showroom-subtitle,
  .cost-comp-label,
  .cost-comp-price,
  .careers-job-meta,
  .careers-tag,
  .careers-job-pay,
  .careers-hint,
  .careers-skills-title,
  .hero-pricing-line,
  .hero-pricing-line span,
  .test-user-info p,
  .goal-price span,
  .pricing-card-header p,
  .process-step p,
  #cost-plan-label,
  #cost-savings-text,
  .about-member-achievements li span,
  .about-member-btn-wrapper .btn,
  [style*="font-size: 0.7"],
  [style*="font-size: 0.8rem"],
  [style*="font-size: 0.82"],
  [style*="font-size: 0.85"],
  small,
  th {
    font-size: 12px !important;
  }

  .hero-reveal-stage .hero-tagline,
  .hero-reveal-stage .hero-proof-item,
  .hero-reveal-stage .btn-lime,
  .hero-reveal-stage .btn-outline-forest,
  .hero-reveal-stage .btn-brochure {
    font-size: 12.5px !important;
  }
}

/* Legal pages (privacy / terms): contact links inside lists need a real hit area */
@media (max-width: 768px) {
  .legal-page li a {
    display: inline-block;
    padding-block: 0.4rem;
  }
}
