/* ==========================================================================
   responsive.css — breakpoints and accessibility preferences
   --------------------------------------------------------------------------
   LOAD THIS LAST. Every rule here is an override, so it must win the
   cascade against base/layout/components.

   Breakpoints used across the site:
     <= 960px  tablet / small laptop — two-column grids collapse
     <= 600px  phone — tighter spacing, repositioned hero cards
   Plus two capability queries:
     (hover: none)                   touch devices
     (prefers-reduced-motion: reduce) users who opt out of animation
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tablet — collapse side-by-side layouts into one centred column
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p.sub {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-row {
    justify-content: center;
  }

  .app-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Cancel the Courier section's flip so the illustration stays on top. */
  .app-row.rev .anim-card {
    order: 0;
  }

  .app-copy {
    text-align: center;
  }

  .flist {
    align-items: center;
  }

  .flist li {
    justify-content: flex-start;
    max-width: 340px;
    margin: 0 auto;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .feats {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Phone — single column, tighter rhythm, smaller floating cards
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .band {
    padding: 44px 22px;
  }

  .sec {
    padding: 50px 0;
  }

  .hero {
    padding: 24px 0 12px;
  }

  .wrap {
    padding: 0 18px;
  }

  /* The header holds the wordmark plus two spelled-out language names, so
     both shrink slightly to stay on one line. */
  .brand-name {
    font-size: 1rem;
  }

  .lang-toggle button {
    font-size: 0.72rem;
    padding: 6px 10px;
  }

  /* Shrink the hero notification cards and split them to opposite corners
     so they don't overlap on a narrow screen. */
  .float-card {
    padding: 7px 9px;
    gap: 7px;
    max-width: 46%;
  }

  .float-card .fc-ic {
    width: 26px;
    height: 26px;
  }

  .float-card .fc-t {
    font-size: 0.7rem;
  }

  .float-card .fc-s {
    font-size: 0.62rem;
  }

  .float-card.f1 {
    top: 10px;
    left: 8px;
  }

  .float-card.f2 {
    top: auto;
    bottom: 10px;
    right: 8px;
  }
}

/* --------------------------------------------------------------------------
   Very narrow phones (~320px, e.g. older iPhone SE)
   The wordmark still fits at 360px and above, so it is only dropped below
   that. The logo alone identifies the site.
   -------------------------------------------------------------------------- */
@media (max-width: 345px) {
  .brand-name {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Touch devices
   Hover effects "stick" after a tap on touchscreens, so disable the
   hover transforms entirely.
   -------------------------------------------------------------------------- */
@media (hover: none) {
  .btn:hover,
  .play-badge:hover,
  .contact-chip:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   Respect the OS-level "reduce motion" setting: show everything in its
   final state with no looping animation.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pill .dot,
  .route,
  .ping,
  .spin,
  .bob,
  .float-card {
    animation: none !important;
  }
}
