.product-page {
  --accent: #efc18d;
  width: min(var(--maxw), 100%);
  margin-inline: auto;
  padding: clamp(6.3rem, 9vw, 8rem) var(--pad) 4rem;
}
.product--vikings-vs-trolls { --accent: #d1d79f; }
.product--becoming { --accent: #bbd4b5; }
.product--rydos { --accent: #88dcd2; }
.product--rydos .product-platform { color: #a5e6dd; }
.product--lantern-lane { --accent: #f6b94a; }
.product--lantern-lane .product-platform { color: #f8d58f; }
.product--alembic-tower { --accent: #e6b450; }
.product--alembic-tower .product-platform { color: #ffd27a; }
.product--tockwell { --accent: #d8b25c; }
.product--tockwell .product-platform { color: #f7f0df; }
.product--tibulu { --accent: #f6c64f; }
.product--tibulu .product-platform { color: #fdeeb8; }
.product--bunting-bay { --accent: #f26b5b; }
.product--bunting-bay .product-platform { color: #a9ddee; }
.product--baby-sounds { --accent: #f2c48d; }
.product--baby-sounds .product-platform { color: #c9d3ff; }
.back-link, .product-help a { text-decoration: underline; text-underline-offset: .24em; }
.back-link { display: inline-block; color: var(--bone-dim); margin-bottom: 1.15rem; font-size: .95rem; }
.product-page :is(a,button,video):focus-visible { outline: 3px solid var(--terracotta); outline-offset: 4px; }
.product-hero {
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end;
  min-height: clamp(27rem, 44vw, 36rem); padding: clamp(1.6rem, 5.2vw, 4.6rem);
  border-radius: .8rem; color: #fff8eb; background: #132225;
}
.product-art, .product-hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.product-art { object-fit: cover; object-position: 64% center; z-index: -2; }
.product-hero::after {
  content: ""; z-index: -1;
  background: linear-gradient(90deg, #0b161bf2 0%, #0b161bdc 23%, #0b161b8f 50%, transparent 82%), linear-gradient(0deg,#04101777,transparent 70%);
}
.product-copy { position: relative; max-width: 36rem; }
.product-icon { width: 3.6rem; height: 3.6rem; border-radius: 22%; box-shadow: 0 0 0 1px #ffffff40; }
.product-platform, .product-label { margin: 1.4rem 0 .55rem; font: 500 .875rem/1.45 var(--font-mono); }
.product-platform { color: #f0cfac; }
.product--vikings-vs-trolls .product-platform { color: #e1e9b7; }
.product-page :is(h1,h2,h3) { margin: 0; font-family: var(--font-display); font-weight: 450; line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.product-hero h1 { font-size: clamp(3rem,6.5vw,6.1rem); }
.product-intro { max-width: 37ch; margin: 1rem 0 0; font-size: clamp(1.1rem,1.7vw,1.36rem); line-height: 1.48; }
.store-options { display: flex; align-items: center; gap: .8rem 1.15rem; flex-wrap: wrap; margin-top: 1.65rem; }
.store-download { display: inline-flex; align-items: center; min-height: 46px; padding: .55rem 1.1rem; background: #fff8eb; border-radius: .45rem; color: #151916; font-weight: 700; }
.store-download:hover { background: var(--accent); }
.store-soon { font-size: .91rem; }
.store-pending { display: inline-flex; align-items: center; min-height: 46px; padding: .55rem 1.1rem; border: 1px dashed #fff8eb99; border-radius: .45rem; font-weight: 600; }
.product--becoming .product-hero { color: #203d30; background: radial-gradient(at 20% 20%,#faf7e9,#d7debf); align-items: center; }
.product--becoming .product-art { inset: auto -9% -20% auto; width: 53%; height: 125%; object-fit: contain; opacity: .72; }
.product--becoming .product-hero::after { display: none; }
.product--becoming .product-copy { max-width: 58%; }
.product--becoming .product-platform { color: #3e5946; }
.product--becoming .store-download { background: #224332; color: #fff; }
.product--becoming .store-download:hover { background: #385c46; }
.hero-device { position: absolute; top: 10%; right: 11%; width: min(22%, 15rem); padding: .35rem; border-radius: 2rem; background: #252d27; box-shadow: 0 1.4rem 2.5rem #2d482b42; transform: rotate(4deg); }
.hero-device img { width: 100%; height: auto; border-radius: 1.65rem; }
.product-facts { margin-top: clamp(1.5rem,3vw,2.4rem); }
.product-facts dl { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.25rem clamp(1rem,2.5vw,2.2rem); margin: 0; padding-block: 1.25rem; border-block: 1px solid var(--line); }
.product-facts dt { color: var(--accent); font: 500 .8rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.product-facts dd { margin: .4rem 0 0; color: var(--bone); font-size: 1.02rem; line-height: 1.45; }
.product-video { display: grid; grid-template-columns: minmax(0,.72fr) minmax(0,1.6fr); gap: clamp(1.5rem,5vw,4.4rem); align-items: center; margin-top: clamp(3rem,7vw,6rem); }
.product-label { color: var(--accent); margin: 0 0 .65rem; }
.product-page h2 { font-size: clamp(2.25rem,4.5vw,4.25rem); }
.feature-copy > p:last-child, .product-shots p { color: var(--bone-dim); font-size: 1rem; line-height: 1.55; margin: .85rem 0 0; }
.product-video video { display: block; width: 100%; border-radius: .6rem; background: #151714; aspect-ratio: 1160 / 534; object-fit: contain; }
.product-gallery { margin-block: clamp(3rem,7vw,6rem); }
.product-shots { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1rem,2.5vw,2.2rem); margin-top: 1.75rem; }
.product-shots figure { margin: 0; }
/* Landscape games: two wide columns keep the HUD legible. */
:is(.product--viking-tower,.product--vikings-vs-trolls) .product-shots { grid-template-columns: repeat(2,minmax(0,1fr)); }
:is(.product--viking-tower,.product--vikings-vs-trolls) .shot-link img { aspect-ratio: 2868 / 1320; object-fit: cover; }
.product--becoming .product-shots { grid-template-columns: repeat(4,minmax(0,1fr)); }
.shot-link { width: 100%; padding: 0; border: 0; cursor: zoom-in; display: grid; place-items: center; background: #201e1b; overflow: hidden; border-radius: .5rem; }
.shot-link img { width: 100%; aspect-ratio: 1.83; object-fit: contain; }
.product--becoming .shot-link { background: #dbe0cd; padding: clamp(1rem,2vw,1.8rem); }
.product--becoming .shot-link img { width: min(100%, 13rem); height: auto; aspect-ratio: auto; border-radius: 1.3rem; box-shadow: 0 .5rem 1.3rem #28332129; }
.product-shots figcaption { margin-top: 1.2rem; }
.product-shots h3 { font-size: clamp(1.5rem,2.6vw,2.1rem); }
.product-shots p { margin: .5rem 0 0; }
.demo-jump { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; text-decoration: underline; text-underline-offset: .24em; }
#demo-title { scroll-margin-top: 6rem; }
.workout-demos { margin-top: clamp(3rem,7vw,6rem); }
.workout-demos p { margin: .75rem 0 0; color: var(--bone-dim); line-height: 1.55; }
.demo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(1.25rem,3vw,2.5rem); margin-top: 1.5rem; }
.demo-grid figure { margin: 0; }
.demo-grid h3 { margin-top: 1.1rem; font-size: clamp(1.5rem,2.6vw,2.1rem); }
.demo-player, .product--rydos .shot-link { display: grid; place-items: center; padding: clamp(.8rem,2vw,1.5rem); border-radius: .6rem; background: #112925; }
.demo-player video { width: min(100%,15.5rem); height: auto; border-radius: .6rem; background: #091317; }
.product--rydos .shot-link img { width: min(100%,13rem); height: auto; aspect-ratio: auto; border-radius: .7rem; }
.product--lantern-lane .shot-link { padding: clamp(.8rem,2vw,1.5rem); background: radial-gradient(at 50% 30%,#4e2a58,#241f48); }
.product--lantern-lane .shot-link img { width: min(100%,13rem); height: auto; aspect-ratio: auto; border-radius: 1.1rem; box-shadow: 0 .6rem 1.4rem #0b061a66; }
.product--alembic-tower .shot-link { padding: clamp(.8rem,2vw,1.5rem); background: radial-gradient(at 50% 30%,#6b3a1e,#1c120c); }
.product--tockwell .shot-link { padding: clamp(.8rem,2vw,1.5rem); background: radial-gradient(at 50% 30%,#3b6a99,#1d2c40); }
.product--tockwell .shot-link img { width: min(100%,13rem); height: auto; aspect-ratio: auto; border-radius: 1.1rem; box-shadow: 0 .6rem 1.4rem #0b142066; }
.product--tockwell :is(.step-shot,.feature-shot) { background: color-mix(in srgb, #2f5d8c 55%, #141312); }
.product--tibulu .shot-link { padding: clamp(.8rem,2vw,1.5rem); background: radial-gradient(at 50% 30%,#6fb7e3,#2c5f8a); }
.product--tibulu .shot-link img { width: min(100%,13rem); height: auto; aspect-ratio: auto; border-radius: 1.1rem; box-shadow: 0 .6rem 1.4rem #10263a66; }
.product--tibulu :is(.step-shot,.feature-shot) { background: color-mix(in srgb, #4c97cb 45%, #141312); }
.product--bunting-bay .shot-link { padding: clamp(.8rem,2vw,1.5rem); background: radial-gradient(at 50% 30%,#4fb3c8,#1f3b57); }
.product--bunting-bay .shot-link img { width: min(100%,13rem); height: auto; aspect-ratio: auto; border-radius: 1.1rem; box-shadow: 0 .6rem 1.4rem #0d1f2e66; }
.product--baby-sounds .shot-link { padding: clamp(.8rem,2vw,1.5rem); background: radial-gradient(at 50% 30%,#2a315c,#0b1020); }
.product--baby-sounds .shot-link img { width: min(100%,13rem); height: auto; aspect-ratio: auto; border-radius: 1.1rem; box-shadow: 0 .6rem 1.4rem #03050c80; }
.product--alembic-tower .shot-link img { width: min(100%,13rem); height: auto; aspect-ratio: auto; border-radius: 1.1rem; box-shadow: 0 .6rem 1.4rem #0a050266; }
@media (max-width: 600px) {
  .demo-grid { grid-template-columns: 1fr; gap: 2.25rem; }
}
.product-help { display: flex; flex-wrap: wrap; gap: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
@media (max-width: 960px) {
  .product--becoming .product-shots { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .product-video, .product-shots, :is(.product--viking-tower,.product--vikings-vs-trolls,.product--becoming) .product-shots { grid-template-columns: 1fr; }
  .product-facts dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-shots { gap: 2.25rem; }
  .product-hero { padding: 11rem 1.35rem 1.6rem; min-height: 30rem; }
  .product-hero::after { background: linear-gradient(0deg,#0a161bf7 0%,#0a161be8 42%,#0a161b59 76%,transparent); }
  .product-copy { max-width: 32rem; }
  .product--rydos .product-hero { display: block; padding: 0; min-height: 0; background: #0b1524; }
  .product--rydos .product-art { position: static; display: block; height: auto; aspect-ratio: 1440 / 760; }
  .product--rydos .product-hero::after { display: none; }
  .product--rydos .product-copy { margin-top: -1.65rem; padding: 0 1.35rem 1.65rem; }
  .product--becoming .product-copy { max-width: none; }
  .product--becoming .product-hero { padding-top: 7.6rem; }
  .product--becoming .product-art { inset: -12% -15% auto auto; height: 65%; width: 68%; }
  .hero-device { display: none; }
  :is(.product--lantern-lane,.product--alembic-tower,.product--baby-sounds,.product--bunting-bay,.product--tockwell,.product--tibulu) .shot-link img { width: min(70%,15rem); }
  .product--becoming .shot-link img { width: min(70%, 15rem); }
}

html:has(.shot-viewer[open]) { overflow: hidden; }
.shot-viewer {
  width: min(74rem, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100dvh - 1.5rem);
  padding: 0;
  border: 1px solid #ffffff2b;
  border-radius: .8rem;
  color: var(--bone);
  background: var(--ink-2);
  box-shadow: 0 1.5rem 6rem #0009;
}
.shot-viewer::backdrop { background: rgb(9 8 8 / .9); }
.shot-viewer[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
:is(.product--becoming,.product--rydos,.product--lantern-lane,.product--alembic-tower,.product--baby-sounds,.product--bunting-bay,.product--tockwell,.product--tibulu) .shot-viewer { width: min(35rem, calc(100vw - 2rem)); }
.viewer-bar, .viewer-footer, .viewer-arrows, .viewer-close {
  display: flex; align-items: center; gap: .7rem;
}
.viewer-bar, .viewer-footer { padding: .6rem 1rem; justify-content: space-between; }
.viewer-bar { border-bottom: 1px solid var(--line); font-weight: 600; }
.shot-viewer button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding: 0 .65rem;
  color: inherit; background: transparent; border: 1px solid #ffffff38; border-radius: .4rem;
  font: inherit; font-size: .95rem; cursor: pointer;
}
.shot-viewer button:hover { background: #ffffff14; }
.viewer-close span { font-size: 1.3rem; }
.viewer-stage { min-height: 0; overflow: hidden; background: #090909; touch-action: pan-y pinch-zoom; }
.viewer-stage img { width: 100%; height: 100%; max-height: 72dvh; object-fit: contain; user-select: none; }
.viewer-footer { border-top: 1px solid var(--line); }
.viewer-title { font: 500 1.15rem/1.25 var(--font-display); }
.viewer-position { margin-right: .5rem; color: var(--bone-dim); font: .875rem var(--font-mono); }
.viewer-caption { margin: .25rem 0 0; font-size: 1rem; line-height: 1.4; color: var(--bone-dim); }
.viewer-arrows { flex-shrink: 0; gap: .4rem; }
.viewer-arrows span { font: 1.9rem/1 var(--font-body); }
@media (max-width: 600px) {
  .shot-viewer, :is(.product--becoming,.product--rydos,.product--lantern-lane,.product--alembic-tower,.product--baby-sounds,.product--bunting-bay,.product--tockwell,.product--tibulu) .shot-viewer { width: calc(100vw - 1rem); }
  .viewer-bar, .viewer-footer { padding: .45rem .7rem; }
  .viewer-footer { align-items: start; }
}
@media (max-height: 450px) {
  .viewer-bar, .viewer-footer { padding-block: .12rem; }
  .viewer-caption { display: none; }
}

/* Rich sections: each one is optional and only rendered when the product has it. */
.product-page section > h2 { margin-bottom: 1.4rem; }
.product-preview, .product-steps, .product-features, .product-gamecenter, .product-access, .product-faq, .product-press, .product-related { margin-top: clamp(3rem,7vw,6rem); }
.product-preview { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.8fr); gap: clamp(1.5rem,5vw,4rem); align-items: center; }
.preview-copy > p:last-child { color: var(--bone-dim); line-height: 1.55; max-width: 36ch; }
.preview-phone { position: relative; justify-self: center; width: min(100%,15rem); aspect-ratio: 864 / 1878; padding: .45rem; border-radius: 2rem; background: #111; box-shadow: 0 1.2rem 2.6rem #0008; }
.preview-phone img { position: absolute; inset: .45rem; width: calc(100% - .9rem); height: calc(100% - .9rem); object-fit: cover; border-radius: 1.6rem; opacity: 0; animation: preview-fade 16s infinite both; }
.preview-phone img:nth-child(1) { opacity: 1; animation-delay: -1s; }
.preview-phone img:nth-child(2) { animation-delay: 3s; }
.preview-phone img:nth-child(3) { animation-delay: 7s; }
.preview-phone img:nth-child(4) { animation-delay: 11s; }
@keyframes preview-fade { 0% { opacity: 0; } 5%, 25% { opacity: 1; } 30%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .preview-phone img { animation: none; }
  .preview-phone img:not(:first-child) { display: none; }
}

.product-steps ol { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(1rem,2.5vw,2rem); margin: 0; padding: 0; }
.product-steps li { counter-increment: step; }
.product-steps li h3 { font-size: clamp(1.35rem,2.2vw,1.75rem); margin-top: .9rem; }
.product-steps li h3::before { content: counter(step) ". "; color: var(--accent); }
.product-steps li p, .feature-text p, .product-access p, .product-faq p, .press-copy p { color: var(--bone-dim); line-height: 1.55; margin: .5rem 0 0; }
.step-shot, .feature-shot { display: grid; place-items: center; padding: clamp(.6rem,1.6vw,1.1rem); border-radius: .6rem; background: color-mix(in srgb, var(--accent) 16%, #141312); overflow: hidden; }
.step-shot img, .feature-shot img { width: min(100%,11rem); height: auto; aspect-ratio: 864 / 1878; object-fit: cover; border-radius: .9rem; }
.step--text { padding-top: .2rem; border-top: 2px solid var(--accent); }
:is(.product--vikings-vs-trolls,.product--viking-tower) .step-shot img,
:is(.product--vikings-vs-trolls,.product--viking-tower) .feature-shot img { width: 100%; aspect-ratio: 2.17; border-radius: .4rem; }

.product-features { display: grid; gap: clamp(1.5rem,3vw,2.5rem); }
.feature { display: grid; grid-template-columns: minmax(0,.55fr) minmax(0,1fr); gap: clamp(1.25rem,4vw,3rem); align-items: center; }
.feature:not(.feature--image) { grid-template-columns: 1fr; max-width: 44rem; border-left: 2px solid var(--accent); padding-left: 1.2rem; }
.feature--image:nth-of-type(even) .feature-shot { order: 2; }
.feature-text h3 { font-size: clamp(1.6rem,2.8vw,2.4rem); }
.feature-shot { justify-self: start; width: 100%; max-width: 19rem; }
:is(.product--vikings-vs-trolls,.product--viking-tower) .feature-shot { max-width: none; }

.gc-lead { max-width: 48rem; color: var(--bone-dim); line-height: 1.55; }
.gc-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: clamp(1.5rem,4vw,3rem); margin-top: 1.5rem; }
.gc-art { list-style: none; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; margin: 0; padding: 0; }
.gc-art img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 .5rem 1.2rem #0007; }
.gc-art strong { display: block; margin-top: .3rem; font-size: .95rem; line-height: 1.3; }
.gc-tier { display: block; margin-top: .8rem; color: var(--accent); font: 500 .75rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.gc-lists h3 { font-size: 1.25rem; margin-top: 0; }
.gc-lists h3 + * { margin-bottom: 1.4rem; }
.gc-tiers { display: grid; grid-template-columns: repeat(5,auto); gap: .3rem 1rem; margin: .7rem 0 0; }
.gc-tiers dt { color: var(--bone-dim); font: .78rem/1.3 var(--font-mono); }
.gc-tiers dd { margin: 0; font: 450 1.6rem/1.2 var(--font-display); }
.gc-boards { margin: .6rem 0 0; padding-left: 1.1rem; line-height: 1.7; }

.product-access ul { list-style: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.4rem clamp(1.5rem,4vw,3rem); margin: 0; padding: 0; }
.product-access h3 { font-size: 1.35rem; }

.product-faq details { border-top: 1px solid var(--line); padding: .9rem 0; }
.product-faq details:last-of-type { border-bottom: 1px solid var(--line); }
.product-faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style-position: outside; min-height: 44px; display: flex; align-items: center; }
.product-faq summary:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 4px; }

.product-press { display: grid; grid-template-columns: auto minmax(0,1fr) minmax(0,1fr); gap: clamp(1rem,3vw,2.5rem); align-items: start; padding: clamp(1.2rem,3vw,2rem); border: 1px solid var(--line); border-radius: .8rem; }
.press-icon { width: 96px; height: 96px; border-radius: 22%; }
.press-copy h2 { font-size: clamp(1.8rem,3vw,2.6rem); margin-bottom: 0; }
.press-download { display: inline-flex; flex-wrap: wrap; gap: .5rem; align-items: center; min-height: 46px; margin-top: 1.1rem; padding: .55rem 1.1rem; border-radius: .45rem; background: var(--accent); color: #151916; font-weight: 700; }
.press-size { font: 500 .78rem var(--font-mono); opacity: .8; }
.press-facts { display: grid; gap: .55rem; margin: 0; }
.press-facts div { display: grid; grid-template-columns: 8.5rem minmax(0,1fr); gap: .8rem; }
.press-facts dt { color: var(--bone-dim); font: .8rem/1.5 var(--font-mono); }
.press-facts dd { margin: 0; line-height: 1.45; }
.press-facts a { text-decoration: underline; text-underline-offset: .2em; }

.product-related ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fill,minmax(14rem,1fr)); gap: .8rem; margin: 0; padding: 0; }
.product-related a { display: flex; gap: .9rem; align-items: center; min-height: 72px; padding: .7rem; border: 1px solid var(--line); border-radius: .6rem; color: inherit; }
.product-related a:hover { border-color: var(--accent); }
.product-related img { width: 56px; height: 56px; border-radius: 22%; flex: none; }
.product-related strong { display: block; }
.product-related small { color: var(--bone-dim); font: .75rem/1.4 var(--font-mono); }

@media (max-width: 960px) {
  .product-steps ol { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gc-grid, .product-press { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .product-preview, .feature, .product-access ul { grid-template-columns: 1fr; }
  /* Steps swipe sideways on phones instead of stacking four tall screenshots. */
  .product-steps ol { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .6rem; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad); }
  .product-steps li { flex: 0 0 78%; scroll-snap-align: start; }
  .feature-shot { max-width: 15rem; justify-self: center; }
  .feature--image:nth-of-type(even) .feature-shot { order: 0; }
  .gc-art { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gc-tiers { grid-template-columns: repeat(3,auto); }
  .press-facts div { grid-template-columns: 1fr; gap: .1rem; }
}
