:root {
  --bg: #f8faf7;
  --surface: #ffffff;
  --text: #17211b;
  --muted: #5d6b61;
  --line: #dbe5dc;
  --accent: #16784f;
  --accent-dark: #0f5839;
  --soft: #eaf7f0;
  --cream: #fff8ea;
  --warn: #ad6200;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.nav,
.site-footer {
  display: flex;
  gap: 18px;
}

.nav a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.hero {
  background:
    linear-gradient(90deg, rgba(248, 250, 247, 0.99) 0%, rgba(248, 250, 247, 0.9) 43%, rgba(248, 250, 247, 0.24) 100%),
    url("assets/hero-bills.png") center right / cover no-repeat;
  min-height: 560px;
  padding: 78px 24px 54px;
}

.hero-content {
  margin: 0 auto;
  max-width: 1080px;
}

.hero h1 {
  font-size: 48px;
  letter-spacing: 0;
  line-height: 1.18;
  margin: 8px 0 18px;
  max-width: 720px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 690px;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-mini-panel {
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 24px;
  max-width: 520px;
  padding: 16px 18px;
}

.hero-mini-panel strong {
  color: var(--accent-dark);
  display: block;
  margin-bottom: 8px;
}

.hero-mini-panel ol {
  margin: 0;
  padding-left: 22px;
}

.hero-proof span {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
}

.primary-button,
.secondary-button,
.purchase-button,
.ghost-button {
  align-items: center;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  text-decoration: none;
}

.primary-button,
.purchase-button {
  background: var(--accent);
  color: white;
}

.primary-button:hover,
.purchase-button:hover {
  background: var(--accent-dark);
}

.secondary-button {
  background: var(--soft);
  color: var(--accent-dark);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-dark);
}

.section {
  margin: 0 auto;
  max-width: 1080px;
  padding: 42px 24px;
}

.section-heading {
  margin-bottom: 18px;
}

.section h2 {
  font-size: 28px;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 6px 0 0;
}

.quick-stats {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin: -38px auto 0;
  max-width: 1080px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.quick-stats > div,
.purchase-box,
.result,
.diagnosis-form,
.feature-grid article,
.pdf-preview > div,
.comparison > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quick-stats > div {
  box-shadow: 0 14px 34px rgba(23, 33, 27, 0.08);
  padding: 20px;
}

.panel-label {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

.quick-stats strong {
  display: block;
  font-size: 30px;
  line-height: 1.2;
  margin-top: 4px;
}

.quick-stats p {
  color: var(--muted);
  margin: 8px 0 0;
}

.diagnosis-form {
  display: grid;
  gap: 22px;
  padding: 24px;
}

.calculator-form {
  margin-bottom: 18px;
}

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

.calculator-result-grid > div {
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.calculator-result-grid span {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

.calculator-result-grid strong {
  color: var(--accent-dark);
  display: block;
  font-size: 26px;
  line-height: 1.25;
  margin-top: 4px;
}

.field {
  display: grid;
  gap: 8px;
  max-width: 420px;
}

input[type="number"] {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  min-height: 44px;
  padding: 8px 10px;
  width: 100%;
}

.field small {
  color: var(--muted);
  font-size: 13px;
}

select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  min-height: 44px;
  padding: 8px 10px;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
}

legend {
  font-weight: 800;
  padding: 0 6px;
}

input[type="checkbox"] {
  margin-right: 8px;
}

.result {
  margin-top: 18px;
  padding: 24px;
}

.result.low {
  border-left: 5px solid var(--accent);
}

.result.middle {
  border-left: 5px solid var(--warn);
}

.result.high {
  border-left: 5px solid var(--danger);
}

.result h3 {
  font-size: 26px;
  letter-spacing: 0;
  margin: 6px 0 8px;
}

.result-headline {
  background: #f7fbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 18px 0;
  padding: 16px;
}

.result-headline span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.result-headline strong {
  color: var(--accent-dark);
  display: block;
  font-size: 22px;
  line-height: 1.35;
  margin-top: 4px;
}

.result-meter {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 92px minmax(120px, 1fr) 64px;
  margin: 20px 0;
}

.meter-track {
  background: #e7eee8;
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.meter-bar {
  background: var(--accent);
  border-radius: inherit;
  height: 100%;
  transition: width 180ms ease;
  width: 20%;
}

.result.middle .meter-bar {
  background: var(--warn);
}

.result.high .meter-bar {
  background: var(--danger);
}

.savings-box {
  background: var(--cream);
  border: 1px solid #f1dfb5;
  border-radius: 8px;
  margin: 18px 0;
  padding: 18px;
}

.savings-box span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.savings-box strong {
  color: #7a4900;
  display: block;
  font-size: 28px;
  line-height: 1.25;
  margin-top: 4px;
}

.savings-box p {
  color: var(--muted);
  margin: 8px 0 0;
}

.result-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0;
}

.result-card {
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.result-card span {
  color: var(--accent-dark);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.result-card strong {
  display: block;
  margin-bottom: 6px;
}

.result-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.result-steps {
  background: #fffdf8;
  border: 1px solid #edd9aa;
  border-radius: 8px;
  margin: 18px 0;
  padding: 18px;
}

.result-steps strong {
  color: #7a4900;
}

.result-steps ol {
  margin: 8px 0 0;
  padding-left: 22px;
}

.result-next {
  align-items: center;
  background: var(--soft);
  border-radius: 8px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px;
}

.result-next p {
  margin: 6px 0 0;
}

.product {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.product-kicker {
  color: var(--accent-dark);
  font-weight: 800;
}

.price {
  color: var(--accent-dark);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  margin: 0 0 14px;
}

.check-list {
  padding-left: 20px;
}

.mini-list {
  color: var(--text);
  font-size: 14px;
  margin: 12px 0;
  padding-left: 18px;
}

.sample-sheet {
  background: #f8fbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 18px;
  overflow: hidden;
}

.sample-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 0.7fr 1.4fr 1.4fr;
}

.sample-row span {
  border-top: 1px solid var(--line);
  font-size: 13px;
  padding: 10px 12px;
}

.sample-row:first-child span {
  border-top: 0;
}

.sample-head {
  background: #eaf4ee;
  color: var(--accent-dark);
  font-weight: 900;
}

.purchase-box {
  align-self: start;
  background: #fffdf8;
  border-color: #edd9aa;
  padding: 20px;
}

.purchase-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
}

.purchase-price {
  color: #7a4900;
  display: block;
  font-size: 34px;
  line-height: 1;
  margin: 8px 0 12px;
}

.purchase-button {
  display: flex;
  margin-top: 12px;
  width: 100%;
}

.purchase-button.is-disabled {
  background: #9aa7a0;
  cursor: not-allowed;
}

.note {
  color: var(--muted);
  font-size: 13px;
}

.pdf-preview {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
}

.pdf-preview > div {
  background: #fbfdfb;
  padding: 16px;
}

.pdf-preview span,
.comparison-label {
  color: var(--accent-dark);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.pdf-preview p {
  color: var(--muted);
  font-size: 14px;
  margin: 6px 0 0;
}

.comparison {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

.comparison > div {
  padding: 22px;
}

.comparison-label.good {
  color: var(--accent);
}

.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid article {
  padding: 20px;
}

.feature-grid h3 {
  margin-top: 0;
}

.article-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  display: block;
  padding: 20px;
  text-decoration: none;
}

.article-card:hover {
  border-color: var(--accent);
}

.article-card span {
  color: var(--accent-dark);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.article-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.45;
}

.article-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0 0;
}

.article-page {
  margin: 0 auto;
  max-width: 900px;
  padding: 42px 24px 60px;
}

.article-hero {
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  padding-bottom: 24px;
}

.article-hero h1 {
  font-size: 38px;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 8px 0 14px;
}

.article-lead {
  color: var(--muted);
  font-size: 18px;
}

.article-body h2 {
  font-size: 24px;
  letter-spacing: 0;
  margin-top: 34px;
}

.article-body h3 {
  font-size: 19px;
  margin: 24px 0 8px;
}

.article-body p,
.article-body li {
  color: #334239;
}

.article-cta {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 34px;
  padding: 22px;
}

.article-cta strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.local-entry {
  align-items: center;
  background: #f7fbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin-bottom: 42px;
}

.local-entry h2 {
  margin-top: 6px;
}

.local-entry p {
  color: var(--muted);
  margin-bottom: 0;
}

.related-products {
  border-top: 1px solid var(--line);
}

.related-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.related-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.related-grid span {
  color: var(--accent-dark);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.related-grid h3 {
  font-size: 21px;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 0 0 10px;
}

.related-grid p {
  color: var(--muted);
  margin: 0 0 16px;
}

.alt-cta {
  background: #fffdf8;
  border-color: #edd9aa;
}

.local-hero {
  background:
    linear-gradient(90deg, rgba(248, 250, 247, 0.99) 0%, rgba(248, 250, 247, 0.9) 48%, rgba(248, 250, 247, 0.2) 100%),
    url("assets/hero-bills.png") center right / cover no-repeat;
  padding: 70px 24px 56px;
}

.local-hero-inner {
  margin: 0 auto;
  max-width: 1040px;
}

.local-hero h1 {
  font-size: 44px;
  letter-spacing: 0;
  line-height: 1.16;
  margin: 8px 0 16px;
  max-width: 760px;
}

.local-hero .lead {
  max-width: 660px;
}

.local-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}

.local-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.local-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.local-grid h3 {
  margin-top: 0;
}

.local-steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.local-steps > div,
.local-compare > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.local-steps span {
  align-items: center;
  background: var(--accent);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  margin-bottom: 12px;
  width: 34px;
}

.local-steps strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.local-steps p {
  color: var(--muted);
  margin: 0;
}

.local-compare {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

.local-compare span {
  color: var(--accent-dark);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.local-compare h3 {
  font-size: 22px;
  margin: 0 0 12px;
}

.local-compare ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.local-check {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 22px;
}

.local-check label {
  align-items: flex-start;
  display: flex;
  gap: 8px;
}

.local-check fieldset {
  background: #fbfdfb;
}

.local-result {
  background: #fffdf8;
  border: 1px solid #edd9aa;
  border-radius: 8px;
  margin-top: 18px;
  padding: 20px;
}

.local-result strong {
  color: #7a4900;
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.local-next-action {
  background: white;
  border: 1px solid #edd9aa;
  border-radius: 8px;
  margin: 16px 0;
  padding: 14px;
}

.local-next-action span {
  color: #7a4900;
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 4px;
}

.local-next-action p {
  margin: 0;
}

.local-advice-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 0;
}

.local-advice-list li {
  background: white;
  border: 1px solid #edd9aa;
  border-radius: 8px;
  display: block;
  padding: 12px;
}

.local-advice-list strong {
  font-size: 15px;
  margin-bottom: 4px;
}

.local-advice-list span {
  color: var(--muted);
  display: block;
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  justify-content: center;
  padding: 28px 24px;
}

.legal-page,
.thanks-page {
  max-width: 840px;
}

.legal-list {
  display: grid;
  gap: 0;
  margin-top: 28px;
}

.legal-list dt,
.legal-list dd {
  border-top: 1px solid rgba(36, 66, 58, 0.18);
  margin: 0;
  padding: 14px 0;
}

.legal-list dt {
  color: #23463d;
  font-weight: 700;
}

.legal-list dd {
  color: #4f635d;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 18px;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(248, 250, 247, 0.99) 0%, rgba(248, 250, 247, 0.92) 56%, rgba(248, 250, 247, 0.28) 100%),
      url("assets/hero-bills.png") center bottom / cover no-repeat;
    min-height: 620px;
    padding-top: 42px;
  }

  .hero h1 {
    font-size: 33px;
  }

  .quick-stats,
  .product,
  .feature-grid,
  .article-grid,
  .related-grid,
  .local-grid,
  .local-steps,
  .local-compare,
  .calculator-grid,
  .calculator-result-grid,
  .result-cards,
  .pdf-preview,
  .sample-row,
  .comparison {
    grid-template-columns: 1fr;
  }

  .local-entry {
    align-items: stretch;
    flex-direction: column;
  }

  .local-hero h1 {
    font-size: 33px;
  }

  .quick-stats {
    margin-top: 0;
    padding-top: 18px;
  }

  .result-meter {
    grid-template-columns: 1fr;
  }

  .result-next {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer {
    align-items: center;
    flex-direction: column;
  }
}
