/* O visual do site público (index.html e aprender.html). Pensado primeiro para o celular, porque quase todo mundo
   chega pelo TikTok e pelo Instagram. Cores e letras são as mesmas dos vídeos. */
:root {
  --fundo: #f6f1e7;
  --cartao: #ffffff;
  --cartao2: #f1ebdf;
  --texto: #1b1a22;
  --suave: #5c5966;
  --linha: #e3dccd;
  --amarelo: #ffd84d;
  --tinta: #15121b;
  --verde: #2f9e44;
  --vermelho: #e5483d;
  --placa: #1f5135;
  --erro: #c4372c;
  --marca: "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif;
  --corpo: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --fundo: #121119; --cartao: #1c1a25; --cartao2: #252232; --texto: #f1eee6; --suave: #a8a3b3; --linha: #2c2938; --verde: #69db7c; --erro: #ff8a7e; color-scheme: dark; }
}
:root[data-theme="dark"] { --fundo: #121119; --cartao: #1c1a25; --cartao2: #252232; --texto: #f1eee6; --suave: #a8a3b3; --linha: #2c2938; --verde: #69db7c; --erro: #ff8a7e; color-scheme: dark; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: var(--texto); font: 500 17px/1.6 var(--corpo); }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
.faixa { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.coluna { max-width: 1040px; margin: 0 auto; }
:where(a, button, input, textarea, label):focus-visible { outline: 3px solid var(--amarelo); outline-offset: 3px; }

/* ---------- barra do topo ---------- */
.barra { position: absolute; top: 0; left: 0; right: 0; z-index: 5; padding-top: max(12px, env(safe-area-inset-top, 0px)); pointer-events: none; }
.barra .coluna { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.barra a, .barra button { pointer-events: auto; }
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: #fff; font: 800 20px/1 var(--marca); text-shadow: 0 1px 6px rgb(0 0 0 / 0.5); }
.logo img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 2px var(--amarelo); flex: none; }
.pilula { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: rgb(21 18 27 / 0.72); color: #fff; font: 800 14px/1 var(--corpo); text-decoration: none; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); white-space: nowrap; }
.pilula svg { width: 18px; height: 18px; flex: none; }

/* ---------- botões ---------- */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border: 0; border-radius: 999px; font: 800 16px/1.1 var(--corpo); text-decoration: none; cursor: pointer; text-align: center; }
.botao.principal { background: var(--amarelo); color: var(--tinta); box-shadow: 0 8px 24px rgb(0 0 0 / 0.25); }
.botao.secundario { background: rgb(255 255 255 / 0.14); color: #fff; box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.botao.contorno { background: transparent; color: var(--texto); box-shadow: inset 0 0 0 2px var(--linha); }
.botao[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- a cidade em 3D (a maior parte da primeira tela) ---------- */
.cidade3d { position: relative; height: 100svh; min-height: 560px; max-height: 980px; overflow: hidden; background: linear-gradient(#e9cdb0, #f5ece1); color: #fff; isolation: isolate; }
/* a foto parada da capa só aparece quando o 3D não carrega (sem WebGL ou sem o estado da cidade) */
.cidade3d.sem-3d { background: #d9cbb2 url("../img/capa.jpg") center / cover no-repeat; }
#cidade3d { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s; touch-action: pan-y; cursor: grab; -webkit-tap-highlight-color: transparent; }
#cidade3d.pronta { opacity: 1; }
#cidade3d.arrastando { cursor: grabbing; }
.cidade3d::before, .cidade3d::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; z-index: 1; }
.cidade3d::before { top: 0; height: 46%; background: linear-gradient(to bottom, rgb(18 14 26 / 0.78), rgb(18 14 26 / 0.35) 55%, transparent); }
.cidade3d::after { bottom: 0; height: 34%; background: linear-gradient(to top, rgb(18 14 26 / 0.8), transparent); }

.convite { position: absolute; z-index: 2; left: 0; right: 0; top: calc(max(12px, env(safe-area-inset-top, 0px)) + 58px); pointer-events: none; }
.convite .coluna { display: grid; gap: 8px; justify-items: start; }
.etiqueta { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--amarelo); color: var(--tinta); font: 800 12px/1 var(--corpo); letter-spacing: 0.06em; text-transform: uppercase; }
/* a chamada para a lista de espera, em destaque acima de tudo no topo */
.pilula-aprender { pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-bottom: 4px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; color: var(--tinta); font: 800 15px/1.2 var(--corpo); text-decoration: none; box-shadow: 0 0 0 3px var(--amarelo), 0 10px 30px rgb(0 0 0 / 0.35); transition: transform 0.15s; animation: chamar 2.6s ease-in-out 1.2s 3; }
.pilula-aprender:hover { transform: translateY(-1px); }
.pilula-aprender:active { transform: scale(0.97); }
.pilula-aprender .icone-aprender { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tinta); color: var(--amarelo); }
.pilula-aprender .icone-aprender svg { width: 19px; height: 19px; }
.pilula-aprender .seta { flex: none; width: 18px; height: 18px; }
@keyframes chamar { 0%, 100% { box-shadow: 0 0 0 3px var(--amarelo), 0 10px 30px rgb(0 0 0 / 0.35); } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--amarelo) 45%, transparent), 0 10px 30px rgb(0 0 0 / 0.35); } }
@media (prefers-reduced-motion: reduce) { .pilula-aprender { animation: none; } }
@media (max-width: 420px) {
  .pilula-aprender { gap: 7px; padding: 5px 11px 5px 5px; font-size: 13.5px; letter-spacing: -0.01em; }
  .pilula-aprender .icone-aprender { width: 30px; height: 30px; }
  .pilula-aprender .icone-aprender svg { width: 17px; height: 17px; }
  .pilula-aprender .seta { width: 16px; height: 16px; }
}
@media (min-width: 370px) { .pilula-aprender { white-space: nowrap; } }
.convite h1 { margin: 0; max-width: 16ch; font: 800 clamp(30px, 7.4vw, 62px)/1 var(--marca); text-wrap: balance; text-shadow: 0 2px 18px rgb(0 0 0 / 0.4); }
.convite p { margin: 0; max-width: 46ch; font-size: 16px; line-height: 1.45; color: rgb(255 255 255 / 0.92); text-shadow: 0 1px 8px rgb(0 0 0 / 0.4); }

.rodape-cidade { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding-bottom: max(18px, env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.rodape-cidade .coluna { display: grid; gap: 10px; justify-items: center; }
.rodape-cidade .acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; pointer-events: auto; }
.gesto { margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgb(21 18 27 / 0.55); font: 700 13px/1.2 var(--corpo); color: rgb(255 255 255 / 0.9); transition: opacity 0.5s; }
.gesto svg { width: 18px; height: 18px; }
.gesto.some { opacity: 0; }

/* as plaquinhas que acompanham os prédios no 3D */
.etiquetas { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
/* enquanto os lugares sobem do chão (mapa-mundos.js, construirLugares), as plaquinhas esperam e entram juntas */
.etiquetas { transition: opacity 0.5s; }
.etiquetas.esperando { opacity: 0; }
.rotulo { position: absolute; left: 0; top: 0; display: grid; justify-items: center; gap: 0; padding: 6px 10px 7px; border: 0; border-radius: 12px; background: var(--placa); color: #fff; font: 800 13px/1.15 var(--corpo); text-align: center; white-space: nowrap; box-shadow: 0 6px 18px rgb(0 0 0 / 0.3), inset 0 0 0 2px rgb(255 255 255 / 0.85); pointer-events: auto; cursor: pointer; will-change: transform; }
.rotulo::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: inherit; transform: translateX(-50%) rotate(45deg); box-shadow: 2px 2px 0 0 rgb(255 255 255 / 0.85); z-index: -1; }
.rotulo b { font: 800 14px/1.1 var(--marca); letter-spacing: 0.01em; }
.rotulo small { font: 700 11px/1.2 var(--corpo); color: var(--amarelo); }
.rotulo.proximo { background: var(--vermelho); }
.rotulo.proximo small { color: #fff; opacity: 0.9; }
.rotulo.aberto { background: var(--amarelo); color: var(--tinta); box-shadow: 0 6px 18px rgb(0 0 0 / 0.3), inset 0 0 0 2px var(--tinta); }
.rotulo.aberto small { color: var(--tinta); }
.rotulo.escondido { visibility: hidden; }

/* a ficha do lugar tocado: sobe de baixo no celular, fica no canto no computador */
.ficha { position: absolute; z-index: 4; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: max(12px, env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; max-width: 460px; margin: 0 auto; padding: 18px 18px 20px; border-radius: 22px; background: var(--cartao); color: var(--texto); box-shadow: 0 18px 50px rgb(0 0 0 / 0.35); animation: subir 0.28s ease-out; }
.ficha h2 { margin: 0; padding-right: 40px; font: 800 26px/1.05 var(--marca); }
.ficha p { margin: 0; color: var(--suave); font-size: 15px; line-height: 1.5; }
.ficha .placa-arroba { color: var(--texto); font-size: 16px; }
.ficha .placa-arroba b { font-weight: 800; }
.ficha .frase { color: var(--texto); font-style: italic; }
.ficha .botao { justify-self: start; min-height: 44px; padding: 0 18px; font-size: 15px; box-shadow: none; }
.ficha .fechar { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--cartao2); cursor: pointer; }
.ficha .fechar svg { width: 18px; height: 18px; }
.estado { display: inline-flex; align-items: center; gap: 8px; width: fit-content; font: 800 13px/1 var(--corpo); color: var(--cor, var(--suave)); text-transform: uppercase; letter-spacing: 0.05em; }
.estado::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent); }
.cidade3d.com-ficha .rodape-cidade { opacity: 0; pointer-events: none; }
.cidade3d.com-ficha .rodape-cidade .acoes { pointer-events: none; }
.convite, .rodape-cidade { transition: opacity 0.3s; }
.cidade3d.com-ficha .convite { opacity: 0; }
.cidade3d.com-ficha .pilula-aprender { pointer-events: none; }
@keyframes subir { from { transform: translateY(24px); opacity: 0; } }

/* o espaço reservado do perfil (o login é feito em outra etapa) */
.painel-perfil { position: absolute; z-index: 6; top: calc(max(12px, env(safe-area-inset-top, 0px)) + 52px); right: max(12px, env(safe-area-inset-right, 0px)); width: min(320px, calc(100vw - 24px)); display: grid; gap: 8px; padding: 16px 18px; border-radius: 18px; background: var(--cartao); color: var(--texto); box-shadow: 0 18px 50px rgb(0 0 0 / 0.35); }
.painel-perfil b { font: 800 20px/1.1 var(--marca); }
.painel-perfil p { margin: 0; color: var(--suave); font-size: 15px; line-height: 1.45; }

/* ---------- as seções embaixo da cidade ---------- */
main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 64px; padding-block: 56px 72px; }
/* com as margens automáticas, a coluna do grid ficava do tamanho do texto mais comprido e vazava para os lados no
   celular (dono, 05/11: a busca abria com zoom e cortada à direita) */
main > .coluna { width: 100%; }
section .coluna { display: grid; gap: 20px; }
h2 { margin: 0; font: 800 clamp(30px, 4.4vw, 44px)/1.05 var(--marca); text-wrap: balance; }
.chamada { margin: 0; max-width: 60ch; color: var(--suave); }

.caso { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border-radius: 22px; overflow: hidden; background: var(--cartao); box-shadow: 0 0 0 1px var(--linha); }
.caso img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.caso video { height: min(640px, 80vh); width: auto; max-width: 100%; aspect-ratio: 9 / 16; background: var(--tinta); display: block; justify-self: center; }
.caso .placa { color: var(--texto); font-size: 18px; }
.caso .placa a { color: inherit; font-weight: 800; }
.caso .frase { font-style: italic; }
.caso div { display: grid; gap: 14px; align-content: center; padding: 26px; }
.caso h3 { margin: 0; font: 800 28px/1.1 var(--marca); }
.caso p { margin: 0; color: var(--suave); }
.status { display: inline-flex; align-items: center; gap: 8px; width: fit-content; font: 800 14px/1 var(--corpo); color: var(--verde); }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent); }
.caso .botao.principal { width: fit-content; box-shadow: none; }

/* as placas do que já foi construído, iguais à placa da calçada no 3D */
.placas { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.placa-predio { display: grid; gap: 10px; align-content: start; padding: 20px; border-radius: 18px; background: var(--placa); color: #fff; box-shadow: inset 0 0 0 3px rgb(255 255 255 / 0.85), 0 0 0 1px var(--linha); }
.placa-predio small { font: 800 12px/1 var(--corpo); letter-spacing: 0.08em; text-transform: uppercase; color: rgb(255 255 255 / 0.75); }
.placa-predio b { font: 800 26px/1.05 var(--marca); }
.placa-predio .ideia-de { font: 800 15px/1.2 var(--corpo); color: var(--amarelo); letter-spacing: 0.04em; }
.placa-predio q { font-style: italic; line-height: 1.45; color: rgb(255 255 255 / 0.92); }
.placa-predio a { font: 800 15px/1 var(--corpo); color: #fff; }
.placa-predio.proximo { background: var(--cartao); color: var(--texto); box-shadow: inset 0 0 0 2px var(--vermelho); }
.placa-predio.proximo small { color: var(--vermelho); }
.placa-predio.proximo p { margin: 0; color: var(--suave); font-size: 15px; }

.numeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.numero { display: grid; gap: 2px; padding: 18px; border-radius: 18px; background: var(--tinta); color: #fff; }
.numero strong { font: 800 40px/1 var(--marca); color: var(--amarelo); font-variant-numeric: tabular-nums; }
.numero span { font-size: 14px; line-height: 1.35; color: rgb(255 255 255 / 0.8); }

.passos { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: passo; }
.passos li { counter-increment: passo; display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: 18px; background: var(--cartao); box-shadow: 0 0 0 1px var(--linha); }
.passos li::before { content: counter(passo); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--amarelo); color: var(--tinta); font: 800 19px/1 var(--marca); }
.passos b { font: 800 19px/1.2 var(--marca); }
.passos span { color: var(--suave); font-size: 15px; }

.juizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.juiz { display: grid; align-content: start; border-radius: 20px; overflow: hidden; background: var(--cartao); box-shadow: 0 0 0 1px var(--linha); }
.juiz img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.juiz div { display: grid; gap: 6px; padding: 18px 20px 22px; }
.juiz h3 { margin: 0; font: 800 24px/1 var(--marca); }
.juiz q { font: 800 17px/1.3 var(--corpo); color: var(--texto); }
.juiz p { margin: 0; color: var(--suave); font-size: 15px; }

.regras { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 760px; }
.regras li { padding: 14px 18px; border-radius: 14px; background: var(--cartao); box-shadow: 0 0 0 1px var(--linha); }
.regras b { font-weight: 800; }
.privacidade { margin: 0; max-width: 760px; padding: 18px 20px; border-radius: 14px; border: 1px dashed var(--linha); color: var(--suave); font-size: 15px; }

footer { padding-block: 28px max(28px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--linha); color: var(--suave); font-size: 14px; }
footer .coluna { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.link-aprender { color: var(--texto); font-weight: 700; text-underline-offset: 3px; }

@media (min-width: 861px) {
  .convite { top: 96px; }
  .convite p { font-size: 18px; }
  .ficha { left: auto; right: max(24px, calc((100vw - 1040px) / 2)); bottom: 28px; width: 400px; }
}
@media (max-width: 860px) {
  .caso { grid-template-columns: 1fr; }
  .caso img { min-height: 200px; aspect-ratio: 16 / 9; height: auto; }
  .passos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .juizes { grid-template-columns: 1fr; }
  .juiz { grid-template-columns: 112px minmax(0, 1fr); align-items: center; }
  .juiz img { height: 100%; }
  .numero { padding: 14px; }
  .numero strong { font-size: 32px; }
  .numero span { font-size: 13px; }
}
@media (max-width: 480px) {
  .passos { grid-template-columns: 1fr; }
  .logo span { font-size: 17px; }
  .rodape-cidade .acoes .botao { flex: 1 1 140px; padding: 0 14px; }
}
@media (max-width: 360px) { .logo span { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } #cidade3d { transition: none; } .ficha { animation: none; } }

/* ---------- a página "Quero aprender a fazer vídeos assim" ----------
   Uma coluna só, estreita e centrada (a barra do topo, o texto, as perguntas e o rodapé alinhados pela mesma borda).
   As perguntas aparecem uma de cada vez; as respondidas viram linhas curtas em cima, que dá para mudar. */
.aprender .coluna { max-width: 600px; }
.aprender .barra { position: absolute; }
.aprender-topo { position: relative; padding-top: calc(max(12px, env(safe-area-inset-top, 0px)) + 78px); padding-bottom: 92px; background: var(--tinta) url("../img/capa.jpg") center 30% / cover no-repeat; color: #fff; isolation: isolate; }
.aprender-topo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgb(18 14 26 / 0.8), rgb(18 14 26 / 0.94)); }
.aprender-topo .coluna { display: grid; gap: 12px; justify-items: start; }
.aprender-topo h1 { margin: 0; font: 800 clamp(34px, 8vw, 54px)/1.02 var(--marca); text-wrap: balance; }
.aprender-topo p { margin: 0; color: rgb(255 255 255 / 0.88); font-size: 17px; }
.aprender main { padding-block: 0 64px; gap: 0; }
.aprender main .coluna { margin-top: -64px; position: relative; z-index: 1; }

.fluxo { display: grid; gap: 14px; padding: 20px 18px 22px; border-radius: 24px; background: var(--cartao); box-shadow: 0 0 0 1px var(--linha), 0 24px 60px rgb(0 0 0 / 0.18); }
.fluxo-topo { display: flex; align-items: center; gap: 12px; color: var(--suave); font: 700 13px/1 var(--corpo); }
.progresso { flex: 1; height: 8px; border-radius: 999px; background: var(--cartao2); overflow: hidden; }
.progresso i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--amarelo); transition: width 0.4s ease; }

.respondidas { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.respondidas:empty { display: none; }
.respondida { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 16px; background: var(--cartao2); animation: entrar 0.3s ease-out; }
.respondida .icone { width: 34px; height: 34px; border-radius: 10px; }
.respondida .icone svg { width: 18px; height: 18px; }
.respondida div { display: grid; min-width: 0; flex: 1; }
.respondida small { color: var(--suave); font: 700 12px/1.3 var(--corpo); }
.respondida b { font: 800 15px/1.3 var(--corpo); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.respondida button { flex: none; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--suave); font: 700 13px/1 var(--corpo); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.passo { display: grid; gap: 14px; padding-top: 4px; animation: entrar 0.35s ease-out; }
.passo h2 { font-size: clamp(25px, 6vw, 32px); line-height: 1.08; }
.passo .ajuda { margin: -6px 0 0; color: var(--suave); font-size: 15px; line-height: 1.45; }
.passo .destaque { margin: -4px 0 0; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--amarelo) 22%, var(--cartao)); color: var(--texto); font: 700 15px/1.4 var(--corpo); }
.passo .destaque svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
@keyframes entrar { from { opacity: 0; transform: translateY(10px); } }

/* as escolhas grandes, com ícone */
.cartoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cartao-opcao { position: relative; display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 148px; padding: 18px 12px; border: 0; border-radius: 20px; background: var(--fundo); box-shadow: inset 0 0 0 2px var(--linha); color: var(--texto); text-align: center; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; -webkit-tap-highlight-color: transparent; }
.cartao-opcao b { font: 800 18px/1.15 var(--marca); }
.cartao-opcao small { color: var(--suave); font: 600 13px/1.3 var(--corpo); }
.cartao-opcao:hover { box-shadow: inset 0 0 0 2px var(--suave); }
.cartao-opcao:active { transform: scale(0.97); }
.cartao-opcao[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--amarelo), 0 10px 26px rgb(0 0 0 / 0.14); }
.cartao-opcao[aria-pressed="true"]::after { content: ""; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--amarelo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315121b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }

.icone { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; color: #fff; flex: none; }
.icone svg { width: 32px; height: 32px; }
.icone.tiktok { background: #000; }
.icone.tiktok svg { filter: drop-shadow(-1.5px -1.2px 0 #25f4ee) drop-shadow(1.5px 1.2px 0 #fe2c55); }
.icone.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.icone.whatsapp { background: #25d366; }
.icone.gmail { background: #fff; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08); }
.icone.gmail svg { width: 34px; height: 26px; }
.respondida .icone.gmail svg, .campo-texto .icone.gmail svg { width: 22px; height: 17px; }

/* o campo que aparece embaixo das escolhas, no mesmo passo */
.revela { display: grid; gap: 10px; padding-top: 4px; animation: entrar 0.3s ease-out; }
.rotulo-campo { font: 800 16px/1.3 var(--corpo); }


/* os campos de texto */
.campo-texto { position: relative; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 14px 0 8px; border-radius: 16px; background: var(--fundo); box-shadow: inset 0 0 0 2px var(--linha); }
.campo-texto:focus-within { box-shadow: inset 0 0 0 2px var(--amarelo), 0 0 0 4px color-mix(in srgb, var(--amarelo) 30%, transparent); }
.campo-texto .icone { width: 40px; height: 40px; border-radius: 12px; }
.campo-texto .icone svg { width: 22px; height: 22px; }
.campo-texto .prefixo { font: 800 19px/1 var(--corpo); color: var(--suave); margin-right: -8px; }
.campo-texto input { flex: 1; min-width: 0; height: 56px; border: 0; background: transparent; color: var(--texto); font: 700 18px/1 var(--corpo); outline: none; }
.campo-texto.com-erro { box-shadow: inset 0 0 0 2px var(--erro); }
.fluxo textarea { width: 100%; min-height: 110px; padding: 14px; border: 0; border-radius: 16px; background: var(--fundo); box-shadow: inset 0 0 0 2px var(--linha); color: var(--texto); font: 600 17px/1.45 var(--corpo); resize: vertical; outline: none; }
.fluxo textarea:focus { box-shadow: inset 0 0 0 2px var(--amarelo), 0 0 0 4px color-mix(in srgb, var(--amarelo) 30%, transparent); }
.erro-campo { margin: -4px 0 0; color: var(--erro); font: 700 14px/1.3 var(--corpo); }
.sugestoes { display: flex; flex-wrap: wrap; gap: 8px; }
.sugestoes button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--fundo); box-shadow: inset 0 0 0 2px var(--linha); font: 700 14px/1 var(--corpo); cursor: pointer; }
.sugestoes button[aria-pressed="true"] { background: var(--amarelo); color: var(--tinta); box-shadow: none; }
.fluxo .botao.principal { width: 100%; min-height: 56px; box-shadow: none; font-size: 17px; }
.fluxo .aviso { margin: 0; color: var(--suave); font-size: 13px; line-height: 1.5; text-align: center; }
.fluxo .falhou { margin: 0; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--erro) 14%, transparent); color: var(--erro); font-weight: 700; font-size: 15px; }
.armadilha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.final { display: grid; gap: 14px; justify-items: start; padding: 26px 20px; border-radius: 24px; background: var(--cartao); box-shadow: 0 0 0 2px var(--verde), 0 24px 60px rgb(0 0 0 / 0.18); animation: entrar 0.35s ease-out; }
.final h2 { font-size: 32px; }
.final p { margin: 0; color: var(--suave); }
.final .acoes { display: flex; flex-wrap: wrap; gap: 10px; }
.final .botao.principal { box-shadow: none; }
@media (min-width: 640px) { .fluxo { padding: 28px 28px 30px; } .final { padding: 30px 28px; } }
@media (max-width: 360px) { .cartao-opcao { min-height: 128px; } .cartao-opcao b { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .passo, .respondida, .final, .revela { animation: none; } .progresso i { transition: none; } }

/* ---------- a busca pelo @ na caixa "Minhas notas" (sessão do perfil, 02/11/2026) ---------- */
.busca-perfil { display: flex; gap: 8px; margin-top: 4px; }
.campo-perfil { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; padding: 0 12px; border: 2px solid var(--linha); border-radius: 12px; }
.campo-perfil:focus-within { border-color: var(--texto); }
.campo-perfil span { color: var(--suave); font-weight: 800; }
.campo-perfil input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--texto); font: 700 16px/1 var(--corpo); padding: 12px 0; }
.botao-perfil { flex: none; min-height: 46px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--amarelo); color: var(--tinta); font: 800 16px/1 var(--corpo); cursor: pointer; }
/* a pílula principal no pé da cidade: leva para a busca pelo @ (perfil.html) */
.pilula-busca { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; max-width: 100%; padding: 0 24px; border-radius: 999px; background: var(--amarelo); color: var(--tinta); font: 800 17px/1.2 var(--corpo); text-decoration: none; box-shadow: 0 10px 30px rgb(0 0 0 / 0.35); transition: transform 0.15s; }
.pilula-busca svg { flex: none; width: 22px; height: 22px; }
.pilula-busca:hover { transform: translateY(-1px); }
.pilula-busca:active { transform: scale(0.97); }

/* os números da cidade no topo (js/prova.js): ideias, views e curtidas, ao vivo. No celular é uma barra só, baixa,
   para não empurrar o texto até o rodapé da cidade; no computador vira três cartões */
.prova { margin-top: 4px; }
.prova dl { display: grid; grid-template-columns: repeat(3, auto); gap: 0; margin: 0; padding: 8px 4px; border-radius: 16px; background: rgb(21 18 27 / 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 6px 20px rgb(0 0 0 / 0.25); }
.prova dl > div { display: grid; gap: 2px; padding: 0 12px; }
.prova dl > div + div { border-left: 1px solid rgb(255 255 255 / 0.18); }
.prova dt { font: 800 19px/1 var(--marca); color: var(--amarelo); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prova dd { margin: 0; font: 700 11px/1.2 var(--corpo); color: rgb(255 255 255 / 0.88); white-space: nowrap; }
.convite .prova p { display: flex; align-items: center; gap: 6px; margin-top: 6px; font: 700 12px/1 var(--corpo); color: #fff; text-shadow: 0 1px 6px rgb(0 0 0 / 0.7); }
.prova p i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc6b; box-shadow: 0 0 0 0 rgb(61 220 107 / 0.6); animation: ao-vivo 2s infinite; }
@keyframes ao-vivo { 70% { box-shadow: 0 0 0 7px rgb(61 220 107 / 0); } 100% { box-shadow: 0 0 0 0 rgb(61 220 107 / 0); } }
@media (prefers-reduced-motion: reduce) { .prova p i { animation: none; } }
@media (max-width: 359px) { .prova dl > div { padding: 0 8px; } .prova dt { font-size: 16px; } .prova dd { font-size: 10px; } }
/* tela baixa (celular pequeno ou deitado): só a barra, sem a linha "Ao vivo"; muito baixa, nem a barra */
@media (max-height: 640px) { .convite .prova p { display: none; } }
@media (max-height: 520px) { .prova { display: none; } }
@media (min-width: 760px) {
  .prova dl { display: flex; gap: 8px; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
  .prova dl > div { min-width: 120px; padding: 10px 14px; border-radius: 16px; background: rgb(21 18 27 / 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 6px 20px rgb(0 0 0 / 0.25); }
  .prova dl > div + div { border-left: 0; }
  .prova dt { font-size: 30px; }
  .prova dd { font-size: 12px; }
}
/* texto que só o leitor de tela lê (o título da página inicial) */
.so-leitor { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- privacidade e termos (privacidade.html, termos.html) ---------- */
.legal .coluna { max-width: 720px; }
.legal-topo { position: relative; padding-top: calc(max(12px, env(safe-area-inset-top, 0px)) + 78px); padding-bottom: 40px; background: var(--tinta) url("../img/capa.jpg") center 30% / cover no-repeat; color: #fff; isolation: isolate; }
.legal-topo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgb(18 14 26 / 0.8), rgb(18 14 26 / 0.94)); }
.legal-topo .coluna { display: grid; gap: 12px; justify-items: start; }
.legal-topo h1 { margin: 0; font: 800 clamp(32px, 7vw, 50px)/1.05 var(--marca); text-wrap: balance; }
.legal-topo p { margin: 0; color: rgb(255 255 255 / 0.75); font-size: 15px; }
.legal main { display: block; padding-block: 36px 64px; }
.texto-legal h2 { margin: 36px 0 10px; font-size: clamp(24px, 4vw, 30px); }
.texto-legal p, .texto-legal ul { margin: 0 0 12px; }
.texto-legal ul { padding-left: 22px; }
.texto-legal li { margin-bottom: 6px; }
.texto-legal li::marker { color: var(--suave); }
.texto-legal a { text-decoration-color: var(--amarelo); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.texto-legal .resumo { padding: 16px 18px; border-radius: 14px; background: var(--cartao); border-left: 5px solid var(--amarelo); font-weight: 700; }
.texto-legal .ver-tambem { margin-top: 36px; color: var(--suave); }
.dados-marca { display: grid; margin: 0 0 16px; border-radius: 14px; background: var(--cartao); overflow: hidden; }
.dados-marca div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--linha); }
.dados-marca div:first-child { border-top: 0; }
.dados-marca dt { color: var(--suave); font-weight: 700; }
.dados-marca dd { margin: 0; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
