/* Menus product page (PURP+ 05). PURP+ pages wear the dark theme (owner rule); Admin opens in the shared
   full-screen viewer like every other page. The hero's own top colour runs up under the fixed
   navigation (and Safari's overscroll), so no dark strip sits between them. */
html:has(> body.menu-page) { background: var(--stage-raised); }
.menu-page { background: linear-gradient(var(--stage-raised), var(--stage-raised)) top / 100% 480px no-repeat, var(--stage); }
/* White type on the dark stage only: the light product bar keeps its own dark title. */
.menu-page main { color: #fff; }
.menu-page .product-nav__inner { width: var(--content); max-width: none; }

.menu-eyebrow { color: #f5c46b; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.menu-heading { max-width: 950px; margin: 0 auto 52px; text-align: center; }
.menu-heading h2 { margin-top: 18px; font-size: clamp(38px, 4.8vw, 64px); line-height: 1; font-weight: 620; letter-spacing: -.056em; text-wrap: balance; }
.menu-heading p { max-width: 720px; margin: 20px auto 0; color: #d0bddf; font-size: 19px; line-height: 1.45; text-wrap: pretty; }

/* One window: the title, the store TV and the three lines fit the first screen. */
.menu-hero { --hero-stage-height: clamp(240px, calc(100svh - 470px), 620px); position: relative; isolation: isolate; padding: 12px var(--gutter) 70px; text-align: center; color-scheme: dark; background: radial-gradient(ellipse 60% 56% at 50% 62%, #5b2a9c88, transparent 76%), linear-gradient(180deg, var(--stage-raised), var(--stage)); }
.menu-hero h1 { font-size: clamp(48px, 5.8vw, 80px); line-height: .98; font-weight: 650; letter-spacing: -.065em; text-wrap: balance; }
.menu-hero__tagline { margin-top: 4px; font-size: clamp(24px, 2.6vw, 36px); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; }
.menu-hero__lede { max-width: 780px; margin: 18px auto 0; color: var(--pdb-purp-lavender, #d9cbff); font-size: 19px; line-height: 1.4; letter-spacing: -.02em; text-wrap: balance; }
.menu-hero__stage { width: min(100%, calc(var(--hero-stage-height) * 16 / 9)); margin: 26px auto 0; }

/* The store TV: a slim black bezel around the menu exactly as the screen shows it, turning its pages. */
.menu-tv { position: relative; margin: 0; }
.menu-tv__screen { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border: clamp(5px, .7vw, 10px) solid #0b0b0e; border-radius: 12px; background: #000; box-shadow: 0 0 0 1px #ffffff1f, 0 34px 90px #030007bb, 0 0 120px #f5c46b22, 0 0 160px #7c3aed44; }
.menu-tv__page { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.menu-tv__page.is-shown { opacity: 1; }
.menu-tv__stand { display: block; width: 22%; height: 10px; margin: 0 auto; border-radius: 0 0 8px 8px; background: linear-gradient(#1b1b21, #0b0b0e); box-shadow: 0 16px 30px #000a; }
@media (prefers-reduced-motion: reduce) { .menu-tv__page { transition: none; } }

/* Positioned so the TV's shadow (a positioned box) paints under it, not over it. */
.menu-hero__meaning { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: var(--content); margin: 22px auto 0; padding: 14px 24px; list-style: none; border-top: 1px solid #d9cbff40; border-bottom: 1px solid #d9cbff40; }
.menu-hero__meaning strong { display: block; font-size: 20px; font-weight: 620; letter-spacing: -.025em; }
.menu-hero__meaning span { display: block; margin-top: 5px; color: var(--pdb-purp-lavender, #d9cbff); font-size: 13px; line-height: 1.4; }

/* The two template editors, each in its own chapter. */
.menu-chapter { padding: 110px var(--gutter) 40px; color-scheme: dark; background: radial-gradient(ellipse 62% 30% at 50% 8%, #54207853, transparent 80%), var(--stage); }
.menu-chapter--paper { padding-top: 90px; padding-bottom: 100px; background: radial-gradient(ellipse 58% 34% at 50% 30%, #3b1a5c66, transparent 80%), var(--stage); }
.menu-film { position: relative; overflow: hidden; width: min(var(--content), 1180px); margin: 0 auto; border: 1px solid #ffffff26; border-radius: 16px; background: #f7f3fb; box-shadow: 0 30px 90px #030007aa, 0 0 110px #7c3aed44; }
.menu-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; }

/* What the screens do on their own, and what keeps every menu current. */
.menu-screens { padding: 100px var(--gutter) 80px; color-scheme: dark; background: radial-gradient(ellipse 65% 22% at 50% 0%, #54207853, transparent 80%), var(--stage); }
.menu-current { padding: 80px var(--gutter) 100px; color-scheme: dark; background: radial-gradient(ellipse 55% 40% at 50% 60%, #24103f, transparent 80%), var(--stage); }
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: min(var(--content), 1180px); margin: 0 auto; padding: 0; list-style: none; }
.menu-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.menu-grid li { padding: 26px 22px 24px; border: 1px solid #d9baf026; border-radius: 18px; background: linear-gradient(160deg, #ffffff0a, #ffffff03); }
.menu-grid li::before { content: attr(data-code); display: block; margin-bottom: 16px; color: #f5c46b; font-size: 11.5px; font-weight: 700; letter-spacing: .18em; }
.menu-grid strong { display: block; font-size: 20px; font-weight: 620; line-height: 1.2; letter-spacing: -.03em; }
.menu-grid span { display: block; margin-top: 9px; color: #cdb9dc; font-size: 15.5px; line-height: 1.45; }

.menu-finale { color-scheme: dark; color: #fff; padding-bottom: 100px; background: radial-gradient(ellipse 50% 45% at 50% 58%, #42186d, transparent 85%), var(--stage); }
.menu-finale h2 { font-size: clamp(38px, 4.8vw, 64px); letter-spacing: -.055em; }
.menu-finale > p { position: relative; margin-top: 20px; color: #ded0eb; font-size: 19px; }
.menu-finale .pos-link { color: #ead6fa; }
.menu-finale .pos-link:hover { color: #fff; }
.menu-finale .live-cta__actions { margin-top: 38px; }

@media (max-width: 1000px) {
  .menu-grid, .menu-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 734px) {
  .menu-page .product-nav__brand { display: none; }
  .menu-page .product-nav__title { font-size: 14px; }
  .menu-hero { padding-top: 28px; padding-bottom: 80px; }
  .menu-hero h1 { font-size: clamp(44px, 12vw, 68px); }
  .menu-hero__lede { margin-top: 16px; font-size: 17px; }
  .menu-tv__screen { border-radius: 8px; }
  .menu-hero__meaning { gap: 10px; margin-top: 16px; padding: 15px 0; }
  .menu-hero__meaning strong { font-size: 15px; line-height: 1.2; }
  .menu-hero__meaning span { font-size: 12px; }
  .menu-heading { margin-bottom: 36px; }
  .menu-heading h2 { font-size: clamp(34px, 9vw, 52px); }
  .menu-heading p { font-size: 17px; }
  .menu-chapter { padding-top: 80px; }
  .menu-film { border-radius: 10px; }
  .menu-screens, .menu-current { padding-top: 80px; padding-bottom: 80px; }
  .menu-grid, .menu-grid--four { grid-template-columns: 1fr; }
  .menu-finale { padding-bottom: 90px; }
  .menu-finale > p { font-size: 18px; }
}
