/* Layout: faixas horizontais de largura total; conteúdo alinhado à esquerda em coluna de 1120px; fluxo "sistemas → um fluxo" como assinatura visual. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #ffffff;
  --surface: #f4f6f8;
  --text: #2e3438;
  --muted: #56606a;
  --brand: #0f5b5a;      /* Verde Petróleo: títulos, links, botões */
  --brand-dark: #0a4343; /* Verde Petróleo Escuro: faixas e rodapé */
  --support: #6fafa0;    /* Verde Claro de Apoio: só linhas e detalhes, nunca texto */
  --line: #d5dde2;
  --on-dark: #ffffff;
  --on-dark-muted: #d6e6e3;
  --danger: #b42318;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --step-0: 1.125rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.45rem, 2.6vw, 1.9rem);
  --step-3: clamp(2rem, 4.2vw, 3rem);
  --step-4: clamp(2.2rem, 4.2vw, 3.25rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1618; --surface: #152225; --text: #e4eaec; --muted: #a3b1b6;
    --brand: #7dbcae; --line: #27373b; --danger: #f97066; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1618; --surface: #152225; --text: #e4eaec; --muted: #a3b1b6;
  --brand: #7dbcae; --line: #27373b; --danger: #f97066; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(80px + env(safe-area-inset-top, 0px)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: var(--step-0)/1.65 var(--font); -webkit-text-size-adjust: 100%; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
.band :focus-visible, .site-footer :focus-visible { outline-color: var(--on-dark); }

h1, h2, h3 { color: var(--brand); line-height: 1.15; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 650; }
p { margin: 0; max-width: 68ch; }
ul, ol { margin: 0; }
.muted { color: var(--muted); }
.lead { font-size: var(--step-1); }
.small { font-size: 0.94rem; }

.wrap {
  max-width: 1160px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.stack { display: grid; gap: 14px; align-content: start; }
.stack-lg { display: grid; gap: 28px; }
section { padding-block: 96px; }
/* Fundos de seção (.alt, .band) e .section-head: ver Componentes da v3, "Seções e fundos alternados". */

.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; z-index: 40; }
.skip:focus { left: 8px; }

/* Cabeçalho */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: block; line-height: 0; flex: none; }
.brand img { width: 136px; height: auto; }
.logo-on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header .logo-on-light { display: none; }
  :root:not([data-theme="light"]) .site-header .logo-on-dark { display: block; }
}
:root[data-theme="dark"] .site-header .logo-on-light { display: none; }
:root[data-theme="dark"] .site-header .logo-on-dark { display: block; }
.nav-list { display: flex; gap: 24px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--text); text-decoration: none; font-size: 0.97rem; font-weight: 500; }
.nav-list a:hover { color: var(--brand); text-decoration: underline; }
.nav-list a[aria-current="page"] { color: var(--brand); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-list a.btn { color: #fff; text-decoration: none; padding: 0.5rem 1rem; font-size: 0.95rem; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 8px 14px; font: inherit; font-size: 0.95rem; cursor: pointer; }

/* Botões */
.btn { display: inline-block; background: #0f5b5a; color: #fff; padding: 0.85rem 1.4rem; border-radius: 6px; font-weight: 600; text-decoration: none; border: 2px solid #0f5b5a; font: 600 1rem/1.3 var(--font); cursor: pointer; text-align: center; }
.btn:hover { background: #0a4343; border-color: #0a4343; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: transparent; color: var(--brand); border-color: var(--brand); text-decoration: underline; }
.band .btn { background: #fff; color: #0a4343; border-color: #fff; }
.band .btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero das páginas internas (o hero escuro da Home está em Componentes da v3) */
.page-hero { padding-block: 56px 48px; border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-top: 18px; }

/* Blocos */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; }
.split > * { min-width: 0; }

.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 0.8fr 1.2fr 1.4fr; gap: 24px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.row > * { min-width: 0; }
.row h3 a { text-decoration: none; color: inherit; }
.row h3 a:hover { text-decoration: underline; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 56px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-2 > *, .grid-3 > * { min-width: 0; }
.ruled > * { border-top: 1px solid var(--line); padding-top: 16px; }
.ruled-strong > * { border-top: 4px solid var(--brand); padding-top: 14px; }

/* Fases (sequência real: numeração faz sentido) */
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 8px 0 0; padding: 0; list-style: none; counter-reset: fase; }
.phases > li { position: relative; counter-increment: fase; border-top: 2px solid var(--phase-line, var(--support)); padding-top: 30px; font-size: 0.98rem; display: grid; gap: 8px; align-content: start; min-width: 0; }
.phases > li::before { content: counter(fase); position: absolute; top: -15px; left: 0; width: 28px; height: 28px; border-radius: 50%; background: #0f5b5a; border: 2px solid var(--phase-line, var(--support)); color: #fff; font-size: 0.85rem; font-weight: 700; display: grid; place-items: center; }
.phases h3 { font-size: 1.1rem; }
.phases .k { font-weight: 650; }
.alt .phases, .page .phases { --phase-line: var(--brand); }

/* Lista com marca de verificação */
.checks { list-style: none; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 0.4em; width: 10px; height: 6px; border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg); }

/* Selo de exemplo */
.tag { display: inline-block; justify-self: start; border: 1px solid var(--brand); color: var(--brand); padding: 2px 12px; border-radius: 99px; font-size: 0.88rem; }

/* Captura do painel */
.shot { margin: 0; display: grid; gap: 10px; }
.shot img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px -18px rgba(10, 67, 67, 0.45); }
.shot figcaption { font-size: 0.9rem; color: var(--muted); }

/* Fluxo do cenário (HTML, empilha no celular) */
.flowline { display: grid; grid-template-columns: 1fr auto 1.6fr auto 1fr; align-items: stretch; gap: 0; margin-top: 8px; }
.flowline > * { min-width: 0; }
.fnode { border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 18px; display: grid; gap: 6px; align-content: start; }
.fnode .role { font-size: 0.88rem; color: var(--muted); }
.fnode.core { border: 2px solid var(--brand); }
.fnode ol { padding-left: 1.2em; display: grid; gap: 6px; font-size: 0.97rem; }
.farrow { width: 44px; position: relative; }
.farrow::before { content: ""; position: absolute; left: 6px; right: 10px; top: 50%; border-top: 3px solid var(--support); }
.farrow::after { content: ""; position: absolute; right: 6px; top: calc(50% - 6px); border: 7px solid transparent; border-left-color: var(--support); border-right: 0; }

/* Tabelas */
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
th { color: var(--brand); font-weight: 650; }
td code { font-size: 0.92em; }

/* Perguntas frequentes */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 16px; }
.faq summary { cursor: pointer; font-weight: 650; color: var(--text); list-style-position: outside; }
.faq details[open] summary { color: var(--brand); }
.faq details p { margin-top: 10px; }

/* Dados da empresa */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }

/* Formulário */
form { display: grid; gap: 14px; }
label { font-weight: 600; font-size: 0.95rem; display: grid; gap: 6px; }
input, textarea, select { font: inherit; padding: 0.7rem 0.8rem; border: 1px solid var(--muted); border-radius: 6px; background: var(--bg); color: var(--text); width: 100%; }
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.check input { width: 20px; height: 20px; padding: 0; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.form-note { font-size: 0.9rem; color: var(--muted); }
.form-status { min-height: 1.5em; font-size: 0.95rem; }
.form-status.error { color: var(--danger); }
.mail-list { list-style: none; padding: 0; display: grid; gap: 18px; }
.mail-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mail-line code { font-family: var(--font); font-size: 1.05rem; font-weight: 600; color: var(--brand); user-select: all; overflow-wrap: anywhere; }
.copy { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 4px 10px; font: inherit; font-size: 0.88rem; cursor: pointer; }

/* Faixa de chamada */
.cta-band .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta-band .wrap > * { min-width: 0; }

/* Rodapé */
.site-footer { background: var(--brand-dark); color: var(--on-dark-muted); padding-block: 48px 36px; font-size: 0.95rem; }
.site-footer a { color: var(--on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid > * { min-width: 0; }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer-grid h2 { font-size: 1rem; color: var(--on-dark); font-weight: 650; margin-bottom: 10px; letter-spacing: 0; }
.footer-logo { width: 150px; }
.brands-note { margin-top: 28px; font-size: 0.875rem; max-width: 80ch; }
.legal { border-top: 1px solid rgba(255,255,255,0.2); margin-top: 32px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.9rem; }

@media (max-width: 960px) {
  .split, .cta-band .wrap { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .flowline { grid-template-columns: 1fr; }
  .farrow { width: auto; height: 36px; }
  .farrow::before { left: 50%; right: auto; top: 4px; bottom: 10px; border-top: 0; border-left: 3px solid var(--support); }
  .farrow::after { left: calc(50% - 5.5px); right: auto; top: auto; bottom: 2px; border: 7px solid transparent; border-top-color: var(--support); border-bottom: 0; }
  .menu-btn { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px)); }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 16px; }
  section { padding-block: 56px; }
}
@media (max-width: 560px) {
  .phases, .footer-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
}

/* Utilitários de espaçamento (sem estilos inline, compatível com CSP) */
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-28 { margin-top: 28px; }
.mt-30 { margin-top: 30px; }
.mt-32 { margin-top: 32px; }
.h3like { font-size: var(--step-2); }
.phases.phases-vertical { grid-template-columns: 1fr; row-gap: 32px; margin-top: 18px; }

/* =====================================================================
   COMPONENTES DA v3: sistema visual reutilizável
   Usam só as variáveis de :root (cores, --font, --step-*), então servem
   em qualquer página. Cada bloco traz o HTML mínimo de uso.

   Todos os componentes seguem o ritmo de fundos descrito em "Seções e fundos
   alternados", logo abaixo.
   ===================================================================== */

/* ---- Utilitário e ícones ----
   Ícones Lucide (licença ISC, ver src/img/icons/LICENSE.txt), embutidos pelo
   build com {{icon:nome}}; herdam a cor do texto.
   <span class="ic-box">{{icon:search}}</span> */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 24px; height: 24px; flex: none; }
.ic-box { flex: none; width: 52px; height: 52px; border-radius: 8px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--brand); transition: background-color 0.2s, color 0.2s; }
.ic-box .ic { width: 28px; height: 28px; }

/* ---- Seções e fundos alternados ----
   Sem classe = branco; .alt = cinza claro (--surface); .band = verde escuro
   (--brand-dark, com texto claro). Alterne branco e cinza de uma seção para a
   outra, sem repetir a mesma cor nem o mesmo layout em seções vizinhas. Escuro
   só no hero e na chamada final. Cartões e painéis brancos (.card, .panel)
   destacam-se sobre o cinza; sobre o branco use o contorno do próprio cartão.
   Respiro: 96 px no desktop e 56 px no celular (regra `section`); o hero e a
   faixa de destaques têm respiro próprio, abaixo.
   <section class="alt"><div class="wrap">
     <div class="section-head"><h2>Título</h2><p class="muted">Subtítulo</p></div> … */
.alt { background: var(--surface); }
.band { background: var(--brand-dark); color: var(--on-dark); }
.band h1, .band h2, .band h3 { color: var(--on-dark); }
.band p, .band li { color: var(--on-dark-muted); }
.band a { color: var(--on-dark); }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; }

/* Botão em fundo escuro: passagem do mouse */
.band .btn:hover { background: #e4eeec; border-color: #e4eeec; }

/* ---- Hero escuro com diagrama de fluxo ----
   <section class="hero band"><div class="wrap hero-grid">
     <div class="stack-lg">título, .lead, .actions</div>
     <div class="flow">…svg.flow-svg…</div>
   </div></section>
   Duas colunas no desktop; no celular o diagrama (.flow-tall) vem abaixo do texto. */
.hero { padding-block: 80px 96px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero .lead { color: #fff; font-size: 1.35rem; line-height: 1.55; }
.flow { min-width: 0; }
.flow-svg { display: block; width: 100%; height: auto; }
.flow-tall { display: none; }
.flow-svg .lines { fill: none; stroke: var(--support); stroke-width: 4; stroke-linecap: round; }
.flow-svg .lines .main { stroke: #fff; stroke-width: 8; }
.flow-svg .nodes rect { fill: rgba(255, 255, 255, 0.1); stroke: rgba(255, 255, 255, 0.55); stroke-width: 2; }
.flow-svg .nodes text { fill: #fff; font: 600 20px var(--font); }
.flow-svg .out rect { fill: #fff; }
.flow-svg .out text { fill: #0a4343; font: 700 21px var(--font); }
.flow-svg .note { fill: var(--on-dark-muted); font: 500 16px var(--font); }
.flow-svg .flow-dots circle { fill: #fff; stroke: #0a4343; stroke-width: 2.5; }
.flow-tall .nodes text { font-size: 16px; }
.flow-tall .out text { font-size: 20px; }
@media (prefers-reduced-motion: reduce) { .flow-dots { display: none; } }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 48px 56px; }
  .flow-wide { display: none; }
  .flow-tall { display: block; max-width: 420px; margin-inline: auto; }
}
/* Hero interno (topo das páginas internas): mesmo hero escuro, compacto e sem diagrama.
   <section class="hero hero--inner band"><div class="wrap stack"><h1>…</h1><p class="lead">…</p></div></section> */
.hero--inner { padding-block: 64px 72px; }
.band .tag { border-color: var(--on-dark); color: var(--on-dark); }
@media (max-width: 960px) { .hero--inner { padding-block: 40px 48px; } }

/* ---- Faixa de destaques (números grandes) ----
   <section class="stat-strip"><div class="wrap"><ul class="stats">
     <li class="stat"><p class="stat-n">10+ <span>anos</span></p><p class="stat-t">legenda</p></li> …
   </ul></div></section>
   Número com aria-hidden e texto equivalente em .sr-only. */
section.stat-strip { padding-block: 64px; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat { border-left: 4px solid var(--support); padding-left: 24px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.stat p { margin: 0; }
.stat-n { font-size: clamp(2.75rem, 5.5vw, 4rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--brand); }
.stat-n span { font-size: 0.45em; font-weight: 600; letter-spacing: 0; }
.stat-t { font-size: 1.0625rem; line-height: 1.5; color: var(--text); }
@media (max-width: 960px) {
  .stats { grid-template-columns: 1fr; gap: 28px; }
  section.stat-strip { padding-block: 48px; }
}

/* ---- Destaque grande, painel e lista com ícone ----
   <div class="split-even"> coluna com .bigstat | .panel com .icon-list </div>
   .bigstat: .bigstat-label (origem do dado), .bigstat-n, .bigstat-t e .source (fonte com link). */
.split-even { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split-even > * { min-width: 0; }
.bigstat { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 28px; }
.bigstat p { margin: 0; }
.bigstat-label { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.bigstat-n { font-size: clamp(4rem, 9vw, 6.5rem); font-weight: 700; line-height: 0.95; letter-spacing: -0.04em; color: var(--brand); }
.bigstat-t { font-size: 1.2rem; line-height: 1.5; max-width: 44ch; }
.source { font-size: 0.9rem; color: var(--muted); }
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 32px; }
.icon-list { list-style: none; margin: 0; padding: 0; display: grid; }
.icon-list li { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.icon-list li:last-child { border-bottom: 0; }
.icon-list li .ic { width: 26px; height: 26px; color: var(--brand); margin-top: 1px; }
@media (max-width: 960px) { .split-even { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 640px) { .panel { padding: 4px 20px; } }

/* ---- Cartões com ícone ----
   Base: <article class="card"><span class="ic-box">…</span><h3>…</h3><p>…</p></article>
   Cartão inteiro clicável (.card--link): o link fica no <h3>; o detalhe de .card-extra
   some no celular. Grade: .card-grid (3 por linha); .card-grid--3-2 faz 3 + 2.
   <div class="card-grid card-grid--3-2"><article class="card card--link">…</article> … */
.card { position: relative; display: flex; flex-direction: column; gap: var(--card-gap, 12px); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.card-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.card-grid > .card { grid-column: span 2; min-width: 0; }
.card-grid--3-2 > .card:nth-child(n+4) { grid-column: span 3; }
.card-extra { margin-top: auto; padding-top: 4px; }
.card-title { font-size: 1.35rem; margin-top: 4px; }
.card--link { transition: border-color 0.2s, box-shadow 0.2s; }
.card--link h3 { font-size: 1.35rem; margin-top: 4px; }
.card--link h3 a { color: inherit; text-decoration: none; }
.card--link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
.card--link h3 a:focus-visible { outline: none; }
.card--link:hover, .card--link:has(a:focus-visible) { border-color: var(--brand); box-shadow: 0 16px 32px -20px rgba(10, 67, 67, 0.5); }
.card--link:has(a:focus-visible) { outline: 3px solid var(--brand); outline-offset: 3px; }
.card--link:hover .ic-box, .card--link:has(a:focus-visible) .ic-box { background: var(--brand); color: var(--bg); }
.card--link:hover h3 a { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 960px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .card-grid > .card, .card-grid--3-2 > .card:nth-child(n+4) { grid-column: auto; }
  .card-grid > .card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .card-grid > .card:last-child { grid-column: auto; }
  .card-grid .card-extra { display: none; }
}

/* ---- Colunas com ícone (item sem borda) ----
   4 colunas: .grid-4. Para 2 ou 3 colunas use os itens dentro de .grid-2 ou .grid-3 (base do arquivo).
   <div class="grid-4"><div class="icon-item"><span class="ic-box">…</span><div class="stack"><h3>…</h3><p>…</p></div></div> … */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
.grid-4 > * { min-width: 0; }
.icon-item { display: grid; gap: 18px; align-content: start; }
.icon-item .ic-box { background: var(--bg); }
.icon-item h2, .icon-item h3 { font-size: 1.25rem; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4 { grid-template-columns: 1fr; } }

/* ---- Carrossel (rolagem nativa + scroll-snap; sem avanço automático) ----
   <div class="car-head"><div class="section-head">…</div><div class="car-controls" hidden>botões e .car-dots</div></div>
   <div class="car-viewport" role="region" aria-roledescription="carrossel" aria-label="…">
     <ul class="car-track"><li class="card car-card" role="group" aria-roledescription="slide" aria-label="1 de N">…</li></ul></div>
   Setas, indicadores e estado ficam em site.js (sem JavaScript, o trilho continua rolando).
   .mini = mini diagrama De → Para dentro do cartão. */
.car-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.car-head .section-head { margin-bottom: 0; }
.car-controls { display: flex; align-items: center; gap: 14px; }
.car-controls[hidden] { display: none; }
.car-btn { width: 48px; height: 48px; border-radius: 6px; border: 2px solid var(--brand); background: transparent; color: var(--brand); cursor: pointer; display: grid; place-items: center; padding: 0; }
.car-btn:hover { background: var(--brand); color: var(--bg); }
.car-btn[aria-disabled="true"] { opacity: 0.35; cursor: default; background: transparent; color: var(--brand); }
.car-btn .ic { width: 22px; height: 22px; stroke-width: 2.5; }
.car-dots { display: flex; gap: 4px; }
.car-dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.car-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--brand); }
.car-dot[aria-current="true"]::before { background: var(--brand); }
.car-viewport { position: relative; }
.car-viewport::after { content: ""; position: absolute; top: 0; right: 0; bottom: 20px; width: 64px; pointer-events: none; background: linear-gradient(to right, transparent, var(--surface)); transition: opacity 0.2s; }
.car-viewport.at-end::after { opacity: 0; }
.car-track { display: flex; gap: 20px; list-style: none; margin: 0; padding: 4px 4px 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; scrollbar-width: thin; }
@media (prefers-reduced-motion: no-preference) { .car-track { scroll-behavior: smooth; } }
.car-card { --card-gap: 20px; flex: 0 0 clamp(280px, 38%, 440px); scroll-snap-align: start; transition: box-shadow 0.2s; }
.car-card:hover, .car-card:focus-within { box-shadow: 0 14px 30px -18px rgba(10, 67, 67, 0.5); }
.car-title { display: flex; align-items: center; gap: 14px; }
.car-title h3 { font-size: 1.3rem; }
.mini { display: grid; justify-items: stretch; gap: 4px; }
.mini .mn { display: block; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 12px 16px; font-size: 1rem; font-weight: 600; line-height: 1.35; color: var(--text); text-align: center; }
.mini .mn.to { border: 2px solid var(--brand); background: var(--bg); }
.mini svg { width: 56px; height: 68px; justify-self: center; margin-left: 0; }
.mini svg path { fill: none; stroke: var(--support); stroke-width: 3; stroke-linecap: round; }
.mini svg polygon { fill: var(--brand); }
.car-card .more { margin-top: auto; font-weight: 600; }
.car-note { margin-top: 8px; font-size: 0.9rem; color: var(--muted); }

/* ---- Etapas (passo a passo) ----
   Base: etapas na vertical, ligadas por uma linha (celular e sem JavaScript).
   Com JavaScript no desktop (site.js): etapas numeradas em linha e o painel da fase em um cartão.
   <div class="steps" id="fases-steps"><div class="steps-list">
     <article class="step" id="fase-1"><h3>…</h3><p><span class="k">Rótulo:</span> texto</p>…</article> … */
.steps { margin-top: 8px; }
.steps-tabs { display: none; }
.steps-list { display: grid; margin: 0; padding: 0; counter-reset: fase; }
.step { counter-increment: fase; position: relative; display: grid; gap: 10px; align-content: start; padding: 0 0 36px 68px; min-width: 0; }
.step:last-child { padding-bottom: 8px; }
.step::before { content: counter(fase); position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--brand); color: var(--brand); background: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 52px; bottom: 6px; width: 3px; background: var(--support); }
.step h3 { font-size: 1.3rem; padding-top: 8px; }
.step .k { display: block; font-weight: 650; color: var(--brand); font-size: 0.95rem; }
.step p { max-width: 60ch; }
.steps--plain .step > p:first-child { padding-top: 10px; }
.steps-tab { position: relative; display: grid; justify-items: start; gap: 14px; background: none; border: 0; padding: 0; color: var(--text); font: 600 1.1rem/1.3 var(--font); text-align: left; cursor: pointer; }
.steps-tab .num { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--muted); background: var(--bg); color: var(--muted); display: grid; place-items: center; font-size: 1.1rem; font-weight: 700; }
.steps-tab:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 56px; right: -12px; height: 3px; background: var(--line); }
.steps-tab.done::after { background: var(--brand); }
.steps-tab.done .num { border-color: var(--brand); color: var(--brand); }
.steps-tab:hover .num { border-color: var(--brand); }
.steps-tab[aria-selected="true"] .num { background: var(--brand); border-color: var(--brand); color: var(--bg); }
.steps-tab:focus-visible { outline-offset: 6px; }
@media (min-width: 961px) {
  .steps--tabs .steps-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .steps--tabs .steps-list { display: block; margin-top: 32px; }
  .steps--tabs .step { display: none; padding: 0; }
  .steps--tabs .step::before, .steps--tabs .step::after { display: none; }
  .steps--tabs .step.active { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px 40px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 32px; }
  .steps--tabs .step h3 { display: none; }
}

/* ---- Movimento reduzido: sem transições nos componentes ---- */
@media (prefers-reduced-motion: reduce) {
  .car-viewport::after, .card--link, .car-card, .ic-box { transition: none; }
}
