/* ============================================================
   Cupom Marketplace — folha de estilo do tenant.

   Cobre a marcação própria do template (.cm-*) E a marcação que o
   motor emite para listagens, artigos, paginação, FAQ e ofertas.

   Duas regras não óbvias, e o porquê delas:

   1. Cartões de artigo (.post-card-media) e a arte do topo do artigo
      (.article-hero-media) podem receber DUAS coisas diferentes: a foto
      real do post, ou o cartão gerado pelo motor. O cartão gerado de
      listagem (/thumb/) desenha O TÍTULO dentro da imagem — e o cartão
      repete o mesmo título logo abaixo. Por isso a imagem gerada é
      escondida por seletor de origem (img[src^="/thumb/"]) e a foto real
      continua aparecendo. Nada de esconder tudo.
   2. O cartão de topo (/hero/) não tem texto: é arte. Ele entra como
      FAIXA larga, nunca como quadrado 1:1 — 1080×1080 numa coluna de
      leitura vira uma imagem de 780px de altura antes do primeiro
      parágrafo, que foi exatamente o que deixou o artigo com cara de
      página quebrada.
   ============================================================ */

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

:root {
  --brand:   #7c3aed;
  --brand-2: #e11d48;
  --accent:  #e11d48;
  --amber:   #f59e0b;
  --ink:     #0f172a;
  --paper:   #f7f8fc;
  --surface: #ffffff;

  --ink-2:  #334155;
  --body:   #46536b;
  --muted:  #64748b;
  --faint:  #94a3b8;
  --line:   #e6e9f2;
  --line-2: #eef1f7;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .12);

  --font-display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1160px;
  --measure: 72ch;   /* largura de leitura do corpo do artigo */
  --header-h: 68px;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Âncoras do índice não podem parar debaixo do cabeçalho fixo. */
:target { scroll-margin-top: calc(var(--header-h) + 18px); }
.article-body h2, .article-body h3 { scroll-margin-top: calc(var(--header-h) + 18px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.22;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 700;
  text-wrap: balance;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

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

/* ---------------------------------------------------------- header --- */

.cm-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.cm-header-in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.cm-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); letter-spacing: -.02em; }
.cm-brand:hover { text-decoration: none; }
.cm-brand img { height: 32px; width: auto; }

.cm-nav { display: flex; gap: 4px; margin-left: auto; }
.cm-nav a {
  color: var(--ink-2); font-weight: 550; font-size: .94rem;
  padding: 8px 14px; border-radius: 999px; transition: background .14s, color .14s;
}
.cm-nav a:hover { color: var(--brand); background: rgba(124, 58, 237, .08); text-decoration: none; }

.cm-burger { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.cm-burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.cm-burger span + span { margin-top: 5px; }

.cm-mobile { display: none; flex-direction: column; padding: 8px 20px 16px; border-top: 1px solid var(--line); background: #fff; }
.cm-mobile a { padding: 12px 0; color: var(--ink-2); font-weight: 550; border-bottom: 1px solid var(--line-2); }

@media (max-width: 860px) {
  .cm-nav { display: none; }
  .cm-burger { display: block; }
  .cm-mobile { display: flex; }
  .cm-mobile[hidden] { display: none; }
}

/* ------------------------------------------------------------ hero --- */

.cm-hero {
  position: relative;
  padding: clamp(44px, 6vw, 80px) 0 clamp(38px, 5vw, 64px);
  background:
    radial-gradient(1000px 420px at 12% -10%, rgba(124, 58, 237, .15), transparent 60%),
    radial-gradient(820px 380px at 88% 0%, rgba(225, 29, 72, .12), transparent 62%),
    linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.cm-eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand);
  background: rgba(124, 58, 237, .09); border: 1px solid rgba(124, 58, 237, .18);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
/* 22ch mantém o título em duas linhas cheias: em 17ch a última palavra
   ficava sozinha numa terceira linha ("lojas"), que é o tipo de detalhe
   que faz uma home parecer amadora. */
.cm-hero h1 {
  font-size: clamp(2rem, 2.9vw + 1.05rem, 3.25rem);
  max-width: 22ch; margin: 0 auto .5em; letter-spacing: -.03em;
  background: linear-gradient(120deg, var(--ink) 32%, var(--brand) 78%, var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cm-lead { font-size: clamp(1rem, .45vw + .9rem, 1.16rem); color: var(--muted); max-width: 58ch; margin: 0 auto; }

/* ---------------------------------------------------------- busca --- */

.cm-search { position: relative; max-width: 620px; margin: 32px auto 0; text-align: left; }
.cm-search-box {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 8px 6px 20px; box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.cm-search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(124, 58, 237, .12), var(--shadow); }
.cm-search-box svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.cm-search-box input {
  flex: 1; border: 0; outline: 0; background: none;
  font: inherit; font-size: 1.02rem; color: var(--ink); padding: 12px 0; min-width: 0;
}
.cm-search-box input::placeholder { color: var(--faint); }

.cm-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 40;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; max-height: 380px; overflow-y: auto;
}
.cm-results a {
  display: block; padding: 11px 14px; border-radius: var(--radius-sm);
  color: var(--ink); font-size: .95rem; font-weight: 500;
}
.cm-results a:hover { background: #f4f2ff; color: var(--brand); text-decoration: none; }
.cm-results .cm-all { border-top: 1px solid var(--line-2); margin-top: 6px; color: var(--brand); font-weight: 600; }
.cm-empty { margin: 0; padding: 14px; color: var(--muted); font-size: .93rem; }

/* ----------------------------------------------------------- chips --- */

.cm-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.cm-chip {
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px;
  transition: transform .12s, border-color .12s, color .12s, box-shadow .12s;
}
.cm-chip:hover { color: var(--brand); border-color: rgba(124, 58, 237, .45); transform: translateY(-1px); box-shadow: var(--shadow); }

.cm-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; list-style: none; margin: 28px 0 0; padding: 0; }
.cm-trust li { position: relative; padding-left: 22px; font-size: .88rem; color: var(--muted); }
.cm-trust li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 13px; height: 8px;
  border-left: 2px solid #10b981; border-bottom: 2px solid #10b981; transform: rotate(-45deg);
}

/* ------------------------------------------------------------ main --- */

.cm-main { padding: clamp(36px, 4.5vw, 60px) 0; }
.cm-main.is-bleed { padding: 0; }

.section { padding: clamp(28px, 3.5vw, 48px) 0; }
.section-head { margin-bottom: 26px; }
.section-head h2, .cm-sec-head h2 { font-size: clamp(1.45rem, 1.2vw + 1.05rem, 2rem); margin: 0 0 .3em; }
/* Régua curta acima do título de seção: dá hierarquia sem pesar. */
.section-head h2::before {
  content: ""; display: block; width: 38px; height: 3px; border-radius: 2px; margin-bottom: 14px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.cm-sec-head { text-align: center; max-width: 58ch; margin: 0 auto 34px; }
.cm-sec-head p { color: var(--muted); margin: 0; }
.eyebrow { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--brand); margin-bottom: .5em; }
.lead { font-size: 1.08rem; color: var(--body); }
.muted { color: var(--muted); }
.display { font-family: var(--font-display); }

/* --------------------------------------------- listagem de artigos --- */

.post-grid, .card-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  padding: 0; margin: 0; list-style: none;
}

.post-card, .card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.post-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  opacity: 0; transition: opacity .16s ease;
}
.post-card:hover, .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #dfe3ee; }
.post-card:hover::before { opacity: 1; }

.post-card-media { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #f1f0ff, #fdf2f6); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
/* O cartão gerado de listagem já carrega o título desenhado dentro dele;
   com o mesmo título logo abaixo, o cartão dizia tudo duas vezes. A arte
   gerada sai, a foto de verdade fica. */
.post-card-media img[src^="/thumb/"] { display: none; }
.post-card-media:has(img[src^="/thumb/"]) { display: none; }

.post-card-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; gap: 9px; }
.post-card-title { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.34; margin: 0; font-weight: 650; letter-spacing: -.015em; }
.post-card-title a { color: var(--ink); }
.post-card-title a:hover { color: var(--brand); text-decoration: none; }
.post-card-excerpt {
  color: var(--muted); font-size: .92rem; line-height: 1.6; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-meta, .post-meta { font-size: .78rem; color: var(--faint); margin-top: auto; padding-top: 10px; }
.post-card-meta { border-top: 1px solid var(--line-2); }
/* Rodapé do cartão: fixa no fim (margin-top:auto), então os cartões de uma
   mesma linha terminam alinhados em vez de deixarem um vão morto embaixo do
   resumo mais curto. Sempre visível — some no hover não ajuda ninguém. */
.post-card-body::after {
  content: "Ler o guia →"; margin-top: auto; padding-top: 12px;
  font-size: .8rem; font-weight: 650; color: var(--muted);
  transition: color .16s ease;
}
.post-card:hover .post-card-body::after { color: var(--brand); }
/* Com data no cartão (listagem do blog) a data já é o rodapé. */
.post-card-body:has(.post-card-meta)::after { content: none; }

.card { padding: 22px; }
.card h3 { font-size: 1.05rem; margin: .5em 0 0; }
.card-tag, .post-cat, .chip {
  display: inline-block; align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand);
  background: rgba(124, 58, 237, .09); border-radius: 999px; padding: 5px 11px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------------------------------------------------- artigo --- */

.article-hero { padding: clamp(22px, 2.6vw, 36px) 0 4px; }
.article-hero-copy { max-width: var(--measure); }
.article-hero h1, .article h1 {
  font-size: clamp(1.85rem, 2.2vw + 1.05rem, 2.6rem);
  margin-bottom: .4em; letter-spacing: -.03em; line-height: 1.16;
}
.article-lead { font-size: 1.12rem; color: var(--body); line-height: 1.65; margin: 0; max-width: 62ch; }

.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }

.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: .84rem; color: var(--muted); margin: 0 0 18px; padding: 0;
}
.post-meta strong { color: var(--ink-2); font-weight: 600; }

/* Foto real do post: faixa larga, nunca o quadrado 1080×1080 que o motor
   declara no HTML — 1:1 numa coluna de leitura empurra o texto para baixo
   da dobra. A arte GERADA (/hero/) não entra: é um glifo decorativo sem
   informação nenhuma, e 44 mil artigos abrindo com o mesmo borrão rosa
   parecem imagem quebrada, não capa. Sem ela o guia começa pelo texto. */
.article-hero-media {
  margin: 26px 0 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: linear-gradient(135deg, #f1f0ff, #fdf2f6);
  aspect-ratio: 5 / 2; max-height: 380px;
}
.article-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.article-hero-media:has(img[src^="/hero/"]) { display: none; }
/* Sem :has() (navegador antigo): a faixa ainda não pode virar um quadrado. */
@supports not selector(:has(img)) {
  .article-hero-media img[src^="/hero/"] { display: none; }
}

/* Índice fixo à direita em telas largas; acima do texto no resto.
   Sem índice (artigo curto, páginas legais) não existe segunda coluna para
   equilibrar a página: aí a coluna de leitura é centralizada, em vez de ficar
   encostada à esquerda com meia tela vazia à direita. */
.article { max-width: var(--wrap); margin-inline: auto; }
.article:has(.article-shell.solo) { max-width: var(--measure); }
.article-shell { display: block; margin-top: 26px; }
.article-main { display: block; min-width: 0; }
.article-body { max-width: var(--measure); }
@supports not selector(:has(div)) {
  .article { max-width: var(--measure); }
}

@media (min-width: 1040px) {
  .article-shell:not(.solo) {
    display: grid; grid-template-columns: minmax(0, 1fr) 262px;
    gap: clamp(32px, 4vw, 64px); align-items: start;
  }
  .article-shell:not(.solo) .article-main { grid-column: 1; grid-row: 1; }
  .article-shell:not(.solo) .toc {
    grid-column: 2; grid-row: 1; margin: 0;
    position: sticky; top: calc(var(--header-h) + 20px);
    max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto;
  }
}

.toc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; margin: 0 0 28px;
}
.toc-h {
  font-family: var(--font-display); font-weight: 700; font-size: .74rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px;
}
.toc ol, .toc ul { margin: 0; padding-left: 1.15em; color: var(--faint); font-size: .9rem; }
.toc li { margin: .42em 0; }
.toc a { color: var(--ink-2); font-size: .93rem; line-height: 1.45; }
.toc a:hover { color: var(--brand); }

/* Ritmo do texto por margem INFERIOR, não por `> * + *`: a regra de irmãos
   (0,1,0) perde para `.article-body p` (0,1,1), então os parágrafos ficavam
   colados uns nos outros — o texto corrido que fazia o artigo parecer um
   despejo de palavras. Cada elemento carrega o próprio espaçamento. */
.article-body { font-size: 1.05rem; color: var(--body); }
.article-body > * { margin: 0 0 1.2em; }
.article-body > *:last-child { margin-bottom: 0; }
.article-body h2 {
  font-size: clamp(1.35rem, .9vw + 1.05rem, 1.75rem); color: var(--ink);
  margin: 1.9em 0 .55em; padding-top: .75em; border-top: 1px solid var(--line-2);
}
.article-body h3 { font-size: 1.2rem; color: var(--ink); margin: 1.7em 0 .5em; }
.article-body p { margin: 0 0 1.2em; }
.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.article-body li + li { margin-top: .45em; }
.article-body li::marker { color: var(--brand); }
.article-body strong { font-weight: 650; color: var(--ink); }
.article-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.article-body a:hover { text-decoration-thickness: 2px; }
.article-body blockquote {
  margin: 1.6em 0; padding: 2px 0 2px 20px;
  border-left: 3px solid var(--brand); color: var(--ink-2); font-style: italic;
}
.article-body img { border-radius: var(--radius-sm); margin-inline: auto; }
.article-body figure { margin: 1.6em 0; }
.article-body figcaption { font-size: .85rem; color: var(--faint); margin-top: 8px; text-align: center; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* Tabelas: o motor já envolve cada uma em .table-wrap e etiqueta as células. */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); }
.article-body table { width: 100%; border-collapse: collapse; font-size: .94rem; background: var(--surface); }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; }
.article-body th { background: #f8f7ff; font-weight: 650; color: var(--ink); }
@media (max-width: 640px) {
  .article-body thead { display: none; }
  .article-body tr { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--surface); }
  .article-body td { display: flex; gap: 12px; border: 0; border-bottom: 1px solid var(--line-2); padding: 10px 13px; }
  .article-body td:last-child { border-bottom: 0; }
  .article-body td[data-label]::before {
    content: attr(data-label); flex: 0 0 40%;
    font-weight: 650; color: var(--muted); font-size: .82rem;
  }
}

.faq { margin-top: 42px; }
.faq h2 { font-size: clamp(1.35rem, .9vw + 1.05rem, 1.75rem); }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; }
.faq-item summary { cursor: pointer; font-weight: 600; font-family: var(--font-display); color: var(--ink); }
.faq-item[open] { border-color: rgba(124, 58, 237, .3); }
.faq-a { color: var(--body); padding-top: 8px; }

.post-links, .blk-more { margin-top: 38px; }
.post-links h2 { font-size: 1.2rem; }
.pillar-link {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
  transition: border-color .14s, box-shadow .14s;
}
.pillar-link:hover { border-color: rgba(124, 58, 237, .4); box-shadow: var(--shadow); text-decoration: none; }
.pl-eyebrow { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); font-weight: 700; }
.pl-title { font-weight: 600; font-family: var(--font-display); }
.pl-arrow { margin-left: auto; color: var(--muted); }
.post-links .chip {
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  text-transform: none; letter-spacing: 0; font-size: .88rem; font-weight: 550; padding: 9px 15px;
}
.post-links .chip:hover { border-color: rgba(124, 58, 237, .4); color: var(--brand); text-decoration: none; }

/* --------------------------------------------------- ofertas (CTA) --- */

.post-promo { margin: 30px 0; max-width: 100%; }
.inline-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  background: linear-gradient(135deg, #faf7ff, #fff5f8);
  border: 1px solid rgba(124, 58, 237, .2);
  border-radius: var(--radius); padding: 22px 24px; margin: 32px 0;
}
.inline-cta-body { color: var(--body); flex: 1; min-width: 220px; }
.inline-cta-body strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }

/* ------------------------------------------------------- botões etc --- */

.cm-btn, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 650; font-size: .95rem;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s, box-shadow .12s, opacity .12s;
}
.cm-btn, .btn--accent {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; box-shadow: 0 6px 18px rgba(225, 29, 72, .26);
}
.cm-btn:hover, .btn--accent:hover { transform: translateY(-1px); text-decoration: none; color: #fff; box-shadow: 0 10px 26px rgba(225, 29, 72, .32); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.cm-btn-lg, .btn--lg { padding: 16px 34px; font-size: 1.02rem; }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 44px; }
.pagination a, .pagination span {
  min-width: 42px; text-align: center; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: .92rem;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pagination .is-current, .pagination [aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination span:empty { display: none; }   /* nunca uma caixa em branco */

/* ----------------------------------------------------------- passos --- */

.cm-steps { padding: clamp(42px, 5.5vw, 72px) 0; background: var(--surface); border-top: 1px solid var(--line); }
.cm-step-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); list-style: none; margin: 0; padding: 0; }
.cm-step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.cm-step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-family: var(--font-display); font-weight: 700;
}
.cm-step h3 { font-size: 1.08rem; margin: 0 0 .4em; }
.cm-step p { margin: 0; color: var(--muted); font-size: .94rem; }

/* -------------------------------------------------------------- CTA --- */

.cm-cta { padding: 0 0 clamp(42px, 5.5vw, 72px); }
.cm-cta-card {
  background: linear-gradient(135deg, #17123a, #3b1046);
  border-radius: 24px; padding: clamp(34px, 5vw, 56px); text-align: center; color: #fff;
}
.cm-cta-card h2 { color: #fff; font-size: clamp(1.45rem, 1.5vw + 1.05rem, 2.1rem); }
.cm-cta-card p { color: rgba(255, 255, 255, .78); max-width: 56ch; margin: 0 auto 26px; }

/* ----------------------------------------------------------- rodapé --- */

.cm-footer { background: #0d1220; color: #94a3b8; padding: 52px 0 30px; }
.cm-foot-top { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; align-items: flex-start; }
.cm-foot-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: #fff; }
.cm-foot-tag { margin: .4em 0 0; font-size: .92rem; max-width: 46ch; }
.cm-foot-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.cm-foot-nav a { color: #cbd5e1; font-size: .92rem; }
.cm-foot-nav a:hover { color: #fff; }
.cm-disclosure {
  margin: 30px 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .83rem; line-height: 1.6; color: #7e8ba3; max-width: 92ch;
}
.cm-copy { margin-top: 18px; font-size: .83rem; color: #64748b; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .cm-hero { padding-top: 34px; }
  .post-grid, .card-grid { grid-template-columns: 1fr; }
  .article-hero-media:has(img[src^="/hero/"]) { aspect-ratio: 3 / 1; }
  .cm-cta-card { padding: 30px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
