/* ==========================================================================
   MOBILE TYPOGRAPHY ALIGNMENT
   --------------------------------------------------------------------------
   Standalone runs of text — page heroes, section heads, section copy
   columns, the footer — read better centred on a narrow screen. Text inside
   a box (a card, a pricing plan, a form, an accordion row) does not: a box
   already gives the eye a left edge to follow, and centring inside it just
   makes the lines look ragged.

   This sheet is loaded LAST, after every page stylesheet, because the page
   sheets load after base.css and several of them pin their copy to the left
   at the same specificity. Loading last wins those ties without a single
   !important.

   The query is written as the exact complement of the site's 48rem desktop
   breakpoint rather than as max-width: 47.9375rem, so there is no width at
   which neither set of rules applies. Nothing in here is a design token,
   which is why it is not in tokens.css.
   ========================================================================== */

@media not all and (min-width: 48rem) {

  /* ------------------------------------------------------------------
     1. HEROES
     Three of the site's five hero families are left-aligned today.
     The other two — .ihero (about-us, faq, contact-us, support,
     privacy-policy, terms-and-conditions) and .phero (pricing) — are
     already centred at every width and are deliberately left alone.
     ------------------------------------------------------------------ */

  /* index.php */
  .hero__copy {
    text-align: center;
  }

  .hero__lede {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  /* The trust line is a flex row of an icon plus a bare text node. Centred,
     the text wraps to two lines and the icon is left stranded against the
     gutter. Dropping back to normal inline flow lets the tick sit in the
     sentence where it belongs. */
  .hero__trust {
    display: block;
  }

  .hero__trust .icon {
    display: inline-block;
    vertical-align: -3px;
    margin-right: var(--space-1);
  }

  /* A sibling of .hero__copy rather than a child of it, so it needs saying
     separately. Four stat cells, no box around them. */
  .hero__stats {
    text-align: center;
  }

  /* features.php — .fhero__copy is a flex column pinned to flex-start */
  .fhero__copy {
    align-items: center;
    text-align: center;
  }

  /* how-it-works.php — .hwhero__copy is a grid pinned to start */
  .hwhero__copy {
    justify-items: center;
    text-align: center;
  }

  .fhero__actions,
  .hwhero__actions {
    justify-content: center;
  }


  /* ------------------------------------------------------------------
     2. SECTION HEADS AND STANDALONE COPY COLUMNS
     Most heads on the site already carry .section-head--center. The plain
     .section-head is a flex column with a 44rem cap and no alignment of
     its own, and each two-column section has a copy half that inherits
     the page's left edge. Both are named here.
     ------------------------------------------------------------------ */
  .section-head {
    align-items: center;
    text-align: center;
    margin-inline: auto;
  }

  /* The copy half of every two-column section:
       .nfc__copy    index.php        — NFC smart business card
       .story__copy  index.php        — success story
       .story__body  about-us.php     — our story
       .prnfc__copy  pricing.php      — add a smart card
       .hwnfc__head  how-it-works.php — the tap section          */
  .nfc__copy,
  .story__copy,
  .story__body,
  .prnfc__copy,
  .hwnfc__head {
    text-align: center;
    margin-inline: auto;
  }

  /* A standalone intro paragraph that is not inside a head or a box */
  .lede {
    text-align: center;
  }

  /* A lede that sits outside its head rather than inside it. Matched on the
     adjacency so the FAQ category ledes — which follow a left-aligned
     icon-and-title row, not a section head — are left where they are. */
  .section-head + .section-head__lede {
    text-align: center;
  }

  /* Flex and grid children of those copy columns: text-align does not move
     a flex item, so every row that holds one has to say so itself. */
  .nfc__price,
  .nfc__actions,
  .story__stats {
    justify-content: center;
    justify-items: center;
  }

  /* Same reasoning as .hero__trust: centred, this note wraps and leaves its
     icon stranded against the gutter, so the icon rejoins the sentence. */
  .prnfc__note {
    display: block;
  }

  .prnfc__note .icon {
    display: inline-block;
    vertical-align: -2px;
    margin-right: var(--space-1);
  }

  /* Where the copy column is a grid, the eyebrow is a grid item, and a grid
     item is placed by justify-self — text-align cannot reach it. Stretched
     full width it blockifies into a flex row and the label falls to the left.
     Ignored harmlessly in the block and flex columns. */
  .section-head > .eyebrow,
  .hero__copy > .eyebrow,
  .fhero__copy > .eyebrow,
  .hwhero__copy > .eyebrow,
  .parent__head > .eyebrow,
  .nfc__copy > .eyebrow,
  .story__copy > .eyebrow,
  .story__body > .eyebrow,
  .prnfc__copy > .eyebrow,
  .hwnfc__head > .eyebrow,
  .u-mobile-center > .eyebrow {
    justify-self: center;
  }

  /* The eyebrow is an inline-flex pill with a leading dash rule. The dash
     is a left-edge marker; once the text is centred it reads as a stray
     mark, so it goes — exactly as .section-head--center already does. */
  .section-head .eyebrow::before,
  .hero__copy .eyebrow::before,
  .fhero__copy .eyebrow::before,
  .hwhero__copy .eyebrow::before,
  .parent__head .eyebrow::before,
  .nfc__copy .eyebrow::before,
  .story__copy .eyebrow::before,
  .story__body .eyebrow::before,
  .prnfc__copy .eyebrow::before,
  .hwnfc__head .eyebrow::before,
  .u-mobile-center .eyebrow::before {
    display: none;
  }


  /* ------------------------------------------------------------------
     3. CLOSING CTA PANELS  [OPTIONAL BLOCK — safe to delete]
     Two of the four closing CTA panels (.finalcta__panel on index,
     .prcta__panel on pricing) are already centred; two are not, and the
     parent-company intro on about-us is left-aligned as well. This block
     makes the odd ones match on mobile. Delete this whole block if you
     would rather every panel keep exactly the alignment it has now.
     ------------------------------------------------------------------ */
  .ftcta__inner {
    align-items: center;
    text-align: center;
  }

  .hwcta__panel,
  .parent__head {
    justify-items: center;
    text-align: center;
  }

  .ftcta__actions,
  .hwcta__actions,
  .parent__actions {
    justify-content: center;
  }


  /* ------------------------------------------------------------------
     4. THE FOOTER
     The brand block — logo, tagline, social row — centres so it reads as
     one closing signature. The link columns and the contact list stay
     left: they are scannable lists, and a list is read down its left
     edge. The copyright line at the very bottom centres with the brand.
     ------------------------------------------------------------------ */
  .footer__brand,
  .footer__bottom {
    text-align: center;
  }

  .footer__brand {
    margin-inline: auto;
  }

  .brand,
  .footer__social,
  .footer__bottom,
  .footer__legal,
  .site-footer--minimal .container {
    justify-content: center;
  }


  /* ------------------------------------------------------------------
     5. LONG BUTTON LABELS
     .btn is white-space: nowrap, which is right when there is room and
     wrong at 375px: "Chat with support on WhatsApp" runs straight out of
     its card. A label only wraps when it genuinely does not fit, so every
     button that already fits is unaffected.
     ------------------------------------------------------------------ */
  .btn {
    max-width: 100%;
    white-space: normal;
  }


  /* ------------------------------------------------------------------
     6. THE GUARD
     Everything above is opt-in by name, so no card, grid or form is
     touched to begin with. This re-asserts the original alignment for
     any boxed component that sits INSIDE one of the centred wrappers,
     so a card dropped into a hero later cannot pick up the centring by
     accident.

     Scoped to those wrappers on purpose: as a flat global list it would
     also flatten components that centre themselves deliberately, such
     as .desk on the information pages.

     These are the real boxed class names in this codebase. There is no
     .bento-card class here — the bento cells are .bento__cell and
     .fbento__cell.
     ------------------------------------------------------------------ */
  :is(
    .hero__copy,
    .fhero__copy,
    .hwhero__copy,
    .section-head,
    .nfc__copy,
    .story__copy,
    .story__body,
    .prnfc__copy,
    .hwnfc__head,
    .ftcta__inner,
    .hwcta__panel,
    .parent__head,
    .u-mobile-center
  ) :is(
    .card,
    .bento__cell,
    .bento__item,
    .fbento__cell,
    .fbento__split-side,
    .tplcard,
    .prcard,
    .plan,
    .acc__card,
    .acc__new,
    .acc__offer,
    .case,
    .ccard,
    .cred,
    .detail,
    .help,
    .alert,
    .announce,
    .contact__panel,
    .auth__panel,
    .fstage__panel,
    .fstage__live,
    .askform__panel,
    .parent__quote,
    .parent__stat,
    .fhero__props li,
    form,
    fieldset,
    label,
    input,
    select,
    textarea,
    .field,
    .field__input,
    .field__area,
    .askform__input
  ) {
    text-align: start;
  }


  /* ------------------------------------------------------------------
     7. ESCAPE HATCHES
     Not needed by any page as it stands — provided so a one-off can be
     fixed in the markup instead of in this file.
     ------------------------------------------------------------------ */
  .u-mobile-center { text-align: center; }
  .u-mobile-left   { text-align: start; }
}
