/* WattEV — site institucional. Cores da marca iguais às do app (D-018). */
@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-wdth.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --deep: #1a0b2e;
  --deep-2: #24123d;
  --violet: #7521b3;
  --violet-ink: #5c1690;
  --violet-light: #b57beb;
  --gold: #e0ad2e;
  --gold-light: #f1cf74;
  --lavender: #f3eefa;
  --white: #ffffff;
  --ink: #1a0b2e;
  --muted: #5e516f;
  --line: #e2d8ee;
  --on-deep: #f3eefa;
  --on-deep-muted: #b9abcc;
  --line-deep: #3a2558;

  --wrap: 1180px;
  --gut: clamp(20px, 4vw, 40px);
  --sec: clamp(64px, 9vw, 120px);

  /* Escala tipográfica (razão ~1,25 a partir de 17 px) */
  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-md: 1.3125rem;
  --t-lg: 1.625rem;
  --t-xl: clamp(1.75rem, 3.2vw, 2.5rem);
  --t-2xl: clamp(2.25rem, 5.4vw, 4rem);
  --t-3xl: clamp(2.6rem, 7.2vw, 5.25rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--t-base);
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
a {
  color: var(--violet);
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
}
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--gold);
  color: var(--deep);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
  font-weight: 700;
}
.skip:focus {
  left: 8px;
}

/* ---------- Tipografia ---------- */
.h-display,
.h-2xl,
.h-xl,
.h-lg {
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}
.h-display {
  font-size: var(--t-3xl);
}
.h-2xl {
  font-size: var(--t-2xl);
  line-height: 1.04;
}
.h-xl {
  font-size: var(--t-xl);
  line-height: 1.08;
}
.h-lg {
  font-size: var(--t-lg);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.lead {
  font-size: var(--t-md);
  line-height: 1.5;
  max-width: 36em;
  color: var(--muted);
}
.prose {
  max-width: 38em;
}
.prose p + p {
  margin-top: 1em;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: var(--t-sm);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-stretch: 112%;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.btn-sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: var(--t-sm);
}
.btn-gold {
  background: var(--gold);
  color: var(--deep);
}
.btn-gold:hover {
  background: var(--gold-light);
}
.btn-violet {
  background: var(--violet);
  color: var(--white);
}
.btn-violet:hover {
  background: var(--violet-ink);
}
.btn-ghost {
  background: transparent;
  color: var(--on-deep);
  box-shadow: inset 0 0 0 2px var(--line-deep);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 2px var(--on-deep-muted);
}

/* ---------- Topo ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--deep);
  border-bottom: 1px solid var(--line-deep);
}
.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.brand img {
  height: 44px;
  width: auto;
}
.menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.menu a:not(.btn) {
  color: var(--on-deep);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.menu a:not(.btn):hover,
.menu a[aria-current='page'] {
  border-bottom-color: var(--gold);
}
.menu .menu-app {
  color: var(--on-deep-muted);
}
.menu-btn {
  display: none;
  font: inherit;
  font-weight: 600;
  color: var(--on-deep);
  background: transparent;
  border: 2px solid var(--line-deep);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
}
@media (max-width: 860px) {
  .menu-btn {
    display: block;
  }
  .menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: var(--deep);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gut) 24px;
    border-bottom: 1px solid var(--line-deep);
  }
  .menu.open {
    display: flex;
  }
  .menu a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-deep);
    font-size: var(--t-md);
  }
  .menu a[aria-current='page'] {
    color: var(--gold);
    border-bottom-color: var(--line-deep);
  }
  .menu .btn {
    margin-top: 18px;
    min-height: 52px;
    font-size: var(--t-base);
  }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--deep);
  color: var(--on-deep);
  padding: clamp(56px, 9vw, 112px) 0 0;
  overflow: hidden;
}
.hero .h-display {
  max-width: 13ch;
}
.hero .lead {
  color: var(--on-deep-muted);
  margin-top: 28px;
}
.hero-sub .h-display {
  max-width: 16ch;
  font-size: var(--t-2xl);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* A linha dourada que "carrega" uma vez ao abrir a página. */
.charge {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
  padding-bottom: 28px;
}
.charge-track {
  height: 6px;
  background: var(--line-deep);
  border-radius: 6px;
  overflow: hidden;
}
.charge-fill {
  height: 100%;
  width: 80%;
  background: linear-gradient(90deg, var(--violet-light), var(--gold));
  border-radius: 6px;
  transform-origin: left;
  animation: fill 2.4s cubic-bezier(0.3, 0.7, 0.2, 1) 0.3s both;
}
.charge-label {
  font-variant-numeric: tabular-nums;
  font-stretch: 112%;
  font-weight: 700;
  color: var(--gold);
  font-size: var(--t-sm);
  white-space: nowrap;
}
@keyframes fill {
  from {
    transform: scaleX(0.2);
  }
  to {
    transform: scaleX(1);
  }
}

/* ---------- Dois caminhos (condomínio / comercial) ---------- */
.routes {
  background: var(--deep);
  padding-bottom: var(--sec);
}
.routes-in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line-deep);
  border: 2px solid var(--line-deep);
  border-radius: 28px;
  overflow: hidden;
}
.route {
  background: var(--deep-2);
  color: var(--on-deep);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-decoration: none;
  transition: background-color 0.2s;
}
.route:hover {
  background: #2d1750;
}
.route-for {
  color: var(--gold);
  font-weight: 600;
}
.route ul {
  list-style: none;
  padding: 0;
  color: var(--on-deep-muted);
  display: grid;
  gap: 8px;
}
.route li {
  padding-left: 22px;
  position: relative;
}
.route li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 3px;
  border-radius: 2px;
  background: var(--violet-light);
}
.route-go {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 700;
  font-stretch: 112%;
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
@media (max-width: 760px) {
  .routes-in {
    grid-template-columns: 1fr;
  }
}

/* ---------- Seções ---------- */
.section {
  padding: var(--sec) 0;
}
.section-lav {
  background: var(--lavender);
}
.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(36px, 5vw, 64px);
  max-width: 44em;
}

/* ---------- Escala de potência ---------- */
.scale {
  list-style: none;
  padding: 0;
  border-top: 2px solid var(--deep);
}
.scale-row {
  display: grid;
  grid-template-columns: minmax(150px, 230px) 1fr minmax(180px, 280px);
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
}
.scale-kw {
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 5.25rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.scale-kw span {
  font-size: 0.36em;
  letter-spacing: 0;
  margin-left: 4px;
  color: var(--muted);
}
.scale-bar {
  height: 18px;
  background: var(--lavender);
  border-radius: 18px;
  overflow: hidden;
}
.scale-bar i {
  display: block;
  height: 100%;
  border-radius: 18px;
  background: var(--gold);
  width: var(--w);
}
.scale-meta {
  display: grid;
  gap: 2px;
}
.scale-meta strong {
  font-stretch: 112%;
}
.scale-meta span {
  color: var(--muted);
  font-size: var(--t-sm);
}
.scale-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: var(--t-sm);
  max-width: 52em;
}
@media (max-width: 760px) {
  .scale-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ---------- Passo a passo ---------- */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 36px);
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  border-top: 2px solid var(--violet);
  padding-top: 18px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.steps li::before {
  content: counter(step);
  font-stretch: 125%;
  font-weight: 800;
  font-size: var(--t-lg);
  color: var(--violet);
  line-height: 1;
}
.steps h3 {
  font-size: var(--t-md);
  font-stretch: 112%;
  line-height: 1.2;
}
.steps p {
  color: var(--muted);
}
@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Duas colunas ---------- */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.split .h-2xl {
  font-size: var(--t-xl);
}
.split > :first-child {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 20px;
}
@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split > :first-child {
    position: static;
  }
}

/* Lista de recursos: título forte + explicação, separados por linha. */
.features {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}
.features li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 6px;
}
.features strong {
  font-size: var(--t-md);
  font-stretch: 112%;
  line-height: 1.25;
}
.features span {
  color: var(--muted);
}

/* Dois públicos lado a lado (síndico / morador). */
.audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
}
.audience > div {
  display: grid;
  gap: 18px;
  align-content: start;
}
@media (max-width: 760px) {
  .audience {
    grid-template-columns: 1fr;
  }
}

/* Formatos de contrato. */
.formats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.format {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 3.5vw, 40px);
  display: grid;
  gap: 16px;
  align-content: start;
}
.format.main {
  border-color: var(--violet);
}
.format .tag {
  justify-self: start;
  background: var(--violet);
  color: var(--white);
  font-size: var(--t-sm);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}
.format dl {
  display: grid;
  gap: 12px;
}
.format dt {
  font-weight: 700;
  font-stretch: 112%;
}
.format dd {
  color: var(--muted);
}
@media (max-width: 760px) {
  .formats {
    grid-template-columns: 1fr;
  }
}

/* Faixa de destaque com um número. */
.fact {
  background: var(--violet);
  color: var(--white);
}
.fact-in {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 7vw, 88px) var(--gut);
}
.fact .fact-num {
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--gold);
}
.fact p {
  font-size: var(--t-md);
  max-width: 30em;
}
.fact p strong {
  display: block;
  font-size: var(--t-lg);
  font-stretch: 125%;
  line-height: 1.15;
  margin-bottom: 10px;
}
@media (max-width: 640px) {
  .fact-in {
    grid-template-columns: 1fr;
  }
}

/* ---------- Carregadores ---------- */
.product {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(48px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--line);
}
.product:first-of-type {
  padding-top: 0;
}
.product-art {
  background: var(--lavender);
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: end center;
  padding: 24px 24px 0;
  overflow: hidden;
}
.product-art svg {
  width: 100%;
  height: auto;
  max-height: 100%;
}
.product-body {
  display: grid;
  gap: 20px;
  align-content: start;
}
.product-body .scale-kw {
  font-size: clamp(3.5rem, 8vw, 6rem);
}
.specs {
  display: grid;
  grid-template-columns: max-content 1fr;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.specs dt,
.specs dd {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.specs dt {
  color: var(--muted);
  padding-right: 32px;
}
.specs dd {
  font-weight: 500;
}
@media (max-width: 760px) {
  .product {
    grid-template-columns: 1fr;
  }
  .product-art {
    max-width: 320px;
    aspect-ratio: 4 / 3;
  }
  .specs {
    grid-template-columns: 1fr;
  }
  .specs dt {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .specs dd {
    padding-top: 2px;
  }
}
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.jump a {
  color: var(--on-deep);
  text-decoration: none;
  border: 2px solid var(--line-deep);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  font-stretch: 112%;
  font-variant-numeric: tabular-nums;
}
.jump a:hover {
  border-color: var(--gold);
}

/* ---------- Perguntas ---------- */
.faq {
  border-top: 1px solid var(--line);
  max-width: 52em;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 40px 22px 0;
  font-size: var(--t-md);
  font-weight: 600;
  font-stretch: 112%;
  position: relative;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 16px;
  font-size: 1.6em;
  font-weight: 400;
  color: var(--violet);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details > div {
  padding: 0 0 24px;
  color: var(--muted);
  max-width: 44em;
}

/* ---------- Contato ---------- */
.contact {
  background: var(--deep);
  color: var(--on-deep);
  padding: var(--sec) 0;
}
.contact-in {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.contact-copy {
  display: grid;
  gap: 20px;
}
.contact-copy p {
  color: var(--on-deep-muted);
  max-width: 30em;
}
.contact-alt a {
  color: var(--gold);
  font-weight: 600;
}
@media (max-width: 860px) {
  .contact-in {
    grid-template-columns: 1fr;
  }
}
.form {
  background: var(--deep-2);
  border: 1px solid var(--line-deep);
  border-radius: 28px;
  padding: clamp(22px, 3.5vw, 40px);
  display: grid;
  gap: 18px;
}
.field {
  display: grid;
  gap: 6px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 520px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}
.form label {
  font-weight: 500;
}
.opt {
  color: var(--on-deep-muted);
  font-weight: 400;
}
.form input:not([type='radio']):not([type='checkbox']),
.form textarea {
  font: inherit;
  color: var(--on-deep);
  background: var(--deep);
  border: 1.5px solid var(--line-deep);
  border-radius: 14px;
  padding: 13px 16px;
  width: 100%;
}
.form input::placeholder,
.form textarea::placeholder {
  color: #7d6e93;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form [aria-invalid='true'] {
  border-color: #ef6b5e !important;
}
.choice {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.choice legend {
  font-weight: 500;
  margin-bottom: 8px;
  padding: 0;
}
.choice label {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1.5px solid var(--line-deep);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 500;
  line-height: 1.25;
}
.choice label:has(input:checked) {
  border-color: var(--gold);
  background: #2f1a4d;
}
.choice.invalid label {
  border-color: #ef6b5e;
}
.choice input,
.consent input {
  accent-color: var(--gold);
  width: 18px;
  height: 18px;
  flex: none;
}
@media (max-width: 520px) {
  .choice {
    grid-template-columns: 1fr;
  }
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--t-sm);
  color: var(--on-deep-muted);
  font-weight: 400 !important;
}
.consent input {
  margin-top: 2px;
}
.btn {
  text-align: center;
  line-height: 1.2;
}
.consent a {
  color: var(--on-deep);
}
.form .btn {
  justify-self: start;
}
.form .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.form-status {
  font-weight: 500;
  min-height: 1.5em;
}
.form-status.ok {
  color: var(--gold);
}
.form-status.err {
  color: #ef9a90;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form.sent .field,
.form.sent .field-row,
.form.sent .choice,
.form.sent .consent,
.form.sent .btn {
  display: none;
}
.form.sent .form-status {
  font-size: var(--t-md);
}

/* ---------- Rodapé ---------- */
.footer {
  background: #12071f;
  color: var(--on-deep-muted);
  padding: 56px 0 28px;
  font-size: var(--t-sm);
}
.footer-in {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px 64px;
  align-items: start;
}
.footer-brand img {
  height: 40px;
  width: auto;
}
.footer-brand p {
  margin-top: 8px;
}
.footer-nav {
  display: grid;
  gap: 8px;
}
.footer a {
  color: var(--on-deep);
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}
.footer-legal {
  font-style: normal;
  line-height: 1.7;
}
.footer-copy {
  margin-top: 40px;
}
@media (max-width: 760px) {
  .footer-in {
    grid-template-columns: 1fr;
  }
}

/* ---------- Páginas de texto ---------- */
.doc {
  padding: var(--sec) 0;
}
.doc .prose h2 {
  font-size: var(--t-lg);
  font-stretch: 112%;
  margin: 1.8em 0 0.5em;
  line-height: 1.2;
}
.doc .prose ul {
  padding-left: 1.2em;
  margin-top: 0.6em;
}
.doc .prose li + li {
  margin-top: 0.3em;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
