/*
 * The vehicle tracking page (/vehicle-tracking), on top of home.css's tokens,
 * buttons, eyebrows and scroll reveal. Scoped by .vt-. Image-heavy and moving
 * by the owner's wish for marketing pages: the animated vehicles are drawn by
 * public/js/vehicle-drive.js; everything here stops under reduced motion.
 */

.vt { overflow-x: clip; }
.vt section { position: relative; }
.vt-note { margin-top: 1rem; font-size: .76rem; color: #6b7f93; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.vt-hero {
    display: flex; align-items: center;
    min-height: min(94vh, 880px);
    padding: 140px 0 110px;
    background: #364761;
    color: #f0f9ff;
    overflow: hidden;
}
.vt-hero__map, .vt-hero__map img, .vt-hero__map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.vt-hero__map img { object-fit: cover; object-position: center; }
/* A slow push-in on the map and its vehicles together, so they stay on their streets. */
.vt-hero__map { animation: vt-zoom 26s ease-in-out infinite alternate; transform-origin: 60% 50%; }
.vt-hero__shade {
    position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(7,15,28,.94) 0%, rgba(7,15,28,.82) 30%, rgba(7,15,28,.32) 55%, rgba(7,15,28,0) 72%),
        linear-gradient(0deg, rgba(7,15,28,.55) 0%, rgba(7,15,28,0) 26%),
        linear-gradient(180deg, rgba(7,15,28,.5) 0%, rgba(7,15,28,0) 22%);
}
.vt-hero__inner { position: relative; z-index: 2; }

.vt-badge {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .45rem 1rem .45rem .75rem; border-radius: 999px;
    background: rgba(245,158,11,.14); border: 1px solid rgba(251,191,36,.45);
    color: #fde68a; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    animation: vt-in .7s cubic-bezier(.22,1,.36,1) both;
}
.vt-badge i { width: .55rem; height: .55rem; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 0 0 rgba(251,191,36,.7); animation: vt-pulse 1.8s ease-out infinite; }

.vt-hero__title {
    margin-top: 1.3rem !important; max-width: 12.5ch;
    font-size: clamp(2.5rem, 6.2vw, 4.6rem); font-weight: 900; line-height: 1.02; letter-spacing: -.035em;
    color: #f8fafc !important;
}
.vt-hero__title > span { display: block; }
.vt-hero__glow { background: linear-gradient(90deg, #5eead4 0%, #4ade80 45%, #fbbf24 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vt-hero__lead { margin-top: 1.4rem !important; max-width: 44ch; font-size: clamp(1rem, 1.6vw, 1.14rem); line-height: 1.7; color: #cfe0ee; }
.vt-hero .lp-btn-row { margin-top: 2rem; }
.vt-btn svg { width: 1.05em; height: 1.05em; }

.vt-hero__price {
    display: inline-flex; align-items: center; gap: .75rem; margin-top: 2.2rem;
    padding: .7rem 1.1rem; border-radius: 16px;
    background: rgba(15,23,42,.55); border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.vt-hero__price strong { font-size: 1.7rem; font-weight: 900; letter-spacing: -.02em; color: #fbbf24; }
.vt-hero__price span { font-size: .74rem; line-height: 1.25; color: #cbd5e1; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

.vt-rise { animation: vt-in .8s cubic-bezier(.22,1,.36,1) both; animation-delay: var(--d, 0s); }

.vt-credit {
    position: absolute; right: 1rem; bottom: .7rem; z-index: 2; margin: 0;
    font-size: .66rem; color: rgba(226,232,240,.6);
}
.vt-credit--dark { color: rgba(15,23,42,.6); right: .8rem; bottom: .5rem; }

/* The vehicles' labels, drawn in the svg like the app's own. */
.vd-label rect { fill: rgba(15,23,42,.9); stroke: rgba(255,255,255,.14); stroke-width: 1; }
.vd-label text { font: 700 12.5px Montserrat, Roboto, sans-serif; fill: #f8fafc; }
.vd-label .vd-speed { fill: #4ade80; font-weight: 800; }
.vd-label.is-stopped .vd-speed { fill: #94a3b8; }
.vd-vehicle use { filter: drop-shadow(0 4px 6px rgba(0,0,0,.45)); }

/* ── Vehicle icons, rolling past ───────────────────────────────────────────── */
.vt-types { overflow: hidden; background: #0b1526; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); padding: 1.05rem 0; }
.vt-types__track { display: flex; align-items: center; gap: 2.6rem; width: max-content; animation: vt-marquee 36s linear infinite; }
.vt-types:hover .vt-types__track { animation-play-state: paused; }
.vt-type { display: inline-flex; align-items: center; gap: .55rem; color: #e2e8f0; font-weight: 800; font-size: .95rem; white-space: nowrap; }
.vt-type svg { transform: rotate(90deg); filter: drop-shadow(0 3px 5px rgba(0,0,0,.4)); }
.vt-type--text { color: #fbbf24; }

/* ── The app ───────────────────────────────────────────────────────────────── */
.vt-app { background: linear-gradient(180deg, #f4f8fc 0%, #fff 100%); }
.vt-app__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 3.2rem; align-items: center; }
.vt-app__media { position: relative; padding: 0 0 3.5rem 0; }
.vt-app__media .lp-browser { position: relative; }
.vt-tilt { transform: perspective(1400px) rotateY(-14deg) rotateX(6deg) translateY(30px); opacity: 0; transition: transform 1.1s cubic-bezier(.22,1,.36,1), opacity .9s ease; }
.vt-tilt.in { transform: perspective(1400px) rotateY(-5deg) rotateX(2deg); opacity: 1; }
.vt-phone {
    position: absolute; right: -2%; bottom: -1.5rem; width: 31%;
    border-radius: 28px; padding: 7px; background: #0b1526;
    box-shadow: 0 30px 60px -18px rgba(13,33,55,.55), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.vt-phone img { display: block; width: 100%; height: auto; border-radius: 22px; }
.vt-float.in { animation: vt-float 6s ease-in-out .9s infinite; }

/* ── The trip ──────────────────────────────────────────────────────────────── */
.vt-trip { background: #fff; }
.vt-trip__map {
    position: relative; aspect-ratio: 16 / 10; margin-top: 2.6rem;
    border-radius: 24px; overflow: hidden;
    box-shadow: 0 40px 80px -36px rgba(13,33,55,.45), 0 0 0 1px rgba(13,33,55,.08);
}
.vt-trip__map img, .vt-trip__map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.vt-trip__map img { object-fit: cover; }
.vt-trip__line, .vt-trip__halo { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.vt-trip__line { stroke: #0d9488; stroke-width: 9; }
.vt-trip__halo { stroke: #2dd4bf; stroke-width: 26; opacity: .45; filter: url(#vt-glow); }
.vt-trip__pin circle:last-child { stroke: #fff; stroke-width: 5; }
.vt-trip__pin--start circle:last-child { fill: #0d9488; }
.vt-trip__pin--end circle:last-child { fill: #f59e0b; }
.vt-ping { fill: currentColor; opacity: 0; transform-box: fill-box; transform-origin: center; }
.vt-trip__pin--start { color: #14b8a6; }
.vt-trip__pin--end { color: #f59e0b; }
.vt-trip__pin--start .vt-ping { animation: vt-ping 2.2s ease-out infinite; }
[data-trip].is-arrived .vt-trip__pin--end .vt-ping { animation: vt-ping 2.2s ease-out infinite; }

.vt-tag {
    position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 22px));
    display: flex; flex-direction: column; gap: .1rem; padding: .55rem .8rem; border-radius: 12px;
    background: #0f172a; color: #f8fafc; box-shadow: 0 14px 30px -10px rgba(15,23,42,.6);
    white-space: nowrap; pointer-events: none;
}
.vt-tag::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: #0f172a; transform: translateX(-50%) rotate(45deg); }
.vt-tag small { font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #5eead4; }
.vt-tag b { font-size: .86rem; font-weight: 800; }
.vt-tag--end small { color: #fbbf24; }
.vt-tag--end { opacity: 0; transform: translate(-50%, calc(-100% - 8px)) scale(.92); transition: opacity .35s ease, transform .45s cubic-bezier(.22,1,.36,1); }
[data-trip].is-arrived .vt-tag--end { opacity: 1; transform: translate(-50%, calc(-100% - 22px)); }

.vt-log { margin-top: 1.6rem; overflow-x: auto; }
.vt-log table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
.vt-log th { text-align: left; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #6b7f93; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.vt-log td { padding: .85rem .8rem; border-bottom: 1px solid var(--line); color: #33506c; }
.vt-log td:first-child { font-weight: 800; color: var(--ink); }
.vt-log td:nth-child(2) { font-weight: 700; color: var(--ink); }
.vt-log td.is-over { color: #dc2626; font-weight: 800; }
.vt-log tbody tr { transition: background .2s ease; }
.vt-log tbody tr:hover { background: #f4f8fc; }

/* ── Alerts ────────────────────────────────────────────────────────────────── */
.vt-alerts { background: radial-gradient(110% 120% at 85% 0%, #10233d 0%, #070f1c 60%); color: #e2e8f0; }
.vt-alerts .lp-h2 { color: #f8fafc; }
.vt-alerts .lp-body { color: #b6c8da; }
.vt-alerts__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; align-items: center; }

.vt-chat { border-radius: 22px; padding: 1rem; background: #17212b; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.06); }
.vt-chat__head { display: flex; align-items: center; gap: .7rem; padding: .3rem .4rem .9rem; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: .8rem; }
.vt-chat__head b { display: block; color: #f8fafc; font-size: .95rem; }
.vt-chat__head small { color: #8aa0b4; font-size: .75rem; }
.vt-chat__avatar { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #2aabee, #229ed9); color: #fff; }
.vt-chat__avatar svg { width: 16px; height: 16px; }
.vt-chat__msg {
    position: relative; margin: .55rem 0; padding: .65rem .85rem .65rem .85rem; max-width: 92%;
    border-radius: 4px 14px 14px 14px; background: #233142; color: #e6edf3; font-size: .86rem; line-height: 1.5;
    opacity: 0; transform: translateY(14px) scale(.98);
}
.vt-chat__msg span { float: right; margin-left: .8rem; font-size: .7rem; color: #7f93a6; }
.vt-chat__msg b { color: #5eead4; }
.vt-chat__msg--warn b { color: #fbbf24; }
.vt-chat.in .vt-chat__msg { animation: vt-msg .55s cubic-bezier(.22,1,.36,1) forwards; }
.vt-chat.in .vt-chat__msg:nth-of-type(2) { animation-delay: .25s; }
.vt-chat.in .vt-chat__msg:nth-of-type(3) { animation-delay: 1.05s; }
.vt-chat.in .vt-chat__msg:nth-of-type(4) { animation-delay: 1.85s; }
.vt-chat.in .vt-chat__msg:nth-of-type(5) { animation-delay: 2.65s; }
.vt-chat.in .vt-chat__msg:nth-of-type(6) { animation-delay: 3.45s; }

.vt-gauge { position: relative; display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 1.2rem; margin-top: 2.2rem; padding: 1.2rem 1.4rem; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.vt-gauge svg { width: 180px; height: auto; overflow: visible; }
.vt-gauge__track, .vt-gauge__over { fill: none; stroke-width: 14; stroke-linecap: round; }
.vt-gauge__track { stroke: rgba(148,163,184,.25); }
.vt-gauge__over { stroke: #ef4444; opacity: .85; }
.vt-gauge__needle line { stroke: #f8fafc; stroke-width: 5; stroke-linecap: round; }
.vt-gauge__needle circle { fill: #f8fafc; }
.vt-gauge__needle { transform-origin: 110px 115px; transform: rotate(-90deg); transition: transform 1.8s cubic-bezier(.2,.9,.25,1.15) .3s; }
.vt-gauge.in .vt-gauge__needle { transform: rotate(48deg); }
.vt-gauge__num { display: block; font-size: 2.6rem; font-weight: 900; line-height: 1; letter-spacing: -.03em; color: #f87171; }
.vt-gauge__num small { margin-left: .3rem; font-size: .85rem; font-weight: 800; color: #94a3b8; letter-spacing: 0; }
.vt-gauge__meta b { display: block; margin-top: .45rem; font-size: 1.05rem; color: #fbbf24; }
.vt-gauge__meta span { font-size: .85rem; color: #b6c8da; }

/* ── Islands ───────────────────────────────────────────────────────────────── */
.vt-regions { background: #f4f8fc; }
.vt-regions__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; margin-top: 2.6rem; }
.vt-region { position: relative; margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -30px rgba(13,33,55,.5); }
.vt-region img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.22,1,.36,1); }
.vt-region:hover img { transform: scale(1.07); }
.vt-region figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1.4rem 1.2rem;
    background: linear-gradient(0deg, rgba(7,15,28,.88), rgba(7,15,28,0)); color: #f8fafc;
}
.vt-region figcaption b { display: block; font-size: 1.35rem; font-weight: 900; }
.vt-region figcaption span { font-size: .88rem; color: #cbd5e1; }

/* ── Getting started ───────────────────────────────────────────────────────── */
.vt-steps__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin: 2.6rem 0 0; padding: 0; list-style: none; counter-reset: none; }
.vt-steps__list li { position: relative; padding: 1.6rem 1.4rem; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px -18px rgba(13,33,55,.25); }
.vt-steps__list li:nth-child(2) { transition-delay: .12s; }
.vt-steps__list li:nth-child(3) { transition-delay: .24s; }
.vt-steps__n { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, #0d9488, #2563eb); color: #fff; font-weight: 900; font-size: 1.1rem; box-shadow: 0 12px 24px -10px rgba(13,148,136,.6); }
.vt-steps__list h3 { margin-top: 1rem !important; font-size: 1.08rem; font-weight: 800; color: var(--ink); }
.vt-steps__list p { margin-top: .4rem !important; font-size: .92rem; line-height: 1.6; color: var(--muted); }

/* ── Price ─────────────────────────────────────────────────────────────────── */
.vt-price { padding: 40px 0 90px; background: #fff; }
.vt-price__inner {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2.4rem; align-items: center;
    padding: 2.4rem 2.6rem; border-radius: 28px;
    background: linear-gradient(135deg, #0b1526 0%, #10233d 55%, #134e4a 100%);
    color: #e2e8f0; box-shadow: 0 40px 80px -40px rgba(13,33,55,.7);
}
.vt-price__num { font-size: clamp(3rem, 7vw, 4.4rem); font-weight: 900; line-height: 1; letter-spacing: -.04em; color: #fbbf24; }
.vt-price__num small { font-size: .38em; margin-right: .2em; color: #fde68a; letter-spacing: 0; }
.vt-price__tag p { margin-top: .4rem !important; color: #cbd5e1; font-weight: 700; }
.vt-price__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.4rem; }
.vt-price__list li { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: #e2e8f0; }
.vt-price__list svg { flex: none; width: 16px; height: 16px; color: #5eead4; }
.vt-price__cta p { margin-top: .8rem !important; max-width: 22ch; font-size: .74rem; color: #94a3b8; }

/* ── FAQ ───────────────────────────────────────────────────────────────────── */
.vt-faq { background: #f4f8fc; }
.vt-faq__list { max-width: 820px; margin-top: 2rem; }
.vt-faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.vt-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; font-weight: 800; color: var(--ink); }
.vt-faq summary::-webkit-details-marker { display: none; }
.vt-faq summary::after { content: '+'; color: var(--teal); font-weight: 900; }
.vt-faq details[open] summary::after { content: '−'; }
.vt-faq details p { margin-top: .7rem !important; max-width: 70ch; line-height: 1.7; color: var(--muted); }

/* ── Closing call ──────────────────────────────────────────────────────────── */
.vt-cta { padding: 70px 1.5rem 96px; background: #f4f8fc; }
.vt-cta__box {
    position: relative; max-width: 1140px; margin: 0 auto; overflow: hidden; border-radius: 28px;
    padding: 4rem 2.4rem; text-align: center;
    background: #364761 url('/images/site/vehicles-hero-male.webp') center / cover no-repeat;
}
.vt-cta__box::before { content: ''; position: absolute; inset: 0; background: radial-gradient(52% 70% at 50% 50%, rgba(7,15,28,.88), rgba(7,15,28,.3)); z-index: 1; pointer-events: none; }
.vt-cta__drive { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.vt-cta__copy { position: relative; z-index: 2; }
.vt-cta h2 { font-size: clamp(1.8rem, 4.6vw, 2.9rem); font-weight: 900; letter-spacing: -.03em; color: #f8fafc !important; }
.vt-cta p { margin: .9rem auto 0 !important; max-width: 46ch; color: #cbd5e1; }
.vt-cta .lp-btn-row { justify-content: center; margin-top: 1.8rem; }

/* ── Motion ────────────────────────────────────────────────────────────────── */
@keyframes vt-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes vt-pulse { 0% { box-shadow: 0 0 0 0 rgba(251,191,36,.7); } 70% { box-shadow: 0 0 0 12px rgba(251,191,36,0); } 100% { box-shadow: 0 0 0 0 rgba(251,191,36,0); } }
@keyframes vt-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes vt-marquee { to { transform: translateX(-50%); } }
@keyframes vt-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes vt-ping { 0% { opacity: .55; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes vt-msg { to { opacity: 1; transform: none; } }

.vt-hero__map svg { z-index: 1; }

@media (max-width: 980px) {
    .vt-app__grid, .vt-alerts__grid { grid-template-columns: 1fr; }
    .vt-app__media { margin-top: 1rem; }
    .vt-price__inner { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 720px) {
    .vt-hero { min-height: 0; padding: 120px 0 150px; align-items: flex-start; }
    .vt-hero__shade { background: linear-gradient(180deg, rgba(7,15,28,.92) 0%, rgba(7,15,28,.8) 48%, rgba(7,15,28,.25) 78%, rgba(7,15,28,.1) 100%); }
    .vt-hero__price { margin-top: 1.6rem; }
    .vd-label { display: none; }
    .vt-regions__grid, .vt-steps__list { grid-template-columns: 1fr; }
    .vt-phone { width: 42%; right: 0; }
    .vt-price__list { grid-template-columns: 1fr; }
    .vt-gauge { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .vt-tag b { font-size: .72rem; }
    .vt-tag small { font-size: .58rem; }
    .vt-tag { padding: .4rem .55rem; }
}

@media (prefers-reduced-motion: reduce) {
    .vt-hero__map, .vt-types__track, .vt-float.in, .vt-badge i, .vt-ping, .vt-rise, .vt-badge { animation: none !important; }
    .vt-tilt { transition: none; transform: none; opacity: 1; }
    .vt-chat .vt-chat__msg { opacity: 1; transform: none; animation: none !important; }
    .vt-gauge__needle { transition: none; }
}
