:root {
  --grafite: #141414;
  --papel: #F1F0ED;
  --verde: #3EB76F;
  --mira: #545454;
  --erro: #E8A0A0;
  --fonte: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--grafite); color: var(--papel); font-family: var(--fonte);
  font-size: 17px; line-height: 1.5; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
}
.barra { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: #262626; z-index: 2; }
.barra-cheia { height: 100%; width: 0; background: var(--verde); transition: width .4s ease; }
.topo { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 0; min-height: 60px; }
.logo { height: 26px; width: auto; margin-left: auto; }
.voltar {
  background: none; border: 0; color: #9a9893; font: inherit; font-size: 14px;
  cursor: pointer; padding: 8px 4px; letter-spacing: .04em;
}
.voltar:hover { color: var(--papel); }
.palco {
  position: relative; flex: 1; width: 100%; max-width: 680px; margin: 0 auto;
  padding: 48px 28px; display: flex; align-items: center;
}
.mira { position: absolute; width: 18px; height: 18px; border: 0 solid var(--mira); }
.m1 { top: 12px; left: 12px; border-top-width: 1px; border-left-width: 1px; }
.m2 { top: 12px; right: 12px; border-top-width: 1px; border-right-width: 1px; }
.m3 { bottom: 12px; left: 12px; border-bottom-width: 1px; border-left-width: 1px; }
.m4 { bottom: 12px; right: 12px; border-bottom-width: 1px; border-right-width: 1px; }
.tela { width: 100%; transition: opacity .35s ease, transform .35s ease; }
.tela.saindo { opacity: 0; transform: translateY(-16px); }
.tela.entrando { opacity: 0; transform: translateY(16px); }
.rotulo { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8a8883; margin: 0 0 14px; }
.rotulo b { color: var(--verde); font-weight: 500; }
h1 { font-weight: 500; font-size: 26px; line-height: 1.3; margin: 0 0 12px; }
.sub { color: #c9c7c2; margin: 0 0 28px; }
.destaque { color: var(--verde); }
input[type=text], input[type=tel] {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--mira);
  color: var(--papel); font: inherit; font-size: 22px; padding: 10px 0; border-radius: 0;
}
input::placeholder { color: #5f5d59; }
input:focus { outline: none; border-bottom-color: var(--verde); }
.campo + .campo { margin-top: 22px; }
.campo label { display: block; font-size: 13px; color: #9a9893; margin-bottom: 2px; }
.opcoes { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.opcao {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: rgba(241, 240, 237, .04); border: 1px solid #3a3a3a; color: var(--papel);
  font: inherit; font-size: 16px; padding: 12px 14px; cursor: pointer; border-radius: 3px;
  transition: border-color .15s, background .15s;
}
.opcao:hover { border-color: #7a7873; }
.opcao.marcada { border-color: var(--verde); background: rgba(62, 183, 111, .12); }
.tecla {
  flex: none; width: 26px; height: 26px; display: inline-grid; place-items: center;
  border: 1px solid var(--mira); font-size: 13px; color: #b5b3ae;
}
.opcao.marcada .tecla { border-color: var(--verde); color: var(--verde); }
.acoes { margin-top: 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.botao {
  background: var(--verde); color: var(--grafite); border: 0; font: inherit; font-weight: 500;
  font-size: 16px; padding: 13px 26px; cursor: pointer; border-radius: 3px;
}
.botao:hover { filter: brightness(1.08); }
.botao[disabled] { opacity: .5; cursor: default; }
.dica { font-size: 13px; color: #8a8883; }
.erro { color: var(--erro); font-size: 14px; min-height: 1.5em; margin: 10px 0 0; }
/* Aviso de contato na tela de envio (13/10): sem caixa, logo acima do botao. */
.aviso-envio { font-size: 14px; color: #b5b3ae; margin: 0; max-width: 52ch; }
.aviso-envio + .acoes { margin-top: 18px; }
.agenda { margin-top: 28px; border-top: 1px solid #2c2c2c; padding-top: 22px; }
.agenda iframe { width: 100%; height: 600px; border: 0; background: var(--papel); border-radius: 3px; }
.agenda a, .link { color: var(--verde); }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; }
.rodape {
  display: flex; justify-content: space-between; padding: 0 24px 20px;
  font-size: 12px; letter-spacing: .14em; color: #8a8883; /* 5,20:1 sobre o grafite (era #545454, 2,43:1) */
}
.aviso { text-align: center; padding: 20px; }
.link-rodape { background: none; border: 0; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.link-rodape:hover { color: var(--papel); }
/* Faixa de cookies (13/10): discreta, colada no rodape, sem bloquear o quiz nem pegar o foco.
   Enquanto ela aparece, o body reserva embaixo a altura dela (--faixa, medida pelo app.js;
   o valor padrao cobre a faixa calculada), entao botao e opcao nunca ficam por baixo. */
.cookies {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; gap: 16px;
  background: #1a1a1a; border-top: 1px solid #2c2c2c; color: #b5b3ae;
  padding: 10px 24px calc(10px + env(safe-area-inset-bottom)); font-size: 12px; line-height: 1.45;
}
.cookies[hidden] { display: none; }
body:has(.cookies:not([hidden])) { padding-bottom: var(--faixa, 80px); }
.cookies p { margin: 0; flex: 1; }
.cookies-botoes { display: flex; gap: 8px; flex: none; }
/* Aceitar e Recusar com o mesmo peso visual, como pede o juridico. */
.botao-cookie {
  background: transparent; color: var(--papel); border: 1px solid #8a8883; font: inherit;
  font-weight: 500; padding: 7px 16px; cursor: pointer; border-radius: 3px;
}
.botao-cookie:hover { background: rgba(241, 240, 237, .08); }
.politica { max-width: 720px; margin: 0 auto; padding: 32px 28px 60px; font-size: 15px; }
.politica h1 { font-size: 24px; }
.politica h2 { font-weight: 500; font-size: 17px; margin: 28px 0 8px; color: var(--verde); }
.politica ul { padding-left: 20px; }
.politica li + li { margin-top: 6px; }
@media (max-width: 480px) {
  body { font-size: 16px; }
  .palco { padding: 36px 22px; align-items: flex-start; }
  h1 { font-size: 22px; }
  input[type=text], input[type=tel] { font-size: 20px; }
  .opcao { font-size: 15px; padding: 12px; }
  .agenda iframe { height: 520px; }
  /* 390 px: 4 linhas de 17,4 px (49 caracteres por linha) + 8 de folga + botao de 33,4 + 21 de borda e padding = 132 px. */
  .cookies { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .botao-cookie { flex: 1; }
  body:has(.cookies:not([hidden])) { padding-bottom: var(--faixa, calc(150px + env(safe-area-inset-bottom))); }
}
@media (prefers-reduced-motion: reduce) {
  .tela, .barra-cheia { transition: none; }
}
