/* Phone edge-to-edge, tablet fluid, desktop two-column. */
@media (min-width: 600px) {
  body {
    min-height: 100svh;
    padding: 24px;
    background:
      radial-gradient(circle at 15% 15%, #F3F5F7 0, transparent 32%),
      radial-gradient(circle at 85% 85%, #C6CED7 0, transparent 30%),
      #E0E5EB;
  }

  .app-shell {
    width: min(100%, 960px);
    min-height: calc(100svh - 48px);
    border-radius: 24px;
  }

  .screen { min-height: calc(100svh - 48px); }
  .hero { padding: clamp(36px, 6vw, 64px); }
  .hero h1 { font-size: clamp(42px, 6vw, 58px); }

  .notify-card,
  .live-section,
  .lead-form,
  .product-detail {
    width: min(100%, 720px);
    margin-inline: auto;
  }

  .lead-form { padding: 40px clamp(24px, 8vw, 72px); }
  .sticky-purchase { width: min(calc(100% - 48px), 960px); }
}

@media (min-width: 1024px) {
  body { padding: 40px; }

  .app-shell {
    width: min(100%, 1200px);
    min-height: calc(100svh - 80px);
  }

  .screen { min-height: calc(100svh - 80px); }

  #lead-screen.active {
    display: grid;
    grid-template-columns: minmax(420px, 0.9fr) minmax(480px, 1.1fr);
  }

  #lead-screen .hero,
  #landing-screen .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero .brand-mark { align-self: flex-start; }

  #lead-screen .lead-form {
    align-content: center;
    width: min(100%, 600px);
    margin: auto;
    padding: 64px;
  }

  #landing-screen.active {
    display: grid;
    grid-template-columns: minmax(400px, 0.88fr) minmax(520px, 1.12fr);
    grid-template-rows: auto 1fr;
  }

  #landing-screen .hero { grid-row: 1 / 3; }

  #landing-screen .notify-card {
    align-self: end;
    width: min(calc(100% - 72px), 520px);
    margin: 36px auto 10px;
  }

  #landing-screen .live-section {
    align-self: start;
    width: min(calc(100% - 72px), 520px);
    margin: 0 auto;
    padding: 8px 36px 24px;
  }

  #product-screen.active {
    display: grid;
    grid-template-columns: minmax(480px, 1fr) minmax(440px, 0.9fr);
    grid-template-rows: 62px 1fr auto;
  }

  #product-screen .sub-header { grid-column: 1 / -1; }

  #product-screen .product-hero {
    grid-row: 2 / 4;
    height: auto;
    min-height: 560px;
  }

  #product-screen .product-detail {
    align-self: end;
    width: 100%;
    padding: 64px 56px 36px;
  }

  #product-screen .sticky-purchase {
    position: static;
    width: 100%;
    padding: 0 40px 40px;
    border: 0;
  }

  #complete-screen.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #complete-screen > * { width: min(100%, 560px); }
  #complete-screen .success-icon { width: 78px; }
}

/* Shoplive computes its mobile-full class from UA. The modal is light DOM. */
@media (max-width: 480px) {
  .cloud-shoplive.LayerModalPlayer {
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #0D0F11 !important;
  }

  .cloud-shoplive.LayerModalPlayer > .layer-modal-inner {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    background: #0D0F11 !important;
  }

  .cloud-shoplive.LayerModalPlayer .layer-modal-player,
  .cloud-shoplive.LayerModalPlayer .ShoplivePlayer,
  .cloud-shoplive.LayerModalPlayer iframe {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
  }
}
