/* The composition is shared; each product supplies its own art, palette and voice. */
.product-showcase {
  --sand-coral: #f2735f; --sand-tangerine: #f6a446; --sand-sun: #f7cf55; --sand-teal: #3fb3a0; --sand-violet: #8d62c6;
  --tone-mint: #dff3ec; --tone-butter: #fff0c4; --tone-lilac: #ece2fb; --tone-rose: #fde2ea; --tone-peach: #ffe4d0; --tone-sky: #dfecfb;
  --showcase-text: #4a3843; --showcase-page: color-mix(in srgb, var(--showcase-paper) 60%, white);
  background: var(--showcase-page); color: var(--showcase-text); overflow-x: clip;
}
.product-showcase .page-width { width: min(1240px, calc(100% - 48px)); }
.product-showcase main { display: grid; }
/* Sections run edge to edge; content inside stays on the page grid. */
.product-showcase :is(.showcase-hero, .showcase-film, .showcase-closing) { margin-inline: calc(50% - 50vw); padding-inline: max(24px, calc(50vw - 620px)); }
.showcase-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.product-showcase .visually-hidden, .showcase-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.interior.product-showcase .site-header { min-height: 60px; padding-block: 4px; border: 0; gap: 0; flex-wrap: nowrap; }
body.product-showcase .site-header .wordmark.studio-wordmark { display: flex; align-items: center; width: 108px; min-height: 44px; }
.product-showcase h1, .product-showcase h2, .product-showcase h3 { color: var(--showcase-ink); font-family: var(--serif); font-weight: 500; letter-spacing: -.04em; }
.product-showcase .eyebrow { margin-bottom: 10px; color: inherit; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.product-showcase :is(a, summary, button):focus-visible { outline: 3px solid #813f2b; outline-offset: 5px; }

/* Hero */
.product-showcase .showcase-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; min-height: 640px; margin-block: 0; padding-block: 40px 150px; overflow: hidden; color: var(--showcase-ink); isolation: isolate;
  background: radial-gradient(40% 50% at 78% 45%, #ffffffb0, transparent 70%), radial-gradient(35% 45% at 5% 80%, #ffd6c2, transparent 70%), radial-gradient(35% 40% at 70% 85%, #f9d3e2, transparent 70%), linear-gradient(180deg, var(--showcase-page), #fde6d4 30%, #fff0e2 75%, var(--showcase-page)); }
.product-showcase .product-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--showcase-ink); font-size: 17px; font-weight: 650; }
.product-showcase .product-kicker span { color: inherit; opacity: .8; border-color: color-mix(in srgb, var(--showcase-ink) 30%, transparent); }
.showcase-icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 10px 24px -8px #55213e66; }
.product-showcase h1 { font-size: clamp(46px, 6.4vw, 84px); line-height: .98; letter-spacing: -.055em; }
.showcase-pitch { max-width: 440px; margin-top: 18px; font-size: 19px; line-height: 1.5; }
.product-showcase .product-actions { gap: 14px; margin-top: 30px; }
.store-badge { display: inline-flex; height: 56px; overflow: hidden; border-radius: 10px; transition: transform .2s ease, box-shadow .2s ease; }
.store-badge img { display: block; width: auto; height: 100%; max-width: none; }
.store-badge-google img { height: calc(56px * 250 / 168); margin: calc(56px * -41 / 168); }
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px #2e102699; }
.product-showcase .primary-action.store-badge { min-height: 0; padding: 0; gap: 0; background: none; }
.product-showcase .product-scan { margin-top: 18px; }
.product-showcase .product-scan > summary { color: inherit; }
.showcase-stack { position: relative; height: 520px; }
.showcase-card { position: absolute; top: 50%; left: 50%; width: 230px; margin: 0; overflow: hidden; border: 6px solid #fff; border-radius: 30px; background: #fff; box-shadow: 0 30px 60px -24px #55213e80; transform: translate(-50%, -50%) translateX(var(--x, 0)) rotate(var(--r, 0deg)); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.showcase-card img { display: block; width: 100%; height: auto; }
.card-left { --x: -150px; --r: -9deg; }
.card-right { --x: 150px; --r: 9deg; }
.card-center { z-index: 2; width: 260px; }
.showcase-stack:hover .card-left { --x: -175px; --r: -12deg; }
.showcase-stack:hover .card-right { --x: 175px; --r: 12deg; }
.showcase-sparkle { position: absolute; z-index: 3; width: 26px; height: 26px; fill: var(--showcase-ink); }
.sparkle-1 { top: 4%; left: 12%; } .sparkle-2 { top: 14%; right: 6%; width: 18px; height: 18px; fill: var(--sand-coral); }
.sparkle-3 { bottom: 8%; left: 4%; width: 16px; height: 16px; fill: var(--sand-violet); } .sparkle-4 { bottom: 2%; right: 16%; }
.sand-ribbon { position: absolute; left: 0; width: 100%; height: 120px; pointer-events: none; }
.ribbon-hero { bottom: 0; z-index: -1; }

/* Gameplay film */
.showcase-film { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; padding-block: 96px; overflow: hidden; color: #fff1e6;
  background: radial-gradient(45% 60% at 78% 50%, #f6a44640, transparent 70%), radial-gradient(40% 50% at 10% 90%, #3fb3a033, transparent 70%), linear-gradient(160deg, #4a1a39, #2b0f24); }
.showcase-film h2 { color: #fff7ee; font-size: clamp(44px, 5.4vw, 72px); line-height: 1; }
.showcase-film #gameplay-description { max-width: 360px; margin-top: 16px; color: #f3dccd; font-size: 18px; line-height: 1.55; }
.showcase-steps { display: grid; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; counter-reset: step; }
.showcase-steps li { display: flex; align-items: center; gap: 14px; counter-increment: step; font: 500 24px/1.2 var(--serif); }
.showcase-steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--step, var(--sand-coral)); color: #2b0f24; font: 700 17px var(--sans); }
.showcase-steps li:nth-child(2) { --step: var(--sand-sun); } .showcase-steps li:nth-child(3) { --step: var(--sand-teal); } .showcase-steps li:nth-child(4) { --step: var(--sand-violet); }
.showcase-phone { position: relative; isolation: isolate; justify-self: center; width: min(300px, 100%); margin: 0; padding: 10px; border-radius: 48px; background: #170911; box-shadow: 0 0 0 2px #ffffff26, 0 40px 80px -24px #000c; }
.showcase-phone::before { content: ""; position: absolute; inset: -50px; z-index: -1; border-radius: 50%; background: conic-gradient(from 90deg, var(--sand-coral), var(--sand-tangerine), var(--sand-sun), var(--sand-teal), var(--sand-violet), var(--sand-coral)); filter: blur(60px); opacity: .45; }
.product-showcase .showcase-phone video { display: block; width: 100%; height: auto; aspect-ratio: var(--gameplay-ratio); border-radius: 38px; background: #302421; }
.showcase-toggle, .showcase-mute { position: absolute; bottom: 22px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #170911cc; cursor: pointer; }
.showcase-toggle { right: 22px; }
.showcase-mute { left: 22px; color: #fff; padding: 0; }
.showcase-mute svg { display: block; width: 22px; height: 22px; margin: auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.showcase-mute[data-muted="true"] .sound-on, .showcase-mute[data-muted="false"] .sound-off { display: none; }
.showcase-toggle::before, .showcase-toggle::after { content: ""; position: absolute; top: 15px; width: 4px; height: 14px; border-radius: 2px; background: #fff; }
.showcase-toggle::before { left: 16px; } .showcase-toggle::after { left: 24px; }
.showcase-toggle[data-state="paused"]::before { left: 17px; width: 0; height: 0; border-radius: 0; border-block: 7px solid transparent; border-left: 12px solid #fff; background: none; }
.showcase-toggle[data-state="paused"]::after { display: none; }
.sparkle-5 { top: 12%; left: 46%; fill: var(--sand-sun); } .sparkle-6 { bottom: 10%; left: 6%; width: 18px; height: 18px; fill: var(--sand-coral); }

/* Features: open rows, screenshots floating on the page */
.showcase-gallery { padding-block: 96px 40px; }
.showcase-section-heading { margin-bottom: 24px; text-align: center; color: var(--showcase-ink); }
.showcase-section-heading h2 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.05; }
.showcase-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; max-width: 1040px; margin-inline: auto; }
.bento-tile { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; padding-block: 8px; }
.bento-tile:nth-child(even) .tile-stage { order: -1; }
.tone-mint { --glow: #a8e6cf; } .tone-butter { --glow: #ffdc7a; } .tone-lilac { --glow: #d2bdf5; }
.tone-rose { --glow: #f8b8cc; } .tone-peach { --glow: #ffc49c; } .tone-sky { --glow: #b4d3f7; }
.tile-copy { max-width: 400px; }
.bento-tile:nth-child(even) .tile-copy { justify-self: start; }
.bento-tile h3 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.04; }
.tile-stat { display: block; font-size: clamp(110px, 13vw, 180px); font-weight: 600; line-height: .82; letter-spacing: -.06em; background: linear-gradient(100deg, #d0452f, #c0602a 45%, #7a3fb5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bento-tile p { margin-top: 12px; font-size: 18px; line-height: 1.5; }
.tile-chip { color: #b4432e; font-size: 13px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tile-stage { position: relative; display: grid; place-items: center; height: 470px; isolation: isolate; }
.tile-stage::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, var(--glow) 0, transparent 68%); opacity: .85; }
.tile-shot { width: 250px; height: auto; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border-radius: 30px; box-shadow: 0 34px 60px -28px #55213e99; rotate: -4deg; }
.bento-tile:nth-child(even) .tile-shot { rotate: 4deg; }
.tile-small { grid-column: auto; display: block; padding-block: 48px; text-align: center; }
.tile-small .tile-copy { max-width: none; }
.tile-small h3 { font-size: clamp(28px, 2.8vw, 38px); }
.tile-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; margin: 18px 0 0; padding: 0; list-style: none; }
.tile-chips li { color: var(--showcase-ink); font: 500 20px/1.4 var(--serif); }
.tile-chips li + li::before { content: "\00B7"; margin-inline: 12px; color: var(--sand-coral); }
.tile-swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.tile-swatches li { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #ffffff8c 0 12%, transparent 30%), var(--swatch); box-shadow: inset 0 -4px 0 #0000001f, 0 6px 12px -6px #55213e80; transition: transform .25s ease; }
.tile-swatches li:hover { transform: translateY(-4px) scale(1.08); }

/* Closing */
.showcase-closing { position: relative; display: grid; justify-items: center; gap: 18px; padding-block: 150px 96px; overflow: hidden; text-align: center; isolation: isolate; background: radial-gradient(45% 60% at 50% 70%, #fbd9e4, transparent 70%), linear-gradient(180deg, var(--showcase-page), #fde6d4 60%, var(--showcase-page)); }
.ribbon-closing { top: 0; z-index: -1; transform: scaleY(-1); }
.showcase-closing .showcase-icon { width: 96px; height: 96px; border-radius: 22px; }
.showcase-closing h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.05; }
.showcase-closing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }

/* Footer */
.interior.product-showcase .showcase-footer { gap: 4px 24px; padding-block: 12px; background: none; }
.product-showcase .showcase-footer .footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.product-showcase .showcase-footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }

@media (prefers-reduced-motion: no-preference) {
  .showcase-intro { animation: showcase-arrive 700ms ease-out both; }
  .showcase-card { animation: showcase-arrive 800ms 120ms ease-out both; }
  .card-center { animation: showcase-arrive 800ms 120ms ease-out both, showcase-float 6s 1s ease-in-out infinite; }
  .showcase-sparkle { animation: showcase-twinkle 3s ease-in-out infinite; }
  .sparkle-2, .sparkle-5 { animation-delay: 1s; } .sparkle-3, .sparkle-6 { animation-delay: 2s; }
  @supports (animation-timeline: view()) {
    .bento-tile, .showcase-closing .showcase-icon, .showcase-film .showcase-phone { animation: showcase-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
  @keyframes showcase-arrive { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
  @keyframes showcase-float { 50% { translate: 0 -10px; } }
  @keyframes showcase-twinkle { 50% { opacity: .35; scale: .7; } }
  @keyframes showcase-rise { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
}
@media (max-width: 860px) {
  .product-showcase .page-width { width: calc(100% - 24px); }
  .product-showcase .showcase-hero { grid-template-columns: 1fr; gap: 8px; min-height: 0; padding: 24px 14px 110px; text-align: center; }
  .product-showcase :is(.showcase-hero, .showcase-film, .showcase-closing) { padding-inline: 14px; }
  .product-showcase .product-kicker { flex-direction: column; gap: 10px; }
  .product-showcase .product-kicker span { border: 0; padding: 0; }
  .showcase-pitch, .product-showcase .product-platform { margin-inline: auto; font-size: 16px; }
  .product-showcase .product-platform { font-size: 12px; }
  .product-showcase .product-actions { justify-content: center; gap: 10px; }
  .store-badge { height: 48px; }
  .store-badge-google img { height: calc(48px * 250 / 168); margin: calc(48px * -41 / 168); }
  .product-showcase .product-scan { display: none; }
  .showcase-stack { height: 380px; }
  .showcase-card { width: 150px; border-width: 4px; border-radius: 22px; }
  .card-center { width: 172px; }
  .card-left, .showcase-stack:hover .card-left { --x: -96px; } .card-right, .showcase-stack:hover .card-right { --x: 96px; }
  .showcase-film { grid-template-columns: 1fr; gap: 40px; padding-block: 64px; text-align: center; }
  .showcase-steps { justify-content: center; }
  .showcase-phone { width: min(270px, 80%); }
  .showcase-gallery { padding-block: 64px 24px; }
  .showcase-bento { gap: 0 16px; }
  .bento-tile { grid-template-columns: 1fr; gap: 8px; padding-block: 28px; text-align: center; }
  .bento-tile:nth-child(even) .tile-stage { order: 0; }
  .tile-copy, .bento-tile:nth-child(even) .tile-copy { justify-self: center; }
  .tile-stage { height: 400px; }
  .tile-stage::before { width: 320px; height: 320px; }
  .tile-shot { width: 200px; }
  .tile-small { padding-block: 24px; }
  .tile-small h3 { font-size: 24px; }
  .tile-chips li { font-size: 17px; }
  .tile-chips li + li::before { margin-inline: 7px; }
  .tile-swatches { gap: 8px; }
  .tile-swatches li { width: 28px; height: 28px; }
  .showcase-closing { padding-block: 110px 56px; }
}
