:root {
  --paper: #f3f0e8;
  --paper-2: #e8e2d6;
  --card: #fffcf7;
  --ink: #1c1915;
  --muted: #5c564c;
  --line: #d8d0c3;
  --green: #14543d;
  --green-deep: #0e3d2c;
  --dark: #14241e;
  --dark-soft: #1d332a;
  --cream: #f3f0e8;
  --brass: #e4c56b;
  --brass-ink: #2a220c;
  --danger: #8c2f2f;
  --max: 1120px;
  --pad: 32px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 17px/1.6 "Public Sans", "Segoe UI", sans-serif;
}
img { max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, .brand-name em {
  font-family: Newsreader, Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.03em;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; margin-bottom: 18px; }
h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; margin-bottom: 12px; }
h3 { font-size: 26px; line-height: 1.2; margin-bottom: 8px; }

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  background: white;
  color: var(--ink);
  padding: 12px 16px;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 14px var(--pad);
  background: rgba(243, 240, 232, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { width: 28px; height: 28px; color: var(--green); flex: none; }
.brand-name {
  font-family: "Public Sans", sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.04em;
}
.brand-name em {
  font-style: italic;
  font-weight: 500;
  font-size: 1.12em;
}
.site-header nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.site-header nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.site-header nav a:hover { color: var(--green); }
.header-action {
  text-decoration: none;
  background: var(--green);
  color: white;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 999px;
}
.header-action:hover { background: var(--green-deep); }

.hero-band { background: var(--dark); color: var(--cream); }
.hero {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding: 72px 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 56px;
  align-items: end;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}
.lede { color: var(--muted); font-size: 18px; max-width: 42rem; }
.hero .lede { color: #d5e0d8; max-width: 38rem; }
.hero-steps {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: #c5d2ca;
  font-size: 15px;
}
.hero-steps li { display: flex; gap: 10px; }
.hero-steps span {
  font-variant-numeric: tabular-nums;
  color: var(--brass);
  font-weight: 700;
}

#zip-form { margin-top: 28px; }
#zip-form > label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.zip-field {
  display: flex;
  gap: 8px;
  align-items: center;
  background: white;
  color: var(--ink);
  border-radius: 14px;
  padding: 6px;
  max-width: 520px;
}
.zip-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 12px;
  font-size: 16px;
  outline: none;
}
.zip-field:focus-within { box-shadow: 0 0 0 3px var(--brass); }
.zip-field:has(input:user-invalid) { box-shadow: 0 0 0 3px #e7a3a3; }
.zip-field button, .button {
  border: 0;
  background: var(--brass);
  color: var(--brass-ink);
  font-weight: 700;
  border-radius: 10px;
  padding: 12px 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.zip-field button:hover, .button:hover { filter: brightness(0.96); }
#zip-note, .fine { color: var(--muted); font-size: 13px; line-height: 1.55; }
.hero #zip-note { color: #b7c6bd; margin: 10px 0 0; max-width: 520px; }

.type-board {
  background: var(--dark-soft);
  border: 1px solid #2c463b;
  border-radius: 18px;
  padding: 22px 22px 8px;
}
.type-board h2 { font-size: 28px; margin-bottom: 6px; }
.type-board ol { list-style: none; margin: 0; padding: 0; }
.type-board li {
  padding: 14px 0;
  border-top: 1px solid #2c463b;
}
.type-board h3 { font-size: 20px; margin-bottom: 4px; }
.type-board p { margin: 0; color: #c5d2ca; font-size: 14.5px; }

.section { padding: 76px 0; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 28px;
}
.section-heading h2 { margin-bottom: 0; }
.section-heading p:last-child { max-width: 360px; margin: 0; color: var(--muted); font-size: 15px; }
.section .eyebrow { color: var(--green); }

.filter-bar, .priority-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.filter-bar button, .priority-tabs button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.filter-bar button.selected, .priority-tabs button.selected {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.provider-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.provider-card[hidden] { display: none !important; }
.provider-card:hover { border-color: var(--green); }
.card-type {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.provider-card h3 { font-size: 32px; }
.provider-card > p:not(.card-type) { color: var(--muted); font-size: 15.5px; flex: 1; }
.provider-card a {
  display: inline-flex;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--green);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.provider-card a:hover { text-decoration: underline; }

.type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.section.follow { padding-top: 8px; }
.type-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.type-card h3 { font-size: 24px; }
.type-card p { color: var(--muted); font-size: 15px; }
.type-card ul { margin: 0; padding-left: 18px; color: var(--ink); font-size: 14.5px; }
.type-card li { margin: 6px 0; }
.type-card li::marker { color: var(--green); }

.compare-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: start;
}
.compare-layout > div > p { color: var(--muted); max-width: 38rem; }
.recommendation {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
.rec-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green);
}
.recommendation h3 { font-size: 30px; margin: 12px 0; }
.recommendation p, .recommendation li { color: var(--muted); font-size: 15.5px; }
.recommendation ul { margin: 0 0 8px; padding-left: 18px; }
.recommendation li { margin: 6px 0; }
.recommendation a {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.cost-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cost-fields fieldset {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px 22px;
  background: var(--card);
  min-width: 0;
}
.cost-fields legend {
  font-family: Newsreader, Georgia, serif;
  font-size: 26px;
  padding: 0 8px;
}
.cost-fields label {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
}
.cost-fields input {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 12px;
  font-size: 16px;
}
.cost-fields small { font-weight: 450; color: var(--muted); }
#cost-form > button {
  margin-top: 16px;
  border: 0;
  background: var(--green);
  color: white;
  font-weight: 700;
  border-radius: 10px;
  padding: 12px 16px;
}
#cost-form > button:hover { background: var(--green-deep); }
.cost-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}
.cost-totals article {
  background: var(--dark);
  color: var(--cream);
  border-radius: 16px;
  padding: 20px 22px;
}
.cost-totals h3 { font-size: 24px; }
.cost-totals p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 0;
  color: #c5d2ca;
  font-size: 15px;
}
.cost-totals strong { color: white; font-size: 18px; }
#cost-difference { font-weight: 700; color: var(--green); }

.guide-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.guide-index li { border-bottom: 1px solid var(--line); }
.guide-index a {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 22px 0;
  text-decoration: none;
}
.guide-index a:hover h3 { color: var(--green); }
.guide-index span { color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; }
.guide-index h3 { font-size: 26px; margin: 0; }
.guide-index p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.guide-go { color: var(--green); font-weight: 700; font-size: 14px; }

.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 32px 18px 0;
  font-weight: 700;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:after {
  content: "+";
  position: absolute;
  right: 0;
  top: 16px;
  color: var(--green);
  font-size: 22px;
}
.faq-list details[open] summary:after { content: "–"; }
.faq-list details p { margin: 0 0 18px; color: var(--muted); max-width: 68ch; }

.closing {
  background: var(--dark);
  color: var(--cream);
  text-align: center;
  padding: 72px var(--pad);
}
.closing h2 { max-width: 16ch; margin: 0 auto 18px; }
.closing .button { background: var(--brass); color: var(--brass-ink); }

.site-footer {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding: 36px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: start;
}
.site-footer .brand + p { color: var(--muted); max-width: 36rem; font-size: 15px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer nav a { color: var(--green); font-weight: 600; font-size: 15px; }
.site-footer .fine {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 16px;
}

.page-hero { padding: 48px 0 28px; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { color: var(--muted); max-width: 46rem; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--green); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.8fr);
  gap: 48px;
  padding-bottom: 72px;
}
.article-copy h2 { font-size: 30px; margin-bottom: 8px; }
.article-copy section + section { margin-top: 28px; }
.article-copy p { color: var(--muted); max-width: 68ch; }
.article-copy a { color: var(--green); }
.article-aside {
  align-self: start;
  position: sticky;
  top: 96px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
}
.article-aside a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}
.article-aside a:hover { text-decoration: underline; }
.not-found { padding: 72px 0 96px; }
.not-found .lede { color: var(--muted); }

@media (max-width: 980px) {
  .hero, .compare-layout, .cost-fields, .cost-totals, .article-layout {
    grid-template-columns: 1fr;
  }
  .article-aside { position: static; }
  .section-heading, .footer-top { display: block; }
  .section-heading p:last-child { margin-top: 12px; max-width: none; }
  .site-footer nav { margin-top: 16px; }
}

@media (max-width: 720px) {
  :root { --pad: 18px; }
  .site-header { flex-wrap: wrap; gap: 12px 16px; padding: 12px var(--pad); }
  .site-header nav {
    order: 3;
    width: 100%;
    margin: 0;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-size: 14px;
  }
  .header-action { margin-left: auto; }
  .hero { padding: 40px 0 48px; gap: 28px; }
  h1 { font-size: 38px; }
  .zip-field { flex-direction: column; align-items: stretch; }
  .provider-grid, .type-grid { grid-template-columns: 1fr; }
  .guide-index a { grid-template-columns: 36px 1fr; }
  .guide-go { display: none; }
  .section { padding: 52px 0; }
}

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