/* ============================================================
   DealerMap — shared design tokens (web)
   Source of truth for colors: DealerMap/DealerModel.swift (iOS).
   The six status colors are LOCKED product identity — never restyle.
   ============================================================ */

:root {
  /* Surfaces — mirrors the iOS dark grouped-list aesthetic */
  --bg: #000000;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --surface-3: #3a3a3c;
  --separator: rgba(255, 255, 255, 0.12);

  /* Text */
  --text: #ffffff;
  --text-secondary: #98989e;
  --text-tertiary: #636366;

  /* Accent (iOS system blue, matches Signed) */
  --accent: #0a84ff;
  --accent-deep: #007aff;

  /* LOCKED six-status ramp — identical to the iOS pins */
  --status-unvisited: #c7c7cc; /* neutral grey — DealerModel.swift Color.unvisitedPin */
  --status-new:       #34c759; /* green         */
  --status-visited:   #ffcc00; /* gold          */
  --status-followup:  #ff9500; /* orange        */
  --status-signed:    #007aff; /* blue          */
  --status-dead:      #ff3b30; /* red           */

  --radius: 20px;
  --radius-sm: 12px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
          Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; } /* anchor jumps clear the sticky nav */

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.85; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--separator);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(160deg, #0a84ff, #0055d4);
  display: grid;
  place-items: center;
  flex: none;
}

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-secondary); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); opacity: 1; }

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #2492ff; opacity: 1; }
.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-3); opacity: 1; }
.btn-large { padding: 14px 32px; font-size: 17px; }

/* ---------- Layout helpers ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
/* Section vertical rhythm. NOTE: `.container` sets `padding: 0 24px`, which outranks a plain
   `section {}` rule and collapses vertical padding to 0 (everything below the hero was
   cramped). Scope the vertical padding to `section.container` so it actually applies while
   keeping the horizontal gutter. */
section.container { padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(56px, 6vw, 88px); }
/* The gallery follows the features it illustrates — tighten the seam between them. */
#features { padding-bottom: clamp(28px, 3vw, 40px); }

.eyebrow {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(40px, 6.5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 14px;
}

h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }

.lede {
  color: var(--text-secondary);
  font-size: clamp(17px, 2vw, 21px);
  max-width: 640px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 110px 0 70px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-copy .lede { margin: 20px 0 32px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--separator);
  border-radius: 12px;
  color: var(--text);
}
.store-badge small { display: block; font-size: 11px; color: var(--text-secondary); }
.store-badge strong { font-size: 16px; }

.hero-stats { display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap; }
.stat strong { display: block; font-size: 30px; font-weight: 800; }
.stat span { color: var(--text-secondary); font-size: 14px; }

.phone {
  width: min(300px, 80vw);
  margin: 0 auto;
  border-radius: 42px;
  border: 6px solid #2a2a2c;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.06);
  background: #000;
}
.phone img { display: block; width: 100%; }

/* ---------- Status ramp strip ---------- */
/* Two rows of three chips (the six statuses read as a tidy 3×2 grid). */
.status-strip {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 12px;
  margin-top: 28px;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--separator);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* ---------- Spotlight (Individual section: phone + copy) ---------- */
.spotlight {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}
.spotlight .phone { width: min(300px, 78vw); }
.check-list { list-style: none; margin-top: 22px; }
.check-list li {
  color: var(--text-secondary);
  font-size: 15.5px;
  padding: 10px 0 10px 30px;
  position: relative;
  border-top: 1px solid var(--separator);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--status-new);
  font-weight: 700;
}
.check-list li strong { color: var(--text); font-weight: 600; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: var(--radius);
  padding: 28px;
}
.card p { color: var(--text-secondary); font-size: 15px; }
.card .icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  font-size: 21px;
  background: var(--surface-2);
}

/* ---------- Persona / tier cards ---------- */
.tier-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.card ul { list-style: none; margin-top: 14px; }
.card ul li {
  color: var(--text-secondary);
  font-size: 14.5px;
  padding: 7px 0 7px 26px;
  position: relative;
  border-top: 1px solid var(--separator);
}
.card ul li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--status-new);
  font-weight: 700;
}

/* ---------- Enterprise / trust ---------- */
.trust-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 34px;
}
.trust-item {
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.trust-item h3 { font-size: 16px; }
.trust-item p { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }

/* ---------- Screenshot gallery ---------- */
.gallery {
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
}
.gallery .phone { width: min(240px, 70vw); border-radius: 34px; }
.gallery figcaption {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 14px;
  font-weight: 600;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(160deg, #0a2a52, #06121f);
  border: 1px solid var(--separator);
  border-radius: 28px;
  padding: 64px 40px;
  text-align: center;
}
.cta-band .lede { margin: 12px auto 30px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--separator);
  padding: 44px 0 60px;
  color: var(--text-secondary);
  font-size: 14px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-actions, .hero-stats, .status-strip { justify-content: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .trust-row { grid-template-columns: 1fr; }
  .spotlight { grid-template-columns: 1fr; text-align: center; }
  .spotlight .phone { margin: 0 auto; grid-row: 1; }
  .spotlight .hero-actions { justify-content: center; }
  .check-list { text-align: left; max-width: 440px; margin-left: auto; margin-right: auto; }
  .nav-links a:not(.btn) { display: none; }
}
