/* ==========================================================================
   Home Efficiency Rebate Group LLC — homeefficiencyrebate.eu.com (TB4)
   Direction: The quiet instrument (seed 396287449)
   Palette: Navy on white (#ffffff, #f4f4f2, #1f2b4d, #6a7186, #f7941d, #e3e1dc)
   Typography: Jost (400, 500, 600, 700)
   ========================================================================== */

:root {
  --her-bg: #ffffff;
  --her-surface: #f4f4f2;
  --her-ink: #1f2b4d;
  --her-muted: #52596d;
  --her-palette-muted: #6a7186;
  --her-accent: #f7941d;
  --her-accent-ink: #1f2b4d;
  --her-footer-bg: #e3e1dc;
  --her-border: #dcdad4;
  --her-success: #1b6b45;
  --her-success-bg: #eef7f2;
  --her-font: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(1.85rem, 1.35rem + 2.2vw, 2.75rem);
  --her-radius: 10px;
}

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

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

body {
  font-family: var(--her-font);
  background-color: var(--her-bg);
  color: var(--her-ink);
  line-height: 1.55;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Advertorial Disclosure Bar */
.her-adv-banner {
  background-color: var(--her-ink);
  color: #ffffff;
  text-align: center;
  padding: 9px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.her-adv-banner span {
  display: inline-block;
  background-color: var(--her-accent);
  color: var(--her-accent-ink);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  margin-right: 8px;
  font-size: 0.75rem;
}

/* Header */
.her-header {
  background-color: var(--her-bg);
  border-bottom: 1px solid var(--her-border);
  padding: 16px 0;
}

.her-shell {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 22px;
}

.her-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.her-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--her-ink);
}

.her-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: contain;
  display: block;
}

.her-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.her-brand-title {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--her-ink);
}

.her-brand-sub {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--her-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.her-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.her-nav a {
  color: var(--her-ink);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.her-nav a:hover,
.her-nav a[aria-current="page"] {
  border-bottom-color: var(--her-accent);
}

/* Main Stage */
.her-main {
  flex: 1;
  padding: 36px 0 64px;
}

.her-hero-head {
  margin-bottom: 26px;
}

.her-program-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--her-surface);
  color: var(--her-ink);
  border: 1px solid var(--her-border);
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}

.her-program-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--her-accent);
}

.her-h1 {
  font-size: var(--step-head);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--her-ink);
  margin-bottom: 14px;
  text-wrap: balance;
}

.her-lead {
  font-size: var(--step-body);
  color: var(--her-muted);
  max-width: 66ch;
}

/* Moderator Safe-Guard Notice Bar */
.her-privacy-guard {
  background-color: var(--her-success-bg);
  border: 1px solid #b9dec9;
  color: var(--her-success);
  padding: 12px 16px;
  border-radius: var(--her-radius);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.her-privacy-guard svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* Interactive 3-Step Quiz Card */
.her-quiz-shell {
  background-color: var(--her-surface);
  border: 2px solid var(--her-ink);
  border-radius: 14px;
  padding: 30px 28px;
  margin-bottom: 40px;
}

.her-quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.her-step-badge {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--her-ink);
  background-color: #ffffff;
  border: 1px solid var(--her-border);
  padding: 4px 12px;
  border-radius: 6px;
}

.her-step-time {
  font-size: 0.875rem;
  color: var(--her-muted);
  font-weight: 500;
}

.her-progress-track {
  width: 100%;
  height: 8px;
  background-color: #dcdad4;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 26px;
}

.her-progress-fill {
  height: 100%;
  width: 33.33%;
  background-color: var(--her-accent);
  transition: width 0.28s ease;
}

.her-quiz-step {
  display: none;
}

.her-quiz-step.is-active {
  display: block;
}

.her-question-title {
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.7rem);
  font-weight: 700;
  color: var(--her-ink);
  line-height: 1.25;
  margin-bottom: 8px;
}

.her-question-helper {
  font-size: 0.95rem;
  color: var(--her-muted);
  margin-bottom: 22px;
}

.her-options-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.her-option-btn {
  appearance: none;
  width: 100%;
  background-color: #ffffff;
  color: var(--her-ink);
  border: 2px solid var(--her-ink);
  border-radius: var(--her-radius);
  padding: 18px 20px;
  font-family: var(--her-font);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: background-color 0.16s ease, transform 0.12s ease, border-color 0.16s ease;
}

.her-option-btn:hover,
.her-option-btn:focus-visible {
  background-color: var(--her-accent);
  color: var(--her-accent-ink);
  border-color: var(--her-ink);
  transform: translateY(-1px);
  outline: none;
}

.her-option-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: var(--her-surface);
  color: var(--her-ink);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.her-option-btn:hover .her-option-arrow {
  background-color: var(--her-ink);
  color: #ffffff;
}

.her-step-back {
  margin-top: 16px;
  background: none;
  border: none;
  color: var(--her-muted);
  font-family: var(--her-font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 0;
}

.her-step-back:hover {
  color: var(--her-ink);
}

/* Result Panel */
.her-result-panel {
  display: none;
  background-color: #ffffff;
  border: 2px solid var(--her-ink);
  border-radius: 12px;
  padding: 26px 24px;
}

.her-result-panel.is-active {
  display: block;
}

.her-result-kicker {
  display: inline-block;
  background-color: var(--her-success-bg);
  color: var(--her-success);
  border: 1px solid #b9dec9;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.her-result-heading {
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.8rem);
  font-weight: 700;
  color: var(--her-ink);
  line-height: 1.22;
  margin-bottom: 12px;
}

.her-result-summary {
  font-size: 1.02rem;
  color: var(--her-ink);
  margin-bottom: 16px;
}

.her-selection-recap {
  background-color: var(--her-surface);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 0.92rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.her-recap-item strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--her-muted);
}

.her-recap-item span {
  font-weight: 600;
  color: var(--her-ink);
}

.her-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: var(--her-accent);
  color: var(--her-accent-ink);
  border: 2px solid var(--her-ink);
  border-radius: var(--her-radius);
  padding: 18px 22px;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.16s ease, transform 0.12s ease;
}

.her-primary-cta:hover {
  background-color: #e6830c;
  transform: translateY(-1px);
}

.her-result-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--her-muted);
  text-align: center;
}

.her-reset-btn {
  margin-top: 14px;
  background: none;
  border: none;
  color: var(--her-muted);
  font-family: var(--her-font);
  font-size: 0.875rem;
  text-decoration: underline;
  cursor: pointer;
}

/* 3 Everyday Household Benefits Block */
.her-benefits-section {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--her-border);
}

.her-section-h2 {
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.65rem);
  font-weight: 700;
  color: var(--her-ink);
  margin-bottom: 18px;
}

.her-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.her-benefit-card {
  background-color: var(--her-surface);
  border: 1px solid var(--her-border);
  border-radius: var(--her-radius);
  padding: 20px 18px;
}

.her-benefit-num {
  display: inline-block;
  background-color: var(--her-ink);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.her-benefit-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--her-ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.her-benefit-card p {
  font-size: 0.94rem;
  color: var(--her-muted);
  line-height: 1.5;
}

/* Legal & Secondary Pages */
.her-doc-card {
  background-color: var(--her-surface);
  border: 1px solid var(--her-border);
  border-radius: 12px;
  padding: 32px 28px;
}

.her-doc-card h1 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--her-ink);
}

.her-doc-updated {
  font-size: 0.9rem;
  color: var(--her-muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--her-border);
}

.her-doc-card h2 {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--her-ink);
  margin: 24px 0 10px;
}

.her-doc-card p,
.her-doc-card li {
  font-size: 1rem;
  color: var(--her-ink);
  margin-bottom: 12px;
}

.her-doc-card ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.her-entity-box {
  background-color: #ffffff;
  border: 2px solid var(--her-ink);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 20px 0;
}

.her-entity-box p {
  margin-bottom: 6px;
  font-size: 0.96rem;
}

.her-entity-box p:last-child {
  margin-bottom: 0;
}

/* Footer */
.her-footer {
  background-color: var(--her-footer-bg);
  color: var(--her-ink);
  border-top: 1px solid var(--her-border);
  padding: 40px 0 32px;
  font-size: 0.875rem;
}

.her-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #c9c6be;
  margin-bottom: 20px;
}

.her-footer-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--her-ink);
}

.her-footer-meta p {
  margin-bottom: 5px;
  color: var(--her-ink);
}

.her-footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.her-footer-links a {
  color: var(--her-ink);
  font-weight: 600;
  text-decoration: underline;
}

.her-footer-disclaimer {
  font-size: 0.8125rem;
  color: var(--her-ink);
  line-height: 1.55;
}

.her-footer-disclaimer p + p {
  margin-top: 8px;
}

@media (max-width: 720px) {
  .her-benefits-grid {
    grid-template-columns: 1fr;
  }
  .her-footer-grid {
    grid-template-columns: 1fr;
  }
  .her-quiz-shell {
    padding: 22px 18px;
  }
  .her-option-btn {
    padding: 15px 16px;
    font-size: 1.02rem;
  }
}
