/* ==========================================================================
   app.css — só o que o app acrescentou ao sistema visual clonado:
   quiz, pop-ups, páginas de destino e painel. A carta não é tocada aqui.
   ========================================================================== */

/* ---------------------------------------------------------------- quiz -- */
.qzBarra { height: 4px; border-radius: 2px; background: #ECECEC; overflow: hidden; margin-bottom: 10px; }
.qzBarraFill { height: 100%; background: #960A0E; transition: width .35s cubic-bezier(.4,0,.2,1); }
.qzPasso { margin: 0 0 22px; font: 700 11px/1 Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #98A2A9; }
.qzTitulo { margin: 0 0 6px; font: 800 25px/1.25 "Roboto Serif", serif; color: #111; }
.qzAjuda { margin: 0 0 20px; font: 400 14px/1.55 Inter, sans-serif; color: #6B767E; }
.qzOpcoes { display: grid; gap: 10px; }
.qzOpcao {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 16px 16px; border: 1px solid #E3E3E3; border-radius: 8px;
  background: #fff; text-align: left; cursor: pointer;
  font: 500 15px/1.4 Inter, sans-serif; color: #222;
  transition: border-color .15s, background .15s, transform .08s;
}
.qzOpcao:hover { border-color: #960A0E; background: #FFF8F8; }
.qzOpcao:active { transform: translateY(1px); }
.qzOpcao.is-on { border-color: #960A0E; background: #FFF1F1; }
.qzMarca { flex: 0 0 auto; width: 18px; height: 18px; border: 2px solid #C9CFD3; border-radius: 50%; }
.qzOpcao:hover .qzMarca, .qzOpcao.is-on .qzMarca { border-color: #960A0E; box-shadow: inset 0 0 0 4px #960A0E; }
.qzVoltar { margin-top: 18px; border: 0; background: none; cursor: pointer; font: 600 13px Inter, sans-serif; color: #8A949B; }
.qzVoltar:hover { color: #960A0E; }
.qzErro { margin: 12px 0 0; font: 600 13px Inter, sans-serif; color: #C0392B; }

/* ------------------------------------------------------------- pop-ups -- */
.tnmPop {
  position: fixed; left: 20px; bottom: 20px; z-index: 900;
  display: flex; align-items: center; gap: 12px;
  max-width: min(330px, calc(100vw - 40px));
  padding: 12px 16px 12px 12px;
  background: #fff; border: 1px solid #E8E8E8; border-radius: 10px;
  box-shadow: 0 12px 34px rgba(0,0,0,.16);
  animation: popIn .45s cubic-bezier(.22,.61,.36,1) both;
}
.tnmPop.is-out { animation: popOut .45s ease both; }
@keyframes popIn  { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes popOut { to   { opacity: 0; transform: translateY(10px); } }
.tnmPopIcone {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: #FDF0F0; color: #960A0E; font-size: 15px;
}
.tnmPopTexto { font: 400 13px/1.35 Inter, sans-serif; color: #444; }
.tnmPopTexto b { color: #111; }
.tnmPopTexto span { display: block; color: #8A949B; font-size: 12px; margin-top: 2px; }
@media (max-width: 770px) { .tnmPop { left: 12px; right: 12px; bottom: 12px; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .tnmPop, .tnmPop.is-out { animation: none; } }

/* ------------------------------------------------ páginas de resultado -- */
.tnmFim { min-height: 100vh; display: grid; place-items: center; padding: 40px 18px; background: #0C0C0C; }
.tnmFimCaixa { max-width: 620px; background: #fff; border-radius: 16px; padding: 44px 40px; }
.tnmFimCaixa h1 { margin: 14px 0 16px; font: 800 32px/1.2 "Roboto Serif", serif; color: #111; }
.tnmFimCaixa p { margin: 0 0 14px; font: 400 16px/1.65 Inter, sans-serif; color: #383838; }
.tnmFimTag { display: inline-block; margin: 22px 0 0 !important; padding: 5px 12px; border-radius: 100px;
  background: #F1F1F1; color: #666; font: 700 11px/1 Inter, sans-serif !important; letter-spacing: .1em; text-transform: uppercase; }
.tnmFimTagOk { background: #E8F7ED; color: #167A34; }
.tnmFimPassos { margin: 22px 0; padding-left: 20px; font: 400 15px/1.7 Inter, sans-serif; color: #383838; }
.tnmFimPassos li { margin-bottom: 8px; }
.tnmFimNota { margin: 24px 0 0; padding: 16px 18px; border-left: 4px solid #960A0E;
  background: #FFF8F8; font: 400 15px/1.6 Inter, sans-serif; color: #333; border-radius: 0 8px 8px 0; }
.tnmFimVoltar { display: inline-block; margin-top: 26px; font: 600 14px Inter, sans-serif; color: #8A949B; text-decoration: none; }
.tnmFimVoltar:hover { color: #960A0E; }

/* --------------------------------------------------------------- admin -- */
.adWrap { max-width: 1120px; margin: 0 auto; padding: 32px 22px 80px; font-family: Inter, system-ui, sans-serif; color: #1B1B1B; }
.adTopo { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px;
  padding-bottom: 16px; border-bottom: 1px solid #E9E9E9; }
.adTopo h1 { margin: 0; font: 800 26px/1 "Roboto Serif", serif; }
.adTopo nav { display: flex; gap: 18px; }
.adTopo nav a { font: 600 14px Inter, sans-serif; color: #7A7A7A; text-decoration: none; }
.adTopo nav a:hover { color: #960A0E; }
.adH2 { margin: 34px 0 14px; font: 700 15px Inter, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #960A0E; }
.adFraco { color: #9A9A9A; font-size: 12px; }
.adAviso { padding: 12px 16px; border-radius: 8px; background: #FFF6E5; border: 1px solid #F0D9A8; font-size: 14px; }
.adErro { color: #C0392B; font-size: 13px; font-weight: 600; }
.adOk { color: #167A34; font-size: 13px; font-weight: 600; }

.adCards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.adCard { padding: 18px; border: 1px solid #ECECEC; border-radius: 10px; background: #fff; }
.adCard span { display: block; font-size: 12px; color: #8A8A8A; text-transform: uppercase; letter-spacing: .06em; }
.adCard b { display: block; margin-top: 6px; font: 800 30px/1 "Roboto Serif", serif; }
.adCard small { display: block; margin-top: 6px; font-size: 12px; color: #9A9A9A; }

.adFunil { margin-top: 34px; }
.adEtapa { margin-bottom: 14px; }
.adEtapaTopo { display: flex; align-items: baseline; gap: 10px; font-size: 14px; margin-bottom: 5px; }
.adEtapaTopo b { font-size: 15px; }
.adQueda { margin-left: auto; font-size: 12px; font-weight: 700; color: #B0B0B0; }
.adQueda.is-alta { color: #C0392B; }
.adBarra { height: 9px; border-radius: 5px; background: #F1F1F1; overflow: hidden; }
.adBarra div { height: 100%; background: linear-gradient(90deg, #C71F1F, #960A0E); border-radius: 5px; }
.adDica { margin-top: 18px; padding: 14px 16px; border-radius: 8px; background: #FAFAFA; font-size: 13px; line-height: 1.6; color: #555; }

.adTabela { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.adTabela th { text-align: left; padding: 10px 12px; border-bottom: 2px solid #EEE; font-size: 11px;
  text-transform: uppercase; letter-spacing: .06em; color: #9A9A9A; }
.adTabela td { padding: 12px; border-bottom: 1px solid #F2F2F2; vertical-align: top; }
.adTabelaLeads textarea { width: 100%; border: 1px solid #E5E5E5; border-radius: 6px; padding: 6px 8px; font: 400 13px Inter, sans-serif; resize: vertical; }
.adTabelaLeads select { border: 1px solid #E5E5E5; border-radius: 6px; padding: 6px 8px; font: 500 13px Inter, sans-serif; }
.adTag { display: inline-block; padding: 3px 9px; border-radius: 100px; background: #F2F2F2; color: #777; font-size: 11px; font-weight: 700; }
.adTag.is-ok { background: #E8F7ED; color: #167A34; }

.adPipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 22px; }
.adPipeItem { padding: 14px; border: 1px solid #ECECEC; border-radius: 10px; text-align: center; }
.adPipeItem b { display: block; font: 800 22px/1 "Roboto Serif", serif; }
.adPipeItem span { font-size: 11px; color: #9A9A9A; text-transform: uppercase; letter-spacing: .05em; }
.adFiltros { display: flex; gap: 10px; margin-bottom: 8px; }
.adFiltros a { padding: 7px 14px; border: 1px solid #E5E5E5; border-radius: 100px; font-size: 13px; color: #666; text-decoration: none; }
.adFiltros a.is-on { border-color: #960A0E; color: #960A0E; font-weight: 700; }

.adBarraSalvar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px;
  padding: 12px 0; background: #fff; border-bottom: 1px solid #EEE; margin-bottom: 22px; }
.adSalvar { padding: 11px 22px; border: 0; border-radius: 8px; background: #00B33A; color: #fff;
  font: 700 14px Inter, sans-serif; cursor: pointer; }
.adSalvar:disabled { opacity: .6; cursor: wait; }
.adSecao { margin-bottom: 40px; }
.adCampo { display: block; margin-bottom: 14px; }
.adRotulo { display: block; margin-bottom: 5px; font: 600 12px Inter, sans-serif; color: #7A7A7A; }
.adDicaCampo { display: block; margin-bottom: 5px; font-size: 12px; color: #A5A5A5; }
.adCampo input, .adCampo textarea, .adBusca {
  width: 100%; padding: 10px 12px; border: 1px solid #E2E2E2; border-radius: 8px;
  font: 400 14px/1.5 Inter, sans-serif; color: #222;
}
.adCampo textarea { resize: vertical; }
.adBusca { margin-bottom: 14px; }
.adBlocos { list-style: none; margin: 0; padding: 0; }
.adBloco { border: 1px solid #ECECEC; border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.adBloco.is-off { opacity: .5; }
.adBlocoCab { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px;
  border: 0; background: #fff; cursor: pointer; text-align: left; }
.adBlocoCab:hover { background: #FAFAFA; }
.adTipo { flex: 0 0 auto; padding: 3px 9px; border-radius: 4px; background: #F3F3F3; font-size: 11px; font-weight: 700; color: #777; }
.adPreview { flex: 1; font-size: 13px; color: #555; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adSeta { color: #B5B5B5; font-size: 18px; }
.adBlocoCorpo { padding: 16px 14px; border-top: 1px solid #F2F2F2; background: #FCFCFC; }
.adCheck { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #666; }
.adImgCampo { margin-bottom: 14px; }
.adMini { display: block; max-width: 220px; margin: 6px 0; border: 1px solid #E5E5E5; border-radius: 6px; }
.adVideo { margin-top: 22px; padding: 16px; border: 1px dashed #DDD; border-radius: 10px; background: #FAFAFA; }

.adLogin { min-height: 100vh; display: grid; place-items: center; background: #0C0C0C; font-family: Inter, sans-serif; }
.adLogin form { width: 300px; text-align: center; }
.adLogin h1 { color: #fff; font: 800 22px "Roboto Serif", serif; margin-bottom: 18px; }
.adLogin input { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid #333; background: #161616; color: #fff; margin-bottom: 12px; }
.adLogin button { width: 100%; padding: 12px; border: 0; border-radius: 8px; background: #C71F1F; color: #fff; font-weight: 700; cursor: pointer; }

/* ==========================================================================
   Editor visual — a casca de edição por cima da página real.
   Nada aqui vaza para o site publicado: só existe sob /admin/editar.
   ========================================================================== */
.edCarregando { padding: 60px; font: 400 15px Inter, sans-serif; color: #777; }

.edRaiz { --barra: 56px; }

.edBarra {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 14px;
  height: var(--barra); padding: 0 18px;
  background: #111; color: #fff;
  font: 400 13px Inter, sans-serif;
}
.edMarca { font-weight: 800; font-family: "Roboto Serif", serif; font-size: 15px; }
.edAjuda { color: rgba(255,255,255,.55); }
.edEstado { margin-left: auto; color: #FFD24A; font-weight: 600; }
.edLink { color: rgba(255,255,255,.7); text-decoration: none; }
.edLink:hover { color: #fff; }
.edSalvar {
  padding: 9px 18px; border: 0; border-radius: 7px;
  background: #00B33A; color: #fff; font: 700 13px Inter, sans-serif; cursor: pointer;
}
.edSalvar:disabled { opacity: .45; cursor: default; }

.edPalco {
  min-height: calc(100vh - var(--barra));
  padding: 30px 0 120px;
  background: #fff url("/assets/img/dot-grid.jpg") repeat;
}

/* Cada bloco ganha alvo de clique e contorno ao passar o mouse. */
.edBloco { position: relative; outline: 2px solid transparent; transition: outline-color .12s, background .12s; }
.edBloco:hover { outline-color: rgba(199,31,31,.35); cursor: pointer; }
.edBloco.is-sel { outline-color: #C71F1F; background: rgba(199,31,31,.03); }
.edBloco.is-off { opacity: .4; }
.edBloco.is-off::after {
  content: "oculto"; position: absolute; top: 6px; right: 8px;
  padding: 2px 8px; border-radius: 3px; background: #555; color: #fff;
  font: 700 10px Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase;
}
.edTipo {
  position: absolute; top: -9px; left: 8px; z-index: 2;
  padding: 2px 8px; border-radius: 3px;
  background: #C71F1F; color: #fff;
  font: 700 10px Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase;
  opacity: 0; transition: opacity .12s; pointer-events: none;
}
.edBloco:hover .edTipo, .edBloco.is-sel .edTipo { opacity: 1; }

/* O texto em edição. */
.ed-texto { outline: 1px dashed rgba(199,31,31,.55); outline-offset: 3px; border-radius: 2px; }
.ed-texto:focus { outline: 2px solid #C71F1F; background: #fff; }

/* Painel lateral de propriedades do bloco. */
.edPainel {
  position: fixed; top: var(--barra); right: 0; bottom: 0; width: 290px; z-index: 40;
  padding: 18px; overflow-y: auto;
  background: #fff; border-left: 1px solid #E6E6E6;
  box-shadow: -10px 0 30px rgba(0,0,0,.07);
  font-family: Inter, sans-serif;
}
.edPainelTopo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.edPainelTopo b { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #C71F1F; }
.edPainelTopo button { border: 0; background: none; font-size: 22px; line-height: 1; color: #999; cursor: pointer; }
.edAcoes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.edAcoes button {
  padding: 8px; border: 1px solid #E2E2E2; border-radius: 6px;
  background: #fff; font: 600 12px Inter, sans-serif; cursor: pointer;
}
.edAcoes button:hover:not(:disabled) { border-color: #C71F1F; color: #C71F1F; }
.edAcoes button:disabled { opacity: .4; cursor: default; }
.edAcoes .edPerigo { grid-column: 1 / -1; color: #C0392B; }
.edCheck { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13px; color: #444; }
.edCampo { display: block; margin-bottom: 14px; }
.edCampo > span { display: block; margin-bottom: 5px; font: 600 11px Inter, sans-serif; color: #888; text-transform: uppercase; letter-spacing: .05em; }
.edCampo input, .edCampo select { width: 100%; padding: 8px 10px; border: 1px solid #E2E2E2; border-radius: 6px; font: 400 13px Inter, sans-serif; }
.edCampo img { display: block; width: 100%; margin-bottom: 8px; border: 1px solid #EEE; border-radius: 6px; }
.edCampo > button { width: 100%; padding: 8px; border: 1px solid #E2E2E2; border-radius: 6px; background: #fff; font: 600 12px Inter, sans-serif; cursor: pointer; }
.edDica { margin-top: 18px; font-size: 11.5px; line-height: 1.6; color: #999; }
.edDica code { background: #F3F3F3; padding: 1px 4px; border-radius: 3px; }

@media (max-width: 900px) {
  .edPainel { width: 100%; top: auto; height: 52vh; border-left: 0; border-top: 1px solid #E6E6E6; }
  .edAjuda { display: none; }
}

/* --------------------------------------------------------------------------
   Manchete principal do hero — a única regra que desvia da referência.

   O benchmark usa 4.39rem porque a manchete dele tem 41 caracteres em duas
   linhas. A nossa tem 68. Copiar o número sem olhar o texto não é fidelidade,
   é repetir um valor fora de contexto: a 4.39rem o trecho sublinhado mede
   1197px numa caixa de 1108px, então ele quebra no meio da linha e o
   sublinhado vermelho aparece partido em dois pedaços.

   A intenção do original é: segunda linha grande, duas linhas, sublinhado
   inteiro, vídeo alto na página. 3.4rem entrega essas quatro coisas com a
   nossa copy. Se a manchete encurtar, suba o valor de volta.
   -------------------------------------------------------------------------- */
/* Classe dobrada de propósito: page.css declara `.id-X.id-X .elHeadline`
   com 4.39rem. Uma classe só perde na especificidade e a regra não pega. */
.id-6Z-5YApQp-32.id-6Z-5YApQp-32 .elHeadline { font-size: 3.4rem; line-height: 108%; }
@media (max-width: 770px) { .id-6Z-5YApQp-32.id-6Z-5YApQp-32 .elHeadline { font-size: 26px; } }

/* Mobile: page.css usa classe TRIPLA aqui, então é preciso empatar de novo.

   Nota: o sublinhado PODE quebrar entre linhas — a referência faz isso
   ("Category Of" numa linha, "One" na seguinte). Eu tinha forçado
   inline-block achando que era defeito; não é, é o comportamento do
   original. Removido. */
@media (max-width: 770px) {
  .id-6Z-5YApQp-32.id-6Z-5YApQp-32.id-6Z-5YApQp-32 .elHeadline { font-size: 27px; line-height: 122%; }
}

/* --------------------------------------------------------------------------
   Selo "Powered by GringoFunnels"
   Canto inferior direito, fixo, como o selo da referência.
   -------------------------------------------------------------------------- */
.gfSelo {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 800;
  display: block;
  width: 178px;
  line-height: 0;                      /* mata o espaço fantasma sob a imagem inline */
  border-radius: 10px;
  opacity: .92;
  transition: opacity .18s ease, transform .18s ease;
  /* Fica atrás do drawer (9999) e do mini player (999): é assinatura, não UI. */
}
.gfSelo:hover { opacity: 1; transform: translateY(-2px); }
.gfSelo picture, .gfSelo img { display: block; width: 100%; height: auto; }

/* Não disputar espaço com o mini player, que ancora à esquerda. */
@media (max-width: 770px) {
  .gfSelo { width: 126px; right: 10px; bottom: 10px; opacity: .85; }
}
/* Em tela curta e deitada o selo atrapalha mais do que assina. */
@media (max-height: 420px) { .gfSelo { display: none; } }
/* Enquanto o quiz está aberto, sai da frente.
   Especificidade dobrada: a regra do breakpoint mobile vem depois no arquivo
   e reescrevia a opacidade — o selo sumia do clique mas continuava visível. */
body.modal-open .gfSelo.gfSelo { opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .gfSelo { transition: none; }
  .gfSelo:hover { transform: none; }
}


/* ---------------------------------------------------------------- *
 * Painel do teste A/B
 *
 * Paleta e bordas iguais às de .adCard — o admin é claro, sem tema escuro.
 * `margin: 0` explícito em todo filho de grid: o reset do framework aplica
 * `margin: 0 auto`, e margem lateral automática encolhe e centraliza o item
 * em vez de esticá-lo na coluna.
 * ---------------------------------------------------------------- */
.abTopo { margin: -6px 0 20px; }
.abTopo p { margin: 0; }
.abTopo code { background: #F2F2F2; padding: 1px 5px; border-radius: 4px; font-size: 12px; }

.abGrade { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 26px; justify-items: stretch; }
.abCol { margin: 0; width: 100%; padding: 18px; border: 1px solid #ECECEC; border-radius: 10px; background: #fff; }
.abCol.is-vencedor { border-color: #0F7B3F; box-shadow: inset 0 0 0 1px #0F7B3F; }
.abCol > header { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; }
.abCol > header b { font: 700 15px Inter, sans-serif; }
.abTag { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px;
  background: #1B1B1B; color: #fff; font: 700 13px Inter, sans-serif; flex: 0 0 auto; }
.abCol.is-vencedor .abTag { background: #0F7B3F; }
.abCol dl { margin: 0; display: grid; gap: 8px; }
.abCol dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0; }
.abCol dt { margin: 0; font-size: 12px; color: #8A8A8A; text-transform: uppercase; letter-spacing: .06em; }
.abCol dd { margin: 0; font: 600 15px Inter, sans-serif; font-variant-numeric: tabular-nums; color: #1B1B1B; }
.abCol dl > .is-forte { border-top: 1px solid #ECECEC; padding-top: 10px; margin-top: 2px; }
.abCol dl > .is-forte dd { font: 800 26px/1 "Roboto Serif", serif; }

.abVeredito { margin: 0 0 8px; padding: 18px; border: 1px solid #ECECEC; border-radius: 10px; background: #fff; }
.abVeredito .adH2 { margin-top: 0; }
.abBarras { display: grid; gap: 9px; margin: 0 0 14px; }
.abBarra { display: grid; grid-template-columns: 18px minmax(0, 1fr) 68px; align-items: center; gap: 10px; margin: 0; }
.abBarra > span { margin: 0; font: 700 13px Inter, sans-serif; color: #8A8A8A; }
.abBarra > div { margin: 0; width: 100%; height: 22px; background: #F2F2F2; border-radius: 5px; overflow: hidden; }
.abBarra > div > div { margin: 0; height: 100%; min-width: 2px; background: #960A0E; border-radius: 5px; }
.abBarra > b { margin: 0; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; }
.abLeitura { margin: 0; padding: 11px 14px; border-left: 3px solid #DDD; border-radius: 0 6px 6px 0;
  background: #FAFAFA; font-size: 13px; line-height: 1.6; color: #555; }
.abLeitura.is-conclusivo { border-left-color: #0F7B3F; background: #F1F8F3; color: #14532D; }
.abVeredito > .adFraco { margin: 12px 0 0; line-height: 1.6; }

.abFunil td, .abFunil th { font-variant-numeric: tabular-nums; }
.abSobe { color: #0F7B3F; font-weight: 600; }
.abDesce { color: #B42318; font-weight: 600; }

@media (max-width: 770px) {
  .abGrade { grid-template-columns: 1fr; }
  .abFunil { display: block; overflow-x: auto; white-space: nowrap; }
}
