/* =====================================================================
   Light Tracer · patch v4.2 (stargazing angle: pointer held from below, beam up into the sky)
   Append AFTER lighttracer-1.0.2.css, or merge into it and bump to 1.0.3.
   Replaces every earlier .hero-product / .hero-tags / .tip-beam rule (v4, v4.1).
   Reference screenshots: delivery/previews/home-1440.png, home-1280.png, home-390.png
   ===================================================================== */

/* 0. grid safety: long kicker text must not widen the hero on phones */
.night { grid-template-columns: minmax(0, 1fr); }
.night > .wrap, .hero-grid > * { min-width: 0; }
.hero-grid { grid-template-columns: minmax(0, 1fr); }

/* 1. home hero: the single .streak is retired on the home page only */
.home .hero .streak, .front-page .hero .streak { display: none !important; }

/* 2. pointer image + beam leaving the emitter */
.hero-product { position: relative; margin: 0; justify-self: end; width: min(62%, 260px); margin-right: 18%; }
.hero-product img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 720 / 1057; filter: drop-shadow(0 18px 30px rgba(0,0,0,.7)); }
/* stargazing angle: the pointer is held from below, emitter up-left, beam shoots up into the sky at 60deg.
   Anchor = emitter inside pointer-up-*.webp: x 14.58%, y 6.83% of the image box. Re-measure if the image changes. */
.tip-beam, .tip-glow { position: absolute; pointer-events: none; }
.tip-beam { z-index: -1; right: calc(100% - 14.58%); top: calc(6.83% - 1px); width: 220vh; height: 2px; background: linear-gradient(270deg, var(--laser-hi) 0, var(--laser) 6%, rgba(61,255,110,.9) 40%, rgba(61,255,110,.5) 100%); box-shadow: 0 0 10px var(--laser-glow), 0 0 24px rgba(61,255,110,.35); transform-origin: right center; transform: rotate(60deg); }
.tip-glow { z-index: 1; left: calc(14.58% - 14px); top: calc(6.83% - 14px); width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle, rgba(200,255,215,.95) 0, rgba(61,255,110,.65) 35%, rgba(61,255,110,0) 70%); }
@media (prefers-reduced-motion: no-preference) {
  .tip-beam { animation: lt-shoot 1.1s var(--ease-out) .35s both; }
  .tip-glow { animation: lt-glow 1.1s var(--ease-out) .2s both; }
}
@keyframes lt-shoot { from { transform: rotate(60deg) scaleX(0); opacity: 0; } 15% { opacity: 1; } to { transform: rotate(60deg) scaleX(1); opacity: 1; } }
@keyframes lt-glow { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
.hero-tags { list-style: none; margin: 0; padding: 0; }
.hero-tags li { position: absolute; z-index: 2; display: grid; gap: 2px; padding: var(--s2) var(--s3); background: rgba(3,3,3,.72); border: 1px solid var(--line-2); border-radius: 6px; backdrop-filter: blur(4px); }
.hero-tags li::before { content: ""; position: absolute; top: 50%; width: 28px; height: 1px; background: var(--laser); box-shadow: 0 0 6px var(--laser-glow); }
.hero-tags li::after { content: ""; position: absolute; top: calc(50% - 3px); width: 7px; height: 7px; border-radius: 50%; background: var(--laser); }
.hero-tags .v { font-family: var(--font-mono); font-size: 18px; line-height: 1.1; white-space: nowrap; }
.hero-tags .k { font-size: 13px; color: var(--muted); white-space: nowrap; }
/* t1 -> emitter, t2 -> switch, t3 -> battery tube. t1/t2 sit right of the body, t3 left of it, clear of the beam */
.hero-tags .t1 { top: 14%; left: calc(40% + 28px); }
.hero-tags .t2 { top: 44%; left: calc(64% + 28px); }
.hero-tags .t3 { top: 74%; right: calc(40% + 28px); }
.hero-tags .t1::before, .hero-tags .t2::before { right: 100%; }
.hero-tags .t1::after, .hero-tags .t2::after { right: calc(100% + 25px); }
.hero-tags .t3::before { left: 100%; }
.hero-tags .t3::after { left: calc(100% + 25px); }

@media (max-width: 1023px) {
  .hero .night-bg { height: 165%; object-position: 50% 0; }
  /* short beam on small screens so it never crosses the headline or price */
  .tip-beam { width: 150px; background: linear-gradient(270deg, var(--laser-hi) 0, var(--laser) 10%, rgba(61,255,110,0) 100%); }
}
@media (max-width: 559px) {
  .hero-tags .v { font-size: 15px; } .hero-tags .k { font-size: 12px; }
  .hero-product { width: 46%; margin-right: 22%; margin-top: 64px; }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .hero-product { width: min(58%, 300px); margin-right: 22%; align-self: center; }
  .hero .night-bg { object-position: 50% 8%; }
  .hero:not(.page-hero) .hero-h1 { font-size: clamp(52px, 5vw, 80px); }
}
