/* ============ Base ============ */
:root {
  --ink: #0b1020;
  --ink-2: #070b16;
  --text: #0f172a;
  --muted: #5b6475;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --green: #16a34a;
  --green-700: #15803d;
  --green-50: #ecfdf3;
  --lime: #4ade80;
  --wa: #25d366;
  --red: #dc2626;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
a { color: inherit; }
section[id] { scroll-margin-top: 72px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ============ Botões ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border: 0; border-radius: 14px;
  font: inherit; font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 10px 24px -10px rgba(22, 163, 74, .7); }
.btn--primary:hover { background: var(--green-700); }
.btn--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--muted); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 12px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 17px; }
.btn--block { width: 100%; }
.ico { width: 22px; height: 22px; flex: none; }

/* ============ Topo ============ */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 16, 32, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topbar__in { height: 64px; display: flex; align-items: center; justify-content: space-between; }

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  font-weight: 800; font-size: 19px; letter-spacing: -0.02em;
}
.logo b { color: var(--lime); }
.logo__mark { position: relative; width: 28px; height: 28px; border-radius: 8px; background: var(--green); }
.logo__mark::after {
  content: ""; position: absolute; inset: 5px 9px;
  border: 2px solid #fff; border-radius: 3px;
}

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(600px 400px at 85% 30%, rgba(34, 197, 94, .22), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(34, 197, 94, .10), transparent 70%),
    var(--ink);
  padding: 56px 0 72px;
}
.hero__grid { display: grid; gap: 48px; align-items: center; }
.notfound { min-height: calc(100vh - 64px); display: grid; align-items: center; }
.eyebrow {
  display: inline-block; margin: 0 0 20px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  color: var(--lime); background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .25);
}
.hero h1 { font-size: clamp(38px, 6.4vw, 64px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
.hl {
  background: linear-gradient(90deg, #4ade80, #a3e635);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 20px 0 0; max-width: 34em; font-size: clamp(17px, 2vw, 19px); color: rgba(255, 255, 255, .75); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .25); }
.hero .btn--ghost:hover { border-color: rgba(255, 255, 255, .6); }

.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-size: 15px; color: rgba(255, 255, 255, .88); }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: var(--ink); background: var(--lime);
}

/* Celular ilustrativo */
.hero__art { position: relative; display: grid; place-items: center; padding: 8px 0; }
.phone {
  position: relative; width: 260px; aspect-ratio: 9 / 19;
  padding: 10px; border-radius: 46px; background: #0f1115;
  box-shadow: 0 0 0 2px #2a2f3a, 0 40px 80px -20px rgba(0, 0, 0, .6), 0 0 120px rgba(34, 197, 94, .25);
  transform: rotate(-3deg);
}
.phone__island {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 25px; border-radius: 20px; background: #000; z-index: 2;
}
.phone__screen {
  height: 100%; overflow: hidden; border-radius: 36px;
  display: flex; flex-direction: column; gap: 10px;
  padding: 0 12px 16px;
  background: #efeae2; color: #111b21; font-size: 13px; line-height: 1.4;
}
.chat__head {
  display: flex; align-items: center; gap: 10px;
  margin: 0 -12px 6px; padding: 52px 14px 12px;
  background: #075e54; color: #fff;
}
.chat__head strong { display: block; font-size: 14px; }
.chat__head small { font-size: 11.5px; opacity: .8; }
.chat__avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--lime), var(--green)); }
.bubble {
  max-width: 86%; padding: 8px 10px; border-radius: 10px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
  animation: pop .5s ease-out both;
}
.bubble--out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 2px; }
.bubble--in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.phone__screen > :nth-child(2) { animation-delay: .3s; }
.phone__screen > :nth-child(3) { animation-delay: 1.2s; }
.phone__screen > :nth-child(4) { animation-delay: 2.1s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }

.tag {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px;
  background: #fff; color: var(--text); font-size: 14px; font-weight: 700;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45);
}
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.tag--a { top: 14%; left: 2%; }
.tag--b { bottom: 14%; right: 2%; }

/* ============ Seções ============ */
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section__title { text-align: center; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.025em; }
.section__sub { text-align: center; color: var(--muted); margin: 10px auto 36px; max-width: 36em; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step__n {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 50%; background: var(--ink); color: var(--lime); font-weight: 800;
}
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }

.pills { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pills li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 15px;
}
.pills li::before { content: "✓"; color: var(--green); font-weight: 800; }
.models { text-align: center; color: var(--muted); margin: 24px 0 0; font-size: 15px; }

/* ============ Formulário ============ */
.quote { background: linear-gradient(180deg, #f0fdf4 0%, #fff 420px); }

.card {
  margin: 0 0 16px; padding: 22px 20px 6px; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -16px rgba(15, 23, 42, .12);
}
.card legend {
  float: left; width: 100%; padding: 0; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800; letter-spacing: -0.01em;
}
.card legend + * { clear: both; }
.card__n {
  display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--green); color: #fff; font-size: 14px;
}

.grid2 { display: grid; gap: 0 16px; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field__label { font-weight: 600; font-size: 15px; }
.field__label em { font-style: normal; font-weight: 400; color: var(--muted); }
.hint { margin: 0; font-size: 13.5px; color: var(--muted); }

input[type="text"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font: inherit; font-size: 16px; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
textarea { padding: 12px 14px; resize: vertical; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6475' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(22, 163, 74, .15); }
input:disabled { background: var(--bg-alt); color: var(--muted); cursor: not-allowed; }
input::placeholder, textarea::placeholder { color: #9aa3b2; }
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Campo com prefixo/sufixo (%, R$) */
.affix {
  display: flex; align-items: stretch; overflow: hidden;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.affix > span { display: flex; align-items: center; padding: 0 14px; background: var(--bg-alt); color: var(--muted); font-weight: 600; }
.affix input { border: 0; border-radius: 0; }
.affix input:focus { box-shadow: none; }
.affix:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(22, 163, 74, .15); }
#bateria-field .affix { max-width: 200px; }

/* Checkbox simples */
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--green); }
.check--legal { padding: 14px; border-radius: 12px; background: var(--bg-alt); color: var(--text); }

/* Chips (rádio e checkbox) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input, .option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 42px; padding: 8px 14px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 14.5px; cursor: pointer; user-select: none;
  transition: border-color .15s, background .15s, color .15s;
}
.chip span:hover { border-color: #b8c0cc; }
.chip input:checked + span { border-color: var(--green); background: var(--green-50); color: var(--green-700); font-weight: 600; }
.chip input:checked + span::before { content: "✓"; font-weight: 800; }
.chip input:focus-visible + span, .option input:focus-visible + span { outline: 3px solid rgba(22, 163, 74, .35); outline-offset: 2px; }

/* Opções grandes (forma de venda) */
.options { display: grid; gap: 10px; }
.option { position: relative; }
.option > span {
  position: relative; display: block;
  padding: 14px 16px 14px 48px;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.option > span::before {
  content: ""; position: absolute; left: 16px; top: 17px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #b8c0cc; background: #fff;
}
.option strong { display: block; }
.option small { display: block; color: var(--muted); font-size: 14px; }
.option input:checked + span { border-color: var(--green); background: var(--green-50); }
.option input:checked + span::before { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 4px #fff; }

/* Erros */
.field.has-error::after { content: attr(data-error); color: var(--red); font-size: 13.5px; font-weight: 600; }
.field.has-error input:not([type="checkbox"]):not([type="radio"]), .field.has-error select, .field.has-error .affix { border-color: var(--red); }
.field.has-error .affix input { border: 0; }
.field.has-error .chip span, .field.has-error .option > span { border-color: #fca5a5; }
.field.has-error .check--legal { box-shadow: inset 0 0 0 1.5px var(--red); }

.form__foot { display: grid; gap: 12px; margin-top: 8px; }
.form__error { margin: 0; text-align: center; color: var(--red); font-weight: 600; }
.form__error:empty { display: none; }

/* Tela de sucesso */
.done { text-align: center; padding: 36px 24px; }
.done:focus { outline: none; }
.done__icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--green-50); color: var(--green); font-size: 30px; font-weight: 800;
}
.done h3 { font-size: 24px; margin-bottom: 8px; }
.done p { margin: 0 0 8px; }
.done__status { padding: 10px 14px; border-radius: 12px; background: var(--green-50); color: var(--green-700); font-weight: 600; font-size: 15px; }
.done__status:empty { display: none; }
.done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.linkbtn { margin-top: 20px; padding: 6px; border: 0; background: none; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }

/* ============ Formas de venda ============ */
.ways { display: grid; gap: 16px; }
.way { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.way__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px;
  border-radius: 14px; background: var(--green-50); font-size: 26px;
}
.way h3 { font-size: 20px; margin-bottom: 8px; }
.way p { margin: 0; color: var(--muted); }

/* ============ FAQ ============ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; padding: 18px 40px 18px 0;
  font-weight: 700; font-size: 17px; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 26px; font-weight: 400; color: var(--green); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ============ CTA final ============ */
.cta-band {
  color: #fff; text-align: center; padding: 72px 0;
  background: radial-gradient(600px 300px at 50% 0%, rgba(34, 197, 94, .25), transparent 70%), var(--ink);
}
.cta-band h2 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
.cta-band p { margin: 10px 0 28px; color: rgba(255, 255, 255, .75); font-size: 18px; }

/* ============ Rodapé ============ */
.footer { background: var(--ink-2); color: rgba(255, 255, 255, .7); padding: 40px 0 100px; }
.footer__in { display: grid; gap: 12px; justify-items: start; }
.footer__wa { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; text-decoration: none; }
.footer__wa .ico { color: var(--wa); }
.small { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .5); }

/* Botão flutuante do WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* ============ Responsivo ============ */
@media (min-width: 640px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
  .card { padding: 28px 28px 10px; }
}
@media (min-width: 768px) {
  .section { padding: 88px 0; }
  .ways { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .hero { padding: 80px 0 96px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; }
  .phone { width: 290px; }
  .footer__in { grid-template-columns: auto 1fr; align-items: center; }
  .footer__wa { justify-self: end; }
  .footer .small { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .hero__cta .btn { width: 100%; }
  .tag { font-size: 12.5px; padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
