:root {
  --primary: #2d4a32;
  --primary-dark: #1c3020;
  --accent: #b9603a;
  --accent-dark: #964929;
  --bg: #faf6ec;
  --surface: #f0e9d4;
  --ink: #1a1a1a;
  --muted: #5a5a5a;
  --border: #d8d1bd;
  --max: 1100px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--primary); text-decoration: underline; }
a:hover { color: var(--accent); }

.site-header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.brand { text-decoration: none; display: inline-flex; align-items: center; }
.brand-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
}
.brand-sun { display: inline-flex; align-items: center; justify-content: center; width: 0.85em; height: 0.85em; margin: 0 0.02em; }
.brand-sun svg { width: 100%; height: 100%; }
.site-header nav a { margin-left: 1.25rem; text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.site-header nav a:hover { color: var(--primary); }

main { padding: 0; }
h1 { font-size: 2.1rem; line-height: 1.2; margin: 0 0 0.5rem; color: var(--ink); }
h2 { font-size: 1.55rem; margin: 2.25rem 0 1rem; color: var(--ink); }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 1.25rem; }

.hero { padding: 1.75rem 1.25rem 0.5rem; text-align: center; max-width: 720px; margin: 0 auto; }
.hero-title { font-size: 2.75rem; margin: 0 0 0.5rem; }
.hero-lead { font-size: 1.1rem; color: var(--muted); margin: 0 auto 1.25rem; max-width: 640px; line-height: 1.5; }
.hero .lead-form-wrap { text-align: left; margin: 0; }

.how-it-works { margin: 1.5rem auto 2.5rem; padding: 0 1.25rem; text-align: center; max-width: 720px; }
.how-it-works h2 { margin: 0 0 1.25rem; }
.how-it-works ol { font-size: 1.05rem; padding-left: 0; list-style: none; margin: 0 auto; counter-reset: step; }
.how-it-works li {
  margin-bottom: 0.75rem;
  padding: 1rem 1.25rem 1rem 3.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: left;
  counter-increment: step;
  position: relative;
}
.how-it-works li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ============================================
   STATE PAGE HERO
   ============================================ */
.state-hero { padding: 1.5rem 0 0.5rem; }
.state-hero-title {
  font-size: 1.95rem;
  line-height: 1.18;
  margin: 0 0 0.4rem;
  text-align: center;
  font-weight: 800;
  letter-spacing: -0.015em;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.byline {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 auto 0.85rem;
  line-height: 1.4;
}
.byline a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.byline a:hover { color: var(--accent); text-decoration: underline; }
.byline-sep { margin: 0 0.5rem; opacity: 0.5; }
.state-hero-lead {
  text-align: center;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 820px;
  margin: 0 auto 1.1rem;
  line-height: 1.45;
}
.state-hero-sub { display: none; }

.trust-bar {
  list-style: none;
  padding: 0;
  margin: 0 auto 1.25rem;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  max-width: 900px;
}
.trust-bar li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.42rem 0.95rem 0.42rem 0.5rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
}
.trust-bar .check { width: 18px; height: 18px; flex-shrink: 0; }

/* Hero 2-column — stats narrower, form wider */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) 1.25fr;
  gap: 1.25rem;
  align-items: stretch;
  max-width: 1040px;
  margin: 0 auto;
}
.hero-left, .hero-right { min-width: 0; display: flex; flex-direction: column; }

.quick-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin: 0;
  flex: 1;
}
.quick-stats > div {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  flex: 1;
  min-height: 0;
}
.quick-stats strong {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  text-align: left;
  margin: 0;
}
.quick-stats span {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.01em;
  line-height: 1;
  text-align: right;
}

/* ============================================
   LEAD FORM
   ============================================ */
.lead-form-wrap {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem 1.2rem;
  box-shadow: 0 6px 20px rgba(28, 48, 32, 0.07);
  margin: 0;
}
.lead-form-head { margin-bottom: 0.85rem; }
.lead-form-head h3 {
  margin: 0 0 0.2rem;
  color: var(--primary);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.lead-form-head .sub { color: var(--muted); margin: 0; font-size: 0.85rem; }
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 0.5rem; }
.lead-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.lead-form label.full { width: 100%; }
.lead-form input, .lead-form select {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  margin-top: 0.18rem;
  background: white;
  color: var(--ink);
}
.lead-form input:focus, .lead-form select:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}
.lead-form .cta {
  background: var(--accent);
  color: white;
  border: 0;
  padding: 0.85rem 1.5rem;
  font-size: 1.02rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  margin-top: 0.6rem;
  box-shadow: 0 3px 10px rgba(185, 96, 58, 0.3);
  transition: background 0.15s, transform 0.05s;
}
.lead-form .cta:hover { background: var(--accent-dark); }
.lead-form .cta:active { transform: translateY(1px); }
.lead-form .legal { font-size: 0.7rem; color: var(--muted); margin: 0.5rem 0 0; line-height: 1.35; text-align: center; }

.state-page .lead-form-wrap { background: var(--surface); margin: 2rem auto; max-width: 760px; }

/* ============================================
   ARTICLE BODY
   ============================================ */
.state-page { padding-top: 1.25rem; }
.article-body { font-size: 1.05rem; line-height: 1.7; max-width: 760px; margin: 0 auto; }
.article-body p { margin: 0 0 1rem; }
.article-body h2 { margin-top: 2.25rem; }
.article-body h3 { margin-top: 1.75rem; }
.article-body ul, .article-body ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.article-body li { margin-bottom: 0.45rem; }
.article-body strong { color: var(--ink); }
.article-body hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

.incentives { margin-top: 2.5rem; max-width: 1000px; margin-left: auto; margin-right: auto; }
.incentives table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.incentives th, .incentives td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.95rem; vertical-align: top; }
.incentives tr:last-child td { border-bottom: 0; }
.incentives th { background: var(--surface); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); font-weight: 700; }

.faqs { margin-top: 2.5rem; max-width: 820px; margin-left: auto; margin-right: auto; }
.faqs details { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 0.65rem; transition: border-color 0.15s; }
.faqs details[open] { border-color: var(--accent); }
.faqs summary { font-weight: 700; cursor: pointer; color: var(--primary); font-size: 1rem; }
.faqs summary:hover { color: var(--accent); }
.faqs p { margin: 0.85rem 0 0; color: var(--ink); line-height: 1.6; }

.state-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
}
.state-grid a {
  display: block;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--ink);
}
.state-grid a:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================
   NEARBY STATES
   ============================================ */
.nearby-states {
  margin: 2.5rem auto 0;
  max-width: 820px;
  padding: 1.5rem 1.75rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.nearby-states h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--primary);
}
.nearby-states > p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.nearby-states-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}
.nearby-states-list li { margin: 0; }
.nearby-states-list a {
  display: block;
  padding: 0.7rem 0.95rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: border-color 0.15s, color 0.15s;
}
.nearby-states-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page-disclaimer {
  margin: 3rem auto 5rem;
  max-width: 820px;
  padding: 1.5rem 1.75rem;
  background: white;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}
.page-disclaimer h3 { margin: 0 0 0.75rem; font-size: 0.85rem; color: var(--ink); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.page-disclaimer p { margin: 0 0 0.75rem; }
.page-disclaimer p:last-child { margin: 0; }
.page-disclaimer strong { color: var(--ink); }
.page-disclaimer a { color: var(--primary); }

.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  padding: 0.55rem 0.9rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  background: rgba(45, 74, 50, 0.97);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--primary-dark);
  display: none;
}
.sticky-cta-btn {
  display: block;
  text-align: center;
  background: var(--accent);
  color: white;
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.sticky-cta-btn:hover { background: var(--accent-dark); color: white; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1rem; }
  .state-hero-title { font-size: 1.65rem; }
  .quick-stats { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .quick-stats > div { flex: none; min-height: 70px; padding: 0.6rem 0.85rem; }
}
@media (max-width: 600px) {
  .lead-form .row { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.1rem; }
  .hero-lead { font-size: 1rem; }
  .hero-lead br { display: none; }
  .state-hero-title { font-size: 1.45rem; }
  .state-hero-lead { font-size: 0.95rem; }
  .trust-bar { flex-direction: column; align-items: stretch; max-width: 360px; }
  .trust-bar li { justify-content: center; }
  .byline { font-size: 0.8rem; }
  .byline-sep { display: block; height: 0; margin: 0; opacity: 0; }
  .byline-date { display: block; margin-top: 0.15rem; }
}
@media (max-width: 768px) {
  .sticky-cta { display: block; }
  .page-disclaimer { margin-bottom: 6rem; }
  .site-footer { padding-bottom: 6rem; }
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--primary);
  color: var(--bg);
  padding: 2.5rem 1.25rem 2rem;
  margin-top: 3rem;
  font-size: 0.9rem;
  text-align: center;
}
.footer-inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; }
.site-footer .footer-brand { color: var(--bg); font-size: 1.5rem; justify-content: center; }
.site-footer .footer-brand .brand-sun svg g { stroke: var(--bg); }
.site-footer .tagline-small { color: rgba(250, 246, 236, 0.75); font-size: 0.95rem; margin: 0.35rem 0 1.5rem; }
.site-footer .legal { color: rgba(250, 246, 236, 0.7); margin: 0 0 1.25rem; text-align: center; }
.footer-nav { display: flex; justify-content: center; gap: 1.5rem; }
.footer-nav a { color: rgba(250, 246, 236, 0.85); text-decoration: none; }
.footer-nav a:hover { color: white; }
