/* JenerOS product pages: same system as the home page, with their own hero and more life. */

/* Hero: ambient light, a big promise, and the dashboard tilted back in 3D that settles as you scroll. */
.product-page .hero { position: relative; isolation: isolate; padding-top: clamp(64px, 9vw, 128px); }
.product-page .hero::before { content: ''; position: absolute; z-index: -1; inset: -10% -20% auto; height: 120%; pointer-events: none;
  background: radial-gradient(40% 35% at 50% 18%, rgb(217 119 87 / 30%), transparent 70%),
              radial-gradient(30% 30% at 20% 60%, rgb(240 176 143 / 10%), transparent 70%),
              radial-gradient(30% 30% at 80% 65%, rgb(201 96 62 / 12%), transparent 70%); }
.product-page .product-name { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: linear-gradient(120deg, rgb(255 255 255 / 10%), rgb(255 255 255 / 3%) 40%, rgb(217 119 87 / 14%));
  box-shadow: inset 0 1px rgb(255 255 255 / 25%), inset 0 -1px rgb(0 0 0 / 30%), 0 6px 20px rgb(0 0 0 / 25%); }
.product-page .product-name::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #7bd88f; box-shadow: 0 0 0 3px rgb(123 216 143 / 20%), 0 0 10px #7bd88f; }
.product-page .hero h1 { font-size: clamp(48px, 7.6vw, 108px); max-width: 14ch; }
.product-page .hero h1 { animation: hero-rise 1s cubic-bezier(.16, 1, .3, 1) both; }
.product-page .hero .lede { animation: hero-rise 1s .08s cubic-bezier(.16, 1, .3, 1) both; }
.product-page .hero .actions { animation: hero-rise 1s .16s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } }

.product-page .product-hero-visual { position: relative; perspective: 1600px; margin-top: 12px; }
.product-page .product-hero-visual::before { content: ''; position: absolute; z-index: -1; inset: 10% 6% -4%; border-radius: 50%; filter: blur(60px);
  background: radial-gradient(closest-side, rgb(217 119 87 / 45%), transparent); }
.product-page .product-hero-visual img { border: 0; border-radius: 22px; transform-origin: 50% 0%;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 10%), inset 0 1px rgb(255 255 255 / 20%), 0 60px 120px -30px rgb(0 0 0 / 80%); }
@supports (animation-timeline: view()) {
  .product-page .product-hero-visual img { animation: hero-screen linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
  @keyframes hero-screen { from { transform: rotateX(32deg) scale(.88) translateY(-30px); } to { transform: none; } }
}

/* Every section heading and card rises in as it enters, scrubbed by scroll (no JS). */
@supports (animation-timeline: view()) {
  .product-page main .section-head, .product-page main .split > div:first-child, .product-page main .film-split > div:first-child,
  .product-page main .grid > *, .product-page main .steps > *, .product-page main .flow > *, .product-page main .shots > *, .product-page main .faq > *, .product-page main .cta:not(.contact-grid) {
    animation: rise-in cubic-bezier(.16, 1, .3, 1) both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  .product-page main .grid > :nth-child(3n+2), .product-page main .steps > :nth-child(2), .product-page main .flow > :nth-child(2), .product-page main .shots > :nth-child(2) { animation-range: entry 6% entry 76%; }
  .product-page main .grid > :nth-child(3n), .product-page main .steps > :nth-child(3), .product-page main .flow > :nth-child(3), .product-page main .shots > :nth-child(3) { animation-range: entry 12% entry 82%; }
  @keyframes rise-in { from { opacity: 0; transform: translateY(48px) scale(.97); } to { opacity: 1; transform: none; } }
}

/* Glass cards with a light that follows the cursor (position set by jd-motion.js). */
.product-page main .card { --mx: 50%; --my: 0%; position: relative; isolation: isolate; overflow: hidden; border: 0 !important; border-radius: 22px !important; padding: 28px !important;
  background: linear-gradient(150deg, rgb(255 255 255 / 9%), rgb(255 255 255 / 3%) 45%, rgb(217 119 87 / 10%)) !important;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 7%), inset 0 1px rgb(255 255 255 / 18%), inset 0 -1px rgb(0 0 0 / 30%), 0 24px 60px -36px rgb(0 0 0 / 90%) !important;
  transition: transform .5s var(--jd-spring); }
.product-page main .card::before { content: ''; position: absolute; z-index: -1; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgb(217 119 87 / 22%), transparent 60%); }
.product-page main .card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px; opacity: 0; transition: opacity .35s;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgb(240 176 143 / 70%), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.product-page main .card:hover { transform: translateY(-4px); }
.product-page main .card:hover::before, .product-page main .card:hover::after { opacity: 1; }
.product-page main .grid { gap: 16px; }
.product-page main .card .icon svg { transition: transform .5s var(--jd-spring); }
.product-page main .card:hover .icon svg { transform: scale(1.12) rotate(-4deg); }

/* Steps and the update flow read as one connected path. */
.product-page main :is(.steps, .flow) { counter-reset: n; position: relative; gap: 16px; }
.product-page main .steps > li { counter-increment: n; }
.product-page main .steps > li h3::before { content: counter(n, decimal-leading-zero); display: block; margin-bottom: 26px; font: 600 13px/1 var(--body); letter-spacing: .1em; color: #eda083; }

/* Opaque page over the sticky footer; bands alternate tone so long pages have rhythm. */
.folio.product-page main { background-color: var(--paper, #17130f) !important; }
.product-page main > section.film-section, .product-page main > section:nth-of-type(even):not(.hero, .finale) { background: linear-gradient(180deg, var(--paper), color-mix(in srgb, var(--paper), #fff 2.5%) 20%, color-mix(in srgb, var(--paper), #fff 2.5%) 80%, var(--paper)); }
.product-page .film:not(.film-loop) video { border-radius: 26px; box-shadow: 0 0 0 1px rgb(255 255 255 / 10%), 0 50px 100px -30px rgb(0 0 0 / 85%); }

/* Closing call to action: a liquid-glass slab over warm light. */
.product-page .cta:not(.contact-grid) { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: clamp(40px, 7vw, 96px) clamp(24px, 5vw, 64px) !important; border-radius: 32px !important;
  background: radial-gradient(60% 80% at 50% 0%, rgb(217 119 87 / 35%), transparent 70%), linear-gradient(150deg, rgb(255 255 255 / 8%), rgb(255 255 255 / 2%)) !important;
  box-shadow: inset 0 1px rgb(255 255 255 / 30%), inset 0 -1px rgb(0 0 0 / 30%), 0 40px 90px -40px rgb(0 0 0 / 90%); }
.product-page .cta:not(.contact-grid) h2 { font-size: clamp(36px, 5vw, 64px); }
.product-page .cta:not(.contact-grid) p { max-width: 52ch; margin-inline: auto; color: var(--soft); }
.product-page .cta:not(.contact-grid) .actions { justify-content: center; }

/* FAQ: softer rows that open with a spring. */
.product-page .faq details { border-radius: 16px; transition: background .25s; }
.product-page .faq details[open] { background: rgb(255 255 255 / 3%); }
.product-page .faq details[open] .answer { animation: faq-open .45s var(--jd-spring) both; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } }
