@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Serif+Display&display=swap');

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

:root {
  color-scheme: light;
  --bg: #f5f2ed;
  --bg-warm: #ebe7e0;
  --surface: #ffffff;
  --navy: #1a2332;
  --navy-light: #2a3a4e;
  --text: #1a2332;
  --text-secondary: #4a5568;
  --text-muted: #6b7a8d;
  --amber: #d97706;
  --amber-light: #f59e0b;
  --amber-bg: #fef3c7;
  --border: #d6d0c6;
  --border-light: #e8e3db;
  --radius: 6px;
}

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 28px;
}


/* ============================================================
   NAV — solid, not floating/glassmorphic
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--amber);
}

.nav-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 14px 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.logo-icon {
  color: var(--amber-light);
  flex-shrink: 0;
}


/* ============================================================
   HERO — topographic texture, grounded authority
   ============================================================ */
.hero {
  position: relative;
  padding: 140px 28px 80px;
  text-align: center;
  background: var(--navy);
  color: #ffffff;
  overflow: hidden;
}

.hero-topo {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    repeating-conic-gradient(
      var(--bg) 0% 25%, transparent 0% 50%
    );
  background-size: 48px 48px;
  pointer-events: none;
}


.hero-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 20px;
  padding: 6px 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 3px;
}

.hero h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(34px, 5.5vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: #ffffff;
}

.subtitle {
  font-size: 17px;
  color: #a8b5c7;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
}

/* Proof bar — just the facts */
.hero-proof {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.proof-item {
  font-size: 14px;
  color: #8a9ab5;
}

.proof-item strong {
  display: block;
  font-size: 22px;
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 2px;
}

.proof-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
}


/* ============================================================
   SECTION DEFAULTS
   ============================================================ */
section {
  padding: 80px 0;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  text-align: center;
  margin-bottom: 10px;
}

section h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 48px;
  text-align: center;
  color: var(--navy);
  letter-spacing: -0.005em;
}


/* ============================================================
   PROBLEM — the pain, kept honest
   ============================================================ */
.problem {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy-light);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
}

.problem-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.problem-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
}


/* ============================================================
   HOW IT WORKS — step by step, connector lines
   ============================================================ */
.how-it-works {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  padding: 24px 20px;
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
  pointer-events: none;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: var(--navy);
  border-radius: 50%;
  flex-shrink: 0;
}

.step h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
}

.step p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.7;
  padding-left: 46px;
  position: relative;
}

.step-connector {
  width: 32px;
  flex-shrink: 0;
  position: relative;
  align-self: stretch;
  min-height: 60px;
}

.step-connector::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--border) 0,
    var(--border) 6px,
    transparent 6px,
    transparent 12px
  );
}


/* ============================================================
   DATA SOURCES — badge + label, like spec sheets
   ============================================================ */
.data-sources {
  background: var(--bg);
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.source {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}

.source-badge {
  display: inline-block;
  width: fit-content;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-bg);
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 4px;
}

.source strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.source span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}


/* ============================================================
   CTA — single card, clear action
   ============================================================ */
.cta {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
}

.cta-card {
  text-align: center;
  background: var(--navy);
  color: #ffffff;
  border-radius: 8px;
  padding: 56px 40px;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-conic-gradient(
      var(--bg) 0% 25%, transparent 0% 50%
    );
  background-size: 40px 40px;
  pointer-events: none;
}

.cta-card h2 {
  color: #ffffff;
  position: relative;
  margin-bottom: 12px;
}

.cta-card p {
  color: #8a9ab5;
  margin-bottom: 28px;
  font-size: 16px;
  position: relative;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding: 14px 28px;
  background: var(--amber);
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.15s ease;
}

.cta-btn:hover {
  background: var(--amber-light);
}

.cta-btn svg {
  transition: transform 0.15s ease;
}

.cta-btn:hover svg {
  transform: translateX(3px);
}

.cta-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cta-btn:disabled:hover {
  background: var(--amber);
}


/* ============================================================
   TERRITORY FORM
   ============================================================ */
.territory-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 380px;
  margin: 0 auto;
  position: relative;
  text-align: left;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.territory-form input[type="email"],
.territory-form select {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--navy);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s ease;
}

.territory-form input[type="email"]:focus,
.territory-form select:focus {
  border-color: var(--amber);
}

.territory-form input::placeholder {
  color: var(--text-muted);
}

/* County checkbox list */
.county-checkboxes {
  max-height: 240px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
}

.county-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  color: var(--navy);
  transition: background 0.1s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.county-check:hover {
  background: var(--amber-bg);
}

.county-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--amber);
  cursor: pointer;
  flex-shrink: 0;
}

.county-check input:disabled + span {
  opacity: 0.4;
}

.county-check input:disabled {
  cursor: not-allowed;
}

.field-hint {
  font-size: 12px;
  color: #6b7a8d;
}

.field-error {
  font-size: 13px;
  color: #ef4444;
  display: none;
  margin: 0;
}

.form-status {
  font-size: 13px;
  color: #ef4444;
  text-align: center;
  min-height: 20px;
  margin: 0;
  display: none;
}

.territory-form .cta-btn {
  align-self: center;
  margin-top: 4px;
}

.territory-form .cf-turnstile {
  align-self: center;
}

/* Success state */
.form-success {
  position: relative;
  text-align: center;
  padding: 20px 0 0;
}

.form-success h3 {
  font-size: 20px;
  color: #ffffff;
  margin: 16px 0 8px;
}

.form-success p {
  font-size: 15px;
  color: #8a9ab5;
  margin: 0;
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.footer-brand .logo-icon {
  color: var(--amber);
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
}


/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 700px) {
  .hero {
    padding: 120px 20px 56px;
  }

  section {
    padding: 56px 0;
  }

  .hero-proof {
    flex-direction: column;
    gap: 16px;
  }

  .proof-divider {
    width: 40px;
    height: 1px;
  }

  .proof-item {
    text-align: center;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    flex-direction: column;
    gap: 24px;
  }

  .step-connector {
    width: auto;
    min-height: 0;
    height: 24px;
  }

  .step-connector::after {
    top: 50%;
    left: 46px;
    right: auto;
    width: 2px;
    height: 100%;
    background: repeating-linear-gradient(
      180deg,
      var(--border) 0,
      var(--border) 6px,
      transparent 6px,
      transparent 12px
    );
  }

  .step p {
    padding-left: 46px;
  }

  .sources-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    padding: 40px 24px;
  }

  .county-checkboxes {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}
