:root {
  --bg-primary: #f8f5f2;
  --bg-secondary: #f3f0ec;
  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --accent-primary: #3b82f6;
  --accent-hover: #2563eb;
  --bg: var(--bg-primary);
  --surface: var(--card-bg);
  --surface-muted: var(--bg-secondary);
  --surface-strong: #e2e8f0;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text: var(--text-primary);
  --text-soft: var(--text-secondary);
  --text-strong: #111827;
  --line: var(--card-border);
  --brand: var(--accent-primary);
  --brand-dark: var(--accent-hover);
  --brand-soft: #dbeafe;
  --accent: #d49a5e;
  --accent-soft: #fbf1e6;
  --danger-soft: #fff4ef;
  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 16px 36px rgba(15, 23, 42, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

/* Tightened spacing so more pricing and trust content lands above the fold. */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  background: linear-gradient(180deg, #fffdfb 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 224, 232, 0.95);
  backdrop-filter: blur(14px);
  background: rgba(251, 252, 253, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 800;
  color: var(--text-strong);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.nav-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
}

.nav-links {
  color: var(--text-soft);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.mobile-panel {
  display: none;
  padding: 0 0 14px;
}

.mobile-panel[data-open="true"] {
  display: grid;
  gap: 10px;
}

.eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.eyebrow {
  background: rgba(30, 79, 134, 0.09);
  color: var(--brand-dark);
}

.pill {
  background: var(--accent-soft);
  color: #985214;
}

.hero {
  padding: 22px 0 14px;
  margin: 0;
  min-height: auto;
}

.hero-editorial {
  padding-top: 28px;
}

.hero-inner,
.page-layout,
.footer-shell {
  display: grid;
  gap: 12px;
}

.hero-split {
  display: grid;
  gap: 20px;
}

.hero-copy {
  display: grid;
  gap: 6px;
  max-width: 640px;
}

.hero-copy h1,
.page-hero h1,
.section-heading h2,
.cta-band h2 {
  margin: 6px 0;
  color: var(--text-strong);
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 0.97;
  letter-spacing: -0.045em;
}

.hero-copy p,
.page-hero p,
.section-heading p,
.card p,
.faq-item p,
.state-card p,
.small-note {
  margin: 0;
  color: var(--text-soft);
}

.button-row,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.18);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--line);
}

.btn-tertiary {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.hero-body {
  display: grid;
  gap: 6px;
}

.hero-panel {
  display: grid;
  align-content: center;
  gap: 12px;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-frame {
  width: min(100%, 500px);
  padding: 14px;
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius-xl) + 4px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(243, 240, 236, 0.95) 100%);
  box-shadow: var(--shadow-md);
}

.hero-visual-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.hero-summary {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
}

.hero-summary strong {
  font-size: 1.35rem;
  font-family: var(--font-heading);
}

.proof-card,
.stat-card,
.glass-card,
.card,
.faq-item,
.feature-list,
.state-card,
.spotlight-panel {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  overflow: visible;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.hero-caption {
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--text-soft);
}

.glass-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.94);
}

.calculator-shell {
  display: grid;
  gap: 10px;
}

.calculator-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.calculator-stage h3 {
  margin: 0;
  color: var(--text-strong);
}

.calculator-header h2,
.card h3,
.faq-item h3,
.state-card h3,
.spotlight-panel h3 {
  margin: 0;
  color: var(--text-strong);
}

.progress-stack {
  display: grid;
  gap: 8px;
  min-width: min(100%, 220px);
}

.progress-chip {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--brand-dark);
  font-size: 0.85rem;
  font-weight: 800;
}

.step-dots {
  display: flex;
  gap: 10px;
}

.step-dot {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #d8e1ec;
}

.step-dot[data-state="active"] {
  background: linear-gradient(90deg, var(--brand), #4f79ac);
}

.step-dot[data-state="complete"] {
  background: #8ea8c7;
}

.field-grid,
.card-grid,
.comparison-grid,
.faq-grid,
.state-grid,
.metrics-grid,
.three-up,
.check-grid,
.radio-grid {
  display: grid;
  gap: 12px;
}

.field-grid.two-up,
.radio-grid,
.check-grid,
.metrics-grid.two-up,
.card-grid.two-up,
.card-grid.three-up,
.comparison-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.checkbox-group legend {
  font-size: 0.95rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  color: var(--text-strong);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.field textarea {
  min-height: 110px;
  padding: 14px 16px;
  resize: vertical;
}

.calculator-stage {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fdfefe 0%, #f2f5f8 100%);
  border: 1px solid var(--line);
}

.calculator-stage-results {
  background: linear-gradient(180deg, #ffffff 0%, #f8f5f2 100%);
}

.stage-eyebrow {
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.radio-card,
.check-card {
  position: relative;
  display: grid;
  gap: 5px;
  height: auto;
  min-height: 0;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.radio-card:hover,
.check-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.radio-card input,
.check-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.radio-card:has(input:checked),
.check-card:has(input:checked) {
  border-color: var(--brand);
  background: linear-gradient(180deg, #ffffff 0%, rgba(59, 130, 246, 0.08) 100%);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.1);
}

.radio-card strong,
.check-card strong {
  font-size: 1rem;
  color: var(--text-strong);
}

.radio-card span,
.check-card span {
  font-size: 0.92rem;
  color: var(--text-soft);
}

.checkbox-group {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 10px;
}

.calculator-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.calculator-results {
  display: grid;
  gap: 14px;
  padding: 18px;
  color: var(--text-strong);
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.results-summary {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--card-border);
}

.results-kicker {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.results-value {
  margin: 0;
  font-size: clamp(2.35rem, 5.4vw, 3.7rem);
  font-family: var(--font-heading);
  line-height: 0.98;
  color: var(--text-strong);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.result-chip {
  padding: 12px;
  border-radius: 18px;
  background: rgba(243, 240, 236, 0.75);
  border: 1px solid var(--card-border);
}

.result-chip strong {
  display: block;
  margin-top: 6px;
  font-size: 1.15rem;
  color: var(--text-strong);
}

.results-sub {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.results-credential {
  color: var(--text-muted);
  opacity: 1;
}

.section {
  padding: 24px 0;
}

.section-muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(243, 240, 236, 0.9) 100%);
  border-top: 1px solid rgba(229, 231, 235, 0.9);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.stat-card,
.card,
.feature-list,
.faq-item,
.state-card,
.spotlight-panel {
  padding: 13px;
}

.stat-card strong,
.spotlight-number {
  display: block;
  margin-bottom: 4px;
  color: var(--text-strong);
  font-size: 1.45rem;
  font-family: var(--font-heading);
}

.price-chip {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  color: #8f4d15;
  background: var(--accent-soft);
  font-size: 0.87rem;
  font-weight: 800;
}

.bullets,
.mini-links {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.bullets li,
.mini-links a {
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.bullets li::before {
  content: "•";
  margin-right: 10px;
  color: var(--brand);
}

.comparison-metric {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  color: var(--text-soft);
  border-bottom: 1px solid var(--line);
}

.comparison-metric:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.financing-band {
  padding: 14px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ffffff 0%, #f8f5f2 100%);
  border: 1px solid var(--card-border);
}

.financing-band strong {
  display: block;
  margin: 8px 0;
  color: var(--text-strong);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-family: var(--font-heading);
}

.selector-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.selector-row select {
  min-width: min(100%, 280px);
}

.cta-band {
  padding: 14px;
  text-align: center;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #ffffff 0%, #f8f5f2 100%);
  color: var(--text-strong);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.cta-band p {
  max-width: 58ch;
  margin: 10px auto 0;
  color: var(--text-secondary);
}

.site-footer {
  padding: 28px 0 32px;
  color: var(--text-soft);
  border-top: 1px solid rgba(229, 231, 235, 0.9);
  background: rgba(255, 255, 255, 0.8);
}

.footer-shell {
  display: grid;
  gap: 18px;
  align-items: start;
}

.footer-meta,
.footer-nav {
  display: grid;
  gap: 10px;
}

.footer-links {
  gap: 10px 18px;
}

.footer-note {
  max-width: 42ch;
}

.page-hero {
  padding: 14px 0 10px;
}

.page-hero-compact {
  padding: 8px 0 6px;
}

.page-kicker {
  display: inline-block;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.content-stack {
  display: grid;
  gap: 14px;
}

.lead-shell {
  display: grid;
  gap: 16px;
}

.lead-form,
.lead-success {
  display: grid;
  gap: 14px;
}

.consent-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.consent-note input {
  margin-top: 3px;
}

.consent-note a {
  color: var(--brand-dark);
  text-decoration: underline;
}

.inline-error {
  color: #b42318;
}

.financing-option-card {
  gap: 8px;
}

.estimate-entry {
  display: grid;
  gap: 16px;
}

.spotlight-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 245, 248, 0.94) 100%);
}

.spotlight-grid {
  display: grid;
  gap: 10px;
}

.inline-note {
  padding: 8px 10px;
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: 0.92rem;
}

.dense-stack {
  display: grid;
  gap: 10px;
}

.cta-stack {
  display: grid;
  gap: 6px;
  align-items: flex-start;
}

.cta-microcopy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  text-align: left;
}

.micro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.micro-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.zip-state-note {
  color: var(--brand-dark);
}

.micro-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-strong);
}

.divider {
  height: 1px;
  background: var(--line);
}

code {
  padding: 0.15rem 0.35rem;
  border-radius: 8px;
  background: rgba(31, 41, 55, 0.07);
}

.hero-bullets {
  margin-top: 2px;
}

.hero-bullets li {
  font-weight: 700;
}

@media (min-width: 920px) {
  .hero-split,
  .page-layout,
  .footer-shell {
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  }

  .hero-split {
    align-items: center;
  }

  .page-layout-single {
    grid-template-columns: minmax(0, 820px);
  }
}

@media (max-width: 919px) {
  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 760px) {
  .micro-grid,
  .field-grid.two-up,
  .radio-grid,
  .check-grid,
  .metrics-grid.two-up,
  .results-grid,
  .card-grid.two-up,
  .card-grid.three-up,
  .comparison-grid,
  .card-grid.four-up {
    grid-template-columns: 1fr;
  }

  .hero,
  .section,
  .page-hero {
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .calculator-header,
  .calculator-actions {
    align-items: stretch;
  }

  .calculator-actions {
    flex-direction: column-reverse;
  }

  .calculator-actions .btn,
  .button-row .btn {
    width: 100%;
  }

  .hero-visual-frame {
    padding: 10px;
  }
}
