:root {
  --navy: #031f3a;
  --navy-light: #052a4f;
  --yellow: #eebe15;
  --yellow-soft: #fffbeb;
  --text: #1e2a36;
  --muted: #64748b;
  --white: #fff;
  --bg: #eef2f7;
  --line: #d8e2ec;
  --shell: 860px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(3, 31, 58, 0.06);
  --shadow-md: 0 8px 32px rgba(3, 31, 58, 0.08);
  --shadow-lg: 0 16px 48px rgba(3, 31, 58, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --accent-line: rgba(238, 190, 21, 0.38);
  --success: #166534;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 400 15px/1.55 "Open Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(238, 190, 21, 0.08), transparent),
    var(--bg);
  min-height: 100vh;
}

h1,
h2,
h3 {
  margin: 0 0 0.45rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}

h1 {
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 0.85rem;
}

a {
  color: inherit;
}

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

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

.shell {
  width: min(var(--shell), 96vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.logo img {
  width: 148px;
  height: auto;
  transition: opacity 0.2s;
}

.logo:hover img {
  opacity: 0.85;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: 600 0.85rem "Montserrat", sans-serif;
  color: var(--navy);
  text-decoration: none;
  background: var(--yellow-soft);
  border: 1px solid var(--accent-line);
  border-radius: 99px;
  padding: 0.45rem 0.85rem;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.header-phone:hover {
  background: var(--yellow);
  transform: translateY(-1px);
}

.phone-icon {
  flex-shrink: 0;
}

/* Page */
.page {
  padding: 2rem 0 3.5rem;
}

.funnel {
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
}

/* VSL */
.vsl-zone {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition:
    opacity 0.35s var(--ease),
    max-height 0.4s var(--ease),
    padding 0.4s var(--ease),
    margin 0.4s var(--ease);
  overflow: hidden;
}

.vsl-frame {
  position: relative;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-md);
}

.vsl-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vsl-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 1;
  font: 600 0.68rem "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  background: rgba(3, 31, 58, 0.75);
  backdrop-filter: blur(4px);
  border-radius: 99px;
  padding: 0.3rem 0.6rem;
}

.vsl-caption {
  margin: 1rem 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.trust-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.trust-pills li {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.35rem 0.7rem;
}

.trust-pills li::before {
  content: "✓ ";
  color: var(--yellow);
  font-weight: 700;
}

/* Workspace head */
.workspace-head {
  text-align: center;
  margin-bottom: 2.25rem;
}

.workspace-head h1 {
  margin-bottom: 0.65rem;
}

.workspace-head.is-ready .eyebrow,
.workspace-head.is-ready h1,
.workspace-head.is-ready .workspace-lead {
  opacity: 0;
  animation: polishIn 0.5s var(--ease) forwards;
}

.workspace-head.is-ready h1 {
  animation-delay: 0.06s;
}

.workspace-head.is-ready .workspace-lead {
  animation-delay: 0.12s;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--yellow-soft);
  border: 1px solid var(--accent-line);
  border-radius: 99px;
  padding: 0.3rem 0.75rem;
}

.workspace-lead {
  margin: 0.85rem auto 0;
  padding-bottom: 0.5rem;
  max-width: none;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Journey phases */
.journey-phases {
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
}

.journey-phase {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  padding: 0.85rem 0.55rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.journey-phase-chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.85rem;
  color: var(--line);
  opacity: 0;
  transform: translateX(-5px);
  transition: color 0.3s var(--ease);
}

.journey-phase-chevron svg {
  display: block;
}

.journey-phases.is-ready .journey-phase {
  animation: journeyPhaseIn 0.45s var(--ease) forwards;
}

.journey-phases.is-ready .journey-phase:nth-child(1) {
  animation-delay: 0.05s;
}

.journey-phases.is-ready .journey-phase:nth-child(3) {
  animation-delay: 0.18s;
}

.journey-phases.is-ready .journey-phase:nth-child(5) {
  animation-delay: 0.31s;
}

.journey-phases.is-ready .journey-phase-chevron {
  animation: journeyChevronIn 0.4s var(--ease) forwards;
}

.journey-phases.is-ready .journey-phase-chevron:nth-child(2) {
  animation-delay: 0.12s;
}

.journey-phases.is-ready .journey-phase-chevron:nth-child(4) {
  animation-delay: 0.25s;
}

.journey-phase.is-done + .journey-phase-chevron {
  color: var(--navy);
}

.journey-phase-chevron.is-flowing {
  animation: journeyChevronFlow 0.55s var(--ease);
}

.journey-phase.is-just-active {
  animation: journeyPhaseActivate 0.45s var(--ease);
}

@keyframes journeyPhaseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes journeyChevronIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes journeyChevronFlow {
  0% {
    transform: translateX(0);
    color: var(--line);
  }
  45% {
    transform: translateX(5px);
    color: var(--yellow);
  }
  100% {
    transform: translateX(0);
    color: var(--navy);
  }
}

@keyframes journeyPhaseActivate {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

.journey-phase-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: block;
}

.journey-phase-text {
  width: 100%;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

.journey-phase.is-active {
  border-color: var(--yellow);
  background: var(--yellow-soft);
  box-shadow: var(--shadow-sm);
  opacity: 1;
  transform: none;
}

.journey-phase.is-done {
  border-color: rgba(3, 31, 58, 0.25);
  background: var(--white);
}

/* Stepper */
.stepper {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 0.15rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  padding: 0.35rem 0 0.65rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.stepper::-webkit-scrollbar {
  display: none;
}

.stepper::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.stepper-step {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 3.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.stepper-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 600 0.7rem "Montserrat", sans-serif;
  color: var(--muted);
  background: var(--white);
  border: 2px solid var(--line);
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.stepper-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
  transition: color 0.25s var(--ease);
}

.stepper-step.is-active .stepper-dot {
  color: var(--navy);
  border-color: var(--yellow);
  background: var(--yellow-soft);
  transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(238, 190, 21, 0.2);
}

.stepper-step.is-active .stepper-label {
  color: var(--navy);
}

.stepper-step.is-done .stepper-dot {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.stepper-step.is-done .stepper-label {
  color: var(--navy);
}

/* Journey context */
.journey-context {
  margin: 0 0 1.15rem;
  padding: 1.1rem 1.15rem;
  background: var(--yellow-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  transition: opacity 0.2s var(--ease);
}

.journey-context.is-updating {
  opacity: 0.55;
}

.journey-context.is-updated {
  animation: polishIn 0.35s var(--ease) both;
}

.journey-context-next[hidden] {
  display: none;
}

.journey-context-phase {
  margin: 0 0 0.35rem;
  font: 600 0.72rem "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
}

.journey-context-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
}

.journey-context-next {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(3, 31, 58, 0.08);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.page.is-funnel-late .journey-phases,
.page.is-funnel-late .stepper,
.page.is-funnel-late .journey-context {
  display: none;
}

/* Progress */
.progress-wrap {
  margin-bottom: 1.15rem;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.progress-bar {
  height: 5px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}

#progressFill {
  height: 100%;
  width: 0;
  background: var(--navy);
  border-radius: 99px;
  transition: width 0.4s var(--ease);
}

/* Calculator card */
.calc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.calc-card.is-ready {
  opacity: 0;
  animation: polishIn 0.5s var(--ease) 0.18s forwards;
}

.form-error {
  min-height: 1rem;
  margin-bottom: 0.5rem;
  padding: 0.55rem 0.7rem;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
}

.form-error:empty {
  display: none;
  padding: 0;
  border: 0;
  background: none;
  min-height: 0;
  margin: 0;
}

.form-error.is-shown {
  animation: polishIn 0.35s var(--ease) both;
}

.step {
  display: none;
}

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

.step.is-active.is-entering {
  animation: stepIn 0.42s var(--ease) both;
}

#solarForm.is-step-forward .step.is-active.is-entering {
  animation-name: stepInForward;
}

#solarForm.is-step-back .step.is-active.is-entering {
  animation-name: stepInBack;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stepInForward {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stepInBack {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes polishIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-intro {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.step-art {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.step-intro h2 {
  margin-bottom: 0.35rem;
}

.step-intro .step-hint {
  margin-bottom: 0;
}

.step-hint {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

@media (min-width: 480px) {
  .step-art {
    width: 88px;
    height: 88px;
  }
}

/* Inputs */
.input-wrap {
  position: relative;
}

.input-wrap--prefix .input-prefix {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  color: var(--muted);
  pointer-events: none;
}

.input-wrap--prefix input {
  padding-left: 1.75rem;
}

.step label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0.85rem 0 0.45rem;
  color: var(--navy);
}

.label-optional {
  font-weight: 400;
  color: var(--muted);
}

.email-verified,
.postcode-verified {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--success);
}

.email-verified.is-revealed,
.postcode-verified.is-revealed,
.property-confirmed.is-revealed {
  animation: polishIn 0.4s var(--ease) both;
}

.email-verified[hidden],
.postcode-verified[hidden] {
  display: none !important;
}

.combobox {
  position: relative;
}

.combobox-list {
  position: absolute;
  z-index: 12;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  max-height: 220px;
  overflow-y: auto;
}

.combobox-list[hidden] {
  display: none !important;
}

.combobox-option {
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text);
}

.combobox-option:hover,
.combobox-option.is-highlighted {
  background: var(--yellow-soft);
  color: var(--navy);
}

.combobox-option strong {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.combobox-option span {
  color: var(--muted);
  font-size: 0.8rem;
}

.contact-video {
  margin: 0 0 1.25rem;
}

.contact-video-frame {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-md);
}

.contact-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-video-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 1;
  font: 600 0.68rem "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  background: rgba(3, 31, 58, 0.75);
  backdrop-filter: blur(4px);
  border-radius: 99px;
  padding: 0.3rem 0.6rem;
}

.contact-video-caption {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

.contact-reviews {
  margin: 0 0 1.25rem;
}

.contact-reviews-heading {
  margin: 0 0 0.55rem;
  font: 600 0.72rem "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
}

.contact-reviews-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.contact-review {
  padding: 0.75rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.contact-review-stars {
  margin: 0 0 0.35rem;
  color: var(--yellow);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  line-height: 1;
}

.contact-review-text {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text);
}

.contact-review-author {
  display: block;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
  color: var(--navy);
}

.contact-review-source {
  font-weight: 400;
  color: var(--muted);
}

.contact-summary {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.8rem;
  color: var(--navy);
  background: var(--yellow-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
}

.step input {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--white);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.step input:hover {
  border-color: #b8c8d8;
}

.step input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(3, 31, 58, 0.1);
}

.roof-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  margin: 0.55rem 0 0.75rem;
}

.roof-status[hidden] {
  display: none !important;
}

.roof-status.is-loading {
  color: var(--navy);
  font-weight: 600;
}

.roof-status.is-ok {
  color: var(--success);
  font-weight: 600;
}

.roof-status.is-error {
  color: #991b1b;
  font-weight: 600;
}

.epc-hint {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-line);
  background: var(--yellow-soft);
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.45;
}

.epc-hint[hidden] {
  display: none !important;
}

.epc-hint strong {
  color: var(--navy);
}

.roof-map {
  margin: 0.85rem 0 1rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.roof-map[hidden] {
  display: none !important;
}

.roof-map-head {
  margin-bottom: 0.65rem;
}

.roof-map-title {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
}

.roof-map-sub {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.roof-map-frame {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0f172a;
  aspect-ratio: 16 / 10;
}

.roof-map-frame--interactive {
  min-height: 280px;
}

.confirm-map-host,
.leaflet-map {
  width: 100%;
  height: 100%;
  min-height: 280px;
  z-index: 1;
}

.confirm-map-host .leaflet-container,
.leaflet-map .leaflet-container {
  width: 100%;
  height: 100%;
  min-height: 280px;
  font-family: inherit;
}

.leaflet-pin-marker {
  background: transparent;
  border: 0;
}

.leaflet-pin-icon {
  display: block;
  width: 36px;
  height: 48px;
  background:
    radial-gradient(circle at 50% 38%, var(--yellow) 0 42%, transparent 43%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 48'%3E%3Cpath fill='%23031f3a' d='M18 0C9.716 0 3 6.716 3 15c0 11.25 15 33 15 33s15-21.75 15-33C33 6.716 26.284 0 18 0zm0 22a7 7 0 1 1 0-14 7 7 0 0 1 0 14z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  filter: drop-shadow(0 3px 6px rgba(3, 31, 58, 0.35));
}

.roof-map-frame img,
.roof-map-frame canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roof-map-frame canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.property-pin {
  position: absolute;
  z-index: 3;
  width: 44px;
  height: 56px;
  margin: -56px 0 0 -22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
  touch-action: none;
  pointer-events: auto;
}

.property-pin:active {
  cursor: grabbing;
}

.property-pin-icon {
  display: block;
  width: 36px;
  height: 48px;
  background:
    radial-gradient(circle at 50% 38%, var(--yellow) 0 42%, transparent 43%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 48'%3E%3Cpath fill='%23031f3a' d='M18 0C9.716 0 3 6.716 3 15c0 11.25 15 33 15 33s15-21.75 15-33C33 6.716 26.284 0 18 0zm0 22a7 7 0 1 1 0-14 7 7 0 0 1 0 14z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  filter: drop-shadow(0 3px 6px rgba(3, 31, 58, 0.35));
}

.property-confirmed {
  margin: 0.55rem 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--success);
  text-align: center;
}

.property-confirmed[hidden] {
  display: none !important;
}

#confirmPropertyBtn {
  margin-bottom: 0.65rem;
}

.panel-recommend {
  margin-top: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--yellow-soft);
  border: 1px solid var(--accent-line);
  font-size: 0.84rem;
  color: var(--navy);
  text-align: center;
}

.panel-recommend[hidden] {
  display: none !important;
}

.panel-recommend strong {
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
}

.bill-slider-wrap,
.panel-slider-wrap {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.bill-slider-wrap {
  margin: 0.25rem 0 0.5rem;
}

.panel-slider-wrap {
  margin-top: 0.75rem;
}

.bill-slider-value {
  margin: 0 0 1rem;
  padding: 0.55rem 0.85rem;
  font: 700 1.75rem "Montserrat", sans-serif;
  color: var(--navy);
  text-align: center;
  background: var(--yellow-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-line);
}

.panel-slider-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}

.panel-slider-label span {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  color: var(--navy);
  background: var(--bg);
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
}

.range-control {
  --range-pct: 50%;
  width: 100%;
  height: 8px;
  margin: 0;
  appearance: none;
  border-radius: 99px;
  cursor: pointer;
  background: transparent;
  outline: none;
}

.range-control::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(
    to right,
    var(--navy) 0%,
    var(--navy) var(--range-pct),
    #dce4ec var(--range-pct),
    #dce4ec 100%
  );
}

.range-control::-moz-range-track {
  height: 8px;
  border-radius: 99px;
  background: #dce4ec;
}

.range-control::-moz-range-progress {
  height: 8px;
  border-radius: 99px;
  background: var(--navy);
}

.range-control::-webkit-slider-thumb {
  appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--navy);
  box-shadow: 0 2px 8px rgba(3, 31, 58, 0.18);
  transition: transform 0.15s var(--ease);
}

.range-control::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border: 3px solid var(--navy);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 2px 8px rgba(3, 31, 58, 0.18);
  transition: transform 0.15s var(--ease);
}

.range-control:hover::-webkit-slider-thumb,
.range-control:hover::-moz-range-thumb {
  transform: scale(1.06);
}

.range-control:focus-visible::-webkit-slider-thumb,
.range-control:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(238, 190, 21, 0.45);
}

.panel-slider-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

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

.data-sources {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.data-sources-heading {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-align: center;
}

.data-sources-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.data-source-item {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.data-source-name {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.data-source-detail {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Buttons */
.btn {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-sm);
  font: 600 0.88rem "Montserrat", sans-serif;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn:focus-visible,
.choice-btn:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(3, 31, 58, 0.2);
}

.btn-primary:hover:not(:disabled) {
  background: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(3, 31, 58, 0.25);
}

.btn-cta {
  background: var(--yellow);
  color: #111;
  box-shadow: 0 4px 14px rgba(238, 190, 21, 0.35);
}

.btn-cta:hover:not(:disabled) {
  background: #f5c92a;
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--white);
  border: 1.5px solid var(--line);
  color: var(--navy);
}

.btn-ghost:hover:not(:disabled) {
  border-color: var(--navy);
  background: var(--bg);
}

.btn-block {
  width: 100%;
}

.step > .btn {
  margin-top: 1.25rem;
}

/* Choices */
.choice-grid {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
}

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

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

.choice-btn[hidden] {
  display: none;
}

.choice-btn {
  position: relative;
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.9rem;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.choice-btn:hover {
  border-color: #b0bcc9;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.choice-btn.is-selected {
  border-color: var(--navy);
  background: var(--yellow-soft);
  font-weight: 600;
  color: var(--navy);
  box-shadow: none;
}

.choice-btn.is-just-selected {
  animation: choiceSelect 0.35s var(--ease);
}

@keyframes choiceSelect {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(0.985);
  }
  100% {
    transform: scale(1);
  }
}

.choice-btn.is-selected::after {
  content: "✓";
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--yellow);
  background: var(--navy);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  line-height: 1;
}

.step-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.step-actions--solo {
  grid-template-columns: 1fr;
}

/* Results report card */
.report-card {
  margin-top: 1.25rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.report-card.is-revealed {
  animation: resultIn 0.5s var(--ease) both;
}

.report-card[hidden] {
  display: none;
}

.report-card-head {
  margin-bottom: 1rem;
}

.report-card-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.report-card-address {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}

.report-hero {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--navy) 0%, #0a3d6b 100%);
  color: #fff;
  margin-bottom: 0.85rem;
}

.report-hero-main {
  text-align: center;
  padding: 1.15rem 1rem 1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 2px solid rgba(238, 190, 21, 0.55);
  box-shadow:
    0 0 0 1px rgba(238, 190, 21, 0.12),
    0 10px 28px rgba(0, 0, 0, 0.18);
}

.report-hero-label {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
}

.report-hero-value {
  margin: 0;
  font: 800 2.85rem "Montserrat", sans-serif;
  color: #ffcf33;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.report-hero-sub {
  margin: 0.5rem 0 0;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.4;
}

.report-hero-details {
  display: grid;
  gap: 0.65rem;
}

.report-hero .report-chart {
  margin-bottom: 0;
}

.results-grid--hero {
  margin: 0;
  grid-template-columns: repeat(2, 1fr);
}

.results-grid--hero .result-item--wide {
  grid-column: 1 / -1;
}

.report-hero-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.report-stat {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
}

.report-stat-value {
  display: block;
  font: 700 1.15rem "Montserrat", sans-serif;
  color: #fff;
}

.report-stat-label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
}

.report-insights {
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.report-insights:empty {
  display: none;
}

.report-insight {
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--navy);
  animation: resultIn 0.4s var(--ease) both;
}

.report-insight strong {
  color: var(--navy);
}

.report-chart {
  margin-bottom: 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.report-chart[hidden] {
  display: none;
}

.report-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.report-chart-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.report-chart-meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.report-chart-bars {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.3rem;
  align-items: end;
  height: 5.5rem;
}

.report-chart-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  height: 100%;
  justify-content: flex-end;
}

.report-chart-bar-fill {
  width: 100%;
  min-height: 4px;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, var(--yellow) 0%, #d4a017 100%);
  transition: height 0.35s var(--ease);
}

.report-chart-bar.is-peak .report-chart-bar-fill {
  background: linear-gradient(180deg, #ffcf33 0%, var(--yellow) 100%);
  box-shadow: 0 0 0 1px rgba(238, 190, 21, 0.45);
}

.report-chart-bar-label {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--muted);
}

.report-chart-note {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}

.epc-impact {
  margin: 0 0 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  animation: resultIn 0.45s var(--ease) both;
}

.epc-impact[hidden] {
  display: none;
}

.epc-impact-label {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.epc-impact-bands {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.epc-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 4.5rem;
}

.epc-band-grade {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  font: 800 1.45rem "Montserrat", sans-serif;
  background: var(--line);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.epc-band-caption {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.epc-impact-arrow {
  font: 700 1.5rem "Montserrat", sans-serif;
  color: var(--navy);
  opacity: 0.45;
}

.epc-impact-scores {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}

.epc-impact-scores[hidden] {
  display: none;
}

.epc-impact-note {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

.epc-impact-note strong {
  font-weight: 700;
  color: var(--navy);
}

.epc-impact--missing .epc-band-grade {
  opacity: 0.45;
  background: var(--line) !important;
  color: var(--muted) !important;
}

.epc-impact--loading .epc-impact-note {
  font-style: italic;
}

.epc-recommendations {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.epc-recommendations[hidden] {
  display: none;
}

.epc-recommendations-label {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-align: center;
}

.epc-recommendations-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.epc-recommendation {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.epc-recommendation--solar {
  border-color: var(--accent-line);
  background: var(--yellow-soft);
}

.epc-recommendation-title {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.epc-recommendation-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
}

.results-grid {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
}

.result-item {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  animation: resultIn 0.45s var(--ease) both;
}

.result-item:nth-child(1) { animation-delay: 0.1s; }
.result-item:nth-child(2) { animation-delay: 0.14s; }
.result-item:nth-child(3) { animation-delay: 0.18s; }
.result-item:nth-child(4) { animation-delay: 0.22s; }
.result-item:nth-child(5) { animation-delay: 0.26s; }

.result-item--wide {
  grid-column: 1 / -1;
}

.result-item-sub {
  margin: 0.35rem 0 0;
  font: 500 0.82rem "Inter", system-ui, sans-serif;
  color: var(--muted);
  line-height: 1.4;
}

.result-item--trees {
  background: linear-gradient(135deg, #f4faf6 0%, #fff 100%);
  border-color: rgba(25, 180, 89, 0.25);
}

.result-item--trees p:first-of-type {
  color: #0d6b3a;
}

.result-item-source {
  margin: 0.3rem 0 0;
  font: 400 0.68rem "Inter", system-ui, sans-serif;
  color: var(--muted);
  line-height: 1.35;
}

@keyframes resultIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-item h3 {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

#resultCo2Card .result-item-sub,
#resultCo2Card .result-item-source {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted);
  line-height: 1.4;
}

#resultCo2Card .result-item-sub {
  margin-top: 0.35rem;
}

#resultCo2Card .result-item-source {
  margin-top: 0.2rem;
}

.result-item p {
  font: 700 1.2rem "Montserrat", sans-serif;
  color: var(--navy);
  margin: 0;
}

.results-nudge {
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 0.9rem;
  padding: 0.85rem 1rem;
  line-height: 1.5;
  text-align: center;
  background: var(--yellow-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
}

/* Success */
.success-box {
  text-align: center;
  padding: 1rem 0;
  animation: stepIn 0.5s var(--ease) both;
}

.success-box .contact-video {
  margin: 1.15rem 0;
  text-align: left;
}

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.35rem;
  box-shadow: var(--shadow-sm);
  animation: popIn 0.5s var(--ease) 0.15s both;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-box a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.disclaimer {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
}

/* Late funnel */
.page.is-funnel-late .vsl-zone {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  border: 0;
  pointer-events: none;
}

.page.is-funnel-late .workspace-head {
  display: none;
}

@media (min-width: 640px) {
  .choice-grid:not(.choice-grid--2):not(.choice-grid--3):not(.choice-grid--4) {
    grid-template-columns: 1fr 1fr;
  }

  .choice-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .choice-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .results-grid {
    grid-template-columns: 1fr 1fr;
  }

  .report-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "side"
      "details";
    align-items: start;
  }

  .report-hero-main {
    grid-area: main;
    text-align: center;
    padding: 1.35rem 1.25rem 1.15rem;
  }

  .report-hero-value {
    font-size: 3.5rem;
  }

  .report-hero-label {
    font-size: 0.88rem;
  }

  .report-hero-side {
    grid-area: side;
  }

  .report-hero-details {
    grid-area: details;
  }

  .results-grid--hero {
    grid-template-columns: repeat(4, 1fr);
  }

  .stepper-label {
    font-size: 0.68rem;
  }
}

@media (min-width: 768px) {
  .page {
    padding: 2.5rem 0 4rem;
  }

  .funnel {
    gap: 1.85rem;
  }

  .progress-wrap {
    display: none;
  }

  .calc-card {
    padding: 2.25rem 2.5rem;
  }

  .journey-phases {
    gap: 0.75rem;
  }

  .journey-phase {
    padding: 1rem 0.75rem;
    font-size: 0.78rem;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}
