/* Páginas de case — mesmo visual escuro da home nova.
   O texto longo usa cinza claro (não o cinza dos rótulos) e coluna estreita,
   para continuar confortável de ler no fundo escuro. */

:root {
  color-scheme: dark;
  --bg: #0b0b0e;
  --surface: #131317;
  --surface-2: #18181d;
  --line: #24242b;
  --text: #f2f2f3;
  --body: #d4d4d8;
  --muted: #a1a1aa;
  --dim: #8b8b95;
  --coral: #ff8a6b;
  --ok: #4ade80;
  --accent: var(--coral);
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--body); font-family: var(--sans); font-size: 1.125rem; line-height: 1.7; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--text); text-decoration-color: rgba(255, 138, 107, .6); text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--coral); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(255, 138, 107, .35); }
strong { color: var(--text); font-weight: 600; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), var(--max)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .03em; text-transform: uppercase; }

/* brilho do topo, na cor do case */
.glow { position: absolute; z-index: 0; left: 50%; top: -360px; width: min(1100px, 140vw); height: 700px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 45%, transparent), rgba(160, 90, 255, .22) 60%, transparent); filter: blur(40px); }

/* barra fixa */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(11, 11, 14, .65); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.bar.scrolled { border-bottom-color: var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; font-size: .92rem; }
.bar .me { font-weight: 600; text-decoration: none; white-space: nowrap; }
.bar nav { display: flex; gap: 1.6rem; }
.bar nav a { color: var(--muted); text-decoration: none; transition: color .15s ease; }
.bar nav a:hover { color: var(--text); }
.bar .right { display: flex; align-items: center; gap: .6rem; }
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .32rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .85rem; white-space: nowrap; color: var(--text); }
.pill.open::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .18); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--surface); }
.lang a { padding: .1rem .55rem; border-radius: 999px; text-decoration: none; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.lang a[aria-current] { background: var(--text); color: var(--bg); }

.btn { display: inline-flex; align-items: center; gap: .45rem; padding: .72rem 1.15rem; border-radius: 10px; font-weight: 500; font-size: .98rem; text-decoration: none; background: var(--text); color: var(--bg); transition: transform .15s ease, opacity .15s ease, border-color .15s ease; }
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { opacity: 1; border-color: #3a3a44; }

.seal { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); white-space: nowrap; padding: .38rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.seal::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.seal.facul::before { background: #f5a524; }
.seal.curso::before { background: #4f8dff; }

/* ---------- topo do case ---------- */
.case-top { position: relative; z-index: 1; padding: clamp(56px, 9vw, 110px) 0 0; }
.back { display: inline-flex; gap: .4rem; color: var(--muted); text-decoration: none; font-size: .92rem; margin-bottom: 2rem; }
.back:hover { color: var(--text); }
.case-top .tags { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.case-top .tags .yr { font-family: var(--mono); font-size: .75rem; color: var(--dim); }
.case-top h1 { margin: 1.2rem 0 0; max-width: 18ch; color: var(--text); font-size: clamp(2.3rem, 5.6vw, 4.4rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.045em; }
.case-top .lead { max-width: 56ch; margin: 1.4rem 0 0; color: var(--muted); font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.6; }

/* números grandes */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.numbers div { padding: 22px 20px 22px 0; }
.numbers div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.numbers b { display: block; color: var(--text); font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.numbers span { display: block; margin-top: .3rem; color: var(--dim); font-size: .9rem; line-height: 1.4; }

/* ficha: papel, duração, tipo, ferramentas */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; }
.facts div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.facts dt { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; color: var(--dim); }
.facts dd { margin: .25rem 0 0; color: var(--text); font-size: .98rem; line-height: 1.4; }

.cover { margin: clamp(40px, 6vw, 64px) 0 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }

/* ---------- corpo: índice lateral + texto ---------- */
.layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); margin-top: clamp(56px, 8vw, 96px); }
.toc { position: sticky; top: 96px; align-self: start; }
.toc p { margin: 0 0 .8rem; color: var(--dim); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; border-left: 1px solid var(--line); }
.toc a { display: block; padding: .3rem 0 .3rem 1rem; margin-left: -1px; border-left: 1px solid transparent; color: var(--dim); text-decoration: none; font-size: .9rem; line-height: 1.35; transition: color .15s ease, border-color .15s ease; }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--text); border-left-color: var(--accent); }

.doc { min-width: 0; }
.doc section > :not(.wide) { max-width: 46rem; }
.doc section { scroll-margin-top: 90px; }
.doc section + section { margin-top: clamp(64px, 8vw, 104px); }
.doc .num { color: var(--accent); }
.doc h2 { margin: .5rem 0 1.2rem; color: var(--text); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.12; }
.doc h3 { margin: 2.2rem 0 .6rem; color: var(--text); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.doc p { margin: 0 0 1.1em; }
.doc ul, .doc ol { margin: 0 0 1.2em; padding-left: 1.2em; }
.doc li { margin-bottom: .45em; }
.doc li::marker { color: var(--dim); }

/* resumo de 30 segundos */
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.summary div { background: var(--surface); padding: 20px 22px 22px; }
.summary dt { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.summary dd { margin: 0; color: var(--text); font-size: 1rem; line-height: 1.55; }

/* destaque no meio do texto */
.callout { margin: 1.6rem 0; padding: 18px 20px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 4px 14px 14px 4px; background: var(--surface); font-size: 1rem; line-height: 1.6; }
.callout b { display: block; color: var(--text); margin-bottom: .25rem; }
.quote { margin: 1.8rem 0; padding: 0 0 0 20px; border-left: 2px solid var(--line); color: var(--text); font-size: 1.25rem; line-height: 1.5; letter-spacing: -0.01em; }
.quote cite { display: block; margin-top: .5rem; color: var(--dim); font-size: .9rem; font-style: normal; }

/* tabelas */
.table-wrap { overflow-x: auto; margin: 1.6rem 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 600px; font-size: .95rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--line); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { font-family: var(--mono); font-size: .72rem; font-weight: 500; text-transform: uppercase; color: var(--dim); background: var(--surface-2); }
tbody th { color: var(--text); font-weight: 500; }
td.yes { color: var(--ok); }
td.no { color: var(--dim); }
td.hl, td strong { color: var(--text); }
.source { color: var(--dim); font-size: .88rem; line-height: 1.55; }
.source a { color: var(--muted); }

/* print ao lado da lista */
.split { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: clamp(20px, 4vw, 40px); align-items: start; margin: 1.6rem 0; }
.split img { width: 100%; border-radius: 22px; border: 5px solid #000; box-shadow: 0 0 0 1px var(--line); }
.split ol { margin: 0; }

/* antes e depois arrastável */
.compare { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; margin: 1.8rem 0 2.2rem; padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.compare-frame { position: relative; aspect-ratio: 375 / 812; border-radius: 32px; border: 6px solid #000; box-shadow: 0 0 0 1px #2c2c33, 0 24px 48px rgba(0, 0, 0, .5); overflow: hidden; background: #fff; touch-action: pan-y; }
.compare-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-depois { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.c-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; }
.c-handle span { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: var(--accent); box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.c-handle span::before, .c-handle span::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-top: 2px solid #111; border-left: 2px solid #111; }
.c-handle span::before { left: 9px; transform: rotate(-45deg); }
.c-handle span::after { right: 9px; transform: rotate(135deg); }
.c-lab { position: absolute; bottom: 12px; font-family: var(--mono); font-size: .7rem; text-transform: uppercase; background: rgba(0, 0, 0, .78); color: #fff; padding: 4px 9px; border-radius: 999px; pointer-events: none; }
.c-lab.l { left: 10px; }
.c-lab.r { right: 10px; background: var(--accent); color: #111; }
.compare-frame input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-frame:has(input:focus-visible) .c-handle span { outline: 2px solid #fff; outline-offset: 3px; }
.compare-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.compare-notes li { margin: 0; font-size: 1rem; }
.compare-notes b { display: block; color: var(--text); font-size: 1.1rem; margin-bottom: .2rem; }

/* telas lado a lado */
.screens { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin: 1.8rem 0; padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.screens li { margin: 0; }
.screens img { width: 100%; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .45)); }
.screens .cap { margin: .9rem 0 0; color: var(--dim); font-size: .9rem; line-height: 1.4; }
.screens .cap b { display: block; color: var(--text); font-weight: 500; }

/* decisões numeradas em cartões */
.decisions { list-style: none; counter-reset: d; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 1.4rem 0; padding: 0; }
.decisions li { counter-increment: d; margin: 0; padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: .98rem; line-height: 1.55; }
.decisions li::before { content: counter(d, decimal-leading-zero); display: block; font-family: var(--mono); font-size: .75rem; color: var(--accent); margin-bottom: .4rem; }
.decisions b { display: block; color: var(--text); font-weight: 600; margin-bottom: .15rem; }

.rules { margin: 1.8rem 0; padding: 20px 24px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 18px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.rules h3 { margin-top: 0; }
.rules ul { margin-bottom: 0; }

/* próximo case e contato */
.next { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: clamp(80px, 10vw, 120px); padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); text-decoration: none; transition: border-color .2s ease; }
.next:hover { border-color: #3a3a44; }
.next .mono { color: var(--dim); }
.next b { display: block; margin-top: .3rem; color: var(--text); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -0.035em; }
.next .arrow { font-size: 1.8rem; color: var(--accent); transition: transform .2s ease; }
.next:hover .arrow { transform: translateX(4px); }

.contact { position: relative; overflow: hidden; margin: 24px 0 40px; padding: clamp(36px, 6vw, 64px) clamp(22px, 5vw, 56px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.contact::before { content: ""; position: absolute; right: -10%; bottom: -60%; width: 70%; height: 120%; background: radial-gradient(closest-side, rgba(255, 120, 90, .3), rgba(160, 90, 255, .18) 60%, transparent); pointer-events: none; }
.contact h2 { position: relative; margin: 0; color: var(--text); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; }
.contact p { position: relative; margin: .8rem 0 0; color: var(--muted); }
.contact .links { position: relative; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0 0 40px; color: var(--dim); font-size: .85rem; }

/* entrada e aparecimento ao rolar */
@keyframes subir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.case-top > * { animation: subir .7s cubic-bezier(.2, .7, .2, 1) both; }
.case-top > :nth-child(2) { animation-delay: .05s; }
.case-top > :nth-child(3) { animation-delay: .1s; }
.case-top > :nth-child(4) { animation-delay: .15s; }
.case-top > :nth-child(n+5) { animation-delay: .2s; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 860px) {
  .bar nav { display: none; }
  .numbers, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers div:nth-child(3) { padding-left: 0; border-left: 0; }
  .numbers div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .summary { grid-template-columns: minmax(0, 1fr); }
  .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split img { max-width: 240px; }
  .compare { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .compare-frame { width: min(100%, 280px); }
  .decisions { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .bar .open { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .case-top > * { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .next .arrow { transition: none; }
}

/* ---------- pesquisa explicada em gráficos ---------- */

/* caminho do raciocínio: 4 passos em linha */
.flow { list-style: none; counter-reset: f; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 1.6rem 0; padding: 0; }
.flow li { position: relative; counter-increment: f; margin: 0; padding: 16px 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: .95rem; line-height: 1.45; }
.flow li::before { content: counter(f); display: grid; place-items: center; width: 24px; height: 24px; margin-bottom: .7rem; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.flow li:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: 18px; z-index: 1; color: var(--dim); font-size: .9rem; background: var(--bg); line-height: 1; padding: 2px 0; }
.flow b { display: block; color: var(--text); font-weight: 600; margin-bottom: .2rem; }
.flow .x { color: #f87171; }
.flow li.key { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.flow li.key::before { background: var(--accent); border-color: var(--accent); color: #111; }

/* gráfico de barras horizontal */
.chart { margin: 1.6rem 0; padding: 20px 22px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.chart h4 { margin: 0; color: var(--text); font-size: 1.02rem; font-weight: 600; }
.chart .how { margin: .25rem 0 1.1rem; color: var(--dim); font-size: .9rem; line-height: 1.5; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.bars li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); align-items: center; gap: .9rem; margin: 0; font-size: .92rem; line-height: 1.3; }
.bars .lab { color: var(--muted); }
.bars .lab b { color: var(--text); font-weight: 500; }
.bars .track { position: relative; height: 28px; }
.bars .fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--v); min-width: 2px; border-radius: 0 6px 6px 0; background: #3a3a44; transform-origin: left; }
.bars .fill.hl { background: var(--accent); }
.bars .val { position: absolute; top: 50%; left: calc(var(--v) + 8px); transform: translateY(-50%); color: var(--text); font-family: var(--mono); font-size: .8rem; white-space: nowrap; }
.bars .limit { position: absolute; top: -6px; bottom: -6px; left: var(--l); width: 0; border-left: 1.5px dashed #f87171; }
.chart .legend-line { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: 1rem; color: var(--dim); font-size: .82rem; }
.chart .legend-line span { display: inline-flex; align-items: center; gap: .45rem; }
.chart .legend-line i { width: 14px; height: 8px; border-radius: 2px; background: #3a3a44; }
.chart .legend-line i.hl { background: var(--accent); }
.chart .legend-line i.lim { height: 0; border-top: 1.5px dashed #f87171; border-radius: 0; background: none; }
.charts-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 1.6rem 0; }
.charts-2 .chart { margin: 0; }
.charts-2 .bars li { grid-template-columns: 5.6rem minmax(0, 1fr); }
.chart.in .fill { animation: crescer 1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes crescer { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* funil das avaliações */
.funnel { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 1.6rem 0; padding: 0; }
.funnel li { position: relative; margin: 0; padding: 18px 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.funnel li:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: 50%; transform: translateY(-50%); z-index: 1; color: var(--dim); background: var(--bg); line-height: 1; padding: 2px 0; }
.funnel b { display: block; color: var(--text); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.funnel span { display: block; margin-top: .35rem; color: var(--muted); font-size: .92rem; line-height: 1.4; }
.funnel li.key { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.funnel li.key b { color: var(--accent); }

/* a descoberta principal */
.insight { margin: 2rem 0; padding: clamp(24px, 4vw, 36px); border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface) 70%); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); }
.insight .mono { color: var(--accent); }
.insight p:not(.mono) { margin: .6rem 0 0; color: var(--text); font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.025em; }

/* tabela completa escondida, para quem quiser conferir */
.details { margin: .6rem 0 1.4rem; }
.details summary { cursor: pointer; color: var(--muted); font-size: .9rem; width: fit-content; }
.details summary:hover { color: var(--text); }
.details .table-wrap { margin-top: .8rem; }

@media (max-width: 860px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li:nth-child(2)::after { display: none; }
  .charts-2 { grid-template-columns: minmax(0, 1fr); }
  .funnel { grid-template-columns: minmax(0, 1fr); }
  .funnel li:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -11px; transform: translateX(50%); }
  .bars li { grid-template-columns: 6.5rem minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .chart.in .fill { animation: none; }
}

/* cartões de números soltos (sem setas) */
.funnel.plain li::after { display: none; }
.funnel.plain b { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }

/* duas colunas: entrou / ficou de fora */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 1.4rem 0; }
.cols > div { padding: 18px 20px 6px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font-size: .98rem; }
.cols h4 { margin: 0 0 .7rem; font-family: var(--mono); font-size: .75rem; font-weight: 500; text-transform: uppercase; color: var(--accent); }
.cols > div.off h4 { color: var(--dim); }
.cols ul { padding-left: 1.1em; }

/* figuras grandes */
.figure { margin: 1.6rem 0; }
.figure img { border-radius: 14px; border: 1px solid var(--line); }
.figure figcaption { margin-top: .6rem; color: var(--dim); font-size: .9rem; line-height: 1.5; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 1.6rem 0; }
.pair .figure { margin: 0; }

@media (max-width: 860px) {
  .cols, .pair { grid-template-columns: minmax(0, 1fr); }
}
