/* ==========================================================================
   CurbScout marketing site
   Palette anchored on the app splash navy (#0D1B2A) + curb verdict colors.
   ========================================================================== */

:root {
  --navy-950: #081221;
  --navy-900: #0d1b2a;
  --navy-800: #13263a;
  --navy-700: #1b344e;
  --navy-600: #24466a;
  --ink: #0f1c2b;
  --paper: #f6f8fb;
  --card: #ffffff;
  --text: #22334a;
  --text-dim: #5b6d84;
  --text-inverse: #eaf1f9;
  --text-inverse-dim: #9fb2c8;
  --green: #22c55e;
  --green-deep: #16a34a;
  --amber: #f59e0b;
  --red: #ef4444;
  --blue: #0ea5e9;
  --purple: #8b5cf6;
  --line: #dbe4ef;
  --line-inverse: rgba(255, 255, 255, 0.1);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(8, 18, 33, 0.12);
  --maxw: 1100px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ---- Nav ---------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 27, 42, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-inverse);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.12rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  align-items: center;
}

.nav-links a {
  color: var(--text-inverse-dim);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: #fff;
  text-decoration: none;
}

.nav-cta {
  background: var(--green);
  color: #06220f !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700 !important;
}

.nav-cta:hover {
  background: #34d873;
}

@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

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

.hero {
  background: radial-gradient(1200px 600px at 75% -10%, #1d3a5c 0%, transparent 60%),
    radial-gradient(800px 500px at -10% 40%, #12314b 0%, transparent 55%),
    var(--navy-900);
  color: var(--text-inverse);
  padding: 84px 0 96px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: #fff;
}

.hero h1 .hl {
  color: var(--green);
}

.hero p.lede {
  margin-top: 20px;
  font-size: 1.16rem;
  color: var(--text-inverse-dim);
  max-width: 34em;
}

.hero-ctas {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.appstore-badge img {
  height: 54px;
  width: auto;
}

.appstore-fallback {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff !important;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 10px 20px;
  font-weight: 600;
  line-height: 1.2;
}

.appstore-fallback:hover {
  text-decoration: none;
  border-color: #777;
}

.appstore-fallback .small {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  opacity: 0.8;
}

.hero-note {
  font-size: 0.88rem;
  color: var(--text-inverse-dim);
}

/* Phone mockup (pure CSS, no screenshots needed) */

.phone {
  width: 300px;
  margin: 0 auto;
  background: #05090f;
  border-radius: 42px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-screen {
  background: linear-gradient(180deg, #0f2236 0%, #0b1928 100%);
  border-radius: 32px;
  overflow: hidden;
  padding: 18px 14px 16px;
}

.phone-notch {
  width: 110px;
  height: 22px;
  background: #05090f;
  border-radius: 12px;
  margin: -18px auto 12px;
}

.verdict-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #b9f4cf;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.86rem;
  font-weight: 600;
}

.verdict-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

.spot-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.spot-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.spot-num.n2 { background: var(--purple); }
.spot-num.n3 { background: var(--amber); color: #3a2500; }

.spot-body {
  font-size: 0.8rem;
  color: #cfdcea;
  line-height: 1.45;
}

.spot-body strong {
  color: #fff;
  display: block;
  font-size: 0.86rem;
}

.spot-tag {
  display: inline-block;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 7px;
  margin-top: 4px;
}

.tag-free { background: rgba(34, 197, 94, 0.18); color: #7fe3a5; }
.tag-meter { background: rgba(14, 165, 233, 0.18); color: #7fd4f7; }
.tag-warn { background: rgba(245, 158, 11, 0.18); color: #ffd48a; }

.phone-footer {
  margin-top: 12px;
  text-align: center;
  font-size: 0.72rem;
  color: #6d839c;
}

@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .phone {
    margin-top: 12px;
  }
}

/* ---- Stat band ----------------------------------------------------------- */

.stats {
  background: var(--navy-950);
  color: var(--text-inverse);
  padding: 34px 0;
  border-top: 1px solid var(--line-inverse);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat b {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.stat span {
  font-size: 0.88rem;
  color: var(--text-inverse-dim);
}

@media (max-width: 760px) {
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Sections ------------------------------------------------------------ */

section.block {
  padding: 84px 0;
}

section.block.alt {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-deep);
}

section.block h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  margin-top: 8px;
  color: var(--ink);
}

.section-lede {
  margin-top: 12px;
  max-width: 46em;
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* Features grid */

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

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

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: 0 2px 10px rgba(8, 18, 33, 0.04);
}

section.block.alt .feature {
  background: var(--paper);
}

.feature .icon {
  font-size: 1.6rem;
  line-height: 1;
}

.feature h3 {
  margin-top: 12px;
  font-size: 1.05rem;
  color: var(--ink);
}

.feature p {
  margin-top: 8px;
  font-size: 0.94rem;
  color: var(--text-dim);
}

/* How it works */

.steps {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px 24px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.step h3 {
  font-size: 1.02rem;
  color: var(--ink);
}

.step p {
  margin-top: 8px;
  font-size: 0.94rem;
  color: var(--text-dim);
}

/* Real app screens inside each how-it-works step */

.step-shot {
  margin: 18px auto 4px;
  width: 100%;
  max-width: 232px;
  background: #05090f;
  border-radius: 32px;
  padding: 7px;
  box-shadow: 0 14px 30px rgba(8, 18, 33, 0.28), 0 0 0 1px rgba(8, 18, 33, 0.12);
}

.step-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
}

/* Data story */

.data-points {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 760px) {
  .data-points {
    grid-template-columns: 1fr;
  }
}

.data-point {
  display: flex;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.data-point .bullet {
  width: 10px;
  border-radius: 6px;
  flex-shrink: 0;
}

.b-green { background: var(--green); }
.b-blue { background: var(--blue); }
.b-amber { background: var(--amber); }
.b-red { background: var(--red); }
.b-purple { background: var(--purple); }

.data-point p {
  font-size: 0.95rem;
  color: var(--text);
}

.data-point p b {
  color: var(--ink);
}

/* Cities */

.city-chips {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.chip.hq {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}

.cities-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* FAQ */

.faq {
  margin-top: 36px;
  max-width: 780px;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
}

.faq summary {
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--text-dim);
}

/* CTA band */

.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 72px 0;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
}

.cta-band p {
  margin-top: 12px;
  color: var(--text-inverse-dim);
}

.cta-band .hero-ctas {
  justify-content: center;
}

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

footer {
  background: var(--navy-950);
  color: var(--text-inverse-dim);
  padding: 44px 0 36px;
  font-size: 0.88rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
}

.footer-brand img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-inverse-dim);
}

.footer-links a:hover {
  color: #fff;
}

.footer-disclaimer {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-inverse);
  font-size: 0.8rem;
  line-height: 1.65;
  color: #7e93ab;
  max-width: 62em;
}

/* ---- Legal pages ---------------------------------------------------------- */

.legal-hero {
  background: var(--navy-900);
  color: #fff;
  padding: 56px 0 44px;
}

.legal-hero h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -0.02em;
}

.legal-hero .meta {
  margin-top: 10px;
  color: var(--text-inverse-dim);
  font-size: 0.92rem;
}

.legal-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 52px 24px 80px;
}

.legal-body h2 {
  margin-top: 40px;
  font-size: 1.28rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.legal-body h3 {
  margin-top: 24px;
  font-size: 1.04rem;
  color: var(--ink);
}

.legal-body p,
.legal-body li {
  margin-top: 12px;
  font-size: 0.98rem;
  color: var(--text);
}

.legal-body ul {
  padding-left: 22px;
}

.legal-body li {
  margin-top: 8px;
}

.callout {
  margin-top: 24px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 6px solid var(--amber);
  border-radius: 10px;
  padding: 18px 20px;
}

.callout.red {
  background: #fef2f2;
  border-color: #fecaca;
  border-left-color: var(--red);
}

.callout p {
  margin-top: 0;
  font-size: 0.95rem;
}

.callout p + p {
  margin-top: 10px;
}

.legal-toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.legal-toc ol {
  padding-left: 20px;
  columns: 2;
  column-gap: 30px;
}

.legal-toc li {
  margin-top: 6px;
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .legal-toc ol {
    columns: 1;
  }
}

/* Support page */

.support-cards {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 860px) {
  .support-cards {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Install-funnel additions (PRD v0.1)
   ========================================================================== */

/* Accessibility: visible focus + reduced motion (F8/WCAG 2.1 AA) */

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Skip link */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--green);
  color: #06220f;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

/* Primary smart CTA button */

.btn-primary {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: var(--green);
  color: #06220f !important;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  border-radius: 14px;
  padding: 15px 30px;
  min-height: 56px;
  box-shadow: 0 10px 26px rgba(34, 197, 94, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  text-align: center;
}

.btn-primary:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.45);
}

.btn-primary .sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.75;
}

/* Hero QR side-card (desktop only) */

.hero-qr {
  display: none;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 16px 10px 10px;
  color: var(--text-inverse-dim);
  font-size: 0.85rem;
  line-height: 1.4;
}

.hero-qr img {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  background: #fff;
}

@media (min-width: 881px) and (pointer: fine) {
  .hero-qr {
    display: inline-flex;
  }
}

/* Real-screenshot device frame */

.phone-shot {
  width: 306px;
  margin: 0 auto;
  background: #05090f;
  border-radius: 46px;
  padding: 10px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-shot img,
.phone-shot video {
  display: block;
  width: 100%;
  height: auto; /* without this, the height attribute wins and stretches the shot */
  border-radius: 37px;
  background: #0b1928; /* fills the frame before the first video frame paints */
}

.shot-caption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-inverse-dim);
}

/* Trust bar */

.trust-note {
  text-align: center;
  color: #7e93ab;
  font-size: 0.8rem;
  margin-top: 16px;
}

.stat[hidden] {
  display: none;
}

/* QR modal (desktop CTA target) */

dialog.qr-dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 34px 38px;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(8, 18, 33, 0.5);
}

dialog.qr-dialog::backdrop {
  background: rgba(8, 18, 33, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.qr-dialog h3 {
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.qr-dialog p {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.qr-dialog img {
  width: 220px;
  height: 220px;
  margin: 18px auto 6px;
  display: block;
}

.qr-dialog .qr-alt {
  font-size: 0.85rem;
  margin-top: 10px;
}

.qr-dialog button {
  margin-top: 18px;
  background: var(--navy-900);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 26px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

/* Coverage — city list grouped by metro */

.metros {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 34px;
}

@media (max-width: 760px) {
  .metros {
    grid-template-columns: 1fr;
  }
}

.metro h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.metro h3 span {
  background: var(--navy-900);
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0;
  padding: 2px 9px;
  font-weight: 700;
}

.metro .city-chips {
  margin-top: 0;
}

/* Privacy band (R6) */

.privacy-band {
  background: var(--navy-900);
  color: var(--text-inverse);
  padding: 72px 0;
}

.privacy-band h2 {
  color: #fff;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-top: 8px;
}

.privacy-band .section-lede {
  color: var(--text-inverse-dim);
}

.privacy-points {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 860px) {
  .privacy-points {
    grid-template-columns: 1fr;
  }
}

.privacy-points .pt {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.93rem;
  color: #cfdcea;
}

.privacy-points .pt b {
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

/* Android note under CTAs */

.platform-note {
  font-size: 0.85rem;
  color: var(--text-inverse-dim);
}
