:root {
  --hp-ink: #0f172a;
  --hp-muted: #475569;
  --hp-border: #dbe3ee;
  --hp-brand: #4f46e5;
  --hp-brand-dark: #3730a3;
  --hp-bg: #f8fafc;
  --hp-surface: #ffffff;
  --hp-green: #047857;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--hp-bg);
  color: var(--hp-ink);
  font-family: "DM Sans", system-ui, sans-serif;
}

.hp-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--hp-border);
  background: rgba(255, 255, 255, 0.96);
}

.hp-site-nav {
  width: min(100% - 2rem, 88rem);
  min-height: 4rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
}

.hp-brand {
  color: var(--hp-ink);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.hp-brand span,
.hp-footer-brand span {
  color: #94a3b8;
  font-weight: 500;
}

.hp-nav-links {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
}

.hp-nav-links a {
  color: var(--hp-muted);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.hp-nav-links a:hover {
  color: var(--hp-brand);
}

.hp-nav-cta,
.hp-primary-button,
.hp-secondary-button {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.hp-nav-cta,
.hp-primary-button {
  background: var(--hp-brand);
  color: #fff;
}

.hp-nav-cta:hover,
.hp-primary-button:hover {
  background: var(--hp-brand-dark);
}

.hp-secondary-button {
  border: 1px solid var(--hp-border);
  background: #fff;
  color: var(--hp-ink);
}

.hp-hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hp-site-footer {
  margin-top: 3rem;
  background: #0f172a;
  color: #cbd5e1;
}

.hp-footer-grid {
  padding: 2.5rem 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.hp-footer-grid h2 {
  margin: 0 0 0.8rem;
  color: #fff;
  font-size: 0.85rem;
}

.hp-footer-grid p {
  max-width: 40rem;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
}

.hp-footer-grid a {
  display: block;
  margin-bottom: 0.45rem;
  color: #cbd5e1;
  font-size: 0.82rem;
  text-decoration: none;
}

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

.hp-footer-brand {
  margin-bottom: 0.8rem !important;
  color: #fff;
  font-size: 0.95rem !important;
  font-weight: 700;
}

.hp-footer-bottom {
  border-top: 1px solid #334155;
  padding: 1rem 0 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.hp-footer-bottom p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.72rem;
  line-height: 1.5;
}

.hp-location-bar {
  border-bottom: 1px solid var(--hp-border);
  background: #eef2ff;
}

.hp-location-inner {
  width: min(100% - 2rem, 88rem);
  margin: 0 auto;
  padding: 0.75rem 0;
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) repeat(3, minmax(9rem, 13rem));
  gap: 0.75rem;
  align-items: end;
}

.hp-location-copy {
  min-width: 0;
}

.hp-location-eyebrow {
  margin: 0 0 0.15rem;
  color: var(--hp-brand);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hp-location-summary {
  margin: 0;
  color: var(--hp-ink);
  font-size: 0.88rem;
  font-weight: 600;
}

.hp-location-field {
  display: grid;
  gap: 0.25rem;
}

.hp-location-field label {
  color: var(--hp-muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hp-location-field select {
  min-height: 2.45rem;
  width: 100%;
  border: 1px solid #c7d2fe;
  border-radius: 0.5rem;
  background: var(--hp-surface);
  color: var(--hp-ink);
  padding: 0.45rem 2rem 0.45rem 0.65rem;
  font-size: 0.84rem;
}

.hp-context-note {
  width: min(100% - 2rem, 72rem);
  margin: 2rem auto;
  border: 1px solid var(--hp-border);
  border-left: 4px solid var(--hp-brand);
  border-radius: 0.5rem;
  background: var(--hp-surface);
  padding: 1rem 1.25rem;
}

.hp-context-note h2 {
  margin: 0 0 0.4rem;
  color: var(--hp-ink);
  font-size: 1rem;
  font-weight: 700;
}

.hp-context-note p {
  margin: 0;
  color: var(--hp-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.hp-context-note a {
  color: var(--hp-brand);
  font-weight: 700;
}

.hp-page-shell {
  width: min(100% - 2rem, 88rem);
  margin: 0 auto;
}

.hp-hero {
  border-bottom: 1px solid var(--hp-border);
  background: var(--hp-surface);
}

.hp-hero-inner {
  padding: 3.5rem 0 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 3rem;
  align-items: center;
}

.hp-kicker {
  margin: 0 0 0.8rem;
  color: var(--hp-brand);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hp-title {
  margin: 0 0 1rem;
  color: var(--hp-ink);
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.02;
}

.hp-lede {
  max-width: 48rem;
  margin: 0;
  color: var(--hp-muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.hp-hero-visual {
  overflow: hidden;
  border: 1px solid var(--hp-border);
  border-radius: 0.5rem;
  background: #e2e8f0;
  aspect-ratio: 16 / 11;
}

.hp-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-section {
  padding: 2.75rem 0;
}

.hp-section + .hp-section {
  border-top: 1px solid var(--hp-border);
}

.hp-section-head {
  max-width: 52rem;
  margin-bottom: 1.5rem;
}

.hp-section-head h2 {
  margin: 0 0 0.5rem;
  color: var(--hp-ink);
  font-size: 1.75rem;
}

.hp-section-head p {
  margin: 0;
  color: var(--hp-muted);
  line-height: 1.65;
}

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

.hp-card {
  border: 1px solid var(--hp-border);
  border-radius: 0.5rem;
  background: var(--hp-surface);
  padding: 1.25rem;
}

.hp-card h2,
.hp-card h3 {
  margin: 0 0 0.5rem;
  color: var(--hp-ink);
  font-size: 1.05rem;
}

.hp-card p {
  margin: 0;
  color: var(--hp-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.hp-card a {
  color: var(--hp-brand);
  font-weight: 700;
  text-decoration: none;
}

.hp-card a:hover {
  color: var(--hp-brand-dark);
  text-decoration: underline;
}

.hp-calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: 1.5rem;
  align-items: start;
}

.hp-form {
  border: 1px solid var(--hp-border);
  border-radius: 0.5rem;
  background: var(--hp-surface);
  padding: 1.5rem;
}

.hp-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hp-field {
  display: grid;
  gap: 0.4rem;
}

.hp-field label {
  color: var(--hp-ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.hp-field input,
.hp-field select {
  min-height: 2.8rem;
  width: 100%;
  border: 1px solid var(--hp-border);
  border-radius: 0.5rem;
  background: var(--hp-bg);
  color: var(--hp-ink);
  padding: 0.65rem 0.75rem;
  font: inherit;
}

.hp-check {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding-top: 1.6rem;
  color: var(--hp-ink);
  font-size: 0.9rem;
}

.hp-result {
  position: sticky;
  top: 5.5rem;
  border-radius: 0.5rem;
  background: var(--hp-brand-dark);
  color: #fff;
  padding: 1.5rem;
}

.hp-result-label {
  margin: 0 0 0.75rem;
  color: #c7d2fe;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hp-result-range {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  font-weight: 800;
}

.hp-result p {
  color: #e0e7ff;
  line-height: 1.55;
}

.hp-breakdown {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.82rem;
}

.hp-breakdown td {
  padding: 0.6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hp-breakdown td:last-child {
  text-align: right;
  font-weight: 700;
}

.hp-state-list {
  columns: 3 16rem;
  column-gap: 1.5rem;
}

.hp-state-block {
  break-inside: avoid;
  margin: 0 0 1rem;
  border: 1px solid var(--hp-border);
  border-radius: 0.5rem;
  background: var(--hp-surface);
  padding: 1rem;
}

.hp-state-block h2 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.hp-city-list {
  margin: 0;
  color: var(--hp-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.hp-ad-slot {
  min-height: 7rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--hp-border);
  background: var(--hp-bg);
  color: #94a3b8;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.hp-consent {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 100;
  max-width: 62rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  border: 1px solid #475569;
  border-radius: 0.5rem;
  background: #0f172a;
  color: #fff;
  padding: 1rem 1.25rem;
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.25);
}

.hp-consent strong {
  font-size: 0.9rem;
}

.hp-consent p {
  margin: 0.3rem 0 0;
  color: #cbd5e1;
  font-size: 0.78rem;
  line-height: 1.5;
}

.hp-consent-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.hp-consent button {
  min-height: 2.4rem;
  border: 1px solid #64748b;
  border-radius: 0.5rem;
  background: transparent;
  color: #fff;
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.hp-consent button[data-choice="accepted"] {
  border-color: var(--hp-brand);
  background: var(--hp-brand);
}

@media (max-width: 900px) {
  .hp-site-nav {
    grid-template-columns: 1fr auto;
  }

  .hp-nav-links {
    display: none;
  }

  .hp-location-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-location-copy {
    grid-column: 1 / -1;
  }

  .hp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-hero-inner,
  .hp-calculator-layout {
    grid-template-columns: 1fr;
  }

  .hp-result {
    position: static;
  }

  .hp-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hp-footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .hp-consent {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .hp-nav-cta {
    padding-inline: 0.75rem;
  }

  .hp-location-inner,
  .hp-grid,
  .hp-form-grid {
    grid-template-columns: 1fr;
  }

  .hp-hero-inner {
    padding: 2.5rem 0 2rem;
  }

  .hp-title {
    font-size: 2.45rem;
  }

  .hp-footer-grid,
  .hp-footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}
