/* PopFrete — site. Cores e medidas espelham popfrete-design/design-system/tokens.json. */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/PlusJakartaSans.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Bangers';
  src: url('../fonts/Bangers-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  /* marca */
  --azul-marinho: #033566;
  --azul-pop: #5caef7;
  --laranja-estouro: #fb5025;
  --azul-cabine: #3b97e8;
  --azul-raio: #5e7b99;
  --amarelo-faisca: #f5c531;
  --contorno: #000000;

  /* tema claro */
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #edf1f5;
  --line: #d7dee6;
  --ink: #111827;
  --ink-muted: #4b5563;
  --ink-faint: #6b7280;
  --marca: #033566;
  --on-marca: #ffffff;
  --marca-soft: #e6eef7;
  --acao: #fb5025;
  --on-acao: #111827;
  --acao-press: #e2441c;
  --acao-soft: #ffe5dc;
  --acao-ink: #b3330b;
  --destaque: #2479c9;
  --sucesso: #1d7a4c;
  --foco: #2479c9;
  --sidebar-ink-muted: #b9cce2;
  --shadow-1: 0 1px 2px rgba(17, 24, 39, 0.08), 0 1px 3px rgba(17, 24, 39, 0.06);
  --shadow-2: 0 4px 12px rgba(17, 24, 39, 0.12);
  --comic-shadow: 4px 4px 0 var(--contorno);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --easing: cubic-bezier(0.2, 0, 0, 1);
  --motion-fast: 120ms;
  --motion-base: 200ms;

  --font-titulo: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-corpo: 'Inter', system-ui, sans-serif;
  --font-marca: 'Bangers', 'Plus Jakarta Sans', system-ui, sans-serif;

  --gutter: 16px;
  --max: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121315;
    --surface: #1b1d20;
    --surface-2: #25282c;
    --line: #34383d;
    --ink: #f3f6f9;
    --ink-muted: #b4b8be;
    --ink-faint: #8b9096;
    --marca: #5caef7;
    --on-marca: #06213d;
    --marca-soft: #1a2b3b;
    --acao-press: #ff6a43;
    --acao-soft: #3a2017;
    --acao-ink: #ff8a66;
    --destaque: #5caef7;
    --sucesso: #4cc38a;
    --foco: #5caef7;
    --shadow-1: none;
    --shadow-2: none;
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-corpo);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--destaque);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-titulo);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 5.6vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  font-weight: 800;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  margin: 0 0 16px;
}

:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}
.skip:focus {
  left: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }
}

/* ---------- Cabeçalho ---------- */

.topo {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--azul-marinho);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topo .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-marca);
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.marca img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.marca .pop {
  color: var(--azul-pop);
}

.menu-botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.menu-botao svg {
  width: 26px;
  height: 26px;
}

.nav {
  display: none;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.nav a:not(.botao):hover {
  color: var(--azul-pop);
}

.topo.aberto .nav {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--azul-marinho);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px var(--gutter) 24px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.topo.aberto .nav li a:not(.botao) {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topo.aberto .nav li:last-child {
  margin-top: 16px;
}

@media (min-width: 920px) {
  .menu-botao {
    display: none;
  }
  .nav,
  .topo.aberto .nav {
    display: block;
    position: static;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .topo.aberto .nav li a:not(.botao) {
    display: inline;
    min-height: 0;
    border: 0;
  }
  .topo.aberto .nav li:last-child {
    margin-top: 0;
  }
}

/* ---------- Botões ---------- */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  border: 3px solid var(--contorno);
  background: var(--acao);
  color: var(--on-acao);
  font-family: var(--font-titulo);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: var(--comic-shadow);
  transition:
    transform var(--motion-fast) var(--easing),
    box-shadow var(--motion-fast) var(--easing),
    background var(--motion-fast) var(--easing);
  cursor: pointer;
}

.botao:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--contorno);
}

.botao:active {
  background: var(--acao-press);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--contorno);
}

.botao.pequeno {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.95rem;
}

.nav .botao {
  color: var(--on-acao);
}

.botao.secundario {
  background: #fff;
  color: var(--azul-marinho);
}

.loja {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 18px 8px 14px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  text-decoration: none;
  line-height: 1.15;
}

.loja svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.loja small {
  display: block;
  font-size: 0.72rem;
  color: var(--sidebar-ink-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.loja strong {
  font-family: var(--font-titulo);
  font-size: 1.05rem;
}

.lojas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--azul-marinho);
  color: #fff;
  isolation: isolate;
}

/* raios atrás do estouro, como no logo */
.hero::before {
  content: '';
  position: absolute;
  inset: -40%;
  z-index: -2;
  background: repeating-conic-gradient(
    from 0deg at 72% 45%,
    rgba(94, 123, 153, 0.32) 0deg 7deg,
    transparent 7deg 18deg
  );
}

/* retícula de quadrinho */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1.4px, transparent 1.6px);
  background-size: 14px 14px;
  mask-image: linear-gradient(to bottom, transparent, #000 40%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%, #000 70%, transparent);
}

.hero .wrap {
  display: grid;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 64px;
  align-items: center;
}

.hero-logo {
  width: min(78vw, 360px);
  justify-self: center;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
  animation: pop-in 700ms var(--easing) both;
}

.selo {
  display: inline-block;
  font-family: var(--font-marca);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  background: var(--amarelo-faisca);
  color: var(--contorno);
  padding: 4px 14px 2px;
  border: 3px solid var(--contorno);
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--contorno);
  transform: rotate(-3deg);
  margin-bottom: 18px;
}

.hero h1 .destaque {
  color: var(--acao);
}

.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #dce8f5;
  max-width: 34em;
  margin-bottom: 28px;
}

.hero .acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.hero .nota {
  font-size: 0.9rem;
  color: var(--sidebar-ink-muted);
  margin: 12px 0 0;
}

@media (min-width: 920px) {
  .hero .wrap {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    padding-top: 72px;
    padding-bottom: 104px;
  }
  .hero-logo {
    order: 2;
    width: 100%;
    max-width: 500px;
  }
}

@keyframes pop-in {
  0% {
    opacity: 0;
    transform: scale(0.6) rotate(-6deg);
  }
  70% {
    opacity: 1;
    transform: scale(1.05) rotate(1deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

/* ---------- Faixa de garantias ---------- */

.garantias {
  position: relative;
  margin-top: -40px;
  z-index: 2;
}

.garantias ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.garantias li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-2);
}

.garantias strong {
  display: block;
  font-family: var(--font-titulo);
  font-size: 1.05rem;
}

.garantias span {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.icone {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--acao-soft);
  color: var(--acao-ink);
}

.icone svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 640px) {
  .garantias ul {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1040px) {
  .garantias ul {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Seções ---------- */

.secao {
  padding: 72px 0;
}

@media (min-width: 920px) {
  .secao {
    padding: 104px 0;
  }
}

.secao .rotulo {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acao-ink);
  margin-bottom: 10px;
}

.secao .intro {
  max-width: 40em;
  color: var(--ink-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* Como funciona */

.passos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  counter-reset: passo;
}

.passos li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 22px 22px;
  box-shadow: var(--shadow-1);
}

.passos li::before {
  counter-increment: passo;
  content: counter(passo);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  font-family: var(--font-marca);
  font-size: 2rem;
  color: var(--contorno);
  background: var(--acao);
  border: 3px solid var(--contorno);
  box-shadow: 3px 3px 0 var(--contorno);
  clip-path: polygon(
    50% 0%,
    61% 18%,
    82% 8%,
    80% 31%,
    100% 38%,
    85% 55%,
    98% 75%,
    75% 78%,
    70% 100%,
    50% 86%,
    30% 100%,
    25% 78%,
    2% 75%,
    15% 55%,
    0% 38%,
    20% 31%,
    18% 8%,
    39% 18%
  );
  padding-top: 4px;
}

.passos p {
  color: var(--ink-muted);
  margin: 0;
}

@media (min-width: 720px) {
  .passos {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1040px) {
  .passos {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Veículos */

.secao.veiculos {
  background: var(--surface-2);
}

.lista-veiculos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.veiculo {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}

.veiculo h3 {
  margin: 0;
}

.veiculo .peso {
  font-family: var(--font-titulo);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--acao-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.veiculo p {
  grid-column: 1 / -1;
  color: var(--ink-muted);
  margin: 2px 0 12px;
}

.carga {
  grid-column: 1 / -1;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  overflow: hidden;
}

.carga span {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--azul-cabine), var(--acao));
}

.veiculos .rodape-lista {
  margin-top: 20px;
  color: var(--ink-faint);
  font-size: 0.9rem;
}

@media (min-width: 720px) {
  .lista-veiculos {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1040px) {
  .lista-veiculos {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Para quem */

.usos {
  display: grid;
  gap: 20px;
}

.uso {
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  border: 3px solid var(--contorno);
  box-shadow: 6px 6px 0 var(--contorno);
  color: var(--ink);
}

.uso:nth-child(1) {
  background: var(--acao-soft);
}
.uso:nth-child(2) {
  background: var(--marca-soft);
}
.uso:nth-child(3) {
  background: var(--surface);
}

.uso .grito {
  font-family: var(--font-marca);
  font-size: 2rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--acao-ink);
  margin-bottom: 10px;
  display: block;
}

.uso p {
  color: var(--ink-muted);
  margin: 0;
}

@media (min-width: 920px) {
  .usos {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

/* Motoristas */

.motoristas {
  position: relative;
  overflow: hidden;
  background: var(--azul-marinho);
  color: #fff;
  isolation: isolate;
}

.motoristas::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1.4px, transparent 1.6px);
  background-size: 14px 14px;
}

.motoristas .rotulo {
  color: var(--amarelo-faisca);
}

.motoristas .intro {
  color: #dce8f5;
}

.motoristas .grade {
  display: grid;
  gap: 40px;
  align-items: center;
}

.beneficios {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 18px;
}

.beneficios li {
  display: flex;
  gap: 14px;
}

.beneficios .icone {
  background: rgba(251, 80, 37, 0.18);
  color: #ff8a66;
}

.beneficios strong {
  display: block;
  color: #fff;
  font-family: var(--font-titulo);
  font-size: 1.08rem;
}

.beneficios span {
  color: var(--sidebar-ink-muted);
}

.caminhao-wrap {
  position: relative;
  justify-self: center;
  width: min(100%, 520px);
}

.caminhao-wrap::before {
  content: '';
  position: absolute;
  inset: -14% -10% -10%;
  z-index: -1;
  background: var(--acao);
  border: 4px solid var(--contorno);
  clip-path: polygon(
    50% 0%,
    58% 20%,
    78% 6%,
    76% 28%,
    100% 26%,
    86% 46%,
    100% 64%,
    78% 68%,
    84% 94%,
    62% 80%,
    50% 100%,
    40% 80%,
    16% 94%,
    22% 68%,
    0% 64%,
    14% 46%,
    0% 26%,
    24% 28%,
    22% 6%,
    42% 20%
  );
}

.caminhao-wrap img {
  width: 84%;
  margin: 8% auto;
  animation: sacode 3.2s ease-in-out infinite;
}

@keyframes sacode {
  0%,
  100% {
    transform: translate(0, 0) rotate(0);
  }
  50% {
    transform: translate(4px, -6px) rotate(-1.5deg);
  }
}

@media (min-width: 920px) {
  .motoristas .grade {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }
}

/* Segurança */

.seguranca {
  display: grid;
  gap: 20px;
}

.cartao {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-1);
}

.cartao .icone {
  margin-bottom: 14px;
  background: var(--marca-soft);
  color: var(--destaque);
}

.cartao p {
  color: var(--ink-muted);
  margin: 0;
}

@media (min-width: 720px) {
  .seguranca {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1040px) {
  .seguranca {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Dúvidas */

.secao.duvidas {
  background: var(--surface-2);
}

.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.faq h3 {
  margin: 28px 0 4px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--acao-soft);
  color: var(--acao-ink);
  font-size: 1.3rem;
  font-weight: 700;
  transition: transform var(--motion-base) var(--easing);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details > div {
  padding: 0 20px 18px;
  color: var(--ink-muted);
}

.faq details > div p:last-child {
  margin: 0;
}

/* Chamada final */

.chamada {
  background: var(--acao);
  color: var(--contorno);
  border-top: 4px solid var(--contorno);
  border-bottom: 4px solid var(--contorno);
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.chamada::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(0, 0, 0, 0.12) 1.6px, transparent 1.8px);
  background-size: 12px 12px;
}

.chamada h2 {
  font-family: var(--font-marca);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 12px;
}

.chamada p {
  font-size: 1.15rem;
  font-weight: 600;
  max-width: 34em;
  margin: 0 auto 28px;
}

.chamada .botoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.chamada .botao {
  background: var(--azul-marinho);
  color: #fff;
}

.chamada .botao.secundario {
  background: #fff;
  color: var(--azul-marinho);
}

/* ---------- Rodapé ---------- */

.rodape {
  background: #0b1626;
  color: #c9d4e0;
  padding: 56px 0 32px;
  font-size: 0.95rem;
}

.rodape .grade {
  display: grid;
  gap: 32px;
}

.rodape h2 {
  font-family: var(--font-corpo);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8fa2b8;
  margin-bottom: 12px;
}

.rodape ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rodape li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #fff;
  text-decoration: none;
}

.rodape li a:hover {
  color: var(--azul-pop);
  text-decoration: underline;
}

.rodape .marca {
  margin-bottom: 12px;
}

.rodape .legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8fa2b8;
  font-size: 0.85rem;
}

.rodape .legal p {
  margin: 0 0 6px;
}

@media (min-width: 720px) {
  .rodape .grade {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
}

/* ---------- Páginas de texto (privacidade, exclusão) ---------- */

.cabeca-doc {
  background: var(--azul-marinho);
  color: #fff;
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.cabeca-doc::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.4px, transparent 1.6px);
  background-size: 14px 14px;
}

.cabeca-doc h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 8px;
}

.cabeca-doc p {
  color: var(--sidebar-ink-muted);
  margin: 0;
}

.doc {
  display: grid;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 80px;
}

.indice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  align-self: start;
}

.indice h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  font-family: var(--font-corpo);
  margin-bottom: 8px;
}

.indice ol {
  margin: 0;
  padding-left: 20px;
}

.indice li {
  padding: 4px 0;
}

.indice a {
  color: var(--ink);
  text-decoration: none;
}

.indice a:hover {
  color: var(--destaque);
  text-decoration: underline;
}

.texto {
  max-width: 760px;
  min-width: 0;
}

.texto h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  margin-top: 48px;
  padding-top: 8px;
}

.texto h2:first-child {
  margin-top: 0;
}

.texto h3 {
  font-size: 1.1rem;
  margin-top: 28px;
  margin-bottom: 8px;
}

.texto p,
.texto li {
  color: var(--ink-muted);
}

.texto strong {
  color: var(--ink);
}

.texto ul,
.texto ol {
  padding-left: 22px;
  margin: 0 0 16px;
}

.texto li {
  margin-bottom: 6px;
}

.resumo {
  background: var(--acao-soft);
  border: 3px solid var(--contorno);
  box-shadow: 5px 5px 0 var(--contorno);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 40px;
}

.resumo h2 {
  margin-top: 0 !important;
  font-size: 1.25rem;
}

.resumo ul {
  margin: 0;
}

.resumo li {
  color: var(--ink);
}

.tabela {
  width: 100%;
  overflow-x: auto;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.tabela table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.tabela th,
.tabela td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.tabela th {
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 700;
}

.tabela td {
  color: var(--ink-muted);
}

.tabela tr:last-child td {
  border-bottom: 0;
}

.aviso-pendente {
  background: var(--marca-soft);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.95rem;
}

@media (min-width: 1040px) {
  .doc {
    grid-template-columns: 260px 1fr;
    gap: 56px;
  }
  .indice {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
}

/* ---------- Aparições ---------- */

.aparece {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 500ms var(--easing),
    transform 500ms var(--easing);
}

.aparece.visivel {
  opacity: 1;
  transform: none;
}

.sem-js .aparece {
  opacity: 1;
  transform: none;
}

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

/* No celular, cada linha da tabela vira um cartão (os rótulos vêm do site.js). */
@media (max-width: 639px) {
  .tabela.empilhada {
    border: 0;
    background: none;
    overflow: visible;
  }
  .tabela.empilhada table {
    min-width: 0;
  }
  .tabela.empilhada thead {
    display: none;
  }
  .tabela.empilhada tr {
    display: block;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 6px 0;
    margin-bottom: 12px;
  }
  .tabela.empilhada td {
    display: block;
    border: 0;
    padding: 6px 16px;
  }
  .tabela.empilhada td:first-child {
    color: var(--ink);
    font-weight: 700;
  }
  .tabela.empilhada td:not(:first-child)::before {
    content: attr(data-rotulo);
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }
}
