/* =========================================================================
   MOBILE LAYER, loaded last. Thumb-sized targets (44 px, Apple HIG), 12 px
   minimum text, phone-first spacing. Checked by scripts/responsive.mjs at
   360 / 390 / 430 / 768 / 1024 / 1440.
   ========================================================================= */

/* readable type in the product mock-ups everywhere */
.share-dot { font-size: 12px; min-width: 28px; height: 28px; }
.mini-note small { font-size: 12px; }

@media (max-width: 767px) {
  /* ---------- tap targets ---------- */
  .logo { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-col a, .footer-legal a, .footer-legal button { display: flex; align-items: center; min-height: 44px; }
  .footer-col { gap: 0; }
  .footer-col__title { margin-bottom: 4px; }
  .footer-contact a { min-height: 44px; }
  .footer-contact { gap: 0; }
  .contact__list a { display: inline-flex; align-items: center; min-height: 44px; }
  .contact__list { gap: var(--space-2); }
  .drawer__meta a { min-height: 44px; display: inline-flex; align-items: center; }
  /* checkboxes: a bigger box, and the whole label row is the target */
  .checkbox { min-height: 44px; align-items: center; padding-block: 4px; }
  .checkbox input { width: 24px; height: 24px; margin: 0; }
  .checkbox input:checked::after { width: 11px; height: 6px; }
  .checkbox a { display: inline; }

  /* ---------- footer: two tidy columns instead of four squeezed ones ---------- */
  .footer-top { flex-direction: column; gap: var(--space-8); }
  .footer-brand { flex: none; }
  .footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-5); }
  .footer-col { min-width: 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--space-3); }

  /* ---------- rhythm: a little less air between sections on a small screen ---------- */
  .section { padding-block: 72px; }
  .section-head { margin-bottom: var(--space-8); }
  .section-head__lead { font-size: 16px; }

  /* ---------- forms: 16 px inputs stop iOS zooming in on focus ---------- */
  .input, .input-group__prefix, textarea.input, select.input { font-size: 16px; min-height: 48px; }
}

@media (max-width: 380px) {
  .container { padding-inline: 16px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: var(--space-5) var(--space-4); }
}

/* ---------- How it works, phones: a vertical timeline (number beside the card, one thin line) ---------- */
@media (max-width: 767px) {
  .steps__list { flex-direction: column; flex-wrap: nowrap; gap: var(--space-4); }
  .step { flex: none; flex-direction: row; align-items: flex-start; gap: var(--space-4); position: relative; }
  .step__num { flex: none; width: 40px; height: 40px; border-width: 3px; font-size: 16px; position: relative; z-index: 1; margin-top: 18px; }
  .step:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 58px; bottom: calc(-1 * var(--space-4) - 18px); width: 2px; background: var(--sky-100); }
  .step__card { padding: var(--space-6); }
}
