/* ==========================================================================
   iD Tráfego | Seeding do blog | componentes visuais
   Pasta de trabalho, não publicada. Versão 1, 21/10/2026.

   Herda os tokens do molde dos posts (:root de deploy/blog/<slug>/index.html):
   --blue, --blue-hover, --blue-dim, --blue-border, --bg-soft, --bg-hero,
   --bg-dark, --text-primary, --text-secondary, --border, --font-d, --font-b.
   Todo valor tem fallback igual ao do molde, para o componente não quebrar
   se for usado fora dele.

   Blocos (cada um pode ser copiado sozinho, com o bloco BASE):
     BASE ............ tokens locais, rótulo "Da iD", movimento reduzido
     1. MENÇÃO ....... link no corpo do texto            (.id-mencao)
     2. BANNER ....... chamada horizontal no meio        (.id-faixa)
     3. FECHAMENTO ... serviço no lugar da faixa final   (.id-fim)
     4. REDE ......... espaços de anúncio e criativos    (.id-rede, .id-anuncio)

   Seletores de texto usam duas classes (0,2,0) de propósito: o molde tem
   ".post-content p" (0,1,1), que venceria uma classe sozinha.
   ========================================================================== */


/* ---------- BASE ---------------------------------------------------------- */

.id-mencao,
.id-faixa,
.id-rede,
.id-rede-trilho,
.id-anuncio {
  --id-azul: var(--blue, #1464F6);
  --id-azul-hover: var(--blue-hover, #3D7EFF);
  --id-azul-borda: var(--blue-border, rgba(20, 100, 246, 0.20));
  --id-azul-claro: var(--bg-hero, #F0F5FF);
  --id-marinho: var(--bg-dark, #0A1628);
  --id-texto: var(--text-primary, #0A0F1E);
  --id-texto-2: var(--text-secondary, #4A5568);
  --id-borda: var(--border, #E2E8F0);
  --id-fonte-d: var(--font-d, 'Plus Jakarta Sans', sans-serif);
  --id-fonte-b: var(--font-b, 'Inter', sans-serif);
  --id-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Rótulo discreto. Discreto pelo tamanho, não pelo contraste:
   #4A5568 sobre branco = 7,5:1. O --text-muted do molde (#8A99B8) dá 2,9:1
   e não é usado em nenhum componente. */
.id-faixa .id-rotulo,
.id-rede .id-rotulo,
.id-rede-trilho .id-rotulo {
  display: block;
  margin: 0 0 8px;
  font-family: var(--id-fonte-b);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--id-texto-2);
}


/* ---------- 1. MENÇÃO NO CORPO DO TEXTO ----------------------------------- */
/* Uso: <a class="id-mencao" href="..." data-cta="blog-<slug>-mencao">trecho</a>
   O molde zera a cor e o sublinhado de todo link (a { color: inherit;
   text-decoration: none }). Esta classe devolve a affordance só à menção. */

.post-content a.id-mencao,
a.id-mencao {
  color: var(--id-azul);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(20, 100, 246, 0.40);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.post-content a.id-mencao:hover,
a.id-mencao:hover {
  text-decoration-color: currentColor;
}
/* Links comuns do texto (sem classe), só nas páginas que carregam este arquivo.
   Corrige o molde, que deixa todo link do texto com a cor do parágrafo e sem
   sublinhado. */
.post-content p a:not([class]),
.post-content li a:not([class]) {
  color: var(--blue, #1464F6);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(20, 100, 246, 0.40);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}
.post-content p a:not([class]):hover,
.post-content li a:not([class]):hover { text-decoration-color: currentColor; }
.post-content p a:not([class]):focus-visible,
.post-content li a:not([class]):focus-visible,
a.id-mencao:focus-visible {
  outline: 2px solid var(--id-azul);
  outline-offset: 2px;
  border-radius: 2px;
}


/* ---------- 2. BANNER NO MEIO DO ARTIGO ----------------------------------- */
/* Uma linha só, com área de clique única. Entra ENTRE seções (antes de um h2),
   nunca no meio de parágrafo. Altura mínima 72px, sem reserva de espaço
   variável: não empurra o texto depois de carregado. */

.id-faixa {
  margin: 40px 0;
}

.id-faixa__corpo {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 76px;
  padding: 14px 14px 14px 16px;
  background: #FFFFFF;
  border: 1px solid var(--id-borda);
  border-radius: 10px;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.id-faixa__corpo:hover {
  border-color: rgba(20, 100, 246, 0.35);
  box-shadow: 0 6px 20px rgba(10, 22, 40, 0.06);
}
.id-faixa__corpo:active {
  background-color: var(--id-azul-claro);
}
.id-faixa__corpo:focus-visible {
  outline: 3px solid var(--id-azul);
  outline-offset: 3px;
}

.id-faixa__icone {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--id-azul-claro);
  color: var(--id-azul);
}
.id-faixa__icone svg { width: 20px; height: 20px; }

.id-faixa__texto { display: block; min-width: 0; }
.id-faixa__titulo {
  display: block;
  font-family: var(--id-fonte-d);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--id-texto);
  text-wrap: balance;
}
.id-faixa__apoio {
  display: block;
  margin-top: 2px;
  font-family: var(--id-fonte-b);
  font-size: 14px;
  line-height: 1.5;
  color: var(--id-texto-2);
}

.id-faixa__acao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--id-azul);
  color: #FFFFFF;
  transition: background-color 0.2s ease;
}
.id-faixa__acao svg { width: 18px; height: 18px; transition: transform 0.2s var(--id-ease); }
.id-faixa__corpo:hover .id-faixa__acao { background: var(--id-azul-hover); }
.id-faixa__corpo:hover .id-faixa__acao svg { transform: translateX(3px); }

/* No celular o rótulo da ação fica só para leitor de tela: a seta já diz. */
.id-faixa__acao-rotulo {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (min-width: 640px) {
  .id-faixa__corpo {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 18px;
    padding: 16px 16px 16px 18px;
  }
  .id-faixa__icone { width: 44px; height: 44px; }
  .id-faixa__titulo { font-size: 17px; }
  .id-faixa__acao {
    width: auto;
    height: 40px;
    padding: 0 16px;
    border-radius: 6px;
    font-family: var(--id-fonte-b);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .id-faixa__acao svg { width: 16px; height: 16px; }
  .id-faixa__acao-rotulo {
    position: static;
    width: auto; height: auto;
    overflow: visible;
    clip: auto;
  }
}


/* ---------- 3. BLOCO DE SERVIÇO: FECHAMENTO DA PÁGINA -------------------- */
/* Ocupa o lugar da faixa final do molde (section.cta-final) e herda o papel
   dela: é o último momento da página antes do rodapé, com id="contato".
   Mantém o azul da faixa antiga para a página fechar no mesmo ritmo
   (artigo, newsletter, azul, rodapé escuro). Texto sempre #FFFFFF: sobre
   #1464F6 dá 5,0:1; branco com transparência cairia abaixo de 4,5:1.
   Celular: uma coluna, botão de largura total. A partir de 900px: texto à
   esquerda, ações à direita alinhadas pela base. */

.id-fim {
  --id-azul: var(--blue, #1464F6);
  --id-fonte-d: var(--font-d, 'Plus Jakarta Sans', sans-serif);
  --id-fonte-b: var(--font-b, 'Inter', sans-serif);
  position: relative;
  overflow: hidden;
  padding: var(--section-gap, clamp(72px, 10vw, 120px)) 0;
  background: var(--id-azul);
  color: #FFFFFF;
  scroll-margin-top: 68px;
}
.id-fim::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(255, 255, 255, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 100% 100%, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
}
.id-fim > .container { position: relative; z-index: 1; }

.id-fim__grade {
  display: grid;
  gap: 32px;
}

.id-fim .id-fim__rotulo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-family: var(--id-fonte-b);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #FFFFFF;
}
.id-fim__icone {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.30);
  color: #FFFFFF;
}
.id-fim__icone svg { width: 20px; height: 20px; }

.id-fim .id-fim__nome {
  margin: 0 0 16px;
  max-width: 20ch;
  font-family: var(--id-fonte-d);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-wrap: balance;
}
.id-fim .id-fim__descricao {
  margin: 0;
  max-width: 62ch;
  font-family: var(--id-fonte-b);
  font-size: 17px;
  line-height: 1.75;
  color: #FFFFFF;
}

.id-fim__acoes {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
/* Botão branco com rótulo azul: o mesmo tratamento da faixa final do molde. */
.id-fim .btn-primary {
  justify-content: center;
  padding: 16px 24px;
  background: #FFFFFF;
  color: var(--id-azul);
  line-height: 1.3;
  text-align: center;
}
.id-fim .btn-primary:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.id-fim__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-family: var(--id-fonte-b);
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.55);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}
.id-fim__link:hover { text-decoration-color: #FFFFFF; }

/* Linha do iD Lab. Nasce com hidden; o mecanismo de cidade do site revela
   [data-geo-only="joao-pessoa"] para quem acessa de João Pessoa. */
.id-fim .id-fim__lab {
  margin: 40px 0 0;
  padding-top: 24px;
  max-width: 76ch;
  border-top: 1px solid rgba(255, 255, 255, 0.30);
  font-family: var(--id-fonte-b);
  font-size: 15px;
  line-height: 1.7;
  color: #FFFFFF;
}
.id-fim .id-fim__lab[hidden] { display: none; }
.id-fim__lab-acao {
  display: inline;
  padding: 10px 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.55);
  text-underline-offset: 4px;
  cursor: pointer;
}
.id-fim__lab-acao:hover { text-decoration-color: #FFFFFF; }

.id-fim .btn-primary:focus-visible,
.id-fim__link:focus-visible,
.id-fim__lab-acao:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 3px;
  border-radius: 6px;
}

@media (min-width: 900px) {
  .id-fim__grade {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
    align-items: end;
    gap: 72px;
  }
}


/* ---------- 4. REDE DE DISPLAY: ESPAÇOS ----------------------------------- */
/* Dois espaços:
   - .id-rede--texto: 300x250 fluido, entre seções do texto. Aparece no
     celular e no tablet. Largura min(300px, 100%), proporção travada:
     espaço reservado antes do criativo carregar (CLS zero).
   - .id-rede-trilho: lateral fixa (sticky) à direita do texto, só quando o
     layout comporta: 160x600 a partir de 1152px de largura e 300x600 a partir
     de 1440px, sempre com pelo menos 720px de altura de tela.
   Quando o trilho aparece, o espaço no texto some, e vice-versa: um anúncio
   por tela. */

.id-rede {
  width: min(300px, 100%);
  margin: 40px auto;
}

.id-rede__slot {
  position: relative;
  width: 100%;
  aspect-ratio: 300 / 250;
  container-type: size;
  container-name: id-slot;
  border-radius: 10px;
  background: var(--bg-soft, #F4F6F8);
}

.id-rede-trilho { display: none; }

@media (min-width: 1152px) and (min-height: 720px) {
  .post-body { position: relative; }
  .id-rede--texto { display: none; }
  .id-rede-trilho {
    display: block;
    position: absolute;
    top: 64px;
    bottom: 80px;
    /* metade da tela + metade do texto (360) + respiro (32) */
    left: calc(50% + 392px);
    width: 160px;
  }
  .id-rede-trilho__fixo {
    position: sticky;
    top: 92px; /* cabeçalho fixo de 68px + 24px */
  }
  .id-rede-trilho .id-rede__slot {
    aspect-ratio: auto;
    height: 600px;
  }
}
@media (min-width: 1440px) and (min-height: 720px) {
  .id-rede-trilho { width: 300px; }
}


/* ---------- 4. REDE DE DISPLAY: CRIATIVOS --------------------------------- */
/* O criativo inteiro é um único alvo de clique (<a> ou <button> do
   diagnóstico). Layout por container query: o mesmo criativo se ajusta a
   300x250, 160x600 e 300x600 sem arquivo separado. */

.id-anuncio {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 20px 20px;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 10px;
  font-family: var(--id-fonte-b);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.id-anuncio:focus-visible {
  outline: 3px solid var(--id-azul);
  outline-offset: 3px;
}

.id-anuncio__marca {
  display: block;
  width: 26px;
  line-height: 0;
}
.id-anuncio__marca svg { display: block; width: 100%; height: auto; }

.id-anuncio__titulo {
  display: block;
  margin: auto 0 8px;
  font-family: var(--id-fonte-d);
  font-size: clamp(18px, 7.4cqi, 30px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  hyphens: manual;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* Cada linha do título é uma máscara. A folga embaixo protege descendentes
   (g, ç, p) do recorte; a margem negativa devolve o espaço. */
.id-anuncio__linha {
  display: block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.id-anuncio__linha > span { display: block; text-wrap: balance; }

.id-anuncio__apoio {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0 0 14px;
  font-size: clamp(13px, 4.7cqi, 16px);
  font-weight: 500;
  line-height: 1.45;
  max-width: 100%;
}

.id-anuncio__rodape {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.id-anuncio__botao {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}
.id-anuncio__botao svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  transition: transform 0.2s var(--id-ease);
}
.id-anuncio:hover .id-anuncio__botao svg { transform: translateX(3px); }
/* Rótulo curto (botaoCurto) só aparece na coluna de 160px. */
.id-anuncio__botao-curto { display: none; }

/* Formato alto (300x600 e 160x600) */
@container id-slot (min-height: 420px) {
  .id-anuncio { padding: 24px; }
  .id-anuncio__marca { width: 32px; }
  .id-anuncio__titulo { font-size: clamp(18px, 8.6cqi, 30px); margin-bottom: 12px; }
  .id-anuncio__apoio { -webkit-line-clamp: 5; margin-bottom: 20px; }
}
/* Formato estreito (160x600) */
@container id-slot (max-width: 200px) {
  .id-anuncio { padding: 18px 14px 16px; }
  .id-anuncio__titulo { font-size: 18px; text-wrap: balance; }
  /* Coluna estreita: as quebras de linha autorais não cabem; o título corre
     como texto contínuo. */
  .id-anuncio__linha,
  .id-anuncio__linha > span { display: inline; overflow: visible; padding: 0; margin: 0; }
  .id-anuncio__apoio { font-size: 14px; -webkit-line-clamp: 7; }
  /* Na coluna de 160px o rótulo não cabe em caixa alta com seta: vira caixa
     normal, sem seta, centralizado. Até 16 caracteres cabe em uma linha; acima
     disso quebra em duas, centralizado. */
  .id-anuncio__botao {
    width: 100%;
    justify-content: center;
    padding: 8px 10px;
    font-size: 13px;
    text-align: center;
    letter-spacing: 0;
    text-transform: none;
  }
  .id-anuncio__botao svg { display: none; }
  .id-anuncio__botao.tem-curto .id-anuncio__botao-longo { display: none; }
  .id-anuncio__botao.tem-curto .id-anuncio__botao-curto { display: inline; }
}


/* Linguagem A | Recorte -------------------------------------------------- */
/* Fundo marinho do molde com a luz azul da identidade. Movimento: as linhas
   do título sobem de dentro da própria máscara, a luz chega junto, apoio e
   botão entram por último. Uma vez, ~0,9s, e para. */

.id-anuncio--a {
  background: var(--id-marinho);
  color: #FFFFFF;
}
.id-anuncio--a .id-anuncio__luz {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 45% at 85% 12%, rgba(20, 100, 246, 0.42) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(20, 100, 246, 0.14) 0%, transparent 70%);
  transition: transform 1200ms var(--id-ease), opacity 900ms ease-out;
}
.id-anuncio--a .id-anuncio__marca { color: #FFFFFF; }
.id-anuncio--a .id-anuncio__apoio { color: rgba(255, 255, 255, 0.80); }
.id-anuncio--a .id-anuncio__botao { background: #FFFFFF; color: var(--id-marinho); }
.id-anuncio--a:hover .id-anuncio__botao { background: rgba(255, 255, 255, 0.90); }

.id-anuncio--a .id-anuncio__linha > span {
  transition: transform 640ms var(--id-ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.id-anuncio--a .id-anuncio__apoio,
.id-anuncio--a .id-anuncio__rodape {
  transition: opacity 420ms ease-out, transform 520ms var(--id-ease);
}
.id-anuncio--a .id-anuncio__apoio { transition-delay: 260ms; }
.id-anuncio--a .id-anuncio__rodape { transition-delay: 360ms; }

.id-anuncio--a.is-pre .id-anuncio__linha > span,
.id-anuncio--a.is-seq .id-anuncio__linha > span { transform: translateY(108%); }
.id-anuncio--a.is-pre .id-anuncio__apoio,
.id-anuncio--a.is-pre .id-anuncio__rodape,
.id-anuncio--a.is-seq .id-anuncio__apoio,
.id-anuncio--a.is-seq .id-anuncio__rodape { opacity: 0; transform: translateY(8px); }
.id-anuncio--a.is-pre .id-anuncio__luz { opacity: 0.35; transform: translate(6%, -6%); }

/* Na coluna estreita a máscara passa a ser do bloco do título inteiro:
   o título sobe de baixo para cima, com o mesmo tempo e a mesma curva. */
@container id-slot (max-width: 200px) {
  .id-anuncio--a .id-anuncio__titulo { transition: clip-path 640ms var(--id-ease), transform 640ms var(--id-ease); }
  .id-anuncio--a.is-pre .id-anuncio__linha > span { transform: none; }
  .id-anuncio--a.is-pre .id-anuncio__titulo,
  .id-anuncio--a.is-seq .id-anuncio__titulo { clip-path: inset(100% 0 0 0); transform: translateY(12px); }
  .id-anuncio--a.is-seq .id-anuncio__linha > span { transform: none; }
}


/* Linguagem B | Régua ----------------------------------------------------- */
/* Fundo branco, texto parado e legível desde o primeiro quadro. Só a régua se
   mexe: a escala se desenha da esquerda, o cursor corre e para num ponto, e
   o ponto se marca. Metáfora: medir até achar o número. ~1,1s, uma vez. */

.id-anuncio--b {
  background: #FFFFFF;
  color: var(--id-texto);
  box-shadow: inset 0 0 0 1px var(--id-azul-borda);
  padding-top: 42px;
}
.id-anuncio--b .id-anuncio__marca { color: var(--id-azul); }
.id-anuncio--b .id-anuncio__apoio { color: var(--id-texto-2); }
.id-anuncio--b .id-anuncio__botao { background: var(--id-azul); color: #FFFFFF; }
.id-anuncio--b:hover .id-anuncio__botao { background: var(--id-azul-hover); }

.id-anuncio__regua {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  pointer-events: none;
}
.id-anuncio__escala {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(10, 15, 30, 0.30), rgba(10, 15, 30, 0.30)) 0 0 / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgba(10, 15, 30, 0.45) 0 1px, transparent 1px 40px) 20px 0 / calc(100% - 20px) 12px no-repeat,
    repeating-linear-gradient(90deg, rgba(10, 15, 30, 0.22) 0 1px, transparent 1px 8px) 20px 0 / calc(100% - 20px) 7px no-repeat;
  clip-path: inset(0 0 0 0);
  transition: clip-path 720ms var(--id-ease);
}
.id-anuncio__cursor-trilho {
  position: absolute;
  inset: 0;
  /* --id-cur: 0 = início da régua, 1 = ponto final. Os quadros de abertura
     avançam o cursor em passos. */
  transform: translateX(calc((var(--id-cur, 1) - 1) * 64%));
  transition: transform 860ms var(--id-ease) 120ms, opacity 200ms ease-out 120ms;
}
.id-anuncio__cursor {
  position: absolute;
  top: 0;
  left: 64%;
  width: 2px;
  height: 22px;
  margin-left: -1px;
  background: var(--id-azul);
}
.id-anuncio__cursor::after {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--id-azul);
  transition: transform 240ms var(--id-ease) 900ms;
}

.id-anuncio--b.is-pre .id-anuncio__escala { clip-path: inset(0 100% 0 0); }
.id-anuncio--b.is-pre { --id-cur: 0; }
.id-anuncio--b.is-pre .id-anuncio__cursor-trilho { opacity: 0; }
.id-anuncio--b.is-pre .id-anuncio__cursor::after,
.id-anuncio--b.is-seq .id-anuncio__cursor::after { transform: scale(0); }

/* 160x600: régua no topo, marca embaixo dela, texto ancorado no pé (igual a A e C). */
@container id-slot (min-height: 420px) {
  .id-anuncio--b { padding-top: 48px; }
}
/* 300x600: a régua desce pela borda esquerda, de cima a baixo, e o cursor
   para na altura em que o texto começa. Ocupa a altura com sentido, em vez de
   deixar o meio da peça vazio. */
@container id-slot (min-height: 420px) and (min-width: 201px) {
  .id-anuncio--b { padding: 24px 20px 24px 40px; }
  .id-anuncio--b .id-anuncio__botao { letter-spacing: 0.04em; }
  .id-anuncio--b .id-anuncio__regua { top: 0; bottom: 0; left: 0; right: auto; width: 30px; height: auto; }
  .id-anuncio--b .id-anuncio__escala {
    background:
      linear-gradient(rgba(10, 15, 30, 0.30), rgba(10, 15, 30, 0.30)) 0 0 / 1px 100% no-repeat,
      repeating-linear-gradient(180deg, rgba(10, 15, 30, 0.45) 0 1px, transparent 1px 40px) 0 20px / 12px calc(100% - 20px) no-repeat,
      repeating-linear-gradient(180deg, rgba(10, 15, 30, 0.22) 0 1px, transparent 1px 8px) 0 20px / 7px calc(100% - 20px) no-repeat;
  }
  .id-anuncio--b .id-anuncio__cursor { top: 62%; left: 0; width: 22px; height: 2px; margin: -1px 0 0 0; }
  .id-anuncio--b .id-anuncio__cursor::after { top: 50%; left: 22px; }
  .id-anuncio--b.is-pre .id-anuncio__escala { clip-path: inset(0 0 100% 0); }
  .id-anuncio--b .id-anuncio__cursor-trilho { transform: translateY(calc((var(--id-cur, 1) - 1) * 62%)); }
}


/* Linguagem C | Grade ----------------------------------------------------- */
/* Fundo azul da marca. Uma grade de pontos (a textura da identidade) começa
   espalhada e se alinha no lugar exato; no fim, um ponto acende. Metáfora:
   dado solto vira leitura. Desenhada em canvas, ~1s, uma vez. Os pontos ficam
   mais fortes no canto superior direito e somem sob o texto. */

.id-anuncio--c {
  background: var(--id-azul);
  color: #FFFFFF;
}
.id-anuncio__grade {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.id-anuncio--c .id-anuncio__marca { color: #FFFFFF; }
.id-anuncio--c .id-anuncio__apoio { color: #FFFFFF; }
.id-anuncio--c .id-anuncio__botao { background: #FFFFFF; color: var(--id-marinho); }
.id-anuncio--c:hover .id-anuncio__botao { background: rgba(255, 255, 255, 0.90); }


/* ---------- Quadros de abertura (opcionais) ------------------------------- */
/* Formato da copy em quadros: frases curtas que entram e saem no lugar do
   título antes do quadro final. Mesma fonte e peso do título. Durante a
   sequência (is-seq) título, apoio e botão esperam fora de cena. */

.id-anuncio__quadros {
  position: absolute;
  top: 56px;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  pointer-events: none;
}
.id-anuncio__quadro {
  grid-area: 1 / 1;
  align-self: end;
  font-family: var(--id-fonte-d);
  font-size: clamp(20px, 8.4cqi, 32px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 360ms ease-out, transform 560ms var(--id-ease);
}
.id-anuncio__quadro.is-ativo { opacity: 1; transform: none; }
.id-anuncio__quadro.is-saindo {
  opacity: 0;
  transform: translateY(-12px);
  transition-duration: 220ms, 260ms;
}
.id-anuncio--b .id-anuncio__quadros { top: 66px; }

/* B e C: o quadro final entra por opacidade (o texto deles não usa máscara). */
.id-anuncio--b.tem-quadros .id-anuncio__titulo,
.id-anuncio--b.tem-quadros .id-anuncio__apoio,
.id-anuncio--b.tem-quadros .id-anuncio__rodape,
.id-anuncio--c.tem-quadros .id-anuncio__titulo,
.id-anuncio--c.tem-quadros .id-anuncio__apoio,
.id-anuncio--c.tem-quadros .id-anuncio__rodape {
  transition: opacity 420ms ease-out, transform 520ms var(--id-ease);
}
.id-anuncio--b.tem-quadros .id-anuncio__apoio,
.id-anuncio--c.tem-quadros .id-anuncio__apoio { transition-delay: 120ms; }
.id-anuncio--b.tem-quadros .id-anuncio__rodape,
.id-anuncio--c.tem-quadros .id-anuncio__rodape { transition-delay: 200ms; }
.id-anuncio--b.is-seq .id-anuncio__titulo,
.id-anuncio--b.is-seq .id-anuncio__apoio,
.id-anuncio--b.is-seq .id-anuncio__rodape,
.id-anuncio--c.is-seq .id-anuncio__titulo,
.id-anuncio--c.is-seq .id-anuncio__apoio,
.id-anuncio--c.is-seq .id-anuncio__rodape { opacity: 0; transform: translateY(8px); }

@container id-slot (min-height: 420px) {
  .id-anuncio__quadros { top: 72px; right: 24px; bottom: 24px; left: 24px; }
  .id-anuncio--b .id-anuncio__quadros { top: 88px; }
}
@container id-slot (min-height: 420px) and (min-width: 201px) {
  .id-anuncio--b .id-anuncio__quadros { left: 40px; right: 20px; }
}
@container id-slot (max-width: 200px) {
  .id-anuncio__quadros { right: 14px; left: 14px; bottom: 16px; }
  .id-anuncio__quadro { font-size: 20px; }
}


/* ---------- Troca de criativo e reinício ---------------------------------- */
.id-anuncio.is-reset,
.id-anuncio.is-reset *,
.id-anuncio.is-reset *::after { transition: none !important; }


/* ---------- Movimento reduzido -------------------------------------------- */
/* O script não aplica o estado inicial (is-pre) quando o visitante pede
   movimento reduzido: o criativo nasce no quadro final. Aqui só se tira o
   deslocamento dos estados de hover; a troca de cor continua. O atributo
   data-id-movimento="reduzido" no <html> simula a preferência na prévia. */
@media (prefers-reduced-motion: reduce) {
  .id-faixa__corpo:hover .id-faixa__acao svg,
  .id-anuncio:hover .id-anuncio__botao svg { transform: none; }
  .id-anuncio *,
  .id-anuncio *::after { transition-duration: 1ms !important; transition-delay: 0ms !important; }
}
[data-id-movimento="reduzido"] .id-faixa__corpo:hover .id-faixa__acao svg,
[data-id-movimento="reduzido"] .id-anuncio:hover .id-anuncio__botao svg { transform: none; }
[data-id-movimento="reduzido"] .id-anuncio *,
[data-id-movimento="reduzido"] .id-anuncio *::after { transition-duration: 1ms !important; transition-delay: 0ms !important; }
