/* LP M7 — base: reset, tokens padrão e componentes (botões, formulário, WhatsApp, FAQ).
   Igual em todas as LPs. Identidade do cliente e layout das seções ficam em style.css. */

:root {
  --cor-primaria: #0a76d8;
  --cor-primaria-escura: #075fae;
  --cor-sobre-primaria: #ffffff;
  --cor-secundaria: #14294a;
  --cor-sobre-secundaria: #ffffff;
  --cor-texto: #1b2130;
  --cor-texto-suave: #4b5565;
  --cor-fundo: #ffffff;
  --cor-fundo-alt: #f3f5f8;
  --cor-borda: #d5dbe3;
  --cor-erro: #b42318;
  --cor-sucesso: #067647;
  --cor-whatsapp: #25d366;
  --cor-sobre-whatsapp: #06290f;

  --fonte-titulo: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fonte-texto: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --raio: 14px;
  --raio-botao: 10px;
  --sombra: 0 12px 32px rgba(16, 24, 40, .10);
  --largura: 1160px;
  --respiro: clamp(20px, 5vw, 32px);
  --espaco-secao: clamp(56px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--fonte-texto);
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.6;
  color: var(--cor-texto);
  background: var(--cor-fundo);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--fonte-titulo); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.35rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.375rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--cor-primaria-escura); }
:focus-visible { outline: 3px solid var(--cor-primaria); outline-offset: 2px; }

.container { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 var(--respiro); }
.secao { padding: var(--espaco-secao) 0; }
.secao--alt { background: var(--cor-fundo-alt); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pular { position: absolute; left: 8px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--cor-secundaria); color: var(--cor-sobre-secundaria); }
.pular:focus { top: 8px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 14px 26px;
  border: 2px solid transparent; border-radius: var(--raio-botao);
  font: 700 1rem/1.2 var(--fonte-titulo); text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.3em; height: 1.3em; flex: none; }
.btn--primario { background: var(--cor-primaria); color: var(--cor-sobre-primaria); box-shadow: 0 8px 20px color-mix(in srgb, var(--cor-primaria) 30%, transparent); }
.btn--primario:hover { background: var(--cor-primaria-escura); }
.btn--contorno { background: transparent; color: inherit; border-color: currentColor; }
.btn--whatsapp { background: var(--cor-whatsapp); color: var(--cor-sobre-whatsapp); }
.btn--whatsapp:hover { background: #1fbe5b; }
.btn--bloco { width: 100%; }
.btn--pequeno { min-height: 44px; padding: 10px 18px; font-size: .95rem; }
.btn[disabled] { opacity: .75; cursor: progress; transform: none; }

/* Padrão M7 no GTM (Click ID = zap-tag / liga-tag): o clique precisa cair no link, não no ícone de dentro. */
.zap-tag *, .liga-tag * { pointer-events: none; }

/* ---------- WhatsApp flutuante ---------- */
.zap-flutuante {
  position: fixed; z-index: 50;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 60px; height: 60px;
  border-radius: 50%; background: var(--cor-whatsapp); color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}
.zap-flutuante svg { width: 32px; height: 32px; }

/* ---------- Formulário ---------- */
.lp-form { display: grid; gap: 16px; }
.campo { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.campo > label, .campo > legend { padding: 0; font-weight: 600; font-size: .95rem; }
.lp-form input:not([type="checkbox"]):not([type="radio"]),
.lp-form select,
.lp-form textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1.5px solid var(--cor-borda); border-radius: 10px;
  background-color: #fff; color: var(--cor-texto);
  font: inherit; font-size: 16px; /* 16px evita o zoom automático do iPhone */
}
.lp-form textarea { min-height: 110px; resize: vertical; }
.lp-form select {
  appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='m1 1 6 6 6-6' stroke='%234b5565' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.lp-form input:focus, .lp-form select:focus, .lp-form textarea:focus {
  outline: none; border-color: var(--cor-primaria);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cor-primaria) 25%, transparent);
}
.lp-form [aria-invalid="true"] { border-color: var(--cor-erro); }
.campo-erro { margin: 0; color: var(--cor-erro); font-size: .875rem; }
.opcoes { display: grid; gap: 8px; }
.opcao {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--cor-borda); border-radius: 10px; cursor: pointer; font-weight: 500;
}
.opcao input { width: 20px; height: 20px; margin: 0; accent-color: var(--cor-primaria); flex: none; }
.opcao:has(input:checked) { border-color: var(--cor-primaria); background: color-mix(in srgb, var(--cor-primaria) 8%, #fff); }
.lp-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-privacidade { margin: 0; font-size: .8rem; line-height: 1.5; color: var(--cor-texto-suave); text-align: center; }
.form-status { margin: 0; font-size: .95rem; }
.form-status:empty { display: none; }
.is-erro .form-status { color: var(--cor-erro); }
.is-sucesso .form-status { color: var(--cor-sucesso); font-weight: 600; }

/* ---------- FAQ (details/summary: abre sem JS e o conteúdo fica no HTML para o Google) ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--cor-borda); border-radius: var(--raio); background: var(--cor-fundo); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; font-weight: 700; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-size: 1.6rem; line-height: 1; color: var(--cor-primaria); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 20px 18px; color: var(--cor-texto-suave); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Menu de seções do topo. No celular, o botão abre um painel abaixo do topo (o lp.js controla o aria-expanded);
   a partir de 1024 px os links ficam em linha. Topo escuro: defina --menu-fundo no style.css. */
.topo { position: relative; }
.menu { order: 3; }
.menu__botao {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -8px;
  border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer;
}
.menu__icone, .menu__icone::before, .menu__icone::after {
  display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s;
}
.menu__icone { position: relative; }
.menu__icone::before, .menu__icone::after { content: ""; position: absolute; left: 0; }
.menu__icone::before { top: -7px; }
.menu__icone::after { top: 7px; }
.menu__botao[aria-expanded="true"] .menu__icone { background: transparent; }
.menu__botao[aria-expanded="true"] .menu__icone::before { transform: translateY(7px) rotate(45deg); }
.menu__botao[aria-expanded="true"] .menu__icone::after { transform: translateY(-7px) rotate(-45deg); }
.menu__lista {
  display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 41;
  margin: 0; padding: 4px var(--respiro) 12px; list-style: none;
  background: var(--menu-fundo, var(--cor-fundo)); box-shadow: var(--sombra);
  border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}
.menu__botao[aria-expanded="true"] + .menu__lista { display: block; }
.menu__lista a {
  display: flex; align-items: center; min-height: 52px; color: inherit; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.menu__lista li:last-child a { border-bottom: 0; }
@media (min-width: 1024px) {
  .menu { order: 0; flex: 1; display: flex; justify-content: center; }
  .menu__botao { display: none; }
  .menu__lista {
    display: flex; position: static; gap: clamp(18px, 2.2vw, 32px); padding: 0;
    background: none; box-shadow: none; border: 0;
  }
  .menu__lista a { min-height: 44px; border: 0; font-size: .95rem; }
  .menu__lista a:hover { color: var(--cor-primaria-escura); }
}

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