/* APL public site — mobile-first composition pass.
   Loaded after desktop styles so phones get an intentional layout, not a scaled desktop. */

@media (max-width: 680px) {
  html { scroll-padding-top: 68px; }
  body { overflow-x: hidden; }
  .wrap { width: calc(100% - 32px); }

  /* Compact app-like header */
  .site-header { background: rgba(255,255,255,.97); }
  .nav { min-height: 64px; gap: 12px; }
  .logo-mark { width: 36px; height: 36px; font-size: 12px; }
  .brand { gap: 9px; }
  .brand-name { max-width: 190px; font-size: 10.5px; line-height: 1.05; letter-spacing: -.08px; }
  .brand-tag { margin-top: 3px; font-size: 7.5px; letter-spacing: .55px; }
  .mobile-toggle { width: 40px; height: 40px; border-radius: 12px; font-size: 18px; flex: 0 0 auto; }
  .mobile-menu { margin: 0 -16px; padding: 6px 16px 18px; background: #fff; border-top: 1px solid var(--line); }
  .mobile-menu > a:not(.btn) { min-height: 48px; padding: 0 2px; font-size: 13px; }
  .mobile-menu .btn { min-height: 50px; margin-top: 12px; border-radius: 14px; }

  /* Hero becomes a deliberate mobile stack. Map is atmosphere, not the layout. */
  .hero { min-height: 0; padding: 0 0 20px; background: #111310; }
  .hero-map { height: 250px; inset: auto 0 0; top: 0; opacity: .72; pointer-events: none; }
  .hero::before {
    background:
      linear-gradient(180deg,rgba(17,19,16,.28) 0%,rgba(17,19,16,.82) 190px,rgba(17,19,16,1) 360px),
      linear-gradient(90deg,rgba(17,19,16,.45),rgba(17,19,16,.08));
  }
  .hero::after { width: 250px; height: 250px; top: -150px; right: -125px; }
  .hero-grid { display: flex; flex-direction: column; gap: 22px; padding-top: 154px; align-items: stretch; }
  .hero-copy-block { position: relative; z-index: 2; }
  .hero-eyebrow {
    margin-bottom: 15px;
    padding: 6px 9px;
    max-width: 100%;
    font-size: 7.7px;
    letter-spacing: .09em;
    white-space: nowrap;
  }
  .hero h1 { max-width: 340px; font-size: clamp(40px,12.2vw,52px); line-height: .94; letter-spacing: -.045em; }
  .hero-copy { max-width: 355px; margin-top: 17px; font-size: 14px; line-height: 1.58; color: #c8ccc5; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 21px; }
  .hero-actions .btn { width: 100%; min-height: 52px; border-radius: 14px; font-size: 13px; }
  .hero-actions .btn-secondary { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.28); }
  .hero-note { display: flex; gap: 7px; margin-top: 16px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .hero-note::-webkit-scrollbar { display: none; }
  .hero-note span {
    flex: 0 0 auto;
    padding: 7px 9px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    color: #c2c6bf;
    font-size: 9px;
  }

  /* Live-delivery card reads like a compact mobile tracking widget */
  .dispatch-card { width: 100%; border-radius: 20px; box-shadow: 0 18px 48px rgba(0,0,0,.34); }
  .dispatch-head { padding: 14px 15px; }
  .dispatch-title { font-size: 10px; }
  .dispatch-ref { font-size: 7px; }
  .live-pill { padding: 5px 8px; font-size: 8px; }
  .route-card { margin: 12px; padding: 14px; border-radius: 15px; }
  .route-row { grid-template-columns: 26px minmax(0,1fr) auto; gap: 10px; align-items: center; }
  .route-icon { width: 26px; height: 26px; border-radius: 8px; }
  .route-zone { grid-column: auto; justify-self: end; font-size: 8px; padding: 4px 7px; }
  .route-label { font-size: 8px; }
  .route-value { margin-top: 2px; font-size: 11.5px; }
  .route-connector { height: 17px; margin: 3px 0 3px 12px; }
  .progress-track { margin: 0 12px 12px; }
  .price-bar { margin: 0 12px 12px; padding: 12px 13px; border-radius: 12px; }
  .price-bar strong { font-size: 17px; }
  .price-status { font-size: 8.5px; }
  .dispatch-stat { padding: 12px 7px; }
  .dispatch-stat strong { font-size: 13px; }
  .dispatch-stat span { font-size: 7.5px; }

  /* Network stats become a compact 2x2 dashboard instead of four tall rows */
  .network-band { padding: 12px 0; background: var(--canvas); }
  .network-band-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    min-height: 0;
    gap: 8px;
  }
  .network-band-grid > div,
  .network-band-grid > div:nth-child(2) {
    min-height: 82px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
  }
  .network-kicker { font-size: 7px; line-height: 1.25; }
  .network-band strong { margin-top: 5px; font-size: 10.5px; line-height: 1.3; }

  /* Content rhythm */
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 24px; }
  .section-kicker { margin-bottom: 10px; font-size: 9px; }
  .section h2, .cta-shell h2 { font-size: 30px; line-height: 1.04; letter-spacing: -1.05px; }
  .section-head p, .process-intro p, .coverage-wrap > div > p { margin-top: 11px; font-size: 13px; line-height: 1.62; }

  /* Cards become horizontal, thumb-friendly summaries */
  .value-grid { gap: 9px; }
  .value-card {
    position: relative;
    min-height: 0;
    padding: 17px 16px 17px 66px;
    border-radius: 16px;
    box-shadow: none;
  }
  .value-icon { position: absolute; left: 15px; top: 16px; width: 38px; height: 38px; margin: 0; border-radius: 12px; }
  .value-card h3 { margin-bottom: 5px; font-size: 14px; }
  .value-card p { font-size: 11.5px; line-height: 1.55; }

  /* Process reads as a vertical mobile timeline */
  .process-shell { gap: 22px; }
  .process-list { gap: 0; border-top: 1px solid var(--line); }
  .process-item { grid-template-columns: 42px 1fr; gap: 13px; padding: 18px 0; }
  .process-num { width: 38px; height: 38px; border-radius: 12px; font-size: 9px; }
  .process-item h3 { font-size: 14px; }
  .process-item p { font-size: 11.5px; line-height: 1.55; }

  /* Coverage: compact chips rather than a desktop card shrunk down */
  .coverage-wrap { gap: 22px; }
  .coverage-meta { margin-top: 17px; gap: 7px; }
  .coverage-meta span { padding: 7px 9px; font-size: 9px; }
  .coverage-card { padding: 11px; border-radius: 17px; }
  .lga-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .lga-chip { min-width: 0; padding: 9px 8px; border-radius: 10px; font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lga-chip::before { margin-right: 5px; font-size: 6px; }

  /* Closing CTA */
  #contact.section { padding-top: 38px; }
  .cta-shell { padding: 28px 20px; border-radius: 22px; }
  .cta-shell .eyebrow { margin-bottom: 14px; font-size: 9px; }
  .cta-shell > p { margin-top: 11px; font-size: 12px; line-height: 1.6; }
  .cta-actions { gap: 8px; margin-top: 20px; }
  .cta-actions .btn { min-height: 50px; border-radius: 14px; }

  /* Footer becomes compact but still complete */
  footer { margin-top: 0; }
  .footer-main { min-height: 0; grid-template-columns: 1fr 1fr; gap: 28px 18px; padding-top: 32px; padding-bottom: 26px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { margin-top: 13px; font-size: 11px; }
  footer h4 { font-size: 9px; }
  footer li, footer a { font-size: 11px; }
  .footer-bottom { padding: 16px 0 24px; font-size: 9px; line-height: 1.5; }
}

@media (max-width: 390px) {
  .wrap { width: calc(100% - 24px); }
  .brand-name { max-width: 160px; font-size: 9.5px; }
  .brand-tag { font-size: 7px; }
  .hero-grid { padding-top: 145px; }
  .hero h1 { font-size: 39px; }
  .hero-copy { font-size: 13px; }
  .route-zone { display: none; }
  .route-row { grid-template-columns: 26px 1fr; }
  .network-band-grid { gap: 6px; }
  .network-band-grid > div, .network-band-grid > div:nth-child(2) { min-height: 78px; padding: 11px; }
  .lga-chip { font-size: 9px; }
}
