/* IndiaRoad Map: home page only. Uses the tokens in site.css. */

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 40px 0 56px;
  background:
    radial-gradient(60% 40% at 50% 70%, rgba(23, 92, 211, .34), transparent 72%),
    radial-gradient(26% 16% at 50% 70%, rgba(255, 181, 71, .14), transparent 70%),
    var(--night);
}
.hero::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, var(--night)); }
.hero-canvas { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; }
.hero-grid { display: grid; gap: 36px; }
.hero-copy { text-align: center; }
.hero-kicker {
  display: inline-block; margin-bottom: 20px; padding: 6px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(15, 28, 52, .65);
  color: var(--muted); font-size: .88rem;
}
.hero-title { position: relative; font-variation-settings: "opsz" 96; }
.ln { display: block; overflow: hidden; padding: 0 .04em .14em; margin-bottom: -.08em; }
.ln > span { display: inline-block; }
.ht-base .ln:last-child { color: #C3D3F0; }
.ht-sweep {
  position: absolute; inset: 0; pointer-events: none; color: transparent;
  background: linear-gradient(100deg, var(--sky) 10%, var(--amber) 55%, #FFE3B0 85%);
  -webkit-background-clip: text; background-clip: text;
  clip-path: inset(0 100% 0 0);
  animation: sweep 7s var(--ease) 1.6s infinite;
}
@keyframes sweep { 0% { clip-path: inset(0 100% 0 0); } 30%, 52% { clip-path: inset(0 0 0 0); } 82%, 100% { clip-path: inset(0 0 0 100%); } }
.hero-sub { max-width: 32rem; margin: 18px auto 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.15rem); }
.hero-cta { margin-top: 26px; display: grid; justify-items: center; gap: 14px; }

.hero-phones { position: relative; width: 100%; max-width: 360px; height: 380px; margin: 0 auto; }
.phone { position: absolute; margin: 0; border-radius: 30px; }
.phone img { width: 100%; border-radius: 24px; }
.phone-back {
  width: 160px; left: 4%; top: 40px; padding: 6px; background: #03060D; border: 1px solid var(--line-hi);
  transform: rotate(-7deg); opacity: .9; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
  animation: floatB 7s ease-in-out infinite;
}
.phone-front {
  width: 176px; right: 4%; top: 0; padding: 2px; overflow: hidden; isolation: isolate;
  background: var(--line-hi);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .9), 0 0 60px -10px rgba(23, 92, 211, .6);
  animation: floatF 6s ease-in-out infinite;
}
.phone-screen { position: relative; display: block; padding: 5px; border-radius: 28px; background: #03060D; }
.beam-ring { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; }
.beam-ring::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 220%; aspect-ratio: 1; transform-origin: 0 0;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(148, 187, 255, .2) 78%, var(--sky) 90%, #fff 94%, var(--amber) 97%, transparent 100%);
  animation: beam 4.5s linear infinite;
}
@keyframes beam { from { transform: rotate(0) translate(-50%, -50%); } to { transform: rotate(1turn) translate(-50%, -50%); } }
@keyframes floatF { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes floatB { 0%, 100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(-7deg) translateY(10px); } }
.float-chip {
  position: absolute; z-index: 3; left: 0; bottom: 14px;
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  padding: 9px 15px 9px 9px; border-radius: 16px;
  background: rgba(10, 20, 40, .9); border: 1px solid rgba(255, 181, 71, .5);
  font-weight: 600; font-size: .92rem;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .7), 0 0 30px -8px rgba(255, 181, 71, .5);
  animation: floatF 5s 1s ease-in-out infinite;
}
.chip-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--amber); color: #2A1A00; font-weight: 800; }

@media (min-width: 960px) {
  .hero { padding: 64px 0 88px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }
  .hero-copy { text-align: left; }
  .hero-sub { margin-left: 0; }
  .hero-cta { justify-items: start; }
  .hero-phones { height: 560px; max-width: 460px; }
  .phone-back { width: 236px; top: 64px; left: 0; }
  .phone-front { width: 258px; right: 0; }
  .float-chip { left: -24px; bottom: 56px; }
}

/* ---------- street-name marquee ---------- */
.ticker { padding: 24px 0 28px; border-block: 1px solid var(--line); background: var(--deep); }
.ticker-title { padding: 0 var(--gutter) 14px; text-align: center; font: 500 .95rem/1.4 var(--body); letter-spacing: 0; color: var(--text); }
.ticker-title span { display: block; color: var(--muted); font-size: .8rem; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 10px; }
.marquee-track { display: flex; gap: 10px; width: max-content; margin: 0; padding: 0; list-style: none; animation: marquee 60s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 75s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-track li {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  padding: 8px 15px 8px 9px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: .92rem;
}
.marquee-track li i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .68rem; font-weight: 800; }
.marquee-track .k-POTHOLE i { background: rgba(240, 68, 56, .2); color: #FF8A80; box-shadow: inset 0 0 0 2px #FF6B5E; }
.marquee-track .k-SPEED_BREAKER i { background: rgba(255, 181, 71, .18); color: var(--amber); box-shadow: inset 0 0 0 2px var(--amber); }
.marquee-track .k-BAD_ROAD i { background: rgba(148, 187, 255, .18); color: var(--sky); box-shadow: inset 0 0 0 2px var(--sky); }
.marquee-track li b { font-weight: 600; }
.marquee-track li span { color: var(--muted); }

/* ---------- pinned story ---------- */
.story { position: relative; padding-top: var(--section); }
.story-head { text-align: center; padding-bottom: 8px; }
.story-head h2 { max-width: 18ch; margin: 0 auto; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.stage-col { grid-column: 2; grid-row: 1; align-self: start; position: sticky; top: 62px; height: calc(100vh - 62px); height: calc(100svh - 62px); }
.steps { grid-column: 1; grid-row: 1; list-style: none; margin: 0; padding: 0; }
.step { min-height: 58vh; min-height: 58svh; display: flex; align-items: center; }
.step:first-child { min-height: 70svh; }
.step:last-child { min-height: 80vh; min-height: 80svh; }
.step-body { max-width: 26rem; opacity: .25; transition: opacity .5s var(--ease); }
.step.is-active .step-body { opacity: 1; }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 16px; border-radius: 50%; border: 1.5px solid var(--amber); color: var(--amber); font: 700 .92rem/1 var(--display); }
.step h3 { font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.06; margin-bottom: 12px; }
.step p { color: var(--muted); max-width: 32ch; }

.stage {
  --pw: min(290px, calc((100vh - 150px) / 2.18));
  --bz: calc(var(--pw) * .034); --sw: calc(var(--pw) - 2 * var(--bz)); --sh: calc(var(--sw) * 20 / 9);
  position: relative; height: 100%;
}
@supports (height: 100svh) { .stage { --pw: min(290px, calc((100svh - 150px) / 2.18)); } }
.segs { position: absolute; z-index: 6; top: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.segs i { position: relative; width: 26px; height: 3px; border-radius: 3px; background: rgba(148, 187, 255, .2); overflow: hidden; }
.segs i::after { content: ""; position: absolute; inset: 0; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.segs i.on::after { transform: scaleX(1); }

.halo { position: absolute; left: 50%; top: 50%; width: calc(var(--pw) * 2.4); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.halo::before, .halo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; transition: opacity .8s var(--ease); }
.halo::before { background: radial-gradient(closest-side, rgba(23, 92, 211, .42), rgba(23, 92, 211, .1) 55%, transparent); }
.halo::after { background: radial-gradient(closest-side, rgba(255, 181, 71, .32), rgba(255, 181, 71, .08) 55%, transparent); opacity: 0; }
.stage[data-step="2"] .halo::after, .stage[data-step="4"] .halo::after { opacity: 1; }

.road {
  position: absolute; left: 50%; bottom: 0; width: min(900px, 170%); height: 62%;
  transform: translateX(-50%); perspective: 380px; pointer-events: none; opacity: 0; transition: opacity .7s var(--ease);
  -webkit-mask-image: linear-gradient(transparent, #000 40%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 40%, #000 80%, transparent);
}
.road-plane {
  position: absolute; left: 12%; right: 12%; top: -20%; bottom: -30%; overflow: hidden;
  transform: rotateX(64deg); transform-origin: 50% 100%;
  background:
    linear-gradient(90deg, transparent 0 6%, rgba(148, 187, 255, .55) 6% 6.8%, transparent 6.8% 93.2%, rgba(148, 187, 255, .55) 93.2% 94%, transparent 94%),
    linear-gradient(90deg, transparent, rgba(23, 92, 211, .16) 30%, rgba(23, 92, 211, .16) 70%, transparent);
}
.road-lines {
  position: absolute; left: 0; right: 0; top: -120px; bottom: 0;
  background:
    repeating-linear-gradient(180deg, var(--amber) 0 44px, transparent 44px 120px) 50% 0 / 6px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(234, 240, 251, .5) 0 30px, transparent 30px 120px) 24% 0 / 3px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(234, 240, 251, .5) 0 30px, transparent 30px 120px) 76% 0 / 3px 100% no-repeat;
  animation: roadflow .55s linear infinite; animation-play-state: paused;
}
@keyframes roadflow { to { transform: translateY(120px); } }
.stage[data-step="1"] .road { opacity: 1; }
.stage[data-step="2"] .road { opacity: .45; }
.stage[data-step="1"] .road-lines, .stage[data-step="2"] .road-lines { animation-play-state: running; }

.device-wrap { position: absolute; z-index: 2; left: 50%; top: 52%; transform: translate(-50%, -50%); transition: transform 1s var(--ease); }
.device-tilt { will-change: transform; }
.device {
  position: relative; width: var(--pw); height: calc(var(--sh) + 2 * var(--bz)); padding: var(--bz);
  border-radius: calc(var(--pw) * .15);
  background: linear-gradient(145deg, #4A5670 0%, #1A2134 22%, #0B0F1A 55%, #232B3F 85%, #56627E 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 0 0 calc(var(--bz) * .55) #05070D, 0 50px 90px -30px rgba(23, 92, 211, .7), 0 30px 60px -10px rgba(0, 0, 0, .7);
}
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--pw) * .118); background: #1F232B; transform: translateZ(0); }
.cam { position: absolute; left: 50%; top: calc(var(--bz) + var(--sw) * .022); width: calc(var(--sw) * .034); aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); background: #02040A; box-shadow: 0 0 0 1.5px #151B29; }
.glare { position: absolute; inset: -30% -60%; z-index: 5; pointer-events: none; background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .11) 48%, rgba(255, 255, 255, .02) 53%, transparent 58%); transform: translateX(-12%); }

.shot-nav, .shot-mapwrap, .shot-warn { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .55s var(--ease), transform .9s var(--ease); }
.shot-mapwrap { background: #2A2A2A; }
.shot-mapwrap img { width: 100%; height: 100%; object-fit: cover; object-position: 15% 0; }
.stage[data-step="1"] .shot-nav, .stage[data-step="2"] .shot-nav,
.stage[data-step="3"] .shot-mapwrap,
.stage[data-step="4"] .shot-warn, .stage[data-step="5"] .shot-warn { opacity: 1; transform: none; }

.ov { position: absolute; pointer-events: none; opacity: 0; transition: opacity .35s; }
.ov-car { left: 50%; top: 76.25%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.ov-car::before, .ov-car::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(148, 187, 255, .8); animation: ring 2s var(--ease) infinite; }
.ov-car::after { animation-delay: 1s; }
.stage[data-step="1"] .ov-car { opacity: 1; }
@keyframes ring { from { transform: scale(.2); opacity: 1; } to { transform: scale(1); opacity: 0; } }
.ov-jolt { left: 50%; top: 76.25%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.ov-jolt::before, .ov-jolt::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--amber); box-shadow: 0 0 22px rgba(255, 181, 71, .7); opacity: 0; }
.stage[data-step="2"] .ov-jolt { opacity: 1; }
.stage[data-step="2"] .ov-jolt::before { animation: burst 1.2s var(--ease) .55s; }
.stage[data-step="2"] .ov-jolt::after { animation: burst 1.2s var(--ease) .75s; border-color: var(--red); }
@keyframes burst { from { transform: scale(.1); opacity: 1; } to { transform: scale(1); opacity: 0; } }
.stage[data-step="2"] .device { animation: shake .62s cubic-bezier(.36, .07, .19, .97) .45s; }
@keyframes shake {
  10% { transform: translate3d(-2px, 3px, 0) rotate(-1deg); } 22% { transform: translate3d(5px, -7px, 0) rotate(2.4deg); }
  36% { transform: translate3d(-6px, 5px, 0) rotate(-2.2deg); } 50% { transform: translate3d(4px, -3px, 0) rotate(1.4deg); }
  66% { transform: translate3d(-2px, 2px, 0) rotate(-.7deg); } 82% { transform: translate3d(1px, -1px, 0) rotate(.3deg); }
}
.ov-pin { left: 65.7%; top: 49.9%; width: 0; height: 0; }
.pin-svg { position: absolute; left: calc(var(--sw) * -.055); bottom: calc(var(--sw) * .02); width: calc(var(--sw) * .11); max-width: none; height: auto; overflow: visible; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .55)); }
.pin-svg path { fill: var(--amber); stroke: #fff; stroke-width: 2; }
.pin-svg circle { fill: #1A1200; }
.pin-ripple { position: absolute; left: calc(var(--sw) * -.16); top: calc(var(--sw) * -.16); width: calc(var(--sw) * .32); aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--amber); opacity: 0; }
.stage[data-step="3"] .ov-pin { opacity: 1; }
.stage[data-step="3"] .pin-svg { animation: pindrop .8s cubic-bezier(.34, 1.4, .64, 1) .35s backwards; }
.stage[data-step="3"] .pin-ripple { animation: ripple 1.6s var(--ease) 1s 2; }
.stage[data-step="3"] .pin-ripple.r2 { animation-delay: 1.4s; }
@keyframes pindrop { from { transform: translateY(calc(var(--sw) * -.6)); opacity: 0; } 40% { opacity: 1; } }
@keyframes ripple { from { transform: scale(.15); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.ov-banner { left: 3%; top: 14.17%; width: 94%; height: 7.67%; border-radius: calc(var(--sw) * .045); box-shadow: 0 0 0 2px var(--amber), 0 0 26px rgba(255, 181, 71, .65); }
.banner-ring { position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--amber); animation: bannerpulse 1.6s var(--ease) infinite; animation-play-state: paused; }
.stage[data-step="4"] .ov-banner, .stage[data-step="5"] .ov-banner { opacity: 1; }
.stage[data-step="4"] .banner-ring, .stage[data-step="5"] .banner-ring { animation-play-state: running; }
@keyframes bannerpulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.12, 1.5); opacity: 0; } }

/* floating explainer cards */
.card {
  position: absolute; z-index: 4; display: grid; gap: 8px; padding: 13px 15px; border-radius: 16px;
  background: rgba(10, 20, 40, .94); border: 1px solid var(--line);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .7); font-size: .86rem; line-height: 1.35;
  opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .45s var(--ease), transform .7s var(--ease);
}
.card-cap { color: var(--muted); font-size: .76rem; }
.stage[data-step="1"] .card-voice, .stage[data-step="2"] .card-wave, .stage[data-step="3"] .card-saved, .stage[data-step="4"] .card-time { opacity: 1; transform: none; transition-delay: .25s; }
.card-voice { left: calc(50% + var(--pw) * .42); top: 30%; display: flex; align-items: center; gap: 10px; }
.bars { display: flex; align-items: center; gap: 3px; height: 18px; }
.bars i { width: 3px; height: 100%; border-radius: 2px; background: var(--sky); transform: scaleY(.3); animation: bars 1s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: -.2s; } .bars i:nth-child(3) { animation-delay: -.45s; background: var(--amber); }
.bars i:nth-child(4) { animation-delay: -.65s; } .bars i:nth-child(5) { animation-delay: -.85s; }
@keyframes bars { 50% { transform: scaleY(1); } }
.card-wave { right: calc(50% + var(--pw) * .36); top: 40%; width: 250px; }
.card .wave { width: 100%; height: 66px; overflow: visible; }
.wave-base { stroke: rgba(148, 187, 255, .18); stroke-width: 1; fill: none; stroke-dasharray: 3 4; }
.card .wave-line { fill: none; stroke: var(--sky); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s cubic-bezier(.5, 0, .3, 1) .35s; }
.wave-dot { fill: var(--amber); opacity: 0; transform-origin: 112px 6px; transform: scale(0); transition: opacity .3s, transform .5s cubic-bezier(.34, 1.6, .64, 1); }
.chip-hazard { justify-self: start; padding: 4px 10px; border-radius: 99px; background: var(--amber); color: #1A1200; font-weight: 600; font-size: .8rem; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .5s var(--ease); }
.stage[data-step="2"] .wave-line { stroke-dashoffset: 0; }
.stage[data-step="2"] .wave-dot { opacity: 1; transform: scale(1); transition-delay: .95s; }
.stage[data-step="2"] .chip-hazard { opacity: 1; transform: none; transition-delay: 1.15s; }
.card-saved { left: calc(50% + var(--pw) * .4); top: 28%; width: 240px; }
.card-saved .row { display: flex; gap: 9px; align-items: flex-start; }
.card-saved svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.card-saved .dim { color: var(--muted); }
.card-saved .dim svg { stroke: var(--sky); }
.card-time { right: calc(50% + var(--pw) * .38); top: 44%; width: 230px; gap: 10px; }
.t-top { color: var(--amber); font: 700 1.05rem/1 var(--display); }
.t-bot { color: var(--muted); font-size: .8rem; }
.track { position: relative; height: 26px; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: rgba(148, 187, 255, .2); }
.track-fill { position: absolute; left: 0; right: 14px; top: 11px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--sky), var(--amber)); transform-origin: right; transform: scaleX(0); transition: transform 1.1s var(--ease) .5s; }
.t-car { position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--blue-hi); box-shadow: 0 0 0 3px rgba(46, 115, 234, .35); }
.t-haz { position: absolute; right: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font: 800 .8rem/1 var(--display); }
.stage[data-step="4"] .track-fill { transform: scaleX(1); }

/* Android Auto car screen (real screenshot when present, labelled illustration otherwise) */
.car { position: absolute; z-index: 4; margin: 0; left: calc(50% - var(--pw) * .2); top: 50%; width: min(460px, 64%); opacity: 0; transform: translate(60px, -50%) scale(.94); transition: opacity .5s var(--ease), transform .9s var(--ease); }
.car-frame {
  position: relative; display: flex; aspect-ratio: 1.9; overflow: hidden; border-radius: 18px; padding: 8px; gap: 6px;
  background: linear-gradient(160deg, #39445C, #0B0F1A 40%, #1D2436);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 70px -20px rgba(0, 0, 0, .85), 0 0 60px -10px rgba(23, 92, 211, .5);
}
.car-frame.has-real { display: block; aspect-ratio: auto; padding: 0; background: none; }
.car-frame.has-real > :not(.aa-real) { display: none; }
.aa-real { width: 100%; border-radius: 14px; border: 1px solid var(--line-hi); }
.car-rail { width: 9%; border-radius: 10px; background: #0B0D12; display: grid; align-content: center; justify-items: center; gap: 12%; }
.car-rail i { width: 46%; aspect-ratio: 1; border-radius: 50%; background: #2A3142; }
.car-rail i:first-child { background: var(--blue-hi); }
.car-main { position: relative; flex: 1; border-radius: 10px; overflow: hidden; background: #1D2129; }
.car-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.car-panel { position: absolute; left: 4%; top: 6%; bottom: 6%; width: 46%; display: grid; align-content: start; gap: 6%; font-size: clamp(.55rem, 1.05vw, .82rem); }
.car-turn { display: flex; gap: 8px; align-items: center; padding: 7px 9px; border-radius: 9px; background: #232A36; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.car-arrow { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 7px; background: #087443; color: #fff; font-weight: 800; flex: none; }
.car-turn b { display: block; font: 800 1.25em/1.1 var(--display); }
.car-turn small { display: block; color: #B9C3D6; font-size: .9em; }
.car-alert { display: flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 9px; background: #1E2A3E; color: #E6ECF6; box-shadow: 0 0 0 1.5px var(--amber), 0 0 16px rgba(255, 181, 71, .5); }
.tri { display: grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--amber); color: #1A1200; font-weight: 800; font-size: .85em; }
.car-cats { display: flex; gap: 5px; }
.car-cats span { flex: 1; text-align: center; padding: 5px 0; border-radius: 99px; background: #232A36; color: #C9D3E6; font-size: .9em; }
.car-route { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease) .6s; }
.car figcaption { margin-top: 10px; text-align: center; color: var(--muted); font-size: .78rem; }
.stage[data-step="5"] .car { opacity: 1; transform: translate(0, -50%); transition-delay: .2s; }
.stage[data-step="5"] .car-route { stroke-dashoffset: 0; }
.stage[data-step="5"] .device-wrap { transform: translate(calc(-50% - var(--pw) * .62), -50%) scale(.84); }

@media (max-width: 899px) {
  .story-grid { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .stage-col { grid-column: 1; grid-row: 1; z-index: 3; top: 62px; height: 56vh; height: 56svh; background: var(--night); }
  .stage-col::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 24px; background: linear-gradient(var(--night), transparent); pointer-events: none; }
  .stage { --pw: min(240px, calc((56vh - 56px) / 2.18)); overflow-x: clip; }
  @supports (height: 100svh) { .stage { --pw: min(240px, calc((56svh - 56px) / 2.18)); } }
  .segs { top: 10px; }
  .device-wrap { top: calc(50% + 10px); }
  .steps { grid-column: 1; grid-row: 2; padding: 0 20px; }
  .step, .step:first-child { display: block; min-height: 44vh; min-height: 44svh; }
  .step:last-child { min-height: 52svh; }
  .step-body { position: sticky; top: calc(56vh + 80px); top: calc(56svh + 80px); padding-bottom: 20px; }
  .step-n { width: 26px; height: 26px; margin-bottom: 8px; font-size: .82rem; }
  .step h3 { font-size: 1.35rem; margin-bottom: 6px; }
  .step p { font-size: .97rem; }
  .card { font-size: .74rem; padding: 9px 11px; border-radius: 12px; gap: 6px; }
  .card-cap { font-size: .68rem; }
  .card-voice { left: auto; right: 8px; top: 18%; }
  .card-wave { right: auto; left: 8px; top: auto; bottom: 7%; width: 160px; }
  .card .wave { height: 44px; }
  .chip-hazard { font-size: .72rem; padding: 3px 8px; }
  .card-saved { left: auto; right: 8px; top: auto; bottom: 8%; width: 164px; }
  .card-saved svg { width: 14px; height: 14px; }
  .card-time { right: auto; left: 8px; top: auto; bottom: 8%; width: 160px; gap: 7px; }
  .t-top { font-size: .9rem; } .t-bot { font-size: .7rem; }
  .car { left: auto; right: 10px; top: auto; bottom: 14px; width: min(280px, 74%); transform: translate(40px, 0) scale(.94); }
  .car figcaption { margin-top: 6px; font-size: .68rem; }
  .car-panel { font-size: .5rem; gap: 5%; }
  .car-turn { padding: 4px 5px; gap: 5px; border-radius: 6px; }
  .car-alert { padding: 4px 5px; border-radius: 6px; }
  .car-frame { padding: 5px; border-radius: 12px; gap: 4px; }
  .stage[data-step="5"] .car { transform: none; }
  .stage[data-step="5"] .device-wrap { transform: translate(calc(-50% - var(--pw) * .42), calc(-50% - 10%)) scale(.8); }
}

/* reduced motion: each step gets its own static stage (built by home.js) */
html.rm .stage-col { display: none; }
html.rm .story-grid { grid-template-columns: minmax(0, 1fr); }
html.rm .steps { grid-column: 1; }
html.rm .step, html.rm .step:first-child, html.rm .step:last-child { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; gap: 24px; padding: 32px 0; }
html.rm .step-body { opacity: 1; position: static; }
html.rm .step .stage { --pw: 230px; height: 580px; }
html.rm .road { display: none; }
.stage.static *, .stage.static *::before, .stage.static *::after { transition: none !important; animation: none !important; }
@media (max-width: 899px) {
  html.rm .step, html.rm .step:first-child, html.rm .step:last-child { grid-template-columns: minmax(0, 1fr); padding: 20px 0; gap: 8px; }
  html.rm .step .stage { --pw: 200px; height: 480px; }
}

/* ---------- beam diagram ---------- */
.beam-flow { list-style: none; margin: 0; padding: 0; display: grid; justify-items: center; text-align: center; }
.node { max-width: 280px; }
.node-ico {
  width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 22px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 30%, #1A3460, var(--panel)); border: 1px solid var(--line-hi);
  box-shadow: 0 0 0 6px rgba(23, 92, 211, .08), 0 0 40px -6px rgba(23, 92, 211, .7);
}
.node-ico svg { width: 34px; height: 34px; fill: none; stroke: var(--sky); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.node-ico img { border-radius: 12px; }
.node-hub .node-ico { width: 88px; height: 88px; border-radius: 26px; box-shadow: 0 0 0 8px rgba(23, 92, 211, .12), 0 0 60px -4px rgba(23, 92, 211, .9); }
.node-warn .node-ico { border-color: rgba(255, 181, 71, .45); box-shadow: 0 0 0 6px rgba(255, 181, 71, .08), 0 0 40px -6px rgba(255, 181, 71, .6); }
.node-warn .node-ico svg { stroke: var(--amber); }
.node p { margin-top: 6px; color: var(--muted); }
.link { width: 60px; height: 64px; margin: 8px 0; }
.link svg { width: 100%; height: 100%; overflow: visible; }
.beam-h { display: none !important; }
.beam-base { fill: none; stroke: rgba(148, 187, 255, .3); stroke-width: 2; vector-effect: non-scaling-stroke; }
.beam-pulse {
  fill: none; stroke: var(--sky); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: .18 1.2; stroke-dashoffset: .18; filter: drop-shadow(0 0 6px rgba(148, 187, 255, .9));
  animation: pulse 2.6s cubic-bezier(.5, 0, .5, 1) infinite paused;
}
.beam-pulse.late { stroke: var(--amber); filter: drop-shadow(0 0 6px rgba(255, 181, 71, .9)); animation-delay: 1.3s; }
@keyframes pulse { from { stroke-dashoffset: .18; } to { stroke-dashoffset: -1.2; } }
.is-on .beam-pulse { animation-play-state: running; }
@media (min-width: 900px) {
  .beam-flow { grid-template-columns: 1fr minmax(80px, 1fr) 1fr minmax(80px, 1fr) 1fr; align-items: start; }
  .link { width: 100%; height: 60px; margin: 8px 0 0; }
  .beam-h { display: block !important; }
  .beam-v { display: none; }
}

/* ---------- bento ---------- */
.features { padding-top: 0; }
.bento { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.tile {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 20px;
  padding: 22px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(23, 92, 211, .10), transparent 50%), var(--panel); border: 1px solid var(--line);
}
.tile-text p { margin-top: 6px; color: var(--muted); font-size: .98rem; }
.tile .spot { position: absolute; z-index: -1; left: 0; top: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px; background: radial-gradient(closest-side, rgba(148, 187, 255, .16), transparent); opacity: 0; transition: opacity .3s; pointer-events: none; transform: translate(var(--mx, 50%), var(--my, 50%)); }
@media (hover: hover) and (pointer: fine) { .tile:hover .spot { opacity: 1; } .tile:hover { border-color: var(--line-hi); } }
.shot { position: relative; border-radius: 22px; overflow: hidden; border: 6px solid #03060D; background: #03060D; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .9); }
.shot img { width: 100%; border-radius: 16px; }

.t-warn { flex-direction: row; align-items: center; background: radial-gradient(circle at 0 50%, rgba(255, 181, 71, .12), transparent 60%), var(--panel); }
.ring { position: relative; width: 116px; height: 116px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring-track { stroke: rgba(255, 181, 71, .14); }
.ring-bar { stroke: var(--amber); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 6px rgba(255, 181, 71, .6)); }
.is-on .ring-bar { animation: countdown 10s linear infinite; }
@keyframes countdown { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 1; } }
.ring-num { position: absolute; inset: 0; display: grid; place-content: center; grid-auto-flow: column; align-items: baseline; gap: 2px; color: var(--muted); font: 600 1rem var(--body); }
.ring-num b { font: 800 2.4rem/1 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }

.t-report { flex-direction: row; align-items: center; }
.t-report .tile-text { flex: 1; }
.shot-report { width: 132px; flex: none; border-width: 4px; border-radius: 16px; }
.shot-report img { border-radius: 12px; }
.hl { position: absolute; left: var(--x); top: var(--y); width: 43.7%; height: 12%; border-radius: 8px; border: 2px solid var(--amber); background: rgba(255, 181, 71, .14); box-shadow: 0 0 14px rgba(255, 181, 71, .6); opacity: 0; }
.is-on .hl { animation: light 5s var(--d) ease-in-out infinite; }
@keyframes light { 0%, 100% { opacity: 0; } 6%, 18% { opacity: 1; } 26% { opacity: 0; } }

.sense-demo { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-md); background: rgba(5, 10, 22, .6); border: 1px solid var(--line); }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(148, 187, 255, .1); font-weight: 600; font-size: .9rem; text-align: center; }
.seg span:not(.seg-thumb) { position: relative; padding: 6px 0; }
.seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--blue); }
.is-on .seg-thumb { animation: seg 6s ease-in-out infinite; }
@keyframes seg { 0%, 45% { transform: translateX(0); } 50%, 95% { transform: translateX(100%); } 100% { transform: translateX(0); } }
.slider { display: grid; gap: 6px; font-size: .86rem; }
.s-label { color: var(--muted); }
.s-track { position: relative; height: 6px; border-radius: 3px; background: rgba(148, 187, 255, .15); }
.s-fill { position: absolute; inset: 0; border-radius: 3px; background: var(--blue-hi); transform-origin: 0 50%; transform: scaleX(var(--to)); }
.s-knob { position: absolute; inset: 0; transform: translateX(calc(var(--to) * 100%)); }
.s-knob::after { content: ""; position: absolute; left: -9px; top: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgba(23, 92, 211, .35), 0 0 12px rgba(148, 187, 255, .6); }
.is-on .s-fill { animation: slide 6s ease-in-out infinite; }
.is-on .s-knob { animation: knob 6s ease-in-out infinite; }
.is-on .d2 { animation-delay: -1.2s; } .is-on .d3 { animation-delay: -2.4s; }
@keyframes slide { 0%, 100% { transform: scaleX(var(--to)); } 50% { transform: scaleX(.3); } }
@keyframes knob { 0%, 100% { transform: translateX(calc(var(--to) * 100%)); } 50% { transform: translateX(30%); } }

.minimap { position: relative; aspect-ratio: 240 / 120; border-radius: var(--r-md); overflow: hidden; background: #0B1A30; border: 1px solid var(--line); }
.minimap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mm-road { fill: none; stroke: rgba(148, 187, 255, .16); stroke-width: 8; }
.mm-route { fill: none; stroke: var(--sky); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.is-on .mm-route { animation: route 7s linear infinite; }
@keyframes route { 0% { stroke-dashoffset: 1; } 85%, 100% { stroke-dashoffset: 0; } }
.mm-dot { position: absolute; inset: 0; transform: translate(91.7%, 75%); pointer-events: none; }
.mm-dot span { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; animation: ping 1.6s ease-out infinite; }
@keyframes ping { from { box-shadow: 0 0 0 0 rgba(148, 187, 255, .7); } to { box-shadow: 0 0 0 14px rgba(148, 187, 255, 0); } }
.is-on .mm-dot { animation: mmove 7s linear infinite; }
@keyframes mmove {
  0% { transform: translate(8.33%, 75%); } 10% { transform: translate(25%, 75%); } 27.5% { transform: translate(25%, 16.7%); }
  55% { transform: translate(70.8%, 16.7%); } 72.5% { transform: translate(70.8%, 75%); } 85%, 100% { transform: translate(91.7%, 75%); }
}

.t-night, .t-battery { flex-direction: row; align-items: center; gap: 18px; }
.t-night .shot, .t-battery .shot { width: 96px; flex: none; border-width: 4px; border-radius: 16px; }
.t-night .shot img, .t-battery .shot img { border-radius: 12px; }
.shot-fade { display: grid; }
.shot-fade img { grid-area: 1 / 1; }
.shot-fade .night { opacity: 0; }
.is-on .shot-fade .night { animation: night 8s ease-in-out infinite; }
@keyframes night { 0%, 35% { opacity: 0; } 50%, 85% { opacity: 1; } 100% { opacity: 0; } }

@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .t-warn { grid-column: span 3; }
  .t-report { grid-column: span 3; grid-row: span 2; flex-direction: column; align-items: stretch; }
  .t-report .tile-text { flex: none; }
  .shot-report { width: 220px; align-self: center; margin-top: auto; border-width: 6px; border-radius: 22px; }
  .shot-report img { border-radius: 16px; }
  .t-sense { grid-column: span 3; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .t-share { grid-column: span 2; }
  .t-night, .t-battery { grid-column: span 2; }
  .t-night .shot, .t-battery .shot { width: 104px; }
  .t-share .tile-text, .t-night .tile-text, .t-battery .tile-text { min-width: 0; }
}

/* ---------- website map ---------- */
.explore { padding-top: 0; }
#irm-map { --irm-bg: #0A1428; --irm-accent: #94BBFF; }

/* ---------- good to know ---------- */
.know { padding-bottom: 24px; }
.know-box { position: relative; isolation: isolate; overflow: hidden; padding: 30px 24px; border-radius: 24px; }
.know-box::before {
  content: ""; position: absolute; z-index: -2; left: 50%; top: 50%; width: max(160%, 640px); aspect-ratio: 1;
  background: conic-gradient(from 0deg, transparent 0 290deg, rgba(255, 181, 71, .9) 330deg, var(--sky) 350deg, transparent 360deg);
  transform: translate(-50%, -50%); animation: knowbeam 7s linear infinite;
}
.know-box::after { content: ""; position: absolute; z-index: -1; inset: 1.5px; border-radius: 22.5px; background: linear-gradient(180deg, var(--panel), var(--deep)); }
@keyframes knowbeam { to { transform: translate(-50%, -50%) rotate(1turn); } }
.know-box h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 20px; }
.know-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px 28px; color: var(--muted); font-size: .98rem; }
.know-list b { display: block; color: var(--text); font-weight: 600; }
@media (min-width: 600px) { .know-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .know-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } .know-box { padding: 34px 32px; } }

/* ---------- final CTA ---------- */
.final { position: relative; overflow: hidden; padding: 88px 0 96px; text-align: center; }
.final-glow { position: absolute; left: 50%; top: 45%; width: 760px; height: 520px; transform: translate(-50%, -50%); pointer-events: none; background: radial-gradient(closest-side, rgba(23, 92, 211, .38), transparent), radial-gradient(closest-side, rgba(255, 181, 71, .14), transparent 60%); }
.final-in { position: relative; display: grid; justify-items: center; gap: 22px; }
.final-icon { border-radius: 22px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 20px 60px -10px rgba(46, 115, 234, .8); }
.final h2 { font-size: clamp(2.2rem, 5.6vw, 4.2rem); line-height: 1; letter-spacing: -.035em; }
.nums { display: flex; justify-content: center; gap: clamp(20px, 6vw, 56px); margin: 0; }
.nums div { display: flex; flex-direction: column-reverse; gap: 2px; }
.nums dt { color: var(--muted); font-size: .88rem; }
.nums dd { margin: 0; font: 800 clamp(2rem, 6vw, 2.8rem)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.nums .star { font-size: .62em; margin-left: 3px; vertical-align: .18em; }

/* ---------- reduced motion: final states, no loops ---------- */
@media (prefers-reduced-motion: reduce) {
  .ht-sweep { display: none; }
  .hero *, .ticker *, .features *, .flow *, .know-box, .know-box::before, .stage *, .stage *::before, .stage *::after { animation: none !important; transition: none !important; }
  .phone-back { transform: rotate(-7deg); }
  .beam-ring::before { transform: rotate(140deg) translate(-50%, -50%); }
  .know-box::before { transform: translate(-50%, -50%) rotate(200deg); }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding: 0 var(--gutter) 6px; }
  .marquee-track li[aria-hidden], .marquee[aria-hidden] { display: none; }
  .beam-pulse { stroke-dasharray: none; stroke-dashoffset: 0; opacity: .6; }
  .hl:first-of-type { opacity: 1; }
  .shot-fade .night { opacity: 0; }
}

/* Android Auto band */
.car-grid { display: grid; gap: 32px; align-items: center; }
.car-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; color: #C9D5EA; }
.car-points li { padding-left: 26px; position: relative; }
.car-points li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 4px; background: var(--amber); box-shadow: 0 0 12px rgba(255, 181, 71, .6); }
.car-link { display: inline-block; margin-top: 18px; color: var(--sky); font-weight: 600; }
.car-shot, .car-copy { margin: 0; min-width: 0; }
.car-shot img { box-sizing: border-box; display: block; width: 100%; height: auto; border-radius: 18px; border: 6px solid #10192C;
  box-shadow: 0 0 0 1px var(--line-hi), 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 80px -20px rgba(23, 92, 211, .55); }
.car-shot figcaption { margin-top: 10px; color: var(--muted); font-size: .88rem; }
@media (min-width: 900px) { .car-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
