/* Driver Transport App marketing site
   Brand: deep navy + sky blue, warm orange accent.
   Static-only — no build step. */

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-muted: #475569;
  --ink-soft: #64748b;
  --primary: #1e3a5f;
  --primary-hover: #142a45;
  --tint: #2563eb;
  --tint-soft: #dbeafe;
  --accent: #f97316;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --success: #10b981;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);
  --radius: 14px;
  --radius-lg: 24px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--tint); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 14.5px;
}

.nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--primary-hover);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: #fff;
  text-decoration: none;
  border-color: var(--ink-muted);
}

.btn-lg { padding: 14px 24px; font-size: 15.5px; border-radius: 14px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 700px at 75% -10%, #2a4d7d 0%, #1e3a5f 35%, #0f1f37 75%, #0a1426 100%);
  color: #f1f5fb;
  padding: 80px 0 110px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 260px at 12% 110%, rgba(96,165,250,0.18), transparent 70%),
    radial-gradient(360px 200px at 92% 30%, rgba(249,115,22,0.14), transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.16);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.3);
  margin-bottom: 22px;
}

.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 8px #60a5fa;
}

.hero h1 {
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero h1 .accent {
  background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 50%, #f9a87a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 18px;
  line-height: 1.55;
  color: #cbd5e1;
  margin: 0 0 32px;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-ctas .btn-primary {
  background: #fff;
  color: var(--primary);
}
.hero-ctas .btn-primary:hover {
  background: #f1f5fb;
}

/* Animated rotating glow ring — used on the hero "Download on App Store" CTA only */
@property --btn-glow-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.btn-glow {
  position: relative;
  z-index: 0;
  isolation: isolate;
}
/* Solid glowing ring that traces the full rounded outline of the button.
   Fades in, holds, fades out, gap, repeats. No rotation, no trail. */
.btn-glow::before,
.btn-glow::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 2px solid #ffffff;
  pointer-events: none;
  z-index: -1;
  animation: btn-glow-ring 4.5s ease-in-out infinite;
}
/* Soft outer bloom — same ring, larger and blurred. */
.btn-glow::after {
  inset: -6px;
  border-width: 3px;
  border-color: rgba(255, 225, 140, 0.9);
  filter: blur(7px);
  animation: btn-glow-ring-soft 4.5s ease-in-out infinite;
}
@keyframes btn-glow-ring {
  0%, 70%, 100% { opacity: 0; }
  15%, 55%      { opacity: 1; }
}
@keyframes btn-glow-ring-soft {
  0%, 70%, 100% { opacity: 0; }
  15%, 55%      { opacity: 0.9; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-glow::before,
  .btn-glow::after { animation: none; opacity: 0; }
}

.hero-ctas .btn-ghost {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
  color: #fff;
}
.hero-ctas .btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.4);
}

.trust-row {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: #94a3b8;
}

.trust-row .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #d6dfee;
  font-weight: 500;
}

.pill svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Phone mockup */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1500px;
}

.phone {
  width: 290px;
  aspect-ratio: 9 / 19.5;
  border-radius: 42px;
  background: #0a1020;
  padding: 10px;
  box-shadow:
    0 0 0 2px #1e293b,
    0 40px 80px rgba(0,0,0,0.55),
    0 8px 24px rgba(0,0,0,0.45);
  transform: rotate(-3deg);
  transition: transform 0.4s ease;
}

.phone:hover { transform: rotate(0deg) translateY(-4px); }

.phone .screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #0f172a;
  position: relative;
}

.phone .notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #0a1020;
  border-radius: 14px;
  z-index: 2;
}

.phone .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-secondary {
  position: absolute;
  width: 220px;
  aspect-ratio: 9 / 19.5;
  border-radius: 34px;
  background: #0a1020;
  padding: 8px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  bottom: -24px;
  left: -40px;
  transform: rotate(-12deg);
  z-index: -1;
  opacity: 0.85;
}
.phone-secondary .screen {
  width: 100%; height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: #0f172a;
}
.phone-secondary .screen img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ---------- Generic section ---------- */

.section {
  padding: 100px 0;
}
.section-tight {
  padding: 70px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head .eyebrow {
  background: var(--tint-soft);
  color: var(--tint);
  border-color: rgba(37, 99, 235, 0.2);
}
.section-head .eyebrow .dot { background: var(--tint); box-shadow: 0 0 6px rgba(37,99,235,0.5); }

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  font-weight: 800;
  color: var(--ink);
}

.section-head p {
  font-size: 17px;
  color: var(--ink-muted);
  margin: 0;
}

/* ---------- Features grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.feature .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature .icon svg { width: 24px; height: 24px; }

.feature h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}

.feature p {
  font-size: 14.5px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.55;
}

/* ---------- Showcase / screenshots ---------- */

.showcase {
  background: linear-gradient(180deg, #0a1426 0%, #0f1f37 100%);
  color: #f1f5fb;
}

.showcase .section-head h2 { color: #fff; }
.showcase .section-head p { color: #cbd5e1; }
.showcase .section-head .eyebrow {
  background: rgba(96, 165, 250, 0.16);
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.3);
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.shot {
  background: #0a1020;
  border-radius: 28px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  transition: transform 0.25s ease;
}
.shot:hover { transform: translateY(-4px); }
.shot img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  display: block;
}
.shot .label {
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  padding: 10px 0 6px;
  font-weight: 500;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.step .num {
  position: absolute;
  top: -18px;
  left: 28px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  box-shadow: var(--shadow-md);
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 14px 0 8px;
  color: var(--ink);
}
.step p {
  font-size: 14.5px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.55;
}

/* ---------- Privacy callout ---------- */

.privacy-callout {
  background: linear-gradient(135deg, #1e3a5f 0%, #2a4d7d 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.privacy-callout::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 100% 0%, rgba(96,165,250,0.25), transparent 70%);
  pointer-events: none;
}

.privacy-callout h2 {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.privacy-callout p {
  font-size: 15.5px;
  color: #cbd5e1;
  margin: 0 0 20px;
  max-width: 540px;
  line-height: 1.6;
}

.privacy-callout .actions {
  display: flex; gap: 12px; flex-wrap: wrap;
}

.privacy-callout .btn-primary {
  background: #fff;
  color: var(--primary);
}
.privacy-callout .btn-primary:hover { background: #f1f5fb; }
.privacy-callout .btn-ghost {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.privacy-callout .btn-ghost:hover { background: rgba(255,255,255,0.1); }

.privacy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.privacy-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: #e2e8f0;
}

.privacy-list .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(96,165,250,0.2);
  color: #93c5fd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  transition: border-color 0.2s ease;
}
.faq details[open] {
  border-color: var(--border-strong);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-soft);
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq details[open] summary::after { content: '−'; }

.faq p {
  margin: 14px 0 0;
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ---------- CTA strip ---------- */

.cta-strip {
  text-align: center;
  background: var(--primary);
  color: #fff;
  padding: 70px 24px;
  border-radius: var(--radius-lg);
}

.cta-strip h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.cta-strip p {
  font-size: 16px;
  color: #cbd5e1;
  margin: 0 0 24px;
}

.cta-strip .btn-primary {
  background: #fff;
  color: var(--primary);
}
.cta-strip .btn-primary:hover { background: #f1f5fb; }

/* ---------- Footer ---------- */

.site-footer {
  background: #0a1426;
  color: #94a3b8;
  padding: 48px 0 30px;
  font-size: 14px;
}

.site-footer .inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.site-footer .brand {
  color: #fff;
}
.site-footer .brand-blurb {
  margin-top: 12px;
  color: #94a3b8;
  max-width: 380px;
  line-height: 1.55;
}

.site-footer h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  font-weight: 600;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: #cbd5e1;
}
.site-footer a:hover { color: #fff; text-decoration: none; }

.site-footer .legal-row {
  margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #64748b;
}

/* ---------- Legal pages (privacy / terms) ---------- */

.legal-hero {
  background: linear-gradient(180deg, #1e3a5f 0%, #142a45 100%);
  color: #fff;
  padding: 70px 0 60px;
}

.legal-hero .eyebrow {
  background: rgba(96,165,250,0.18);
  color: #93c5fd;
  border-color: rgba(96,165,250,0.3);
}

.legal-hero h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin: 16px 0 10px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.legal-hero p {
  color: #cbd5e1;
  margin: 0;
  font-size: 15.5px;
}

.legal-body {
  padding: 60px 0 100px;
  background: #fff;
}

.legal-body .container {
  max-width: 820px;
}

.legal-body h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.legal-body h2:first-of-type { margin-top: 0; }

.legal-body p,
.legal-body li {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-muted);
}

.legal-body ul {
  padding-left: 22px;
  margin: 12px 0 16px;
}

.legal-body li { margin-bottom: 6px; }

.legal-body strong { color: var(--ink); font-weight: 600; }

.legal-body .toc {
  background: #f5f7fb;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 40px;
}
.legal-body .toc h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin: 0 0 12px;
  font-weight: 600;
}
.legal-body .toc ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 5px;
  font-size: 14.5px;
}
.legal-body .toc a { color: var(--primary); font-weight: 500; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero { padding: 60px 0 90px; }
  .hero .container {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .trust-row { justify-content: center; }
  .phone-stage { margin-top: 12px; }
  .phone-secondary { display: none; }
  .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .shot-row { grid-template-columns: repeat(2, 1fr); }
  .privacy-callout { grid-template-columns: 1fr; padding: 36px; }
  .site-footer .inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .nav { display: none; }
  .section { padding: 70px 0; }
  .features, .steps { grid-template-columns: 1fr; }
  .shot-row { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .phone { width: 240px; }
  .container { padding: 0 18px; }
  .privacy-callout { padding: 28px; }
  .hero { padding: 50px 0 70px; }
}
