/**
 * TOOP KIDS — Design System (tokens + componentes + motion)
 * Fonte visual única, complementa o Tailwind local (`tailwind.css`).
 * Espelha `docs/design/MASTER.md`. Nada de hex solto fora daqui.
 *
 * Divisão de responsabilidade:
 *   - aqui ficam os tokens e os COMPONENTES (o que se repete e tem nome próprio);
 *   - o Tailwind cuida do arranjo pontual de cada seção (grid, gap, ordem, breakpoint).
 * Componente nenhum depende de utilitário do Tailwind para não estourar o container:
 *   quem define largura, calha e medida de leitura é este arquivo.
 *
 * @author Angatu Sistemas
 */

/* ------------------------------------------------------------------ *
 * Fontes — self-host, sem dependência externa (§15)
 * ------------------------------------------------------------------ */
@font-face {
  font-family: 'Baloo 2';
  src: url('/assets/fonts/baloo2-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/nunito-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/nunito-latin-italic.woff2') format('woff2');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------ *
 * Tokens — Paleta oficial TOOP KIDS (do logo)
 * ------------------------------------------------------------------ */
:root {
  --base: #ffffff;
  --surface: #ffffff;
  --ink: #12244f;
  --ink-soft: #5a6b85;
  --line: #e2e8f2;

  --azul: #1478cc;
  --azul-deep: #0f3e88;
  --verde: #3dae2b;
  --verde-deep: #2c8520;
  --vermelho: #ec2e28;
  --vermelho-deep: #c21f1a;
  --laranja: #f7a81b;
  --laranja-deep: #d98700;
  --amarelo: #ffc20e;

  --seal-gradient: linear-gradient(160deg, #22ace6, #123f8e);

  --tint-azul: color-mix(in srgb, var(--azul) 6%, #ffffff);
  --tint-verde: color-mix(in srgb, var(--verde) 6%, #ffffff);
  --tint-laranja: color-mix(in srgb, var(--laranja) 6%, #ffffff);

  /* Escala tipográfica fluida.
     O coeficiente `vw` do display é baixo de propósito: no desktop o H1 vive numa coluna
     de cerca de 45% da página, então uma escala calculada só pelo viewport estoura a
     coluna e joga o título para sete linhas. O teto real vem do `max-inline-size` em
     `ch` do `.display`. */
  --fs-display: clamp(2.25rem, 1.55rem + 3.1vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.8vw, 2.5rem);
  --fs-h3: clamp(1.2rem, 1.08rem + 0.55vw, 1.45rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  --fs-eyebrow: 0.8125rem;

  --maxw: 72rem;
  --maxw-prose: 40rem;

  /* Calha lateral única da página. Todo container usa esta variável — é o que garante
     que as seções fiquem alinhadas entre si em qualquer largura. */
  --gutter: clamp(1.15rem, 0.85rem + 1.6vw, 2.5rem);
  --section-pad: clamp(3.25rem, 2.4rem + 4vw, 6rem);
  --panel-pad: clamp(1.35rem, 0.9rem + 2.2vw, 2.75rem);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --sh-sm: 0 2px 10px rgba(18, 36, 79, 0.05);
  --sh-md: 0 12px 30px rgba(18, 36, 79, 0.08);
  --sh-lg: 0 24px 56px rgba(18, 36, 79, 0.12);
  --sh-azul: 0 14px 30px rgba(20, 120, 204, 0.3);

  --dur-1: 140ms;
  --dur-2: 240ms;
  --dur-3: 400ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --ease-pop: cubic-bezier(0.34, 1.4, 0.64, 1);

  --veil: color-mix(in srgb, var(--surface) 92%, transparent);
  --header-h: 4rem;
}

/* Ordem de carregamento: este arquivo entra ANTES de `tailwind.css` no <head>.
   Assim os utilitários do Tailwind (mesma especificidade, carregados depois) vencem os
   componentes em conflito de `display` — `hidden`, `lg:flex`, `md:grid-cols-3`. Os
   componentes ainda vencem o reset do Tailwind por especificidade de classe. */

/* ------------------------------------------------------------------ *
 * Base
 * ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  /* Impede que um filho de grid/flex se recuse a encolher e empurre a linha para fora
     da tela. É a causa estrutural mais comum de scroll horizontal. */
  min-width: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  font-family: 'Nunito', -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video,
svg {
  max-width: 100%;
}

a {
  color: var(--azul);
  text-decoration: none;
  transition: color var(--dur-1) var(--ease-out);
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------------------ *
 * Tipografia
 * ------------------------------------------------------------------ */
.font-display {
  font-family: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
}
h1,
h2,
h3,
h4 {
  font-family: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-top: 0;
  /* `balance` distribui as linhas do título; é o que evita a palavra sozinha na última
     linha sem recorrer a `nowrap` nem a quebra manual. */
  text-wrap: balance;
}
.display {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-inline-size: 18ch;
}
.h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.15;
  max-inline-size: 24ch;
}
.h2--wide {
  max-inline-size: 34ch;
}
.h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}
p {
  /* Evita a palavra órfã na última linha do parágrafo. */
  text-wrap: pretty;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Medida de leitura. Sem isto os parágrafos correm os 72rem do container — cerca de
   140 caracteres por linha em monitor grande. */
.prose-w {
  max-inline-size: var(--maxw-prose);
}
.prose-w--center {
  margin-inline: auto;
}

/* Eyebrow de seção */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-eyebrow);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}
.eyebrow::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--r-pill);
  background: currentColor;
  flex-shrink: 0;
}
.eyebrow--azul {
  color: var(--azul);
}
.eyebrow--verde {
  color: var(--verde-deep);
}
.eyebrow--vermelho {
  color: var(--vermelho);
}
.eyebrow--laranja {
  color: var(--laranja-deep);
}

/* ------------------------------------------------------------------ *
 * Layout: container, seção e painel
 * ------------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section-pad);
}

/* Painel claro sobre a faixa colorida da seção. O padding é dele, não do `.wrap`:
   antes o HTML somava `p-6 md:p-10` do Tailwind por cima do `.wrap`, o utilitário vencia
   por ordem de carregamento e a calha lateral mudava de seção para seção. */
.panel {
  background: var(--veil);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--panel-pad);
}

.section--tint-azul {
  background-color: var(--tint-azul);
}
.section--tint-verde {
  background-color: var(--tint-verde);
}
.section--tint-laranja {
  background-color: var(--tint-laranja);
}

/* ------------------------------------------------------------------ *
 * Header e navegação
 * ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition:
    background-color var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}
/* O estado rolado é escrito pelo `motion.js` como atributo. Antes o CSS esperava a
   classe `.is-scrolled` e o script gravava `data-scrolled`, então o estado nunca valia. */
.site-header[data-scrolled='true'] {
  background: color-mix(in srgb, var(--surface) 98%, transparent);
  box-shadow: var(--sh-sm);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  /* A marca é o link para o topo: o alvo tem 44px mesmo com a arte menor (WCAG 2.5.5). */
  min-height: 2.75rem;
  flex-shrink: 0;
}
.site-logo img {
  height: 2.25rem;
  width: auto;
}

.nav-link {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
  white-space: nowrap;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
  transition:
    color var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out);
}
.nav-link:hover {
  color: var(--azul);
  border-bottom-color: var(--azul);
  text-decoration: none;
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  /* 44px: alvo mínimo de toque (WCAG 2.1 AA, 2.5.5). */
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle:hover {
  border-color: var(--azul);
  color: var(--azul);
}

/* Gaveta mobile fora do fluxo, ancorada logo abaixo do cabeçalho.
   Ela vivia no fluxo normal, dentro do cabeçalho `sticky`: abrir o menu empurrava a página
   inteira ~294px para baixo e fechá-lo a puxava de volta. Como o link fecha a gaveta e o
   scroll é `smooth`, o destino era calculado com a gaveta aberta e o layout mudava no meio
   da animação — a página parava 294px depois da seção. Fora do fluxo, abrir e fechar o menu
   não reflui mais nada.
   É `absolute`, não `fixed`: o painel acompanha o cabeçalho e não tem rolagem própria, então
   continua sem brigar com a barra de endereço do navegador — que era a razão original de
   evitar um painel flutuante. */
.nav-drawer {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--sh-sm);
}
.nav-drawer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 1rem 1.25rem;
}
.nav-drawer .nav-link {
  border-bottom: 1px solid var(--line);
  padding-block: 0.85rem;
}
.nav-drawer .nav-link:hover {
  border-bottom-color: var(--azul);
}
@media (prefers-reduced-motion: no-preference) {
  .nav-drawer.is-open {
    animation: drawer-in var(--dur-2) var(--ease-out);
  }
  .nav-drawer.is-closing {
    animation: drawer-in var(--dur-2) var(--ease-in) reverse;
  }
}
@keyframes drawer-in {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------------------------ *
 * Botões
 * ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 0.85rem 1.6rem;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  /* Um botão nunca pode ser mais largo que o container: em 320px o rótulo quebra em
     duas linhas em vez de empurrar a página para o lado. */
  max-width: 100%;
  transition:
    transform var(--dur-1) var(--ease-out),
    box-shadow var(--dur-1) var(--ease-out),
    background-color var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out),
    color var(--dur-1) var(--ease-out);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn svg {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-primary {
  background: var(--azul);
  color: #ffffff;
  box-shadow: var(--sh-sm);
}
.btn-primary:hover {
  background: var(--azul-deep);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--sh-azul);
}

.btn-secondary {
  background: var(--surface);
  color: var(--azul);
  border-color: var(--azul);
}
.btn-secondary:hover {
  background: var(--azul);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--sh-azul);
}

.btn-ghost {
  background: transparent;
  color: var(--azul-deep);
  padding: 0.5rem 0;
  min-height: 2.75rem;
  justify-content: flex-start;
}
.btn-ghost:hover {
  color: var(--azul);
  text-decoration: underline;
}

.btn-lg {
  font-size: 1.0625rem;
  padding: 1rem 1.85rem;
}

/* ------------------------------------------------------------------ *
 * Cards
 * ------------------------------------------------------------------ */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  padding: clamp(1.15rem, 0.9rem + 1vw, 1.75rem);
}
/* O realce no hover é opt-in: card de formulário e card de etapa não devem levantar
   quando o ponteiro passa, só os que representam uma oferta. */
.card-hover {
  transition:
    transform var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}
.card-tint {
  background: var(--tint-azul);
  border-color: color-mix(in srgb, var(--azul) 18%, var(--line));
  box-shadow: none;
}

/* Chips de ícone */
.chip {
  width: 3rem;
  height: 3rem;
  border-radius: var(--r-md);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.chip svg {
  width: 1.5rem;
  height: 1.5rem;
}
.chip--azul {
  background: color-mix(in srgb, var(--azul) 14%, var(--surface));
  color: var(--azul);
}
.chip--verde {
  background: color-mix(in srgb, var(--verde) 14%, var(--surface));
  color: var(--verde-deep);
}
.chip--vermelho {
  background: color-mix(in srgb, var(--vermelho) 14%, var(--surface));
  color: var(--vermelho);
}
.chip--laranja {
  background: color-mix(in srgb, var(--laranja) 16%, var(--surface));
  color: var(--laranja-deep);
}

/* Número da etapa em "Como funciona" */
.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: var(--r-pill);
  background: var(--seal-gradient);
  color: #ffffff;
  font-family: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: var(--sh-sm);
}

/* ------------------------------------------------------------------ *
 * Formulário
 * ------------------------------------------------------------------ */
.ds-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}
.field {
  width: 100%;
  max-width: 100%;
  font-family: inherit;
  /* 16px: abaixo disso o iOS dá zoom ao focar o campo e desalinha a página. */
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.75rem 1rem;
  transition:
    border-color var(--dur-1) var(--ease-out),
    box-shadow var(--dur-1) var(--ease-out);
}
.field:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--azul) 18%, transparent);
}
.field::placeholder {
  color: color-mix(in srgb, var(--ink-soft) 70%, transparent);
}
textarea.field {
  resize: vertical;
  min-height: 5.5rem;
}

/* ------------------------------------------------------------------ *
 * Mídia — figuras de foto e palco do herói
 * ------------------------------------------------------------------ */
.figure-photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--sh-sm);
}
.figure-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure-photo figcaption {
  padding: 0.7rem 0.85rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-soft);
}

/* Proporções das molduras. Ficam aqui e não em utilitário de altura fixa: altura em px
   deforma a foto assim que a coluna muda de largura. */
.ratio-4-5 {
  aspect-ratio: 4 / 5;
}
.ratio-1-1 {
  aspect-ratio: 1 / 1;
}
.ratio-3-2 {
  aspect-ratio: 3 / 2;
}

.hero-stage {
  padding-block: clamp(2rem, 1.4rem + 3vw, 4.5rem) var(--section-pad);
}

/* ------------------------------------------------------------------ *
 * Vídeo do herói (§9.14)
 * ------------------------------------------------------------------ *
 * O pôster é a camada de base e está sempre no HTML como <img>. O <video> fica por cima
 * e só aparece quando dispara `playing`. Assim qualquer falha — codec recusado, autoplay
 * bloqueado, rede caída, movimento reduzido, JS desligado — cai numa foto real, sem
 * precisar de um tratamento próprio para cada caso.
 */
.hero-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  background: var(--ink);

  /* A proporção acompanha o VÍDEO que o `motion.js` vai escolher, no mesmo corte de 768px.
     Antes eram três degraus (4/5, 16/10, 4/3) que não batiam com nenhum dos dois arquivos:
     o vídeo entra com `object-fit: cover`, então a diferença virava corte — 25% na horizontal
     no desktop, comendo a legenda, e 65% na vertical por volta de 700px, onde o arquivo
     retrato caía numa caixa deitada. Como a legenda e a marca d'água são gravadas no vídeo,
     todo corte apaga informação. */
  aspect-ratio: 9 / 16;
  /* Retrato numa caixa larga fica gigante: a 700px seriam mais de 1100px de altura. O limite
     mantém o quadro com cara de celular, centralizado, até o vídeo deitado assumir.
     O `inline-size: 100%` é obrigatório junto do `margin-inline: auto`: a margem automática
     tira o esticamento do item de grid e, como o pôster e o vídeo são absolutos, sem ela a
     caixa não tem conteúdo em fluxo e colapsa para zero. */
  inline-size: 100%;
  max-inline-size: 22rem;
  margin-inline: auto;
}
@media (min-width: 768px) {
  .hero-media {
    aspect-ratio: 16 / 9;
    max-inline-size: none;
  }
}

.hero-media__poster,
.hero-media video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media video {
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease-out);
}
.hero-media[data-video='playing'] video {
  opacity: 1;
}

/* Movimento reduzido: o vídeo sai de cena e o pôster assume sozinho. */
@media (prefers-reduced-motion: reduce) {
  .hero-media video {
    display: none;
  }
}

/* ------------------------------------------------------------------ *
 * Revelações no scroll
 * ------------------------------------------------------------------ */
@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal-in var(--dur-3) var(--ease-out) both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
  }
}

/* Fallback por IntersectionObserver. O `.js` é obrigatório: sem essa guarda, um
   navegador sem `animation-timeline` e com o script bloqueado deixaria a página inteira
   invisível, porque o `opacity: 0` valeria sem ninguém para removê-lo. */
@supports not (animation-timeline: view()) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity var(--dur-3) var(--ease-out),
      transform var(--dur-3) var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

.pop-in {
  animation: pop-in var(--dur-3) var(--ease-pop) both;
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------ *
 * Rodapé (§9.8)
 * ------------------------------------------------------------------ */
.ds-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  font-size: 0.9375rem;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--azul) 4%, var(--surface));
}
.ds-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  text-align: center;
}
.ds-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.5rem;
  font-weight: 700;
}
.ds-footer__nav a {
  display: inline-flex;
  align-items: center;
  /* 44px de alvo: no rodapé os links ficam lado a lado e são os mais difíceis de acertar. */
  min-height: 2.75rem;
  color: var(--ink);
}
.ds-footer__nav a:hover {
  color: var(--azul);
}
.ds-footer p {
  margin: 0;
  max-inline-size: 46ch;
}

.ds-credito {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding-inline: 0.5rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.ds-credito:hover {
  text-decoration: none;
  color: var(--ink);
}
.ds-credito-marca {
  height: 1.35rem;
  width: auto;
}

/* ------------------------------------------------------------------ *
 * Movimento reduzido (§9.4 / WCAG 2.1)
 * ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .pop-in {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
