:root {
  --bg: #f5f7fa;
  --bg-deep: #eef3f7;
  --surface: rgba(255,255,255,.92);
  --surface-solid: #ffffff;
  --surface-soft: #fbfdff;
  --ink: #15314b;
  --muted: #677888;
  --border: #d9e3eb;
  --border-strong: #c8d6e2;

  --navy: #0c2744;
  --navy-soft: #edf3f8;
  --navy-line: rgba(12, 39, 68, .18);

  --blue: #2590d7;
  --blue-soft: #edf7fd;
  --blue-line: rgba(37, 144, 215, .22);

  --red: #e6371e;
  --red-soft: #fff0ec;
  --red-line: rgba(230, 55, 30, .22);

  --shadow-card: 0 18px 48px rgba(12, 39, 68, .08);
  --shadow-float: 0 10px 28px rgba(12, 39, 68, .08);
  --shadow-hover: 0 14px 34px rgba(12, 39, 68, .10);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(37, 144, 215, .07), transparent 18%),
    radial-gradient(circle at 87% 10%, rgba(230, 55, 30, .06), transparent 17%),
    radial-gradient(circle at 50% 120%, rgba(12, 39, 68, .035), transparent 34%),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 48%, var(--bg-deep) 100%);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(225, 232, 238, .84);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: min(100% - 32px, 760px);
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.brand img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(12, 39, 68, .08);
}
.secure-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  color: #617382;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(247,250,252,.92));
  border: 1px solid rgba(217, 227, 235, .94);
  box-shadow: 0 6px 14px rgba(12, 39, 68, .04);
  font-size: 11px;
  font-weight: 700;
}
.secure-note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--red));
  box-shadow: 0 0 0 5px rgba(37, 144, 215, .07);
}

.page-shell {
  width: min(100% - 28px, 560px);
  margin: 0 auto;
  padding: 36px 0 18px;
}
.journey-card {
  position: relative;
  min-height: 518px;
  padding: 30px 32px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.98) 100%);
  border: 1px solid rgba(217, 227, 235, .92);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  overflow: hidden;
  isolation: isolate;
}
.journey-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 54%, var(--red) 100%);
}
.journey-card::after {
  content: "";
  position: absolute;
  top: -58px;
  right: -36px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.98) 0 29%, transparent 30%),
    radial-gradient(circle at center, transparent 42%, rgba(37,144,215,.10) 42% 45%, transparent 45% 55%, rgba(12,39,68,.08) 55% 58%, transparent 58% 69%, rgba(230,55,30,.085) 69% 72%, transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0));
  opacity: .96;
  pointer-events: none;
}
.journey-card > * { position: relative; z-index: 1; }

.progress {
  height: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 26px;
}
.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8e1e8;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.progress-dot.is-active {
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(37,144,215,.08);
}
.progress-line {
  position: relative;
  width: 48px;
  height: 3px;
  margin: 0 8px;
  background: #e2e8ee;
  border-radius: 999px;
  overflow: hidden;
}
.progress-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--blue) 0%, var(--navy) 55%, var(--red) 100%);
  transform: translateX(-101%);
  transition: transform .48s ease;
}
.journey-card.is-progressing .progress-line::after { transform: translateX(0); }
.journey-card.is-progressing .progress-dot-next {
  background: var(--red);
  transform: scale(1.08);
  box-shadow: 0 0 0 6px rgba(230,55,30,.08);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--red));
}
h1 {
  margin: 0;
  max-width: 410px;
  color: var(--navy);
  font-size: 29px;
  line-height: 1.17;
  letter-spacing: -.028em;
  font-weight: 700;
}
.supporting {
  margin: 10px 0 24px;
  max-width: 360px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.52;
}
.service-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
.service-fieldset legend {
  width: 100%;
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}
.service-options { display: grid; gap: 12px; }

.service-option {
  position: relative;
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px 1fr 16px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  appearance: none;
  text-align: left;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(252,253,255,.96));
  border: 1px solid rgba(216,226,234,.96);
  border-radius: 16px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.service-option::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 16px 0 0 16px;
}
.service-option::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92);
  pointer-events: none;
}
.service-option:hover,
.service-option:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
  outline: none;
}
.service-option:active { transform: scale(.996); }
.service-option.is-muted { opacity: .55; }

.service-option:nth-child(1) {
  background:
    linear-gradient(90deg, rgba(37,144,215,.07) 0, rgba(37,144,215,.07) 70px, rgba(255,255,255,.98) 70px),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(252,253,255,.96));
}
.service-option:nth-child(1)::before { background: var(--blue); }
.service-option:nth-child(1):hover,
.service-option:nth-child(1):focus-visible { border-color: rgba(37,144,215,.28); }

.service-option:nth-child(2) {
  background:
    linear-gradient(90deg, rgba(230,55,30,.07) 0, rgba(230,55,30,.07) 70px, rgba(255,255,255,.98) 70px),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(252,253,255,.96));
}
.service-option:nth-child(2)::before { background: var(--red); }
.service-option:nth-child(2):hover,
.service-option:nth-child(2):focus-visible { border-color: rgba(230,55,30,.28); }

.service-option:nth-child(3) {
  background:
    linear-gradient(90deg, rgba(12,39,68,.065) 0, rgba(12,39,68,.065) 70px, rgba(255,255,255,.98) 70px),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(252,253,255,.96));
}
.service-option:nth-child(3)::before { background: var(--navy); }
.service-option:nth-child(3):hover,
.service-option:nth-child(3):focus-visible { border-color: rgba(12,39,68,.24); }

.service-option:nth-child(4) {
  background:
    linear-gradient(90deg, rgba(37,144,215,.045) 0, rgba(230,55,30,.04) 70px, rgba(255,255,255,.98) 70px),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(252,253,255,.96));
}
.service-option:nth-child(4)::before { background: linear-gradient(180deg, var(--blue), var(--red)); }
.service-option:nth-child(4):hover,
.service-option:nth-child(4):focus-visible { border-color: rgba(167,181,193,.65); }

.service-option.is-selected {
  box-shadow: 0 0 0 2px rgba(12,39,68,.05), 0 14px 30px rgba(12,39,68,.12);
}
.service-option:nth-child(1).is-selected {
  border-color: var(--blue);
  background:
    linear-gradient(90deg, rgba(37,144,215,.14) 0, rgba(37,144,215,.14) 74px, rgba(247,251,255,.98) 74px),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(251,253,255,.96));
}
.service-option:nth-child(2).is-selected {
  border-color: var(--red);
  background:
    linear-gradient(90deg, rgba(230,55,30,.14) 0, rgba(230,55,30,.14) 74px, rgba(255,249,247,.98) 74px),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,252,251,.96));
}
.service-option:nth-child(3).is-selected {
  border-color: var(--navy);
  background:
    linear-gradient(90deg, rgba(12,39,68,.14) 0, rgba(12,39,68,.14) 74px, rgba(250,252,255,.98) 74px),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(251,253,255,.96));
}
.service-option:nth-child(4).is-selected {
  border-color: #9fbed7;
  background:
    linear-gradient(90deg, rgba(37,144,215,.10) 0, rgba(230,55,30,.08) 74px, rgba(250,252,255,.98) 74px),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(251,253,255,.96));
}

.option-icon {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 6px 14px rgba(12,39,68,.05);
}
.option-icon-cool {
  color: var(--blue);
  background: linear-gradient(180deg, #f8fbff 0%, var(--blue-soft) 100%);
  border: 1px solid rgba(37,144,215,.14);
}
.option-icon-heat {
  color: var(--red);
  background: linear-gradient(180deg, #fff8f5 0%, var(--red-soft) 100%);
  border: 1px solid rgba(230,55,30,.14);
}
.option-icon-repair {
  color: var(--navy);
  background: linear-gradient(180deg, #f5f9fc 0%, var(--navy-soft) 100%);
  border: 1px solid rgba(12,39,68,.12);
  font-size: 21px;
}
.option-icon-unsure {
  color: #596773;
  background: linear-gradient(180deg, #f6f7f8 0%, #eef2f5 100%);
  border: 1px solid rgba(122,137,150,.12);
  font-size: 17px;
}
.option-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.option-copy strong {
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
}
.option-copy small {
  color: #768592;
  font-size: 11.5px;
  line-height: 1.3;
}
.option-arrow {
  color: #8a97a1;
  font-size: 26px;
  line-height: 1;
  font-weight: 300;
}
.service-option:nth-child(1) .option-arrow { color: rgba(37,144,215,.76); }
.service-option:nth-child(2) .option-arrow { color: rgba(230,55,30,.76); }
.service-option:nth-child(3) .option-arrow { color: rgba(12,39,68,.66); }
.service-option.is-selected .option-arrow { color: var(--navy); }

.reassurance {
  margin: 18px 0 0;
  text-align: center;
  color: #7a8892;
  font-size: 11.5px;
}

.question-view {
  transition: opacity .22s ease, transform .22s ease;
}
.journey-card.is-progressing .question-view {
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
}
.transition-view {
  position: absolute;
  inset: 76px 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .22s ease .16s, transform .22s ease .16s;
}
.transition-view.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.transition-check {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255,255,255,.9), rgba(255,255,255,.7)),
    linear-gradient(135deg, rgba(37,144,215,.12), rgba(230,55,30,.10));
  border: 1px solid rgba(37,144,215,.16);
  color: var(--navy);
  box-shadow: 0 12px 26px rgba(12,39,68,.08);
}
.transition-check svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.transition-view h2 {
  margin: 0;
  color: var(--navy);
  font-size: 23px;
  line-height: 1.2;
  font-weight: 700;
}
.transition-view p {
  margin: 9px 0 20px;
  max-width: 320px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.moving-line {
  width: 176px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ebf0;
}
.moving-line span {
  display: block;
  width: 54%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue) 0%, var(--navy) 55%, var(--red) 100%);
  animation: move 700ms ease-in-out infinite alternate;
}
@keyframes move { from { transform: translateX(-4%); } to { transform: translateX(95%); } }

.under-card {
  margin: 12px 0 0;
  text-align: center;
  color: #7b8791;
  font-size: 10.5px;
}
.site-footer {
  padding: 12px 0 22px;
  text-align: center;
  color: #7b8791;
  font-size: 10.5px;
}
.site-footer nav { display: inline-flex; gap: 9px; align-items: center; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 620px) {
  .header-inner {
    width: calc(100% - 24px);
    min-height: 58px;
  }
  .brand {
    gap: 8px;
    font-size: 12px;
  }
  .brand img {
    width: 31px;
    height: 31px;
  }
  .secure-note {
    padding: 7px 10px;
    font-size: 10px;
  }

  .page-shell {
    width: calc(100% - 20px);
    padding: 14px 0 10px;
  }
  .journey-card {
    min-height: 0;
    padding: 19px 16px 17px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(12,39,68,.07);
  }
  .journey-card::before { border-radius: 18px 18px 0 0; }
  .journey-card::after {
    top: -48px;
    right: -44px;
    width: 136px;
    height: 136px;
    opacity: .9;
  }

  .progress { margin-bottom: 18px; }
  h1 {
    font-size: 25px;
    line-height: 1.19;
  }
  .supporting {
    margin: 7px 0 17px;
    font-size: 14px;
  }
  .service-fieldset legend {
    margin-bottom: 9px;
    font-size: 13px;
  }
  .service-options { gap: 8px; }
  .service-option {
    min-height: 62px;
    grid-template-columns: 38px 1fr 14px;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 13px;
  }
  .service-option::before { border-radius: 13px 0 0 13px; }
  .option-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 18px;
  }
  .option-copy strong { font-size: 14px; }
  .option-copy small { font-size: 10.5px; }
  .option-arrow { font-size: 23px; }
  .reassurance {
    margin-top: 13px;
    font-size: 10.5px;
  }

  .transition-view { inset: 64px 16px 17px; }
  .transition-check {
    width: 50px;
    height: 50px;
  }
  .transition-view h2 { font-size: 21px; }
  .transition-view p { font-size: 13.5px; }
  .under-card {
    margin-top: 9px;
    font-size: 10px;
  }
  .site-footer { padding-top: 8px; }
}

@media (max-width: 380px) {
  .secure-note { display: none; }
  h1 { font-size: 23px; }
  .option-copy small { display: none; }
  .service-option { min-height: 57px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* Optional A/B concept: thermostat-led Step 0. The default index.html keeps the simpler card flow. */
.thermostat-variant h1 { max-width: 430px; }
.thermostat-ui {
  display: grid;
  place-items: center;
  margin: 4px 0 18px;
}
.thermostat-ring {
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0 43%, transparent 43%),
    conic-gradient(from 210deg, rgba(37,144,215,.22), rgba(12,39,68,.18), rgba(230,55,30,.20), rgba(37,144,215,.22));
  box-shadow: 0 12px 28px rgba(12,39,68,.10), inset 0 0 0 1px rgba(255,255,255,.82);
}
.thermostat-face {
  width: 106px;
  height: 106px;
  display: grid;
  place-content: center;
  gap: 2px;
  text-align: center;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 48% 38%, #173a54 0%, #0b2132 72%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.thermostat-face span { font-size: 33px; font-weight: 600; letter-spacing: -.04em; }
.thermostat-face small { color: #b8cad7; font-size: 8px; letter-spacing: .16em; }
.compact-options { grid-template-columns: 1fr 1fr; }
.compact-options .service-option {
  min-height: 62px;
  grid-template-columns: 34px 1fr 12px;
  padding: 9px 10px;
}
.compact-options .option-icon {
  width: 31px;
  height: 31px;
  font-size: 16px;
}
.compact-options .option-copy strong { font-size: 13px; }
@media (max-width: 620px) {
  .thermostat-variant { padding-top: 17px; }
  .thermostat-ui { margin: -2px 0 14px; }
  .thermostat-ring { width: 104px; height: 104px; }
  .thermostat-face { width: 87px; height: 87px; }
  .thermostat-face span { font-size: 27px; }
  .compact-options { gap: 8px; }
  .compact-options .service-option { min-height: 57px; }
}

/* v14 tracking-safe anchor behavior: service options are real /click anchors so
   RedTrack Universal Script can inject the current clickid before navigation. */
.service-option { text-decoration: none; }
.service-option[aria-disabled="true"] { pointer-events: none; }
