/* fontes guardadas no próprio site (licença OFL): nada é carregado de terceiros */
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 800; font-display: swap; src: url('fontes/unbounded-800-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fontes/dm-sans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fontes/dm-sans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --fundo: #04342C;
  --fundo-2: #085041;
  --borda: #0F6E56;
  --escuro: #021f1a;
  --menta: #5DCAA5;
  --menta-clara: #9FE1CB;
  --claro: #E1F5EE;
  --fonte: 'DM Sans', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fonte-marca: 'Unbounded', var(--fonte);
  --mola: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fundo);
  color: var(--claro);
  font-family: var(--fonte);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--menta-clara); text-underline-offset: 3px; }
a:hover { color: var(--claro); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--claro); outline-offset: 3px; border-radius: 8px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.conteudo { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* topo das páginas internas */
.topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; max-width: 760px; margin: 0 auto; width: 100%; }
.marca { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--fonte-marca); font-weight: 800; font-size: 17px; letter-spacing: -0.06em; color: var(--claro); text-decoration: none; }
.marca img { width: 32px; height: 32px; }

/* botões táteis: sombra sólida embaixo, afundam ao apertar */
.botao-pequeno, .botao-secundario, .relatar > summary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 999px; background: var(--fundo-2); color: var(--claro);
  text-decoration: none; font-weight: 700; font-size: 15px; cursor: pointer;
  box-shadow: 0 4px 0 var(--escuro);
  transition: transform .18s var(--mola), box-shadow .18s var(--mola);
}
.botao-pequeno:hover, .botao-secundario:hover, .relatar > summary:hover { color: var(--claro); transform: translateY(-1px); box-shadow: 0 5px 0 var(--escuro); }
.botao-pequeno:active, .botao-secundario:active, .relatar > summary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--escuro); }

/* botão principal: tátil, com as perfurações de um fotograma (que correm ao passar o mouse) */
.botao {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 0 30px; border-radius: 16px;
  background: var(--menta); color: var(--fundo);
  font-weight: 700; font-size: 17px; text-decoration: none;
  box-shadow: 0 6px 0 var(--borda);
  transition: transform .18s var(--mola), box-shadow .18s var(--mola);
}
.botao::before, .botao::after {
  content: ""; position: absolute; left: 0; right: 0; height: 4px; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, transparent 0 7px, var(--fundo) 7px 14px);
  background-size: 28px 4px; background-repeat: repeat-x;
}
.botao::before { top: 6px; }
.botao::after { bottom: 6px; }
.botao:hover { color: var(--fundo); transform: translateY(-2px); box-shadow: 0 8px 0 var(--borda); }
.botao:hover::before, .botao:hover::after { animation: correr .6s linear infinite; }
.botao:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--borda); }
@keyframes correr { to { background-position: 28px 0; } }
.botao svg { width: 20px; height: 20px; flex: none; }

/* página inicial */
.inicio { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 20px 32px; }
.logo-grande { width: min(44vw, 176px); height: auto; margin-bottom: 28px; }
.inicio h1 { margin: 0; font-family: var(--fonte-marca); font-weight: 800; font-size: 32px; line-height: 1.1; letter-spacing: -0.06em; }
.inicio .frase { margin: 14px 0 32px; font-size: 19px; color: var(--menta-clara); max-width: 30ch; }
.inicio .botao-secundario { margin-top: 16px; }
.miudo { margin-top: 18px; font-size: 14px; color: var(--menta-clara); }
.miudo a { white-space: nowrap; }

/* o logo gira de quadro em quadro, como um zootrópio */
.quadros { transform-origin: 54px 54px; animation: girar 2.4s steps(8) infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* páginas de texto */
.texto { flex: 1; padding: 24px 20px 56px; }
.texto h1 { font-size: clamp(30px, 6vw, 40px); line-height: 1.15; letter-spacing: -0.01em; margin: 16px 0 8px; }
.texto .atualizado { color: var(--menta-clara); font-size: 14px; margin: 0 0 28px; }
.texto h2 { font-size: 22px; margin: 40px 0 8px; }
.texto p, .texto li { color: var(--claro); }
.texto ul, .texto ol { padding-left: 22px; }
.texto li { margin-bottom: 8px; }
.resumo { background: var(--fundo-2); border: 1px solid var(--borda); border-radius: 16px; padding: 16px 20px; margin: 0 0 8px; }
.resumo p { margin: 0; }
.aviso { background: var(--fundo-2); border-left: 3px solid var(--menta); border-radius: 0 12px 12px 0; padding: 12px 16px; color: var(--menta-clara); }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 14px; background: var(--fundo-2); border: 1px solid var(--borda); border-radius: 6px; padding: 2px 6px; overflow-wrap: anywhere; }

/* impressões digitais */
.impressoes { margin: 12px 0 0; }
.impressoes dl { margin: 0 0 16px; }
.impressoes dt { font-size: 14px; color: var(--menta-clara); margin-top: 12px; }
.impressoes dt:first-child { margin-top: 0; }
.impressoes dd { margin: 4px 0 0; }
.impressoes code { display: block; padding: 8px 10px; line-height: 1.5; }
.texto .botao + .legenda { margin-top: 10px; }

/* verificação de antivírus */
.verificacao { margin: 16px 0 12px; }
.verificacao .botao { border: 0; cursor: pointer; font-family: inherit; }
.verificacao .botao.girando svg { animation: girar 0.9s linear infinite; }
.verificacao .botao[aria-busy="true"] { cursor: progress; }
.resultado { margin-top: 16px; border-radius: 16px; padding: 16px 18px; border: 1px solid var(--borda); background: var(--fundo-2); }
.resultado p { margin: 0; color: var(--menta-clara); }
.resultado .resultado-titulo { color: var(--claro); font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.resultado.seguro { border-color: var(--menta); }
.resultado.seguro .resultado-titulo::before { content: "✓ "; color: var(--menta); }
.resultado.atencao { border-color: #FAC775; }
.resultado.atencao .resultado-titulo::before { content: "! "; color: #FAC775; }
.resultado.erro { border-color: #F7C1C1; }

/* passos com ilustração */
.passos-visuais { list-style: none; padding: 0; margin: 20px 0 8px; display: grid; gap: 24px 16px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.texto .passos-visuais li { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.passos-visuais img { width: 100%; max-width: 180px; height: auto; margin-bottom: 8px; }
.passos-visuais span { color: var(--menta-clara); font-size: 15px; line-height: 1.5; }
.legenda { color: var(--menta-clara); font-size: 14px; margin: 0 0 16px; }

/* perguntas */
details { background: var(--fundo-2); border: 1px solid var(--borda); border-radius: 16px; padding: 0 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; min-height: 52px; padding: 13px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--menta); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 16px; color: var(--menta-clara); }

/* relatar um problema */
.relatar { padding: 0; border: 0; background: none; }
.relatar > summary { min-height: 52px; padding: 0 24px; }
.relatar > summary::after, .relatar[open] > summary::after { content: none; }
.relatar[open] > summary { margin-bottom: 20px; }
#relato { background: var(--fundo-2); border: 1px solid var(--borda); border-radius: 16px; padding: 20px; }
.campo { margin-bottom: 18px; }
.campo label, .campo .rotulo { display: block; font-weight: 600; margin-bottom: 6px; }
.opcional { font-weight: 400; color: var(--menta-clara); font-size: 14px; }
.campo select, .campo input[type="text"], .campo input[type="email"], .campo textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--borda); background: var(--fundo); color: var(--claro);
  font: inherit; font-size: 16px;
}
.campo textarea { resize: vertical; min-height: 120px; }
.campo select:focus-visible, .campo input:focus-visible, .campo textarea:focus-visible, .botao-arquivo:focus-within, .relatar > summary:focus-visible, button:focus-visible {
  outline: 3px solid var(--claro); outline-offset: 2px;
}
::placeholder { color: var(--menta-clara); opacity: .6; }
.ajuda { font-size: 14px; color: var(--menta-clara); margin: 6px 0 0; }
#contador { float: right; }
.erro-campo { font-size: 14px; color: #F7C1C1; margin: 6px 0 0; }
.erro-campo:empty { display: none; }
/* .campo label deixaria o botão como bloco, com o texto grudado no alto; aqui ele volta a centralizar */
.campo .botao-arquivo {
  display: flex; align-items: center; min-height: 52px; padding: 0 20px; border-radius: 999px; margin-bottom: 0;
  border: 1.5px dashed var(--menta); color: var(--menta); font-weight: 600; cursor: pointer;
}
.escondido-acessivel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.texto .miniaturas { list-style: none; padding: 0; margin: 12px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.texto .miniaturas li { position: relative; margin: 0; }
.miniaturas img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--borda); display: block; }
.remover {
  position: absolute; top: -10px; right: -10px; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: var(--claro); color: var(--fundo); font-size: 20px; line-height: 1; cursor: pointer;
}
.remover::before { content: ""; position: absolute; inset: -6px; }
.armadilha { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 8px 0 12px; min-height: 65px; }
#relato .botao { border: 0; cursor: pointer; font-family: inherit; margin-top: 8px; }
#relato[aria-busy="true"] .botao { opacity: .7; cursor: progress; }
.status { margin: 12px 0 0; color: #F7C1C1; }
.status:empty { display: none; }
.enviado { background: var(--fundo-2); border: 1px solid var(--menta); border-radius: 16px; padding: 20px; }
.enviado p { margin: 0 0 6px; }

/* rodapé */
.rodape { border-top: 1px solid var(--fundo-2); padding: 20px; }
.rodape nav { max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.rodape a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--menta-clara); text-decoration: none; font-size: 15px; }
.rodape a:hover { color: var(--claro); text-decoration: underline; }
.rodape a[aria-current="page"] { color: var(--claro); font-weight: 600; }
.rodape .autoria { width: 100%; text-align: center; color: var(--menta-clara); font-size: 13px; margin: 6px 0 0; }
/* link do nome: sem sublinhado, destacado pela cor e pelo peso */
.rodape .autoria a { display: inline; min-height: 0; padding: 0; font-size: inherit; color: var(--claro); font-weight: 600; text-decoration: none; }
.rodape .autoria a:hover { color: var(--menta); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
