/* CAUSA — mesma família visual do apoiapix.site: DM Sans (texto, 400 e 700) + Bricolage Grotesque (títulos e números, 700).
   Cores lidas do CSS deles: fundo #f7f8f3 · tinta #152921 · verde #245b40 · verde escuro #174331 · lima #d8efad · menta #e5f2e5 · linha #e0e6df · apagado #58675e · raio 20px. */
:root {
  --bg: #f7f8f3;
  --ink: #152921;
  --green: #245b40;
  --green-dark: #174331;
  --lime: #d8efad;
  --mint: #e5f2e5;
  --line: #e0e6df;
  --muted: #58675e;
  --paper: #ffffff;
  --err: #a33236;
  --radius: 20px;
  --verde-sem: #2e9e6b;
  --amarelo-sem: #f2b33d;
  --vermelho-sem: #d64545;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.45 var(--sans); -webkit-font-smoothing: antialiased; font-optical-sizing: auto; }
a { color: var(--green); }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
h1 { font-size: 27px; line-height: 1.08; }
h2 { font-size: 20px; line-height: 1.15; margin-bottom: 10px; }
p { margin: 0 0 10px; }
b, strong { font-weight: 700; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.micro { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.ic { width: 20px; height: 20px; flex: none; }
mark.lacuna { background: #fff1b8; padding: 0 0.2em; border-radius: 4px; }

.aviso-teste { background: var(--green-dark); color: #fff; text-align: center; font-size: 11px; padding: 3px 8px; letter-spacing: 0.04em; }

.coluna { max-width: 480px; margin: 0 auto; padding: 10px 10px 28px; display: grid; gap: 10px; }

/* ---------- cartão principal ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(21, 41, 33, 0.04), 0 10px 30px rgba(21, 41, 33, 0.06); }
.miolo { padding: 12px 16px 16px; }

/* ---------- contador e barra (dado real) ---------- */

/* ---------- grade de valores (2 colunas, como no apoiapix) ---------- */
.rot-grade { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; margin: 0 0 10px; }
.grade { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.val { position: relative; display: grid; align-content: center; justify-items: center; min-height: 46px; padding: 6px; background: #f7f7f3; border: 1px solid #e3e5df; border-radius: 10px; color: var(--ink); font: inherit; cursor: pointer; transition: border-color .12s, background .12s; }
.val b { font-size: 15.5px; line-height: 1.1; }
.val:hover { border-color: #c5d1c8; }
.val.sel { background: var(--mint); border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.val em { position: absolute; top: -8px; right: 8px; background: var(--lime); color: var(--green-dark); font-style: normal; font-weight: 700; font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; padding: 1px 7px; border-radius: 99px; }
.val-outro { grid-column: 1 / -1; }
#grade-mais { margin-top: 2px; }
#grade-mais[hidden] { display: none; }
.mais { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: 0; padding: 12px 4px; color: var(--green); font: 700 14px var(--sans); cursor: pointer; }
.mais b { font-size: 18px; font-weight: 400; margin-right: 6px; }
.mais .chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -4px 6px 0 0; transition: transform .15s; }
.mais[aria-expanded="true"] .chev { transform: rotate(-135deg); margin-top: 4px; }
.outro-campo { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.outro-campo[hidden] { display: none; }
.outro-campo span { font-weight: 700; }
.outro-campo input { flex: 1; min-width: 0; font: 400 18px var(--sans); padding: 10px 12px; border: 1.5px solid var(--green); border-radius: 12px; background: #fff; color: var(--ink); }
.erro-campo, .erro-form { color: var(--err); font-size: 12.5px; margin: 6px 0 0; }

.cta { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 16px; background: var(--green); color: #fff; border: 0; border-radius: 12px; text-decoration: none; font: 700 15.5px var(--sans); white-space: nowrap; cursor: pointer; transition: background .15s, transform .05s; }
.cta:hover { background: var(--green-dark); }
.cta:active { transform: translateY(1px); }
.cta[disabled] { opacity: .65; cursor: progress; }
.cta .ic { width: 20px; height: 20px; }
#passo1 > .micro { text-align: center; margin: 8px 0 0; }
button:focus-visible, input:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--amarelo-sem); outline-offset: 2px; }

/* ---------- passo 2: dados ---------- */
.voltar, .link { background: none; border: 0; color: var(--muted); font: 400 13px var(--sans); text-decoration: underline; cursor: pointer; padding: 4px 0; }
.link { display: block; width: 100%; text-align: center; margin-top: 2px; }
.resumo-chip { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--mint); border-radius: 12px; padding: 10px 12px; margin: 6px 0 10px; font-size: 13px; }
.resumo-chip span:first-child { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--green-dark); }
.bump { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 10px 12px; border: 1.5px dashed #b9c9bd; background: #fbfcf8; border-radius: 14px; margin-bottom: 12px; cursor: pointer; font-size: 14px; }
.bump input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); }
.bump small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.campo { margin-bottom: 8px; }
.campo label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 3px; }
.campo input { width: 100%; font: 400 16px var(--sans); padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.campo input:focus { border-color: var(--green); }
.campo input.invalido { border-color: var(--err); }
.isca { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.resumo { margin: 12px 0 10px; padding: 10px 12px; background: var(--bg); border-radius: 12px; display: grid; gap: 2px; }
.resumo div { display: flex; justify-content: space-between; align-items: baseline; }
.resumo strong { font-size: 17px; }
#passo2 .micro { text-align: center; margin: 8px 0 0; }

/* ---------- pix e obrigado ---------- */
.fora-escolha .hero-txt, .no-passo2 .hero-txt { display: none; }
#v-pix h2, #v-expirou h2, #v-obrigado h2 { margin-bottom: 8px; }
.pix-valor { font-size: 14px; color: #2c4036; }
.qr { width: min(250px, 68vw); margin: 4px auto 12px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.qr svg { display: block; width: 100%; height: auto; }
.pix-passo { font-size: 13.5px; text-align: center; }
.copia { display: flex; gap: 8px; }
.copia input { flex: 1; min-width: 0; font: 12px ui-monospace, Menlo, monospace; padding: 11px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: #2c4036; text-overflow: ellipsis; }
.botao { background: var(--green); color: #fff; border: 0; border-radius: 12px; padding: 0 16px; font: 700 14px var(--sans); cursor: pointer; min-height: 44px; }
.pix-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 4px; font-weight: 700; flex-wrap: wrap; font-size: 14px; }
.pulso { width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: pulso 1.4s ease-in-out infinite; }
@keyframes pulso { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .pulso { animation: none; } .trilho i { transition: none; } html { scroll-behavior: auto; } }
#v-pix .micro, #v-obrigado .micro { text-align: center; }
#v-obrigado { text-align: center; }
.ok-selo { width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin: 4px auto 8px; }
.ok-selo .ic { width: 28px; height: 28px; stroke-width: 2.6; }
.downloads { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; text-align: left; }
.downloads a { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 13px 14px; border: 1.5px solid var(--green); border-radius: 14px; text-decoration: none; font-weight: 700; background: var(--mint); color: var(--green-dark); }
.downloads a::after { content: 'Abrir ↗'; font-weight: 400; font-size: 12.5px; }
.mural-aceite { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 14px; padding: 10px 12px; background: var(--bg); border-radius: 12px; margin: 8px 0; }
.mural-aceite input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--green); }

/* ---------- abaixo da dobra ---------- */
.bloco { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.bloco p { font-size: 14px; }
.bloco .micro { font-size: 12.5px; }
details { border-bottom: 1px solid var(--line); }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; font-weight: 700; padding: 12px 24px 12px 0; list-style: none; position: relative; font-size: 14.5px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 2px; top: 9px; font-size: 20px; color: var(--green); }
details[open] summary::after { content: '–'; }
details p { font-size: 14px; color: #2c4036; }
.rodape { font-size: 11px; color: var(--muted); padding: 4px 6px 0; line-height: 1.45; }
.rodape p { margin-bottom: 8px; }

/* ---------- Meu guia ---------- */
.simples { max-width: 480px; margin: 0 auto; padding: 28px 14px; }
.simples h1 { margin-bottom: 8px; }
.simples .card { padding: 16px; margin: 14px 0; }
.lista-ped { margin: 14px 0; }

@media (min-width: 700px) {
  .coluna { padding-top: 22px; }
}
.r-taxa span { font-size: 13px; color: var(--muted, #58675e); }
@media (max-width: 370px) { .cta { white-space: normal; font-size: 15px; padding: 8px 12px; } }
.r-taxa span:last-child { white-space: nowrap; }
.campo label small { font-weight: 400; color: var(--muted); }

/* ---------- refino 16/11: igual ao apoiapix ---------- */
.banner { background: #0c4f49; }
.banner img { display: block; width: 100%; height: auto; max-height: 170px; object-fit: cover; }
.hero-txt h1 { font-size: 22px; line-height: 1.14; margin: 2px 0 8px; }
.coracao { font-size: 14px; color: var(--muted); line-height: 1.45; margin: 0 0 6px; }
.forte { font-size: 14px; font-weight: 700; line-height: 1.4; margin: 0 0 12px; }
.garantidos { background: var(--mint); color: var(--green-dark); font-weight: 700; font-size: 13px; padding: 9px 12px; border-radius: 12px; margin: 0 0 12px; line-height: 1.35; }
.produto { display: flex; gap: 10px; align-items: flex-start; background: #f7f7f3; border: 1px solid #e3e5df; border-radius: 12px; padding: 11px 12px; margin: 4px 0 12px; }
.produto .ic-pdf { color: var(--green); width: 22px; height: 22px; margin-top: 1px; }
.produto p { font-size: 13px; color: var(--muted); line-height: 1.4; margin: 0 0 4px; }
.produto .checks { list-style: none; margin: 2px 0 6px; padding: 0; display: grid; gap: 3px; }
.produto .checks li { display: flex; gap: 6px; align-items: flex-start; font-size: 13.5px; line-height: 1.35; color: var(--ink); }
.produto .checks .ic { width: 16px; height: 16px; margin-top: 1px; color: var(--sage, var(--green)); stroke-width: 3; }
.produto .no-pdf { font-size: 12px; margin: 0; }
.produto .no-pdf strong { color: var(--ink); }
.selo-projeto { display: inline-block; background: var(--sage, var(--green)); color: #fff; font: 700 11px/1 var(--sans); letter-spacing: 0.09em; text-transform: uppercase; padding: 6px 11px; border-radius: 99px; margin: 0 0 9px; }
.verm { color: var(--verm, inherit); }

/* Tema "anuncio" (/a e /b): as cores e a letra da arte do anúncio que está rodando (BRIEFING v2 dos criativos). */
.tema-anuncio {
  --bg: #faf6ee;
  --ink: #2b2118;
  --green: #1f5f5b;
  --green-dark: #174a47;
  --mint: #e8f0ea;
  --line: #e7dfd2;
  --muted: #6b5d50;
  --sage: #7c9a7e;
  --verm: #c8372d;
}
.tema-anuncio .hero-txt h1 { font-family: 'Montserrat', var(--display); font-weight: 800; letter-spacing: -0.015em; font-size: 22px; line-height: 1.16; }
.tema-anuncio .val { background: #fffdf8; border-color: #e7dfd2; }
.tema-anuncio .val.sel { background: var(--mint); }
.tema-anuncio .produto { background: #fbf7ef; border-color: #ece3d4; }
.tema-anuncio .resumo { background: #f6f1e7; }
.tema-anuncio .bump { background: #fffdf8; border-color: #d9cdb8; }
