/* GoodLeap Financing Loans — Clean Energy Design System
   Palette: Forest green + Sunrise amber + Slate charcoal on soft off-white
   Typography: Fraunces (headings, serif) + Inter (body, sans)
*/

:root {
  /* Core palette */
  --forest: #0F7B3E;
  --forest-dark: #0A5A2E;
  --forest-light: #E8F3EC;
  --amber: #F59E0B;
  --amber-dark: #D97706;
  --amber-light: #FEF3C7;
  --slate: #1F2937;
  --slate-mid: #475569;
  --slate-soft: #64748B;
  --cream: #FBFAF6;
  --cream-warm: #F5F2EB;
  --hairline: #E2E8F0;
  --white: #FFFFFF;
  --danger: #DC2626;
  --success: #16A34A;

  /* Typography */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Scale */
  --max-w: 1180px;
  --max-w-prose: 720px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 123, 62, 0.08);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 400;
}

/* Typography scale */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--slate);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 500; }
h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; max-width: 68ch; }
a { color: var(--forest); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--forest-dark); }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }
strong { font-weight: 600; color: var(--slate); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--cream-warm); padding: 0.15em 0.4em; border-radius: 4px; font-size: 0.92em; }

/* Container */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.prose { max-width: var(--max-w-prose); margin: 0 auto; }

/* Header */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--hairline);
  position: static;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--forest);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-mark {
  width: 32px;
  height: 32px;
  background: var(--forest);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
}
.brand:hover { color: var(--forest-dark); }
nav.main-nav { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
nav.main-nav a {
  color: var(--slate-mid);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
nav.main-nav a:hover { color: var(--forest); border-bottom-color: var(--amber); }
.nav-cta {
  background: var(--forest);
  color: var(--white) !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: var(--radius);
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--forest-dark) !important; }

/* Mobile nav */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--slate); margin: 5px 0; border-radius: 2px; }

@media (max-width: 860px) {
  nav.main-nav { display: none; flex-direction: column; align-items: flex-start; width: 100%; margin-top: 1rem; gap: 0.75rem; }
  nav.main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .site-header .container { flex-wrap: wrap; }
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(180deg, var(--cream) 0%, var(--forest-light) 100%);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--amber-light) 0%, transparent 70%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } }
.hero h1 { margin-bottom: 1rem; max-width: 20ch; }
.hero p.lead { font-size: 1.15rem; color: var(--slate-mid); max-width: 50ch; margin-bottom: 1.5rem; }
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-top: 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--hairline);
}
.rating-stars { color: var(--amber); font-weight: 600; letter-spacing: 1px; }

/* Hero visual card */
.hero-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--hairline);
}
.hero-card h3 { font-family: var(--font-head); color: var(--forest-dark); margin-bottom: 1rem; }
.hero-card dl { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem 1rem; font-size: 0.95rem; }
.hero-card dt { color: var(--slate-mid); }
.hero-card dd { color: var(--slate); font-weight: 600; text-align: right; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  font-size: 1rem;
  font-family: var(--font-body);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.1s, background 0.15s, box-shadow 0.15s;
}
.btn-primary {
  background: var(--forest);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--forest-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-secondary {
  background: var(--white);
  color: var(--forest);
  border-color: var(--forest);
}
.btn-secondary:hover { background: var(--forest-light); color: var(--forest-dark); }
.btn-amber {
  background: var(--amber);
  color: var(--slate);
}
.btn-amber:hover { background: var(--amber-dark); color: var(--white); }

/* Sections */
section { padding: 4rem 0; }
section.alt { background: var(--white); }
section.cream { background: var(--cream-warm); }

.section-head { text-align: center; max-width: 740px; margin: 0 auto 3rem; }
.section-head h2 { margin-bottom: 0.75rem; }
.section-head p { color: var(--slate-mid); margin-left: auto; margin-right: auto; }

/* Card grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover { border-color: var(--forest); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; color: var(--forest-dark); }
.card p { color: var(--slate-mid); font-size: 0.95rem; margin-bottom: 1rem; }
.card .card-link {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1px solid var(--forest);
  padding-bottom: 2px;
}
.card .card-link:hover { color: var(--forest-dark); border-bottom-color: var(--amber); }

/* Feature list with icons */
.feature-list { list-style: none; padding: 0; }
.feature-list li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.9rem;
  color: var(--slate-mid);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--forest-light);
  border-radius: 50%;
}
.feature-list li::after {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.75rem;
  width: 0.5rem;
  height: 0.3rem;
  border-left: 2px solid var(--forest);
  border-bottom: 2px solid var(--forest);
  transform: rotate(-45deg);
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.95rem;
}
table.data th, table.data td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}
table.data th {
  background: var(--forest-light);
  color: var(--forest-dark);
  font-weight: 600;
  font-family: var(--font-head);
}
table.data tr:last-child td { border-bottom: none; }
table.data tr:nth-child(even) td { background: var(--cream-warm); }

/* FAQ */
.faq-item {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-q {
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding-right: 3rem;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-head);
  font-size: 1.05rem;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--forest);
  font-weight: 300;
}
.faq-item[open] .faq-q::after { content: "–"; }
.faq-a {
  padding: 0 1.25rem 1.25rem;
  color: var(--slate-mid);
}

/* Callout boxes */
.callout {
  background: var(--amber-light);
  border-left: 4px solid var(--amber);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.callout.info { background: var(--forest-light); border-left-color: var(--forest); }
.callout.warn { background: #FEF3C7; border-left-color: var(--amber-dark); }
.callout h4 { color: var(--slate); margin-bottom: 0.5rem; font-family: var(--font-head); }
.callout p { margin-bottom: 0; color: var(--slate-mid); }

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--slate-soft);
}
.breadcrumb a { color: var(--slate-mid); }
.breadcrumb .sep { margin: 0 0.5rem; color: var(--slate-soft); }

/* Content layout */
.content {
  padding: 3rem 0 4rem;
}
.content h1 { margin-bottom: 1rem; }
.content h2 { margin-top: 2.5rem; margin-bottom: 1rem; padding-top: 0.5rem; }
.content h3 { margin-top: 1.75rem; }
.content p, .content ul, .content ol { margin-bottom: 1rem; }
.content .lead { font-size: 1.15rem; color: var(--slate-mid); margin-bottom: 1.5rem; }

/* Apply form */
.apply-wrap {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--hairline);
  margin: 2rem 0;
}
.apply-wrap h2 { color: var(--forest-dark); margin-bottom: 0.5rem; }

/* Calculator */
.calc-wrap {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--hairline);
  margin: 2rem 0;
}
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 720px) { .calc-grid { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--slate);
  font-size: 0.95rem;
}
.form-group input, .form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--cream);
}
.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px var(--forest-light);
}
.form-group .range-val { color: var(--forest-dark); font-weight: 600; margin-left: 0.5rem; }
.calc-results {
  background: var(--forest-light);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--forest);
}
.calc-results h3 { color: var(--forest-dark); margin-bottom: 1rem; font-family: var(--font-head); }
.calc-results dl { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem 1rem; }
.calc-results dt { color: var(--slate-mid); font-size: 0.95rem; }
.calc-results dd { color: var(--slate); font-weight: 600; text-align: right; font-family: var(--font-head); font-size: 1.1rem; }
.calc-results .total {
  grid-column: 1 / -1;
  padding-top: 1rem;
  border-top: 1.5px solid var(--forest);
  margin-top: 0.5rem;
  display: contents;
}
.calc-results .total-row {
  grid-column: 1 / -1;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1.5px solid var(--forest);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.calc-results .total-row dt { font-size: 1rem; color: var(--forest-dark); font-weight: 600; }
.calc-results .total-row dd { font-size: 1.4rem; color: var(--forest-dark); }

/* Compare table (special) */
.compare-wrap { overflow-x: auto; }
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  min-width: 600px;
  font-size: 0.92rem;
}
table.compare th, table.compare td {
  padding: 1rem;
  text-align: left;
  border: 1px solid var(--hairline);
}
table.compare th {
  background: var(--forest);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 500;
}
table.compare td:first-child {
  background: var(--cream-warm);
  font-weight: 600;
  color: var(--slate);
}
table.compare .highlight { background: var(--amber-light); font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--slate);
  color: #CBD5E1;
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4,
.site-footer .footer-heading {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-weight: 500;
}
.site-footer a { color: #CBD5E1; text-decoration: none; font-size: 0.92rem; display: block; margin-bottom: 0.5rem; }
.site-footer a:hover { color: var(--amber); }
.site-footer .brand-footer { font-size: 1.3rem; color: var(--white); font-family: var(--font-head); margin-bottom: 0.75rem; }
.site-footer .footer-blurb { font-size: 0.9rem; color: #94A3B8; margin-bottom: 1rem; max-width: 32ch; }
.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: #94A3B8;
  text-align: center;
}
.footer-bottom p { margin: 0 auto 0.5rem; max-width: none; }

/* Disclosure strip */
.disclosure-strip {
  background: var(--amber-light);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--amber);
  font-size: 0.82rem;
  color: var(--slate);
  text-align: center;
}
.disclosure-strip a { color: var(--forest-dark); font-weight: 500; }

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Focus visible */
*:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Print */
@media print {
  .site-header, .site-footer, .disclosure-strip, .hero-cta { display: none; }
  body { background: white; color: black; }
}


/* Hero headline — brand-prominent treatment */
.hero-headline {
  display: block;
  margin-bottom: 1.25rem;
  line-height: 1.05;
}
.hero-prefix {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--slate-mid);
  margin-bottom: 0.3rem;
  letter-spacing: -0.005em;
}
.brand-highlight {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(3.5rem, 8vw, 5.75rem);
  color: var(--forest);
  letter-spacing: -0.025em;
  line-height: 1;
  position: relative;
  padding-right: 0.05em;
}
.brand-highlight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 20%;
  bottom: -0.08em;
  height: 0.09em;
  background: var(--amber);
  border-radius: 2px;
}
@media (max-width: 860px) {
  .brand-highlight::after { right: 15%; }
}


/* Services enhancement */
.services-row-label {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--forest-dark);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0;
  letter-spacing: 0.02em;
  position: relative;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
}
.services-row-label::before, .services-row-label::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background: var(--hairline);
}
.services-row-label::before { left: -70px; }
.services-row-label::after { right: -70px; }
.services-row-second { margin-top: 2.5rem; }
.service-card { display: flex; flex-direction: column; }
.service-icon {
  width: 36px;
  height: 36px;
  color: var(--forest);
  margin-bottom: 1rem;
}
.service-meta {
  font-size: 0.85rem;
  color: var(--amber-dark);
  margin-top: auto;
  margin-bottom: 1rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--hairline);
}
.service-meta strong { color: var(--slate); font-family: var(--font-head); }

/* Calculator teaser */
.calc-teaser-section { padding: 4rem 0; }
.calc-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--hairline);
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 760px) { .calc-teaser { grid-template-columns: 1fr; } }
.calc-teaser-inputs { padding: 2rem; }
.calc-teaser-inputs .form-group label { font-weight: 500; font-size: 0.95rem; }
.teaser-val { color: var(--forest-dark); font-weight: 700; font-family: var(--font-head); }
.calc-teaser-fine { font-size: 0.82rem; color: var(--slate-soft); margin-top: 1rem; margin-bottom: 0; }
.calc-teaser-output {
  padding: 2rem;
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest) 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.calc-teaser-output::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
}
.teaser-label {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--amber-light);
  margin-bottom: 0.5rem;
  position: relative;
}
.teaser-headline {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.75rem, 6vw, 4rem);
  line-height: 1;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  position: relative;
}
.teaser-breakdown {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  position: relative;
  flex-wrap: wrap;
  justify-content: center;
}
.teaser-breakdown strong { color: var(--amber-light); font-weight: 600; }
.teaser-arrow { color: var(--amber); font-weight: 700; font-size: 1.1rem; }
.teaser-cta {
  background: var(--amber) !important;
  color: var(--slate) !important;
  position: relative;
}
.teaser-cta:hover { background: var(--amber-dark) !important; color: var(--white) !important; }

/* States section */
.states-section { padding: 4rem 0; background: var(--white); }
.states-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 860px) { .states-grid { grid-template-columns: 1fr; } }
.state-tier {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--hairline);
  position: relative;
}
.state-tier-top { border-top: 4px solid var(--forest); }
.state-tier-grow { border-top: 4px solid var(--amber); }
.state-tier-std { border-top: 4px solid var(--slate-soft); }
.tier-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}
.state-tier-top .tier-badge { background: var(--forest-light); color: var(--forest-dark); }
.state-tier-grow .tier-badge { background: var(--amber-light); color: var(--amber-dark); }
.state-tier-std .tier-badge { background: #E2E8F0; color: var(--slate); }
.state-tier h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--slate);
  margin-bottom: 0.5rem;
}
.tier-note {
  font-size: 0.9rem;
  color: var(--slate-mid);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.state-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 1rem;
}
.state-list-compact { columns: 1; }
.state-list li {
  font-size: 0.92rem;
  color: var(--slate);
  padding: 0.3rem 0 0.3rem 1.1rem;
  position: relative;
  margin-bottom: 0;
  break-inside: avoid;
}
.state-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  background: var(--forest);
  border-radius: 50%;
}
.state-tier-grow .state-list li::before { background: var(--amber); }
.state-tier-std .state-list li::before { background: var(--slate-soft); }


/* Centered hero (replaces grid layout) */
.hero-centered { padding: 5rem 0 4rem; }
.hero-centered .hero-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.hero-centered .hero-headline {
  margin-bottom: 1.5rem;
}
.hero-centered .lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 56ch;
  margin-bottom: 2rem;
}
.hero-centered .hero-cta {
  justify-content: center;
  margin-top: 0;
  margin-bottom: 1.5rem;
}
.hero-centered .hero-rating {
  display: inline-flex;
  margin: 0 auto;
}
.hero-centered .brand-highlight::after {
  left: 10%;
  right: 10%;
}

/* Form section */
.form-section {
  padding: 4rem 0;
  background: var(--white);
  scroll-margin-top: 20px;
}
.apply-form-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--hairline);
  min-height: 300px;
}
.form-fine-print {
  max-width: 760px;
  margin: 1.25rem auto 0;
  font-size: 0.82rem;
  color: var(--slate-soft);
  text-align: center;
  line-height: 1.6;
}
.form-fine-print a { color: var(--forest); }

/* Glance stats grid section */
.glance-section { padding: 3.5rem 0; }
.glance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1050px;
  margin: 0 auto;
}
@media (max-width: 860px) { .glance-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .glance-grid { grid-template-columns: 1fr; } }
.glance-item {
  background: var(--white);
  padding: 1.35rem 1rem;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--hairline);
  transition: border-color 0.15s, transform 0.1s;
}
.glance-item:hover {
  border-color: var(--forest);
  transform: translateY(-1px);
}
.glance-label {
  font-size: 0.82rem;
  color: var(--slate-mid);
  margin-bottom: 0.45rem;
  font-weight: 500;
}
.glance-value {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--forest-dark);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}


/* ===== Hero with background image ===== */
.hero.hero-with-bg {
  background-image: url('../images/hero-bg.jpg');
  background-image: image-set(url('../images/hero-bg.webp') type('image/webp'), url('../images/hero-bg.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  min-height: 720px;
  padding: 3rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero.hero-with-bg::after { display: none; }
.hero.hero-with-bg .hero-content {
  background: var(--cream);
  padding: 2.75rem 2.5rem 2.5rem;
  border-radius: 18px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--hairline);
  box-shadow: none;
}
.hero.hero-with-bg .hero-cta .btn {
  box-shadow: none;
}
.hero.hero-with-bg .hero-rating {
  box-shadow: none;
}

@media (max-width: 760px) {
  .hero.hero-with-bg { min-height: 820px; padding: 2rem 0; }
  .hero.hero-with-bg .hero-content {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }
}

/* ===== CTA banner with background image ===== */
.cta-with-bg {
  background-image: url('../images/cta-bg.jpg');
  background-image: image-set(url('../images/cta-bg.webp') type('image/webp'), url('../images/cta-bg.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 480px;
  padding: 5rem 0;
  display: flex;
  align-items: center;
  margin-top: 0;
}
.cta-with-bg .cta-card {
  background: var(--forest-dark);
  color: var(--white);
  padding: 3rem 2.75rem;
  border-radius: 18px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--forest);
  box-shadow: none;
}
.cta-with-bg .cta-card h2 {
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  margin-bottom: 1rem;
}
.cta-with-bg .cta-card p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 56ch;
  margin: 0 auto 1.5rem;
}
.cta-with-bg .cta-btn {
  background: var(--amber);
  color: var(--slate);
  box-shadow: none;
  margin-top: 0.5rem;
  font-weight: 600;
}
.cta-with-bg .cta-btn:hover {
  background: var(--amber-dark);
  color: var(--white);
  transform: none;
  box-shadow: none;
}

@media (max-width: 760px) {
  .cta-with-bg { padding: 3.5rem 0; min-height: 420px; }
  .cta-with-bg .cta-card {
    padding: 2.25rem 1.75rem;
    margin: 0 1rem;
  }
}


/* ===== Editorial Team section ===== */
.editorial-section {
  padding: 5rem 0;
  background: var(--white);
}
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .editorial-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.editorial-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.editorial-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.editorial-image-caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--forest-dark);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
}
.editorial-eyebrow {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--amber-dark);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}
.editorial-content h2 { margin-bottom: 1rem; }
.editorial-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--forest-dark);
  font-size: 1.15rem;
}
.editorial-content .lead {
  color: var(--slate-mid);
  font-size: 1.08rem;
  margin-bottom: 1.25rem;
}
.method-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}
.method-list li {
  padding: 0.65rem 0 0.65rem 2rem;
  position: relative;
  color: var(--slate-mid);
  font-size: 0.95rem;
  line-height: 1.55;
  border-bottom: 1px dashed var(--hairline);
}
.method-list li:last-child { border-bottom: none; }
.method-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--forest-light);
  border-radius: 50%;
}
.method-list li::after {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 1.25rem;
  width: 0.5rem;
  height: 0.3rem;
  border-left: 2px solid var(--forest);
  border-bottom: 2px solid var(--forest);
  transform: rotate(-45deg);
}
.method-list-neg li::before { background: #FEE2E2; }
.method-list-neg li::after {
  border: none;
  width: 0.6rem;
  height: 0.1rem;
  background: var(--danger);
  left: 0.25rem;
  top: 1.4rem;
  transform: none;
}
.method-list strong { color: var(--slate); font-weight: 600; }
.editorial-footer {
  margin-top: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}
.editorial-link {
  color: var(--forest);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--forest);
  padding-bottom: 2px;
}

/* ===== User reviews section ===== */
.user-reviews-section { padding: 5rem 0; }
.review-sources-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 860px) { .review-sources-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .review-sources-strip { grid-template-columns: 1fr; } }
.source-badge {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
}
.source-platform {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--slate);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.source-rating-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.source-stars { color: var(--amber); font-size: 0.95rem; letter-spacing: 1px; }
.source-rating-num {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--forest-dark);
  font-size: 1.05rem;
}
.source-count {
  font-size: 0.82rem;
  color: var(--slate-soft);
}
.review-themes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 860px) { .review-themes-grid { grid-template-columns: 1fr; } }
.review-theme {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
}
.review-theme-pos { border-top: 3px solid var(--forest); }
.review-theme-neg { border-top: 3px solid var(--amber-dark); }
.theme-badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 1rem;
  align-self: flex-start;
}
.theme-badge.pos { background: var(--forest-light); color: var(--forest-dark); }
.theme-badge.neg { background: #FEF3C7; color: var(--amber-dark); }
.review-theme blockquote {
  margin: 0 0 1rem 0;
  padding: 0;
  color: var(--slate);
  font-size: 0.97rem;
  line-height: 1.55;
  flex-grow: 1;
}
.review-theme cite {
  color: var(--slate-soft);
  font-size: 0.82rem;
  font-style: normal;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--hairline);
}
.user-reviews-footer {
  margin-top: 2.5rem;
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.user-reviews-footer p {
  color: var(--slate-mid);
  font-size: 0.95rem;
  margin: 0 auto 1rem;
}
.review-platform-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.review-platform-links a {
  color: var(--forest);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--forest);
  padding-bottom: 2px;
}

/* ===== Trust signals section ===== */
.trust-signals-section {
  padding: 3rem 0;
  background: var(--forest-light);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.trust-signals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1050px;
  margin: 0 auto;
}
@media (max-width: 860px) { .trust-signals-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .trust-signals-grid { grid-template-columns: 1fr; } }
.trust-item {
  text-align: center;
}
.trust-icon-wrap {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--forest);
}
.trust-icon {
  width: 24px;
  height: 24px;
  color: var(--forest-dark);
}
.trust-title {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--slate);
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
}
.trust-desc {
  color: var(--slate-mid);
  font-size: 0.85rem;
  line-height: 1.55;
}
.trust-desc a { color: var(--forest-dark); }


/* ===== Standout brand (header + footer) ===== */
/* Nav header: large italic Fraunces in forest green with amber underline accent */
.site-header .brand {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 600;
  color: var(--forest-dark);
  font-size: 1.85rem;
  letter-spacing: -0.025em;
  text-decoration: none;
  line-height: 1;
  padding: 0.25rem 0;
  position: relative;
  display: inline-block;
}
.site-header .brand::after {
  content: "";
  position: absolute;
  left: 0;
  right: 15%;
  bottom: 0.1em;
  height: 0.14em;
  background: var(--amber);
  border-radius: 2px;
  z-index: -1;
  opacity: 0.85;
}
.site-header .brand:hover {
  color: var(--forest);
}
.site-header .brand:hover::after {
  right: 0;
}

@media (max-width: 760px) {
  .site-header .brand { font-size: 1.55rem; }
}

/* Footer brand: amber italic Fraunces (pops on dark footer bg) */
.footer-brand {
  font-family: var(--font-head) !important;
  font-style: italic;
  font-weight: 600;
  color: var(--amber) !important;
  font-size: 1.75rem !important;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 1rem !important;
  text-transform: none !important;
}


/* ===== How It Works section (5-step) ===== */
.how-section { padding: 5rem 0; }
.how-steps {
  list-style: none;
  padding: 0;
  margin: 2.5rem auto 0;
  max-width: 820px;
  counter-reset: how;
}
.how-step {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px dashed var(--hairline);
  align-items: flex-start;
}
.how-step:last-child { border-bottom: none; }
.how-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--forest-dark);
  color: var(--cream);
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 600;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.how-body { flex: 1; min-width: 0; }
.how-body h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--forest-dark);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
.how-body p {
  color: var(--slate-mid);
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.6;
}
.how-note {
  max-width: 760px;
  margin: 2rem auto 0;
  padding: 1.25rem 1.5rem;
  background: #FEF3C7;
  border-left: 3px solid var(--amber-dark);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Comparison Table section ===== */
.comparison-section { padding: 5rem 0; background: var(--white); }
.comparison-wrap {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  overflow-x: auto;
}
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.93rem;
  min-width: 760px;
}
.comparison-table th,
.comparison-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
}
.comparison-table thead th {
  background: var(--cream);
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--slate);
  font-size: 0.95rem;
  border-bottom: 2px solid var(--forest);
  position: sticky;
  top: 0;
}
.comparison-table thead th.col-us {
  background: var(--forest-dark);
  color: var(--cream);
}
.comparison-table tbody th {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--slate);
  background: var(--cream);
  width: 180px;
}
.comparison-table td.col-us {
  background: rgba(15, 123, 62, 0.06);
  font-weight: 500;
  color: var(--slate);
  border-left: 2px solid var(--forest);
  border-right: 2px solid var(--forest);
}
.comparison-table tbody tr:last-child td.col-us {
  border-bottom: 2px solid var(--forest);
}
.comparison-table .good { color: var(--forest-dark); }
.comparison-table .warn { color: var(--amber-dark); }
.comparison-table strong.warn { font-weight: 600; }
.comparison-note {
  max-width: 820px;
  margin: 2rem auto 0;
  color: var(--slate-mid);
  font-size: 0.95rem;
  line-height: 1.65;
  padding: 1.25rem 1.5rem;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
}
.comparison-note strong { color: var(--forest-dark); }

/* ===== Footer disclosure strip (moved from top) ===== */
.footer-disclosure {
  background: #FEF3C7;
  border-top: 1px solid #FCD34D;
  border-bottom: 1px solid #FCD34D;
  padding: 0.75rem 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--slate);
}
.footer-disclosure a { color: var(--forest-dark); font-weight: 500; }

/* Make breadcrumb inline (no cream background strip) */
.breadcrumb {
  background: var(--white) !important;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  border-bottom: none !important;
}


/* ============================================================
   UI/UX improvements — responsive refinements
   ============================================================ */

/* Fix nav CTA button — ensure 44px touch target */
.site-header .nav-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Ensure all primary buttons meet 44px touch target */
.btn {
  min-height: 44px;
}

/* ===== Comparison table — mobile scroll indicator ===== */
.comparison-wrap {
  position: relative;
  -webkit-overflow-scrolling: touch;
}
/* Fade-right gradient hints scrollability */
.comparison-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48px;
  background: linear-gradient(to right, rgba(255,255,255,0), var(--white));
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.2s;
}
@media (max-width: 860px) {
  .comparison-wrap::after { opacity: 1; }
  .comparison-section .section-head::after {
    content: "→ Swipe to compare";
    display: block;
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: var(--amber-dark);
    font-style: italic;
    font-family: var(--font-head);
    letter-spacing: 0.02em;
  }
}

/* ===== Hero lead paragraph — tighter on mobile ===== */
@media (max-width: 480px) {
  .hero-centered .lead {
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }
  .hero-centered .hero-headline {
    margin-bottom: 1rem;
  }
  .hero-centered .hero-prefix {
    font-size: 1.4rem;
  }
}

/* ===== Section padding — scale down on tablet/mobile ===== */
@media (max-width: 860px) {
  section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .section-head h2 { font-size: 1.6rem; }
  .section-head p { font-size: 0.95rem; }
}

/* ===== Container padding on tablet ===== */
@media (max-width: 860px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* ===== Footer grid on tablet ===== */
@media (min-width: 480px) and (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
  }
}

/* ============================================================
   BACK TO TOP floating button
   Brand-styled: italic Fraunces, forest-dark pill, amber accent
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.15rem;
  background: var(--forest-dark);
  color: var(--cream);
  border: 1.5px solid var(--amber);
  border-radius: 100px;
  cursor: pointer;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  line-height: 1;
  box-shadow: 0 6px 20px rgba(10, 90, 45, 0.25);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.back-to-top svg {
  width: 16px;
  height: 16px;
  color: var(--amber);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--forest);
  transform: translateY(-2px);
  outline: none;
}
.back-to-top:active {
  transform: translateY(0);
}

/* Mobile: smaller button + icon only on very narrow screens */
@media (max-width: 480px) {
  .back-to-top {
    bottom: 16px;
    right: 16px;
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
  }
}
@media (max-width: 360px) {
  .back-to-top-label { display: none; }
  .back-to-top {
    padding: 0.75rem;
    width: 44px;
    height: 44px;
    justify-content: center;
  }
  .back-to-top svg { width: 20px; height: 20px; }
}

/* Enable smooth scroll site-wide (also helps anchor links) */
html { scroll-behavior: smooth; }

/* Respect user's motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .back-to-top { transition: opacity 0.2s; }
  .back-to-top:hover { transform: none; }
}

/* Mobile menu — ensure 44px touch target for each nav item */
@media (max-width: 860px) {
  nav.main-nav a,
  nav.main-nav a.nav-cta {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
    width: 100%;
  }
}

/* Footer: keep emphasised disclaimer text visible on dark background */
.site-footer strong,
.site-footer b { color: var(--white); }

/* Callout titles and widget headings: visual style kept, outline order fixed */
.callout-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; line-height: 1.3; color: var(--slate); margin: 0 0 0.5rem; }
h2.as-h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.calc-results h2.as-h3 { color: var(--forest-dark); margin-bottom: 1rem; font-family: var(--font-head); }

/* Editorial illustration (replaces stock photo) */
.editorial-illustration svg { width: 100%; height: auto; display: block; border-radius: 18px; }
.table-note { font-size: 0.88rem; color: var(--slate-soft); margin-top: 0.6rem; }
