/* =====================================================================
   Dodo Ride – homepage design (header, map hero, booking card,
   ride cards, rentals & outstation, how it works, footer).
   Loaded by every page, after styles.css (tools/apply-chrome.js adds it).
   Dark is the main look; light theme swaps the section colours.
   ===================================================================== */
:root, :root[data-theme="dark"] {
  --h-bg: #150427; --h-bg2: #18052D; --h-panel: #230A3D; --h-panel2: rgba(35,10,61,.75);
  --h-step: rgba(45,12,80,.7); --h-text: #fff; --h-sub: #E9DCEC; --h-muted: #D9C8DE;
  --h-border: rgba(150,80,210,.3); --h-tile: #3F1166; --h-head: #150427; --h-head-text: #fff;
  --h-ink: #150427;
}
:root[data-theme="light"] {
  --h-bg: #FFFFFF; --h-bg2: #FBF6FC; --h-panel: #FFFFFF; --h-panel2: #FFFFFF;
  --h-step: #FFFFFF; --h-text: #150427; --h-sub: #4F3A56; --h-muted: #5B4661;
  --h-border: rgba(54,4,90,.14); --h-tile: #36045A; --h-head: #FFFFFF; --h-head-text: #150427;
}
body { background: var(--h-bg); }
.wrap { max-width: 1440px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--h-head); color: var(--h-head-text); border-bottom: 1px solid rgba(127,127,127,.12); transition: box-shadow .3s, background .3s; }
.site-head .wrap { display: flex; align-items: center; gap: 36px; height: 80px; transition: height .3s; }
.site-head.scrolled { box-shadow: 0 10px 30px rgba(0,0,0,.35); }
:root:not([data-theme="light"]) .site-head.scrolled { background: rgba(21,4,39,.92); backdrop-filter: blur(12px); }
.site-head.scrolled .wrap { height: 66px; }
.h-progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: linear-gradient(90deg, #F0049B, #FF8FD6); transform-origin: left; transform: scaleX(var(--p, 0)); }
.h-brand { display: flex; align-items: center; gap: 10px; flex: none; animation: hDrop .6s both; }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; display: block; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.h-brand:hover .brand-mark { transform: rotate(-10deg) scale(1.06); }
.brand-name { font-size: 27px; font-weight: 800; letter-spacing: -.3px; color: var(--h-head-text); white-space: nowrap; }
.brand-name span { color: var(--orange); }
.site-nav { display: flex; gap: 36px; flex: 1; font-weight: 600; font-size: 16.5px; }
.site-nav a { color: var(--h-head-text); padding: 28px 0 24px; position: relative; opacity: .92; transition: color .2s; animation: hDrop .5s cubic-bezier(.2,.8,.2,1) both; }
.site-nav a:nth-child(2) { animation-delay: .05s } .site-nav a:nth-child(3) { animation-delay: .1s } .site-nav a:nth-child(4) { animation-delay: .15s }
.site-nav a:nth-child(5) { animation-delay: .2s } .site-nav a:nth-child(6) { animation-delay: .25s }
.site-nav a:hover { opacity: 1; color: var(--orange-2); }
.site-nav a::before { content: ""; position: absolute; left: 0; right: 0; bottom: 12px; height: 4px; border-radius: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.site-nav a:hover::before, .site-nav a[aria-current="page"]::before { transform: scaleX(1); }
.head-right { display: flex; align-items: center; gap: 18px; flex: none; margin-left: auto; }
.help-link { font-weight: 600; font-size: 16.5px; color: var(--h-head-text); }
.help-link:hover { color: var(--orange); }
.login-btn { display: flex; align-items: center; gap: 8px; background: #fff; color: #150427; border: 0; border-radius: 14px; padding: 12px 20px; font-weight: 600; font-size: 16.5px; cursor: pointer; transition: transform .2s, box-shadow .2s; }
:root[data-theme="light"] .login-btn { background: var(--orange); color: #fff; }
.login-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,255,255,.15); }
.login-btn svg { transition: transform .3s; flex: none; }
.login-btn:hover svg { transform: rotate(-12deg) scale(1.1); }
.h-menu { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(127,127,127,.35); background: transparent; color: var(--h-head-text); cursor: pointer; place-items: center; }

/* ---------- Hero: dark city map + white booking card ---------- */
.hero.hero2 { position: relative; overflow: hidden; background: #170D26; color: #fff; padding: 0; min-height: max(820px, calc(100svh - 80px)); }
.hero-mapwrap { position: absolute; inset: 0; }
.hero-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.hero2 .hero-inner.hero-grid { position: relative; display: flex; align-items: flex-start; padding-block: 36px 40px; gap: 0; grid-template-columns: none; }

.hero2 .booking-card {
  /* light colours inside the white card, in both themes */
  --bg: #fff; --bg-alt: #fbf7fc; --surface: #fff; --surface-2: #F3EDF8; --text: #150427; --muted: #6B5671;
  --line: #ECE3F3; --chip-bg: #F6EEF8; --chip-text: #36045A; --chip-hover: #ECDCF0; --accent-soft: #FCE4F4;
  color-scheme: light;
  position: relative; width: 100%; max-width: 478px; background: #fff; color: #150427; border: 0;
  border-radius: 26px; padding: 30px 30px 22px; box-shadow: 0 24px 60px rgba(0,0,0,.45);
  animation: hRise .7s cubic-bezier(.2,.8,.2,1) both;
}
.hero2 .booking-card .step { display: flex; flex-direction: column; gap: 16px; }
.hero2 .booking-card .step.hidden { display: none; }
.hero2 .bk-title { margin: 0; font-size: 38px; line-height: 1.1; font-weight: 700; letter-spacing: -1.2px; color: #150427; animation: hRise .7s .1s cubic-bezier(.2,.8,.2,1) both; }
.bk-title em { font-style: normal; color: var(--orange); }
.bk-title .ch { display: inline-block; transition: transform .25s cubic-bezier(.2,.8,.2,1), color .25s; }
.bk-title .ch:hover { transform: translateY(-6px) rotate(-4deg); color: var(--orange); }
.uline { position: relative; display: inline-block; }
.uline svg { position: absolute; left: 0; right: 0; bottom: -8px; width: 100%; height: 12px; }
.uline path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hDraw .9s 1s ease-out forwards; }

/* Ride · Rental · Outstation as underline tabs */
.hero2 .mode-tabs { display: flex; gap: 34px; background: none; padding: 0; border-radius: 0; margin: -4px 0 0; border-bottom: 1px solid var(--line); }
.hero2 .mode-tab { border: 0; background: none; padding: 0 0 12px; border-radius: 0; font-size: 18px; font-weight: 500; color: var(--muted); position: relative; box-shadow: none; overflow: visible; }
.hero2 .mode-tab.active { background: none; color: #150427; font-weight: 600; box-shadow: none; }
.hero2 .mode-tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; border-radius: 2px; background: var(--orange); animation: hGrowX .35s cubic-bezier(.2,.8,.2,1); }

/* pickup / stop / drop with a green → orange rail */
.route { display: grid; grid-template-columns: 20px 1fr; column-gap: 10px; }
.route-rail { display: flex; flex-direction: column; align-items: center; padding: 38px 0 22px; }
.dot-g { width: 16px; height: 16px; border-radius: 50%; background: var(--green); flex: none; }
.rail { flex: 1; width: 2px; background: linear-gradient(var(--green), var(--orange)); margin: 4px 0; min-height: 30px; }
.dot-o { width: 16px; height: 16px; border-radius: 4px; background: var(--orange); flex: none; }
.hero2 .loc-inputs { background: none; border: 0; padding: 0; border-radius: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.loc-field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 15px; font-weight: 500; color: #150427; }
.h-input { position: relative; isolation: isolate; display: flex; align-items: center; gap: 10px; border-radius: 13px; padding: 0 8px 0 14px; height: 50px; }
.h-input::after { content: ""; position: absolute; inset: 0; border-radius: 13px; background: #F3EDF8; z-index: -1; }
.h-input::before { content: ""; position: absolute; inset: -2px; border-radius: 15px; background: conic-gradient(from var(--a, 0deg), #F0049B, #FF8FD6, #22C55E, #F0049B); z-index: -2; opacity: 0; transition: opacity .3s; }
.h-input:focus-within::before { opacity: 1; animation: hSpinA 2.5s linear infinite; }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.h-input > svg { flex: none; }
.h-input input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 16.5px; font-weight: 500; color: #150427; padding: 0; }
.h-input input::placeholder { color: #7A6380; font-weight: 500; }
.hero2 .icon-btn { width: 36px; height: 36px; border: 0; background: transparent; color: #150427; border-radius: 10px; cursor: pointer; display: grid; place-items: center; flex: none; font-size: 1rem; }
.hero2 .icon-btn:hover { background: rgba(240,4,155,.12); }
.hero2 .place-list { top: calc(100% + 6px); left: 0; right: 0; z-index: 20; background: #fff; color: #150427; box-shadow: 0 16px 40px rgba(21,4,39,.25); border: 1px solid #ECE3F3; }
/* the open suggestion list must sit above the chips and ride list below it */
.hero2 .loc-field { position: relative; }
.hero2 .loc-field:focus-within { z-index: 30; }
.hero2 .route, .hero2 .loc-inputs { position: relative; z-index: 5; }

/* chips */
.hero2 .chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.hero2 .chip { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 15px; border-radius: 12px; border: 1px solid #E3D8EE; background: #fff; color: #150427; font-size: 15px; font-weight: 600; }
.hero2 .chip:hover { border-color: var(--orange); }
.hero2 .chip.active { background: var(--orange); border-color: var(--orange); color: #fff; }

/* extra fields (rental, outstation, payment…) */
.hero2 .booking-card .field { font-size: 13px; color: var(--muted); margin-bottom: 0; }
.hero2 .booking-card .field input, .hero2 .booking-card .field select { background: #F3EDF8; border: 1px solid transparent; border-radius: 12px; color: #150427; font-size: 15px; font-weight: 500; }
.hero2 .booking-card .field input:focus, .hero2 .booking-card .field select:focus { border-color: var(--orange); }
.hero2 .booking-card .row-between { gap: 12px; }
.hero2 .surge { border-radius: 12px; }

/* ride list */
.choose { font-size: 17px; font-weight: 600; color: #150427; margin-bottom: -6px; }
.hero2 .ride-options { display: flex; flex-direction: column; gap: 2px; margin: 0 -10px; }
.hero2 .ride-opt { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; width: 100%; padding: 8px 10px; border-radius: 14px; border: 1.5px solid transparent; background: transparent; text-align: left; color: #150427; transition: background .2s, border-color .2s, transform .2s; animation: hRise .5s cubic-bezier(.2,.8,.2,1) both; }
.hero2 .ride-opt:nth-child(2) { animation-delay: .07s } .hero2 .ride-opt:nth-child(3) { animation-delay: .14s } .hero2 .ride-opt:nth-child(4) { animation-delay: .21s } .hero2 .ride-opt:nth-child(5) { animation-delay: .28s }
.hero2 .ride-opt:hover { background: #FBF4FB; transform: translateX(4px); border-color: transparent; }
.hero2 .ride-opt.active { background: var(--orange-soft, #FCE4F4); border-color: #F9A8DC; }
.hero2 .ride-opt.active .emoji { animation: hWiggle .5s; }
.hero2 .ride-opt::before { content: ""; position: absolute; left: -40px; top: 50%; width: 40px; height: 2px; background: linear-gradient(90deg, transparent, #F0049B); box-shadow: 0 -8px 0 #FF8FD6, 0 8px 0 #FF8FD6; opacity: 0; }
.hero2 .ride-opt:hover::before { animation: hZoom .6s ease-out; }
.hero2 .ride-opt .info strong { font-size: 17px; font-weight: 600; line-height: 1.2; }
.hero2 .ride-opt .info span { font-size: 13.5px; color: #4A3550; }
.hero2 .ride-opt .price { font-size: 18px; font-weight: 700; color: #150427; font-variant-numeric: tabular-nums; }

.hero2 .fare-box:empty { display: none; }
.hero2 #bookBtn { position: relative; overflow: hidden; height: 58px; border-radius: 999px; font-size: 20px; font-weight: 700; box-shadow: 0 10px 24px rgba(240,4,155,.35); transition: transform .2s, box-shadow .2s, background .2s; }
.hero2 #bookBtn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(240,4,155,.45); background: #D10088; }
.hero2 #bookBtn::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(-120%) skewX(-20deg); animation: hSheen 3.5s 2s ease-in-out infinite; }
.hero2 #bookBtn.bump { animation: hBump .45s; }
.h-ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.45); transform: scale(0); animation: hRipple .6s ease-out forwards; pointer-events: none; }
.bk-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #150427; line-height: 1.45; margin: -4px 0 0; }
.bk-note svg { flex: none; }

/* map overlays */
.h-overlay { position: absolute; z-index: 2; }
.h-nearby { top: 36px; right: max(24px, env(safe-area-inset-right, 0px)); display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 999px; background: #150427; border: 1px solid rgba(255,255,255,.18); font-weight: 600; font-size: 17px; color: #fff; animation: hRise .6s .4s both; }
.h-nearby i { width: 14px; height: 14px; border-radius: 50%; background: var(--green); animation: hPing 2s infinite; }
.h-captain { top: 46%; right: max(36px, calc(env(safe-area-inset-right, 0px) + 36px)); display: flex; align-items: stretch; background: #150427; color: #fff; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.5); overflow: hidden; animation: hPop .6s .9s cubic-bezier(.2,.8,.2,1) both; }
.h-captain.arrived { border-color: var(--green); }
.cap-who { display: flex; align-items: center; gap: 14px; padding: 16px 22px; }
.cap-avatar { position: relative; width: 52px; height: 52px; border-radius: 50%; background: #36045A; display: grid; place-items: center; font-weight: 700; font-size: 17px; flex: none; }
.av-ring { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); animation: hSpin 1.6s linear infinite; }
.h-captain.arrived .av-ring { animation: none; opacity: 0; transition: opacity .3s; }
.cap-name { font-size: 17px; font-weight: 700; display: block; }
.cap-sub { font-size: 14px; color: #CDB8D3; }
.cap-eta { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 24px; border-left: 1px solid rgba(255,255,255,.12); font-size: 14px; color: #CDB8D3; }
.cap-eta b { font-size: 26px; color: #fff; line-height: 1; display: inline-block; }
.h-captain.arrived .cap-eta b { color: var(--green); }
.cap-eta b.tick { animation: hTick .45s; }
.h-controls { right: max(24px, env(safe-area-inset-right, 0px)); bottom: 28px; animation: hRise .6s .6s both; }
.h-ctl { width: 60px; height: 60px; border-radius: 14px; border: 0; background: var(--orange); cursor: pointer; display: grid; place-items: center; }
.h-ctl:hover { filter: brightness(1.12); }

/* map svg motion */
.trip-route { stroke-dasharray: 1; animation: hDraw 1.6s .5s ease-out both; }
.cap-route { animation: hFlow2 1.2s linear infinite; }
.drift { animation: hDrift 7s ease-in-out infinite; }
.d2 { animation-duration: 9s; animation-delay: -2s } .d3 { animation-duration: 8s; animation-delay: -4s }
.trip-glow { opacity: 0; animation: hFadeIn .4s 2.2s forwards; }
.cap-car path { animation: hBeam 2.4s ease-in-out infinite; }
.map-radar { animation: hFadeIn .6s 1.2s both; }

/* ---------- marquees ---------- */
.h-marquee { overflow: hidden; background: #F0049B; color: #150427; }
.h-marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; padding-block: 16px; animation: hMarq 32s linear infinite; font-weight: 700; font-size: 17px; white-space: nowrap; }
.h-marquee:hover .h-marquee-track { animation-play-state: paused; }
.h-marquee i { width: 10px; height: 10px; border-radius: 3px; background: #150427; transform: rotate(45deg); flex: none; }
.h-marquee.alt { background: #230A3D; color: #FF8FD6; }
.h-marquee.alt i { background: #F0049B; }
.h-marquee-track.rev { animation-direction: reverse; animation-duration: 38s; }

/* ---------- section headings ---------- */
.h-sec { padding-block: 88px 24px; }
.sec-bar { display: block; width: 88px; height: 8px; border-radius: 4px; background: var(--orange); margin-bottom: 18px; transform-origin: left; transition: transform .8s .1s cubic-bezier(.2,.8,.2,1); }
.sec-title { margin: 0; font-size: 56px; line-height: 1.05; font-weight: 800; letter-spacing: -1.8px; color: var(--h-text); text-wrap: balance; }
.sec-title em { font-style: normal; color: var(--orange); }
.sec-title .w { display: inline-block; transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .7s; transition-delay: calc(var(--i) * 80ms); }
.sec-sub { margin: 12px 0 0; font-size: 18px; color: var(--h-sub); max-width: 640px; line-height: 1.5; transition: opacity .7s .35s, transform .7s .35s; }
.h-sec.pre .sec-title .w { transform: translateY(60%); opacity: .01; }
.h-sec.pre .sec-bar { transform: scaleX(0); }
.h-sec.pre .sec-sub { opacity: .01; transform: translateY(16px); }

/* ---------- ride cards ---------- */
.rides-sec { background: var(--h-bg2); color: var(--h-text); }
.rides-sec .sec-title { font-size: 46px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 40px; padding-bottom: 88px; }
.vc { position: relative; overflow: hidden; background: var(--h-panel); border: 1px solid var(--h-border); border-radius: 22px; padding: 4px 24px 26px; display: flex; flex-direction: column; gap: 6px; text-align: left; color: var(--h-text); cursor: pointer; transition: transform .2s, border-color .2s; }
.vc:hover { transform: translateY(-4px); border-color: rgba(255,61,180,.6); }
.vc img { display: block; height: 136px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto 6px; transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .6s; }
.vc:hover img { transform: translateX(8px) scale(1.04); }
.vc.pre img { transform: translateX(-60px); opacity: .01; }
.vc b { font-size: 21px; font-weight: 700; }
.vc span { font-size: 16px; color: var(--h-muted); line-height: 1.55; }
.vc strong { display: inline-block; font-size: 21px; font-weight: 800; color: var(--orange); margin-top: 6px; font-variant-numeric: tabular-nums; }
.vc::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 35%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); transform: translateX(-150%) skewX(-18deg); pointer-events: none; }
.vc:hover::after { animation: hSheen .9s ease-out; }

/* road divider */
.h-road { position: relative; height: 90px; background: var(--h-bg2); overflow: hidden; }
.h-road-line { position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: repeating-linear-gradient(90deg, rgba(255,61,180,.55) 0 28px, transparent 28px 48px); }
.h-road-car { position: absolute; top: 50%; left: 0; margin-top: -27px; transform: translateX(var(--x, -120px)); transition: transform .1s linear; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }

/* ---------- rentals & outstation ---------- */
.ro { position: relative; overflow: hidden; background: var(--h-bg); color: var(--h-text); }
.ro-map { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; animation: hPan 30s linear infinite alternate; }
.ro .wrap, .how .wrap { position: relative; }
.ro-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 17px; }
.ro-route { width: min(100%, 432px); height: auto; flex: none; margin-top: -14px; }
.dash-flow { animation: hFlow 2s linear infinite; }
.ro-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px; margin-top: 29px; padding-bottom: 69px; }
.h-box { position: relative; background: var(--h-panel2); border: 1.5px solid var(--h-border); border-radius: 22px; padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 19px; }
.box-head { display: flex; gap: 22px; align-items: flex-start; }
.h-tile { width: 71px; height: 71px; border-radius: 16px; background: var(--h-tile); display: grid; place-items: center; flex: none; }
.h-box h3 { margin: 4px 0 6px; font-size: 26px; font-weight: 700; letter-spacing: -.4px; }
.h-box p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--h-muted); }
.h-packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.h-pack { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 13px; background: rgba(127,127,127,.06); border: 1.5px solid var(--h-border); color: var(--h-text); cursor: pointer; text-align: left; transition: border-color .2s, background .2s, transform .2s; }
.h-pack svg { flex: none; margin-top: 3px; }
:root[data-theme="light"] .h-pack svg { stroke: #36045A; }
.h-pack:hover, .h-pack[aria-pressed="true"] { border-color: var(--orange); background: rgba(240,4,155,.08); transform: translateY(-2px); }
.h-pack span { display: flex; flex-direction: column; font-size: 15px; font-weight: 500; line-height: 1.35; }
.h-pack strong { display: inline-block; color: var(--orange); font-weight: 700; font-variant-numeric: tabular-nums; }
.h-checks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; font-size: 16px; font-weight: 500; }
.h-checks li { display: flex; gap: 13px; align-items: center; }
.h-checks i { width: 27px; height: 27px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; flex: none; }
.h-pill { align-self: flex-start; height: 55px; padding: 0 39px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 22px; border: 0; cursor: pointer; margin-top: auto; transition: background .2s, transform .2s; }
.h-pill:hover { background: #D10088; }
.h-pill svg { transition: transform .2s; }
.h-pill:hover svg { transform: translateX(5px); }

/* ---------- how it works ---------- */
.how { position: relative; background: var(--h-bg2); color: var(--h-text); }
.how .h-sec { padding-block: 69px 0; }
.step-track { position: relative; height: 4px; border-radius: 2px; background: rgba(127,127,127,.15); margin: 28px 0 -12px; }
.step-dot { position: absolute; top: 50%; left: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #F0049B; box-shadow: 0 0 0 6px rgba(240,4,155,.25), 0 0 22px #F0049B; animation: hTrack 8s ease-in-out infinite; }
.how-steps { list-style: none; padding: 0; margin: 29px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 29px; padding-bottom: 79px; }
.how-step { position: relative; background: var(--h-step); border: 1.5px solid var(--h-border); border-radius: 20px; padding: 29px 32px 32px; display: flex; flex-direction: column; gap: 10px; transition: transform .25s, border-color .4s, box-shadow .4s; }
.how-step:hover { transform: translateY(-6px); border-color: rgba(255,61,180,.55); }
.how-step.active { border-color: #F0049B; box-shadow: 0 0 0 1px #F0049B, 0 20px 50px rgba(240,4,155,.18); }
.how-num { position: absolute; left: 20px; top: 13px; width: 37px; height: 37px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 16px; font-weight: 700; display: grid; place-items: center; z-index: 1; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.how-step:hover .how-num { transform: rotate(360deg); }
.how-step.active .how-num { animation: hPop .5s both; }
.step-ico { width: 84px; height: 78px; border-radius: 16px; background: #3F1166; display: grid; place-items: center; margin-left: 20px; box-shadow: -19px 4px 0 -4px rgba(63,17,102,.45); transition: transform .3s; }
.how-step:hover .step-ico { transform: rotate(-4deg) scale(1.05); }
.how-step h3 { margin: 13px 0 0; font-size: 23px; font-weight: 700; letter-spacing: -.4px; }
.how-step p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--h-muted); }
.pin-bob, .car-bob { animation: hBob 1.8s ease-in-out infinite; transform-box: fill-box; }
.pin-ring { animation: hRing 1.8s ease-in-out infinite; transform-origin: 20px 40px; }
.car-nudge { animation: hNudge 2.6s ease-in-out infinite; }
.otp-stars, .waves { animation: hBlink 1.4s steps(2) infinite; }

/* floating dots */
.particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.particles span { position: absolute; bottom: -20px; width: 6px; height: 6px; border-radius: 50%; background: #F0049B; opacity: 0; animation: hFloatUp linear infinite; }

/* ---------- footer ---------- */
.foot2 { background: #18052D; color: #fff; border-top: 1px solid rgba(255,255,255,.05); position: relative; overflow: hidden; }
.foot2 .wrap { position: relative; }
.f-main { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 2.4fr) minmax(0, 1fr); padding-block: 79px 33px; }
.f-brand { padding-right: 29px; border-right: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 14px; }
.f-logo { display: flex; align-items: center; gap: 14px; font-size: 33px; font-weight: 700; letter-spacing: .4px; }
.f-logo img { width: 46px; height: 46px; border-radius: 12px; }
.f-logo span { color: var(--orange); }
.f-brand p { margin: 0; font-size: 16px; line-height: 1.45; color: #E9DCEC; }
.f-social { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 12px; }
.f-social a { width: 45px; height: 45px; border-radius: 10px; background: #33115A; display: grid; place-items: center; color: #fff; transition: background .2s, color .2s, transform .2s; }
.f-social a:hover { background: var(--orange); color: #150427; transform: translateY(-3px); }
.f-app { font-size: 17px; font-weight: 600; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store { position: relative; overflow: hidden; display: flex; align-items: center; gap: 9px; height: 49px; padding: 0 16px; border: 1.5px solid rgba(255,255,255,.8); border-radius: 9px; color: #fff; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 9px; letter-spacing: .5px; }
.store b { font-size: 16px; font-weight: 500; }
.store::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent); transform: translateX(-150%) skewX(-20deg); animation: hSheen 4s 1s ease-in-out infinite; }
.store:nth-child(2)::after { animation-delay: 2s; }
.f-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; padding: 0 29px 0 48px; border-right: 1px solid rgba(255,255,255,.12); }
.f-cols div { display: flex; flex-direction: column; gap: 18px; font-size: 16px; }
.f-cols h4 { margin: 0 0 3px; font-size: 20px; font-weight: 600; }
.f-cols a { color: #E9DCEC; }
.f-cols a:hover { color: var(--orange); }
.f-promise { padding-left: 43px; display: flex; flex-direction: column; gap: 4px; }
.f-promise p { margin: 10px 0 0; font-size: 24px; font-weight: 700; line-height: 1.15; letter-spacing: -.3px; }
.f-promise p span { background: linear-gradient(90deg, #F0049B, #FF8FD6, #F0049B); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: hShine 4s linear infinite; }
.f-promise .speed { animation: hSpeed 1.4s ease-in-out infinite; }
.skyline { position: absolute; right: 0; bottom: 101px; width: min(40%, 403px); height: auto; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); animation: hGlow 5s ease-in-out infinite; }
.twinkles { position: absolute; right: 0; bottom: 140px; width: min(40%, 560px); height: 120px; pointer-events: none; z-index: 1; }
.twinkles span { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #FFD1F0; box-shadow: 0 0 6px #FF8FD6; animation: hTwinkle 2.4s ease-in-out infinite; }
.f-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px; padding-block: 26px 30px; border-top: 1px solid rgba(255,255,255,.2); font-size: 15.5px; color: #E9DCEC; position: relative; }
.f-bottom .sep { width: 1px; height: 22px; background: rgba(255,255,255,.5); }
.f-bottom a { color: #E9DCEC; }
.f-bottom a:hover { color: #fff; }
.f-region { margin-left: auto; display: flex; align-items: center; gap: 7px; color: #fff; }
.f-road { position: relative; height: 38px; overflow: hidden; border-top: 1px dashed rgba(255,61,180,.25); }
.f-road svg { position: absolute; top: 2px; left: -70px; animation: hFDrive 12s linear infinite; }
.f-legal { font-size: 12px; color: #B79DBF; padding-bottom: 20px; position: relative; }

/* ---------- floating buttons ---------- */
.to-top { position: fixed; right: max(20px, calc(env(safe-area-inset-right, 0px) + 20px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; border-radius: 50%; border: 0; background: #F0049B; color: #150427; cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(240,4,155,.45); z-index: 40; transform: translateY(90px); opacity: 0; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s; }
.to-top.show { transform: none; opacity: 1; }
.motion-toggle { position: fixed; left: max(16px, calc(env(safe-area-inset-left, 0px) + 16px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(21,4,39,.88); backdrop-filter: blur(8px); color: #fff; font: 600 13px 'Poppins', sans-serif; cursor: pointer; }
.mt-dot { width: 10px; height: 10px; border-radius: 50%; background: #22C55E; animation: hPing 2s infinite; }
.motion-toggle { opacity: 0; pointer-events: none; transform: translateY(20px); transition: opacity .3s, transform .3s; }
.motion-toggle.show { opacity: 1; pointer-events: auto; transform: none; }
.motion-toggle[aria-pressed="false"] .mt-dot { background: #8E7896; animation: none; }

/* custom cursor (mouse only) */
.cursor-ring { position: fixed; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 2px solid #F0049B; border-radius: 50%; pointer-events: none; z-index: 200; transition: width .2s, height .2s, margin .2s, background .2s, opacity .3s; opacity: 0; mix-blend-mode: screen; }
.cursor-ring.on { opacity: .9; }
.cursor-ring.hot { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(240,4,155,.12); }
.cursor-dot { position: fixed; left: 0; top: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #F0049B; pointer-events: none; z-index: 201; opacity: 0; transition: opacity .3s; }
.cursor-dot.on { opacity: 1; }

/* card tilt + spotlight */
.tilt { will-change: transform; }
.tilt::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,61,180,.18), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.tilt:hover::before { opacity: 1; }

/* scroll reveal: content is visible unless JS marks it as below the fold */
.rv { transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .7s; }
.rv.pre { transform: translateY(36px); opacity: .15; }

/* ---------- keyframes ---------- */
@keyframes hRise { from { transform: translateY(28px); opacity: .01 } to { transform: none; opacity: 1 } }
@keyframes hPop { 0% { transform: scale(.85); opacity: .01 } 70% { transform: scale(1.04) } 100% { transform: none; opacity: 1 } }
@keyframes hDrop { from { transform: translateY(-16px); opacity: .01 } to { transform: none; opacity: 1 } }
@keyframes hDraw { from { stroke-dashoffset: 1 } to { stroke-dashoffset: 0 } }
@keyframes hFlow { to { stroke-dashoffset: -48 } }
@keyframes hFlow2 { to { stroke-dashoffset: -20 } }
@keyframes hDrift { 0%, 100% { transform: translate(0, 0) } 50% { transform: translate(10px, -6px) } }
@keyframes hSpeed { 0%, 100% { transform: translateX(0); opacity: 1 } 50% { transform: translateX(-6px); opacity: .55 } }
@keyframes hSheen { from { transform: translateX(-120%) skewX(-20deg) } to { transform: translateX(320%) skewX(-20deg) } }
@keyframes hPing { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6) } 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0) } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0) } }
@keyframes hFadeIn { to { opacity: 1 } }
@keyframes hBeam { 0%, 100% { opacity: .9 } 50% { opacity: .55 } }
@keyframes hTick { 0% { transform: translateY(-8px); opacity: .01 } 100% { transform: none; opacity: 1 } }
@keyframes hBob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-4px) } }
@keyframes hRing { 0%, 100% { transform: scale(1); opacity: 1 } 50% { transform: scale(1.25); opacity: .5 } }
@keyframes hNudge { 0%, 100% { transform: translateX(0) } 50% { transform: translateX(3px) } }
@keyframes hBlink { 50% { opacity: .25 } }
@keyframes hShine { to { background-position: -200% 0 } }
@keyframes hGlow { 0%, 100% { filter: brightness(1) } 50% { filter: brightness(1.25) } }
@keyframes hGrowX { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes hBump { 30% { transform: scale(1.04) } 60% { transform: scale(.98) } 100% { transform: none } }
@keyframes hRipple { to { transform: scale(4); opacity: 0 } }
@keyframes hWiggle { 25% { transform: rotate(-6deg) } 50% { transform: rotate(5deg) } 75% { transform: rotate(-2deg) } }
@keyframes hMarq { to { transform: translateX(-50%) } }
@keyframes hFloatUp { 0% { transform: translateY(0) scale(.6); opacity: 0 } 15% { opacity: .55 } 100% { transform: translateY(-110vh) scale(1.2); opacity: 0 } }
@keyframes hTwinkle { 0%, 100% { opacity: .15 } 50% { opacity: 1 } }
@keyframes hSpin { to { transform: rotate(360deg) } }
@keyframes hSpinA { to { --a: 360deg } }
@keyframes hZoom { 0% { left: -40px; opacity: 0 } 30% { opacity: 1 } 100% { left: 70px; opacity: 0 } }
@keyframes hTrack { 0%, 6% { left: 12.5% } 25%, 31% { left: 37.5% } 50%, 56% { left: 62.5% } 75%, 81% { left: 87.5% } 100% { left: 12.5% } }
@keyframes hPan { to { transform: translateX(-60px) translateY(20px) } }
@keyframes hFDrive { to { left: calc(100% + 70px) } }

/* Calm mode (visitor switched animations off) and reduced motion */
html.calm *, html.calm *::before, html.calm *::after { animation: none !important; transition: none !important; }
html.calm .traffic, html.calm .pings, html.calm .map-radar, html.calm .trip-glow, html.calm .particles, html.calm .twinkles, html.calm .cursor-ring, html.calm .cursor-dot, html.calm .f-road, html.calm .clouds { display: none; }
html.calm .rv.pre, html.calm .h-sec.pre .w, html.calm .h-sec.pre .sec-bar, html.calm .h-sec.pre .sec-sub, html.calm .vc.pre img { transform: none !important; opacity: 1 !important; }
html.calm .trip-route { stroke-dasharray: none; }
html.calm .uline path { stroke-dashoffset: 0; }
html.calm .trip-glow { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .traffic, .pings, .map-radar, .particles, .twinkles, .cursor-ring, .cursor-dot, .f-road, .clouds { display: none; }
  .trip-route { stroke-dasharray: none; } .uline path { stroke-dashoffset: 0; }
  .rv.pre, .h-sec.pre .w, .h-sec.pre .sec-bar, .h-sec.pre .sec-sub, .vc.pre img { transform: none; opacity: 1; }
  .f-promise p span { color: var(--orange); background: none; }
}
@media (pointer: coarse) { .cursor-ring, .cursor-dot { display: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1240px) { .site-nav { gap: 22px; font-size: 15px; } .help-link { display: none; } }
@media (max-width: 1180px) {
  .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-main { grid-template-columns: 1fr; gap: 40px; }
  .f-brand, .f-cols { border-right: 0; padding: 0; }
  .f-promise { padding-left: 0; }
  .skyline { bottom: auto; top: 40px; width: min(55%, 420px); }
}
@media (max-width: 1060px) {
  .h-menu { display: grid; }
  .site-head .wrap { height: 68px; gap: 16px; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--h-head); border-bottom: 1px solid rgba(127,127,127,.2); padding: 8px 24px 16px;
    box-shadow: 0 16px 30px rgba(0,0,0,.3);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; animation: none; }
  .site-nav a::before { bottom: 6px; right: auto; width: 28px; }
  .brand-name { font-size: 23px; } .brand-mark { width: 38px; height: 38px; }
  .login-btn { padding: 10px 16px; font-size: 15px; }
}
@media (max-width: 980px) {
  .hero.hero2 { min-height: 0; display: flex; flex-direction: column-reverse; }
  .hero-mapwrap { position: relative; height: 420px; }
  .hero2 .hero-inner.hero-grid { padding-block: 20px 28px; }
  .hero2 .booking-card { max-width: none; }
  .h-nearby { top: 16px; font-size: 14px; padding: 9px 15px; }
  .h-captain { top: auto; bottom: 20px; right: auto; left: max(16px, env(safe-area-inset-left, 0px)); }
  .h-controls { bottom: 20px; right: max(16px, env(safe-area-inset-right, 0px)); }
  .h-ctl { width: 48px; height: 48px; }
  .ro-grid { grid-template-columns: 1fr; }
  .sec-title, .rides-sec .sec-title { font-size: 40px; }
  .ro-route { display: none; }
}
@media (max-width: 760px) {
  .how-steps { grid-template-columns: 1fr; }
  .f-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .skyline, .twinkles, .step-track { display: none; }
  .motion-toggle { display: none; }
}
@media (max-width: 520px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .site-nav { padding-inline: 16px; }
  .brand-name { font-size: 20px; }
  .head-right { gap: 10px; }
  .login-btn { padding: 9px 12px; font-size: 14px; }
  .login-btn svg { display: none; }
  .hero-mapwrap { height: 340px; }
  .hero2 .booking-card { padding: 22px 16px 18px; border-radius: 22px; }
  .hero2 .bk-title { font-size: 30px; }
  .hero2 .mode-tabs { gap: 22px; } .hero2 .mode-tab { font-size: 16px; }
  .cap-who { padding: 12px 14px; } .cap-avatar { width: 40px; height: 40px; font-size: 14px; }
  .cap-name { font-size: 15px; } .cap-sub { font-size: 12.5px; } .cap-eta { padding: 0 14px; } .cap-eta b { font-size: 20px; }
  .hero2 .ride-opt .info strong { font-size: 16px; } .hero2 .ride-opt .price { font-size: 16.5px; }
  .h-sec { padding-block: 56px 16px; }
  .sec-title, .rides-sec .sec-title { font-size: 32px; }
  .sec-sub { font-size: 16px; }
  .h-packs { grid-template-columns: 1fr; }
  .h-box { padding: 22px 20px 24px; }
  .box-head { flex-direction: column; gap: 14px; }
  .h-box h3 { font-size: 24px; }
  .h-pill { align-self: stretch; justify-content: center; }
  .how-step { padding: 28px 22px 26px; }
  .f-logo { font-size: 28px; }
  .f-bottom { gap: 10px 20px; font-size: 14.5px; }
  .f-region { margin-left: 0; }
  .vgrid { padding-bottom: 56px; }
}

/* =====================================================================
   Booking card extras (payment row, promo, ride icons)
   ===================================================================== */
.hero2 .ride-opt .emoji { width: 58px; flex: none; display: grid; place-items: center; color: #150427; font-size: 1.6rem; }
.hero2 .ride-opt .emoji svg { transition: transform .25s; }
.hero2 .ride-opt:hover .emoji svg, .hero2 .ride-opt.active .emoji svg { transform: translateX(3px); }
.pay { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; }
.pay-l { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; color: #150427; }
.pay select { border: 0; background: transparent; font-size: 16px; font-weight: 600; color: #150427; cursor: pointer; padding: 4px 2px; text-align: right; max-width: 60%; }
.hero2 .promo-input input { background: #F3EDF8; border: 1px solid transparent; border-radius: 12px; padding: 10px 12px; }
.hero2 .h-input.typing input::placeholder { color: #9A84A0; }
.hero2 .form-error:empty { display: none; }
.hero2 .live-badge, .hero2 .surge { margin: 0; }

/* =====================================================================
   Inner pages (Recovery, Safety, Drive, About, Contact)
   ===================================================================== */
.pg { position: relative; padding: 72px 0 88px; background: var(--h-bg); color: var(--h-text); }
.pg-faq { padding-top: 0; }
.pg .wrap { max-width: 1240px; }
.pg-narrow { max-width: 860px !important; }
.pg-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.pg-title { margin: 0; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -1.4px; color: var(--h-text); }
.pg-title em { font-style: normal; color: var(--orange); }
.pg-title-sm { font-size: clamp(26px, 3vw, 36px); }
.pg-title-ico { display: flex; align-items: center; gap: 16px; }
.pg-sub { margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: var(--h-sub); max-width: 600px; }
.pg-sub-wide { max-width: 720px; }
.pg-eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.pg-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--h-border); font-size: 12.5px; font-weight: 600; margin-bottom: 16px; }
.pg-cta { margin-top: 30px; height: 50px; padding: 0 28px; font-size: 16px; gap: 14px; display: inline-flex; }
.pg-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.pg-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.pg-card { position: relative; display: flex; gap: 16px; align-items: flex-start; background: var(--h-panel); border: 1.5px solid var(--h-border); border-radius: 18px; padding: 18px; transition: transform .25s, border-color .25s; }
.pg-card:hover { transform: translateY(-3px); border-color: rgba(255,61,180,.55); }
.pg-card h3 { margin: 2px 0 4px; font-size: 16.5px; font-weight: 700; }
.pg-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--h-muted); }
.pg-card a { color: var(--orange); font-weight: 600; }
.pg-ico { width: 52px; height: 52px; border-radius: 14px; background: rgba(240,4,155,.12); color: var(--orange); display: grid; place-items: center; flex: none; }
.pg-feats .pg-ico { width: 46px; height: 46px; border-radius: 50%; background: var(--orange); color: #fff; }
.pg-grid4 .pg-card { padding-right: 20px; }
.pg-grid4 .pg-card > div, .pg-big .pg-card > div { border-left: 1px solid var(--h-border); padding-left: 16px; }
.pg-ico .sos { color: var(--orange); font-size: 18px; font-weight: 800; letter-spacing: .5px; }
.pg-big .pg-card { padding: 26px; gap: 22px; }
.pg-big .pg-ico { width: 64px; height: 64px; border-radius: 16px; background: rgba(240,4,155,.12); }
.pg-big h3 { font-size: 22px; margin-bottom: 8px; }
.pg-big p { font-size: 16px; }

/* recovery demo card */
.rec-demo { display: flex; justify-content: center; }
.rec-demo-card { width: 100%; max-width: 330px; background: #fff; color: #150427; border-radius: 26px; padding: 18px; box-shadow: 0 0 0 10px rgba(255,255,255,.06), 0 24px 60px rgba(0,0,0,.45); display: flex; flex-direction: column; gap: 10px; animation: hRise .7s .2s cubic-bezier(.2,.8,.2,1) both; }
.rec-demo-card .rec-alert { display: flex; align-items: center; justify-content: center; gap: 8px; background: #FDECEE; color: #D93A41; font-weight: 700; font-size: 14px; border-radius: 12px; padding: 12px; }
.rec-demo-card .rec-opt { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid #ECE3F3; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.rec-demo-card .rec-opt.best { border: 1.5px solid #F9A8DC; background: #FFF0FA; }
.rec-demo-card .rec-opt b { font-variant-numeric: tabular-nums; }
.rec-demo-card .rec-go { display: block; text-align: center; background: var(--orange); color: #fff; font-weight: 700; border-radius: 999px; padding: 13px; margin-top: 4px; transition: background .2s; }
.rec-demo-card .rec-go:hover { background: #D10088; }

/* drive checks */
.pg-checks { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.pg-checks li { display: flex; gap: 14px; align-items: flex-start; }
.pg-checks i { width: 24px; height: 24px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; flex: none; margin-top: 2px; }
.pg-checks b { display: block; font-size: 15.5px; }
.pg-checks span { font-size: 13.5px; color: var(--h-muted); }

/* forms (drive, contact) */
.pg-form { background: var(--h-panel); border: 1.5px solid var(--h-border); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.pg-form h2, .pg-info h2 { margin: 0; font-size: 19px; font-weight: 700; }
.pg-form-sub { margin: -10px 0 4px; font-size: 13px; color: var(--h-muted); padding-bottom: 14px; border-bottom: 1px solid var(--h-border); }
.pg-field { display: flex; flex-direction: column; gap: 7px; }
.pg-field > span { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--h-muted); }
.pg-field input, .pg-field select, .pg-field textarea { width: 100%; background: rgba(0,0,0,.18); border: 1.5px solid var(--h-border); border-radius: 10px; padding: 12px 14px; color: var(--h-text); font-size: 14.5px; outline: none; transition: border-color .2s; resize: vertical; }
:root[data-theme="light"] .pg-field input, :root[data-theme="light"] .pg-field select, :root[data-theme="light"] .pg-field textarea { background: #FAF6FB; }
.pg-field input:focus, .pg-field select:focus, .pg-field textarea:focus { border-color: var(--orange); }
.pg-field input::placeholder, .pg-field textarea::placeholder { color: var(--h-muted); opacity: .7; }
.pg-field select option { color: #150427; }
.pg-submit { border: 0; border-radius: 10px; background: var(--orange); color: #fff; font-weight: 700; font-size: 15px; padding: 13px; cursor: pointer; transition: background .2s, transform .2s; }
.pg-submit:hover { background: #D10088; transform: translateY(-1px); }
.pg-form .muted.small:empty { display: none; }

/* contact */
.pg-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; margin-top: 32px; align-items: start; }
.pg-stack { display: flex; flex-direction: column; gap: 22px; }
.pg-info { background: var(--h-panel); border: 1.5px solid var(--h-border); border-radius: 20px; padding: 24px; }
.pg-info p { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--h-muted); }
.pg-kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; align-items: baseline; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--h-border); }
.pg-kv span { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--h-muted); }
.pg-kv a { color: var(--orange); font-weight: 700; overflow-wrap: anywhere; }
.pg-info .pg-note { font-size: 12.5px; margin-top: 12px; }

/* FAQ on the about page */
.pg-faq .faq details { background: var(--h-panel); border: 1.5px solid var(--h-border); border-radius: 16px; }
.pg-faq .faq details p { color: var(--h-muted); }

@media (max-width: 1060px) { .pg-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .pg { padding: 48px 0 64px; }
  .pg-split, .pg-contact { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .pg-grid2, .pg-grid4 { grid-template-columns: 1fr; }
  .pg-form, .pg-info { padding: 20px; }
  .pg-big .pg-card { padding: 20px; flex-direction: column; gap: 14px; }
  .pg-big .pg-card > div { border-left: 0; padding-left: 0; }
  .pg-cta { width: 100%; justify-content: center; }
}

/* =====================================================================
   Login pop-up and account drawer
   ===================================================================== */
.modal-card { border-radius: 22px; border: 1.5px solid var(--h-border); }
:root:not([data-theme="light"]) .modal-card { background: linear-gradient(160deg, #2A0A45, #18052D); }
.modal-card h3 .hl { color: var(--orange); }
#loginModal .modal-card { padding: 30px 28px 26px; max-width: 460px; }
#loginModal h3 { font-size: 28px; font-weight: 700; letter-spacing: -.5px; }
#loginModal #loginHint { font-size: 15.5px; line-height: 1.5; margin-bottom: 18px; }
#loginModal .btn-primary { padding: 15px; font-size: 17px; font-weight: 700; }
.modal-close { border-radius: 50%; }
.phone-input { border: 1.5px solid var(--h-border); border-radius: 14px; }
.phone-input > span { padding: 0 14px; font-weight: 600; color: var(--text); }
.phone-input input { padding: 14px; font-size: 16px; }

.drawer { background: var(--h-bg); }
.drawer-head { padding: 20px 20px 18px; }
.drawer-head .avatar { width: 56px; height: 56px; font-size: 22px; background: var(--orange); color: #fff; }
.drawer-user strong { font-size: 19px; }
.drawer-tabs { gap: 6px; padding: 12px 14px; }
.drawer-tabs button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; font-size: 14px; font-weight: 500; }
.drawer-tabs button.active { background: #3F1166; color: #fff; }
:root[data-theme="light"] .drawer-tabs button.active { background: #36045A; }
.drawer-body .field > span { font-size: 13.5px; color: var(--text); }
.drawer-body .field input, .drawer-body .field select, .drawer-body .field textarea, .drawer-body .form-stack > input, .drawer-body .form-stack > textarea { border-radius: 12px; border: 1.5px solid var(--h-border); padding: 12px 14px; }
:root:not([data-theme="light"]) .drawer-body .field input, :root:not([data-theme="light"]) .drawer-body .field select, :root:not([data-theme="light"]) .drawer-body .field textarea { background: #2A0E45; }
.drawer-body .field .phone-input input { border: 0; background: transparent; }
:root:not([data-theme="light"]) .drawer-body .phone-input { background: #2A0E45; }
.drawer-body .btn-primary { padding: 14px; font-size: 16px; font-weight: 700; }
.drawer-body .logout, .drawer-body .danger { padding: 14px; font-weight: 600; margin-top: 10px; }
:root:not([data-theme="light"]) .drawer-body .logout, :root:not([data-theme="light"]) .drawer-body .btn-ghost.danger { background: #33115A; }
.panel-head { margin: 4px 0 4px; font-size: 18px; font-weight: 700; }
.tab-panel .panel-head ~ .panel-head { margin-top: 24px; }
.tab-panel > .small.muted { margin-bottom: 14px; }
.panel-note { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.panel-note b { font-size: 14px; }
.panel-note p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.list-empty { border-style: solid; border-color: var(--h-border); background: var(--h-panel); border-radius: 14px; padding: 22px; }
.refer-code { border: 1.5px solid var(--h-border); }
.refer-code .btn { display: inline-flex; gap: 6px; }
.f-promise p .lt { display: inline-block; animation: hWave 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * 60ms); background: inherit; -webkit-background-clip: text; background-clip: text; }
@keyframes hWave { 0%, 60%, 100% { transform: none } 30% { transform: translateY(-5px) } }

/* old .hero rules from styles.css must not reach the new card */
.hero2 p.bk-note { color: #150427; max-width: none; font-size: 13.5px; }
.hero2 p.form-error { color: var(--red); max-width: none; font-size: 14px; }
.hero2 .booking-card p { max-width: none; }
@media (max-width: 420px) {
  .site-head .wrap { gap: 8px; }
  .h-brand { gap: 7px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand-name { font-size: 18px; }
  .head-right { gap: 7px; }
  .head-right .theme-toggle { width: 54px; }
  :root[data-theme="light"] .head-right .theme-toggle::after { transform: translateX(22px); }
  .login-btn { padding: 8px 11px; }
  .h-menu { width: 40px; height: 40px; }
}
@media (max-width: 420px) {
  .drawer-tabs { gap: 2px; padding: 10px 8px; }
  .drawer-tabs button { padding: 8px 9px; gap: 5px; font-size: 13px; }
  .drawer-tabs button svg { width: 17px; height: 17px; }
}

/* =====================================================================
   Brand gradient from the Dodo Ride icon (pink → purple)
   ===================================================================== */
:root { --brand-grad: linear-gradient(135deg, #F5009B 0%, #A100C2 60%, #5B00A8 100%); }
.btn-primary, .hero2 #bookBtn, .h-pill, .pg-submit, .rec-go, .to-top, .h-ctl, .chip.active, .mode-tab.active,
.hero2 .chip.active, .how-num, .h-checks i, .pg-checks i, .pg-feats .pg-ico, .drawer-head .avatar, .sec-bar, .step-dot {
  background-image: var(--brand-grad); background-color: #C1009E; }
.btn-primary:hover, .hero2 #bookBtn:hover, .h-pill:hover, .pg-submit:hover, .rec-go:hover { background-image: var(--brand-grad); filter: brightness(1.1) saturate(1.05); }
.h-marquee { background: var(--brand-grad); color: #fff; }
.h-marquee i { background: #fff; }
.h-progress { background: linear-gradient(90deg, #F5009B, #A100C2); }
.brand-name span, .f-logo span { background: linear-gradient(90deg, #FF3DB4, #C04BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-btn { color: #36045A; }
:root[data-theme="light"] .login-btn { background: var(--brand-grad); color: #fff; }
.f-social a:hover { background: var(--brand-grad); color: #fff; }
.f-promise p span { background: linear-gradient(90deg, #F5009B, #FF8FD6, #C04BFF, #F5009B); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; }
.to-top { color: #fff; }

/* the old website rule ".hero p" (light text for the old purple hero) must not reach
   text inside the white booking card: live ride, scheduled and finished screens */
.hero.hero2 p { color: inherit; font-size: inherit; max-width: none; }
.hero2 .booking-card p.muted, .hero2 .booking-card .muted, .hero2 .booking-card .status-sub { color: var(--muted); }
.hero2 .booking-card p.small { font-size: .85rem; }
.hero2 .booking-card .status-title { color: #150427; }
.hero2 p.form-error { color: var(--red); font-size: 14px; }
.hero2 p.bk-note { font-size: 13.5px; }

/* footer: QR code to the Dodo Ride page on Google Play */
.f-qr { display: flex; align-items: center; gap: 14px; margin-top: 8px; color: #E9DCEC; font-size: 14px; line-height: 1.45; }
.f-qr img { width: 96px; height: 96px; flex: none; background: #fff; padding: 6px; border-radius: 14px; box-shadow: 0 10px 24px rgba(0,0,0,.35); transition: transform .2s; }
.f-qr:hover img { transform: scale(1.04); }
.f-qr b { color: #fff; }

/* QR code to the Dodo Captain app on Google Play (website only, hidden inside the app) */
.cap-qr { display: flex; align-items: center; gap: 14px; margin-top: 22px; color: inherit; font-size: 14px; line-height: 1.45; text-decoration: none; }
.cap-qr img { width: 96px; height: 96px; flex: none; background: #fff; padding: 6px; border-radius: 14px; box-shadow: 0 10px 24px rgba(0,0,0,.35); transition: transform .2s; }
.cap-qr:hover img { transform: scale(1.04); }
.cap-qr span { opacity: .9; } .cap-qr b { opacity: 1; }
html.app-mode .cap-qr { display: none !important; }
