/* Product pages — premium mobile storefront. */
@media (max-width: 620px) {
  :root { --content-gutter: 1rem; }

  html { overflow-x: hidden; scroll-padding-top: 68px; }
  body[class*="pack-theme-"] { overflow-x: hidden; }

  .pack-grain { display: none; }

  .pack-header,
  .pack-header.is-compact,
  body[class*="pack-theme-"] .pack-header,
  body[class*="pack-theme-"] .pack-header.is-compact {
    top: max(5px, env(safe-area-inset-top));
    width: calc(100% - 10px);
    height: 56px;
    padding: 0 .75rem 0 .85rem;
    background: linear-gradient(90deg, rgba(3,3,4,.72), rgba(13,13,15,.96) 18% 82%, rgba(3,3,4,.72));
    box-shadow: 0 18px 50px rgba(0,0,0,.74);
    -webkit-backdrop-filter: blur(26px) saturate(145%);
    backdrop-filter: blur(26px) saturate(145%);
  }

  .pack-logo { gap: .45rem; font-size: 1.02rem; }
  .pack-logo img,
  .pack-header.is-compact .pack-logo img { width: 25px; height: 31px; }
  .header-buy { min-height: 42px; padding: 0 .72rem; font-size: .55rem; }

  .pack-hero,
  .pack-theme-black .pack-hero {
    display: flex;
    min-height: auto;
    flex-direction: column;
    padding: calc(7.1rem + env(safe-area-inset-top)) 1rem 2.7rem;
    background: radial-gradient(circle at 50% 56%, rgba(var(--accent),.14), transparent 33%), #030303;
  }

  .pack-copy { padding-bottom: .8rem; }
  .pack-kicker { margin-bottom: 1.2rem; font-size: .58rem; line-height: 1.5; }
  .pack-hero h1,
  .pack-theme-black .pack-hero h1 {
    max-width: 100%;
    font-size: clamp(3.65rem, 16.5vw, 5rem);
    line-height: .76;
    letter-spacing: -.075em;
  }

  .pack-lead { max-width: 32rem; margin: 1.75rem 0 1rem; font-size: 1rem; line-height: 1.55; }
  .pack-pricing { gap: .55rem; margin: -.15rem 0 1.35rem; }
  .pack-original-line { gap: .65rem; font-size: .7rem; }
  .pack-original-line del { font-size: 1.35rem; }
  .pack-sale-line { width: 100%; justify-content: space-between; gap: .7rem; }
  .pack-price { font-size: clamp(3.5rem, 17vw, 5.4rem); }
  .pack-discount { flex: 0 0 auto; padding: .52rem .58rem; font-size: .58rem; }
  .checkout-price-lockup { display: flex; justify-content: center; margin: .45rem 0 0; }
  .hero-proof { grid-template-columns: repeat(2, minmax(0,1fr)); margin-bottom: 1.25rem; }
  .hero-proof li { min-height: 52px; padding: .85rem .6rem; font-size: .58rem; }

  .pack-actions,
  .checkout-actions { display: flex; width: 100%; align-items: stretch; flex-direction: column; gap: .65rem; }
  .pack-actions .pack-button,
  .checkout-actions .pack-button,
  .pack-copy > .pack-button { width: 100%; min-height: 58px; justify-content: space-between; }

  .product-stage,
  .pack-theme-black .product-stage {
    width: calc(100% + 2rem);
    min-height: 455px;
    margin: .3rem -1rem 0;
  }

  .product-stage img.pack-product-shot,
  .pack-theme-black .product-stage img.pack-product-shot {
    width: 116%;
    max-width: none;
    opacity: 1;
    transform: scale(1);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 13%, #000 87%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 84%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 13%, #000 87%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 84%, transparent);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }

  .product-stage::after {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 13%, #000 87%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 84%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 13%, #000 87%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 84%, transparent);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }

  .pack-theme-black .product-stage::before { inset: 15%; }
  .edition { right: 1rem; bottom: 1rem; font-size: .55rem; }

  .proof-strip {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 0;
    padding: 0;
    font-size: .55rem;
  }

  .proof-strip span { display: grid; min-height: 54px; place-items: center; padding: .7rem; text-align: center; }
  .proof-strip span:nth-of-type(odd) { border-right: 1px solid rgba(0,0,0,.18); }
  .proof-strip span:nth-of-type(-n+2) { border-bottom: 1px solid rgba(0,0,0,.18); }
  .proof-strip i { display: none; }

  .pack-section { padding: 5.2rem 1rem; }
  .section-intro { display: block; margin-bottom: 2.6rem; }
  .section-intro > p,
  .sound-copy > p,
  .fit-copy > p,
  .faq > p,
  .checkout > p { margin-bottom: 1.25rem; font-size: .57rem; line-height: 1.5; }

  .section-intro h2,
  .sound-copy h2,
  .fit-copy h2,
  .checkout h2,
  .pack-theme-black .fit-copy h2,
  .pack-theme-black .checkout h2 {
    max-width: 100%;
    font-size: clamp(3rem, 13.7vw, 4.35rem);
    line-height: .84;
    letter-spacing: -.065em;
  }

  .inside-grid,
  .pack-theme-black .inside-grid { display: block; border-top: 1px solid rgba(255,255,255,.18); }
  .inside-grid article,
  .pack-theme-black .inside-grid article,
  .pack-theme-black .inside-grid article:nth-child(-n+2) {
    /* The cards do not include the optional numeric <span>; a two-column
       grid placed the heading beside its description on small screens. */
    display: block;
    min-height: 0;
    padding: 1.25rem 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.13);
  }

  .inside-grid span,
  .pack-theme-black .inside-grid span {
    grid-row: 1 / 3;
    margin: 0;
    font-family: "DM Mono", monospace;
    font-size: .62rem;
    font-weight: 400;
  }

  .inside-grid h3,
  .pack-theme-black .inside-grid h3 { margin: 0 0 .45rem; font-size: 1.07rem; }
  .inside-grid p,
  .pack-theme-black .inside-grid p { font-size: .86rem; line-height: 1.5; }

  .sound-section,
  .fit { display: flex; gap: 2.5rem; align-items: stretch; flex-direction: column; }
  .sound-copy { margin-bottom: 0; }
  .sound-copy > span { margin-top: 1.25rem; font-size: .92rem; }
  .pack-tracks { width: 100%; }
  .pack-tracks article,
  .pack-theme-black .pack-tracks article {
    display: grid;
    min-height: 0;
    grid-template-columns: 50px minmax(0,1fr) auto;
    grid-template-rows: auto 40px;
    gap: .7rem .75rem;
    padding: 1rem 0;
  }

  .pack-tracks button,
  .pack-theme-black .pack-tracks button { grid-row: 1 / 3; width: 46px; height: 46px; border-radius: 0; }
  .pack-tracks strong,
  .pack-theme-black .pack-tracks strong { overflow: hidden; display: block; font-size: 1rem; white-space: nowrap; text-overflow: ellipsis; }
  .pack-tracks small { align-self: center; font-size: .58rem; }
  .mini-wave { grid-column: 2 / 4; grid-row: 2; height: 36px; }

  .fit-visual { order: 2; width: calc(100% + 2rem); margin: 0 -1rem; }
  .fit-visual img,
  .pack-theme-black .fit-visual img {
    aspect-ratio: .95;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 88%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 88%, transparent);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }

  .fit-copy { order: 1; }
  .fit-copy ul { margin: 1.8rem 0 1.5rem; }
  .fit-copy li { padding: 1rem 0; font-size: .9rem; line-height: 1.4; }
  .fit-copy .pack-button { width: 100%; min-height: 56px; justify-content: space-between; }

  .checkout,
  .pack-theme-black .checkout {
    min-height: 78svh;
    padding: 5.8rem 1rem;
  }

  .checkout-note { max-width: 30rem; margin: 1.6rem 0; font-size: .64rem; line-height: 1.7; }
  .checkout .pack-button { min-height: 58px; }
  .checkout small { max-width: 22rem; line-height: 1.5; }

  .faq summary,
  .pack-theme-black .faq summary {
    min-height: 68px;
    gap: 1rem;
    padding: 1.1rem 0;
    font-size: .72rem;
    line-height: 1.45;
  }

  .faq details > div { padding-right: 1.5rem; font-size: .88rem; }

  .pack-footer {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 2.5rem 1rem calc(2.5rem + env(safe-area-inset-bottom));
  }

  .success-checkout { min-height: 100svh; padding-top: calc(8rem + env(safe-area-inset-top)); }
  .success-checkout h1 { font-size: clamp(3.1rem, 14.8vw, 4.6rem); }
}

@media (max-width: 380px) {
  .pack-hero h1,
  .pack-theme-black .pack-hero h1 { font-size: 3.45rem; }
  .product-stage,
  .pack-theme-black .product-stage { min-height: 410px; }
}
