/* ==========================================================================
   TrustedPump marketing site — shared styles
   Plain CSS, no build step. Design system mirrors the mobile app.
   ========================================================================== */

:root {
  /* Brand: deep navy = trust, safety, protection (the "trusted garage" feel) */
  --brand: #1B3A5B;
  --brand-deep: #12243B;
  --brand-soft: #EAF1F8;
  /* Accent: warm amber = fuel & energy. Used for CTAs and highlights. */
  --accent: #E0891F;
  --accent-deep: #C6761A;
  --accent-soft: #FBEDD6;
  /* Verified: stays green — green universally means "pass / safe". Badge only. */
  --verified: #15803D;
  --verified-bg: #DCFCE7;
  /* Re-check / stale warning */
  --stale: #B45309;
  --stale-bg: #FEF3C7;

  /* Neutrals (subtle cool/navy tint) */
  --ink: #0F1D2E;
  --body: #46566A;
  --muted: #6D7C8C;
  --line: #E3E9F0;
  --surface: #FFFFFF;
  --surface-2: #F4F7FB;
  --bg: #FFFFFF;

  /* Shape & motion */
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 29, 46, 0.05), 0 1px 3px rgba(15, 29, 46, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(15, 29, 46, 0.20);
  --shadow-lg: 0 30px 60px -20px rgba(18, 36, 59, 0.32);
  --content: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #5FA0E0;          /* brighter azure so navy reads on dark */
    --brand-deep: #3E7CBC;
    --brand-soft: #14243A;
    --accent: #F0A83A;
    --accent-deep: #E0952A;
    --accent-soft: #2A1E0C;
    --verified: #4ADE80;
    --verified-bg: #10331F;
    --stale: #FBBF24;
    --stale-bg: #3A2A08;

    --ink: #EAF1F8;
    --body: #AEBCCB;
    --muted: #7E8D9D;
    --line: #22303F;
    --surface: #13212F;
    --surface-2: #0C1826;
    --bg: #0A1420;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  }
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

p { text-wrap: pretty; }

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section { padding-block: clamp(64px, 9vw, 120px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 16px; color: var(--body); font-size: 1.1rem; }

.lead { font-size: 1.15rem; color: var(--body); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background 0.18s var(--ease), border-color 0.18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #12243B; /* deep navy text on amber — high contrast, premium */
  box-shadow: 0 8px 20px -8px rgba(224, 137, 31, 0.55);
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

/* Google Play style pill */
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px 11px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.play-badge:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.play-badge small { display: block; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.72; }
.play-badge strong { font-size: 1.12rem; font-weight: 650; letter-spacing: -0.01em; }
@media (prefers-color-scheme: dark) {
  .play-badge { background: #fff; color: var(--ink); }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-size: 1.12rem;
}
.brand .logo { height: 40px; width: auto; display: block; border-radius: 6px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  padding: 0;
}
.nav-links a {
  color: var(--body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s var(--ease);
}
.nav-links a:hover { color: var(--brand); }

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

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

@media (max-width: 860px) {
  .nav-links,
  .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav[data-open="true"] .nav-links {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
  }
  .nav[data-open="true"] .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 720px;
  background:
    radial-gradient(60% 60% at 20% 10%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 70%),
    radial-gradient(50% 50% at 88% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 65%);
  filter: blur(8px);
  z-index: -1;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy h1 .hl { color: var(--accent-deep); }
.hero-copy .lead { max-width: 32ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero-note {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}
.hero-note svg { color: var(--verified); flex: none; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 340px; margin-inline: auto; }
  .hero-copy .lead { max-width: none; }
}

/* Phone mockup (pure CSS/SVG) */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 300px;
  aspect-ratio: 300 / 610;
  background: var(--surface);
  border: 10px solid #10140F;
  border-radius: 44px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
@media (prefers-color-scheme: dark) { .phone { border-color: #05070550; border-color: #05 0705; border-color: #050705; } }
.phone::before {
  content: "";
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 108px; height: 24px;
  background: #10140F;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.phone-screen {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--brand-soft), var(--surface) 42%);
  padding: 46px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.phone-map {
  height: 168px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 40%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 55%),
    repeating-linear-gradient(52deg, var(--surface-2), var(--surface-2) 22px, color-mix(in srgb, var(--line) 60%, transparent) 22px, color-mix(in srgb, var(--line) 60%, transparent) 24px),
    var(--surface-2);
  border: 1px solid var(--line);
  position: relative;
}
.phone-map .pin {
  position: absolute;
  top: 46%; left: 44%;
  width: 26px; height: 26px;
  background: var(--accent);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
.mini-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.mini-card .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mini-card .name { color: var(--ink); font-weight: 650; font-size: 0.9rem; }
.mini-card .dist { color: var(--muted); font-size: 0.75rem; }
.mini-pill {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 9px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem; font-weight: 650;
  background: var(--verified-bg); color: var(--verified);
}
.mini-pill.neutral { background: var(--surface-2); color: var(--muted); }

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */
.trust-strip {
  border-block: 1px solid var(--line);
  background: var(--surface-2);
}
.trust-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  justify-content: center;
  align-items: center;
  padding-block: 22px;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--body);
}
.trust-item svg { color: var(--brand); flex: none; }

/* --------------------------------------------------------------------------
   Card grids
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 20px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.98rem; }

.icon-badge {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 18px;
}

/* Numbered checks */
.checks { counter-reset: check; }
.check {
  display: flex;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  align-items: flex-start;
}
.check .num {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}
.check h3 { font-size: 1.08rem; margin-bottom: 4px; }
.check p { font-size: 0.95rem; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 8px; }
.step .num {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 12px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.98rem; }

/* --------------------------------------------------------------------------
   Badge explainer
   -------------------------------------------------------------------------- */
.badge-band { background: var(--surface-2); border-block: 1px solid var(--line); }
.badge-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.big-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--verified-bg);
  color: var(--verified);
  font-weight: 650;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.big-pill .tick {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  background: var(--verified); color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
}
.badge-showcase h2 { max-width: 20ch; }
.badge-showcase p { max-width: 56ch; color: var(--body); font-size: 1.1rem; }
.pill-legend { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.legend-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: var(--radius-pill);
  font-size: 0.86rem; font-weight: 600;
  border: 1px solid var(--line);
}
.legend-pill.v { background: var(--verified-bg); color: var(--verified); border-color: transparent; }
.legend-pill.s { background: var(--stale-bg); color: var(--stale); border-color: transparent; }
.legend-pill.n { color: var(--muted); }

/* --------------------------------------------------------------------------
   CTA band (for stations / final)
   -------------------------------------------------------------------------- */
.cta-band {
  /* Fixed deep navy in both themes so white text always reads on it. */
  background: linear-gradient(135deg, #0E2138, #1B3A5B);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 56ch; margin: 0 auto 28px; font-size: 1.1rem; }
.cta-band .btn-primary { background: var(--accent); color: #12243B; box-shadow: 0 12px 30px -12px rgba(0,0,0,0.45); }
.cta-band .btn-primary:hover { background: #F4A340; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-band .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }

.stations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 820px) { .stations { grid-template-columns: 1fr; } }
.stations h2 { margin-bottom: 18px; }
.stations ul { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 24px; }
.stations li { display: flex; gap: 12px; align-items: flex-start; }
.stations li svg { color: var(--brand); flex: none; margin-top: 3px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  padding-block: 56px 32px;
  font-size: 0.92rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 720px) { .footer-top { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { max-width: 40ch; color: var(--muted); font-size: 0.92rem; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--body); }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}
.footer-bottom a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--brand); }

/* --------------------------------------------------------------------------
   Legal / document pages (privacy, support)
   -------------------------------------------------------------------------- */
.doc {
  max-width: 760px;
  margin-inline: auto;
  padding-block: clamp(48px, 7vw, 88px);
}
.doc .eyebrow { margin-bottom: 16px; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; }
.doc .meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 40px; }
.doc h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.doc h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--body); }
.doc p { margin-bottom: 14px; }
.doc ul, .doc ol { margin: 0 0 18px 22px; display: grid; gap: 8px; }
.doc a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.doc .callout {
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--line));
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 22px 0;
}
.doc .callout p:last-child { margin-bottom: 0; }
.placeholder {
  background: var(--stale-bg);
  color: var(--stale);
  padding: 1px 7px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.92em;
}

/* FAQ */
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 4px 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 650;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--brand);
  font-weight: 400;
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > *:not(summary) { padding-bottom: 18px; }
.faq details p { margin-bottom: 10px; font-size: 0.98rem; }

/* --------------------------------------------------------------------------
   Scroll reveal (progressive enhancement)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .play-badge { transition: none; }
}
