/* ==========================================================
   APURAÇÃO — página pública de documentos
   CSS puro, sem dependências externas.
   ========================================================== */

:root {
  --laranja: #ff6a0d;
  --laranja-2: #ff7f24;
  --laranja-esc: #ec5c00;
  --tinta: #111111;
  --fundo: #f7f5f3;
  --pessego: #fdeee3;
  --branco: #ffffff;

  /* espaços principais (ajuste aqui) */
  --gap-titulo-cards: clamp(40px, 7.5vh, 88px);
  --gap-cards-botoes: clamp(40px, 7.5vh, 88px);
  --icone: 56%;              /* tamanho do desenho dentro do card grande */
  --ciclo: 9s;               /* duração de um ciclo de animação */
  --suave: cubic-bezier(.45, 0, .15, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--fundo);
  color: var(--tinta);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;

  /* dificulta copiar / menu de contexto no toque longo */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
svg { display: block; }
img, svg, a { -webkit-user-drag: none; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- fundo decorativo ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg i { position: absolute; border-radius: 50%; }
.bg i:nth-child(1) { width: 46vmax; height: 46vmax; left: -24vmax; top: -22vmax;
  background: radial-gradient(circle at 60% 60%, rgba(255,150,70,.30), rgba(255,170,100,.10) 70%); }
.bg i:nth-child(2) { width: 40vmax; height: 40vmax; left: -27vmax; top: -8vmax;
  background: rgba(255,160,90,.16); }
.bg i:nth-child(3) { width: 44vmax; height: 44vmax; right: -24vmax; bottom: -24vmax;
  background: radial-gradient(circle at 40% 40%, rgba(255,150,70,.26), rgba(255,170,100,.08) 70%); }
.bg i:nth-child(4) { width: 46vmax; height: 46vmax; right: -16vmax; top: -30vmax;
  background: rgba(120,110,100,.05); }

/* ---------- estrutura ---------- */
.page {
  width: min(1340px, 100%);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(24px, 5vh, 56px) clamp(16px, 4vw, 40px);
  padding-bottom: calc(clamp(24px, 5vh, 56px) + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- cabeçalho ---------- */
.head { text-align: center; }

.head__mark {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(18px, 5vw, 64px);
}
.head__icon { width: clamp(52px, 7vw, 76px); height: auto; flex: none; }
.head__line { height: 3px; width: clamp(60px, 16vw, 170px); border-radius: 3px; }
.head__line--l { background: linear-gradient(90deg, rgba(255,106,13,0), var(--laranja)); }
.head__line--r { background: linear-gradient(90deg, var(--laranja), rgba(255,106,13,0)); }

.head__title {
  margin: clamp(4px, 1vh, 10px) 0 0;
  font-size: clamp(2.9rem, 10.5vw, 6.6rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: .035em;
  -webkit-text-stroke: .02em var(--tinta);
}
.head__swoosh {
  width: clamp(150px, 26vw, 290px); height: auto;
  margin: clamp(4px, 1vh, 10px) auto 0;
}
.head__swoosh path {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: traco 1.1s var(--suave) .55s forwards;
}

/* ---------- cards grandes ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 30px);
  margin-top: var(--gap-titulo-cards);
}

.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 8px;
  background: var(--branco);
  border-radius: 36px;
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 14px 34px -14px rgba(120,70,30,.28), 0 2px 6px rgba(120,70,30,.06);
  transition: transform .45s var(--suave), box-shadow .45s var(--suave);
  will-change: transform;
}
.card__art {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 16 / 10.6;
  overflow: hidden;
  border-radius: 28px 28px 20px 20px;
}
.card__art::before {            /* mancha pêssego atrás do desenho */
  content: "";
  position: absolute; left: 50%; bottom: -58%;
  width: 84%; aspect-ratio: 1; border-radius: 50%;
  transform: translateX(-50%);
  background: var(--pessego);
  transition: transform .6s var(--suave);
}
.ico { position: relative; width: var(--icone); height: auto; overflow: visible; }

.card__label {
  display: grid; place-items: center;
  min-height: clamp(62px, 8.2vw, 100px);
  padding: 8px 12px;
  border-radius: 28px;
  color: #fff;
  font-size: clamp(1.2rem, 3vw, 2.9rem);
  white-space: nowrap;
  font-weight: 900;
  letter-spacing: .005em;
  line-height: 1.05;
  text-align: center;
  background: linear-gradient(180deg, var(--laranja-2), var(--laranja) 55%, var(--laranja-esc));
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 18px -8px rgba(236,92,0,.7);
}

@media (hover: hover) {
  .card:hover { transform: translateY(-8px);
    box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 28px 46px -18px rgba(120,70,30,.36), 0 4px 10px rgba(120,70,30,.07); }
  .card:hover .card__art::before { transform: translateX(-50%) scale(1.08); }
  .pill:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -16px rgba(120,70,30,.4); }
}
.card:active, .pill:active { transform: scale(.98); }

.card:focus-visible, .pill:focus-visible {
  outline: 4px solid var(--tinta); outline-offset: 4px;
}

/* ---------- botões menores ---------- */
.links {
  display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center;
  gap: clamp(12px, 2.2vw, 28px);
  margin-top: var(--gap-cards-botoes);
}
.pill {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(10px, 1.4vw, 18px);
  min-height: clamp(60px, 7.2vw, 88px);
  min-width: min(100%, 250px);
  padding: 10px clamp(18px, 2.6vw, 34px);
  border-radius: 26px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 24px -14px rgba(120,70,30,.3), 0 1px 4px rgba(120,70,30,.05);
  font-size: clamp(1.1rem, 1.9vw, 1.6rem);
  font-weight: 800;
  transition: transform .4s var(--suave), box-shadow .4s var(--suave);
}
.pill__ico { width: clamp(40px, 4.4vw, 58px); height: auto; flex: none; }
.pill__sep { width: 2px; align-self: stretch; margin: 6px 0; border-radius: 2px; background: var(--laranja); }
.pill--brand {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  background: linear-gradient(180deg, var(--laranja-2), var(--laranja) 55%, var(--laranja-esc));
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 12px 22px -12px rgba(236,92,0,.75);
}
.pill--brand .pill__txt { font-weight: 900; letter-spacing: .01em; }

/* ==========================================================
   ANIMAÇÕES DOS DESENHOS
   Movimento contínuo e lento; nada pisca.
   ========================================================== */

.ico .shadow { fill: rgba(150,80,20,.10); }

.ico * { transform-box: fill-box; }

/* traços que "se desenham" */
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; }

/* faíscas: respiram devagar */
.sparks path { fill: none; stroke: var(--laranja-2); stroke-width: 6.5; stroke-linecap: round; }
.sparks { transform-origin: 0% 100%; animation: respira 4.5s ease-in-out infinite alternate; }

/* ----- Zerésima ----- */
.z-paper  { animation: z-paper  var(--ciclo) var(--suave) infinite; }
.z-check  { animation: z-check  var(--ciclo) var(--suave) infinite; }
.z-shackle{ animation: z-trava  var(--ciclo) var(--suave) infinite; }
.z-lock   { transform-origin: 50% 60%; animation: z-lock var(--ciclo) var(--suave) infinite; }

@keyframes z-paper {
  0%   { transform: translateY(-36px); opacity: 0; }
  9%   { transform: translateY(-24px); opacity: 1; }
  30%  { transform: translateY(0); }
  33%  { transform: translateY(1.5px); }
  36%, 70% { transform: translateY(0); opacity: 1; }
  90%, 100% { transform: translateY(74px); opacity: 1; }
}
@keyframes z-check {
  0%, 22%   { stroke-dashoffset: 1; }
  34%, 100% { stroke-dashoffset: 0; }
}
@keyframes z-trava {          /* argola abre no início e fecha quando a cédula entra */
  0%, 4%   { transform: translateY(0); }
  12%, 86% { transform: translateY(-8px); }
  92%      { transform: translateY(1px); }
  96%, 100%{ transform: translateY(0); }
}
@keyframes z-lock {
  0%, 90%  { transform: scale(1); }
  94%      { transform: scale(1.07); }
  100%     { transform: scale(1); }
}

/* ----- Apuração ----- */
.bar { transform-origin: 50% 100%; animation: barra var(--ciclo) var(--suave) infinite; }
.bar--2 { animation-delay: .18s; }
.bar--3 { animation-delay: .36s; }
.bar--4 { animation-delay: .54s; }
.a-badge { transform-origin: 50% 50%; animation: a-badge var(--ciclo) var(--suave) infinite; }
.a-check { animation: a-check var(--ciclo) var(--suave) infinite; }

@keyframes barra {
  0%, 4%   { transform: scaleY(.14); }
  26%      { transform: scaleY(1.05); }
  31%, 82% { transform: scaleY(1); }
  96%, 100%{ transform: scaleY(.14); }
}
@keyframes a-badge {
  0%, 34%  { transform: scale(.94); }
  42%      { transform: scale(1.05); }
  48%, 86% { transform: scale(1); }
  96%, 100%{ transform: scale(.94); }
}
@keyframes a-check {
  0%, 34%  { stroke-dashoffset: 1; opacity: 0; }
  36%      { opacity: 1; }
  47%, 86% { stroke-dashoffset: 0; opacity: 1; }
  95%      { stroke-dashoffset: 1; opacity: 1; }
  97%, 100%{ stroke-dashoffset: 1; opacity: 0; }
}

/* ----- Lacre Digital ----- */
.l-hash .draw { animation: l-hash var(--ciclo) var(--suave) infinite; }
.l-hash .h2 { animation-delay: .22s; }
.l-hash .h3 { animation-delay: .44s; }
.l-hash .h4 { animation-delay: .66s; }
.l-ribbons { transform-origin: 50% 0%; animation: balanca 5.5s ease-in-out infinite alternate; }
.l-medal   { transform-origin: 60% 40%; animation: l-medal var(--ciclo) var(--suave) infinite; }
.l-check   { animation: l-check var(--ciclo) var(--suave) infinite; }

@keyframes l-hash {
  0%, 3%   { stroke-dashoffset: 1; opacity: 0; }
  5%       { opacity: 1; }
  17%, 84% { stroke-dashoffset: 0; opacity: 1; }
  94%      { stroke-dashoffset: 1; opacity: 1; }
  96%, 100%{ stroke-dashoffset: 1; opacity: 0; }
}
@keyframes l-medal {
  0%, 30%  { transform: scale(.95) rotate(-3deg); }
  40%      { transform: scale(1.05) rotate(1deg); }
  46%, 88% { transform: scale(1) rotate(0deg); }
  98%, 100%{ transform: scale(.95) rotate(-3deg); }
}
@keyframes l-check {
  0%, 36%  { stroke-dashoffset: 1; opacity: 0; }
  38%      { opacity: 1; }
  48%, 88% { stroke-dashoffset: 0; opacity: 1; }
  95%      { stroke-dashoffset: 1; opacity: 1; }
  97%, 100%{ stroke-dashoffset: 1; opacity: 0; }
}

@keyframes respira { from { transform: scale(.84); opacity: .72; } to { transform: scale(1); opacity: 1; } }
@keyframes balanca { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes traco   { to { stroke-dashoffset: 0; } }

/* ---------- entrada da página ---------- */
.reveal { opacity: 0; animation: sobe .8s var(--suave) forwards; }
.cards .reveal:nth-child(1) { animation-delay: .15s; }
.cards .reveal:nth-child(2) { animation-delay: .27s; }
.cards .reveal:nth-child(3) { animation-delay: .39s; }
.links.reveal { animation-delay: .55s; }
@keyframes sobe { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ==========================================================
   CELULAR
   Cards viram faixas largas: tudo cabe na tela, alvo de toque grande.
   ========================================================== */
@media (max-width: 720px) {
  :root { --gap-titulo-cards: clamp(30px, 5.5vh, 52px); --gap-cards-botoes: clamp(30px, 5.5vh, 52px); }

  .page { justify-content: flex-start; }
  .cards { grid-template-columns: 1fr; gap: 14px; }

  .card { flex-direction: row; align-items: stretch; padding: 7px; border-radius: 28px; }
  .card__art { flex: none; width: clamp(96px, 30vw, 132px); aspect-ratio: 1; border-radius: 22px; }
  .card__art::before { bottom: -38%; width: 100%; }
  .ico { width: 76%; }
  .card__label { flex: 1; min-height: 0; margin-left: 7px; border-radius: 22px; font-size: clamp(1.45rem, 6.6vw, 2.1rem); }

  .links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .pill { min-width: 0; min-height: 64px; padding: 8px 10px; gap: 8px; border-radius: 22px; font-size: clamp(.92rem, 4vw, 1.15rem); }
  .pill__ico { width: 34px; }
  .pill--brand { grid-column: 1 / -1; order: -1; font-size: 1.7rem; }
}

/* telas baixas em paisagem (celular deitado) */
@media (min-width: 721px) and (max-height: 620px) {
  :root { --gap-titulo-cards: 28px; --gap-cards-botoes: 28px; --icone: 40%; }
  .page { justify-content: flex-start; }
  .card__art { aspect-ratio: 16 / 7.5; }
}

/* quem pediu menos movimento no sistema: desenhos parados e completos */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; }
  .draw, .head__swoosh path { stroke-dashoffset: 0; }
}

@media print { .bg { display: none; } }
