/* G7 · LPs de auxílio-maternidade · componentes compartilhados (protótipo 07/10/2026)
   Cada página define a própria paleta sobrescrevendo as variáveis de :root. */
:root {
  --g7-roxo: #4B1B6E;
  --g7-roxo-escuro: #24112F;
  --g7-magenta: #C8236E;
  --g7-amarelo: #FFD23F;
  --g7-amarelo-sombra: #C79D12;
  --g7-verde: #17803F;
  --g7-verde-sombra: #0F5A2C;
  --g7-tinta: #24112F;
  --g7-suave: #5E4A6B;
  --g7-linha: #EFE6F4;
  --g7-fundo: #FFFFFF;
  --g7-fundo-2: #F7F2FB;
  --g7-aviso: #FFF3C4;
  --g7-ok: #E9F7EE;
  --g7-ok-tinta: #0F5A2C;

  --quiz-botao: var(--g7-amarelo);
  --quiz-botao-tinta: var(--g7-tinta);
  --quiz-botao-sombra: var(--g7-amarelo-sombra);
  --quiz-destaque: var(--g7-magenta);

  --fonte-titulo: "Archivo", "Segoe UI", system-ui, sans-serif;
  --fonte-texto: "Nunito Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --raio: 18px;
  --sombra-card: 0 10px 30px rgba(36, 17, 47, 0.14);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--g7-fundo);
  color: var(--g7-tinta);
  font: 400 16px/1.5 var(--fonte-texto);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--g7-roxo); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--g7-magenta); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Página: coluna de celular, centralizada no computador */
.pagina { max-width: 480px; margin: 0 auto; background: var(--g7-fundo); min-height: 100vh; position: relative; overflow-x: hidden; overflow-x: clip; }
.envolto { padding-inline: 18px; }
.secao { padding-block: 32px; }
.titulo { font-family: var(--fonte-titulo); font-weight: 900; letter-spacing: -0.02em; line-height: 1.02; margin: 0; text-wrap: balance; }
.titulo-2 { font-family: var(--fonte-titulo); font-weight: 900; font-size: 26px; line-height: 1.05; margin: 0; text-wrap: balance; }
.rotulo { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.suave { color: var(--g7-suave); }
.pequeno { font-size: 13px; }
.mini { font-size: 12px; }

/* Topo */
.topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; }
.topo .logo { height: 40px; width: auto; }
.selo-oficial { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--g7-ok); color: var(--g7-ok-tinta); font-size: 12px; font-weight: 800; white-space: nowrap; }
.selo-oficial svg { width: 14px; height: 14px; }

/* Botões */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 0 18px; border: 0; border-radius: 16px; font-weight: 900; font-size: 17px; text-decoration: none; cursor: pointer; transition: transform .08s ease; }
.btn:active { transform: translateY(2px); }
.btn-primario { background: var(--quiz-botao); color: var(--quiz-botao-tinta); box-shadow: 0 5px 0 var(--quiz-botao-sombra); }
.btn-whats { background: var(--g7-verde); color: #FFFFFF; box-shadow: 0 5px 0 var(--g7-verde-sombra); }
.btn-whats svg { width: 22px; height: 22px; flex: 0 0 auto; }
.btn-contorno { background: #FFFFFF; color: var(--g7-roxo); border: 2px solid var(--g7-roxo); box-shadow: none; }
.btn-link { background: none; border: 0; min-height: 44px; color: var(--g7-roxo); font-weight: 800; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Faixa de confiança curta */
.confianca { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 12px; font-weight: 800; color: var(--g7-suave); }
.confianca span + span::before { content: "·"; margin-right: 10px; color: var(--g7-linha); }

/* QUIZ ------------------------------------------------------------ */
.quiz { display: flex; flex-direction: column; gap: 12px; }
.quiz-cartao { padding: 18px 16px; border-radius: 24px; background: #FFFFFF; box-shadow: var(--sombra-card); }
.quiz-borda { padding: 18px; border-radius: 20px; border: 2px solid var(--g7-linha); }
.quiz-cabeca { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.quiz-passo { font-size: 12px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--quiz-destaque); }
.quiz-pontos { display: flex; gap: 5px; }
.quiz-pontos i { width: 22px; height: 6px; border-radius: 3px; background: var(--g7-linha); }
.quiz-pontos i.feito { background: var(--quiz-destaque); }
.quiz-pontos i.agora { background: var(--quiz-botao); }
.quiz-pergunta { font-family: var(--fonte-titulo); font-weight: 900; font-size: 23px; line-height: 1.12; margin: 0; text-wrap: balance; }
.quiz-opcoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quiz-op { min-height: 60px; padding: 8px 12px; border: 0; border-radius: 16px; background: var(--quiz-botao); color: var(--quiz-botao-tinta); font-weight: 900; font-size: 16px; line-height: 1.15; cursor: pointer; box-shadow: 0 5px 0 var(--quiz-botao-sombra); transition: transform .08s ease; }
.quiz-op:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--quiz-botao-sombra); }
.quiz-op.cheio { grid-column: 1 / -1; }
.quiz-voltar { align-self: flex-start; }

/* variação lista (Limpa, Consciente) */
.quiz-lista .quiz-opcoes { grid-template-columns: 1fr; gap: 8px; }
.quiz-lista .quiz-op { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 16px; border-radius: 14px; background: #FFFFFF; color: var(--g7-tinta); border: 1.5px solid #D8C8E3; box-shadow: none; font-weight: 800; text-align: left; }
.quiz-lista .quiz-op::after { content: "›"; color: var(--g7-roxo); font-size: 20px; }
.quiz-lista .quiz-pergunta { font-family: var(--fonte-texto); font-weight: 800; font-size: 19px; }

/* Resultado */
.resultado { display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; padding: 20px 18px; border-radius: 22px; background: var(--g7-aviso); }
.resultado.neutro { background: var(--g7-fundo-2); }
.resultado .valor { font-family: var(--fonte-titulo); font-weight: 900; font-size: 54px; line-height: 0.9; letter-spacing: -0.03em; white-space: nowrap; }
.resultado .confete { position: absolute; border-radius: 3px; }
.resultado-titulo { font-family: var(--fonte-titulo); font-weight: 900; font-size: 24px; line-height: 1.08; margin: 0; }

/* Telefone */
.campo { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 15px; }
.campo input { width: 100%; min-height: 56px; padding: 0 16px; border-radius: 14px; border: 2px solid #D8C8E3; background: #FFFFFF; font: 800 20px var(--fonte-texto); letter-spacing: 0.02em; color: var(--g7-tinta); }
.campo input:focus { border-color: var(--g7-roxo); outline: none; box-shadow: 0 0 0 4px rgba(75, 27, 110, 0.12); }
.campo .erro { color: #B3261E; font-size: 13px; font-weight: 700; }
.numero-oficial { font-size: 12px; text-align: center; color: var(--g7-suave); }
.numero-oficial strong { white-space: nowrap; }

/* variação chat (Vendedora 2) */
.chat { display: flex; flex-direction: column; gap: 10px; }
.bolha { max-width: 84%; padding: 12px 14px; font-size: 16px; line-height: 1.45; animation: entra .22s ease-out; }
.bolha.lia { align-self: flex-start; background: #FFFFFF; border-radius: 20px 20px 20px 6px; box-shadow: 0 2px 6px rgba(36, 17, 47, 0.06); }
.bolha.eu { align-self: flex-end; background: var(--g7-roxo); color: #FFFFFF; border-radius: 20px 20px 6px 20px; font-weight: 700; }
.bolha.dica { align-self: stretch; max-width: none; background: #FCE3D9; color: #7A2E16; border-radius: 16px; font-size: 14px; }
.digitando { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; border-radius: 20px 20px 20px 6px; background: #FFFFFF; }
.digitando i { width: 8px; height: 8px; border-radius: 50%; background: var(--g7-roxo); animation: pulo 1s infinite; }
.digitando i:nth-child(2) { animation-delay: .15s; }
.digitando i:nth-child(3) { animation-delay: .3s; }
@keyframes pulo { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Folha que sobe de baixo (quiz aberto a partir de um botão) */
.folha-fundo { position: fixed; inset: 0; z-index: 40; background: rgba(20, 9, 28, 0.55); display: flex; align-items: flex-end; justify-content: center; animation: aparece .18s ease-out; }
.folha { width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; padding: 10px 16px 28px; border-radius: 26px 26px 0 0; background: var(--g7-fundo); animation: sobe .24s ease-out; }
.folha-alca { width: 44px; height: 5px; border-radius: 3px; background: #D8C8E3; margin: 2px auto 12px; }
.folha-fechar { position: absolute; }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes sobe { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }

/* Simulação do WhatsApp (só no protótipo) */
.wa-sim { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; background: rgba(20, 9, 28, 0.6); }
.wa-tela { width: 100%; max-width: 480px; height: 100%; display: flex; flex-direction: column; background: #EFE7DA; }
.wa-aviso { padding: 8px 14px; background: #FFF3C4; font-size: 12px; font-weight: 700; color: #5A4500; }
.wa-topo { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #0A6365; color: #FFFFFF; }
.wa-topo .avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #FFFFFF; }
.wa-topo button { width: 44px; height: 44px; border: 0; background: none; color: #FFFFFF; font-size: 24px; cursor: pointer; }
.wa-corpo { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; }
.wa-msg { max-width: 84%; padding: 9px 11px; font-size: 15px; line-height: 1.45; border-radius: 12px; animation: entra .22s ease-out; }
.wa-msg.ela { align-self: flex-end; background: #D9F2DF; border-radius: 12px 12px 4px 12px; }
.wa-msg.g7 { align-self: flex-start; background: #FFFFFF; border-radius: 12px 12px 12px 4px; }
.wa-sistema { align-self: center; padding: 4px 10px; border-radius: 8px; background: #FFF6D9; font-size: 12px; color: #6B5A1F; }
.wa-pe { display: flex; align-items: center; gap: 8px; padding: 8px 10px calc(12px + env(safe-area-inset-bottom, 0px)); background: #EFE7DA; }
.wa-pe .campo-falso { flex: 1; height: 44px; border-radius: 22px; background: #FFFFFF; display: flex; align-items: center; padding: 0 16px; color: #8A8A8A; font-size: 15px; }
.wa-pe .mic { width: 44px; height: 44px; border-radius: 50%; background: #0A6365; display: flex; align-items: center; justify-content: center; }
.wa-pe .mic svg { width: 20px; height: 20px; }
.wa-voltar { margin-left: 8px; padding: 2px 10px; border: 1.5px solid #5A4500; border-radius: 999px; background: none; color: #5A4500; font: 800 12px var(--fonte-texto); cursor: pointer; min-height: 30px; }

/* Stories de depoimento */
.stories { display: flex; gap: 14px; overflow-x: auto; padding: 4px 18px 8px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story-bola { flex: 0 0 74px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; }
.story-bola .anel { width: 74px; height: 74px; border-radius: 50%; padding: 3px; background: conic-gradient(var(--g7-amarelo), var(--g7-magenta), #7B3FE4, var(--g7-amarelo)); }
.story-bola img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 22%; border: 3px solid var(--g7-fundo); }
.story-bola span { font-size: 12px; font-weight: 800; }
.story-tela { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: center; background: #14091C; }
.story-caixa { position: relative; width: 100%; max-width: 480px; height: 100%; display: flex; flex-direction: column; }
.story-caixa video { flex: 1; width: 100%; min-height: 0; object-fit: cover; background: #000; }
.story-barra { position: absolute; top: 10px; left: 12px; right: 12px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.story-barra i { display: block; height: 100%; width: 0; background: #FFFFFF; }
.story-topo { position: absolute; top: 18px; left: 12px; right: 4px; display: flex; align-items: center; justify-content: space-between; color: #FFFFFF; font-weight: 800; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.story-topo button { width: 48px; height: 48px; border: 0; background: none; color: #FFFFFF; font-size: 28px; cursor: pointer; }
.story-pe { padding: 14px 16px 22px; display: flex; flex-direction: column; gap: 10px; color: #FFFFFF; background: #14091C; }

/* Vídeo em destaque com capa */
.video-capa { position: relative; border-radius: 18px; overflow: hidden; border: 0; padding: 0; cursor: pointer; background: #000; }
.video-capa img { width: 100%; height: 100%; object-fit: cover; }
.video-capa .play { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(255, 210, 63, 0.95); display: flex; align-items: center; justify-content: center; }
.video-capa .play svg { width: 22px; height: 22px; }

/* Barra fixa do WhatsApp */
.barra-fixa { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; pointer-events: none; transform: translateY(110%); transition: transform .25s ease; }
.barra-fixa.visivel { transform: none; }
.barra-fixa .dentro { pointer-events: auto; width: 100%; max-width: 480px; display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: #FFFFFF; box-shadow: 0 -6px 20px rgba(36, 17, 47, 0.16); }
.barra-fixa .dentro img { width: 38px; height: 38px; border-radius: 50%; }
.barra-fixa .texto { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.barra-fixa .btn { width: auto; min-height: 48px; padding: 0 16px; font-size: 15px; border-radius: 14px; }

/* Canais oficiais e rodapé institucional */
.canais { display: flex; flex-direction: column; gap: 8px; }
.canal { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 14px; border-radius: 14px; background: #FFFFFF; border: 1.5px solid var(--g7-linha); text-decoration: none; color: var(--g7-tinta); }
.canal .icone { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--g7-fundo-2); font-weight: 900; color: var(--g7-roxo); }
.canal .icone img { width: 36px; height: 36px; border-radius: 50%; }
.canal .icone svg { width: 20px; height: 20px; }
.canal .txt { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.canal .txt strong { font-size: 14px; }
.canal .txt span { font-size: 13px; color: var(--g7-suave); }
.canal .seta { color: var(--g7-roxo); font-size: 20px; }
.canal .verificado { font-size: 12px; font-weight: 800; color: var(--g7-ok-tinta); }
.rodape { display: flex; flex-direction: column; gap: 6px; padding: 24px 18px calc(110px + env(safe-area-inset-bottom, 0px)); background: var(--g7-roxo-escuro); color: #E7D6F2; font-size: 12px; line-height: 1.55; }
.rodape strong { color: #FFFFFF; font-size: 13px; }
.rodape a { color: #FFFFFF; }
.rodape .links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.placeholder { background: #FFF3C4; color: #5A4500; padding: 0 4px; border-radius: 4px; font-weight: 800; }

/* Prova social */
.nota-google { display: flex; align-items: center; gap: 10px; }
.nota-google strong { font-family: var(--fonte-titulo); font-weight: 900; font-size: 36px; line-height: 1; }
.estrelas { color: #E8A400; font-size: 16px; letter-spacing: 1px; }
.numeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.numeros strong { display: block; font-family: var(--fonte-titulo); font-weight: 900; font-size: 22px; line-height: 1.1; }
.numeros span { display: block; margin-top: 2px; font-size: 11px; line-height: 1.3; font-weight: 700; color: var(--g7-suave); }

/* Faixa "recebendo agora" */
.letreiro { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; background: var(--g7-roxo-escuro); color: #FFFFFF; font-size: 13px; font-weight: 800; overflow: hidden; white-space: nowrap; }
.letreiro .etiqueta { flex: 0 0 auto; padding: 3px 8px; border-radius: 999px; background: var(--g7-magenta); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.letreiro .item { min-width: 0; overflow: hidden; text-overflow: ellipsis; animation: entra .3s ease-out; }
.letreiro #letreiro { min-width: 0; overflow: hidden; }
.letreiro .pausa { flex: 0 0 auto; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #FFFFFF; font-size: 11px; cursor: pointer; }

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
