/* =========================================================
   Fikishwa – main stylesheet
   ========================================================= */
:root {
    --primary: #f39c12;
    --primary-600: #e08a00;
    --primary-50: #fff7ea;
    --primary-100: #ffeccc;
    --mint: #e7f5ef;
    --ink: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --border: #e5e7eb;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --footer: #0f172a;
    --radius: 14px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 10px 30px -10px rgba(15, 23, 42, .15);
    --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .25);
    --header-h: 82px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.text-primary { color: var(--primary); }

.container { width: 100%; max-width: 1264px; margin: 0 auto; padding: 0 32px; }
.container.narrow { max-width: 832px; }
[data-lucide], .lucide { width: 1.15em; height: 1.15em; stroke-width: 2; flex-shrink: 0; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1001; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--primary), #ffcd6b); transform-origin: left; transform: scaleX(0); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .8rem 1.5rem; border-radius: 8px; border: 1px solid transparent;
    font-weight: 700; font-size: .95rem; line-height: 1.2; white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s;
    position: relative; overflow: hidden;
}
.btn:active { transform: scale(.97); }
.btn-lg { padding: 1rem 1.6rem; }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(243, 156, 18, .7); }
.btn-primary:hover { background: var(--primary-600); transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(243, 156, 18, .8); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1e293b; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .3); }
.btn-ghost-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost-white:hover { background: rgba(255, 255, 255, .15); transform: translateY(-2px); }
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); transform: scale(0); animation: ripple .6s linear; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Eyebrow / badges ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: .45rem;
    background: var(--mint); color: var(--primary);
    padding: .4rem .9rem; border-radius: 999px;
    font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1000; height: var(--header-h);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s, height .3s;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would become the
   containing block for the fixed mobile menu and clip it to the header's height. */
.site-header::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
}
.site-header.scrolled { box-shadow: 0 6px 24px -12px rgba(15, 23, 42, .18); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 800; font-size: 1.45rem; color: var(--primary); letter-spacing: -.01em; }
.brand img { border-radius: 6px; box-shadow: var(--shadow-sm); }
.brand-light { color: #fff; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0; }
.main-nav a, .dropdown-toggle {
    position: relative; display: inline-flex; align-items: center; gap: .3rem;
    padding: .5rem 0; color: var(--text); font-weight: 500; font-size: .98rem;
    background: none; border: 0; transition: color .2s;
}
.main-nav ul > li > a::after, .dropdown-toggle::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--primary);
    transform: scaleX(0); transition: transform .3s var(--ease);
}
.main-nav a:hover, .dropdown-toggle:hover, .main-nav a.active, .dropdown-toggle.active { color: var(--primary); }
.main-nav ul > li > a.active::after, .dropdown-toggle.active::after { transform: scaleX(1); }
.dropdown-toggle .lucide { transition: transform .25s; width: 1em; height: 1em; }

.has-dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: calc(100% + 14px); left: 50%; min-width: 280px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: .5rem; opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
    transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.dropdown-menu::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.has-dropdown:hover .dropdown-menu, .has-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-dropdown:hover .dropdown-toggle .lucide, .has-dropdown.open .dropdown-toggle .lucide { transform: rotate(180deg); }
.dropdown-menu a { display: flex; gap: .75rem; align-items: center; padding: .65rem .75rem; border-radius: 10px; }
.dropdown-menu a::after { display: none; }
.dropdown-menu a:hover { background: var(--primary-50); }
.dropdown-menu strong { display: block; font-size: .9rem; color: var(--ink); font-weight: 600; }
.dropdown-menu small { color: var(--muted); font-size: .75rem; }
.dd-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 0; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 14px; } .nav-toggle span:nth-child(2) { top: 21px; } .nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-only { display: none; }
.nav-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .4); opacity: 0; visibility: hidden; transition: .3s; z-index: 998; }
.nav-backdrop.show { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 96px; overflow: hidden; }
.hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; z-index: -1; }
.blob-1 { width: 420px; height: 420px; background: #ffe7bf; top: -120px; right: 10%; animation: drift 14s ease-in-out infinite alternate; }
.blob-2 { width: 300px; height: 300px; background: var(--mint); bottom: -80px; left: -60px; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.1); } }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; margin: 1.5rem 0 1.5rem; line-height: 1.2; }
.typed { display: inline-block; min-height: 1.2em; }
.typed::after { content: '|'; margin-left: 2px; font-weight: 400; color: var(--primary); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lead { font-size: 1.15rem; line-height: 1.75; color: var(--text); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.hero-trust { display: flex; align-items: center; gap: 1rem; margin-top: 2.25rem; color: var(--muted); font-size: .9rem; }
.hero-trust strong { color: var(--ink); }
.avatars { display: flex; }
.avatars span { width: 36px; height: 36px; border-radius: 50%; background: var(--c); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; border: 3px solid #fff; margin-left: -10px; }
.avatars span:first-child { margin-left: 0; }

.hero-visual { position: relative; }
.hero-stage { position: relative; aspect-ratio: 1.3; display: grid; place-items: center; }
.stage-glow { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, #f4f4f5 0%, #fafafa 45%, transparent 70%); }
.hero-car { position: relative; width: 82%; transform: translateX(6%); animation: carFloat 4s ease-in-out infinite; filter: drop-shadow(0 25px 25px rgba(15, 23, 42, .15)); }
@keyframes carFloat { 0%, 100% { transform: translate(6%, 0); } 50% { transform: translate(6%, -8px); } }
.hero-car .wheel { animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(-360deg); } }
.hero-car .speed-lines path { stroke-dasharray: 26; animation: speed 1s linear infinite; opacity: .7; }
.hero-car .speed-lines path:nth-child(2) { animation-delay: .3s; }
.hero-car .speed-lines path:nth-child(3) { animation-delay: .6s; }
@keyframes speed { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 52; } }
.hero-car .headlight { animation: glow 2.5s ease-in-out infinite; }
@keyframes glow { 50% { fill: #fff7cc; } }
.hero-car .car-shadow { animation: shadowPulse 4s ease-in-out infinite; transform-origin: 255px 212px; }
@keyframes shadowPulse { 50% { transform: scaleX(.92); opacity: .12; } }

.float-card {
    position: absolute; display: flex; align-items: center; gap: .8rem;
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: .9rem 1.2rem; box-shadow: var(--shadow); transition: transform .3s var(--ease);
    font-size: .9rem; z-index: 2;
}
.float-card strong { display: block; color: var(--ink); font-size: .95rem; }
.float-card small { color: var(--muted); font-size: .78rem; }
.fc-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); }
.fc-top { top: 8%; left: 0; animation: bob 5s ease-in-out infinite; }
.fc-bottom { bottom: 12%; right: -4%; animation: bob 6s ease-in-out infinite reverse; }
.fc-mini { top: 18%; right: 4%; padding: .5rem .9rem; border-radius: 999px; font-size: .8rem; animation: bob 4.5s ease-in-out infinite; }
.fc-mini strong { display: inline; font-size: .8rem; }
.float-card .inner { transition: transform .2s; }
@keyframes bob { 50% { translate: 0 -10px; } }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 1.6s infinite; display: inline-block; margin-right: .3rem; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; width: 24px; height: 38px; border: 2px solid #cbd5e1; border-radius: 14px; }
.scroll-cue span { position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--primary); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Stats ---------- */
.stats { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 64px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat strong { display: block; font-size: clamp(2rem, 3.5vw, 2.6rem); font-weight: 800; color: var(--primary); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat > span { display: block; margin-top: .6rem; font-size: 1rem; color: var(--text); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 64px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 800; margin: 1.25rem 0 1rem; letter-spacing: -.01em; }
.section-head p { color: var(--text); font-size: 1.05rem; }

.icon-box { width: 56px; height: 56px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--mint); color: var(--primary); transition: transform .35s var(--ease), background .3s, color .3s; }
.icon-box .lucide { width: 22px; height: 22px; }

/* Customer cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.feature-card {
    background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 2.5rem 2.5rem 2.6rem; transition: box-shadow .3s, border-color .3s, transform .3s var(--ease);
    transform-style: preserve-3d; will-change: transform;
}
.feature-card:hover { background: #fff; border-color: #fcd9a0; box-shadow: var(--shadow-lg); }
.feature-card:hover .icon-box { background: var(--primary); color: #fff; transform: rotate(-8deg) scale(1.05); }
.feature-card h3 { font-size: 1.3rem; margin: 1.6rem 0 1.4rem; font-weight: 700; }
.feature-card p { color: var(--text); font-size: .95rem; line-height: 1.7; }

/* Fare estimator */
.estimator { margin-top: 64px; display: grid; grid-template-columns: 1.4fr 1fr; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.estimator-form { padding: 2.5rem; }
.estimator h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.35rem; }
.estimator h3 .lucide { color: var(--primary); }
.estimator-form > .muted { margin: .4rem 0 1.75rem; }
.route-fields { display: grid; grid-template-columns: 1fr auto 1fr; gap: .75rem; align-items: end; }
.field { display: flex; flex-direction: column; gap: .35rem; position: relative; }
.field label { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.field input, .field select, .field textarea, .search-box input, .input-group input {
    width: 100%; font: inherit; color: var(--ink); background: #fff;
    border: 1px solid var(--border); border-radius: 10px; padding: .8rem 1rem; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus, .search-box input:focus, .input-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(243, 156, 18, .15); }
.field.invalid input, .field.invalid textarea { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .12); }
.field.with-icon select { padding-left: 2.2rem; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; }
.dot { position: absolute; left: .9rem; bottom: 1.15rem; width: 10px; height: 10px; border-radius: 50%; z-index: 1; }
.dot-green { background: #22c55e; box-shadow: 0 0 0 3px #dcfce7; }
.dot-red { background: #ef4444; box-shadow: 0 0 0 3px #fee2e2; }
.swap-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: #fff; display: grid; place-items: center; color: var(--muted); transition: transform .4s var(--ease), color .2s, border-color .2s; margin-bottom: 2px; }
.swap-btn:hover { color: var(--primary); border-color: var(--primary); transform: rotate(180deg); }
.ride-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-top: 1.5rem; }
.ride-type { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: 1rem .5rem; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; color: var(--text); transition: .2s; }
.ride-type .lucide { width: 26px; height: 26px; color: var(--muted); margin-bottom: .2rem; transition: .2s; }
.ride-type span { font-weight: 700; font-size: .9rem; color: var(--ink); }
.ride-type small { font-size: .72rem; color: var(--muted); }
.ride-type:hover { border-color: #fcd9a0; transform: translateY(-2px); }
.ride-type.active { border-color: var(--primary); background: var(--primary-50); }
.ride-type.active .lucide { color: var(--primary); }
.estimator-result { background: linear-gradient(160deg, #1e293b, var(--ink)); color: #cbd5e1; padding: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.estimator-result .muted { color: #94a3b8; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.fare { display: block; font-size: 2.6rem; font-weight: 800; color: #fff; line-height: 1.1; margin: .3rem 0; font-variant-numeric: tabular-nums; }
.fare-range { font-size: .85rem; color: var(--primary); }
.result-meta { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.result-meta li { display: flex; align-items: center; gap: .6rem; padding-bottom: .8rem; border-bottom: 1px dashed rgba(148, 163, 184, .25); }
.result-meta li span { flex: 1; }
.result-meta strong { color: #fff; }
.result-meta .lucide { color: var(--primary); }
.estimator-result .btn { margin-top: auto; background: var(--primary); }
.estimator-result .btn:hover { background: var(--primary-600); }

/* ---------- Drivers ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.split-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.h-left { font-size: clamp(1.5rem, 2.6vw, 1.75rem); font-weight: 700; margin-top: .9rem; }
.lead-sm { font-size: 1.02rem; color: var(--text); margin-bottom: .25rem; }
.row-cards { display: grid; gap: 1.5rem; width: 100%; margin-bottom: 1rem; }
.row-card { display: flex; gap: 1.5rem; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem 1.5rem; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.row-card:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: #fcd9a0; }
.row-card:hover .icon-box { background: var(--primary); color: #fff; }
.row-card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: .4rem; }
.row-card p { font-size: .92rem; color: var(--text); }

.device-pair { position: relative; height: 290px; margin-top: 80px; }
.device { position: absolute; width: 200px; height: 200px; border-radius: 22px; padding: 14px; box-shadow: var(--shadow-lg); transition: transform .5s var(--ease); }
.device-a { left: 0; top: 0; background: linear-gradient(160deg, #475569, #1e293b); z-index: 2; }
.device-b { left: 160px; top: 64px; background: linear-gradient(160deg, #64748b, #334155); }
.device-pair:hover .device-a { transform: translate(-8px, -8px) rotate(-3deg); }
.device-pair:hover .device-b { transform: translate(14px, 8px) rotate(3deg); }
.device-screen { position: relative; width: 100%; height: 100%; border-radius: 12px; overflow: hidden; border: 3px solid #0b1220; }
.light-map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.route-path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 3s var(--ease) forwards infinite; }
@keyframes draw { 0% { stroke-dashoffset: 400; } 60%, 100% { stroke-dashoffset: 0; } }
.mini-chip { position: absolute; top: 6px; left: 6px; right: 6px; display: flex; align-items: center; gap: 5px; background: #fff; border-radius: 8px; padding: 5px; box-shadow: var(--shadow-sm); font-size: 8px; line-height: 1.2; }
.mini-chip strong { display: block; color: var(--ink); font-size: 8.5px; }
.mini-chip small { color: var(--muted); font-size: 7px; }
.mini-avatar { width: 20px; height: 20px; border-radius: 50%; background: var(--c, var(--primary)); color: #fff; font-size: 7px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.mini-earn { margin-left: auto; background: var(--ink); color: #fff; padding: 3px 6px; border-radius: 5px; text-align: right; }
.mini-earn strong { color: #fff; }
.mini-earn small { color: #94a3b8; }
.online-toggle { position: absolute; bottom: 8px; left: 8px; display: flex; align-items: center; gap: 4px; border: 0; border-radius: 999px; padding: 3px 9px 3px 3px; font-size: 8px; font-weight: 800; color: #fff; background: #94a3b8; transition: background .3s; }
.online-toggle .knob { width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.online-toggle.on { background: #16a34a; }
.online-toggle.on .knob { transform: translateX(0); }
.online-toggle:not(.on) .knob { transform: translateX(0); opacity: .7; }
.device-a:has(.online-toggle:not(.on)) .route-path, .device-a:has(.online-toggle:not(.on)) .route-car { opacity: 0; }
.dark-dash { background: #0b1220; color: #cbd5e1; padding: 9px 9px 9px 34px; font-size: 8px; display: flex; flex-direction: column; gap: 5px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 8.5px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; animation: pulse 1.6s infinite; }
.dash-total { background: #1e293b; border-radius: 6px; padding: 5px 7px; }
.dash-total small { display: block; color: #94a3b8; font-size: 7px; }
.dash-total strong { color: #fff; font-size: 11px; }
.dash-bars { display: flex; align-items: flex-end; gap: 4px; height: 44px; padding: 0 2px; }
.dash-bars span { flex: 1; height: var(--h); background: linear-gradient(#60a5fa, #2563eb); border-radius: 2px 2px 0 0; transform-origin: bottom; transform: scaleY(0); transition: transform .8s var(--ease); }
.aos-animate .dash-bars span, .dash-bars.grow span { transform: scaleY(1); }
.dash-bars span:nth-child(2) { transition-delay: .08s; } .dash-bars span:nth-child(3) { transition-delay: .16s; } .dash-bars span:nth-child(4) { transition-delay: .24s; } .dash-bars span:nth-child(5) { transition-delay: .32s; } .dash-bars span:nth-child(6) { transition-delay: .4s; } .dash-bars span:nth-child(7) { transition-delay: .48s; }
.dash-days { display: flex; justify-content: space-between; color: #64748b; font-size: 6.5px; padding: 0 4px; }
.dash-commission { background: #1e293b; border-radius: 6px; padding: 5px 7px; }
.dash-commission small { display: block; color: #94a3b8; font-size: 7px; }
.dash-commission strong { color: var(--primary); font-size: 9px; }
.dash-pay { display: block; width: 100%; margin-top: 4px; border: 0; border-radius: 4px; background: #2563eb; color: #fff; font-size: 7px; font-weight: 700; padding: 3px; }
.dash-pay:hover { background: #1d4ed8; }

.calc-card { margin-top: 2rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); max-width: 460px; }
.calc-card h3 { display: flex; align-items: center; gap: .55rem; font-size: 1.15rem; margin-bottom: 1.25rem; }
.calc-card h3 .lucide { color: var(--primary); }
.range-field { margin-bottom: 1.1rem; }
.range-field label { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: .45rem; }
.range-field output { color: var(--primary); font-weight: 700; font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(to right, var(--primary) var(--fill, 50%), #e5e7eb var(--fill, 50%)); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); box-shadow: var(--shadow-sm); cursor: grab; transition: transform .15s; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); cursor: grab; }
.calc-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.25rem; }
.calc-result > div { background: var(--bg-alt); border-radius: 10px; padding: .7rem; }
.calc-result small { display: block; font-size: .72rem; color: var(--muted); }
.calc-result strong { font-size: .98rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-result .highlight { background: var(--primary); }
.calc-result .highlight small, .calc-result .highlight strong { color: #fff; }

/* ---------- How it works ---------- */
.segmented { display: inline-flex; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; padding: 4px; position: relative; }
.segmented button { display: inline-flex; align-items: center; gap: .45rem; border: 0; background: transparent; padding: .6rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--muted); transition: color .25s, background .25s, box-shadow .25s; }
.segmented button.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }
.segmented-center { display: flex; width: max-content; margin: -32px auto 56px; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.steps-line { position: absolute; top: 24px; left: 12%; right: 12%; height: 2px; background: var(--border); }
.steps-line span { display: block; height: 100%; width: 0; background: var(--primary); transition: width 1.6s var(--ease); }
.steps.run .steps-line span { width: 100%; }
.step { position: relative; z-index: 1; }
.step-num { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 1.1rem; box-shadow: 0 0 0 8px #fff; transition: transform .4s var(--ease); }
.step:hover .step-num { transform: scale(1.12); }
.step h3 { font-size: 1.25rem; margin: 1.75rem 0 1rem; font-weight: 700; }
.step p { font-size: .95rem; color: var(--text); max-width: 360px; margin: 0 auto; }
.step h3, .step p { transition: opacity .3s, transform .3s var(--ease); }
.steps.swap .step h3, .steps.swap .step p { opacity: 0; transform: translateY(8px); }

/* ---------- App showcase ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.showcase-list { display: grid; gap: 1.5rem; }
.show-item {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: 1.25rem; text-align: left;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem 1.5rem; color: var(--text);
    transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.show-item .icon-box { width: 48px; height: 48px; background: var(--primary-50); }
.show-item strong { display: block; font-size: 1.12rem; color: var(--ink); margin-bottom: .3rem; }
.show-item small { font-size: .92rem; }
.show-item:hover { transform: translateY(-2px); }
.show-item.active { border-color: var(--primary); box-shadow: var(--shadow); }
.show-item.active .icon-box { background: var(--primary); color: #fff; }
.show-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--primary); }
.show-item.active .show-progress { animation: progress var(--dur, 7s) linear forwards; }
.showcase.paused .show-item.active .show-progress { animation-play-state: paused; }
@keyframes progress { to { width: 100%; } }

.showcase-phone { display: flex; justify-content: center; }
.phone { position: relative; width: 256px; height: 512px; border-radius: 40px; background: #1e293b; padding: 10px; box-shadow: var(--shadow-lg), inset 0 0 0 2px #334155; overflow: hidden; }
.phone-notch { position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 96px; height: 20px; background: #0b1220; border-radius: 0 0 14px 14px; z-index: 5; }
.phone-status { position: absolute; top: 10px; left: 10px; right: 10px; height: 26px; padding: 6px 18px 0; display: flex; justify-content: space-between; color: #e2e8f0; font-size: 9px; font-weight: 600; z-index: 4; }
.phone-status span:last-child { display: flex; gap: 3px; }
.phone-status .lucide { width: 10px; height: 10px; }
.phone-home { position: absolute; bottom: 16px; left: 50%; translate: -50% 0; width: 80px; height: 4px; border-radius: 2px; background: #e2e8f0; z-index: 5; opacity: .8; }
.screen { position: absolute; inset: 10px; border-radius: 30px; overflow: hidden; opacity: 0; transform: scale(.96); transition: opacity .5s, transform .5s var(--ease); pointer-events: none; }
.screen.active { opacity: 1; transform: none; pointer-events: auto; }
.map-bg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Request screen */
.you-pin { position: absolute; top: 140px; left: 10px; background: #0f172a; color: #fff; font-size: 7px; font-weight: 700; padding: 2px 5px; border-radius: 4px; }
.you-pin::after { content: ''; position: absolute; top: 16px; left: 6px; width: 10px; height: 10px; border-radius: 50%; background: #3b82f6; box-shadow: 0 0 0 6px rgba(59, 130, 246, .25); animation: pulse 1.6s infinite; }
.req-card { position: absolute; left: 28px; right: 28px; top: 112px; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .5); font-size: 8px; color: #0f172a; transition: transform .4s var(--ease), opacity .4s; }
.req-card.gone { transform: translateY(30px) scale(.95); opacity: 0; }
.req-top { display: flex; justify-content: space-between; align-items: center; background: #1e3a8a; color: #fff; padding: 6px 8px; }
.req-top b { font-size: 8px; letter-spacing: .03em; }
.req-top small { display: block; font-size: 6px; opacity: .7; }
.req-status { text-align: right; font-size: 7px; color: #86efac; }
.req-status i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #22c55e; }
.req-status small { color: #fff; }
.req-title { background: #1e40af; color: #fff; text-align: center; font-weight: 800; font-size: 9px; padding: 5px; letter-spacing: .03em; }
.req-body { padding: 7px 9px 9px; }
.req-user { display: flex; align-items: center; gap: 5px; padding-bottom: 5px; border-bottom: 1px solid #e2e8f0; }
.req-user > div { flex: 1; }
.req-user strong { display: block; font-size: 8px; }
.req-user small { font-size: 6.5px; color: #64748b; }
.req-route { display: grid; gap: 4px; padding: 5px 0; }
.req-route > div { display: flex; gap: 5px; align-items: flex-start; }
.req-route small { display: block; font-size: 6px; color: #64748b; }
.req-route strong { display: block; font-size: 8.5px; }
.pin { width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; color: #fff; font-size: 6px; font-weight: 800; flex-shrink: 0; margin-top: 2px; }
.pin-a { background: #16a34a; } .pin-b { background: #dc2626; }
.req-fare { font-size: 10px; font-weight: 600; padding: 2px 0 4px; }
.req-fare b { font-size: 12px; }
.req-timer { display: flex; justify-content: space-between; font-size: 6.5px; color: #475569; }
.req-timer b { color: #dc2626; }
.req-timer-bar { height: 3px; background: #e2e8f0; border-radius: 2px; margin: 3px 0 6px; overflow: hidden; }
.req-timer-bar span { display: block; height: 100%; width: 100%; background: #dc2626; transition: width 1s linear; }
.req-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.req-btn { border: 0; border-radius: 999px; padding: 6px; font-size: 7.5px; font-weight: 800; color: #fff; transition: transform .15s, filter .2s; }
.req-btn:hover { filter: brightness(1.1); transform: scale(1.04); }
.req-btn.reject { background: #dc2626; }
.req-btn.accept { background: #1e3a8a; box-shadow: 0 0 0 0 rgba(59, 130, 246, .6); animation: pulseBlue 1.6s infinite; }
@keyframes pulseBlue { 70% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); } }
.req-feedback { position: absolute; left: 24px; right: 24px; top: 50%; translate: 0 -50%; text-align: center; color: #fff; font-weight: 700; font-size: 13px; opacity: 0; transition: opacity .4s; display: grid; gap: 8px; justify-items: center; }
.req-feedback.show { opacity: 1; }
.req-feedback .lucide { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: #16a34a; }
.req-feedback.rejected .lucide { background: #dc2626; }
.req-feedback small { font-weight: 500; font-size: 10px; color: #cbd5e1; }

/* Onboarding screen */
.screen-onboard { background: linear-gradient(180deg, #fff7ea, #fff 40%); padding: 44px 18px 18px; color: var(--ink); }
.ob-head { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.ob-head img { border-radius: 6px; }
.screen-onboard h4 { font-size: 15px; margin: 16px 0 10px; }
.ob-progress { height: 6px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.ob-progress span { display: block; height: 100%; width: var(--p, 0%); background: var(--primary); border-radius: 4px; transition: width .5s var(--ease); }
.ob-steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.ob-steps li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; background: #fff; border: 1px solid var(--border); border-radius: 10px; font-size: 10.5px; font-weight: 600; transition: border-color .3s, background .3s; }
.ob-steps li .lucide { width: 14px; height: 14px; color: var(--muted); }
.ob-steps li span { flex: 1; }
.ob-steps li em { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #cbd5e1; transition: .3s; position: relative; }
.ob-steps li.done { border-color: #bbf7d0; background: #f0fdf4; }
.ob-steps li.done .lucide { color: #16a34a; }
.ob-steps li.done em { background: #16a34a; border-color: #16a34a; }
.ob-steps li.done em::after { content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ob-steps li.doing em { border-color: var(--primary); border-top-color: transparent; animation: spin 0.8s linear infinite reverse; }
.ob-done { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; background: #16a34a; color: #fff; font-weight: 700; font-size: 11px; padding: 10px; border-radius: 10px; opacity: 0; transform: translateY(10px); transition: .4s var(--ease); }
.ob-done.show { opacity: 1; transform: none; }

/* Payout screen */
.screen-payout { background: #0b1220; color: #cbd5e1; padding: 44px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.po-head { background: linear-gradient(135deg, var(--primary), #f97316); border-radius: 14px; padding: 12px; color: #fff; }
.po-head small { font-size: 9px; opacity: .85; display: block; }
.po-head strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.po-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.po-stats div { background: #1e293b; border-radius: 8px; padding: 6px; text-align: center; }
.po-stats small { display: block; font-size: 7.5px; color: #94a3b8; }
.po-stats strong { font-size: 11px; color: #fff; }
.po-chart { display: flex; align-items: flex-end; gap: 6px; height: 70px; background: #1e293b; border-radius: 10px; padding: 8px; }
.po-chart span { flex: 1; height: var(--h); background: linear-gradient(#fbbf24, var(--primary)); border-radius: 3px 3px 0 0; transform-origin: bottom; transform: scaleY(0); transition: transform .7s var(--ease); }
.screen-payout.active .po-chart span { transform: scaleY(1); }
.po-chart span:nth-child(n) { transition-delay: calc(var(--i, 0) * 60ms); }
.po-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 9px; }
.po-list li { display: flex; justify-content: space-between; padding: 6px 8px; background: #111a2b; border-radius: 6px; }
.po-list b { color: #4ade80; }
.po-btn { margin-top: auto; margin-bottom: 14px; border: 0; border-radius: 10px; padding: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; background: #16a34a; color: #fff; font-weight: 700; font-size: 11px; transition: filter .2s, transform .15s; }
.po-btn:hover { filter: brightness(1.1); }
.po-btn:active { transform: scale(.97); }
.po-btn .lucide { width: 14px; height: 14px; }
.po-btn[disabled] { background: #334155; cursor: default; }

/* ---------- FAQ ---------- */
.faq-tools { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin: -24px 0 32px; }
.search-box { position: relative; flex: 1 1 260px; }
.search-box .lucide { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; color: var(--muted); }
.search-box input { padding-left: 2.75rem; border-radius: 999px; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: .5rem 1rem; font-size: .85rem; font-weight: 600; color: var(--muted); transition: .2s; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.faq-list { display: grid; gap: 1rem; }
.faq-item { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; transition: border-color .3s, box-shadow .3s, background .3s; }
.faq-item.open { background: #fff; border-color: #fcd9a0; box-shadow: var(--shadow); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; background: none; border: 0; padding: 1.4rem 1.5rem; font-weight: 700; font-size: 1rem; color: var(--ink); }
.faq-icon { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--primary); border-radius: 2px; transition: transform .35s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item.open .faq-icon::after { transform: rotate(0); }
.faq-item.open .faq-icon { transform: rotate(180deg); transition: transform .35s var(--ease); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 1.5rem 1.5rem; color: var(--text); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item mark { background: var(--primary-100); color: inherit; border-radius: 3px; padding: 0 2px; }
.faq-empty { text-align: center; color: var(--muted); padding: 2rem; }
.faq-empty a { color: var(--primary); font-weight: 600; }

/* ---------- CTA ---------- */
.cta-wrap { background: var(--bg-alt); padding: 96px 0; }
.cta { position: relative; overflow: hidden; background: var(--primary); border-radius: 28px; padding: 64px; text-align: center; color: #fff; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; }
.cta p { max-width: 540px; margin: 1.5rem auto 0; font-size: 1.1rem; line-height: 1.7; opacity: .95; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; justify-content: center; }
.cta-ring { position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18); pointer-events: none; }
.cta-ring.r1 { width: 420px; height: 420px; right: -140px; top: -180px; animation: drift 10s ease-in-out infinite alternate; }
.cta-ring.r2 { width: 260px; height: 260px; left: -80px; bottom: -120px; animation: drift 12s ease-in-out infinite alternate-reverse; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #94a3b8; padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 3rem; }
.footer-contact a { display: inline-flex; align-items: center; gap: .5rem; }
.footer-contact svg { width: 16px; height: 16px; flex: none; }
.footer-brand p { margin: 1.5rem 0 2rem; font-size: .95rem; line-height: 1.6; max-width: 400px; }
.socials { display: flex; gap: .9rem; }
.socials a { width: 36px; height: 36px; border-radius: 50%; background: #1e293b; display: grid; place-items: center; transition: background .2s, transform .2s; }
.socials svg { width: 16px; height: 16px; fill: #cbd5e1; }
.socials a:hover { background: var(--primary); transform: translateY(-3px); }
.socials a:hover svg { fill: #fff; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1.5rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.footer-col a { font-size: .95rem; transition: color .2s, padding .2s; }
.footer-col a:hover { color: var(--primary); padding-left: 4px; }
.footer-bottom { margin-top: 64px; padding-top: 32px; border-top: 1px solid #1e293b; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .9rem; }

/* ---------- Modals ---------- */
.modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; }
.modal-overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(4px); animation: fadeIn .25s; }
.modal-card { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 20px; padding: 2rem; box-shadow: var(--shadow-lg); animation: popIn .35s var(--ease); }
.modal.closing .modal-overlay { animation: fadeOut .2s forwards; }
.modal.closing .modal-card { animation: popOut .2s forwards; }
@keyframes fadeIn { from { opacity: 0; } } @keyframes fadeOut { to { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(20px) scale(.96); } }
@keyframes popOut { to { opacity: 0; transform: translateY(10px) scale(.97); } }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg-alt); color: var(--muted); display: grid; place-items: center; transition: .2s; }
.modal-close:hover { background: var(--primary-50); color: var(--primary); transform: rotate(90deg); }
.modal-head { text-align: center; margin-bottom: 1.5rem; }
.modal-head h3 { font-size: 1.4rem; margin: 1rem 0 .4rem; }
.modal-head p { color: var(--muted); font-size: .92rem; }
.modal-head a { color: var(--primary); font-weight: 600; }
.modal-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--primary-50); color: var(--primary); }
.modal-icon .lucide { width: 26px; height: 26px; }
.modal .segmented { display: flex; width: 100%; }
.modal .segmented button { flex: 1; justify-content: center; }
.app-type-desc { text-align: center; color: var(--text); font-size: .9rem; margin: 1rem 0; min-height: 1.5em; }
.store-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.store-btn { display: flex; align-items: center; gap: .6rem; background: var(--ink); color: #fff; border-radius: 12px; padding: .7rem 1rem; transition: transform .2s, background .2s; }
.store-btn:hover { background: #1e293b; transform: translateY(-2px); }
.store-btn svg { width: 24px; height: 24px; fill: #fff; }
.store-btn span { font-weight: 700; font-size: 1rem; line-height: 1.1; }
.store-btn small { display: block; font-size: .62rem; font-weight: 500; opacity: .8; }
.sms-form { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px dashed var(--border); }
.sms-form label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .5rem; }
.input-group { display: flex; align-items: stretch; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.input-group:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(243, 156, 18, .15); }
.input-group .prefix { display: grid; place-items: center; padding: 0 .8rem; background: var(--bg-alt); font-weight: 600; font-size: .9rem; color: var(--muted); }
.input-group input { border: 0; border-radius: 0; box-shadow: none !important; min-width: 0; }
.input-group .btn { border-radius: 0; box-shadow: none; }
.input-group .btn:hover { transform: none; }
.form-error { display: block; color: #ef4444; font-size: .8rem; min-height: 1.2em; margin-top: .35rem; }
.contact-form { display: grid; gap: 1rem; }
.contact-form textarea { resize: vertical; }

/* ---------- Toasts ---------- */
.toast-stack { position: fixed; top: 16px; left: 50%; translate: -50% 0; z-index: 3000; display: grid; gap: .6rem; width: min(500px, calc(100% - 32px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: .75rem; background: var(--ink); color: #fff; padding: .9rem 1.1rem; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: .92rem; animation: toastIn .4s var(--ease); pointer-events: auto; }
.toast .lucide { color: var(--primary); }
.toast.success .lucide { color: #4ade80; }
.toast.hide { animation: toastOut .3s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-16px); } }

/* ---------- Back to top ---------- */
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 900; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(243, 156, 18, .8); opacity: 0; visibility: hidden; transform: translateY(16px); transition: .3s var(--ease); }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--primary-600); transform: translateY(-3px); }

/* ---------- Policy page ---------- */
.policy-hero { background: linear-gradient(180deg, var(--primary-50), #fff); padding: 56px 0 48px; border-bottom: 1px solid var(--border); }
.policy-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 1.2rem 0 .8rem; font-weight: 800; }
.policy-hero .lead { margin-bottom: .6rem; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a:hover { color: var(--primary); }
.crumbs .lucide { width: .9em; height: .9em; }
.policy-layout { display: grid; grid-template-columns: 280px 1fr; gap: 3rem; padding-top: 48px; padding-bottom: 96px; }
.policy-side { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: 1.5rem; }
.policy-nav { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: .25rem; }
.policy-nav h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .5rem; }
.policy-nav a { display: flex; align-items: center; gap: .55rem; padding: .55rem .7rem; border-radius: 8px; font-size: .9rem; transition: .2s; }
.policy-nav a:hover { background: #fff; color: var(--primary); }
.policy-nav a.active { background: var(--primary); color: #fff; font-weight: 600; }
.policy-nav.toc a { font-size: .85rem; border-left: 2px solid transparent; border-radius: 0 8px 8px 0; }
.policy-nav.toc a.active { background: #fff; color: var(--primary); border-left-color: var(--primary); }
.policy-body section { padding: 1.75rem 0; border-bottom: 1px solid var(--border); }
.policy-body h2 { display: flex; align-items: center; gap: .8rem; font-size: 1.35rem; margin-bottom: .9rem; }
.policy-body h2 span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--primary-50); color: var(--primary); font-size: .95rem; }
.policy-body p { font-size: 1.02rem; line-height: 1.8; }
.policy-help { margin-top: 2.5rem; display: flex; gap: 1rem; align-items: center; background: var(--mint); border-radius: var(--radius); padding: 1.5rem; }
.policy-help > .lucide { width: 32px; height: 32px; color: var(--primary); }
.policy-help div { flex: 1; }
.policy-help strong { color: var(--ink); }
.policy-help a { color: var(--primary); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .main-nav ul { gap: 1.4rem; }
    .fc-bottom { right: 0; }
}

@media (max-width: 960px) {
    :root { --header-h: 70px; }
    .container { padding: 0 24px; }
    .nav-toggle { display: block; }
    .desktop-only { display: none; }
    .mobile-only { display: inline-flex; }
    .main-nav {
        position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); z-index: 999;
        background: #fff; padding: calc(var(--header-h) + 16px) 24px 24px; box-shadow: var(--shadow-lg);
        transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s; overflow-y: auto;
        display: flex; flex-direction: column; gap: 1.5rem;
    }
    .main-nav.open { transform: none; visibility: visible; transition: transform .4s var(--ease), visibility 0s; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav ul > li > a, .dropdown-toggle { width: 100%; padding: .9rem 0; border-bottom: 1px solid var(--border); justify-content: space-between; font-size: 1.02rem; }
    .main-nav ul > li > a::after, .dropdown-toggle::after { display: none; }
    .dropdown-menu { position: static; transform: none !important; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0; min-width: 0; display: none; }
    .has-dropdown:hover .dropdown-menu { display: none; }
    .has-dropdown.open .dropdown-menu { display: block; }
    .has-dropdown:hover:not(.open) .dropdown-toggle .lucide { transform: none; }
    .header-actions { position: relative; z-index: 1000; }

    .hero { padding: 48px 0 80px; }
    .hero-grid, .split, .showcase { grid-template-columns: 1fr; }
    .hero-copy { text-align: center; }
    .hero-copy .lead { margin: 0 auto; }
    .hero-actions, .hero-trust { justify-content: center; }
    .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
    .card-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
    .estimator { grid-template-columns: 1fr; }
    .split-visual { order: 2; display: flex; flex-direction: column; align-items: center; }
    .device-pair { width: 360px; margin-top: 0; }
    .calc-card { width: 100%; }
    .showcase-phone { order: -1; }
    .steps { grid-template-columns: 1fr; gap: 3rem; }
    .steps-line { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .policy-layout { grid-template-columns: 1fr; }
    .policy-side { position: static; }
    .policy-nav.toc { display: none; }
}

@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .section, .cta-wrap { padding: 72px 0; }
    .section-head { margin-bottom: 48px; }
    .brand { font-size: 1.25rem; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-trust { flex-direction: column; gap: .6rem; }
    .float-card { padding: .6rem .8rem; font-size: .8rem; }
    .float-card strong { font-size: .8rem; }
    .float-card small { font-size: .68rem; }
    .fc-icon { width: 30px; height: 30px; }
    .fc-top { top: 0; }
    .fc-bottom { bottom: 0; }
    .fc-mini { display: none; }
    .hero-car { width: 96%; transform: none; animation-name: carFloatSm; }
    @keyframes carFloatSm { 50% { transform: translateY(-6px); } }
    .feature-card { padding: 2rem 1.5rem; }
    .estimator-form, .estimator-result { padding: 1.5rem; }
    .route-fields { grid-template-columns: 1fr; }
    .swap-btn { justify-self: center; transform: rotate(90deg); margin: -.25rem 0; }
    .swap-btn:hover { transform: rotate(270deg); }
    .ride-types { grid-template-columns: repeat(2, 1fr); }
    .device-pair { transform: scale(.88); transform-origin: top center; height: 260px; }
    .calc-result { grid-template-columns: 1fr; }
    .row-card { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.5rem; }
    .show-item { padding: 1.25rem; gap: 1rem; }
    .segmented-center { width: 100%; }
    .segmented-center button { flex: 1; justify-content: center; padding: .6rem .5rem; font-size: .82rem; }
    .faq-tools { margin-top: -16px; }
    .faq-q { padding: 1.2rem; font-size: .95rem; }
    .faq-a p { padding: 0 1.2rem 1.2rem; }
    .cta { padding: 48px 20px; border-radius: 20px; }
    .cta-actions .btn { flex: 1 1 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
    .store-buttons { grid-template-columns: 1fr; }
    .modal-card { padding: 1.5rem; }
    .policy-help { flex-direction: column; align-items: flex-start; }
    .back-to-top { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
    .site-header, .site-footer, .policy-side, .policy-help .btn, .back-to-top, .scroll-progress { display: none !important; }
    .policy-layout { grid-template-columns: 1fr; padding: 0; }
}
