/* JPL Charger — página de captura de parceiros. Cores e fontes da proposta comercial (vermelho JPL, Space Grotesk + DM Sans). */
:root {
  --ink: #0B0B0D;
  --ink-2: #141416;
  --panel: #1A1B20;
  --line: rgba(255, 255, 255, .11);
  --red: #DC2626;
  --red-dk: #B91C1C;
  --red-hi: #F04848;
  --paper: #F6F4EF;
  --white: #FFFFFF;
  --text: #141416;
  --muted: #5B5F68;
  --muted-d: #A3A7B0;
  --green: #10B981;
  --edge: #E6E2D9;
  --head: 'Space Grotesk', 'Segoe UI', Arial, sans-serif;
  --body: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  --r: 20px;
  --pad: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--ink); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red-hi); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--pad); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic--fill { fill: currentColor; stroke: none; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 24px; border-radius: 14px; border: 1.5px solid var(--red); background: var(--red); color: #fff; font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .18s, background .18s, border-color .18s, box-shadow .18s; box-shadow: 0 10px 30px -14px rgba(220, 38, 38, .8); }
.btn:hover { background: var(--red-dk); border-color: var(--red-dk); transform: translateY(-2px); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn .ic { transition: transform .18s; }
.btn:hover .ic:last-child:not(.ic--fill) { transform: translateX(3px); }
.btn--lg { min-height: 56px; padding: 15px 28px; font-size: 17px; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--ghost { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .28); box-shadow: none; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
.btn--dark { background: var(--ink-2); border-color: var(--ink-2); box-shadow: none; }
.btn--dark:hover { background: #000; border-color: #000; }
.btn--dark.btn--ghost { color: var(--text); }

/* ---------- Cabeçalho ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .25s, box-shadow .25s; }
.top.is-solid { background: rgba(11, 11, 13, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.top__in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.top__logo { display: block; margin-right: auto; }
.top__logo img { height: 48px; width: auto; }
.top__nav { display: flex; gap: 26px; }
.top__nav a { color: #D6D8DD; font-size: 15px; font-weight: 500; text-decoration: none; position: relative; padding: 6px 0; }
.top__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red-hi); transform: scaleX(0); transform-origin: left; transition: transform .22s; }
.top__nav a:hover::after { transform: scaleX(1); }

/* ---------- Eyebrow e títulos ---------- */
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.sec--dark .eyebrow, .hero .eyebrow { color: var(--red-hi); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); max-width: 22ch; }
.lead { font-size: 1.15rem; color: var(--muted); margin-top: 20px; max-width: 52ch; }
.sec--dark .lead { color: var(--muted-d); }
.note { font-size: 14px; color: var(--muted); line-height: 1.5; max-width: 70ch; }
.sec--dark .note { color: #8B909B; }

/* ---------- Seções ---------- */
.sec { padding-block: clamp(72px, 9vw, 120px); position: relative; }
.sec--tight { padding-block: clamp(56px, 7vw, 88px); }
.sec--dark { background: var(--ink); color: #fff; }
.sec--paper { background: var(--paper); }
.sec--dark + .sec--dark { border-top: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 112px 0 64px; overflow: hidden; background: var(--ink); color: #fff; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(900px 600px at 82% 30%, rgba(220, 38, 38, .30), transparent 62%),
  radial-gradient(700px 500px at 5% 100%, rgba(220, 38, 38, .12), transparent 60%); }
.hero__bg::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 70% 35%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 35%, #000 0%, transparent 70%); }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.1fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.35rem, 4.6vw, 3.95rem); letter-spacing: -.03em; }
.hero__lead { margin-top: 24px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #B9BCC5; max-width: 50ch; }
.hero__lead strong { color: #fff; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; font-size: 15px; color: #C6C9D0; }
.hero__checks li { display: flex; align-items: center; gap: 8px; }
.hero__checks .ic { color: var(--green); width: 18px; height: 18px; stroke-width: 2.6; }

.hero__visual { position: relative; padding: 0 0 56px 56px; }
.glow { position: absolute; inset: -10% -10% -10% 0; background: radial-gradient(closest-side, rgba(220, 38, 38, .42), transparent 72%); filter: blur(30px); animation: breathe 6s ease-in-out infinite; pointer-events: none; }
@keyframes breathe { 0%, 100% { opacity: .65; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }

/* Entrada do hero: uma vez, ao carregar */
[data-enter] .hero__text > *, [data-enter] .hero__visual { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards; }
[data-enter] .hero__text > :nth-child(1) { animation-delay: .05s; }
[data-enter] .hero__text > :nth-child(2) { animation-delay: .14s; }
[data-enter] .hero__text > :nth-child(3) { animation-delay: .24s; }
[data-enter] .hero__text > :nth-child(4) { animation-delay: .34s; }
[data-enter] .hero__text > :nth-child(5) { animation-delay: .44s; }
[data-enter] .hero__visual { animation-delay: .25s; animation-duration: 1s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Molduras de tela ---------- */
.frame { position: relative; background: #FAF9F6; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); overflow: hidden; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .4); }
.frame__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #1E1F25; }
.frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3A3C45; }
.frame__bar i:first-child { background: #F05A5A; }
.frame__bar i:nth-child(2) { background: #F0B83E; }
.frame__bar i:nth-child(3) { background: #4CC38A; }
.frame__bar span { margin-left: 12px; font-size: 12px; color: #8C909B; font-family: ui-monospace, Consolas, monospace; }
.frame img { width: 100%; }

.phone { position: relative; width: 100%; max-width: 240px; padding: 9px; background: #17181D; border-radius: 38px; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 40px 70px -24px rgba(0, 0, 0, .9); }
.phone::before { content: ''; position: absolute; top: 15px; left: 50%; width: 64px; height: 18px; margin-left: -32px; background: #17181D; border-radius: 12px; z-index: 2; }
.phone img { width: 100%; border-radius: 30px; aspect-ratio: 520 / 1011; object-fit: cover; object-position: top; }
.phone--hero { position: absolute; left: 0; bottom: 0; width: 34%; max-width: 230px; }
.phone--hero img { aspect-ratio: 520 / 1011; }

/* ---------- Números ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 48px 0 34px; border-top: 1px solid var(--line); }
.stat { padding: 34px 28px 8px 0; border-right: 1px solid var(--line); margin-right: 28px; display: flex; flex-direction: column; gap: 6px; }
.stat:last-child { border-right: 0; margin-right: 0; }
.stat b { font-family: var(--head); font-weight: 700; font-size: clamp(3rem, 5.4vw, 4.8rem); line-height: 1; letter-spacing: -.035em; color: var(--red-hi); font-variant-numeric: tabular-nums; }
.stat strong { font-size: 1.1rem; margin-top: 8px; }
.stat span { color: var(--muted-d); font-size: 15px; line-height: 1.45; }

/* ---------- Modalidades ---------- */
.plans { display: grid; grid-template-columns: 1.08fr 1fr 1fr; gap: 22px; margin-top: 52px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 34px 30px 30px; background: var(--white); border: 1px solid var(--edge); border-radius: var(--r); transition: transform .22s, box-shadow .22s; }
.plan:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -30px rgba(20, 20, 22, .35); }
.plan--main { border: 2px solid var(--red); box-shadow: 0 30px 60px -36px rgba(220, 38, 38, .55); }
.badge { position: absolute; top: -14px; left: 28px; padding: 5px 14px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; }
.plan__ic { width: 30px; height: 30px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plan h3 { font-size: 1.5rem; }
.plan__price { color: var(--muted); font-size: 1rem; }
.plan__price b { display: block; font-family: var(--head); font-size: clamp(2.2rem, 3.4vw, 3rem); letter-spacing: -.03em; color: var(--red); line-height: 1; margin-bottom: 4px; }
.plan__price--soft b { font-size: 1.5rem; color: #92400E; letter-spacing: -.02em; margin-bottom: 2px; }
.ticks { display: grid; gap: 12px; flex: 1; margin-bottom: 6px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15.5px; line-height: 1.5; color: #30333A; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .3em; width: 17px; height: 17px; border-radius: 50%; background: rgba(16, 185, 129, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* ---------- Calculadora ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(32px, 6vw, 88px); align-items: center; }
.real { margin-top: 36px; padding: 26px 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); max-width: 560px; }
.real__tag { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red-hi); margin-bottom: 18px; }
.real__eq { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 14px 22px; }
.real__eq div { display: flex; flex-direction: column; }
.real__eq b { font-family: var(--head); font-size: 2.1rem; line-height: 1.05; letter-spacing: -.02em; white-space: nowrap; }
.real__eq b.red { color: var(--red-hi); }
.real__eq span { font-size: 14px; color: var(--muted-d); }
.real__eq i { font-style: normal; font-size: 1.8rem; color: #6C707B; line-height: 1.2; }
.calc__panel { padding: 34px 32px 28px; background: linear-gradient(180deg, #1C1D23, #16171B); border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 50px 80px -50px rgba(220, 38, 38, .5); display: flex; flex-direction: column; gap: 18px; }
.calc__label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-d); }
.calc__kwh { font-family: var(--head); font-size: 3rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.calc__kwh span { font-size: 1.3rem; color: var(--muted-d); font-weight: 500; letter-spacing: 0; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 40px; background: transparent; cursor: pointer; --p: 30%; }
input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--red) var(--p), #34363E var(--p)); }
input[type=range]::-moz-range-track { height: 8px; border-radius: 99px; background: #34363E; }
input[type=range]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--red); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: #fff; border: 5px solid var(--red); box-shadow: 0 4px 14px rgba(0, 0, 0, .5); transition: transform .15s; }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 5px solid var(--red); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); }
.calc__presets { display: flex; gap: 10px; flex-wrap: wrap; margin-top: -4px; }
.calc__presets button { min-height: 44px; min-width: 64px; padding: 8px 16px; border-radius: 999px; background: transparent; border: 1px solid var(--line); color: #D6D8DD; cursor: pointer; font-weight: 500; transition: background .18s, border-color .18s, transform .18s; }
.calc__presets button:hover { border-color: rgba(255, 255, 255, .45); transform: translateY(-1px); }
.calc__presets button.is-on { background: rgba(220, 38, 38, .16); border-color: var(--red); color: #fff; }
.calc__result { padding: 22px 0 6px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.calc__result span { font-size: 14px; color: var(--muted-d); }
.calc__result b { font-family: var(--head); font-size: clamp(3rem, 6vw, 4.2rem); line-height: 1; letter-spacing: -.035em; color: var(--red-hi); font-variant-numeric: tabular-nums; }
.calc__result small { font-size: 14px; color: var(--muted-d); }

/* ---------- Divisões texto + imagem ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.split--rev { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
.feats { display: grid; gap: 26px; margin-top: 38px; }
.feats li { display: flex; gap: 18px; align-items: flex-start; }
.feats .ic { width: 46px; height: 46px; padding: 12px; border-radius: 14px; background: #fff; color: var(--red); border: 1px solid var(--edge); stroke-width: 2; }
.feats strong { display: block; font-size: 1.1rem; margin-bottom: 2px; }
.feats span { display: block; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.feats--dark .ic { background: rgba(220, 38, 38, .12); border-color: rgba(220, 38, 38, .35); color: var(--red-hi); }
.feats--dark span { color: var(--muted-d); }
.split__text .note { margin-top: 30px; }
.brands { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.brands span { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--edge); font-size: 14px; font-weight: 700; color: #30333A; }
.brands span:last-child { background: transparent; border-style: dashed; font-weight: 500; color: var(--muted); }

.phones { display: flex; justify-content: center; align-items: center; gap: clamp(14px, 3vw, 34px); padding: 18px 0; position: relative; }
.phones::before { content: ''; position: absolute; inset: 6% 8%; border-radius: 40px; background: radial-gradient(closest-side, rgba(220, 38, 38, .16), transparent 75%); }
.phones .phone { flex: 1 1 0; max-width: 270px; position: relative; transition: transform .35s; }
.phones .phone--up { transform: translateY(-44px); }
.phones .phone:hover { transform: translateY(-6px); }
.phones .phone--up:hover { transform: translateY(-50px); }
.sec--paper .phone { box-shadow: 0 40px 70px -28px rgba(20, 20, 22, .55); }

.portal { position: relative; padding-bottom: 64px; padding-right: 40px; }
.phone--portal { position: absolute; right: 0; bottom: 0; width: 25%; max-width: 190px; }
.phone--portal img { aspect-ratio: 520 / 1011; }

/* ---------- Engenharia ---------- */
.eng__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.eng__logo { height: 62px; width: auto; }
.eng__head h2 { max-width: 30ch; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.card { padding: 32px 30px; background: var(--white); border: 1px solid var(--edge); border-radius: var(--r); transition: transform .22s, box-shadow .22s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -30px rgba(20, 20, 22, .35); }
.card__ic { width: 34px; height: 34px; fill: none; stroke: var(--red); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; line-height: 1.55; }

/* ---------- Passos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 60px; position: relative; counter-reset: none; }
.steps::before, .steps::after { content: ''; position: absolute; left: 0; top: 29px; height: 2px; }
.steps::before { right: 0; background: var(--line); }
.steps::after { width: 100%; background: linear-gradient(90deg, var(--red), var(--red-hi)); transform: scaleX(0); transform-origin: left; transition: transform 1.8s cubic-bezier(.4, 0, .2, 1); }
.steps.is-in::after { transform: scaleX(1); }
.steps li { position: relative; padding-top: 0; }
.steps b { position: relative; z-index: 1; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--ink); border: 2px solid var(--red); font-family: var(--head); font-size: 1.15rem; color: #fff; margin-bottom: 24px; }
.steps h3 { font-size: 1.35rem; margin-bottom: 10px; }
.steps p { color: var(--muted-d); font-size: 15.5px; line-height: 1.55; max-width: 28ch; }

/* ---------- Dúvidas ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq__head .btn { margin-top: 28px; }
.faq__list { display: grid; gap: 12px; }
details { background: var(--white); border: 1px solid var(--edge); border-radius: 16px; transition: box-shadow .2s, border-color .2s; }
details:hover { border-color: #D3CEC2; }
details[open] { box-shadow: 0 20px 40px -30px rgba(20, 20, 22, .4); border-color: #D3CEC2; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; min-height: 44px; font-weight: 700; font-size: 1.08rem; line-height: 1.35; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; flex: none; width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DC2626' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 26px 24px; color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 62ch; }

/* ---------- Contato ---------- */
.sec--contact { overflow: hidden; }
.sec--contact .hero__bg { background: radial-gradient(800px 560px at 12% 20%, rgba(220, 38, 38, .26), transparent 62%); }
.sec--contact .hero__bg::after { -webkit-mask-image: radial-gradient(ellipse at 20% 30%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 20% 30%, #000 0%, transparent 70%); }
.contact { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(32px, 6vw, 88px); align-items: center; }
.contact__logo { width: 150px; margin-bottom: 26px; filter: drop-shadow(0 0 40px rgba(220, 38, 38, .4)); }
.contact__text .btn { margin-top: 34px; }
.formcard { background: var(--white); color: var(--text); border-radius: 26px; padding: 34px 32px 28px; box-shadow: 0 60px 100px -40px rgba(0, 0, 0, .9); }
.formcard h3 { font-size: 1.6rem; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #30333A; }
.field label em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #D9D6CE; background: #FCFBF9; font-size: 16px; transition: border-color .18s, box-shadow .18s, background .18s; }
.field textarea { resize: vertical; min-height: 76px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(220, 38, 38, .14); background: #fff; }
.field.has-err input, .field.has-err select { border-color: var(--red); background: #FFF6F6; }
.err { color: var(--red-dk); font-size: 13px; font-weight: 500; min-height: 0; }
.err:empty { display: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formcard .btn { margin-top: 6px; }
.formcard .btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.form__error { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #FEECEC; color: var(--red-dk); font-size: 14.5px; }
.form__legal { margin-top: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.form__legal a { color: var(--red-dk); }
.done { text-align: center; padding: 14px 0 6px; }
.done__ic { width: 64px; height: 64px; padding: 16px; border-radius: 50%; background: rgba(16, 185, 129, .14); stroke: #059669; fill: none; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 22px; display: block; }
.done h3 { font-size: 1.7rem; margin-bottom: 12px; }
.done p { color: var(--muted); margin-bottom: 26px; }

/* ---------- Rodapé ---------- */
.foot { background: #070708; color: #A3A7B0; padding: 56px 0 28px; border-top: 1px solid var(--line); }
.foot__in { display: grid; grid-template-columns: 1.4fr auto auto; gap: 40px; align-items: center; }
.foot__brand { display: flex; align-items: center; gap: 20px; font-size: 14.5px; line-height: 1.5; }
.foot__brand img { width: 64px; height: auto; }
.foot__eng { height: 60px; width: auto; padding: 6px 12px; background: #fff; border-radius: 12px; }
.foot__links { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.foot__links a { text-decoration: none; padding: 6px 0; }
.foot__links a:hover { color: #fff; text-decoration: underline; }
.foot__copy { max-width: 1200px; margin: 36px auto 0; padding: 22px var(--pad) 0; border-top: 1px solid var(--line); font-size: 13px; color: #6F7480; }

.wafab { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6); transition: transform .18s, box-shadow .18s; }
.wafab:hover { transform: translateY(-3px) scale(1.04); }
.wafab:active { transform: scale(.96); }
.wafab .ic { width: 30px; height: 30px; }

/* ---------- Telas médias e celulares ---------- */
@media (max-width: 1040px) {
  .top__nav { display: none; }
  .hero { min-height: auto; padding-top: 104px; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__visual { padding-left: 0; padding-bottom: 40px; max-width: 640px; }
  .phone--hero { left: -2%; width: 30%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; margin-right: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .trio { grid-template-columns: 1fr; }
  .calc, .split, .split--rev, .faq, .contact { grid-template-columns: 1fr; }
  .split--rev .split__text { order: -1; }
  .split__visual { max-width: 640px; }
  .phones { max-width: 540px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .steps::before, .steps::after { display: none; }
  .foot__in { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .top__in { min-height: 64px; gap: 12px; }
  .top__logo img { height: 42px; }
  .btn--sm { padding: 10px 14px; font-size: 14px; }
  .hero__cta .btn { width: 100%; }
  .hero__visual { padding-bottom: 34px; }
  .phone--hero { width: 36%; left: 0; }
  .stat { padding-right: 12px; margin-right: 12px; }
  .stat strong { font-size: 1rem; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .formcard { padding: 28px 22px 24px; border-radius: 22px; }
  .calc__panel { padding: 26px 22px 22px; }
  .phones { gap: 12px; }
  .phones .phone--up { transform: translateY(-26px); }
  .phones .phone--up:hover { transform: translateY(-30px); }
  .portal { padding-right: 0; padding-bottom: 36px; }
  .phone--portal { width: 30%; right: -2%; }
  .steps { grid-template-columns: 1fr; row-gap: 34px; }
  .steps p { max-width: none; }
  summary { padding: 18px 20px; font-size: 1rem; }
  details p { padding: 0 20px 20px; }
  .wafab { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-enter] .hero__text > *, [data-enter] .hero__visual { opacity: 1; transform: none; }
  .steps::after { transform: scaleX(1); }
}
