:root {
  --ink: #172326;
  --muted: #516268;
  --paper: #fffdf8;
  --band: #eef7f4;
  --line: #d7e2dd;
  --teal: #178f7a;
  --teal-strong: #0a6f62;
  --blue: #285f8f;
  --gold: #d48728;
  --rose: #a94f62;
  --charcoal: #1f343a;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(18, 37, 43, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: 100%;
  padding: 18px clamp(18px, 4vw, 48px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: 110px clamp(18px, 5vw, 64px) 76px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(16, 34, 39, 0.88) 0%, rgba(16, 34, 39, 0.7) 42%, rgba(16, 34, 39, 0.18) 100%),
    url("./assets/energy-ready-home.png");
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: -1;
  height: 190px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0), var(--paper));
}

.hero-content {
  min-width: 0;
  max-width: 730px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  color: #b8f0df;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  font-size: 56px;
  max-width: 720px;
  overflow-wrap: break-word;
}

h2 {
  font-size: 34px;
}

h3 {
  font-size: 19px;
}

.hero-copy {
  max-width: 660px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  background: var(--teal);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  background: var(--teal-strong);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.button.secondary.dark {
  border-color: var(--line);
  background: #f3f8f6;
  color: var(--charcoal);
}

.button.is-disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.72;
}

.button.is-disabled:hover,
.button.is-disabled:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.hero-note {
  margin: 18px 0 0;
  max-width: 390px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.section {
  padding: 68px clamp(18px, 5vw, 64px);
}

.section.band {
  background: var(--band);
}

.wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.lead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(18, 37, 43, 0.06);
}

.service-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--teal-strong);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.trust-band {
  background: #fffaf0;
}

.trust-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.trust-grid article {
  border-top: 3px solid var(--gold);
  padding-top: 18px;
}

.trust-grid p,
.steps-list {
  color: var(--muted);
  font-size: 17px;
}

.steps-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 22px;
}

.quiz-shell {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 34px;
  align-items: start;
}

.quiz-aside {
  position: sticky;
  top: 24px;
}

.quiz-aside p {
  color: var(--muted);
}

.config-warning {
  margin-top: 18px;
  border: 1px solid #efcc93;
  border-radius: 8px;
  padding: 12px;
  background: #fff8ec;
  color: #62491f;
  font-size: 14px;
  font-weight: 750;
}

.quiz-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.quiz-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 18px 26px 0;
}

.quiz-progress span {
  display: grid;
  place-items: center;
  height: 32px;
  border-radius: 8px;
  background: #edf4f1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.quiz-progress span.is-active {
  background: var(--teal);
  color: var(--white);
}

.quiz-progress span.is-complete {
  background: #d9eee8;
  color: var(--teal-strong);
}

.quiz-step {
  display: none;
  padding: 22px 26px 0;
}

.quiz-step.is-active {
  display: block;
}

.quiz-step h3 {
  margin-bottom: 18px;
  font-size: 24px;
}

.step-kicker {
  margin: 0 0 7px;
  color: var(--teal-strong);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 26px;
}

.form-grid.compact {
  padding: 0;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

label,
legend {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.field-hint {
  color: var(--muted);
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #bfcfcb;
  border-radius: 8px;
  padding: 9px 11px;
  background: #fbfffd;
  color: var(--ink);
  font: inherit;
}

input:focus,
select:focus {
  outline: 3px solid rgba(23, 143, 122, 0.2);
  border-color: var(--teal);
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

fieldset {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 16px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 44px;
  border: 1px solid #d6e1dd;
  border-radius: 8px;
  padding: 10px;
  font-weight: 650;
}

.choice input {
  width: auto;
  min-height: 0;
  margin-top: 3px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 22px 26px 0;
  color: var(--muted);
  font-size: 14px;
}

.consent input {
  width: auto;
  min-height: 0;
  margin-top: 4px;
}

.disclosure {
  margin: 18px 26px 0;
  padding: 16px;
  border-left: 4px solid var(--gold);
  background: #fff8ec;
  color: #574331;
  font-size: 14px;
}

.turnstile-shell {
  padding: 18px 26px 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 22px 26px 28px;
}

.form-error {
  color: #9c2f3f;
  font-size: 14px;
  font-weight: 800;
}

.footer {
  padding: 30px clamp(18px, 5vw, 64px);
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.footer a {
  color: #b8f0df;
  font-weight: 800;
}

.thanks {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 44px clamp(18px, 5vw, 64px);
  background:
    linear-gradient(90deg, rgba(16, 34, 39, 0.91), rgba(16, 34, 39, 0.62)),
    url("./assets/energy-ready-home.png") center / cover;
  color: var(--white);
}

.thanks-panel {
  width: min(720px, 100%);
}

.thanks-panel p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.privacy-page {
  max-width: 820px;
}

.privacy-page h1 {
  font-size: 44px;
  color: var(--charcoal);
}

.privacy-page h2 {
  margin-top: 30px;
  font-size: 25px;
  color: var(--charcoal);
}

.privacy-page p {
  color: var(--muted);
  font-size: 17px;
}

.reference {
  display: inline-flex;
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 10px 12px;
  color: #b8f0df;
  font-weight: 800;
}

@media (max-width: 880px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 28px;
  }

  .hero {
    min-height: 82vh;
  }

  .intro-grid,
  .quiz-shell,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .quiz-aside {
    position: static;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px) {
  h1 {
    font-size: 34px;
  }

  .hero {
    padding-top: 96px;
    padding-bottom: 52px;
  }

  .button {
    width: 100%;
  }

  .form-grid,
  .consent,
  .form-actions {
    padding-left: 18px;
    padding-right: 18px;
  }

  .disclosure {
    margin-left: 18px;
    margin-right: 18px;
  }
}
