/* ==========================================================================
   Responsive refinements — mobile-first base lives in the other files.
   Breakpoints: 480 / 768 / 1024 / 1440
   Heavy effects (parallax, tilt, cursor trail) are disabled below 1024px
   both here and in JS.
   ========================================================================== */

/* Global guard: nothing may create a page-level horizontal scrollbar.
   (The process track scrolls intentionally — it clips inside its own box.) */
html, body { max-width: 100%; overflow-x: hidden; }

/* Disable expensive depth effects on touch/small screens */
@media (max-width: 1023px) {
  .tilt-inner { transform: none !important; }
  .hero__layer { transform: none !important; }
  .thread-dot { display: none; }
  .float-spool { display: none; }
}

@media (max-width: 1024px) {
  .hero__grid { gap: var(--s-7); }
}

@media (max-width: 900px) {
  .hero { padding-block: clamp(3.5rem, 10vw, 5rem); }
  .hero__media { order: -1; }
  .reviews__head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 767px) {
  :root { --section-y: clamp(3rem, 8vw, 4.5rem); }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .footer__bar { flex-direction: column; text-align: center; gap: var(--s-3); }
  .lightbox__close { top: var(--s-3); right: var(--s-3); }
}

@media (max-width: 480px) {
  .hero__card--a { inset: 0 22% 34% 0; }
  .hero__card--b { inset: 32% 0 0 30%; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .process__track { grid-auto-columns: 84%; }
  .popup__box { padding: var(--s-6) var(--s-5); }
  .popup__box::before { inset: 7px; }
}

@media (min-width: 1440px) {
  :root { --maxw: 1340px; }
}

/* ---------------------------------------------------------------- Print */
@media print {
  .topbar, .site-header, .sticky-actions, .popup, .lightbox,
  .hero__scroll, .float-spool, .cta-band { display: none !important; }
  body { background: #fff; color: #000; padding-bottom: 0; }
  .hero, .page-hero { background: #fff; color: #000; }
  .hero h1, .page-hero h1 { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* ==========================================================================
   Touch-target floors (WCAG 2.5.5 / 44px minimum)
   Applied on coarse pointers so desktop density is preserved.
   ========================================================================== */
@media (pointer: coarse) {
  .topbar__link,
  .hero__scroll,
  .card__link,
  .footer__list a,
  .footer__nap a,
  .crumbs a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .topbar__social,
  .footer__social {
    width: 44px;
    height: 44px;
  }

  /* File input needs a real hit area */
  .field input[type="file"] {
    min-height: 48px;
    padding-block: var(--s-3);
  }

  /* Logo link: keep the mark its natural size but widen the tappable box */
  .brand { min-height: 44px; }

  /* Inline links sitting inside body copy (hints, footer credit).
     Padding gives the 44px hit area without disturbing the text flow. */
  .field__hint a,
  .footer__credit a,
  .footer__bar a {
    display: inline-block;
    padding-block: 13px;
    min-height: 44px;
  }

  /* The honeypot must stay off-screen and untouched — it is bot bait,
     never a real control, so the 44px floor does not apply to it. */
  .hp input { min-height: 0; }
}

/* Close buttons must clear 44px on every pointer type */
.popup__close,
.lightbox__close {
  min-width: 44px;
  min-height: 44px;
}
