:root {
  color-scheme: light;
  --ink: #162218;
  --muted: #607067;
  --line: #dce6dd;
  --surface: #ffffff;
  --soft: #f3f8f3;
  --green: #168447;
  --green-dark: #0b5c31;
  --lime: #b9df58;
  --shadow: 0 26px 80px rgba(17, 51, 30, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(185, 223, 88, 0.22), transparent 28rem),
    radial-gradient(circle at 92% 84%, rgba(22, 132, 71, 0.16), transparent 32rem),
    #f8fbf7;
}

button, input { font: inherit; }

.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  box-shadow: 0 8px 20px rgba(22, 132, 71, 0.2);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  position: absolute;
  width: 16px;
  height: 7px;
  border-radius: 999px;
  background: white;
  content: "";
  transform: rotate(-34deg);
}

.brand-mark::before { transform: translate(-6px, 5px) rotate(-34deg); }
.brand-mark::after { transform: translate(6px, -5px) rotate(-34deg); opacity: 0.78; }

.hero {
  width: min(760px, 100%);
  margin: 76px auto 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(38px, 7vw, 67px);
  line-height: 1.01;
  letter-spacing: -0.055em;
}

.subheadline {
  max-width: 610px;
  margin: 22px auto 34px;
  color: var(--muted);
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.55;
}

.card, .review-card {
  margin-top: 0;
  padding: clamp(28px, 6vw, 54px);
  border: 1px solid rgba(204, 219, 207, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.step h2, .loading-step h2 {
  margin: 0;
  font-size: clamp(27px, 4vw, 37px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.step > p, .loading-step p {
  margin: 13px auto 28px;
  color: var(--muted);
  line-height: 1.55;
}

#zipForm {
  width: min(470px, 100%);
  margin: 0 auto;
}

#zipInput {
  width: 100%;
  height: 66px;
  padding: 0 22px;
  border: 2px solid var(--line);
  border-radius: 15px;
  outline: none;
  background: var(--surface);
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

#zipInput:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 5px rgba(22, 132, 71, 0.1);
}

#zipInput::placeholder {
  color: #99a49d;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
}

.primary-button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 16px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 13px 26px rgba(22, 132, 71, 0.2);
  color: white;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 17px 34px rgba(22, 132, 71, 0.27);
}

.primary-button:disabled { cursor: not-allowed; opacity: 0.42; box-shadow: none; }

.error {
  min-height: 20px;
  margin: 10px 0 0;
  color: #b42318;
  font-size: 14px;
  font-weight: 650;
}

.back-button {
  display: inline-flex;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

fieldset { margin: 0; padding: 0; border: 0; }

.utility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  text-align: left;
}

.utility-card {
  position: relative;
  display: grid;
  min-height: 112px;
  grid-template-columns: 88px 1fr 23px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.utility-card:hover { transform: translateY(-2px); border-color: #9fc8aa; }
.utility-card:has(input:checked) { border-color: var(--green); background: var(--soft); }
.utility-card input { position: absolute; opacity: 0; pointer-events: none; }

.utility-mark {
  width: 88px;
  height: 58px;
  padding: 3px;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}

.utility-name { font-size: 15px; font-weight: 750; line-height: 1.3; }

.utility-check {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  color: transparent;
  font-size: 13px;
  transition: all 160ms ease;
}

.utility-card:has(input:checked) .utility-check { border-color: var(--green); background: var(--green); color: white; }

.loading-step { padding: 32px 0; text-align: center; }

.spinner {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 24px;
  border: 5px solid #dce9de;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.trust-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.trust-note span { color: var(--green); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.review-shell { max-width: 760px; }
.review-card { margin-top: 76px; text-align: left; }
.review-card h1 { margin: 0; font-size: clamp(36px, 6vw, 58px); }
.review-card > p:not(.eyebrow) { color: var(--muted); font-size: 18px; line-height: 1.55; }
.review-card dl { display: grid; grid-template-columns: 150px 1fr; margin: 30px 0; border-top: 1px solid var(--line); }
.review-card dt, .review-card dd { margin: 0; padding: 15px 0; border-bottom: 1px solid var(--line); }
.review-card dt { color: var(--muted); font-size: 13px; font-weight: 700; }
.review-card dd { font-weight: 750; }
.link-button { max-width: 280px; }

@media (max-width: 620px) {
  .page-shell { width: min(100% - 24px, 1120px); padding-top: 20px; }
  .hero { margin-top: 46px; }
  .card, .review-card { padding: 28px 20px; border-radius: 22px; }
  .utility-grid { grid-template-columns: 1fr; }
  .review-card dl { grid-template-columns: 1fr; }
  .review-card dt { padding-bottom: 3px; border-bottom: 0; }
  .review-card dd { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
