/* ==========================================================================
   QUAD Laser product page. Source: Figma "QUAD UK Website", Product Page
   (frames 2027:1164 to 2069:1098), designed at 1920 wide. Builds on tokens,
   base and components; every class here is prefixed pp- (product page).
   ========================================================================== */

/* The shared tokens/base/components now come from the latest home (smaller
   type scale tuned for the home, 2026-11-17). Product pages keep the scale
   and compact pills they were built and checked against at 1920 wide. */
:root:has(main.pp) {
  --color-accent: #567dde;
  --fs-display-1: clamp(2.5rem, 1.6rem + 2.9vw, 4.375rem);   /* 70 */
  --fs-display-2: clamp(2.25rem, 1.6rem + 2.2vw, 3.75rem);   /* 60 */
  --fs-heading:   clamp(1.5rem, 1.1rem + 1.3vw, 2.5rem);     /* 40 */
  --fs-body:      1.125rem;                                  /* 18 */
}
.pp .t-lead { font-size: var(--fs-title); }
.pp .chip {
  height: 2rem; padding: 0 0.875rem;
  font-size: var(--fs-pill, clamp(0.8125rem, 0.76rem + 0.12vw, 0.9375rem)); line-height: 1.2;
}

.pp { --glass-pill: rgb(180 180 180 / 0.25); --card-dark: #181818; --radius-xl: 1.875rem; }
.pp > section { position: relative; padding-block: var(--section-y); overflow: clip; }
.pp-title { font-size: var(--fs-display-2); text-wrap: balance; }
.pp-stack { display: grid; gap: 1.2em; }
.pp-stack--tight { gap: 0.6em; }
.pp-narrow { max-width: calc(58.5rem + 2 * var(--margin)); }

/* ---- 0. Product intro --------------------------------------------------- */
/* Figma "3D" (2109:669), 1920x1080. --u is one design percent, limited by
   height so the frame fits one viewport. Copy column starts at the page
   margin (180 at 1920); the 785x768 image card ends at the right margin,
   the thumbnail rail sits in that margin and the dots under the card. The
   ring is centred on the card, the soft glow on the section. */
.pp > .pp-intro {
  --u: min(1vw, 1.7778svh);
  isolation: isolate;
  min-height: max(100svh, 40rem);
  display: grid; grid-template-columns: minmax(0, 38.4375rem) minmax(0, 1fr);
  align-items: center; column-gap: var(--space-8);
  padding: max(6rem, calc(5.73 * var(--u))) var(--margin) 0;
}
.pp-intro__glow { position: absolute; left: calc(50% + 0.23 * var(--u)); top: calc(50% + 13.36 * var(--u)); width: calc(82.97 * var(--u)); translate: -50% -50%; opacity: 0.3; pointer-events: none; }
.pp-intro__glow img { width: 100%; }
.pp-intro__copy { position: relative; z-index: 1; }
.pp-intro__chips { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-bottom: 1.125rem; }
.pp-intro__chip { background: #292929; border-color: #292929; }
.pp-intro__title { color: #fff; line-height: var(--lh-tight); }
.pp-intro__sub { margin-top: 1.125rem; font-size: var(--fs-title-lg); line-height: 1.2; letter-spacing: 0; color: #fff; }
.pp-intro__text { margin-top: 1.25rem; display: grid; gap: 1.2em; font-size: 1rem; line-height: 1.4; }
.pp-intro__cta { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 0.75rem; }
.pp-intro__cta .btn { padding-inline: var(--space-4); }

.pp-intro__gallery { --gw: calc(40.89 * var(--u)); position: relative; justify-self: end; width: min(var(--gw), 100%); }
.pp-intro__ring { position: absolute; z-index: -1; left: calc(50% + var(--gw) * 0.0445); top: calc(var(--gw) * 0.621); width: calc(var(--gw) * 1.405); max-width: none; translate: -50% -50%; pointer-events: none; }
.pp-intro__card { position: relative; aspect-ratio: 785 / 768; border-radius: 14.65% / 14.97%; overflow: clip; background: #070707; isolation: isolate; touch-action: pan-y; }
.pp-intro__slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 0.7s var(--ease-out), visibility 0s linear 0.7s; }
.pp-intro__slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.7s var(--ease-out), visibility 0s; }
.pp-intro__slide img { position: absolute; max-width: none; }
/* Figma crop: the photo is 200.55% of the card wide, shifted 43.54% left and 7.18% up */
.pp-intro__slide--photo img { width: 200.55%; left: -43.54%; top: -7.18%; }
/* Cut-out views stand in the same studio spotlight as the photo */
.pp-intro__slide:not(.pp-intro__slide--photo, .pp-intro__slide--detail) { background: radial-gradient(70% 62% at 50% 6%, #6a6a6a 0%, #2b2b2b 42%, #0a0a0a 78%, #050505 100%); }
.pp-intro__slide--side img { width: auto; height: 84%; bottom: 5%; left: 50%; translate: -22.7% 0; }
.pp-intro__slide--front img { width: auto; height: 90%; top: 4%; left: 50%; translate: -53% 0; }
/* Detail: the same photo zoomed on screen, controls and holder (source x 760-1260, y 120-610) */
.pp-intro__slide--detail img { width: 409.6%; left: -152%; top: -24.5%; }

.pp-intro__thumbs { position: absolute; left: calc(100% + 1.09 * var(--u)); top: 50%; translate: 0 -50%; display: grid; gap: calc(0.53 * var(--u)); }
.pp-intro__thumb { position: relative; width: calc(4.95 * var(--u)); aspect-ratio: 95 / 80; border-radius: 16.5% / 19.5%; background: #1b1b1b; overflow: clip; outline: 1px solid transparent; outline-offset: -1px; transition: outline-color var(--dur-base) var(--ease-out), background var(--dur-base); }
.pp-intro__thumb:hover { background: #242424; }
.pp-intro__thumb.is-active { outline-color: rgb(255 255 255 / 0.35); }
.pp-intro__thumb:focus-visible { outline: 2px solid #fff; }
/* Figma: 68.5x70.3 front view and a 44x71 crop of the side view, 4-9px from the top */
.pp-intro__thumb img { position: absolute; left: 50%; translate: -50% 0; top: 5.1%; height: 87.7%; width: auto; max-width: none; }
.pp-intro__thumb--photo img { width: 200.55%; height: auto; left: -43.54%; top: -7.18%; translate: none; }
.pp-intro__thumb--side img { top: 11.1%; height: 88.6%; translate: -26% 0; }
.pp-intro__thumb--front img { top: 6%; height: 92%; translate: -53% 0; }
.pp-intro__thumb--detail img { width: 409.6%; height: auto; left: -152%; top: -28.5%; translate: none; }

.pp-intro__dots { position: absolute; left: calc(50% + 1.59 * var(--u)); top: calc(100% + 1.93 * var(--u)); translate: -50% 0; display: flex; gap: calc(0.42 * var(--u)); }
.pp-intro__dots button { position: relative; width: max(0.55 * var(--u), 0.5rem); aspect-ratio: 1; background: url("../img/laser/dot-idle.svg") center / 100% no-repeat; }
.pp-intro__dots button::before { content: ""; position: absolute; inset: -0.5rem; }
.pp-intro__dots button.is-active { background-image: url("../img/laser/dot-active.svg"); }
.pp-intro__dots button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 1100px) {
  .pp > .pp-intro { grid-template-columns: minmax(0, 1fr); row-gap: clamp(2.5rem, 7vw, 4rem); min-height: 0; padding-top: 7rem; padding-bottom: var(--section-y); }
  .pp-intro__copy { max-width: 38.4375rem; }
  .pp-intro__gallery { --gw: min(100vw - 2 * var(--margin), 36rem); justify-self: center; width: var(--gw); }
  .pp-intro__glow { top: auto; bottom: calc(-0.3 * var(--gw)); width: calc(var(--gw) * 2); translate: -50% 0; }
  .pp-intro__thumbs { position: static; translate: none; display: flex; justify-content: center; gap: 0.625rem; margin-top: 1rem; }
  .pp-intro__thumb { width: min(4.75rem, 21%); }
  .pp-intro__dots { position: static; translate: none; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
  .pp-intro__dots button { width: 0.625rem; }
}
@media (max-width: 640px) {
  .pp > .pp-intro { padding-top: 6rem; }
}

/* Hero + highlights scene. Figma frames are 1920x1080, so --u is one
   design percent, limited by height: 1vw on 16:9, less on wider/shorter
   screens, so the whole hero always fits one viewport (Figma parity). */
.pp-scene { --u: min(1vw, 1.7778svh); position: relative; }
.pp-scene__pin { position: relative; }

/* Concentric rings: inner 1300 and outer 1600 at 1920, sharing a centre
   23.3% above the bottom of the frame */
.pp-rings { position: absolute; inset: 0 0 auto; height: 100svh; pointer-events: none; overflow: clip; }
.pp-rings img { position: absolute; left: 50%; max-width: none; translate: -50% 0; }
.pp-rings__ring { --d: calc(67.7 * var(--u)); width: var(--d); bottom: calc(13.1 * var(--u) - var(--d) / 2); opacity: 0.9; }
.pp-rings__glow { --d: calc(83.3 * var(--u)); width: var(--d); bottom: calc(13.1 * var(--u) - var(--d) / 2); opacity: 0.35; }
.pp-rings--hl { display: none; }

/* Glass pill button (hero) */
.pp-glass-pill {
  display: inline-flex; align-items: center; gap: var(--space-3);
  padding: 0.3125rem 0.375rem 0.3125rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--glass-pill);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  font-size: clamp(0.875rem, 0.82rem + 0.12vw, 1rem); color: #fff;
  transition: background var(--dur-base) var(--ease-out);
}
.pp-glass-pill:hover { background: rgb(180 180 180 / 0.38); }
.pp-glass-pill__icon { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; }
.pp-glass-pill__icon img { width: 100%; height: 100%; }

/* ---- 1. Hero ----------------------------------------------------------- */
/* Figma: title starts at 21% of the frame, the body ends near 46%, the
   device image (60.5% of the width) starts at 41.5% and runs off the
   bottom, the pill sits over the device at 92%. */
.pp-hero {
  --dw: calc(60.5 * var(--u));          /* device image width */
  --vis: calc(32.9 * var(--u));         /* how much of it shows above the fold */
  position: relative; height: 100svh; min-height: 32rem; overflow: clip;
}
.pp-hero__copy { position: relative; z-index: 2; padding-top: max(6.5rem, calc(11.7 * var(--u))); }
.pp-hero__copy .pp-title { max-width: 18em; margin-inline: auto; }
.pp-hero__text { max-width: 38.5rem; margin: var(--space-5) auto 0; display: grid; gap: 1.2em; }
/* The device column sits at 54.4% of the image width; centre it */
.pp-hero__device { position: absolute; z-index: 1; width: var(--dw); left: calc(50% - var(--dw) * 0.544); top: calc(100% - var(--vis)); }
.pp-hero__device img { width: 100%; }
.pp-hero__cta { position: absolute; z-index: 3; left: 50%; bottom: max(1rem, calc(4.5 * var(--u) - 2.4rem)); translate: -50% 0; }

/* ---- 2. Key highlights ------------------------------------------------- */
.pp-hl { position: relative; text-align: center; padding-block: var(--section-y); }
.pp-hl__stage {
  --w: min(clamp(17rem, 28.44vw, 34.125rem), 50svh);
  --line: calc(var(--w) * 0.1429);
  --pin: max(2.25rem, calc(var(--w) * 0.0733));
  position: relative; width: var(--w); aspect-ratio: 546 / 727; margin: clamp(1.5rem, 3vw, 4rem) auto 0;
}
.pp-hl__device { position: relative; width: 100%; height: 100%; object-fit: contain; }
.pp-hl__floor { position: absolute; left: 50%; bottom: -4%; width: 135%; max-width: none; translate: -50% 0; opacity: 0.7; }
.pp-move { display: none; place-items: center; width: 3.625rem; height: 3.625rem; margin: clamp(1rem, 2vw, 2rem) auto 0; opacity: 0.85; }

.hs { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; z-index: 2; }
.hs__dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; translate: -50% -50%; box-shadow: 0 0 0 4px rgb(255 255 255 / 0.12); }
.hs__line { position: absolute; background: rgb(255 255 255 / 0.55); transform-origin: left center; }
.hs__pin {
  position: absolute; width: var(--pin); height: var(--pin);
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--glass-pill, rgb(180 180 180 / 0.25));
  border: 0.5px solid #5c5c5c;
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  transition: background var(--dur-base), scale var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
}
.hs__pin img { width: 50%; height: 50%; }
.hs__pin:hover { scale: 1.08; background: rgb(180 180 180 / 0.4); }
.hs__pin[aria-expanded="true"] { background: #fff; box-shadow: 0 0 0 6px rgb(255 255 255 / 0.12); }
.hs__pin[aria-expanded="true"] img { filter: invert(1); }
.hs[data-dir="right"] .hs__line { left: 0; top: 0; width: var(--line); height: 1px; }
.hs[data-dir="right"] .hs__pin { left: var(--line); top: 0; translate: 0 -50%; }
.hs[data-dir="left"] .hs__line { right: 0; top: 0; width: var(--line); height: 1px; transform-origin: right center; }
.hs[data-dir="left"] .hs__pin { right: var(--line); top: 0; translate: 0 -50%; }
.hs[data-dir="up"] .hs__line { left: 0; bottom: 0; width: 1px; height: var(--line); transform-origin: center bottom; }
.hs[data-dir="up"] .hs__pin { left: 0; bottom: var(--line); translate: -50% 0; }

.pp-hl__scrim { position: absolute; inset: 0; z-index: 5; background: rgb(0 0 0 / 0.7); }
.pp-hl__panel {
  position: absolute; z-index: 6; right: clamp(1rem, 2.7vw, 3rem); top: 57%; translate: 0 -50%;
  width: min(25.5rem, calc(100% - 2rem));
  padding: 0 0 var(--space-8);
  border-radius: 2.1875rem; background: #1b1b1b;
  text-align: left; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.pp-hl__panel[hidden], .pp-hl__scrim[hidden] { display: none; }
.pp-hl__media { aspect-ratio: 545 / 409; border-radius: var(--radius-md); overflow: hidden; }
.pp-hl__media img { width: 100%; height: 100%; object-fit: cover; }
.pp-hl__close { position: absolute; top: 1rem; right: 1rem; width: 2.4375rem; height: 2.4375rem; border-radius: 50%; display: grid; place-items: center; background: rgb(0 0 0 / 0.35); border: 1px solid rgb(255 255 255 / 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pp-hl__close img { width: 0.95rem; height: 0.95rem; }
.pp-hl__title { margin: var(--space-6) var(--space-10) var(--space-3); font-size: var(--fs-subtitle); font-weight: var(--weight-regular); }
.pp-hl__body { margin: 0 var(--space-10); font-size: var(--fs-ui); color: var(--color-gray-300); max-width: 28.5rem; }

/* ---- 3. Clinical ------------------------------------------------------- */
.pp-clinical__title { max-width: 18em; margin: 0 auto var(--space-6); }
.pp-clinical .t-lead { font-size: var(--fs-body); line-height: 1.35; color: var(--color-gray-400); margin-inline: auto; max-width: 42rem; }
.pp-clinical__media { width: min(35.4375rem, 100%); aspect-ratio: 1; margin: clamp(2.5rem, 4vw, 4.5rem) auto var(--space-5); border-radius: 2.125rem; overflow: hidden; }
.pp-clinical__media img { width: 100%; height: 100%; object-fit: cover; }
.pp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-bottom: clamp(2.5rem, 4vw, 4.5rem); }
.pp-chip { display: inline-flex; align-items: center; height: 2rem; padding: 0 0.875rem; border-radius: var(--radius-pill); background: var(--glass-pill); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); font-size: var(--fs-pill, clamp(0.8125rem, 0.76rem + 0.12vw, 0.9375rem)); line-height: 1.2; color: #fff; }

/* ---- Carousels (partnership, testimonials) ---------------------------- */
.pp-track {
  display: flex; gap: clamp(1rem, 1.5625vw, 1.875rem);
  padding-inline: var(--margin);
  scroll-padding-inline: var(--margin);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.pp-track::-webkit-scrollbar { display: none; }
.pp-track > * { scroll-snap-align: start; flex: none; }
.pp-track:focus-visible { outline-offset: -3px; }
.pp-controls { margin-top: clamp(1.5rem, 2.5vw, 2.75rem); }
.pp-controls[data-static] { display: none; }

/* ---- 4. Partnership ---------------------------------------------------- */
.pp-partner__head { margin-bottom: clamp(2.5rem, 4vw, 4.75rem); }
.pp-partner__head .muted { color: #808080; }
.pp-partner__sub { margin-top: var(--space-4); font-size: var(--fs-body); color: #fff; }
.pp-partner__body { max-width: 48.875rem; margin: var(--space-6) auto 0; color: #808080; }
.pp-pcard { width: clamp(17rem, 29.95vw, 35.9375rem); }
.pp-pcard img { width: 100%; aspect-ratio: 575 / 431; object-fit: cover; border-radius: var(--radius-xl); transition: scale var(--dur-reveal) var(--ease-out); }
.pp-pcard figcaption { margin-top: 1.375rem; font-size: var(--fs-title-sm); color: #fff; line-height: 1.25; max-width: 95%; }

/* ---- 5. Built around --------------------------------------------------- */
.pp-built__bg { position: absolute; inset: 0; display: grid; justify-items: center; pointer-events: none; }
.pp-built__bg img { width: clamp(28rem, 78vw, 94rem); max-width: none; margin-top: clamp(1rem, 4vw, 5rem); opacity: 0.9; -webkit-mask-image: linear-gradient(180deg, #000 38%, transparent 62%); mask-image: linear-gradient(180deg, #000 38%, transparent 62%); }
.pp-built .container { position: relative; }
.pp-built__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 1.25vw, 1.5rem); margin-top: clamp(6rem, 18vw, 21rem); }
.pp-glass-card {
  padding: 1.75rem 2.5rem 2.25rem;
  min-height: clamp(18rem, 19.5vw, 23.4rem);
  border-radius: var(--radius-xl);
  background: rgb(34 34 34 / 0.3);
  -webkit-backdrop-filter: blur(15.5px); backdrop-filter: blur(15.5px);
  border: 1px solid rgb(255 255 255 / 0.04);
}
.pp-glass-card__icon { width: 3.875rem; height: 3.875rem; margin-bottom: var(--space-6); }
.pp-glass-card h3 { font-size: clamp(1rem, 0.9375vw, 1.125rem); font-weight: var(--weight-regular); }
.pp-glass-card p { margin-top: var(--space-1); font-size: clamp(1rem, 0.9375vw, 1.125rem); color: #ababab; line-height: 1.4; max-width: 24.25rem; }

/* ---- 6. Testimonials --------------------------------------------------- */
.pp-testi__bg { position: absolute; inset: 0; pointer-events: none; }
.pp-testi__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.12; }
.pp-testi__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #000 0%, transparent 30%, transparent 70%, #000 100%); }
.pp-testi .pp-title { position: relative; margin-bottom: clamp(2.5rem, 3.5vw, 4rem); }
.pp-track--testi { position: relative; }
.pp-tcard {
  width: clamp(17.5rem, 26.4vw, 31.6875rem); min-height: clamp(20rem, 26.5vw, 31.8rem);
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  border-radius: var(--radius-xl);
  background: rgb(34 34 34 / 0.35);
  -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px);
  border: 1px solid rgb(255 255 255 / 0.03);
}
.pp-tcard--stat { background: var(--card-dark); }
.pp-tcard__label { font-size: var(--fs-ui); color: #d9d9d9; margin-top: var(--space-4); }
.pp-tcard__stat { font-family: var(--font-display); font-size: var(--fs-display-1); line-height: 1.1; }
.pp-tcard__foot { margin-top: auto; font-size: var(--fs-ui); color: #808080; max-width: 22rem; }
.pp-tcard blockquote { font-size: clamp(1.0625rem, 1.25vw, 1.5rem); color: var(--color-gray-400); line-height: 1.33; }
.pp-tcard blockquote b { font-weight: inherit; color: #fff; }
.pp-tcard figcaption { margin-top: auto; padding-top: var(--space-8); display: grid; gap: var(--space-4); font-size: var(--fs-body); color: #fff; }
.pp-tcard figcaption img { height: clamp(1.25rem, 1.6vw, 2rem); width: auto; mix-blend-mode: luminosity; }

/* ---- 7. Results compare ------------------------------------------------ */
.pp-results .pp-title { margin-bottom: clamp(2rem, 3vw, 3.5rem); }
.pp-compare {
  --pos: 43%;
  position: relative; width: min(62.0625rem, 100%); margin-inline: auto;
  aspect-ratio: 993 / 663; border-radius: var(--radius-xl); overflow: hidden;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
  background: #222;
}
.pp-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pp-compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.pp-compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: rgb(255 255 255 / 0.85); }
.pp-compare__handle {
  position: absolute; left: var(--pos); top: 23%; translate: -50% -50%;
  width: clamp(3.25rem, 4.3vw, 5.1875rem); aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center; gap: 0;
  border-radius: 50%; border: 1.5px solid rgb(255 255 255 / 0.9);
  background: rgb(255 255 255 / 0.12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: scale var(--dur-base) var(--ease-out);
}
.pp-compare__handle img { position: static; width: 32%; height: auto; }
.pp-compare:hover .pp-compare__handle, .pp-compare.is-drag .pp-compare__handle { scale: 1.08; }
.pp-compare__tag { position: absolute; left: calc(var(--pos) + 6%); top: 49%; display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--fs-body); font-weight: var(--weight-medium); color: #fff; text-shadow: 0 1px 8px rgb(0 0 0 / 0.25); }
.pp-compare__tag img { position: static; width: 0.875rem; height: 0.875rem; }
.pp-compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; }
.pp-compare:has(.pp-compare__range:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* ---- 8. Payment -------------------------------------------------------- */
.pp-pay__title { max-width: 10.2em; margin-inline: auto; }
.pp-pay__body { max-width: 36.625rem; margin: var(--space-4) auto clamp(1.5rem, 2.2vw, 2.5rem); }
.pp-pay__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 28.875rem)); justify-content: center; gap: clamp(0.75rem, 1.05vw, 1.25rem); }
.pp-pay__grid img { width: 100%; aspect-ratio: 462 / 693; object-fit: cover; border-radius: var(--radius-xl); }
.pp-pay__caption { max-width: 29.875rem; margin: clamp(1.5rem, 2.2vw, 2.5rem) auto var(--space-5); }

/* ---- 9 + 10. Split sections ------------------------------------------- */
.pp-split__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 7vw, 11rem); }
.pp-split__copy { display: grid; gap: var(--space-5); justify-items: start; max-width: 49.7rem; }
.pp-split__copy .pp-title { margin-bottom: var(--space-2); }
.pp-trusted__media { width: min(34.5625rem, 100%); aspect-ratio: 553 / 691; border-radius: var(--radius-md); overflow: hidden; }
.pp-trusted__media img { width: 100%; height: 100%; object-fit: cover; }
.pp-trusted .pp-title { max-width: 13.3em; }
.pp-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; width: min(100%, 39.75rem); margin-block: var(--space-4); }
.pp-docs li { display: grid; place-items: center; text-align: center; min-height: 5.25rem; padding: 1.125rem 1.5rem; border-radius: var(--radius-md); background: var(--card-dark); font-size: var(--fs-body); color: #fff; line-height: 1.35; }
.pp-docs li.is-wide { grid-column: 1 / -1; }
.pp-training__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); padding-inline: clamp(0rem, 10vw, 12rem) var(--margin); }
.pp-training__media { width: 100%; aspect-ratio: 919 / 846; overflow: hidden; border-radius: var(--radius-xl); }
.pp-training__media img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.pp-training .pp-title { max-width: 16em; }
.pp-training .btn { margin-top: var(--space-3); }

/* ---- 11. Newsletter + FAQ --------------------------------------------- */
.pp-faq .container { position: relative; }
.pp-news {
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: var(--space-4);
  padding: clamp(2.5rem, 4.5vw, 5.5rem) clamp(1.25rem, 3vw, var(--space-6));
  border-radius: var(--radius-xl);
  background: rgb(217 217 217 / 0.05); border: 1px solid #343434;
  -webkit-backdrop-filter: blur(35px); backdrop-filter: blur(35px);
}
.pp-news .t-body { max-width: 30rem; }
.pp-news__form { display: flex; gap: var(--space-2); margin-top: var(--space-4); width: min(100%, 25rem); }
.pp-news__form input { flex: 1; min-width: 0; height: 2.5rem; padding: 0 1.25rem; border-radius: var(--radius-pill); border: 1px solid transparent; background: #252525; outline: 0; font-size: var(--fs-small); transition: border-color var(--dur-base); }
.pp-news__form input:focus { border-color: var(--color-gray-400); }
.pp-news__form input::placeholder { color: #8a8a8a; }
.pp-news__form .btn { height: 2.5rem; }
.pp-faq__title { margin: clamp(5rem, 9vw, 10rem) 0 clamp(2rem, 3vw, 3.5rem); }
.pp-faq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem clamp(0.75rem, 2.3vw, 2.75rem); align-items: start; }
.pp-q { border-radius: var(--radius-xl); background: rgb(34 34 34 / 0.45); border: 1px solid rgb(255 255 255 / 0.05); -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px); overflow: hidden; }
.pp-q > button { width: 100%; min-height: 4.375rem; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: 0.625rem 0.625rem 0.625rem 1.5rem; text-align: left; font-size: var(--fs-body); color: #fff; }
.pp-q i { flex: none; width: 4.6875rem; height: 3.125rem; display: grid; place-items: center; border-radius: var(--radius-pill); background: #2b2b2b; transition: background var(--dur-base); }
.pp-q i img { width: 1.5rem; height: 1.5rem; rotate: -90deg; transition: rotate var(--dur-slow) var(--ease-out); }
.pp-q > button:hover i { background: #3a3a3a; }
.pp-q > button[aria-expanded="true"] i img { rotate: 0deg; }
.pp-q__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-slow) var(--ease-out); }
.pp-q__a > p { overflow: hidden; padding: 0 1.5rem; font-size: var(--fs-ui); color: var(--color-gray-300); }
.pp-q.is-open .pp-q__a { grid-template-rows: 1fr; }
.pp-q.is-open .pp-q__a > p { padding-bottom: 1.25rem; }

/* ---- 12. Investment ---------------------------------------------------- */
.pp-invest__device { position: absolute; top: 0; right: 0; width: 62%; display: grid; justify-items: center; pointer-events: none; }
.pp-invest__device img { width: clamp(28rem, 78vw, 94rem); max-width: none; margin-top: clamp(0rem, 1vw, 1.5rem); opacity: 0.9; -webkit-mask-image: linear-gradient(180deg, #000 38%, transparent 62%); mask-image: linear-gradient(180deg, #000 38%, transparent 62%); }
.pp-invest__inner { position: relative; padding-inline: clamp(1.25rem, 7.2vw, 8.6rem); }
.pp-invest__title { margin: clamp(4rem, 8vw, 9rem) 0 clamp(2rem, 3vw, 3.5rem); }
.pp-invest__title .muted { color: var(--color-gray-150); }
.pp-invest__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.5rem, 0.65vw, 0.75rem); }
.pp-icard {
  min-height: clamp(11rem, 11.25vw, 13.5rem);
  padding: clamp(1.25rem, 1.6vw, 1.75rem) clamp(1.25rem, 2.2vw, 2.75rem);
  border-radius: var(--radius-xl);
  background: rgb(34 34 34 / 0.45); border: 1px solid rgb(255 255 255 / 0.04);
  -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px);
}
.pp-icard__icon { width: 3.875rem; height: 3.875rem; display: grid; place-items: center; border-radius: 10px; background: #151515; margin-bottom: var(--space-6); }
.pp-icard__icon img { width: 1.5rem; height: 1.5rem; }
.pp-icard__icon img[src$="ic-power.svg"] { width: 100%; height: 100%; }
.pp-icard h3 { font-size: var(--fs-body); font-weight: var(--weight-regular); }
.pp-icard p { font-size: var(--fs-body); color: #cfcfcf; line-height: 1.35; }

/* Footer: css/footer.css (shared by every page) */

/* ---- Motion initial states (only when GSAP runs) ---------------------- */
.js:not(.reduced) [data-reveal] { opacity: 0; }
.reduced [data-reveal] { opacity: 1; }

/* ---- Scene mode (motion on): hero and highlights share one pinned
   viewport while the page scrolls 160svh (see js/product.js) ----------- */
.js:not(.reduced) .pp-scene { height: 260svh; }
.js:not(.reduced) .pp-scene__pin { position: sticky; top: 0; height: 100svh; overflow: clip; }
.js:not(.reduced) .pp-scene .pp-hl { position: absolute; inset: 0; padding: 0; z-index: 2; pointer-events: none; }
.js:not(.reduced) .pp-scene .pp-hl > .pp-title { position: absolute; inset-inline: 0; top: max(6rem, calc(7.3 * var(--u))); }
.js:not(.reduced) .pp-scene .pp-hl__stage { position: absolute; margin: 0; left: calc(50% - var(--w) / 2); top: calc(53svh - var(--w) * 0.666); }
.js:not(.reduced) .pp-scene .hs__pin,
.js:not(.reduced) .pp-scene .pp-hl__panel,
.js:not(.reduced) .pp-scene .pp-hl__scrim { pointer-events: auto; }
/* Light sweep that reveals the lit device; --rv is tweened from -30 to 130 */
.js:not(.reduced) .pp-scene .pp-hl__device {
  --rv: 130;
  -webkit-mask-image: linear-gradient(165deg, #000 calc(var(--rv) * 1% - 30%), transparent calc(var(--rv) * 1%));
  mask-image: linear-gradient(165deg, #000 calc(var(--rv) * 1% - 30%), transparent calc(var(--rv) * 1%));
}
/* Initial (pre-scroll) states so nothing flashes before GSAP takes over */
.js:not(.reduced) .pp-scene .pp-hl > .pp-title,
.js:not(.reduced) .pp-scene .pp-hl__device,
.js:not(.reduced) .pp-scene .pp-hl__floor,
.js:not(.reduced) .pp-scene .hs { visibility: hidden; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .pp-built__grid, .pp-invest__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-built__grid { margin-top: clamp(14rem, 40vw, 22rem); }
  .pp-built__grid > :last-child { grid-column: 1 / -1; }
  .pp-split__grid, .pp-training__grid { grid-template-columns: minmax(0, 1fr); }
  .pp-training__grid { padding-inline: 0 var(--margin); }
  .pp-training .pp-split__copy { padding-left: var(--margin); }
  .pp-trusted__media { width: min(100%, 30rem); }
  .pp-invest__device { width: 100%; opacity: 0.5; }
  .pp-hl__panel { position: fixed; top: auto; bottom: 1rem; right: 50%; translate: 50% 0; max-height: calc(100svh - 2rem); overflow-y: auto; }
  .pp-hl__scrim { position: fixed; }
}

@media (max-width: 640px) {
  .nav .btn { display: none; }
  .nav { justify-content: space-between; }
  .pp-scene { --u: 1.6vw; }
  .pp-hero { --dw: 150vw; --vis: 36svh; }
  .pp-hero__copy { padding-top: 6rem; }
  .pp-built__bg img { margin-top: 7rem; }
  .pp-built__grid { margin-top: 15rem; }
  .pp-invest__device { top: 0; }
  .pp-invest__title { margin-top: 15rem; }
  .pp-hero__cta { bottom: 1.25rem; }
  .pp-hero__cta .pp-glass-pill { padding-left: 1rem; white-space: nowrap; }
  .pp-hl__stage { --w: min(68vw, 17rem, 50svh); --pin: 2.25rem; }
  .pp-built__grid, .pp-invest__grid, .pp-faq__grid, .pp-pay__grid { grid-template-columns: 1fr; }
  .pp-built__grid > :last-child { grid-column: auto; }
  .pp-glass-card { padding: 1.5rem; min-height: 0; }
  .pp-pay__grid { justify-items: center; }
  .pp-pay__grid img { aspect-ratio: 4 / 5; }
  .pp-pcard { width: 78vw; }
  .pp-tcard { width: 82vw; }
  .pp-docs { grid-template-columns: 1fr; }
  .pp-docs li { min-height: 0; }
  .pp-compare__tag { font-size: var(--fs-small); left: calc(var(--pos) + 4%); }
  .pp-q > button { padding-left: 1.25rem; }
  .pp-q i { width: 3.5rem; height: 2.5rem; }
  .pp-icard { min-height: 0; }
}

/* ==========================================================================
   Generated product pages (tools/build-products.mjs): the same sections as
   laser, fed by one product photo. Everything below only adds modifiers.
   ========================================================================== */

/* ---- Intro gallery: generic photos and cut-outs ------------------------ */
.pp-intro__slide--fit img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pp-intro__slide--contain { background: radial-gradient(70% 62% at 50% 6%, #6a6a6a 0%, #2b2b2b 42%, #0a0a0a 78%, #050505 100%); }
.pp-intro__slide--contain img { inset: 8% 8% 6%; width: 84%; height: 86%; object-fit: contain; }
.pp-intro__thumb--fit img, .pp-intro__thumb--contain img { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; translate: none; }
.pp-intro__thumb--contain img { inset: 8%; width: 84%; height: 84%; object-fit: contain; }

/* ---- Single-photo scene: the same image is dark in the hero and lit on
   the stage; --ar (width / height) and --dw come from the page ---------- */
.pp-scene--single .pp-hero { --vis: calc(30 * var(--u)); }
.pp-scene--single .pp-hero__device {
  left: calc(50% - var(--dw) / 2);
  /* below the copy (js/product.js measures --copy-end), never fully off screen */
  top: min(max(calc(100% - var(--vis)), var(--copy-end, 0px)), calc(100% - 9rem));
}
.pp-scene--single .pp-hero__device img { aspect-ratio: var(--ar); object-fit: contain; filter: brightness(0.32) saturate(0.7); }
/* --sw lives on the scene so the stage and both pill columns share it */
.pp-scene--single { --sw: min(calc(54svh * var(--ar)), 30vw, 40rem); }
.pp-scene--single .pp-hl__stage { --w: var(--sw); aspect-ratio: var(--ar); }
.pp-scene--single .pp-hl__floor { bottom: calc(var(--w) * -0.11); width: 120%; }
.pp-scene--single .pp-hl__device { -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, #000 86%, transparent 100%); }
.js:not(.reduced) .pp-scene--single .pp-hl__device {
  -webkit-mask-image: linear-gradient(165deg, #000 calc(var(--rv) * 1% - 30%), transparent calc(var(--rv) * 1%)), linear-gradient(180deg, #000 86%, transparent 100%);
  mask-image: linear-gradient(165deg, #000 calc(var(--rv) * 1% - 30%), transparent calc(var(--rv) * 1%)), linear-gradient(180deg, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
/* 4. Key highlights: each pill is wired to a spot on the photo (js/product.js
   draws the lines from data-pt). Only in the wide scroll scene. */
.pp-hl__wires { display: none; }
.pp-hl__wires path { fill: none; stroke-width: 1; stroke-dasharray: 1; }
.pp-hl__wires .fade { stop-color: #fff; stop-opacity: 0.04; }
.pp-hl__wires .solid { stop-color: #fff; stop-opacity: 0.5; }
.pp-hl__wires .dot { fill: #fff; }
.pp-hl__wires .halo { fill: rgb(255 255 255 / 0.14); }
.pp-hl__lists { display: contents; }
.pp-hl__list { display: grid; gap: 0.625rem; }
.pp-hl__list li { display: flex; align-items: center; min-height: 2rem; padding: 0.3125rem 0.875rem; border-radius: var(--radius-pill); background: var(--glass-pill); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); border: 0.5px solid #5c5c5c; font-size: var(--fs-pill, clamp(0.8125rem, 0.76rem + 0.12vw, 0.9375rem)); line-height: 1.25; color: #fff; text-align: left; }

@media (min-width: 1025px) {
  .js:not(.reduced) .pp-scene--single .pp-hl__stage { top: calc(55svh - var(--sw) / var(--ar) / 2); }
  .js:not(.reduced) .pp-scene--single .pp-hl__list {
    position: absolute; top: calc(55svh); translate: 0 -50%;
    width: min(28rem, calc(50% - var(--sw) / 2 - 4rem));
    visibility: hidden;
  }
  .js:not(.reduced) .pp-scene--single .pp-hl__list--l { right: calc(50% + var(--sw) / 2 + 2rem); justify-items: end; }
  .js:not(.reduced) .pp-scene--single .pp-hl__list--r { left: calc(50% + var(--sw) / 2 + 2rem); justify-items: start; }
  .js:not(.reduced) .pp-scene--single .pp-hl__list--l li { text-align: right; }
  .js:not(.reduced) .pp-scene--single .pp-hl__wires { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; visibility: hidden; }
}

/* Static layout (reduced motion, or the single scene below 1025px) */
.reduced .pp-hl__lists, .pp-scene--single .pp-hl__lists { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.625rem; max-width: 62rem; margin: clamp(2rem, 4vw, 3.5rem) auto 0; padding-inline: var(--margin); }
.reduced .pp-hl__list, .pp-scene--single .pp-hl__lists .pp-hl__list { display: contents; }
/* wide screens with motion: two absolute columns beside the lit device */
@media (min-width: 1025px) {
  .js:not(.reduced) .pp-scene--single .pp-hl__lists { display: contents; }
  .js:not(.reduced) .pp-scene--single .pp-hl__lists .pp-hl__list { display: grid; }
}

@media (max-width: 1024px) {
  .js:not(.reduced) .pp-scene--single { height: auto; }
  .js:not(.reduced) .pp-scene--single .pp-scene__pin { position: relative; height: auto; overflow: visible; }
  .pp-scene--single .pp-hero { height: auto; min-height: 0; padding-bottom: clamp(2rem, 6vw, 3rem); }
  .pp-scene--single .pp-hero__device { display: none; }
  .pp-scene--single .pp-hero__cta { position: relative; left: auto; bottom: auto; translate: none; display: flex; justify-content: center; margin-top: var(--space-6); }
  .pp-scene--single .pp-rings { display: none; }
  .js:not(.reduced) .pp-scene--single .pp-hl { position: relative; inset: auto; padding-block: 0 var(--section-y); pointer-events: auto; }
  .js:not(.reduced) .pp-scene--single .pp-hl > .pp-title { position: static; }
  .pp-scene--single .pp-hl__stage { --w: min(calc(60svh * var(--ar)), 78vw, 30rem); }
  .js:not(.reduced) .pp-scene--single .pp-hl__stage { position: relative; left: auto; top: auto; margin: clamp(1.5rem, 4vw, 3rem) auto 0; }
  .js:not(.reduced) .pp-scene--single .pp-hl__device { -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, #000 86%, transparent 100%); }
  .js:not(.reduced) .pp-scene--single .pp-hl > .pp-title,
  .js:not(.reduced) .pp-scene--single .pp-hl__device,
  .js:not(.reduced) .pp-scene--single .pp-hl__floor { visibility: visible; }
}

/* ---- Content-length modifiers ------------------------------------------ */
/* Built cards: 3 to 7 per product; wrap in rows of three, centred */
.pp-built__grid--many { display: flex; flex-wrap: wrap; justify-content: center; }
.pp-built__grid--many > .pp-glass-card { flex: 0 1 calc((100% - 2 * clamp(1rem, 1.25vw, 1.5rem)) / 3); }
.pp-glass-card p + p { margin-top: 0.6em; }
/* Built around with more than 3 cards: slider, 3 per view on desktop,
   2 on tablet, one plus a peek on phones. Aligned to the container. */
.pp-built__grid--slider { display: flex; gap: clamp(1rem, 1.25vw, 1.5rem); padding-inline: 0; scroll-padding-inline: 0; }
.pp-built__grid--slider > .pp-glass-card { flex: 0 0 calc((100% - 2 * clamp(1rem, 1.25vw, 1.5rem)) / 3); }
@media (max-width: 1024px) { .pp-built__grid--slider > .pp-glass-card { flex-basis: calc((100% - clamp(1rem, 1.25vw, 1.5rem)) / 2); } }
@media (max-width: 640px) { .pp-built__grid--slider > .pp-glass-card { flex-basis: 86%; } }
@media (max-width: 1024px) {
  .pp-built__grid--many > .pp-glass-card { flex-basis: calc((100% - clamp(1rem, 1.25vw, 1.5rem)) / 2); }
  .pp-built__grid--many > :last-child { grid-column: auto; }
}
@media (max-width: 640px) { .pp-built__grid--many > .pp-glass-card { flex-basis: 100%; } }

/* FAQ answers that hold a list */
.pp-q__a > div { overflow: hidden; padding: 0 1.5rem; font-size: var(--fs-ui); color: var(--color-gray-300); }
.pp-q__a > div > * + * { margin-top: 0.6em; }
.pp-q__a ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 0.2em; }
.pp-q.is-open .pp-q__a > div { padding-bottom: 1.25rem; }

/* Partnership: support list closing lines and the Curve variant */
.pp-partner__closing { margin-top: clamp(2rem, 3vw, 3rem); text-align: center; font-size: var(--fs-body); color: #fff; }
.pp-partner__closing span { display: block; color: #808080; }
.pp-pcard--product img { object-fit: contain; background: radial-gradient(70% 62% at 50% 6%, #4a4a4a 0%, #1f1f1f 45%, #0a0a0a 80%); padding: 6%; }

/* Testimonial with a person instead of a clinic logo */
.pp-tcard figcaption .pp-tcard__who { color: #fff; }

/* Media that is a cut-out: show all of it on the studio gradient */
.pp-media--contain { background: radial-gradient(70% 62% at 50% 6%, #5a5a5a 0%, #242424 45%, #0a0a0a 85%); }
.pp-media--contain img { object-fit: contain !important; padding: 8%; }

/* Lines after a section's main block (trusted, invest) */
.pp-invest__closing { margin-top: clamp(2rem, 3vw, 3.5rem); font-size: var(--fs-body); color: #cfcfcf; max-width: 40rem; }
.pp-endcta { padding-block: clamp(3rem, 6vw, 6rem) var(--section-y); }
.pp-endcta .pp-intro__cta { justify-content: center; margin-top: var(--space-6); }

/* Single-photo pages: size the background device by height (product photos
   vary from portrait to wide) and keep the copy painted above it */
.pp--single .pp-built > .container, .pp--single .pp-invest__inner { position: relative; z-index: 2; }
.pp--single .pp-built__bg img { width: auto; height: clamp(18rem, 38vw, 42rem); margin-top: clamp(9rem, 12vw, 14rem); }
/* dark layer under the title so the device photo never fights the text */
.pp--single .pp-built__bg::after { content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: calc(var(--section-y) + clamp(10rem, 16vw, 19rem)); background: linear-gradient(180deg, #000 0%, rgb(0 0 0 / 0.92) 45%, rgb(0 0 0 / 0.6) 72%, transparent 100%); }
/* Closing call to action (pages without the full section set, e.g. Vision) */
.pp-endcta__text { max-width: 36rem; margin: var(--space-4) auto 0; color: #cfcfcf; }
.pp--single .pp-invest__device img { width: auto; height: clamp(16rem, 32vw, 36rem); }
/* desktop: short fade (54% to 66% of the photo); product.js places the
   66% line just above the cards */
@media (min-width: 1025px) {
  .pp--single .pp-invest__device img { -webkit-mask-image: linear-gradient(180deg, #000 54%, transparent 66%); mask-image: linear-gradient(180deg, #000 54%, transparent 66%); }
}
