/*
 * EXY static pages — mobile polish.
 *
 * Additive only: nothing here touches the 3D scenes, chapter scrolling or
 * the desktop layout. It raises small tap targets to the 44px minimum and
 * keeps bottom-anchored UI clear of the home indicator / browser chrome.
 */

@media (max-width: 760px) {
  /* --- Hero CTAs: stop mid-word wrapping, keep them off the bottom edge --- */
  .hero-ui .stores {
    gap: 10px;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
  }
  .hero-ui .store {
    min-height: 44px;
    padding-inline: 16px;
    font-size: 14px;
    line-height: 1.25;
    text-wrap: balance;
  }

  /* --- Footer / inline link lists: 20px rows were below the tap minimum --- */
  .foot a,
  .xfoot a,
  .foot-col a,
  .links-col a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 2px;
  }

  /* --- Nav pills and selects: comfortable touch size --- */
  .nav .pill,
  .navr .pill,
  .xnav .pill,
  select.pill {
    min-height: 40px;
  }

  /* --- Account links in the header/mobile auth slots --- */
  .xauth a.xa-go,
  .xauth button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* --- In-page controls (suggestion chips, inline CTAs, plan rows) --- */
  .try .chip,
  .try button,
  .try .store,
  .row button,
  .prbar button {
    min-height: 40px;
    padding-block: 8px;
  }
  .prbar button {
    min-width: 40px;
  }

  /* --- Bottom-anchored overlays clear the home indicator --- */
  .worldhint,
  .mobile-apply,
  .hero-ui {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 6px);
  }

  /* --- The marquee is intentionally wider than the screen; make sure it
         never introduces a page-level scrollbar on any device --- */
  .marquee {
    max-width: 100vw;
    overflow: hidden;
  }
}

/* Very small phones: tighten the display type so headlines keep their shape */
@media (max-width: 380px) {
  .hero-ui .store {
    font-size: 13.5px;
    padding-inline: 13px;
  }
}

/* Injected sign-up fields (phone + referral) use the modal's own .xa-*
   classes; the phone row needs a two-column rule the handoff has no
   equivalent for. */
.xa-main .xa-phone {
  display: flex;
  gap: 8px;
  align-items: stretch;
  /* .xa-in is a flex container, so without this the row shrinks to its
     content and sits short of every other field's right edge. */
  flex: 1 1 auto;
  width: 100%;
}
.xa-main .xa-phone select {
  flex: 0 0 auto;
  width: 92px;
}
.xa-main .xa-phone input {
  flex: 1 1 auto;
  min-width: 0;
}
.xa-main .xa-opt {
  opacity: 0.6;
  font-weight: 500;
}

/* Social sign-in row injected into the auth modal (parity with the old
   auth pages, which offered Google/Facebook on login and sign-up). */
.xa-main .xa-social {
  margin-top: 14px;
  text-align: center;
}
.xa-main .xa-social-sep {
  display: block;
  font-size: 12.5px;
  opacity: 0.65;
  margin-bottom: 10px;
}
.xa-main .xa-social-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.xa-main .xa-social-btn {
  flex: 1 1 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid #000;
  border-radius: 999px;
  background: #fff;
  color: #000;
}
.xa-main .xa-social-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* fb.png is a white glyph that relied on a coloured circle behind it (the
   old auth page supplied one); without it the icon vanishes on a white
   button. Give each provider its own badge. */
.xa-main .xa-social-btn[data-provider="facebook"] img {
  background: #1877f2;
  border-radius: 50%;
  padding: 2px;
}
