/* ==========================================================================
   Responsive — the desktop reference is the source of truth; these rules
   adapt it down without changing the visual language.
   ========================================================================== */

/* ---- Laptop -------------------------------------------------------------- */
@media (max-width: 1180px) {
  :root { --fs-hero: 64px; --fs-h2: 38px; --gutter: 26px; }

  .nav { gap: 24px; }
  .hero__inner { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
  .hero__canvas { transform: scale(.84); }
  .how__steps { gap: 0; }
  .step { width: 150px; }
  .step-arrow { width: 26px; }
  .footer__grid { grid-template-columns: 1.4fr repeat(4, 1fr); }
  .footer__contact-col { grid-column: 2 / -1; }
}

/* ---- Tablet -------------------------------------------------------------- */
@media (max-width: 980px) {
  :root { --fs-hero: 58px; --fs-h2: 34px; --fs-h3: 25px; }

  .nav,
  .header__cta--desktop { display: none; }
  .nav-toggle { display: grid; }

  /* slide-down mobile menu */
  .nav.is-open {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px var(--gutter) 22px;
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .nav.is-open .nav__link { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__link.is-active::after { display: none; }
  .nav.is-open .header__cta--mobile { display: inline-flex; margin-top: 16px; }

  .hero { padding-bottom: 56px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hero__copy { max-width: 520px; }
  .hero__stage { height: 516px; }
  .hero__canvas { transform: scale(.88); }

  .features__grid { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; }

  .shopfeat__card { width: 33.333%; }

  .how__steps { flex-wrap: wrap; gap: 30px 0; }
  .how__steps .step-arrow { display: none; }
  .step { width: 33.333%; }

  .stats__bar { grid-template-columns: repeat(2, 1fr); gap: 26px 0; }
  .stat:nth-child(3)::before,
  .stat + .stat:nth-child(odd)::before { display: none; }

  .audience__grid { grid-template-columns: 1fr; }

  /* cards go full width here, so the artwork has more room beside the copy.
     Each card's min-height must clear its own artwork or the card clips it. */
  .acard { min-height: 264px; }
  .acard--customers { min-height: 322px; }
  .acard--customers .acard__art { width: 220px; }
  .acard--shops { min-height: 292px; }
  .acard--shops .acard__art { width: 220px; }
  .bcard { min-height: 200px; }

  .about-row__inner { grid-template-columns: 1fr; gap: 28px; }
  .about-row__art-placeholder { min-height: 200px; }

  .cta__inner { flex-direction: column; align-items: flex-start; }
  .cta__art { display: none; }

  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__contact-col { grid-column: auto; }
  .footer__grid > .footer__col:first-of-type::before { display: none; }
  .footer__qr { display: none; }
}

/* ---- Mobile -------------------------------------------------------------- */
@media (max-width: 640px) {
  :root {
    --fs-hero: 44px;
    --fs-h2: 30px;
    --fs-h3: 23px;
    --fs-stat: 28px;
    --gutter: 20px;
  }

  .hero { padding-top: 26px; }
  .hero__actions .btn { flex: 1 1 100%; }
  /* scale the whole hero composition rather than re-laying it out,
     so the devices keep their exact relationship to each other */
  .hero__stage { height: 338px; }
  /* scaled so the phone, placard and sticky note all stay fully visible */
  .hero__canvas { transform: scale(.55); }
  .hero__plane, .hero__trail { display: none; }

  .features__grid { grid-template-columns: 1fr; gap: 22px; }
  .feature__text { max-width: none; }

  .shopfeat__card { width: 50%; }

  .step { width: 50%; }
  .how__star-left, .how__dash-left, .how__stars-right { display: none; }

  .stats__bar { grid-template-columns: 1fr; padding: 22px; }
  .stat { justify-content: flex-start; }
  .stat + .stat::before { display: none; }

  /* artwork stays alongside the copy — it never drops below it */
  .acard {
    min-height: 238px;
    padding: 20px 134px 22px 18px;
  }
  .acard--customers { min-height: 244px; }
  .acard--customers .acard__art { right: 6px; width: 112px; height: 182px; }

  /* the shop figure is a portrait, so it fits beside the copy here too rather
     than dropping below it and stretching the card */
  .acard--shops { min-height: 250px; }
  .acard--shops .acard__art { right: 12px; bottom: 0; width: 105px; height: 177px; }
  .acard__title { font-size: 20px; margin-bottom: 12px; max-width: none; }
  .checklist { max-width: none; }
  .acard__title-mark { width: 18px; }
  .checklist { gap: 7px; }
  .checklist li { font-size: 12px; line-height: 1.45; gap: 7px; }
  .checklist svg { width: 13px; height: 13px; }
  .acard__doodle-1, .acard__doodle-2 { display: none; }

  .bcard { min-height: 0; padding: 20px 18px 22px; }
  .bcard__text { font-size: 12px; line-height: 1.6; }
  /* too narrow for the flush side-by-side photo here, so it stacks: a
     shorter full-width photo strip on top, copy flowing normally below */
  .founder { flex-direction: column; }
  .founder__photo { width: 100%; height: 180px; border-radius: 0; }
  .founder__body { grid-template-columns: 1fr; padding: 20px 20px 22px; }
  .founder__pill,
  .founder__title,
  .founder__text { grid-column: 1; }
  .founder__text { max-width: none; }
  .founder__sign {
    grid-column: 1;
    grid-row: auto;
    margin-top: 12px;
    text-align: left;
    white-space: normal;
  }

  .cta__actions { width: 100%; }
  .cta__actions .btn { width: 100%; }

  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
}
