/* Guia Aumente seu Bolsa Família: base compartilhada (versão 2).
   Tokens, reset, moldura central, botão e entrada das seções (prefixo abf-). */

/* Fontes hospedadas no site (baixadas do Google Fonts em 04/11/2026).
   Literata é variável: o mesmo arquivo serve o 400 e o 600. O latin-ext só baixa
   se a página usar um caractere fora do latin básico. */
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/literata-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: "Literata";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/literata-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;
}

@font-face {
  font-family: "Rokkitt";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/rokkitt-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: "Rokkitt";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/rokkitt-800-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;
}

/* Fontes de reserva com a largura ajustada à fonte real, para o texto não pular
   quando a fonte termina de carregar. Medido com a frase do título a 100px. */
@font-face {
  font-family: "Literata Reserva";
  src: local("Georgia");
  size-adjust: 104.3%;
}

@font-face {
  font-family: "Rokkitt Reserva";
  src: local("Georgia Bold"), local("Georgia-Bold");
  font-weight: 800;
  size-adjust: 85.3%;
}

:root {
  /* Cor */
  --abf-fundo: #062e1c;
  --abf-fundo-2: #083a24;
  --abf-cartao: #0b4429;
  --abf-verde: #0d6a41;
  --abf-amarelo: #ffd84f;
  --abf-amarelo-forte: #f6c629;
  --abf-texto: #f2f6f1;
  --abf-texto-2: #b7c9bd;
  --abf-tinta: #0b2316;
  --abf-linha: rgb(242 246 241 / 0.12);
  --abf-linha-forte: rgb(255 216 79 / 0.35);

  /* Tipo */
  --abf-face-titulo: "Rokkitt", "Rokkitt Reserva", serif;
  --abf-face-texto: "Literata", "Literata Reserva", serif;
  --abf-step-small: clamp(0.9375rem, 0.91rem + 0.1vw, 1rem);
  --abf-step-body: clamp(1.0625rem, 1.02rem + 0.2vw, 1.1875rem);
  --abf-step-lead: clamp(1.1875rem, 1.08rem + 0.5vw, 1.4375rem);
  --abf-step-head: clamp(2rem, 1.35rem + 2.6vw, 3.5rem);
  --abf-step-hero: clamp(2.25rem, 1.5rem + 2.6vw, 3.75rem);

  /* Espaço */
  --abf-borda-tela: 10px;
  --abf-recuo: 20px;
  --abf-secao: 80px;
  --abf-raio: 20px;
  --abf-raio-moldura: 28px;

  /* Movimento */
  --abf-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --abf-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

@media (min-width: 768px) {
  :root {
    --abf-borda-tela: 20px;
    --abf-recuo: 48px;
    --abf-secao: 112px;
  }
}

@media (min-width: 1200px) {
  :root {
    --abf-borda-tela: 28px;
    --abf-recuo: 80px;
    --abf-secao: 136px;
    --abf-raio-moldura: 36px;
  }
}

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

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

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgb(13 106 65 / 0.45), transparent 70%),
    var(--abf-fundo);
  color: var(--abf-texto);
  font-family: var(--abf-face-texto);
  font-size: var(--abf-step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--abf-amarelo);
  color: var(--abf-tinta);
}

:focus-visible {
  outline: 3px solid var(--abf-amarelo);
  outline-offset: 3px;
}

/* Moldura central: todo o conteúdo mora dentro dela, com borda e recuo lateral */
.abf-moldura {
  width: calc(100% - var(--abf-borda-tela) * 2);
  max-width: 1320px;
  margin: var(--abf-borda-tela) auto;
  overflow: clip;
  background: var(--abf-fundo-2);
  border: 1px solid var(--abf-linha);
  border-radius: var(--abf-raio-moldura);
}

/* Destaque amarelo dentro de títulos */
.abf-destaque {
  color: var(--abf-amarelo);
}

/* Seção padrão dentro da moldura */
.abf-secao {
  padding: var(--abf-secao) var(--abf-recuo) 0;
}

/* Cabeçalho de seção: título centralizado e uma linha de apoio */
.abf-cabeca {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.abf-titulo {
  font-family: var(--abf-face-titulo);
  font-size: var(--abf-step-head);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.abf-sub {
  max-width: 52ch;
  margin: 16px auto 0;
  color: var(--abf-texto-2);
  font-size: var(--abf-step-lead);
  line-height: 1.5;
  text-wrap: pretty;
}

/* Cartão: superfície padrão dos blocos */
.abf-cartao {
  background: var(--abf-cartao);
  border: 1px solid var(--abf-linha);
  border-radius: var(--abf-raio);
}

/* Botão principal */
.abf-botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 16px 28px;
  background: var(--abf-amarelo);
  color: var(--abf-tinta);
  border-radius: 14px;
  box-shadow: 0 10px 30px -8px rgb(255 216 79 / 0.55);
  font-family: var(--abf-face-texto);
  font-size: var(--abf-step-body);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  user-select: none;
  transition:
    transform 160ms var(--abf-ease-out),
    background-color 160ms ease,
    box-shadow 200ms ease;
}

.abf-botao svg {
  flex: none;
  width: 20px;
  height: 20px;
  transition: transform 200ms var(--abf-ease-out);
}

.abf-botao:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .abf-botao:hover {
    background: var(--abf-amarelo-forte);
    box-shadow: 0 14px 36px -8px rgb(255 216 79 / 0.7);
  }

  .abf-botao:hover svg {
    transform: translateX(3px);
  }
}

/* Texto só para leitor de tela */
.abf-visualmente-oculto {
  position: absolute;
  width: 1px;
  height: 1px; /* taste-skill-ignore */
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Animações que repetem param quando a seção sai da tela (main.js, iniciarPausa) */
.is-parado *,
.is-parado *::before,
.is-parado *::after {
  animation-play-state: paused !important;
}

/* Entrada das partes de cada seção. Só esconde quando o JS está rodando. */
.abf-js [data-abf-revela] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 320ms var(--abf-ease-out),
    transform 480ms var(--abf-ease-out);
  transition-delay: calc(var(--abf-ordem, 0) * 80ms);
}

.abf-js [data-abf-revela].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .abf-js [data-abf-revela] {
    transform: none;
    transition: opacity 150ms ease;
    transition-delay: 0ms;
  }

  .abf-botao,
  .abf-botao svg {
    transition: background-color 160ms ease;
  }

  .abf-botao:active {
    transform: none;
  }
}
