:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f5f5f7;
  --soft-2: #eef2f7;
  --surface: rgba(255, 255, 255, 0.82);
  --white: #ffffff;
  --line: rgba(17, 24, 39, 0.1);
  --blue: #16a060;
  --green: #34c759;
  --green-dark: #0f6b43;
  --orange: #ff9f0a;
  --red: #ff3b30;
  --shadow: 0 28px 80px rgba(17, 24, 39, 0.12);
  --soft-shadow: 0 14px 36px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 10% 4%, rgba(22, 160, 96, 0.14), transparent 28%),
    radial-gradient(circle at 90% 8%, rgba(52, 199, 89, 0.12), transparent 30%),
    linear-gradient(180deg, #fbfbfd 0%, #edf1f6 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif;
  line-height: 1.4;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus,
button:focus-visible {
  outline: none;
}

.app-shell {
  width: min(1180px, calc(100vw - 18px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 8px 0 18px;
}

.app-header {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 253, 0.74)),
    linear-gradient(135deg, rgba(22, 160, 96, 0.1), rgba(52, 199, 89, 0.06));
  box-shadow: var(--soft-shadow);
}

.brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--ink);
  font-weight: 820;
  text-decoration: none;
}

.brand-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.brand:focus-visible,
.header-link:focus-visible,
.header-partner-link:focus-visible,
.home-cta:focus-visible,
.home-partner-cta:focus-visible,
.home-hero-top-cta:focus-visible,
.secondary-home-link:focus-visible,
.partner-cta:focus-visible,
.legal-back-link:focus-visible,
.legal-footer a:focus-visible {
  border-radius: 16px;
  outline: 3px solid rgba(22, 160, 96, 0.22);
  outline-offset: 4px;
}

.brand-logo {
  display: block;
  width: clamp(136px, 18vw, 188px);
  height: auto;
  border-radius: 0;
  object-fit: contain;
  filter:
    drop-shadow(0 10px 24px rgba(17, 24, 39, 0.18))
    drop-shadow(0 1px 1px rgba(2, 6, 12, 0.7));
}

.brand-name {
  display: none;
  align-items: center;
  gap: 2px;
  color: #0f1d2a;
  font-size: 1.05rem;
  font-weight: 840;
  letter-spacing: 0.16em;
}

.brand-name strong {
  color: #67b947;
  font-weight: 840;
}

.header-pill,
.step-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(22, 160, 96, 0.11);
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 780;
}

.header-pill {
  background: linear-gradient(135deg, #2dc96c, #059669);
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.18);
  color: #fff;
  text-decoration: none;
}

.hero {
  display: none;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p:last-child {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.home-shell {
  width: min(1180px, calc(100vw - 18px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 8px 0 28px;
}

.home-header {
  position: relative;
  z-index: 2;
}

.header-link {
  text-decoration: none;
}

.header-partner-link {
  border: 1px solid rgba(22, 160, 96, 0.18);
  background: linear-gradient(135deg, #2dc96c, #059669);
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.18);
  color: #fff;
  text-decoration: none;
}

.home-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(680px, calc(100vh - 112px));
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(22, 160, 96, 0.14);
  border-radius: 34px;
  padding: clamp(28px, 5.8vw, 64px);
  clip-path: inset(0 round 34px);
  background:
    linear-gradient(90deg, rgba(2, 7, 11, 0.94) 0%, rgba(2, 7, 11, 0.78) 36%, rgba(2, 7, 11, 0.32) 68%, rgba(2, 7, 11, 0.16) 100%),
    url("./home-night-solar-house.png") center right / cover no-repeat;
  background-clip: padding-box;
  box-shadow:
    inset 0 0 0 1px rgba(132, 255, 54, 0.08),
    0 34px 100px rgba(2, 8, 12, 0.28);
}

.partner-intro-card {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: min(640px, calc(100vh - 118px));
  margin-top: 10px;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(28px, 7vw, 76px);
  background:
    linear-gradient(90deg, rgba(8, 20, 32, 0.86), rgba(8, 20, 32, 0.34)),
    url("./partner-installer-background.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.partner-intro-content {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 720px;
  color: #fff;
}

.partner-intro-content .eyebrow {
  color: #a9f4c8;
}

.partner-intro-content h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.5rem, 6.6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.partner-intro-content p:not(.eyebrow) {
  max-width: 650px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 690;
}

.partner-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.partner-page-grid article,
.waitlist-card {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.partner-page-grid article {
  padding: 18px;
}

.partner-page-grid h2 {
  margin: 16px 0 8px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.08;
}

.partner-page-grid p {
  margin: 0;
  color: var(--muted);
  font-weight: 690;
}

.waitlist-card {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: start;
  margin-top: 14px;
  padding: clamp(22px, 4vw, 42px);
}

.waitlist-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.waitlist-copy > p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  font-weight: 700;
}

.waitlist-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  outline: none;
}

.waitlist-form textarea:focus {
  border-color: rgba(22, 160, 96, 0.44);
  box-shadow: 0 0 0 5px rgba(22, 160, 96, 0.12);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 16% 72%, rgba(132, 255, 54, 0.16), transparent 18rem),
    radial-gradient(circle at 76% 9%, rgba(55, 139, 255, 0.12), transparent 26rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.3));
}

.home-hero-logo {
  position: absolute;
  right: clamp(18px, 4vw, 72px);
  bottom: clamp(18px, 4vw, 44px);
  z-index: 0;
  width: min(42vw, 380px);
  max-width: 420px;
  opacity: 0.2;
  transform: none;
  filter: saturate(1.08) blur(0.1px);
}

.home-hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  color: #fff;
}

.home-hero-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.home-hero-brand-logo {
  display: block;
  width: clamp(150px, 16vw, 230px);
  height: auto;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.35));
}

.home-hero-top-cta,
.home-partner-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  border: 1px solid rgba(132, 255, 54, 0.44);
  border-radius: 16px;
  padding: 0 24px;
  color: #f7fff4;
  background: rgba(5, 14, 12, 0.52);
  box-shadow: inset 0 0 0 1px rgba(132, 255, 54, 0.08), 0 18px 44px rgba(0, 0, 0, 0.22);
  font-weight: 840;
  text-decoration: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.home-hero-top-cta span,
.home-partner-cta span:last-child,
.home-cta span:last-child {
  color: #a6ff23;
  font-size: 1.25em;
  line-height: 1;
}

.home-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 0 28px;
  border: 1px solid rgba(132, 255, 54, 0.35);
  border-radius: 999px;
  padding: 13px 20px;
  color: #f5fff0;
  background: rgba(5, 16, 10, 0.46);
  box-shadow: 0 0 28px rgba(132, 255, 54, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.home-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.85rem, 5.8vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 14px 48px rgba(0, 0, 0, 0.32);
}

.home-hero h1 span {
  color: #98f51f;
  text-shadow: 0 0 28px rgba(132, 255, 54, 0.42);
}

.home-hero-copy {
  max-width: 560px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.83);
  font-size: clamp(1.05rem, 1.8vw, 1.34rem);
  font-weight: 620;
  line-height: 1.45;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(28px, 4vw, 46px);
}

.home-cta,
.secondary-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 840;
  text-decoration: none;
}

.home-cta {
  gap: 12px;
  min-height: 64px;
  border-radius: 16px;
  padding: 0 26px;
}

.home-cta {
  margin-top: 28px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #fff;
  box-shadow: 0 20px 40px rgba(22, 160, 96, 0.28);
}

.home-hero-actions .home-cta {
  margin-top: 0;
  background: linear-gradient(135deg, #a6ff23, #55dc3d);
  color: #061008;
  box-shadow: 0 20px 52px rgba(132, 255, 54, 0.32);
}

.home-section {
  margin-top: 14px;
}

.home-section-heading {
  max-width: 760px;
  padding: 28px 4px 14px;
}

.home-section-heading h2 {
  max-width: 720px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.home-section-heading > p:last-child {
  max-width: 660px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  font-weight: 690;
}

.home-note {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.home-note p {
  margin: 0;
  color: var(--muted);
  font-weight: 690;
}

.client-hero-card {
  position: relative;
  isolation: isolate;
  min-height: 660px;
  overflow: hidden;
  border: 1px solid rgba(22, 160, 96, 0.12);
  border-radius: 32px;
  padding: clamp(26px, 5vw, 58px);
  clip-path: inset(0 round 32px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 43%, rgba(255, 255, 255, 0.12) 100%),
    linear-gradient(180deg, rgba(239, 247, 243, 0.7), rgba(239, 247, 243, 0.2)),
    url("./client-home-background.png") center / cover no-repeat;
  background-clip: padding-box;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.34),
    var(--shadow);
}

.client-card-content {
  display: grid;
  gap: 28px;
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.client-feature-list,
.partner-feature-list {
  display: grid;
  gap: 18px;
}

.client-feature-list article,
.partner-feature-list article {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.client-feature-list .section-icon,
.partner-feature-list .section-icon {
  width: 52px;
  height: 52px;
}

.client-feature-list h3,
.partner-feature-list h3 {
  margin: 0 0 3px;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.1;
}

.client-feature-list p,
.partner-feature-list p {
  margin: 0;
  color: var(--muted);
  font-weight: 690;
}

.client-note {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.client-note p {
  margin: 0;
  color: var(--muted);
  font-weight: 720;
}

.partner-funnel-section {
  scroll-margin-top: 18px;
  padding-top: 4px;
}

.partner-hero-card {
  position: relative;
  isolation: isolate;
  min-height: 660px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid rgba(22, 160, 96, 0.12);
  border-radius: 32px;
  padding: clamp(26px, 5vw, 58px);
  clip-path: inset(0 round 32px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 43%, rgba(255, 255, 255, 0.12) 100%),
    linear-gradient(180deg, rgba(239, 247, 243, 0.7), rgba(239, 247, 243, 0.2)),
    url("./partner-installer-background.png") center / cover no-repeat;
  background-clip: padding-box;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.34),
    var(--shadow);
}

.partner-heading {
  max-width: 860px;
  padding: 0;
}

.partner-card-content {
  display: grid;
  gap: 28px;
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.partner-cta {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 18px;
  padding: 0 28px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
  font-weight: 840;
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(22, 160, 96, 0.28);
}

.partner-cta::after {
  content: "→";
  margin-left: 18px;
  font-size: 1.5rem;
  font-weight: 500;
}

.partner-cta-row p {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 720;
}

.home-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  padding: 18px;
}

.secondary-home-link {
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #fff;
  box-shadow: 0 14px 28px rgba(22, 160, 96, 0.2);
}

.simulator-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 10px;
}

.progress-card,
.form-card,
.result-card,
.data-card,
.lead-summary-card,
.equipment-card,
.financial-card,
.explanation-card {
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.progress-card {
  position: sticky;
  top: 8px;
  display: grid;
  align-content: start;
  gap: 10px;
  border-radius: 24px;
  padding: 14px;
  min-height: 0;
  overflow: hidden;
}

.progress-ring {
  display: grid;
  place-items: center;
  align-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 57%, transparent 58%),
    conic-gradient(var(--blue) var(--progress, 25%), rgba(17, 24, 39, 0.08) 0);
}

.progress-ring span {
  font-size: 1.35rem;
  font-weight: 840;
  line-height: 1;
}

.progress-ring small {
  color: var(--muted);
  font-weight: 720;
}

.progress-card h2 {
  margin: 0;
  font-size: 1.2rem;
}

.step-list {
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.step-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  border-radius: 16px;
  padding: 0 10px;
  color: var(--muted);
  font-weight: 740;
}

.step-list li .step-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--muted);
  font-size: 0;
  font-weight: 830;
}

.step-label {
  min-width: 0;
  font-size: 0.86rem;
  line-height: 1;
}

.step-icon::before,
.step-icon::after {
  content: "";
  position: absolute;
}

.step-icon-location::before {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 2px;
  transform: rotate(-45deg);
}

.step-icon-location::after {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.step-icon-energy::before {
  width: 9px;
  height: 17px;
  border-radius: 2px;
  background: currentColor;
  clip-path: polygon(55% 0, 100% 0, 64% 42%, 100% 42%, 35% 100%, 46% 55%, 0 55%);
}

.step-icon-roof::before {
  width: 16px;
  height: 10px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  transform: translateY(4px);
}

.step-icon-roof::after {
  width: 15px;
  height: 15px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  border-radius: 3px 0 0;
  transform: translateY(-2px) rotate(45deg);
}

.step-icon-result::before {
  width: 17px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.step-icon-result::after {
  width: 3px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 5px 2px 0 currentColor, -5px 4px 0 currentColor;
  transform: rotate(35deg);
}

.step-icon-contact::before {
  width: 17px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.step-icon-contact::after {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.step-list li.is-active {
  background: rgba(22, 160, 96, 0.11);
  color: var(--green-dark);
}

.step-list li.is-active .step-icon,
.step-list li.is-complete .step-icon {
  background: var(--blue);
  color: #fff;
}

.form-card {
  min-height: 0;
  overflow: visible;
  border-radius: 24px;
}

form {
  display: flex;
  flex-direction: column;
}

.step-panel {
  display: none;
  min-height: 0;
  overflow: visible;
  padding: 18px 22px;
}

.step-panel.is-active {
  flex: 1;
  display: block;
  animation: panelIn 180ms ease-out;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.panel-heading {
  max-width: 640px;
  margin-bottom: 16px;
}

.panel-heading h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 8px;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.panel-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.field span {
  color: var(--ink);
  font-weight: 760;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  padding: 0 14px;
  font-weight: 720;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.field input:focus,
.field select:focus {
  border-color: rgba(22, 160, 96, 0.52);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(22, 160, 96, 0.12);
}

.field.has-error input,
.field.has-error select {
  border-color: rgba(255, 59, 48, 0.68);
  box-shadow: 0 0 0 5px rgba(255, 59, 48, 0.1);
}

.multi-select {
  position: relative;
}

.multi-select-trigger {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  padding: 0 44px 0 14px;
  font: inherit;
  font-weight: 720;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.multi-select-trigger:focus-visible,
.multi-select:has(.multi-select-menu:not([hidden])) .multi-select-trigger {
  border-color: rgba(22, 160, 96, 0.52);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(22, 160, 96, 0.12);
}

.multi-select-trigger span:first-child {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-select-chevron {
  position: absolute;
  right: 18px;
  top: 24px;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.72;
}

.multi-select-menu {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  max-height: min(420px, 58vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
}

.multi-select-menu[hidden] {
  display: none;
}

.multi-select-hint {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 12px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 780;
}

.multi-select-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
}

.multi-select-option:hover {
  background: rgba(22, 160, 96, 0.08);
}

.multi-select-option input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

.multi-select-option span {
  font-weight: 720;
}

.multi-select-value {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.field.has-error .multi-select-trigger {
  border-color: rgba(255, 59, 48, 0.68);
  box-shadow: 0 0 0 5px rgba(255, 59, 48, 0.1);
}

.field-error {
  display: none;
  color: var(--red);
  font-weight: 700;
}

.field.has-error .field-error {
  display: block;
}

.consent-field {
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  align-items: start;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--soft);
}

.consent-field input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 2px;
  accent-color: var(--green-dark);
}

.consent-field span {
  font-size: 0.94rem;
  line-height: 1.45;
}

.consent-field a,
.legal-footer a,
.legal-content a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.consent-field .field-error {
  grid-column: 2;
}

.range-field {
  padding: 14px;
  border-radius: 24px;
  background: var(--soft);
}

.range-value {
  margin: 2px 0 10px;
}

.range-value strong {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

.range-help,
.field small,
.toggle-row small {
  color: var(--muted);
  font-size: 0.9rem;
}

.option-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 4px;
  color: var(--green-dark);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0;
}

.option-section-title::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(22, 160, 96, 0.1);
}

.input-affix {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.input-affix em {
  display: grid;
  place-items: center;
  align-self: stretch;
  min-width: 66px;
  border-radius: 18px;
  background: var(--soft);
  color: var(--muted);
  font-style: normal;
  font-weight: 780;
}

.bill-info-card,
.residential-fields {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(236, 253, 245, 0.55);
  box-shadow: inset 0 0 0 1px rgba(22, 160, 96, 0.1);
}

.bill-info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.45;
}

.compact-range-field {
  background: rgba(255, 255, 255, 0.72);
}

.compact-range-field .range-value {
  margin-bottom: 8px;
}

.compact-range-field .range-value strong {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.toggle-stack {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.map-measurement-card {
  margin-top: 14px;
  border: 1px solid rgba(25, 139, 88, 0.12);
  border-radius: 24px;
  padding: 16px;
  background: rgba(245, 251, 247, 0.88);
}

.map-measurement-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.map-measurement-heading h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.map-measurement-heading p,
.map-disclaimer {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.map-measurement-body {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.map-measurement-body[hidden] {
  display: none;
}

.address-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.compact-button {
  min-height: 48px;
}

.map-status {
  min-height: 1.2em;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.map-status.is-error {
  color: #b42318;
}

.map-canvas {
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.05);
}

.mapboxgl-ctrl-top-right .mapboxgl-ctrl {
  margin: 12px 12px 0 0;
}

.map-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.map-metrics-grid article {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.map-metrics-grid span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
}

.map-metrics-grid strong {
  font-size: 1.08rem;
}

.toggle-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 22px;
  background: var(--soft);
}

.toggle-row span {
  display: grid;
  gap: 4px;
}

.toggle-row strong {
  font-size: 1rem;
}

.toggle-row input {
  width: 50px;
  height: 30px;
  accent-color: var(--green);
}

.conditional-field {
  display: none;
  margin: 0;
  padding: 16px;
  border-radius: 22px;
  background: rgba(22, 160, 96, 0.09);
}

.conditional-field.is-visible {
  display: grid;
}

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

.estimate-status,
.coordinate-alert {
  display: none;
  margin-bottom: 14px;
  border-radius: 20px;
  padding: 14px 16px;
}

.estimate-status.is-visible {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(22, 160, 96, 0.09);
  color: var(--green-dark);
  font-weight: 760;
}

.estimate-status p {
  margin: 0;
}

.status-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(22, 160, 96, 0.18);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

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

.coordinate-alert {
  display: none;
  background: rgba(255, 159, 10, 0.12);
  color: #8a4d00;
  font-weight: 740;
}

.coordinate-alert.is-hidden {
  display: none;
}

.step-panel.is-loading .result-grid,
.step-panel.is-loading .equipment-card,
.step-panel.is-loading .battery-comparison-card,
.step-panel.is-loading .energy-balance-card,
.step-panel.is-loading .financial-card,
.step-panel.is-loading .data-card,
.step-panel.is-loading .explanation-card,
.step-panel.is-loading .disclaimer,
.step-panel.is-loading .cta-button {
  opacity: 0.5;
  pointer-events: none;
}

.result-card {
  min-height: 132px;
  border-radius: 24px;
  padding: 14px;
}

.result-card.is-hidden {
  display: none;
}

.system-note {
  margin: 10px 0 0;
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255, 159, 10, 0.12);
  color: #8a4d00;
  font-weight: 780;
}

.system-note.is-hidden,
.area-result-card.is-hidden,
.battery-comparison-card.is-hidden {
  display: none;
}

.result-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 720;
}

.result-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.45rem, 3vw, 2.45rem);
  line-height: 1;
  letter-spacing: 0;
}

.result-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.25;
}

.result-card small span {
  display: inline;
  margin: 0;
  color: inherit;
  font-weight: inherit;
}

.icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: rgba(22, 160, 96, 0.11);
}

.icon::before,
.icon::after {
  content: "";
  position: absolute;
}

.icon-power::before {
  width: 18px;
  height: 24px;
  border: 3px solid var(--blue);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

.icon-power::after {
  width: 4px;
  height: 18px;
  top: 8px;
  background: var(--blue);
  border-radius: 999px;
}

.icon-sun::before {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 7px rgba(255, 159, 10, 0.18);
}

.icon-battery::before {
  width: 23px;
  height: 14px;
  border: 3px solid var(--green);
  border-radius: 5px;
}

.icon-battery::after {
  right: 8px;
  width: 4px;
  height: 10px;
  border-radius: 0 4px 4px 0;
  background: var(--green);
}

.icon-system::before {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 3px solid var(--blue);
}

.icon-system::after {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.icon-source::before {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--blue);
}

.icon-source::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.data-card,
.lead-summary-card,
.equipment-card,
.battery-comparison-card,
.energy-balance-card,
.financial-card,
.monthly-card,
.explanation-card {
  margin-top: 10px;
  border-radius: 24px;
  padding: 16px;
}

.data-card h3,
.lead-summary-card h3,
.equipment-card h3,
.battery-comparison-card h3,
.energy-balance-card h3,
.financial-card h3,
.monthly-card h3,
.explanation-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.12;
}

.section-icon,
.mini-icon {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: rgba(22, 160, 96, 0.1);
  color: var(--green-dark);
  box-shadow: inset 0 0 0 1px rgba(22, 160, 96, 0.08);
}

.section-icon {
  width: 34px;
  height: 34px;
  margin-top: 0;
}

.mini-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
}

.section-icon::before,
.section-icon::after,
.mini-icon::before,
.mini-icon::after {
  content: "";
  position: absolute;
}

.section-icon-location::before {
  width: 15px;
  height: 15px;
  border: 3px solid var(--green);
  border-radius: 50% 50% 50% 3px;
  transform: translateY(-1px) rotate(-45deg);
}

.section-icon-location::after {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.section-icon-energy::before {
  width: 11px;
  height: 21px;
  border-radius: 3px;
  background: linear-gradient(180deg, #c9ee28, var(--green));
  clip-path: polygon(55% 0, 100% 0, 64% 42%, 100% 42%, 35% 100%, 46% 55%, 0 55%);
}

.section-icon-roof::before {
  width: 21px;
  height: 12px;
  border: 3px solid var(--green);
  border-top: 0;
  border-radius: 0 0 5px 5px;
  transform: translateY(5px);
}

.section-icon-roof::after {
  width: 20px;
  height: 20px;
  border-top: 3px solid var(--green);
  border-left: 3px solid var(--green);
  border-radius: 4px 0 0;
  transform: translateY(-3px) rotate(45deg);
}

.section-icon-result::before {
  width: 21px;
  height: 16px;
  border: 3px solid var(--green);
  border-radius: 6px;
}

.section-icon-result::after {
  width: 4px;
  height: 11px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 6px 3px 0 var(--green), -6px 5px 0 var(--green);
  transform: rotate(34deg);
}

.section-icon-tech::before,
.mini-panel::before {
  width: 19px;
  height: 14px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 30%, rgba(255, 255, 255, 0.76) 31% 35%, transparent 36% 65%, rgba(255, 255, 255, 0.62) 66% 70%, transparent 71%),
    linear-gradient(180deg, transparent 46%, rgba(255, 255, 255, 0.62) 47% 52%, transparent 53%),
    linear-gradient(145deg, #0f2939, #1f3c4f);
  transform: skew(-8deg);
}

.section-icon-tech::after,
.mini-power::before {
  width: 8px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, #c9ee28, var(--green));
  clip-path: polygon(55% 0, 100% 0, 64% 42%, 100% 42%, 35% 100%, 46% 55%, 0 55%);
}

.section-icon-finance::before,
.mini-savings::before {
  width: 19px;
  height: 19px;
  border: 3px solid var(--green);
  border-radius: 50%;
}

.section-icon-finance::after,
.mini-savings::after {
  width: 3px;
  height: 11px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 5px 3px 0 var(--green), -5px 5px 0 var(--green);
  transform: rotate(34deg);
}

.section-icon-data::before {
  width: 18px;
  height: 18px;
  border: 3px solid var(--green);
  border-radius: 7px;
}

.section-icon-data::after {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.section-icon-explain::before {
  content: "?";
  position: static;
  color: var(--green-dark);
  font-size: 1.15rem;
  font-weight: 920;
}

.section-icon-contact::before {
  width: 21px;
  height: 15px;
  border: 3px solid var(--green);
  border-radius: 6px;
}

.section-icon-contact::after {
  width: 13px;
  height: 13px;
  border-right: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: translateY(-4px) rotate(45deg);
}

.section-icon-summary::before {
  width: 18px;
  height: 22px;
  border: 3px solid var(--green);
  border-radius: 6px;
}

.section-icon-summary::after {
  width: 10px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 6px 0 var(--green), 0 12px 0 var(--green);
}

.mini-inverter::before {
  width: 18px;
  height: 18px;
  border: 3px solid var(--green);
  border-radius: 6px;
}

.mini-inverter::after {
  width: 12px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 6px 0 var(--green);
}

.mini-battery::before {
  width: 20px;
  height: 12px;
  border: 3px solid var(--green);
  border-radius: 5px;
}

.mini-battery::after {
  right: 7px;
  width: 4px;
  height: 8px;
  border-radius: 0 4px 4px 0;
  background: var(--green);
}

.mini-grid::before {
  width: 22px;
  height: 14px;
  background:
    linear-gradient(90deg, transparent 30%, var(--green) 31% 36%, transparent 37% 63%, var(--green) 64% 69%, transparent 70%),
    linear-gradient(180deg, transparent 42%, var(--green) 43% 58%, transparent 59%);
  opacity: 0.95;
}

.mini-grid::after {
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
  transform: translateY(10px);
}

.mini-revenue::before {
  content: "€";
  position: static;
  color: var(--green-dark);
  font-size: 1.2rem;
  font-style: normal;
  font-weight: 900;
}

.financial-grid,
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

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

.energy-balance-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.financial-item,
.equipment-item {
  min-height: 118px;
  border-radius: 20px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.06);
}

.equipment-item.is-hidden {
  display: none;
}

.financial-item span,
.financial-item small,
.equipment-item span,
.equipment-item small {
  display: block;
  color: var(--muted);
  font-weight: 720;
}

.financial-item strong,
.equipment-item strong {
  display: block;
  margin: 8px 0 4px;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.financial-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.monthly-bars {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.monthly-row {
  display: grid;
  grid-template-columns: 42px 1fr minmax(76px, auto);
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 780;
}

.monthly-row i {
  position: relative;
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(22, 160, 96, 0.1);
}

.monthly-row i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
}

.monthly-row strong {
  color: var(--ink);
  font-size: 0.86rem;
  text-align: right;
}

.lead-summary-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.data-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin: 10px 0 0;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.08);
}

.data-list div {
  display: grid;
  grid-template-columns: minmax(130px, 0.4fr) 1fr;
  gap: 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.86);
}

.data-list div.is-hidden {
  display: none;
}

.data-list dt {
  color: var(--muted);
  font-weight: 760;
}

.data-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 780;
}

.explanation-card p {
  margin: 0;
  color: var(--muted);
}

.energy-note-card {
  display: grid;
  gap: 10px;
}

.energy-note-card p {
  line-height: 1.5;
  font-weight: 720;
}

.area-result-card .system-note {
  margin-top: 14px;
}

.disclaimer {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 680;
}

.cta-button {
  width: 100%;
  min-height: 54px;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 820;
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.18);
}

.cta-button:disabled {
  cursor: default;
  opacity: 0.72;
}

.submit-status {
  min-height: 0;
  margin-top: 14px;
  border-radius: 18px;
  color: var(--muted);
  font-weight: 760;
}

.submit-status:not(:empty) {
  padding: 14px 16px;
}

.submit-status.is-success {
  background: rgba(52, 199, 89, 0.14);
  color: #137a35;
}

.submit-status.is-info {
  background: rgba(22, 160, 96, 0.11);
  color: var(--green-dark);
}

.form-actions {
  position: sticky;
  bottom: 0;
  flex: 0 0 auto;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 22px 12px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.primary-button,
.secondary-button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 26px rgba(22, 160, 96, 0.26);
}

.primary-button:focus,
.primary-button:focus-visible {
  outline: none;
  box-shadow: 0 12px 26px rgba(22, 160, 96, 0.26);
}

.primary-button[hidden] {
  display: none;
}

.secondary-button {
  background: var(--soft);
  color: var(--ink);
}

.secondary-button:focus,
.secondary-button:focus-visible,
.cta-button:focus,
.cta-button:focus-visible {
  outline: none;
}

.secondary-button:disabled {
  opacity: 0;
  pointer-events: none;
}

.legal-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 10px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-main {
  width: min(900px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 10px 0 34px;
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin: 14px 0 0;
  border: 1px solid rgba(22, 160, 96, 0.16);
  border-radius: 999px;
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--green-dark);
  font-size: 0.92rem;
  font-weight: 820;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
}

.legal-back-link:hover {
  border-color: rgba(22, 160, 96, 0.28);
  background: rgba(237, 250, 242, 0.92);
}

.legal-content {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  padding: clamp(20px, 4vw, 36px);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.legal-content h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.legal-content h2 {
  margin: 28px 0 8px;
  font-size: 1.18rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content ul {
  padding-left: 20px;
}

.legal-meta {
  color: var(--muted);
  font-weight: 760;
}

.legal-placeholder {
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 159, 10, 0.12);
  color: #8a4d00;
  font-weight: 780;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 90;
  display: grid;
  gap: 16px;
  width: min(960px, calc(100vw - 24px));
  padding: 18px;
  transform: translateX(-50%);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px);
}

.cookie-banner h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-weight: 760;
}

.cookie-banner-options {
  display: grid;
  gap: 8px;
}

.cookie-banner-options[hidden] {
  display: none;
}

.cookie-banner-options label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 16px;
  padding: 10px 12px;
  background: #f8fafc;
}

.cookie-banner-options span {
  color: var(--ink);
  font-weight: 880;
}

.cookie-banner-options small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 720;
}

.cookie-banner-options input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-banner-actions button {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 920;
}

.cookie-primary {
  background: linear-gradient(135deg, #2dc96c, #059669);
  color: #fff;
}

.cookie-secondary {
  background: #f1f5f9;
  color: var(--ink);
}

.cookie-ghost {
  background: rgba(236, 253, 245, 0.92);
  color: var(--green-dark);
}

@media (max-width: 640px) {
  .cookie-banner {
    bottom: 10px;
    border-radius: 24px;
    padding: 14px;
  }

  .cookie-banner-actions {
    display: grid;
  }
}

@media (max-width: 860px) {
  body {
    min-height: 100vh;
  }

  .app-shell {
    min-height: 100vh;
  }

  .simulator-shell {
    grid-template-columns: 1fr;
    flex: none;
  }

  .progress-card {
    position: static;
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .form-actions {
    position: sticky;
    bottom: 0;
  }

  .equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-list {
    grid-column: 1 / -1;
    grid-template-columns: repeat(5, 1fr);
  }

  .step-list li {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 58px;
    padding: 8px 4px;
    text-align: center;
  }

  .step-list li .step-icon {
    margin: 0;
  }

  .step-list li .step-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-size: 0.68rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .client-hero-card,
  .partner-hero-card {
    padding: 24px;
    min-height: 760px;
  }

  .client-hero-card {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.91) 52%, rgba(255, 255, 255, 0.16) 100%),
      url("./client-home-background.png") 64% bottom / cover no-repeat;
  }

  .partner-hero-card {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.91) 52%, rgba(255, 255, 255, 0.16) 100%),
      url("./partner-installer-background.png") 62% bottom / cover no-repeat;
  }

  .home-note {
    grid-template-columns: 1fr;
  }

  .home-note {
    align-items: stretch;
    flex-direction: column;
  }

  .waitlist-card {
    grid-template-columns: 1fr;
  }

  .secondary-home-link,
  .partner-cta {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .app-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 10px;
  }

  .app-header,
  .progress-card,
  .form-card {
    border-radius: 24px;
  }

  .brandbar {
    flex-wrap: nowrap;
    gap: 10px;
    padding: 14px 16px;
  }

  .brand-actions {
    display: inline-flex;
    flex: 0 1 auto;
    gap: 7px;
    min-width: 0;
  }

  .home-header .header-login-link {
    display: inline-flex;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    white-space: nowrap;
  }

  .home-header .header-pill {
    font-size: 0;
  }

  .home-header .header-pill::after {
    content: attr(data-mobile-label);
    font-size: 0.72rem;
    font-weight: 850;
  }

  .home-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .home-hero {
    min-height: 650px;
    border-radius: 24px;
    padding: 22px;
    background-position: 72% center;
  }

  .home-hero .eyebrow {
    margin-bottom: 20px;
    padding: 10px 14px;
    font-size: 0.72rem;
  }

  .home-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.8rem);
  }

  .home-hero-copy {
    margin-top: 20px;
    font-size: 1rem;
  }

  .home-hero-actions,
  .home-cta,
  .home-partner-cta {
    width: 100%;
  }

  .home-partner-cta {
    min-height: 58px;
  }

  .client-feature-list article,
  .partner-feature-list article {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .client-note .secondary-home-link,
  .partner-cta {
    width: 100%;
  }

  .step-panel {
    padding: 18px;
  }

  .field-grid,
  .financial-grid,
  .data-list div {
    grid-template-columns: 1fr;
  }

  .map-measurement-heading,
  .address-search-row,
  .map-metrics-grid {
    grid-template-columns: 1fr;
  }

  .map-toggle-button {
    width: 100%;
  }

  .result-card {
    min-height: 118px;
  }

  .financial-item,
  .equipment-item {
    min-height: 106px;
  }

  .form-actions {
    padding: 14px 20px 22px;
  }

  .primary-button,
  .secondary-button {
    flex: 1;
  }
}

@media (max-width: 430px) {
  .brand-name {
    display: none;
  }

  .brand-logo {
    width: 126px;
    height: auto;
  }

  .brandbar {
    padding-inline: 12px;
  }

  .home-header .header-login-link {
    padding: 0 9px;
  }

  .result-grid,
  .financial-grid,
  .equipment-grid {
    grid-template-columns: 1fr;
  }

  .monthly-row {
    grid-template-columns: 34px 1fr;
  }

  .monthly-row strong {
    grid-column: 2;
    text-align: left;
  }
}

@media (max-height: 760px) and (min-width: 861px) {
  .app-shell {
    padding-top: 8px;
  }

  .app-header {
    border-radius: 22px;
  }

  .brandbar {
    padding: 12px 16px;
  }

  .simulator-shell {
    margin-top: 10px;
  }

  .progress-card {
    gap: 10px;
    padding: 14px;
  }

  .progress-ring {
    width: 60px;
    height: 60px;
  }

  .step-list li {
    min-height: 32px;
  }

  .step-panel {
    padding: 18px 22px 10px;
  }

  .panel-heading {
    margin-bottom: 18px;
  }

  .panel-heading h2 {
    font-size: 1.75rem;
  }

  .panel-heading p {
    display: none;
  }

  .field {
    margin-bottom: 12px;
  }

  .toggle-stack {
    gap: 10px;
  }

  .toggle-row {
    padding: 11px 16px;
  }

  .form-actions {
    padding: 10px 22px 12px;
  }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 34px;
  border: 1px solid rgba(22, 160, 96, 0.16);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.theme-toggle button {
  min-height: 26px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
}

.theme-toggle button[aria-pressed="true"] {
  background: linear-gradient(135deg, #7ee85f, #35c95d);
  color: #06130d;
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.24);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f7fbff;
  --muted: #9aa7b7;
  --soft: rgba(255, 255, 255, 0.055);
  --soft-2: rgba(255, 255, 255, 0.08);
  --surface: rgba(11, 17, 21, 0.78);
  --white: #101820;
  --line: rgba(255, 255, 255, 0.105);
  --blue: #73e45a;
  --green: #7de35a;
  --green-dark: #94f66f;
  --orange: #ffbd45;
  --red: #ff6b63;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.56);
  --soft-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 18% -12%, rgba(72, 138, 255, 0.14), transparent 36rem),
    radial-gradient(circle at 88% 12%, rgba(70, 216, 102, 0.12), transparent 30rem),
    linear-gradient(180deg, #020507 0%, #071015 44%, #04080b 100%);
  color: var(--ink);
}

:root[data-theme="dark"] .app-header {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(12, 18, 23, 0.9), rgba(8, 13, 17, 0.72)),
    linear-gradient(135deg, rgba(125, 227, 90, 0.1), rgba(68, 140, 255, 0.05));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}

:root[data-theme="dark"] .brand {
  color: var(--ink);
}

:root[data-theme="dark"] .brand-name {
  color: #f8fafc;
}

:root[data-theme="dark"] .brand-logo {
  filter:
    drop-shadow(0 0 18px rgba(125, 227, 90, 0.16))
    drop-shadow(0 12px 30px rgba(0, 0, 0, 0.46));
}

:root[data-theme="dark"] .theme-toggle {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .theme-toggle button {
  color: rgba(232, 238, 245, 0.7);
}

:root[data-theme="dark"] .theme-toggle button[aria-pressed="true"] {
  color: #06130d;
}

:root[data-theme="dark"] .header-pill,
:root[data-theme="dark"] .home-cta,
:root[data-theme="dark"] .secondary-home-link,
:root[data-theme="dark"] .partner-cta,
:root[data-theme="dark"] .primary-button,
:root[data-theme="dark"] .cookie-primary {
  background: linear-gradient(135deg, #85ec60, #38d665);
  color: #05110a;
  box-shadow: 0 18px 46px rgba(79, 220, 91, 0.28);
}

:root[data-theme="dark"] .home-hero {
  border-color: rgba(132, 255, 54, 0.16);
  background:
    linear-gradient(90deg, rgba(2, 7, 11, 0.94) 0%, rgba(2, 7, 11, 0.78) 36%, rgba(2, 7, 11, 0.32) 68%, rgba(2, 7, 11, 0.16) 100%),
    url("./home-night-solar-house.png") center right / cover no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(132, 255, 54, 0.08),
    0 34px 110px rgba(0, 0, 0, 0.52);
}

:root[data-theme="dark"] .home-hero::before {
  background:
    radial-gradient(circle at 16% 72%, rgba(132, 255, 54, 0.16), transparent 18rem),
    radial-gradient(circle at 76% 9%, rgba(55, 139, 255, 0.12), transparent 26rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.3));
}

:root[data-theme="dark"] .home-hero h1 {
  color: #f8fbff;
}

:root[data-theme="dark"] .home-hero-copy,
:root[data-theme="dark"] .partner-intro-content p:not(.eyebrow) {
  color: rgba(238, 244, 251, 0.83);
}

:root[data-theme="dark"] .home-hero .eyebrow,
:root[data-theme="dark"] .partner-intro-content .eyebrow {
  color: #a8ff8f;
}

:root[data-theme="dark"] .home-section-heading h2,
:root[data-theme="dark"] .panel-heading h2,
:root[data-theme="dark"] .waitlist-copy h2 {
  color: var(--ink);
}

:root[data-theme="dark"] .client-hero-card,
:root[data-theme="dark"] .partner-hero-card {
  border-color: rgba(132, 255, 54, 0.12);
  background:
    linear-gradient(90deg, rgba(5, 10, 13, 0.94) 0%, rgba(6, 12, 16, 0.78) 52%, rgba(6, 12, 16, 0.3) 100%),
    radial-gradient(circle at 80% 24%, rgba(125, 227, 90, 0.12), transparent 25rem),
    url("./client-home-background.png") center / cover no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(132, 255, 54, 0.045),
    0 30px 90px rgba(0, 0, 0, 0.48);
}

:root[data-theme="dark"] .partner-hero-card {
  background:
    linear-gradient(90deg, rgba(5, 10, 13, 0.94) 0%, rgba(6, 12, 16, 0.78) 52%, rgba(6, 12, 16, 0.3) 100%),
    radial-gradient(circle at 80% 24%, rgba(125, 227, 90, 0.12), transparent 25rem),
    url("./partner-installer-background.png") center / cover no-repeat;
}

:root[data-theme="dark"] .partner-intro-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(4, 10, 14, 0.94), rgba(4, 10, 14, 0.46)),
    radial-gradient(circle at 80% 20%, rgba(125, 227, 90, 0.12), transparent 24rem),
    url("./partner-installer-background.png") center / cover no-repeat;
}

:root[data-theme="dark"] .client-note,
:root[data-theme="dark"] .home-note,
:root[data-theme="dark"] .partner-page-grid article,
:root[data-theme="dark"] .waitlist-card,
:root[data-theme="dark"] .progress-card,
:root[data-theme="dark"] .form-card,
:root[data-theme="dark"] .result-card,
:root[data-theme="dark"] .data-card,
:root[data-theme="dark"] .lead-summary-card,
:root[data-theme="dark"] .equipment-card,
:root[data-theme="dark"] .battery-comparison-card,
:root[data-theme="dark"] .energy-balance-card,
:root[data-theme="dark"] .financial-card,
:root[data-theme="dark"] .monthly-card,
:root[data-theme="dark"] .explanation-card,
:root[data-theme="dark"] .legal-content,
:root[data-theme="dark"] .cookie-banner {
  border-color: rgba(255, 255, 255, 0.095);
  background: linear-gradient(145deg, rgba(16, 24, 30, 0.86), rgba(9, 14, 18, 0.76));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field select,
:root[data-theme="dark"] .waitlist-form textarea,
:root[data-theme="dark"] .multi-select-trigger {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(6, 11, 15, 0.88);
  color: var(--ink);
}

:root[data-theme="dark"] .field input:focus,
:root[data-theme="dark"] .field select:focus,
:root[data-theme="dark"] .waitlist-form textarea:focus,
:root[data-theme="dark"] .multi-select-trigger:focus-visible,
:root[data-theme="dark"] .multi-select:has(.multi-select-menu:not([hidden])) .multi-select-trigger {
  border-color: rgba(125, 227, 90, 0.56);
  background: rgba(8, 15, 19, 0.96);
  box-shadow: 0 0 0 5px rgba(125, 227, 90, 0.12);
}

:root[data-theme="dark"] .field select option {
  background: #081015;
  color: var(--ink);
}

:root[data-theme="dark"] .field input::placeholder,
:root[data-theme="dark"] .waitlist-form textarea::placeholder {
  color: rgba(232, 238, 245, 0.52);
}

:root[data-theme="dark"] .multi-select-menu,
:root[data-theme="dark"] .multi-select-hint {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(9, 15, 19, 0.98);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.48);
}

:root[data-theme="dark"] .multi-select-option:hover {
  background: rgba(125, 227, 90, 0.1);
}

:root[data-theme="dark"] .range-field,
:root[data-theme="dark"] .consent-field,
:root[data-theme="dark"] .toggle-row,
:root[data-theme="dark"] .input-affix em,
:root[data-theme="dark"] .secondary-button,
:root[data-theme="dark"] .compact-range-field {
  background: rgba(255, 255, 255, 0.055);
}

:root[data-theme="dark"] .bill-info-card,
:root[data-theme="dark"] .residential-fields,
:root[data-theme="dark"] .conditional-field,
:root[data-theme="dark"] .map-measurement-card {
  background: rgba(125, 227, 90, 0.065);
  box-shadow: inset 0 0 0 1px rgba(125, 227, 90, 0.1);
}

:root[data-theme="dark"] .map-canvas,
:root[data-theme="dark"] .map-metrics-grid article,
:root[data-theme="dark"] .financial-item,
:root[data-theme="dark"] .equipment-item,
:root[data-theme="dark"] .data-list div,
:root[data-theme="dark"] .cookie-banner-options label {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

:root[data-theme="dark"] .progress-ring {
  background:
    radial-gradient(circle at center, #0c1318 0 57%, transparent 58%),
    conic-gradient(var(--blue) var(--progress, 25%), rgba(255, 255, 255, 0.08) 0);
}

:root[data-theme="dark"] .step-list li.is-active {
  background: rgba(125, 227, 90, 0.11);
  color: var(--green-dark);
}

:root[data-theme="dark"] .step-list li .step-icon {
  background: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .step-list li.is-active .step-icon,
:root[data-theme="dark"] .step-list li.is-complete .step-icon {
  background: linear-gradient(135deg, #85ec60, #38d665);
  color: #06130d;
}

:root[data-theme="dark"] .section-icon,
:root[data-theme="dark"] .mini-icon,
:root[data-theme="dark"] .icon {
  background: rgba(125, 227, 90, 0.12);
  color: var(--green-dark);
  box-shadow: inset 0 0 0 1px rgba(125, 227, 90, 0.14);
}

:root[data-theme="dark"] .data-list {
  background: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .monthly-row i {
  background: rgba(125, 227, 90, 0.12);
}

:root[data-theme="dark"] .monthly-row i::before {
  background: linear-gradient(90deg, #4fd764, #7ee85f);
}

:root[data-theme="dark"] .cta-button {
  background: linear-gradient(135deg, #101820, #05090c);
  color: #f8fbff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

:root[data-theme="dark"] .form-actions {
  border-top-color: rgba(255, 255, 255, 0.09);
  background: rgba(4, 8, 11, 0.86);
}

:root[data-theme="dark"] .legal-back-link,
:root[data-theme="dark"] .cookie-secondary,
:root[data-theme="dark"] .cookie-ghost {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--green-dark);
}

:root[data-theme="dark"] .submit-status.is-success {
  background: rgba(125, 227, 90, 0.12);
  color: var(--green-dark);
}

:root[data-theme="dark"] .submit-status.is-info,
:root[data-theme="dark"] .estimate-status.is-visible {
  background: rgba(125, 227, 90, 0.1);
  color: var(--green-dark);
}

:root[data-theme="dark"] .coordinate-alert,
:root[data-theme="dark"] .system-note,
:root[data-theme="dark"] .legal-placeholder {
  background: rgba(255, 189, 69, 0.12);
  color: #ffd28a;
}

:root[data-theme="dark"] .legal-footer a,
:root[data-theme="dark"] .consent-field a,
:root[data-theme="dark"] .legal-content a {
  color: var(--green-dark);
}

@media (max-width: 680px) {
  .theme-toggle {
    min-height: 32px;
  }

  .theme-toggle button {
    min-height: 24px;
    padding: 0 8px;
    font-size: 0.68rem;
  }
}

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

  .brandbar {
    gap: 8px;
  }

  .brand-actions {
    gap: 6px;
  }

  .home-header .header-login-link {
    padding: 0 8px;
  }
}

@media (max-width: 760px) {
  .home-hero,
  :root[data-theme="dark"] .home-hero {
    background-position: center, 72% center;
  }
}

.home-hero,
.client-hero-card,
.partner-hero-card {
  background-clip: padding-box;
  contain: paint;
}

:root[data-theme="dark"] .home-hero {
  background-clip: padding-box, padding-box;
}

:root[data-theme="dark"] .client-hero-card,
:root[data-theme="dark"] .partner-hero-card {
  background-clip: padding-box, padding-box, padding-box;
}
