/* Narrower screens. At 560 px and below: one column as in the mobile design, a thin rail at the left
   edge, phones cropped at the bottom, no props, stacked pricing cards and a menu button. */
@media (max-width: 1100px) {
  :root { --content-x: 140px; --gutter-r: 32px; --rail-x: 56px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
  .split, .split--reverse, .split--night { column-gap: 32px; }
  .stage--scan, .stage--history { padding-left: 20px; }
  .prop--box { left: calc(20px + var(--phone-w) - 40px); }
  .prop--pdf { left: calc(20px + var(--phone-w) - 26px); }
  /* Night stacks early: the floating badges need the room beside the phone that only wide screens have. */
  .split--night { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .stage--night { flex-direction: column; align-items: center; padding: 0; }
  .badges { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
  .badge { position: static; white-space: normal; --dx: 0px; }
  .badge--data .badge__glass { width: auto; }
}

@media (max-width: 860px) {
  :root { --content-x: 104px; }
  .nav { display: none; }
  .menu { display: block; }
  .split, .split--reverse, .split--night { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .split--reverse .split__media { order: 2; }
  .stage--scan, .stage--history { justify-content: center; padding: 0; }
  .prop--box { left: calc(50% + var(--phone-w) / 2 - 40px); }
  .prop--pdf { left: calc(50% + var(--phone-w) / 2 - 26px); }
}

@media (max-width: 560px) {
  :root { --rail-top-static: 46px; --topbar-h: 64px; --rail-x: 25px; --content-x: 48px; --gutter-r: 18px; --phone-w: 214px; }
  body { font-size: 16px; }
  .topbar__inner { gap: 12px; padding: 0 12px 0 16px; }
  .brand { gap: 12px; font-size: 1.2rem; }
  .brand__icon { width: 40px; height: 40px; border-radius: 10px; }
  .topbar__download { display: none; }

  h1 { font-size: 2.15rem; }
  h1 br, h2 br, .lede br { display: none; }
  h2 { font-size: 1.85rem; }
  .lede, .body { font-size: 1.05rem; }
  .ticks { font-size: 1rem; }
  .time-label { font-size: 1.2rem; padding-left: calc(var(--rail-x) + 26px); }
  .time-label::after { display: none; }
  .marker { width: 18px; height: 34px; }
  .rail__clock { font-size: 0.7rem; padding: 3px 6px; }

  .scene { padding: 40px 0 56px; }
  .scene:not(.scene--morning) { min-height: 0; }
  .scene--morning { padding-top: 32px; }
  .hero, .scene--morning .time-label { text-align: center; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { padding-top: 12px; }
  .store-buttons { justify-content: center; margin-top: 24px; }
  .store-btn { min-width: 0; flex: 1 1 140px; max-width: 170px; }
  .hero__media { justify-content: center; padding: 0; margin-top: 28px; }
  .hero__media .phone { --phone-w: 230px; }
  .jump { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
  .jump__chip { min-height: 48px; padding: 0 12px; gap: 8px; font-size: 0.95rem; text-align: left; }
  .jump__chip .capsule, .jump__arrow { display: none; }
  .split { margin-top: 24px; row-gap: 28px; }

  /* Phones show their top part, fading out at the bottom, as in the mobile design. */
  .hero__media, .split__media .phone__body {
    max-height: 380px; overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 82%, transparent);
    mask-image: linear-gradient(#000 82%, transparent);
  }
  .split__media .phone__body { max-height: 300px; }
  .prop { display: none; }
  .phone--halo::before { width: 160%; height: 120%; }

  .badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .badge__glass {
    flex-direction: column; gap: 8px; padding: 10px 4px; text-align: center; font-size: 0.88rem;
    background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .badge svg { width: 28px; height: 28px; }
  .lookup { margin-top: 28px; font-size: 0.92rem; }

  .pricing { padding-top: 64px; }
  .pricing h2 { margin-bottom: 32px; }
  .plans { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .plan { padding: 22px 22px 24px; }
  .plan__price { font-size: 2.8rem; }
  .note { margin-top: 28px; padding: 18px; font-size: 1rem; }
  .support { padding-top: 64px; }
  .faq__item summary { padding: 12px 48px 12px 20px; font-size: 1.05rem; }
  .faq__item summary::before { display: none; }
  .faq__item summary::after { right: 18px; }
  .faq__item p { padding: 0 20px 18px; }
  .footer__links { gap: 8px 22px; }
  .footer__links li + li::before { content: none; }
}
