/* Light Tracer · patch v9.2 · home hero merge
   REPLACES the whole "7b. home hero (v8)" block (patch-v8 css) AND the v6 "beam motion" block. Load after v4..v7A.
   Do not load v8 css together with this. Needs the v9 hero markup (docs/11) and patch-v9/img/pointer-hero-v92-{640,1100}.webp.
   v9.2: pointer at 22deg, pulled left (emitter ~55% of a phone screen), tail may leave the left edge;
   beam visibly longer (about 190px on a 390 phone, 450px at 1440x900); flowing light + photon on the beam. */
/* ---------- 7b. home hero (v9: pointer merged into the headline) ----------
   Product-first. Category, product, price and CTA on the first screen at every size
   (1440x900, 1280x800, 1024x768, 768x1024, 390x844, 375x553, 320x568).
   v9.2 pointer image pointer-hero-v92-*.webp (1091x625, transparent): pointer-up-720 rotated 96deg clockwise,
   so the body lies 22deg above horizontal, emitter on the right. Rotation, not mirror: label text reads normally.
   Anchors inside the image box (re-measure if the image changes):
     emitter 94.29% / 17.22% · warning label 41.6% / 57.3% · tail 4.95% / 80.46% · body axis -22deg
   One beam (.tip-beam) leaves the emitter at -22deg and exits the right edge: it never crosses copy or nav.
   The pointer is pulled left (emitter near 60% of the screen on phones) so the beam crosses more open sky.
   phones (<768): kicker, headline, pointer (tucked behind the headline), price + save + CTA, shipping, lead
   tablet + desktop (>=768): headline + buy block left, pointer right */
.hero { min-height: 0; align-items: center; }
.hero .wrap { width: 100%; padding-top: calc(var(--header-h) + var(--s2)); padding-bottom: var(--s5); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "product" "buy"; align-items: center; }
.hero-head { grid-area: head; position: relative; z-index: 2; display: grid; gap: var(--s2); }
.hero-buy { grid-area: buy; position: relative; z-index: 2; display: grid; gap: 10px; }
.hero-lead { font-size: 16px; line-height: 1.5; color: var(--on-photo); max-width: 46ch; }
.hero:not(.page-hero) .hero-h1 { font-size: clamp(38px, 11vw, 60px); text-shadow: 0 2px 18px rgba(3,3,3,.7); }
.hero-head > .kicker { font-size: 11px; letter-spacing: .08em; }
.hero-buy .save { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 4px; background: var(--laser); color: var(--laser-ink); font: 600 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.hero-buy .buyrow { gap: var(--s2) var(--s3); }
.hero-buy .buyrow .price { font-size: 28px; }
.hero-buy .buyrow .btn { flex: 1 1 100%; min-height: 50px; }
/* the pointer sits behind the headline (z-index 1 < 2) and overlaps it slightly; its top-left corner is empty glass */
/* v9.1: pointer 84% of the column (about 16% smaller than v9) and pushed left, so the beam has more room before the right edge */
.hero-product { grid-area: product; position: relative; z-index: 1; margin: 2px 0 6px calc(-22px - var(--gutter)); width: 64vw; max-width: 360px; justify-self: start; isolation: isolate; }
.hero-product img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 1091 / 625; filter: drop-shadow(0 16px 14px rgba(0,0,0,.8)); }
/* seat it in the scene: local darkening behind the body + a soft contact shadow under it; green spill at the emitter */
.hero-product::before { content: ""; position: absolute; z-index: -2; inset: -30% -10% -24%; pointer-events: none;
  background: radial-gradient(48% 34% at 50% 86%, rgba(0,0,0,.6), rgba(0,0,0,0) 100%), radial-gradient(closest-side, rgba(3,3,3,.62), rgba(3,3,3,.28) 62%, rgba(3,3,3,0)); }
.hero-product::after { content: ""; position: absolute; z-index: -1; left: 94.29%; top: 17.22%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(61,255,110,.24), rgba(61,255,110,.07) 55%, rgba(61,255,110,0)); pointer-events: none; }
.tip-beam, .tip-glow { position: absolute; pointer-events: none; }
.tip-beam { z-index: -1; left: 94.29%; top: calc(17.22% - 1px); width: 160vmax; height: 2px; transform-origin: 0 50%; transform: rotate(-22deg); background: linear-gradient(90deg, var(--laser-hi) 0, var(--laser) 3%, rgba(61,255,110,.92) 30%, rgba(61,255,110,.6) 100%); box-shadow: 0 0 10px var(--laser-glow), 0 0 24px rgba(61,255,110,.35); }
.tip-glow { z-index: 1; left: 94.29%; top: 17.22%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: radial-gradient(circle, rgba(220,255,230,.95) 0, rgba(61,255,110,.65) 35%, rgba(61,255,110,0) 70%); }
@keyframes lt-shoot { from { transform: rotate(-22deg) scaleX(0); opacity: 0; } 15% { opacity: 1; } to { transform: rotate(-22deg) scaleX(1); opacity: 1; } }
@keyframes lt-glow { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
/* leader-line tags hang below the body: dot on the pointer at (--x, --y), vertical leader --l, tag underneath.
   t1 -> head/emitter, t2 -> warning label, t3 -> battery tube. Phones show t1 only. */
.hero-tags { list-style: none; margin: 0; padding: 0; }
.hero-tags li { position: absolute; z-index: 2; left: var(--x); top: calc(var(--y) + var(--l)); transform: translateX(-50%); display: grid; gap: 2px; padding: 4px 8px; background: rgba(3,3,3,.74); border: 1px solid var(--line-2); border-radius: 6px; backdrop-filter: blur(4px); text-align: center; }
.hero-tags li::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: var(--l); background: var(--laser); box-shadow: 0 0 6px var(--laser-glow); }
.hero-tags li::after { content: ""; position: absolute; left: calc(50% - 3.5px); bottom: calc(100% + var(--l) - 3.5px); width: 7px; height: 7px; border-radius: 50%; background: var(--laser); box-shadow: 0 0 8px var(--laser-glow); }
.hero-tags .v { font-family: var(--font-mono); font-size: 14px; line-height: 1.1; white-space: nowrap; }
.hero-tags .k { font-size: 12px; color: var(--muted); white-space: nowrap; }
.hero-tags .t1 { --x: 82%; --y: 40%; --l: 14px; }
.hero-tags .t2 { --x: 46%; --y: 72%; --l: 22px; }
.hero-tags .t3 { --x: 15%; --y: 86%; --l: 18px; }
.hero-strip { list-style: none; margin: var(--s4) 0 0; padding: var(--s4) 0 0; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-photo); }
.hero-strip li { display: flex; align-items: center; gap: var(--s2); }
.hero-strip li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--laser); }
@media (max-width: 1023px) {
  /* phone/tablet: enlarge the photo from the top so the ridge and boat fall below the hero */
  .hero .night-bg { height: 165%; object-position: 50% 0; }
}
@media (max-width: 767px) {
  /* darken only behind header, headline and pointer; let the Milky Way show through below */
  .hero::before { background: linear-gradient(180deg, rgba(3,3,3,.72) 0, rgba(3,3,3,.5) 22%, rgba(3,3,3,.3) 42%, rgba(3,3,3,.12) 60%, rgba(3,3,3,.38) 86%, var(--bg) 100%); }
  .hero-buy > .ship { order: 2; }
  .hero-buy > .hero-lead { order: 3; }
  .hero-tags .t2, .hero-tags .t3, .hero-tags .t1 .k { display: none; }
}
@media (min-width: 560px) and (max-width: 767px) { .hero-product { width: 54vw; margin-left: 0; } }
@media (max-width: 767px) and (max-height: 600px) { .hero-buy { gap: 8px; } .hero-product { margin-bottom: 0; } }
/* 320-359px: keep price, was-price and Save 50% on one line; keep the header inside the viewport */
@media (max-width: 374px) { .hero-product { margin-top: 16px; } }
@media (max-width: 359px) { .hero-buy .buyrow { gap: var(--s2); } .hero-buy .buyrow .price { font-size: 24px; } .hero-buy .save { padding: 0 6px; font-size: 11px; } .site-head .wrap { gap: var(--s3); } .brand { font-size: 16px; } }
@media (min-width: 768px) {
  .hero .wrap { padding-top: calc(var(--header-h) + var(--s5)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head product" "buy product"; column-gap: var(--s6); row-gap: var(--s4); align-items: end; }
  .hero-head { gap: var(--s3); }
  .hero-buy { align-self: start; gap: var(--s3); }
  .hero-product { align-self: center; margin: 0 0 var(--s6); width: 80%; max-width: none; }
  .hero-buy .buyrow .btn { flex: 0 0 auto; }
  .hero:not(.page-hero) .hero-h1 { font-size: clamp(48px, 6.4vw, 84px); }
  .hero-lead { font-size: 17px; }
  .hero-tags .v { font-size: 15px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-buy .buyrow .btn { flex: 1 1 100%; }
  .hero-tags .t3 { display: none; }
}
@media (min-width: 1024px) {
  .hero { min-height: min(80vh, 760px); }
  .hero .wrap { padding-top: calc(var(--header-h) + var(--s4)); }
  .hero-grid { column-gap: var(--s7); }
  .hero-product { width: 80%; max-width: 480px; justify-self: start; margin-left: -120px; }
  .hero .night-bg { object-position: 50% 8%; }
  .hero-lead { font-size: 18px; max-width: 36ch; }
  .hero-tags li { padding: 5px 10px; }
  /* v9.2: the pointer reaches into the copy column; the battery tag would sit under the CTA, so desktop shows 532 nm + <5 mW */
  .hero-tags .t3 { display: none; }
}

/* ---------- v6 beam motion: power-on, photon pulses, breathing glow, twinkling sky ----------
   All CSS. Every rule sits inside prefers-reduced-motion: no-preference, so reduced-motion users
   get the static, full-length beam. */
.tip-beam::before, .tip-beam::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.tip-beam::before { inset: -5px 0; background: linear-gradient(90deg, rgba(61,255,110,.55) 0, rgba(61,255,110,.22) 35%, rgba(61,255,110,0) 100%); filter: blur(5px); opacity: .6; }
/* v9.1 photon: a 160px bright head that travels the visible part of the beam (0 -> 100vw), not the whole 160vmax box */
.tip-beam::after { inset: auto; left: 0; top: -2px; width: 160px; height: 6px; opacity: 0; border-radius: 3px; background: linear-gradient(90deg, rgba(61,255,110,0) 0, rgba(141,255,170,.85) 70%, #f2fff5 92%, rgba(242,255,245,0) 100%); box-shadow: 0 0 12px rgba(61,255,110,.8); }
/* v9.1 flow: faint brighter bands drift outward along the beam (static for reduced-motion users) */
.tip-beam { background-image: repeating-linear-gradient(90deg, rgba(220,255,230,0) 0 60px, rgba(220,255,230,.55) 80px, rgba(220,255,230,0) 100px 140px), linear-gradient(90deg, var(--laser-hi) 0, var(--laser) 3%, rgba(61,255,110,.92) 30%, rgba(61,255,110,.6) 100%); }
.hero::after { content: ""; position: absolute; inset: 0 0 35% 0; z-index: -1; pointer-events: none; opacity: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 27% 9%, #dfffe8 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 46% 22%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 63% 7%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 28%, #e6fff0 50%, transparent 51%), radial-gradient(1.2px 1.2px at 91% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 36% 40%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 85% 46%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 6% 52%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 56% 48%, #dfffe8 50%, transparent 51%); }
@media (prefers-reduced-motion: no-preference) {
  .tip-beam::before { animation: lt-beam-breathe 3.6s ease-in-out 1.5s infinite; }
  .tip-beam::after { animation: lt-photon 2.8s cubic-bezier(.4, 0, .7, 1) 1.5s infinite; }
  .tip-beam { animation: lt-shoot 1.1s var(--ease-out) .35s both, lt-flow 1.6s linear 1.5s infinite; }
  .tip-glow { animation: lt-glow 1.1s var(--ease-out) .2s both, lt-tip-pulse 3.6s ease-in-out 1.5s infinite; }
  .hero::after { animation: lt-twinkle 5.5s ease-in-out 1s infinite alternate; }
}
@keyframes lt-photon { 0% { transform: translateX(-160px); opacity: 0; } 8% { opacity: 1; } 60% { opacity: 1; } 75%, 100% { transform: translateX(110vw); opacity: 0; } }
@keyframes lt-flow { from { background-position: 0 0, 0 0; } to { background-position: 140px 0, 0 0; } }
@keyframes lt-beam-breathe { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes lt-tip-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .85; } }
@keyframes lt-twinkle { 0% { opacity: .15; } 35% { opacity: .7; } 60% { opacity: .3; } 100% { opacity: .8; } }


/* Clear the v4 and base callout offsets when using the v9.2 anchors. */
.hero .tip-beam { right: auto; }
.hero .hero-tags li { left: var(--x); top: calc(var(--y) + var(--l)); right: auto; bottom: auto; }
.hero .hero-tags li::before, .hero .hero-tags li::after { display: block; top: auto; right: auto; }
.hero .hero-tags li::before { left: 50%; }
.hero .hero-tags li::after { left: calc(50% - 3.5px); }
.hero .ajax_add_to_cart.loading { opacity: .65; cursor: progress; }

@media (min-width: 1024px) {
  .pdp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}

.hero-head > .kicker { text-transform: none; }

@media (max-width: 767px) {
  .hero-grid { row-gap: 0; }
  body:has(.stickybar.on) #tidio-chat { translate: 0 calc(-80px - env(safe-area-inset-bottom)); }
}
