/* Product pages: shell, type, buttons, hero, intro, statement + picture sections, devices. Owner: PRODUCTS. */

.p-page { overflow-x: clip; --p-top: calc(var(--header-h) + 36px); } /* the site header overlays the top of the page (top bar 36px + header) */
@media (max-width: 767px) { .p-page { --p-top: var(--header-h); } }
.p-gut { padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.p-in { max-width: var(--container); margin-inline: auto; }
.p-page h1, .p-page h2, .p-page h3 { color: var(--ink); line-height: 1.08; }
.p-page .hi { color: var(--mint); }
.p-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- text ---------- */
.p-copy { color: var(--soft); font-size: clamp(1.02rem, 1.3vw, 1.15rem); line-height: 1.7; max-width: 60ch; }
.p-copy p { margin: 0; }
.p-copy p + p { margin-top: 1em; }
.p-copy--wide { max-width: 68ch; margin-top: clamp(28px, 4vw, 44px); }
.p-copy--cols { max-width: none; margin-top: clamp(32px, 5vw, 56px); columns: 2 340px; column-gap: clamp(32px, 5vw, 64px); }
.txt .p-copy { margin-top: 22px; }
.p-ey-h { font: 500 var(--text-eyebrow)/1.4 var(--font-display); letter-spacing: .32em; text-transform: uppercase; color: var(--mint) !important; margin-bottom: 16px; }

/* ---------- buttons: the shared .btn .btn--primary / .btn--ghost (site/components.css); additions only ---------- */
.p-btn__icon { height: 1.15em; flex: none; }
.p-btn--swap { position: relative; overflow: hidden; }
.p-btn--swap > * { transition: transform .3s var(--ease); }
.p-btn--swap::after { content: attr(data-hover); content: attr(data-hover) / ""; position: absolute; inset: 0; display: grid; place-items: center; transform: translateY(110%); transition: transform .3s var(--ease); }
.p-btn--swap:hover > *, .p-btn--swap:focus-visible > * { transform: translateY(-200%); }
.p-btn--swap:hover::after, .p-btn--swap:focus-visible::after { transform: none; }

/* ---------- hero (fast, real h1, CSS entrance only) ---------- */
.p-hero { position: relative; padding-top: calc(var(--p-top) + clamp(24px, 4vw, 56px)); padding-bottom: clamp(30px, 5vw, 60px); text-align: center; }
.p-hero::before { content: ""; position: absolute; inset: 25% -10% -5%; background: radial-gradient(50% 50% at 50% 72%, rgba(0, 167, 149, .36), rgba(0, 167, 149, 0) 72%); pointer-events: none; }
.p-hero__in { position: relative; display: grid; justify-items: center; gap: 18px; }
.p-hero__t { font: 700 clamp(2.6rem, 8.2vw, 6.8rem)/1 var(--font-display); letter-spacing: -.04em; max-width: 15ch; }
.p-hero__sub { font: 600 clamp(1.3rem, 3.2vw, 2.4rem)/1.15 var(--font-display); letter-spacing: -.02em; color: var(--soft) !important; max-width: 30ch; }
.p-hero__text { color: var(--soft); font-size: var(--text-lead); line-height: 1.6; max-width: 56ch; }
.p-hero__text p { margin: 0; }
.p-hero__pic { position: relative; max-width: 960px; margin: clamp(40px, 6vw, 72px) auto 0; perspective: 1600px; }
.motion .p-hero__pic > * { transform: rotateX(calc((1 - var(--v)) * 20deg)) scale(calc(.92 + var(--v) * .08)); transform-origin: 50% 100%; }

@keyframes p-up { from { opacity: 0; transform: translateY(26px); } }
@media (prefers-reduced-motion: no-preference) {
    .p-hero__in > *, .p-hub__copy > *, .p-glide__copy > *, .p-pr-hero__copy > *, .p-ds-hero .p-in > * { animation: p-up .9s cubic-bezier(.2, .7, .2, 1) both; }
    :is(.p-hero__in, .p-hub__copy, .p-glide__copy, .p-pr-hero__copy, .p-ds-hero .p-in) > :nth-child(2) { animation-delay: .1s; }
    :is(.p-hero__in, .p-hub__copy, .p-glide__copy, .p-pr-hero__copy, .p-ds-hero .p-in) > :nth-child(n + 3) { animation-delay: .2s; }
    .p-hero__pic, .p-hub__pic, .p-glide__pic, .p-pr-hero__pic { animation: p-up 1.1s .25s cubic-bezier(.2, .7, .2, 1) both; }
}

/* ---------- intro statement ---------- */
.p-intro { padding-block: var(--section-y) calc(var(--section-y) * .5); overflow-x: clip; }
.p-intro__t { font-size: clamp(2.2rem, 6.2vw, 5rem); font-weight: 700; letter-spacing: -.035em; max-width: 16ch; }
.p-intro__sub { margin-top: 12px; font: 600 clamp(1.3rem, 3vw, 2.3rem)/1.15 var(--font-display); letter-spacing: -.02em; color: var(--soft) !important; max-width: 26ch; }

/* ---------- statement + moving picture (kit .duo) ---------- */
.p-feat { padding-block: clamp(70px, 10vw, 140px); overflow-x: clip; }
.p-feat .duo { position: relative; }
.p-ft { font-size: clamp(1.9rem, 4.4vw, 3.5rem); font-weight: 700; letter-spacing: -.03em; }
.p-ft--hi { color: var(--mint) !important; }
.p-fsub { margin-top: 12px; font: 500 clamp(1.1rem, 1.9vw, 1.45rem)/1.3 var(--font-display); color: var(--mint) !important; }
.p-ey-h + .p-ft { margin-top: 0; }

/* faint ring decorations (the original's swoosh images), behind the section */
.p-decor { position: absolute; z-index: -1; left: -60px; top: -70px; width: clamp(120px, 15vw, 200px); height: auto; opacity: .5; pointer-events: none; }
.p-decor--r { left: auto; right: -60px; }


/* ---------- pictures ---------- */
.p-pic img { display: block; width: 100%; height: auto; }
.p-pic--sm { max-width: 440px; margin-inline: auto; }
.p-shot img { display: block; width: 100%; height: auto; border-radius: 10px; }
.p-win--light { background: #fff; }

/* the kit .vis.tilt rule (site/motion.css) moves .tilt > .p-dev too */
/* rises and straightens */
.p-rise > * { transform: translateY(calc((1 - var(--v)) * 90px)) rotate(calc((1 - var(--v)) * 5deg)) scale(calc(.94 + var(--v) * .06)); opacity: calc(.25 + var(--v) * .75); }
/* floats in and keeps floating (transparent illustrations) */
.p-float > * { transform: translateY(calc((1 - var(--v)) * 60px)) scale(calc(.92 + var(--v) * .08)); opacity: calc(.25 + var(--v) * .75); animation: kit-bob 6s ease-in-out infinite; }

/* ---------- CSS devices (<x-product.device type="laptop|desktop|tablet|phone">) ---------- */
.p-dev { position: relative; }
.p-dev__body { position: relative; padding: 10px; border-radius: 16px; background: linear-gradient(160deg, #2a3532, #0b1211 60%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), var(--shot-shadow); }
.p-dev__screen { position: relative; overflow: hidden; border-radius: 6px; background: #fff; aspect-ratio: 16 / 10; }
.p-dev__screen img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.p-pan img { bottom: auto; height: auto; object-fit: fill; animation: p-pan 18s ease-in-out infinite alternate; }
@keyframes p-pan { 0%, 10% { transform: translateY(0); } 90%, 100% { transform: translateY(var(--pan)); } }
.p-dev--laptop .p-dev__body { border-radius: 18px 18px 4px 4px; padding: 12px 12px 14px; }
.p-dev--laptop::after { content: ""; display: block; height: clamp(9px, 1.3vw, 15px); margin-inline: -6%; border-radius: 0 0 18px 18px / 0 0 100% 100%; background: linear-gradient(#d6dedc, #6f7b79); box-shadow: 0 24px 40px rgba(0, 0, 0, .6); }
.p-dev--desktop .p-dev__body { padding: 12px 12px 28px; border-radius: 16px; }
.p-dev--desktop::after { content: ""; display: block; width: 26%; height: clamp(26px, 4vw, 52px); margin: 0 auto; background: linear-gradient(90deg, #6f7b79, #c9d2d0 50%, #6f7b79); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.p-dev--tablet .p-dev__body { padding: clamp(10px, 1.6vw, 16px); border-radius: clamp(18px, 2.4vw, 28px); }
.p-dev--tablet .p-dev__screen { aspect-ratio: 4 / 3; border-radius: 8px; }
.p-dev--phone .p-dev__body { padding: 7px; border-radius: 26px; }
.p-dev--phone .p-dev__screen { aspect-ratio: 9 / 19.5; border-radius: 20px; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
    .p-copy--cols { columns: 1; }
    .p-decor { width: 110px; left: -30px; top: -40px; }
    .p-decor--r { right: -30px; }
}

/* ---------- reduced motion: no continuous animation ---------- */
@media (prefers-reduced-motion: reduce) {
    .p-float > *, .p-pan img { animation: none; }
}

/* ---------- hero in the home style (<x-product.hero-scene>; base rules: .hero-scene in site/pages.css) ---------- */
.p-hero-scene .hero-scene__t2 { gap: 12px; }
.p-hero-scene__sub { font: 600 clamp(1.1rem, 2.2vw, 1.7rem)/1.2 var(--font-display); color: var(--ink); }
.p-hero-scene__text { max-width: 60ch; }
.p-hero-scene__text p { margin: 0; }
.p-hero-scene .hero-scene__big { max-width: 16ch; }
