/* Presell "Verificação" · CSS único, sem dependência externa */

:root {
  --azul: #1f5fe0;
  --verde: #12a150;
  --verde-escuro: #0d8442;
  --tinta: #0f172a;
  --tinta-2: #4d5c73;
  --tinta-3: #8494ab;
  --linha: #e4e9f2;
  --fundo: #f4f6fb;
  --card: #ffffff;
  --raio: 18px;
  --sombra: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fundo);
  color: var(--tinta);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--azul); }

/* ---------- topo ---------- */

.topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid var(--linha);
}

.marca {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
  color: var(--tinta);
}

.selo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--verde-escuro);
  background: #e9f7ef;
  border: 1px solid #c9ecd8;
  border-radius: 999px;
  padding: 4px 10px 4px 8px;
  white-space: nowrap;
}

.selo svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.selo.inseguro {
  color: #8a6100;
  background: #fdf5e3;
  border-color: #f0e0b6;
}

/* ---------- palco / cartão ---------- */

.palco {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px 40px;
}

.cartao {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  padding: 34px 26px 26px;
  text-align: center;
}

.escudo {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
}

.escudo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.escudo-corpo {
  fill: #eaf1fe;
  stroke: var(--azul);
  stroke-width: 2;
  stroke-linejoin: round;
}

.escudo-check {
  fill: none;
  stroke: var(--verde);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.js .escudo-check {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  transition: stroke-dashoffset .45s ease .1s;
}

.js .concluido .escudo-check {
  stroke-dashoffset: 0;
}

h1 {
  margin: 0 0 6px;
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: -.02em;
  font-weight: 700;
}

.sub {
  margin: 0 0 22px;
  color: var(--tinta-2);
  font-size: 15.5px;
}

/* ---------- checagens ---------- */

.checks {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  text-align: left;
  border: 1px solid var(--linha);
  border-radius: 12px;
  background: #fbfcfe;
  overflow: hidden;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  font-size: 14.5px;
  color: var(--tinta);
  border-bottom: 1px solid var(--linha);
}

.checks li:last-child { border-bottom: 0; }

.ico {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--verde);
}

/* check desenhado em CSS, sem imagem */
.ico::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

/* estado inicial só quando o JS está ativo */
.js .checks li { color: var(--tinta-3); }
.js .checks li .ico { background: transparent; border: 2px solid #d7dfec; }
.js .checks li .ico::after { opacity: 0; }

.js .checks li.rodando .ico {
  border-color: #d7dfec;
  border-top-color: var(--azul);
  animation: girar .7s linear infinite;
}

.js .checks li.ok { color: var(--tinta); }
.js .checks li.ok .ico { background: var(--verde); border-color: var(--verde); animation: none; }
.js .checks li.ok .ico::after { opacity: 1; }

@keyframes girar { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .js .checks li.rodando .ico { animation: none; }
  .js .escudo-check { transition: none; }
}

/* ---------- barra de progresso (só com JS) ---------- */

.progresso { display: none; }

.js .progresso {
  display: block;
  margin: 0 0 20px;
}

.progresso-topo {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--tinta-3);
  transition: color .3s ease;
}

.barra {
  height: 5px;
  border-radius: 999px;
  background: #e9edf5;
  overflow: hidden;
}

.barra i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--azul), var(--verde));
}

.progresso.completo .progresso-topo { color: var(--verde-escuro); }

/* ---------- botão ---------- */

.botao {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 17px 20px;
  border-radius: 12px;
  background: var(--verde);
  color: #fff;
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(18, 161, 80, .28);
  transition: background .15s ease, transform .12s ease, opacity .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.botao:hover { background: var(--verde-escuro); }
.botao:active { transform: translateY(1px); }
.botao:focus-visible { outline: 3px solid #a7e0c0; outline-offset: 2px; }

.botao-seta {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.botao.esperando {
  background: #cbd5e1;
  color: #64748b;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

.botao.esperando .botao-seta { opacity: 0; }

.aviso {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--tinta-3);
}

.aviso a { color: var(--tinta-2); }

/* ---------- rodapé ---------- */

.rodape {
  padding: 20px 18px 30px;
  text-align: center;
  color: var(--tinta-3);
  font-size: 12px;
  line-height: 1.6;
}

.rodape-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 13px;
}

.rodape-links a {
  color: var(--tinta-2);
  text-decoration: none;
}

.rodape-links a:hover { text-decoration: underline; }

.rodape-nota,
.rodape-copy {
  margin: 0 auto;
  max-width: 620px;
}

.rodape-copy { margin-top: 8px; }

/* ---------- banner de cookies (opcional) ---------- */

.cookies {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--linha);
  border-radius: 12px;
  box-shadow: var(--sombra);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--tinta-2);
}

.cookies button {
  border: 0;
  border-radius: 8px;
  background: var(--tinta);
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
}

/* ---------- páginas de texto (termos / privacidade) ---------- */

.documento {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 30px 20px 10px;
}

.documento h1 {
  font-size: 30px;
  margin-bottom: 6px;
  text-align: left;
}

.documento h2 {
  font-size: 18px;
  margin: 30px 0 8px;
  letter-spacing: -.01em;
}

.documento p,
.documento li {
  color: var(--tinta-2);
  font-size: 15.5px;
}

.documento ul { padding-left: 20px; }
.documento li { margin-bottom: 6px; }

.documento .vigencia {
  color: var(--tinta-3);
  font-size: 13.5px;
  margin: 0 0 22px;
}

.identificacao {
  background: #fff;
  border: 1px solid var(--linha);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 26px;
  font-size: 14.5px;
  color: var(--tinta-2);
}

.identificacao p { margin: 0 0 4px; font-size: 14.5px; }
.identificacao p:last-child { margin-bottom: 0; }

.voltar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 14px;
  text-decoration: none;
  color: var(--tinta-2);
}

.voltar:hover { text-decoration: underline; }

/* ---------- animações (todas só com JS ativo) ---------- */

/* o cartão entra */
.js .cartao {
  animation: subir .5s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes subir {
  from { opacity: 0; transform: translateY(10px) scale(.99); }
  to   { opacity: 1; transform: none; }
}

/* cada linha da checagem entra escalonada */
.js .checks li {
  opacity: 0;
  animation: entrarLinha .4s ease forwards;
}

.js .checks li:nth-child(1) { animation-delay: .12s; }
.js .checks li:nth-child(2) { animation-delay: .19s; }
.js .checks li:nth-child(3) { animation-delay: .26s; }

@keyframes entrarLinha {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: none; }
}

/* o ícone dá um pop quando a checagem passa */
.js .checks li.ok .ico {
  animation: popIcone .34s cubic-bezier(.2, .9, .3, 1.5);
}

@keyframes popIcone {
  0%   { transform: scale(.55); }
  60%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* anel que abre no escudo quando tudo conclui */
.escudo { position: relative; }

.js .concluido .escudo::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2px solid var(--verde);
  opacity: 0;
  animation: anel .8s ease-out .15s;
}

@keyframes anel {
  0%   { transform: scale(.55); opacity: .65; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* o botão nasce com um pop e um brilho que atravessa uma vez */
.botao.pronto {
  animation: popBotao .4s cubic-bezier(.2, .9, .3, 1.4);
}

@keyframes popBotao {
  0%   { transform: scale(.965); }
  55%  { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.botao.pronto::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 42%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-18deg);
  animation: brilho .95s ease .12s 1;
}

@keyframes brilho {
  to { left: 130%; }
}

/* nada disso roda para quem pediu menos movimento */
@media (prefers-reduced-motion: reduce) {
  .js .cartao,
  .js .checks li,
  .js .checks li.ok .ico,
  .js .concluido .escudo::after,
  .botao.pronto,
  .botao.pronto::after {
    animation: none !important;
  }
  .js .checks li { opacity: 1; }
}

@media (max-width: 420px) {
  .cartao { padding: 28px 18px 20px; }
  h1 { font-size: 24px; }
  .selo { font-size: 11.5px; }
}
