/* iDriveExpress — Marketing site
   Design system: green + gold, modern, mobile-first */
:root {
  --primary: #008938;
  --primary-dark: #006B2B;
  --primary-deep: #003D18;
  --primary-tint: #E8F5EE;
  --secondary: #FFC107;
  --secondary-dark: #F9A825;
  --dark: #071A0E;
  --text: #0F1F16;
  --text-mute: #5B6E63;
  --border: #E2E8E4;
  --bg: #ffffff;
  --bg-alt: #F7FAF8;
  --danger: #DC2626;
  --success: #22C55E;
  --shadow: 0 4px 20px rgba(0, 61, 24, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 61, 24, 0.12);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --max-width: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; }

.wrap { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---- NAV ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: var(--max-width); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; letter-spacing: -0.5px; }
.brand-logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.brand span.g { color: var(--primary); }
.brand span.y { color: var(--secondary-dark); }
.nav-links { display: none; gap: 32px; }
.nav-links a { font-weight: 600; font-size: 14px; color: var(--text-mute); transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,137,56,0.3); }
.mobile-toggle { display: block; padding: 8px; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .mobile-toggle { display: none; }
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(7, 26, 14, 0.6); backdrop-filter: blur(4px);
  display: none; align-items: flex-start; justify-content: flex-end;
}
.drawer.open { display: flex; }
.drawer-inner {
  background: #fff; width: 280px; height: 100%;
  padding: 24px; display: flex; flex-direction: column; gap: 20px;
  animation: slideIn 0.25s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer a { padding: 10px 0; font-weight: 700; }

/* ---- HERO ---- */
.hero {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, var(--primary-deep) 0%, #002A11 100%);
  color: #fff;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,193,7,0.15), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,193,7,0.15); color: var(--secondary);
  padding: 8px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 900; letter-spacing: 1.2px;
}
.hero h1 {
  font-size: 44px; font-weight: 900; line-height: 1.05; letter-spacing: -1.5px;
  margin: 20px 0 16px;
}
.hero h1 .accent { color: var(--secondary); }
.hero p.lead {
  font-size: 17px; color: #A8C9B3; max-width: 560px; line-height: 1.55;
}
.hero-cta-row {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 14px;
  font-weight: 800; font-size: 14px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.btn-primary { background: var(--secondary); color: var(--primary-deep); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,193,7,0.4); }
.btn-outline {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-green { background: var(--primary); color: #fff; }
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,137,56,0.35); background: var(--primary-dark); }

.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 32px; margin-top: 48px; max-width: 500px; }
.hero-stat .n { font-size: 26px; font-weight: 900; color: #fff; }
.hero-stat .l { font-size: 12px; color: #A8C9B3; font-weight: 600; margin-top: 2px; }

/* Phone mockup */
.phone {
  width: 280px; height: 560px; margin: 0 auto;
  background: #0A1A10; border-radius: 44px;
  padding: 8px; box-shadow: 0 40px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,193,7,0.2);
  position: relative;
}
.phone-notch {
  width: 100px; height: 26px; background: #000;
  border-radius: 0 0 14px 14px; margin: 0 auto;
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.phone-screen {
  background: var(--bg-alt); border-radius: 36px;
  height: 100%; padding: 40px 18px 18px; overflow: hidden;
}
.phone-hi { font-size: 12px; color: var(--text-mute); font-weight: 700; }
.phone-title { font-size: 18px; font-weight: 900; color: var(--text); margin-top: 4px; }
.phone-card {
  background: #fff; border-radius: 16px; padding: 14px; margin-top: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05); border: 1px solid var(--border);
}
.phone-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.phone-dot { width: 10px; height: 10px; border-radius: 5px; background: var(--primary); flex-shrink: 0; }
.phone-dot.gold { background: var(--secondary); }
.phone-label { font-size: 9px; letter-spacing: 1.2px; color: var(--text-mute); font-weight: 800; }
.phone-value { font-size: 13px; font-weight: 700; color: var(--text); }
.phone-driver {
  margin-top: 12px; padding: 14px; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; gap: 10px;
}
.phone-avatar {
  width: 40px; height: 40px; border-radius: 20px; background: var(--primary-deep);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900;
}
.phone-drv-name { color: #fff; font-size: 13px; font-weight: 800; }
.phone-drv-meta { color: #A8C9B3; font-size: 10px; margin-top: 2px; }
.phone-live {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 999px;
  background: rgba(255,255,255,0.2); font-size: 8px; font-weight: 900; color: #fff; letter-spacing: 0.5px;
}
.phone-live::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: #22C55E; }

@media (min-width: 900px) {
  .hero { padding: 80px 0 120px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 60px; }
  .hero h1 { font-size: 60px; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
}

/* ---- SECTIONS ---- */
.section { padding: 80px 0; }
.section.tinted { background: var(--bg-alt); }
.eyebrow {
  display: block; text-align: center;
  font-size: 12px; font-weight: 900; letter-spacing: 1.5px; color: var(--primary);
  margin-bottom: 12px;
}
h2 {
  font-size: 34px; font-weight: 900; text-align: center;
  letter-spacing: -1px; color: var(--text); line-height: 1.15;
}
h2 .accent { color: var(--primary); }
.subtitle { text-align: center; color: var(--text-mute); font-size: 16px; margin-top: 12px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Cards grid */
.grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 48px; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: #fff; padding: 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-tint); color: var(--primary); margin-bottom: 20px;
}
.card-icon.gold { background: rgba(255,193,7,0.12); color: var(--secondary-dark); }
.card-icon.purple { background: rgba(124,58,237,0.1); color: #7C3AED; }
.card h3 { font-size: 20px; font-weight: 900; letter-spacing: -0.3px; margin-bottom: 8px; }
.card p { color: var(--text-mute); font-size: 14px; line-height: 1.6; }
.card .price { font-size: 34px; font-weight: 900; letter-spacing: -1px; margin: 12px 0 4px; }
.card .price small { font-size: 15px; font-weight: 600; color: var(--text-mute); }
.card-popular { border: 2px solid var(--secondary); position: relative; }
.card-popular::before {
  content: "MOST POPULAR"; position: absolute; top: -12px; right: 20px;
  background: var(--secondary); color: var(--text);
  padding: 4px 10px; border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: 0.8px;
}
.card-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; padding: 10px 14px;
  background: var(--bg-alt); border-radius: 10px;
  color: var(--primary); font-weight: 800; font-size: 13px;
}

/* Steps */
.step-num {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-size: 20px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* Coverage */
.cover-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 40px;
}
@media (min-width: 700px) { .cover-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .cover-grid { grid-template-columns: repeat(6, 1fr); } }
.cover-card {
  background: #fff; padding: 18px 14px; border-radius: var(--radius);
  border: 1px solid var(--border); text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.cover-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.cover-icon { color: var(--primary); margin-bottom: 8px; display: flex; justify-content: center; }
.cover-name { font-size: 14px; font-weight: 900; }
.cover-meta { font-size: 10px; color: var(--text-mute); font-weight: 700; letter-spacing: 0.3px; margin-top: 2px; }

/* Testimonials */
.test-card { background: #fff; }
.test-stars { display: flex; gap: 2px; color: var(--secondary-dark); margin-bottom: 14px; }
.test-quote { font-size: 15px; color: var(--text); font-weight: 500; line-height: 1.6; min-height: 100px; }
.test-author { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.test-avatar {
  width: 44px; height: 44px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 900;
}
.test-name { font-size: 14px; font-weight: 800; }
.test-role { font-size: 12px; color: var(--text-mute); font-weight: 600; margin-top: 2px; }

/* Driver CTA */
.driver-cta {
  background: linear-gradient(135deg, var(--primary-deep), #002A11);
  color: #fff; padding: 80px 0; position: relative; overflow: hidden;
}
.driver-cta::after {
  content: ""; position: absolute; bottom: -100px; left: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,137,56,0.25), transparent 70%);
  pointer-events: none;
}
.driver-cta-grid { display: grid; grid-template-columns: 1fr; gap: 40px; position: relative; }
@media (min-width: 900px) { .driver-cta-grid { grid-template-columns: 1.2fr 1fr; } }
.driver-badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,193,7,0.15); color: var(--secondary);
  font-size: 10px; font-weight: 900; letter-spacing: 1.2px;
}
.driver-cta h2 { text-align: left; color: #fff; font-size: 34px; margin: 16px 0 12px; }
.driver-cta p.lead { color: #A8C9B3; font-size: 15px; max-width: 500px; }
.driver-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.driver-stats .n { font-size: 26px; font-weight: 900; color: var(--secondary); }
.driver-stats .l { font-size: 12px; color: #A8C9B3; margin-top: 4px; }

/* FAQ */
.faq-list { margin-top: 40px; max-width: 780px; margin-left: auto; margin-right: auto; display: grid; gap: 12px; }
.faq-item {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--border);
  padding: 20px 22px; cursor: pointer; transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--primary); }
.faq-item summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; font-weight: 800; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chev { transition: transform 0.2s; color: var(--text-mute); }
.faq-item[open] .chev { transform: rotate(180deg); color: var(--primary); }
.faq-body { margin-top: 12px; color: var(--text-mute); font-size: 14px; line-height: 1.7; }

/* App badges */
.app-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.app-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--text); color: #fff;
  padding: 12px 22px; border-radius: 14px;
  min-width: 200px;
}
.app-badge .small { font-size: 11px; opacity: 0.7; }
.app-badge .big { font-size: 16px; font-weight: 900; margin-top: 2px; }

/* Footer */
.footer { background: var(--dark); color: #A8C9B3; padding: 60px 0 30px; }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); } }
.footer-tag { font-size: 13px; margin-top: 14px; line-height: 1.6; max-width: 280px; color: #8FA396; }
.footer h4 { color: #fff; font-size: 12px; font-weight: 900; letter-spacing: 1px; margin-bottom: 14px; }
.footer a { display: block; padding: 4px 0; font-size: 13px; color: #A8C9B3; }
.footer a:hover { color: var(--secondary); }
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  font-size: 12px; color: #6B8073;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a { padding: 6px; }

/* Utility */
.center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

/* ---- LEGAL PAGES ---- */
.legal-hero {
  background: linear-gradient(180deg, var(--primary-deep) 0%, #002A11 100%);
  color: #fff; padding: 80px 0 60px;
}
.legal-hero h1 {
  font-size: 40px; font-weight: 900; letter-spacing: -1px; color: #fff;
}
.legal-hero p { color: #A8C9B3; margin-top: 12px; font-size: 15px; }
.legal-body { padding: 60px 0 100px; max-width: 780px; margin: 0 auto; }
.legal-body h2 { text-align: left; font-size: 22px; margin: 36px 0 12px; letter-spacing: -0.5px; }
.legal-body h3 { font-size: 17px; margin: 24px 0 8px; font-weight: 800; }
.legal-body p, .legal-body li {
  color: var(--text); font-size: 15px; line-height: 1.75; margin-bottom: 10px;
}
.legal-body ul, .legal-body ol { padding-left: 20px; margin-bottom: 16px; }
.legal-body strong { color: var(--primary-dark); }
.legal-body a { color: var(--primary); font-weight: 700; }
.legal-body a:hover { text-decoration: underline; }
.toc {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 36px;
}
.toc h4 { font-size: 12px; letter-spacing: 1px; color: var(--primary); margin-bottom: 10px; font-weight: 900; }
.toc a { display: block; padding: 4px 0; font-size: 14px; color: var(--text); font-weight: 600; }
.toc a:hover { color: var(--primary); text-decoration: none; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card {
  display: flex; gap: 16px; padding: 20px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--border); align-items: center;
  transition: transform 0.15s;
}
.contact-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--primary-tint);
  color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-card .l { font-size: 12px; color: var(--text-mute); font-weight: 700; letter-spacing: 0.3px; }
.contact-card .v { font-size: 15px; font-weight: 800; margin-top: 2px; }

form { display: grid; gap: 14px; }
label { font-size: 13px; font-weight: 700; color: var(--text); }
input, textarea, select {
  font: inherit; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,137,56,0.15);
}
textarea { resize: vertical; min-height: 100px; }
