:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #102838;
  --muted: #536875;
  --paper: #f1f7f8;
  --surface: #ffffff;
  --line: #d4e3e5;
  --brand: #05717a;
  --brand-dark: #044c54;
  --brand-soft: #def3f3;
  --accent: #c9682f;
  --accent-soft: #fff0e7;
  --warning: #80580a;
  --warning-soft: #fff6d8;
  --danger: #9d382b;
  --danger-soft: #fff0ed;
  --shadow: 0 1.25rem 3.5rem rgba(15, 43, 55, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.review-banner {
  padding: 0.48rem 1rem;
  border-bottom: 1px solid #efd18e;
  background: #fff5cf;
  color: #684b12;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.site-header {
  display: flex;
  width: min(1120px, calc(100% - 2rem));
  min-height: 4.25rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.brand-mark {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.62rem;
  background: var(--brand);
  color: #fff;
  font-size: 1rem;
}

.header-note {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 720;
}

main {
  display: block;
}

.hero {
  display: grid;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 3.25rem) 0 2.25rem;
  gap: clamp(1.5rem, 5vw, 5rem);
}

.hero-copy {
  align-self: center;
}

.eyebrow {
  display: flex;
  margin: 0 0 0.72rem;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand);
  font-size: 0.79rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.45rem;
  height: 0.18rem;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

h1,
h2,
p,
figure {
  margin-top: 0;
}

h1 {
  max-width: 13ch;
  margin-bottom: 0.9rem;
  font-size: clamp(2.35rem, 7.4vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 42rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.expectation-card {
  display: flex;
  max-width: 42rem;
  margin-bottom: 1rem;
  padding: 0.82rem 0.9rem;
  align-items: flex-start;
  gap: 0.72rem;
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line));
  border-radius: 0.88rem;
  background: color-mix(in srgb, var(--brand-soft) 65%, white);
}

.expectation-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.expectation-card strong {
  color: var(--ink);
}

.expectation-icon {
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.9rem;
}

.trust-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.52rem;
  list-style: none;
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 690;
}

.trust-list li::before {
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  content: "✓";
  font-size: 0.72rem;
  font-weight: 900;
}

.photo-card {
  position: relative;
  display: none;
  max-width: 39rem;
  height: 10rem;
  margin: 1.4rem 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--brand-soft);
}

.photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 47%;
}

.photo-card--drain img {
  object-position: 50% 58%;
}

.photo-card--water-heater img {
  object-position: 50% 42%;
}

.photo-card figcaption {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: rgba(9, 30, 40, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 750;
}

.action-card {
  align-self: start;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand) 23%, var(--line));
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.step-heading {
  display: flex;
  min-height: 5.5rem;
  padding: 1.2rem 1.2rem 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, #fff, color-mix(in srgb, var(--brand-soft) 45%, white));
}

.step-kicker {
  margin-bottom: 0.2rem;
  color: var(--brand);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.step-heading h2,
.result-card h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.step-dots {
  display: flex;
  gap: 0.34rem;
}

.step-dots span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--line);
}

.step-dots span.is-current {
  background: var(--brand);
  box-shadow: 0 0 0 0.25rem var(--brand-soft);
}

.form-step {
  min-width: 0;
  margin: 0;
  padding: 1.2rem;
  border: 0;
}

.field {
  display: grid;
  margin-bottom: 0.9rem;
  gap: 0.38rem;
}

.field label,
.question-label {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 780;
}

input,
select {
  width: 100%;
  min-height: 3rem;
  border: 1px solid #afc4ca;
  border-radius: 0.72rem;
  background: #fff;
  color: var(--ink);
  padding: 0.68rem 0.78rem;
  outline: none;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  border-color: var(--brand);
  outline: 3px solid color-mix(in srgb, var(--brand) 24%, transparent);
  outline-offset: 2px;
}

[aria-invalid="true"] {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.choice-group {
  margin-bottom: 0.9rem;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.42rem;
  gap: 0.5rem;
}

.choice-row label {
  position: relative;
  display: flex;
  min-height: 2.75rem;
  cursor: pointer;
}

.choice-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-row span {
  display: flex;
  width: 100%;
  padding: 0.62rem 0.68rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #afc4ca;
  border-radius: 0.7rem;
  background: #fff;
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 720;
  line-height: 1.25;
  text-align: center;
}

.choice-row input:focus-visible + span {
  border-color: var(--brand);
  outline: 3px solid color-mix(in srgb, var(--brand) 24%, transparent);
  outline-offset: 2px;
}

.choice-row input:checked + span {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.primary-button,
.secondary-button,
.call-button,
.button-link {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  font-weight: 820;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.primary-button {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0.55rem 1.15rem rgba(5, 113, 122, 0.18);
}

.primary-button:hover {
  background: var(--brand-dark);
}

.secondary-button {
  padding: 0.72rem 0.9rem;
  border: 1px solid #afc4ca;
  background: #fff;
  color: var(--brand-dark);
}

.secondary-button--wide {
  width: 100%;
  margin-top: 0.65rem;
}

.button-row {
  display: grid;
  grid-template-columns: minmax(5rem, 0.4fr) minmax(0, 1.6fr);
  gap: 0.65rem;
}

.microcopy {
  margin: 0.68rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.form-error {
  margin: 1rem 1.2rem 0;
  padding: 0.68rem 0.78rem;
  border: 1px solid color-mix(in srgb, var(--danger) 28%, var(--line));
  border-radius: 0.65rem;
  background: var(--danger-soft);
  color: #75281f;
  font-size: 0.86rem;
  font-weight: 680;
}

.result-card {
  padding: 1.45rem 1.2rem 1.2rem;
  text-align: center;
}

.result-icon {
  display: grid;
  width: 2.9rem;
  height: 2.9rem;
  margin: 0 auto 0.85rem;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 1.1rem;
  font-weight: 900;
}

.result-card[data-state="emergency"] .result-icon,
.result-card[data-state="unsupported"] .result-icon {
  background: var(--danger-soft);
  color: var(--danger);
}

.result-card p {
  margin: 0.55rem auto 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.call-button {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--brand);
  color: #fff;
}

.safety-note {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 2.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid #efd18e;
  border-radius: 0.85rem;
  background: var(--warning-soft);
  color: #654a16;
  font-size: 0.84rem;
}

.safety-note strong {
  color: #4c370e;
}

.site-footer {
  padding: 1.35rem 1rem 1.6rem;
  border-top: 1px solid var(--line);
  background: #e8f1f2;
}

.site-footer p {
  width: min(960px, 100%);
  margin: 0 auto;
  color: #5a6b74;
  font-size: 0.76rem;
}

.review-index {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at 8% 12%, rgba(201, 104, 47, 0.14), transparent 24rem),
    linear-gradient(145deg, #fff, var(--paper));
}

.route-picker {
  width: min(42rem, 100%);
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  background: #fff;
  box-shadow: var(--shadow);
}

.route-picker h1 {
  max-width: 14ch;
  font-size: clamp(2rem, 7vw, 3.6rem);
}

.route-picker > p:not(.review-pill) {
  color: var(--muted);
}

.review-pill {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.58rem;
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.route-list {
  display: grid;
  margin-top: 1.25rem;
  gap: 0.7rem;
}

.route-list a {
  display: grid;
  padding: 0.9rem 1rem;
  gap: 0.12rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  color: var(--ink);
  text-decoration: none;
}

.route-list a:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.route-list span {
  color: var(--muted);
  font-size: 0.84rem;
}

.button-link {
  padding: 0.75rem 1rem;
  background: var(--brand);
  color: #fff;
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.78fr);
    align-items: center;
  }

  .photo-card {
    display: block;
  }

  .step-heading,
  .form-step,
  .result-card {
    padding-right: 1.45rem;
    padding-left: 1.45rem;
  }

  .form-error {
    margin-right: 1.45rem;
    margin-left: 1.45rem;
  }
}

@media (max-width: 520px) {
  .header-note {
    display: none;
  }

  .site-header {
    min-height: 3.7rem;
  }

  .hero {
    width: min(100% - 1.25rem, 1120px);
  }

  .trust-list li:nth-child(2) {
    display: none;
  }

  .choice-row {
    grid-template-columns: 1fr;
  }

  .button-row {
    grid-template-columns: 1fr;
  }

  .button-row .secondary-button {
    order: 2;
  }

  .safety-note {
    width: min(100% - 1.25rem, 1120px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
