/* Download page: the app on the left, one drawn phone on the right. Loaded after pages.css and phone.css. */

.pg-download.page-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}
.pg-download.page-main > * { max-width: none; }

/* Left: icon, heading, badges */
.pg-download__app { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.pg-download .app-icon { transform: rotate(-4deg); }
.pg-download .page-title { font-size: clamp(64px, 8.4vw, 104px); white-space: nowrap; }
.pg-download .store-row { justify-content: flex-start; }

/* Right: the phone, with its "Example" label centred under it like a caption.
   The phone is sized in em, so this font-size scales the whole drawing. */
.pg-download__demo {
  justify-self: center;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.pg-download__demo .phone { transform: rotate(2deg); }
.pg-download__demo .pill { font-size: 12px; }

/* Tablet: still side by side, a little smaller. */
@media (max-width: 1023px) {
  .pg-download.page-main { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; }
  .pg-download__demo { font-size: 10px; gap: 24px; }
  .pg-download__demo .phone { box-shadow: 7px 7px 0 var(--navy); }
}

/* Phones: one centred column, the phone last and small enough that the badges stay in view. */
@media (max-width: 719px) {
  .pg-download.page-main { grid-template-columns: 1fr; justify-items: center; gap: 48px; padding-bottom: 72px; }
  .pg-download__app { align-items: center; gap: 24px; }
  .pg-download .app-icon { width: 96px; height: 96px; border-radius: 22px; }
  .pg-download .page-title { font-size: clamp(44px, 14vw, 64px); }
  .pg-download .store-row { justify-content: center; }
  .pg-download.page-main { padding-top: 24px; }
  .pg-download__demo { font-size: 9px; gap: 20px; }
  .pg-download__demo .phone { box-shadow: 6px 6px 0 var(--navy); }
}

/* Narrowest phones: the two badges still share one row. */
@media (max-width: 359px) {
  .pg-download .store-row { gap: 12px; }
  .pg-download .store img { height: 38px; }
  .pg-download__demo { font-size: 8px; }
}
