/* Hero sandbox variant 2 — compass 360 on the product line.
   Reuses .bd-hero--v10c layout, rays, and list. Loaded only on
   hero-version.html. */

.bd-hero--hv2 {
  font-optical-sizing: auto;
}

.bd-hero--hv2 .bd-hero__product {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
}

.bd-hero--hv2 .bd-hero__product-name {
  min-width: 0;
}

.bd-hero--hv2 .bd-hero-360 {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  /* 3.5em of the 32px product line = 112px. Inner tick radius
     (~77px) leaves ~9px air each side of tabular “360”. */
  width: 3.5em;
  height: 3.5em;
  color: var(--bd-text, #000);
  /* Whole lockup — digits + dial + wave — sits 8px left of the
     natural slot, so the animation stays glued to the numbers. */
  transform: translateX(-8px);
}

.bd-hero--hv2 .bd-hero-360__dial {
  position: absolute;
  inset: 0;
  z-index: -1; /* Wave overflow paints under product name, trust line, and CTA;
     the copy column (z-index 3) still keeps it above the rays (z-index 2). */
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: inherit;
  /* Slow clockwise spin, same feel as hv3 (48s linear). The whole dial —
     ticks, rim, and wave — rotates as one black-ink disc. */
  transform-origin: 50% 50%;
  animation: bd-hv2-dial-spin 48s linear infinite;
}

/* Stroke comes from the stroke="currentColor" presentation attributes in the
   SVG (black ink, matching the 360 digits). Do not set stroke here — a CSS
   stroke would also override the wave's white. */
.bd-hero--hv2 .bd-hero-360__dial :is(circle, line) {
  fill: none;
  stroke-width: 1;
  stroke-linecap: butt;
  vector-effect: non-scaling-stroke;
}

@keyframes bd-hv2-dial-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Expanding translucent wave — same ping idea as hv4's halo. White ring,
   never a fill. One continuous 9s linear cycle: no hold keyframes, no
   dead time, no ease stall — motion never decelerates to a stop. Scale
   1 → 3 and stroke-width 20px → 1px (CSS pixels via non-scaling-stroke)
   both run 0% → 100% at a constant rate. Opacity is time-driven, not
   size-driven: 0 → 0.15 → 0 peaking at 50%, so the ring is ~15% visible
   mid-cycle however wide it is. Starts 10px inside the rim diameter
   (wave r 24 vs rim r 28). */
.bd-hero--hv2 .bd-hero-360__dial .bd-hero-360__wave {
  fill: none;
  stroke: #fff;
  stroke-width: 20;
  opacity: 0;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  animation: bd-hv2-dial-wave 9s linear infinite;
  pointer-events: none;
}

@keyframes bd-hv2-dial-wave {
  /* Linear the whole way, so there is no perceived pause at the wrap.
     Opacity 0 at both ends: no pop. The 50% keyframe only touches
     opacity; scale and stroke-width interpolate straight across the
     full cycle. */
  0% {
    transform: scale(1);
    opacity: 0;
    stroke-width: 20;
  }
  50% {
    opacity: 0.15;
  }
  100% {
    transform: scale(3);
    opacity: 0;
    stroke-width: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bd-hero--hv2 .bd-hero-360__dial {
    animation: none;
  }

  .bd-hero--hv2 .bd-hero-360__dial .bd-hero-360__wave {
    animation: none;
    opacity: 0;
  }
}

.bd-hero--hv2 .bd-hero-360__num {
  position: relative;
  z-index: 1;
  font-optical-sizing: auto;
  font-size: 32px;
  font-weight: 500;
  font-variation-settings: "wght" 500;
  font-feature-settings: "tnum" 1, "lnum" 1, "liga" 1, "calt" 1;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--bd-text, #000);
  white-space: nowrap;
}
