:root {
  --primary: #7b0000;
  --secondary: #b30000;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --bg-soft: #faf7f7;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 24px 70px rgba(123, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;            /* guard against any stray horizontal scroll */
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; overflow-wrap: break-word; }

img { display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed; inset: 0 0 auto 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  background: rgba(20, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff; z-index: 1000;
  transition: background .3s ease;
}
.navbar.scrolled { background: rgba(80, 0, 0, 0.92); }

.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 1.25rem;
  color: #fff; text-decoration: none;
}
.logo img { border-radius: 6px; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: #fff; text-decoration: none; font-weight: 400;
  font-size: .95rem; opacity: .9; transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: #fff; color: var(--primary) !important;
  padding: 9px 18px; border-radius: 999px; font-weight: 600 !important;
  opacity: 1 !important;
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; padding: 120px 32px 60px;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(179, 0, 0, .55), transparent 60%),
    linear-gradient(125deg, #4d0000 0%, var(--primary) 45%, #2a0000 100%);
}

.hero-inner {
  position: relative; z-index: 3;
  width: 100%; max-width: 1150px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px;
  align-items: center;
}
.hero-copy { color: #fff; }
.eyebrow {
  display: inline-block; text-transform: uppercase;
  letter-spacing: 2px; font-size: .78rem; font-weight: 600;
  opacity: .85; margin-bottom: 14px;
}
.eyebrow-dark { color: var(--primary); opacity: 1; }
.hero-copy h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; }
.hero-copy p { font-size: 1.1rem; max-width: 460px; opacity: .92; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-badges {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px;
  padding: 0; margin: 26px 0 0; color: #fff; font-size: .9rem; opacity: .92;
}
.hero-badges li { white-space: nowrap; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block; padding: 13px 26px;
  border: none; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 1rem; font-weight: 600;
  text-decoration: none; text-align: center; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 30px rgba(123, 0, 0, .35); }
.btn-primary:hover { background: var(--secondary); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.btn-light { background: #fff; color: var(--primary); }
.btn-block { display: block; width: 100%; }

/* ---------- BOOKING — mirrors the real VayGo passenger app ----------
   Real app: full-page map, dark-maroon theme (#650015 / #3b0a18 / #1a050b),
   floating header, bottom vehicle-select sheet with horizontal ride cards. */
.phone {
  --app-maroon: #650015;          /* in-app brand maroon (deeper than the site red) */
  --app-dark: #3b0a18;
  --app-darker: #1a050b;
  position: relative;
  width: 320px; max-width: 100%; margin: 0 auto;
  aspect-ratio: 320 / 660;        /* real phone proportions, not content-height */
  background: #0c0c0e; border-radius: 46px; padding: 11px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 2px rgba(255, 255, 255, .06);
}
.phone-notch {
  position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
  width: 116px; height: 22px; background: #0c0c0e; border-radius: 0 0 16px 16px; z-index: 6;
}
.phone-screen {
  position: relative; height: 100%;
  background: var(--app-darker); border-radius: 36px; overflow: hidden;
}

/* full-page map behind everything (the app renders Leaflet here) */
.app-map {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(101, 0, 21, .05), rgba(101, 0, 21, .05)),
    repeating-linear-gradient(0deg, #e7ebf0 0 24px, #eef1f5 24px 48px),
    repeating-linear-gradient(90deg, #e7ebf0 0 24px, #eef1f5 24px 48px);
}
.map-pin {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.map-pin-a { top: 90px; left: 60px; background: #4caf50; }
.map-pin-b {
  top: 150px; right: 56px; width: auto; height: auto; border: none; box-shadow: none;
  font-size: 1.5rem;
}
.map-route {
  position: absolute; top: 100px; left: 68px; width: 168px; height: 58px;
  border-left: 3px dashed var(--app-maroon); border-bottom: 3px dashed var(--app-maroon);
  border-bottom-left-radius: 30px; opacity: .55;
}

/* floating header over the map: menu · logo · title */
.app-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 4;
  display: flex; align-items: center; gap: 10px;
  padding: 22px 16px 24px;
  background: linear-gradient(180deg, rgba(26, 5, 11, .85), rgba(26, 5, 11, 0));
}
.app-menu-btn {
  width: 34px; height: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .15); color: #fff;
  border-radius: 10px; font-size: 1.1rem;
}
.app-header-logo { color: #fff; font-weight: 700; font-size: 1rem; }
.app-header-title { color: #fff; font-weight: 600; font-size: .95rem; }

/* bottom vehicle-select sheet */
.app-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  background: #fff; border-radius: 24px 24px 36px 36px;
  padding: 8px 18px 18px;
}
.sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: #ddd; margin: 0 auto 12px; }

/* pickup / drop rows */
.app-addr-row {
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid #eee; padding: 2px 0;
}
.app-addr-row:nth-of-type(2) { border-bottom: none; margin-bottom: 6px; }
.app-addr-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.app-addr-dot.pickup { background: #4caf50; }
.app-addr-dot.drop { background: var(--app-maroon); }
.app-addr-input {
  border: none; background: transparent; width: 100%;
  font-family: inherit; font-size: .9rem; color: var(--app-darker); padding: 8px 0;
}
.app-addr-input::placeholder { color: #9aa0a8; }
.app-addr-input:focus { outline: none; }

/* category label */
.app-cat-label {
  font-size: .68rem; font-weight: 700; color: var(--app-maroon);
  text-transform: uppercase; letter-spacing: .8px; margin: 6px 0 6px;
}

/* horizontal scrollable ride cards, exactly like the app */
.app-vehicles {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none;
}
.app-vehicles::-webkit-scrollbar { display: none; }
.app-vehicle {
  flex: 0 0 auto; width: 96px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  border: 2px solid #eee; border-radius: 14px; padding: 8px 6px;
  background: #fff; cursor: pointer; font-family: inherit;
  transition: border-color .2s, background .2s;
}
.app-veh-icon { font-size: 1.4rem; line-height: 1.2; }
.app-veh-name { font-size: .72rem; font-weight: 700; color: var(--app-darker); margin-top: 2px; }
.app-veh-fare { font-size: .8rem; font-weight: 800; color: var(--app-maroon); margin-top: 2px; }
.app-veh-sub { font-size: .58rem; color: #b0899a; margin-top: 1px; }
.app-veh-nearby { font-size: .6rem; color: #999; margin-top: 2px; white-space: nowrap; }
.app-vehicle.is-active { border-color: var(--app-maroon); background: rgba(101, 0, 21, .06); }

/* pickup-charge note (matches the app's .pickup-note) */
.app-pickup-note {
  font-size: .62rem; line-height: 1.4; color: #8a7d80;
  background: rgba(101, 0, 21, .05); border-radius: 10px;
  padding: 8px 10px; margin: 10px 0 10px;
}

/* book button: the app's maroon gradient */
.app-book-btn {
  width: 100%; border: none; border-radius: 14px;
  background: linear-gradient(135deg, var(--app-maroon), var(--app-dark));
  color: #fff; font-family: inherit; font-size: .9rem; font-weight: 700;
  padding: 13px; cursor: pointer;
}

/* ---------- SECTIONS ---------- */
.section { padding: 90px 24px; text-align: center; }
.section > h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 14px; }
.section-lede { max-width: 640px; margin: 0 auto 46px; color: var(--muted); font-size: 1.08rem; }

/* ---------- TRUST STRIP ---------- */
.trust { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; padding: 34px 24px; }
.trust-inner {
  max-width: 1000px; margin: 0 auto; display: flex; flex-wrap: wrap;
  justify-content: space-around; gap: 24px; text-align: center;
}
.stat { display: flex; flex-direction: column; }
.stat b { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.stat span { font-size: .9rem; opacity: .9; margin-top: 6px; }

/* ---------- FEATURE GRID (riders / drivers) ---------- */
.riders { background: #fff; }
.drivers { background: var(--bg-soft); }
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  max-width: 1050px; margin: 0 auto; text-align: left;
}
.feature {
  padding: 30px 26px; border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
}
.drivers .feature { background: linear-gradient(150deg, #fff, #f6f2f2); }
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 54px; height: 54px; border-radius: 14px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
  background: #fff0f0;
}
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- HOW IT WORKS ---------- */
.how { background: #fff; }
.steps { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; max-width: 1000px; margin: 0 auto; }
.step { width: 280px; text-align: center; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-size: 1.4rem; font-weight: 700; margin-bottom: 16px;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); margin: 0; }

/* ---------- PRICING (per-vehicle plans) ---------- */
.pricing { background: var(--bg-soft); }
.plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  max-width: 1000px; margin: 0 auto; align-items: stretch;
}
.plan {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #eee; border-radius: 22px;
  padding: 34px 28px 30px; text-align: center; box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.plan:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.plan-icon { font-size: 2.4rem; margin-bottom: 8px; }
.plan h3 { font-size: 1.3rem; margin-bottom: 6px; }

/* Featured (Auto) card — filled maroon */
.plan-featured {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; border: none; transform: scale(1.03);
}
.plan-featured:hover { transform: scale(1.03) translateY(-8px); }
.ribbon {
  position: absolute; top: 16px; right: -6px;
  background: #fff; color: var(--primary); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; padding: 5px 12px;
  border-radius: 6px 0 0 6px; box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}

.price { font-size: 1rem; opacity: .85; margin: 4px 0 10px; }
.price span { font-size: 2.6rem; font-weight: 800; opacity: 1; }
/* Struck "was" price sits smaller before the live/offer price. Empty when no offer. */
.price .price-old {
  font-size: 1.3rem; font-weight: 600; opacity: .6;
  text-decoration: line-through; margin-right: 10px;
}
.price .price-old:empty { display: none; }

.free-badge {
  display: inline-block; margin: 0 auto 18px;
  background: #e9f9ee; color: #1a7f37; font-weight: 700; font-size: .82rem;
  padding: 6px 14px; border-radius: 999px;
}
.plan-featured .free-badge { background: rgba(255, 255, 255, .95); color: var(--primary); }

.perks { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; flex-grow: 1; }
.perks li { padding: 8px 0; font-size: .92rem; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.plan-featured .perks li { border-bottom-color: rgba(255, 255, 255, .2); }
.perks li::before { content: "✔"; margin-right: 10px; font-weight: 700; color: var(--primary); }
.plan-featured .perks li::before { color: #fff; }

.price-fine { text-align: center; margin: 34px auto 0; max-width: 640px; font-size: .85rem; color: var(--muted); }

/* ---------- CTA BANNER ---------- */
.cta-banner {
  padding: 70px 24px; text-align: center; color: #fff;
  background: linear-gradient(135deg, #4d0000, var(--primary));
}
.cta-banner h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.cta-banner p { opacity: .9; margin: 0 0 26px; }
.cta-actions { justify-content: center; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .7); }
.btn-outline:hover { background: rgba(255, 255, 255, .12); }

/* ---------- FOOTER ---------- */
.footer { background: #111; color: #aaa; padding: 20px 24px 16px; text-align: center; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; max-width: 1000px; margin: 0 auto 12px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 1.15rem; }
.footer-brand img { border-radius: 6px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: #bbb; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.copyright { margin: 0; font-size: .85rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-badges { justify-content: center; }
  .phone { margin: 0 auto; }
}

@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; max-width: 420px; }
  .plan-featured, .plan-featured:hover { transform: none; }
  .plan-featured:hover { transform: translateY(-8px); }
}

@media (max-width: 620px) {
  .feature-grid { grid-template-columns: 1fr; }
  .stat b { font-size: 1.8rem; }

  /* Tighter section padding + comfortable tap targets on phones */
  .section { padding: 60px 18px; }
  .hero { padding: 96px 18px 48px; }
  .hero-actions .btn { width: 100%; }         /* full-width CTAs, easy to tap */
  .feature { padding: 24px 20px; }
  .trust-inner { gap: 18px 24px; }
}

/* On real phones the phone-mockup would otherwise dwarf the copy — cap it and
   keep the exact app proportions (aspect-ratio does the height for us). */
@media (max-width: 480px) {
  .phone { width: 280px; padding: 10px; }
  .hero-copy h1 { font-size: clamp(1.9rem, 7.4vw, 2.5rem); }
  .hero-br { display: none; }            /* let the headline wrap naturally */
  .cta-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 720px) {
  .navbar { padding: 14px 20px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 62px 0 auto 0;
    flex-direction: column; gap: 0; padding: 8px 0;
    background: rgba(80, 0, 0, .98);
    transform: translateY(-140%); transition: transform .3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 24px; width: 100%; }
  .nav-cta { margin: 8px 24px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .feature:hover, .plan:hover { transform: none; }
}
