/* home-road.css — the scroll-filled road in "How it works" (MCC-homepage-upgrades-v2 §5.2, 2026-11-27).
   Behaviour: www/home-road.js. One lane line between the step markers: a muted dashed track with an
   accent fill that grows with the scroll (transform only). Site tokens only; both themes.
   Reduced motion: the final state (full fill, every step lit, no pulse). No JS: no road. */
.hp-road-wrap { position: relative; }
.hp-road { position: absolute; inset: 0; pointer-events: none; display: none; }
.hp-road-wrap.is-ready .hp-road { display: block; }
.hp-road-lane { position: absolute; height: 2px; margin-top: -1px; }
.hp-road.is-v .hp-road-lane { width: 2px; height: auto; margin-top: 0; margin-left: -1px; }
.hp-road-track, .hp-road-fill { position: absolute; inset: 0; border-radius: 1px; }
.hp-road-track { background-image: linear-gradient(to right, var(--text-muted) 55%, transparent 0); background-size: 9px 2px; opacity: .55; }
.hp-road.is-v .hp-road-track { background-image: linear-gradient(to bottom, var(--text-muted) 55%, transparent 0); background-size: 2px 9px; }
.hp-road-fill { background: var(--accent-gold); transform: scaleX(0); transform-origin: left center; transition: transform .12s linear; will-change: transform; }
.hp-road-lane.is-back .hp-road-fill { transform-origin: right center; }
.hp-road.is-v .hp-road-fill { transform: scaleY(0); transform-origin: center top; }
.hp-road.is-v .hp-road-lane.is-back .hp-road-fill { transform-origin: center bottom; }

/* Markers: the steps' own number circles (home-precision.css .hp-steps li::before). Lit: the primary
   button's gold and ink (home-precision.css body.hp-v3 .btn--primary), in both themes. */
.hp-road-wrap.is-ready .hp-steps li::before { transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.hp-road-wrap.is-ready .hp-steps li.is-lit::before { background: var(--accent-gold); border-color: var(--accent-gold); color: #12161c; animation: hp-road-pulse .42s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes hp-road-pulse { 0% { transform: scale(1); } 45% { transform: scale(1.18); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .hp-road-fill { transition: none; }
  .hp-road-wrap.is-ready .hp-steps li::before { transition: none; }
  .hp-road-wrap.is-ready .hp-steps li.is-lit::before { animation: none; }
}
