/* Product page only: hero scroll scene, device lists with smart store links.
   Source of values: docs/design-concept-main.md section 10 */

/* Hero scroll scene (product only): inset dark panel that grows to a full-bleed hero on scroll */
.hero :focus-visible{outline-color:#fff}
.hero .fade{opacity:0;transform:translateY(16px);transition:opacity 1s var(--ease) .45s,transform 1s var(--ease) .45s}
.hero.ready .fade{opacity:1;transform:none}
.hero .pic{position:absolute;left:0;top:-8%;width:100%;height:116%;object-fit:cover;max-width:none;opacity:0;transition:opacity 1.6s var(--ease)}
.hero.ready .pic{opacity:1}
.hero.v3{--p:0;--pt:104px;--px:24px;background:#fff;padding:0;overflow:visible;height:calc(100vh + 480px)}
.v3 .stage{position:sticky;top:0;height:100vh;padding:calc(var(--pt) * (1 - var(--p))) calc(var(--px) * (1 - var(--p))) calc(var(--px) * (1 - var(--p)))}
.v3 .panel{--backdrop:linear-gradient(180deg,#fff 0%,#fff 55%,var(--night) 68%);position:relative;height:100%;border-radius:calc(28px * (1 - var(--p)));overflow:hidden;background:var(--backdrop);color:#fff;padding:calc(48px + 88px * var(--p)) calc(var(--gutter) - var(--px) * (1 - var(--p))) 64px;display:flex;flex-direction:column;justify-content:flex-end;isolation:isolate}
/* Three photos side by side behind the copy. While the panel grows (--p 0 > 1) the gaps and corners close, so the full-bleed
   hero ends as one continuous scene. Entrance: the photos rise one after another and settle slowly (same feel as the photo heroes) */
/* Backdrop behind the photos (seen in the gaps and before the photos arrive): white (#fff, the hero background) from the top
   to about the middle, then --night from ~68% where the copy sits, so the white copy is readable from the first frame.
   The photos rise onto it from 120px; the fade is short so the rise is what reads */
.v3 .pics{position:absolute;inset:0;z-index:-2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:calc(12px * (1 - var(--p)));background:var(--backdrop)}
.v3 .pc{position:relative;margin:0;overflow:hidden;border-radius:calc(16px * (1 - var(--p)));opacity:0;transform:translateY(120px);transition:opacity .8s var(--ease) var(--d,0s),transform 2.4s cubic-bezier(.16,1,.3,1) var(--d,0s)}
.v3 .pc:nth-child(2){--d:.2s}
.v3 .pc:nth-child(3){--d:.4s}
.hero.v3.ready .pc{opacity:1;transform:none}
.v3 .pc .pic,.hero.ready .v3 .pc .pic{opacity:1;transition:none}
.v3 .pc:nth-child(1) .pic{object-position:40% 50%}
.v3 .pc:nth-child(2) .pic{object-position:55% 45%}
.v3 .pc:nth-child(3) .pic{object-position:50% 40%}
/* Shade for the copy, on each photo so it does not grey the white gaps (the gaps take care of themselves above) */
.v3 .pc::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(3,18,26,.92) 0%,rgba(3,18,26,.55) 38%,rgba(3,18,26,.1) 70%,rgba(3,18,26,.35) 100%)}
.v3 .lead-col{display:flex;flex-direction:column;gap:48px}
.v3 .scroll-cue{position:static}
.hero.v3.ready .scroll-cue{opacity:calc(1 - var(--p) * 2)}
/* Copy column: wide enough to keep the lead's first sentence on one line (604px at 22px) */
.v3 .pbot{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,620px);gap:40px;align-items:end}
.v3 .pbot .side{display:flex;flex-direction:column;gap:28px}
/* Same type as the photo heroes (components.css .hero.photo): 60px / 700 headline, 22px lead */
.v3 h1{font-size:clamp(42px,3.75vw,60px);line-height:1.22;font-weight:700;letter-spacing:-.035em;text-wrap:balance}
/* Headline keyword on the dark panel: the dark-background point teal (#35B7D9, as in the header hover), --teal is too low on --night */
.v3 h1 .kw{color:#35B7D9}
.v3 .pbot p{margin:0;font-size:22px;line-height:1.6;letter-spacing:-.015em;color:rgba(255,255,255,.78);text-wrap:pretty}
.v3 .pbot .btn{align-self:flex-start;font-size:18px;padding:0 34px} /* hero CTA size, as components.css .hero.photo */
.hero.v3 .pic,.hero.v3.ready .pic{transform:scale(calc(1.1 - .1 * var(--p)))}

.pd{padding:140px var(--gutter)}
.pd.mist{background:var(--mist)}
.pd.dark{background:var(--night);color:#fff}
.pd-lead{margin:0;font-size:17px;line-height:1.75;color:var(--ink-2)}
.pd.dark .pd-lead{color:rgba(255,255,255,.72)}

/* Device card. One per row: photo left, text right */
.plist{display:flex;flex-direction:column;gap:32px}
.pdc{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:24px;padding:14px;border-radius:24px;background:#fff;box-shadow:var(--shadow);color:var(--ink)}
.pdc-img{min-height:360px;border-radius:16px;overflow:hidden}
/* Product photo (transparent cut-out) on a light stage */
.pdc-img.photo{display:flex;align-items:center;justify-content:center;padding:32px;background:radial-gradient(circle at 50% 45%,#fff 0%,var(--mist) 72%)}
.pdc-img.photo img{width:min(300px,80%);height:auto;filter:drop-shadow(0 18px 40px rgba(11,31,41,.08));transition:transform .6s var(--ease)}
.pdc:hover .pdc-img.photo img{transform:scale(1.03)}
/* Staged product photo (full background, not a cut-out): fills the image area */
.pdc-img.full{position:relative;background:#fff}
.pdc-img.full img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 55%;transition:transform .6s var(--ease)}
.pdc:hover .pdc-img.full img{transform:scale(1.03)}
.pdc-body{display:flex;flex-direction:column;padding:36px 36px 30px 20px}
.pdc-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.pdc h3{margin:0;font-family:Sora,sans-serif;font-size:32px;font-weight:500;line-height:1.35;letter-spacing:-.01em;transition:color .6s var(--ease)}
.pdc h3 small{font-family:Pretendard,sans-serif;font-size:15px;font-weight:500;color:var(--ink-2);margin-left:4px}
.pdc:hover h3{color:var(--teal)}
.pdc .no{font-family:Sora,sans-serif;font-size:36px;font-weight:300;line-height:1.1;color:var(--teal)}
.pdc-body>p{margin:18px 0 32px;max-width:820px;font-size:17px;line-height:1.75;color:var(--ink-2)}
.pdc-foot{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:auto;padding-top:24px;border-top:1px solid var(--line)}
.pdc .tags{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.pdc .store{flex-shrink:0;height:50px;padding:0 24px;gap:8px;font-size:15px}
/* Not on sale yet: status pill in place of the store button, same height. Lime dot = status signal (design-rules.md 1) */
.pdc .soon{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;gap:10px;height:50px;padding:0 24px;border-radius:999px;border:1px solid var(--track);font-size:15px;font-weight:600;color:var(--ink-2);white-space:nowrap}
.pdc .soon::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--lime)}
/* Description toggle: phone only, built by product.js */
.pdc-more{display:none;align-self:flex-start;align-items:center;gap:4px;height:44px;margin-bottom:12px;padding:0;border:0;background:none;font-size:14px;font-weight:600;color:var(--teal)}
.pdc-more svg{transition:transform .6s var(--ease)}
.pdc-more[aria-expanded="true"] svg{transform:rotate(180deg)}
.pdc-more[aria-expanded="true"] .closed,.pdc-more[aria-expanded="false"] .opened{display:none}

/* Glass card on the dark section */
.pd.dark .pdc{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);box-shadow:none;color:#fff;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);transition:border-color .6s var(--ease)}
.pd.dark .pdc:hover{border-color:rgba(255,255,255,.28)}
.pd.dark .pdc:hover h3{color:#fff}
.pd.dark .pdc h3 small{color:rgba(255,255,255,.6)}
.pd.dark .pdc .no{color:#35B7D9}
.pd.dark .pdc-body>p{color:rgba(255,255,255,.72)}
.pd.dark .pdc-foot{border-top-color:rgba(255,255,255,.14)}
.pd.dark .pdc .soon{border-color:rgba(255,255,255,.3);color:rgba(255,255,255,.78)}
.pd.dark .pdc-more{color:#35B7D9}
.pd.dark .pdc-img{background-color:#0A2733}
.pd.dark .chip{background:transparent;border:1px solid rgba(255,255,255,.35);color:#fff}

@media (prefers-reduced-motion:reduce){
  .hero .fade,.hero .pic,.v3 .pc{opacity:1;transform:none;transition:none}
}
@media (max-width:1180px){
  .v3 .pbot{grid-template-columns:1fr;gap:32px}
  .pdc{grid-template-columns:1fr}
  .pdc-img{min-height:300px}
  .pdc-body{padding:14px}
}
@media (max-width:720px){
  .hero.v3{--pt:80px;--px:12px;height:calc(100svh + 360px)}
  .v3 .stage{height:100svh}
  .v3 .panel{border-radius:calc(24px * (1 - var(--p)));padding:calc(24px + 72px * var(--p)) calc(20px + 12px * var(--p)) 32px}
  .v3 h1{font-size:36px}
  .v3 .pbot p{font-size:18px}
  .v3 .pbot .btn{font-size:16px;padding:0 30px}
  /* Phone: three columns get too thin, so the panel keeps the first photo only */
  .v3 .pics{grid-template-columns:1fr}
  .v3 .pc:not(:first-child){display:none}
  .pd{padding-top:88px;padding-bottom:88px}
  .plist{gap:16px}
  .pdc{padding:10px;gap:16px;border-radius:20px}
  .pdc-img{min-height:220px}
  .pdc-body{padding:10px 8px 8px}
  .pdc h3{font-size:24px}
  .pdc .no{font-size:28px}
  .pdc-body>p{font-size:15px;margin:14px 0 24px}
  .pdc-body>p.fold:not(.open){display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .pdc-body>p:has(+.pdc-more:not([hidden])){margin-bottom:4px}
  .pdc-more:not([hidden]){display:inline-flex}
  .pdc-foot{flex-direction:column;align-items:stretch;gap:18px}
  .pdc .store,.pdc .soon{justify-content:center}
}
