/* Acolhedoria Diagnóstico: questionário do participante (mobile-first).
   Cores e tipos do manual da marca Acolhedoria. Nenhum recurso externo. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); }

:root {
  --verde: #175845; --verde-profundo: #0f3f31; --petroleo: #0e5a66; --ambar: #b97a24;
  --off-white: #faf8f5; --branco: #fff; --grafite: #1f2933; --cinza: #6b6b66;
  --areia: #ddd8d0; --borda-campo: #cfc9bf; --verde-claro: rgba(23, 88, 69, 0.08);
  --erro: #9b2c2c; --erro-fundo: #fbeaea; --ok-fundo: #e6f0ec;
  --raio: 20px; --fs: 1;
}
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--off-white); color: var(--grafite); }
body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: calc(17px * var(--fs)); line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100dvh; }
button { font: inherit; color: inherit; }
a { color: var(--verde); }
#app { max-width: 560px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }

/* Assinatura da marca */
.marca-topo { display: block; width: 210px; max-width: 70%; height: auto; margin: 20px 0 22px; }
.assinatura { margin-top: 28px; padding-top: 16px; border-top: 1.5px solid var(--areia); font-size: .78em; color: var(--cinza); line-height: 1.5; }

/* Barra superior das perguntas */
.topo { position: sticky; top: 0; z-index: 5; background: var(--off-white); padding: max(10px, env(safe-area-inset-top)) 16px 10px; border-bottom: 1.5px solid var(--areia); }
.topo-linha { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.topo .titulo-sec { flex: 1; font-size: .82em; color: var(--cinza); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icone-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--verde); }
.icone-btn:active { background: var(--verde-claro); }
.icone-btn svg { width: 24px; height: 24px; }
.icone-btn[aria-pressed="true"] { background: var(--verde); color: var(--branco); }
/* O âmbar da tela é o progresso */
.barra { height: 6px; background: var(--areia); border-radius: 9999px; overflow: hidden; margin-top: 6px; }
.barra > i { display: block; height: 100%; background: var(--ambar); border-radius: 9999px; transition: width .3s ease; }

.tela { flex: 1; display: flex; flex-direction: column; padding: 12px 20px calc(24px + env(safe-area-inset-bottom)); animation: entra .22s ease; }
.tela.centro { justify-content: center; align-items: center; text-align: center; }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.marca { font-size: .72em; letter-spacing: .06em; text-transform: uppercase; color: var(--verde); font-weight: 600; margin: 4px 0 8px; }
h1, h2, .pergunta { font-family: "Poppins", system-ui, sans-serif; font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: 1.6em; line-height: 1.2; margin: 0 0 12px; color: var(--verde); }
h2 { font-size: 1.3em; line-height: 1.25; margin: 0 0 10px; color: var(--verde); }
p { margin: 0 0 12px; }
.muted { color: var(--cinza); }
.empresa { font-weight: 600; color: var(--grafite); }

.card { background: var(--branco); border: 1.5px solid var(--areia); border-radius: var(--raio); padding: 20px; margin-bottom: 14px; }
.lista-ico { list-style: none; padding: 0; margin: 0; }
.lista-ico li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #ece8e1; }
.lista-ico li:first-child { padding-top: 0; }
.lista-ico li:last-child { border-bottom: 0; padding-bottom: 0; }
.lista-ico svg { flex: 0 0 24px; width: 24px; height: 24px; color: var(--verde); margin-top: 1px; }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; border: 1.5px solid var(--verde); border-radius: 12px; background: var(--verde); color: var(--branco); font-weight: 600; font-size: 1em; cursor: pointer; padding: 12px 18px; text-decoration: none; }
.btn:active { transform: scale(.99); background: var(--verde-profundo); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.sec { background: var(--branco); color: var(--verde); }
.btn.link { background: transparent; border-color: transparent; color: var(--verde); min-height: 48px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.rodape { margin-top: auto; padding-top: 20px; display: grid; gap: 10px; }

/* Pergunta */
.stem { color: var(--cinza); font-size: .92em; margin: 10px 0 4px; }
.pergunta { font-size: 1.3em; line-height: 1.3; color: var(--grafite); margin: 10px 0 6px; }
.ajuda { display: flex; gap: 10px; font-size: .9em; color: var(--grafite); background: var(--verde-claro); padding: 10px 14px; border-radius: 12px; margin: 8px 0 4px; }
.ajuda::before { content: ""; flex: none; width: 3px; border-radius: 9999px; background: var(--verde); }
.ajuda.erro { background: var(--erro-fundo); }
.ajuda.erro::before { background: var(--erro); }
.opcoes { display: grid; gap: 10px; margin-top: 18px; }
.op { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--areia); background: var(--branco); text-align: left; cursor: pointer; font-weight: 500; transition: border-color .12s, background .12s; }
.op:hover { border-color: var(--borda-campo); }
.op:active { transform: scale(.99); }
.op .txt { flex: 1; }
.op[aria-pressed="true"] { border-color: var(--verde); background: var(--verde); color: var(--branco); }
.dots { display: flex; gap: 4px; flex: 0 0 auto; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--areia); }
.dots i.on { background: var(--verde); }
.op[aria-pressed="true"] .dots i { background: rgba(255, 255, 255, .3); }
.op[aria-pressed="true"] .dots i.on { background: var(--branco); }
.face { width: 30px; height: 30px; flex: 0 0 30px; }
.op.na { min-height: 48px; border-style: dashed; color: var(--cinza); font-weight: 400; }
.op.chk::before { content: ""; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--borda-campo); flex: 0 0 22px; background: var(--branco); }
.op.chk[aria-pressed="true"]::before { background: var(--branco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23175845' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; border-color: var(--branco); }

/* Abertura de seção */
.sec-ico { width: 72px; height: 72px; border-radius: 20px; background: var(--branco); border: 1.5px solid var(--areia); display: grid; place-items: center; margin: 32px 0 18px; color: var(--verde); }
.sec-ico svg { width: 36px; height: 36px; }
.passo { font-size: .76em; font-weight: 600; color: var(--verde); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }

/* Código e busca */
.campo-codigo { width: 100%; font: 600 1.55em/1.2 "Inter", system-ui, sans-serif; letter-spacing: .14em; text-align: center; text-transform: uppercase; padding: 16px; border-radius: 12px; border: 1.5px solid var(--borda-campo); background: var(--branco); color: var(--verde); }
.campo-codigo:focus, .busca:focus { outline: 2px solid var(--verde); outline-offset: 2px; border-color: var(--verde); }
.busca { width: 100%; padding: 14px 16px; font-size: 1em; border-radius: 12px; border: 1.5px solid var(--borda-campo); background: var(--branco); margin: 10px 0 0; }
.grupo-titulo { font-size: .76em; font-weight: 600; color: var(--cinza); text-transform: uppercase; letter-spacing: .06em; margin: 16px 4px 2px; }

.spinner { width: 44px; height: 44px; border: 4px solid var(--areia); border-top-color: var(--verde); border-radius: 50%; animation: gira 1s linear infinite; }
.spinner.mini { width: 22px; height: 22px; border-width: 3px; border-color: rgba(255, 255, 255, .4); border-top-color: var(--branco); }
@keyframes gira { to { transform: rotate(360deg); } }
.selo { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--ok-fundo); color: var(--verde); }
.selo.erro { background: var(--erro-fundo); color: var(--erro); }
.selo svg { width: 44px; height: 44px; }
details { background: var(--branco); border: 1.5px solid var(--areia); border-radius: 14px; padding: 14px 16px; margin: 4px 0 12px; }
summary { cursor: pointer; font-weight: 600; color: var(--verde); }
details p { font-size: .92em; color: var(--cinza); margin: 10px 0 0; }
.pequeno { font-size: .85em; }
.centro-txt { text-align: center; margin: 0; }
.apagar { margin-top: 8px; }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Páginas estáticas (aviso de privacidade, verificação) */
.pagina-txt { padding-top: 4px; }
.pagina-txt .card p:last-child { margin-bottom: 0; }
.resultado { border-left: 4px solid var(--verde); }
.resultado.ruim { border-left-color: var(--erro); }
.mono-quebra { font-size: 12px; color: var(--cinza); word-break: break-all; }
