/* WomenFirst v11 — mobile-first responsive corrections */

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

@media (max-width: 620px) {
  .shell {
    width: min(calc(100% - 32px), var(--max));
  }

  h1,
  h2,
  h3,
  p,
  a,
  span {
    overflow-wrap: break-word;
  }

  /* Keep the complete homepage hero story inside a normal phone viewport. */
  .hero {
    min-height: 100svh;
    height: auto;
    padding: 74px 0 24px;
    align-items: stretch;
    background-position: 66% center;
  }

  .hero > .shell {
    transform: none !important;
    display: flex;
    align-items: flex-end;
  }

  .hero-copy {
    width: 100%;
    padding: clamp(122px, 19svh, 170px) 0 0;
  }

  .hero .eyebrow {
    margin-bottom: 14px;
    font-size: 0.64rem;
    line-height: 1.35;
  }

  .hero .eyebrow::before {
    width: 34px;
  }

  .hero .display {
    font-size: clamp(2.55rem, 12vw, 3.45rem);
    line-height: 0.91;
    letter-spacing: -0.055em;
  }

  .hero p {
    margin: 15px 0 16px;
    max-width: 34rem;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 52px;
    padding: 13px 14px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
    font-size: 0.65rem;
    line-height: 1.25;
  }

  .proof,
  .proof:first-child {
    justify-content: center;
    padding: 0 2px;
    gap: 5px;
    border: 0;
    text-align: center;
  }

  .proof-icon {
    font-size: 0.8rem;
  }

  /* Inner heroes should be content-led on phones, not desktop viewports stacked vertically. */
  .inner-hero {
    min-height: 0;
    height: auto;
    padding: 100px 0 48px;
  }

  .inner-hero > .shell {
    transform: none !important;
  }

  .inner-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .inner-hero-copy {
    min-width: 0;
  }

  .inner-hero .display {
    font-size: clamp(2.45rem, 11.6vw, 3.35rem);
    line-height: 0.95;
    letter-spacing: -0.052em;
  }

  .inner-hero h1 {
    margin: 15px 0;
  }

  .inner-hero .lead {
    font-size: 0.9rem;
    line-height: 1.52;
  }

  .inner-hero .store-badges {
    margin-top: 16px;
  }

  .inner-hero .store-badges img {
    height: 38px;
    width: auto;
  }

  .inner-hero-visual {
    min-width: 0;
    width: min(68vw, 255px);
    justify-self: center;
  }

  /* Editorial sections and repeated numbered rows. */
  .page-body,
  .intro,
  .journeys,
  .safety-stage,
  .about-journey,
  .faq-stage {
    padding-top: 68px;
    padding-bottom: 72px;
  }

  .story-grid,
  .intro-grid,
  .safety-grid,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .story-grid h2,
  .section-title {
    font-size: clamp(2.15rem, 10vw, 3rem);
    line-height: 1;
  }

  .story-content {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .story-main,
  .story-content,
  .story-visual {
    min-width: 0;
  }

  .story-main .story-visual,
  .story-visual {
    margin-top: 18px;
    min-height: 280px;
  }

  .feature-strips {
    margin-top: 56px;
  }

  .feature-strip {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px 14px;
    padding: 30px 0;
    align-items: start;
  }

  .feature-strip .n {
    grid-column: 1;
    grid-row: 1 / span 2;
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .feature-strip h3 {
    grid-column: 2;
    min-width: 0;
    font-size: clamp(1.35rem, 6.6vw, 1.75rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
  }

  .feature-strip p {
    grid-column: 2;
    min-width: 0;
    font-size: 0.91rem;
    line-height: 1.62;
  }

  .quote-stage {
    padding: 72px 0;
  }

  .quote-stage blockquote {
    font-size: clamp(2rem, 9.5vw, 2.8rem);
  }

  .city-cta {
    padding: 68px 0;
  }

  .cta-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .cta-copy,
  .cta-visual {
    min-width: 0;
  }

  .cta-visual {
    width: min(100%, 390px);
    justify-self: center;
  }

  /* Keep cards and profile layouts inside the phone canvas. */
  .team-grid,
  .team-panel,
  .contact-paths,
  .contact-grid,
  .contact-stage,
  .availability-grid,
  .city-list {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .team-card,
  .team-panel,
  .contact-card,
  .path-card {
    min-width: 0;
  }

  /* The footer remains complete and deliberately stacked on small screens. */
  .footer {
    padding-top: 62px;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 22px;
    padding-bottom: 44px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .footer h4 {
    font-size: 0.76rem;
  }

  .footer-brand > p,
  .footer li,
  .footer li a {
    font-size: 0.82rem;
  }

  .footer .social-badges {
    flex-wrap: wrap;
  }

  .footer-bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 22px 0 28px;
  }

  .footer-copyright,
  .footer-cities,
  .footer-credit {
    min-width: 0;
    text-align: left !important;
  }
}

@media (max-width: 360px) {
  .hero-copy {
    padding-top: clamp(105px, 16svh, 135px);
  }

  .hero .display {
    font-size: clamp(2.35rem, 11.6vw, 2.75rem);
  }

  .hero-actions .btn {
    font-size: 0.75rem;
    padding-inline: 10px;
  }

  .hero-proof {
    font-size: 0.6rem;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-brand {
    grid-column: 1;
  }
}

@media (min-width: 621px) and (max-width: 980px) {
  .inner-hero-grid,
  .story-grid,
  .feature-strip,
  .footer-top {
    min-width: 0;
  }

  .feature-strip {
    grid-template-columns: 64px minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 26px;
  }
}

/* ---------------------------------------------------------------
   Accessibility: honour the visitor's reduced-motion preference.
   Disables the ticker marquee, hero route line, safety orbit and
   scroll-reveal transitions for people who get motion sickness.
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .ticker-track {
    animation: none !important;
    transform: none !important;
  }
}
