:root {
  --bg: #f5f8f4;
  --ink: #10221c;
  --muted: #617067;
  --line: #dfe8df;
  --surface: #ffffff;
  --surface-soft: #edf5ee;
  --green: #0f7a55;
  --green-dark: #07543b;
  --lime: #c6f26f;
  --blue: #d7eef6;
  --amber: #f4c862;
  --shadow: 0 18px 55px rgba(18, 50, 38, 0.12);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(215, 238, 246, 0.7) 0, transparent 420px),
    var(--bg);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.has-sticky-cta {
  padding-bottom: 88px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.site-header,
main {
  width: calc(100% - 32px);
  max-width: 1120px;
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 10px;
  background: rgba(245, 248, 244, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 800;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, var(--lime), transparent 45%),
    linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 8px 22px rgba(15, 122, 85, 0.28);
}

.header-link {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 122, 85, 0.2);
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.72);
}

.hero {
  display: grid;
  gap: 22px;
  padding: 26px 0 24px;
  min-width: 0;
}

.hero-content {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

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

h1 {
  max-width: 100%;
  font-size: clamp(2rem, 9.8vw, 4.8rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.38rem, 5.9vw, 2.6rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.02rem;
  line-height: 1.25;
}

.hero-subtitle,
.trust-line,
.section-heading p:not(.eyebrow),
.info-card p,
.faq-list p,
.final-cta p,
.disclaimer {
  color: var(--muted);
}

.hero-subtitle {
  max-width: 39rem;
  margin: 0;
  font-size: 1.05rem;
}

.trust-line {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.button {
  min-height: 54px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.button:active {
  transform: scale(0.98);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 16px 34px rgba(15, 122, 85, 0.24);
}

.button-whatsapp {
  color: #062418;
  background: linear-gradient(135deg, #24d366, #b7f971);
  box-shadow: 0 16px 34px rgba(36, 211, 102, 0.25);
}

.button-ghost {
  min-height: 46px;
  color: var(--green-dark);
  border: 1px solid rgba(15, 122, 85, 0.2);
  background: #ffffff;
  box-shadow: none;
}

.hero-button {
  margin-top: 4px;
}

.hero-visual {
  position: relative;
  min-width: 0;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid rgba(15, 122, 85, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(11, 78, 62, 0.08), transparent 52%),
    linear-gradient(135deg, #eaf5ee, #ffffff);
  box-shadow: var(--shadow);
}

.visual-sky {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(198, 242, 111, 0.25), transparent 35%),
    linear-gradient(180deg, #d7eef6, #f9fcf7 58%, #dfece1);
}

.sun,
.moon {
  position: absolute;
  border-radius: 999px;
}

.sun {
  top: 28px;
  left: 24px;
  width: 58px;
  height: 58px;
  background: var(--amber);
  box-shadow: 0 0 55px rgba(244, 200, 98, 0.55);
}

.moon {
  top: 35px;
  right: 32px;
  width: 42px;
  height: 42px;
  background: #1d3540;
  box-shadow: inset -12px 0 0 #f3f7ef;
}

.visual-home {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
}

.roof {
  height: 84px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 16px;
  clip-path: polygon(8% 100%, 50% 0, 92% 100%);
  background: #12352c;
}

.roof span {
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.25), transparent 48%),
    #205d79;
}

.house-body {
  position: relative;
  min-height: 138px;
  margin: -2px 16px 0;
  border-radius: 0 0 22px 22px;
  background: #fffaf0;
  box-shadow: inset 0 -16px 0 rgba(16, 34, 28, 0.08);
}

.window,
.door {
  position: absolute;
  bottom: 28px;
  border-radius: 12px;
  background: #cfeaf3;
}

.window {
  left: 24px;
  width: 62px;
  height: 48px;
  box-shadow: inset 0 0 0 5px #ffffff;
}

.door {
  left: 104px;
  width: 48px;
  height: 74px;
  background: #174a3b;
}

.battery-tower {
  position: absolute;
  right: 18px;
  bottom: 22px;
  width: 82px;
  height: 96px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(180deg, var(--green), var(--green-dark));
  box-shadow: 0 16px 30px rgba(15, 122, 85, 0.22);
}

.battery-tower span {
  width: 42px;
  height: 26px;
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
}

.battery-tower strong {
  font-size: 0.72rem;
}

.energy-card {
  position: absolute;
  left: 18px;
  bottom: 24px;
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px rgba(18, 50, 38, 0.14);
}

.energy-card span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.energy-card strong {
  color: var(--green-dark);
  font-size: 1rem;
}

.calculator-section,
.results-section,
.trust-section,
.faq-section,
.final-cta {
  margin-top: 18px;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.calculator-card,
.result-card,
.info-card,
.faq-list details,
.final-cta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.calculator-card {
  padding: 18px;
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  margin: 12px 0 22px;
  border-radius: 999px;
  background: var(--surface-soft);
}

#progress-bar {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--lime));
  transition: width 0.24s ease;
}

.question-panel {
  display: grid;
  gap: 16px;
}

.question-panel h3 {
  font-size: 1.3rem;
}

.option-list {
  display: grid;
  gap: 10px;
}

.option-button {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dce8dc;
  border-radius: 16px;
  color: var(--ink);
  background: #ffffff;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.option-button::after {
  content: ">";
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--surface-soft);
}

.option-button.is-selected {
  border-color: rgba(15, 122, 85, 0.46);
  background: #f0f8ef;
  box-shadow: inset 0 0 0 1px rgba(15, 122, 85, 0.18);
}

.calculator-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.calculator-actions .button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.is-hidden {
  display: none;
}

.result-grid,
.trust-grid {
  display: grid;
  gap: 12px;
}

.result-card,
.info-card {
  padding: 18px;
}

.result-card {
  display: grid;
  gap: 7px;
}

.result-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-card strong {
  color: var(--green-dark);
  font-size: 1.35rem;
  line-height: 1.18;
}

.disclaimer {
  margin: 14px 0 0;
  padding: 14px;
  border: 1px solid #dfe8df;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
}

.result-cta {
  margin-top: 14px;
}

.info-card {
  display: grid;
  gap: 8px;
}

.info-card p,
.faq-list p,
.final-cta p {
  margin: 0;
}

.card-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--green-dark);
  background: var(--surface-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 0 16px;
}

.faq-list summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--surface-soft);
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  padding: 0 0 16px;
}

.final-cta {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
  padding: 22px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(198, 242, 111, 0.22), transparent 42%),
    linear-gradient(135deg, var(--green), var(--green-dark));
}

.final-cta p {
  color: rgba(255, 255, 255, 0.78);
}

.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  padding: 12px 16px 16px;
  background: rgba(245, 248, 244, 0.9);
  border-top: 1px solid rgba(15, 122, 85, 0.14);
  backdrop-filter: blur(16px);
}

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

  .site-header,
  main,
  .hero,
  .hero-content,
  .hero-visual,
  .section-heading,
  .calculator-card,
  .results-section,
  .trust-section,
  .faq-section,
  .final-cta {
    max-width: calc(100vw - 32px);
  }

  h1,
  h2,
  .hero-subtitle,
  .trust-line,
  .question-panel h3 {
    max-width: calc(100vw - 32px);
  }

  .hero-visual {
    min-height: 300px;
  }

  .visual-home {
    right: 8px;
    left: 8px;
  }

  .house-body {
    margin-right: 8px;
    margin-left: 8px;
  }

  .battery-tower {
    right: 10px;
    width: 70px;
  }

  .battery-tower strong {
    font-size: 0.66rem;
  }

  .site-header,
  main {
    margin-left: 16px;
    margin-right: auto;
    max-width: 358px;
  }
}

@media (min-width: 680px) {
  .site-header,
  main {
    width: calc(100% - 48px);
    max-width: 1120px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 410px;
    align-items: center;
    padding-top: 52px;
  }

  .hero-content {
    gap: 18px;
  }

  h1 {
    max-width: 11ch;
  }

  .button {
    width: auto;
    min-width: 220px;
  }

  .calculator-card,
  .results-section,
  .trust-section,
  .faq-section,
  .final-cta {
    width: min(100%, 760px);
    margin-right: auto;
    margin-left: auto;
  }

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

  .final-cta {
    justify-items: start;
  }

  .sticky-cta {
    left: auto;
    width: 360px;
    border-left: 1px solid rgba(15, 122, 85, 0.14);
    border-radius: 22px 0 0 0;
  }
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) 480px;
    gap: 46px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .calculator-section,
  .results-section,
  .trust-section,
  .faq-section,
  .final-cta {
    margin-top: 42px;
  }

  .calculator-card,
  .results-section,
  .trust-section,
  .faq-section,
  .final-cta {
    width: min(100%, 880px);
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
