/* landing.css — Parte 1 · Previsão. Consome tokens.css. Tema escuro executivo, dourado neutro,
   azul/vermelho com a mesma saturação para os candidatos. */

/* contraste AA para o texto terciário (tokens.css usa #6b7489, ~4,2:1 sobre o fundo) */
/* (--ink-3 agora é um token de tokens.css, com valores AA para os dois temas) */

/* ------------------------------------------------------------------ base */
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { font-size: 1.0625rem; font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--on-gold); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: 8px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
.noscript { position: fixed; inset: auto 0 0 0; z-index: 300; padding: 14px var(--gutter); background: var(--gold); color: var(--on-gold); font-weight: 600; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 880px; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* ------------------------------------------------------------ preloader */
.preloader { position: fixed; inset: 0; z-index: 500; background: var(--bg); display: none; place-items: center; }
html.js .preloader { display: grid; }
html.preloader-timeout .preloader, html.preloader-done .preloader { display: none; }
.preloader-inner { width: min(560px, 82vw); text-align: center; }
.preloader-title { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 400; font-variation-settings: "opsz" 72; margin: 18px 0 8px; letter-spacing: -0.01em; }
.preloader-count { margin: 0; color: var(--ink-3); font-family: var(--font-mono); font-size: .9rem; }
.braid { width: 100%; line-height: 0; }
.braid svg { width: 100%; height: auto; overflow: visible; display: block; }
.braid path { fill: none; stroke-linecap: round; stroke-width: 2; vector-effect: non-scaling-stroke; }
.braid .s-f { stroke: var(--flavio); }
.braid .s-l { stroke: var(--lula); }
.braid-div { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); opacity: .85; }
.braid-div svg { height: 46px; }
.braid-pre svg { height: 54px; }
.braid-cta svg { height: 70px; }
.braid-foot svg { height: 40px; }

/* --------------------------------------------------------------- cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; width: 0; height: 0; display: none; }
.cursor span { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border: 1px solid var(--gold); border-radius: 50%; opacity: .65; transition: width .25s var(--ease-out), height .25s var(--ease-out), left .25s var(--ease-out), top .25s var(--ease-out), background .25s, opacity .25s; }
.cursor.is-hot span { width: 56px; height: 56px; left: -28px; top: -28px; background: var(--gold-soft); opacity: 1; }
.cursor.is-down span { width: 20px; height: 20px; left: -10px; top: -10px; }
@media (hover: hover) and (pointer: fine) { html.has-cursor .cursor { display: block; } }

/* --------------------------------------------------------------- topnav */
.topnav { position: fixed; z-index: 100; inset: 0 0 auto 0; height: 60px; display: flex; align-items: center; gap: 16px; padding: 0 var(--gutter); background: var(--nav-fade); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.topnav.is-stuck { border-bottom-color: var(--line); background: var(--nav-bg); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 34px; height: 20px; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; font-variation-settings: "opsz" 36; }
.parts { display: flex; gap: 6px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg-glass); }
.part { display: inline-flex; align-items: baseline; gap: 0; padding: 7px 16px; border-radius: 999px; text-decoration: none; font-size: .84rem; color: var(--ink-2); white-space: nowrap; transition: background .25s, color .25s; }
.part b { font-weight: 600; color: var(--ink); }
.part i { font-style: normal; white-space: pre; }
.part:hover { color: var(--ink); background: var(--hover); }
.part.is-current { background: var(--gold-soft); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 55%, transparent); }
.chapbtn { appearance: none; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); font: inherit; font-size: .84rem; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.chapbtn:hover { color: var(--ink); border-color: var(--gold); }
.chapmenu { position: fixed; z-index: 99; top: 64px; right: var(--gutter); width: min(320px, calc(100vw - 2 * var(--gutter))); max-height: calc(100vh - 90px); overflow: auto; background: var(--bg-panel); border: 1px solid var(--line-strong); border-radius: 14px; padding: 10px; box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.chapmenu[hidden] { display: none; }
.chapmenu ol { list-style: none; margin: 0; padding: 0; }
.chapmenu a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-size: .95rem; }
.chapmenu a:hover { background: var(--hover); color: var(--ink); }

.rail { position: fixed; z-index: 90; right: 18px; top: 50%; transform: translateY(-50%); opacity: 0; pointer-events: none; transition: opacity .4s; display: none; }
.rail.is-on { opacity: 1; pointer-events: auto; }
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rail a { position: relative; display: flex; align-items: center; justify-content: flex-end; height: 18px; text-decoration: none; color: var(--ink-3); }
.rail a::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); opacity: .55; margin-left: 10px; transition: transform .3s var(--ease-out), background .3s, opacity .3s; }
.rail a span { font-size: .75rem; padding: 3px 9px; border-radius: 6px; background: var(--bg-panel); border: 1px solid var(--line); opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; white-space: nowrap; pointer-events: none; }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: none; color: var(--ink); }
.rail a.is-active::after { background: var(--gold); opacity: 1; transform: scale(1.7); }
@media (min-width: 1360px) { .rail { display: block; } }

/* ----------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate;
  background: radial-gradient(1200px 700px at 72% 42%, color-mix(in srgb, var(--flavio) 10%, transparent), transparent 60%), radial-gradient(900px 600px at 80% 60%, color-mix(in srgb, var(--lula) 7%, transparent), transparent 60%), var(--bg); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.hero-vignette { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(120% 90% at 70% 45%, transparent 40%, rgba(7,9,15,.85) 100%), linear-gradient(90deg, rgba(7,9,15,.85) 0%, rgba(7,9,15,.35) 38%, transparent 62%), linear-gradient(0deg, var(--bg) 0%, transparent 28%); }
.hero-grain { position: absolute; inset: -50%; z-index: -1; pointer-events: none; opacity: .09; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); } }
.hero-inner { position: relative; z-index: 1; padding: 120px var(--gutter) 0; max-width: 960px; margin-left: max(0px, calc((100vw - var(--maxw)) / 2)); }
.hero-date { margin: 0 0 18px; font-size: .95rem; color: var(--ink-2); letter-spacing: .01em; }
.hero-title { margin: 0; font-family: var(--font-display); font-weight: 500; font-variation-settings: "opsz" 144, "SOFT" 30; font-size: clamp(3.3rem, 10.4vw, 9rem); line-height: .94; letter-spacing: -0.035em; }
.hero-title .hl { display: block; overflow: hidden; padding: .02em 0 .1em; margin-bottom: -.08em; }
.hero-title .hl:nth-child(2) { font-style: italic; font-weight: 340; padding-left: .5em; color: var(--ink); }
.hero-title .ch { display: inline-block; will-change: transform; }
.hero-title .sp { display: inline-block; width: .26em; }
.hero-sub { margin: 22px 0 0; max-width: 46ch; font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.55; color: var(--ink-2); font-weight: 300; }
.countdown { margin-top: 28px; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0; align-items: end; max-width: 460px; border-top: 1px solid var(--line-strong); padding-top: 16px; }
.cd-cell { display: flex; flex-direction: column; padding-right: clamp(14px, 3vw, 30px); }
.cd-n { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1; color: var(--ink); font-weight: 400; }
.cd-l { font-size: .75rem; color: var(--ink-3); margin-top: 6px; }
.cd-note { grid-column: 1 / -1; margin: 14px 0 0; font-size: .86rem; color: var(--ink-2); }
.partes-cards { margin-top: 34px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 760px; }
.parte-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg-glass); backdrop-filter: blur(8px); text-decoration: none; transition: border-color .3s, background .3s, transform .4s var(--ease-out); }
.parte-card:hover { border-color: var(--gold); background: var(--bg-panel-2); transform: translateY(-3px); }
.parte-card.is-here { border-color: color-mix(in srgb, var(--gold) 60%, transparent); }
.parte-tag { font-weight: 600; font-size: .98rem; color: var(--ink); }
.parte-txt { font-size: .84rem; color: var(--ink-2); line-height: 1.5; }
.parte-go { margin-top: auto; padding-top: 8px; font-size: .8rem; color: var(--gold); }
.hero-legend { position: absolute; z-index: 1; right: var(--gutter); bottom: 56px; max-width: 300px; padding: 14px 16px; border-left: 2px solid var(--gold); background: linear-gradient(90deg, rgba(7,9,15,.7), transparent); }
.hero-legend p { margin: 0; }
.hero-legend-t { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; }
.hero-legend-s { margin-top: 6px !important; font-size: .78rem; line-height: 1.5; color: var(--ink-2); }
.hero-legend-clock { margin-top: 10px !important; font-size: .78rem; color: var(--gold); letter-spacing: 0; }
.hero-legend-clock[hidden] { display: none; }
.hero-legend-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; font-size: .72rem; color: var(--ink-3); }
.hero-legend-key i { width: 14px; height: 6px; border-radius: 3px; display: inline-block; }
.hero-legend-key .k-l { background: var(--lula); } .hero-legend-key .k-n { background: var(--neutral); } .hero-legend-key .k-f { background: var(--flavio); }
.hero-legal { position: relative; z-index: 1; margin: 30px auto 0; padding: 0 var(--gutter) 22px; width: 100%; max-width: var(--maxw); font-size: .76rem; color: var(--ink-3); }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 8px; width: 24px; height: 40px; transform: translateX(-50%); border: 1px solid var(--line-strong); border-radius: 14px; opacity: .75; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
.hero.is-fallback .hero-canvas { opacity: .9; }

/* -------------------------------------------------------------- capítulos */
.chapter { position: relative; padding-block: clamp(84px, 11vw, 170px); }
.chapter.is-panel { isolation: isolate; }
.chapter-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg-band) 0%, var(--bg-band) 100%); box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.chapter-bg::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 360px at 12% 0%, var(--gold-soft), transparent 70%); }
.chapter-head { max-width: 880px; margin-bottom: clamp(36px, 5vw, 64px); }
.chapter-title { margin: 0; font-family: var(--font-display); font-weight: 500; font-variation-settings: "opsz" 120, "SOFT" 20; font-size: clamp(2.3rem, 5.6vw, 4.7rem); line-height: 1.02; letter-spacing: -0.028em; text-wrap: balance; }
.chapter-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.chapter-title .wi { display: inline-block; will-change: transform; }
.lead { margin: 22px 0 0; max-width: 62ch; font-family: var(--font-display); font-size: clamp(1.12rem, 1.9vw, 1.42rem); line-height: 1.55; font-weight: 340; font-variation-settings: "opsz" 24; color: var(--ink-2); }
.sub-head { max-width: 760px; margin: clamp(48px, 7vw, 88px) 0 24px; }
.sub-head h3, .formula-block h3, .met-text h3, .met-table h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.015em; font-variation-settings: "opsz" 48; }
.sub-head p { margin: 0; color: var(--ink-2); max-width: 68ch; }
.foot { margin: 28px 0 0; font-size: .86rem; color: var(--ink-3); max-width: 76ch; }
.src { margin: 22px 0 0; font-size: .78rem; color: var(--ink-3); max-width: 90ch; }
.textlink { color: var(--gold); text-underline-offset: 3px; }
.notice { display: grid; gap: 4px; margin: 0 0 clamp(28px, 4vw, 44px); padding: 16px 20px; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-left-width: 4px; border-radius: var(--radius-sm); background: var(--gold-soft); max-width: 980px; }
.notice strong { color: var(--ink); font-weight: 600; }
.notice span { color: var(--ink-2); font-size: .95rem; }

/* ---------------------------------------------------------- partida */
.partida-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); container-type: inline-size; }
.stat { padding: 20px 20px 22px 0; border-bottom: 1px solid var(--line); }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.stat-n { display: block; font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2.2rem); font-size: clamp(1.25rem, 5.1cqi, 2.6rem); line-height: 1.05; font-weight: 450; font-variation-settings: "opsz" 96; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.02em; white-space: nowrap; }
.stat-l { display: block; margin-top: 6px; font-size: .84rem; color: var(--ink-2); }
.stat-s { display: block; margin-top: 2px; font-size: .76rem; color: var(--ink-3); }
.viz { margin: 34px 0 0; }
.viz-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; margin-bottom: 14px; color: var(--ink); font-variation-settings: "opsz" 36; }
.viz-note { margin: 12px 0 0; font-size: .82rem; color: var(--ink-3); line-height: 1.55; max-width: 74ch; }
.stackbar { display: flex; gap: 2px; height: 46px; }
.stackbar.thin { height: 22px; margin-top: 18px; }
.stackbar > i { display: block; flex: 0 0 auto; min-width: 2px; border-radius: 3px; transform-origin: left center; position: relative; }
.stackbar > i:first-child { border-radius: 8px 3px 3px 8px; } .stackbar > i:last-child { border-radius: 3px 8px 8px 3px; }
.stackbar > i em { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-style: normal; font-family: var(--font-mono); font-size: .74rem; color: var(--lbl, var(--on-bar)); font-weight: 600; white-space: nowrap; }
.legend { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .84rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.legend b { color: var(--ink); font-weight: 500; font-family: var(--font-mono); font-size: .8rem; }
.hbars { display: grid; gap: 10px; }
.hb { display: grid; grid-template-columns: minmax(104px, 150px) 1fr; align-items: center; gap: 14px; font-size: .9rem; }
.hb-name { color: var(--ink-2); }
.hb-track { position: relative; height: 22px; }
.hb-bar { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px 8px 8px 3px; transform-origin: left; }
.hb-val { position: absolute; top: 50%; transform: translateY(-50%); margin-left: 10px; font-family: var(--font-mono); font-size: .8rem; color: var(--ink); white-space: nowrap; }
.photo { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-elev); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) brightness(.72) contrast(1.05); transform: scale(1.12); }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7,9,15,.85)); pointer-events: none; }
.photo-cap { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 10px; font-size: .72rem; color: var(--ink-2); }
.photo-congresso { aspect-ratio: 16 / 10; }
.disputa { margin-top: 26px; padding: 24px 24px 22px; border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); border-radius: var(--radius); background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 10%, transparent), color-mix(in srgb, var(--gold) 2%, transparent)); }
.disputa-k { margin: 0; font-size: .86rem; color: var(--gold); font-weight: 600; }
.disputa-n { margin: 6px 0 0; font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5rem); line-height: 1; font-weight: 400; font-variation-settings: "opsz" 144; letter-spacing: -0.03em; font-variant-numeric: lining-nums; }
.disputa-n .num { font-family: inherit; letter-spacing: inherit; }
.disputa-u { font-size: .32em; font-style: italic; color: var(--ink-2); letter-spacing: 0; }
.disputa-t { margin: 8px 0 0; font-size: .9rem; color: var(--ink-2); }

/* ---------------------------------------------------------- cenários */
.card { --c: var(--gold); position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 24px; border: 1px solid var(--line-strong); border-radius: 20px; background: linear-gradient(170deg, var(--hover), transparent); transform-style: preserve-3d; transition: border-color .3s, box-shadow .4s; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); }
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(360px 240px at var(--gx, 50%) var(--gy, 0%), color-mix(in srgb, var(--ink) 10%, transparent), transparent 70%); opacity: var(--glare, 0); transition: opacity .3s; }
.card:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--c) 45%, transparent); }
.card-nome { margin: 0; font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; letter-spacing: -0.02em; font-variation-settings: "opsz" 72; }
.card-margem { margin: 0; color: var(--ink-2); font-size: .92rem; }
.card-margem b { color: var(--ink); font-family: var(--font-mono); font-weight: 500; }
.card-pct { display: grid; gap: 8px; }
.pct-bar { display: flex; height: 30px; gap: 2px; }
.pct-bar i { display: block; position: relative; border-radius: 3px; transform-origin: left; }
.pct-bar i:first-child { border-radius: 8px 3px 3px 8px; } .pct-bar i:last-child { border-radius: 3px 8px 8px 3px; }
.pct-row { display: flex; justify-content: space-between; font-size: .88rem; }
.pct-row .f, .pct-row .l { display: inline-flex; align-items: center; gap: 7px; }
.pct-row i { width: 10px; height: 10px; border-radius: 50%; }
.pct-row b { font-family: var(--font-mono); font-weight: 500; }
.card-kv { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.kv-k { display: block; font-size: .8rem; color: var(--ink-3); }
.kv-v { display: block; font-family: var(--font-mono); font-size: 1.15rem; font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------- controles / seg */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 22px; }
.controls-l { font-size: .84rem; color: var(--ink-2); font-weight: 500; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg-glass); }
.seg button { appearance: none; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: .85rem; padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-checked="true"] { background: var(--gold); color: var(--on-gold); font-weight: 600; }
.chip { appearance: none; font: inherit; font-size: .82rem; color: var(--ink-2); background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: border-color .25s, color .25s, background .25s; }
.chip:hover { border-color: var(--gold); color: var(--ink); background: var(--gold-soft); }
.chip-reset { margin-left: auto; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; background: var(--gold); color: var(--on-gold); font-weight: 600; text-decoration: none; position: relative; overflow: hidden; transition: transform .35s var(--ease-out), box-shadow .35s; box-shadow: 0 14px 40px -16px color-mix(in srgb, var(--gold) 70%, transparent); }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, color-mix(in srgb, #fff 45%, transparent) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease-out); }
.btn:hover { transform: translateY(-2px); } .btn:hover::after { transform: translateX(120%); }

/* ---------------------------------------------------------- gráficos */
.chart { width: 100%; position: relative; }
.chart:empty::before { content: "Carregando gráfico..."; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: .85rem; }
.chart-map { height: clamp(380px, 52vw, 560px); }
.chart-blocos { height: 430px; }
.chart-ganho { height: 340px; }
.chart-danca { height: clamp(260px, 44vh, 440px); }
.chart-hist { height: clamp(340px, 42vw, 470px); }
.chart-simmap { height: 360px; }
.chart-simcurva { height: 360px; }
.chart-sens { height: 340px; }
.chart.is-failed::before { content: attr(data-fail); color: var(--ink-2); }
.mapa-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.mapa-grid .viz { margin-top: 0; }
.div-key { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--ink-3); margin-top: 6px; }
.div-key i { flex: 1; height: 8px; border-radius: 4px; max-width: 150px; background: linear-gradient(90deg, var(--lula), var(--neutral-fill)); }
.div-key i.r { background: linear-gradient(90deg, var(--neutral-fill), var(--flavio)); }
.tabview { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 14px; }
.tabview summary { cursor: pointer; color: var(--ink-2); font-size: .88rem; width: fit-content; max-width: 100%; padding: 4px 0; }
.tabview summary:hover { color: var(--gold); }
.tablewrap { margin-top: 12px; overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-glass); -webkit-overflow-scrolling: touch; }
.tablewrap table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .84rem; }
.tablewrap caption { text-align: left; padding: 10px 14px; color: var(--ink-3); font-size: .78rem; caption-side: top; }
.tablewrap th, .tablewrap td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tablewrap th { color: var(--ink); font-weight: 600; position: sticky; top: 0; background: var(--bg-panel); }
.tablewrap td.n, .tablewrap th.n { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tablewrap tr:last-child td { border-bottom: 0; }
.tablewrap { max-height: 480px; }

/* ----------------------------------------------- barras HTML (blocos, fatores, ganho) */
.bbars { display: grid; gap: 12px; }
.bb { display: grid; grid-template-columns: minmax(92px, 150px) 1fr; gap: 12px; align-items: center; font-size: .88rem; }
.bb-name { color: var(--ink-2); line-height: 1.25; }
.bb-name small { display: block; color: var(--ink-3); font-size: .72rem; font-family: var(--font-mono); }
.bb-bar { position: relative; display: flex; height: 28px; gap: 2px; }
.bb { will-change: transform; }
.bb-bar i { display: flex; align-items: center; min-width: 2px; padding: 0 9px; font-style: normal; font-family: var(--font-mono); font-size: .74rem; font-weight: 600; color: var(--on-bar); overflow: hidden; white-space: nowrap; transition: width .8s var(--ease-out); }
.bb-bar i:first-child { border-radius: 8px 3px 3px 8px; justify-content: flex-start; } .bb-bar i:last-child { border-radius: 3px 8px 8px 3px; justify-content: flex-end; }
.bb-bar::after { content: ""; position: absolute; left: 50%; top: -5px; bottom: -5px; width: 1px; background: var(--ink-2); opacity: .8; pointer-events: none; }
.gbars { display: grid; gap: 10px; }
.gb { display: grid; grid-template-columns: minmax(110px, 190px) 1fr minmax(90px, 130px); gap: 14px; align-items: center; font-size: .9rem; }
.gb-name { color: var(--ink-2); }
.gb-track { position: relative; height: 18px; border-radius: 4px; background: repeating-linear-gradient(135deg, var(--hover) 0 6px, transparent 6px 12px); }
.gb-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px 8px 8px 3px; background: var(--gold); transform-origin: left; }
.gb-val { font-family: var(--font-mono); font-size: .8rem; color: var(--ink); text-align: right; }
.ganho .viz { margin-top: 0; }

/* ------------------------------------------------ ponto de virada (só o cenário selecionado) */
.virada { max-width: 980px; }
.virada-frase { margin: 6px 0 0; max-width: 34ch; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.45rem, 3.2vw, 2.35rem); line-height: 1.22; letter-spacing: -0.015em; font-variation-settings: "opsz" 72; color: var(--ink); border-radius: 8px; }
.virada-frase .rot { white-space: nowrap; }
.virada-frase b { color: var(--gold); font-weight: 500; font-family: var(--font-mono); font-size: .9em; letter-spacing: -0.03em; }
.virada-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 30px; border-top: 1px solid var(--line-strong); }
.vk { display: flex; flex-direction: column; gap: 3px; padding: 16px 16px 14px 0; min-width: 0; }
.vk + .vk { padding-left: 16px; border-left: 1px solid var(--line); }
.vk .v { font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.1; color: var(--ink); overflow-wrap: anywhere; }
.vk .k { font-size: .82rem; color: var(--ink); }
.vk .s { font-size: .74rem; color: var(--ink-3); line-height: 1.45; }
.virada-nota { margin-top: 18px; padding-left: 12px; border-left: 2px solid var(--gold-line); }
@media (max-width: 720px) {
  .virada-kpis { grid-template-columns: 1fr; }
  .vk + .vk { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ----------------------------------------------------- A DANÇA (story) */
.analogia { max-width: 780px; margin: 0 0 clamp(30px, 4vw, 52px); padding: 20px 24px; border-left: 3px solid var(--gold); background: linear-gradient(90deg, var(--gold-soft), transparent); }
.analogia p { margin: 0; font-family: var(--font-display); font-size: 1.12rem; line-height: 1.6; color: var(--ink-2); font-variation-settings: "opsz" 24; }
.analogia b { color: var(--ink); font-weight: 600; }
.story-controls { margin-bottom: 20px; }
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "steps chart"; gap: clamp(24px, 4vw, 64px); align-items: start; }
.story-chart { grid-area: chart; position: sticky; top: 78px; align-self: start; z-index: 5; }
.story-steps { grid-area: steps; }
.story-panel { padding: 18px 18px 14px; border: 1px solid var(--line-strong); border-radius: 20px; background: linear-gradient(170deg, var(--bg-panel-2), var(--bg-panel)); box-shadow: var(--shadow); }
.readout { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.readout > div { padding: 8px 10px; border-radius: 10px; background: var(--wash); }
.ro-k { display: block; font-size: .72rem; color: var(--ink-3); }
.ro-v { display: block; font-size: 1.15rem; color: var(--ink); margin-top: 2px; }
.ro-f { box-shadow: inset 0 -2px 0 var(--flavio); } .ro-l { box-shadow: inset 0 -2px 0 var(--lula); }
.ro-d { box-shadow: inset 0 -2px 0 var(--gold); }
.slider-row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; margin-top: 8px; font-size: .82rem; color: var(--ink-2); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--gold) var(--fill, 0%), var(--line-strong) var(--fill, 0%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-strong); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--gold); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--ink); border: 3px solid var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 3px solid var(--gold); }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 28px 0; opacity: .38; transition: opacity .5s; }
.step.is-active { opacity: 1; }
.step h3 { margin: 0 0 14px; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; font-weight: 500; letter-spacing: -0.02em; font-variation-settings: "opsz" 96; text-wrap: balance; }
.step-body p { margin: 0 0 12px; color: var(--ink-2); max-width: 46ch; }
.step-body strong, .step-body b { color: var(--ink); font-weight: 600; }
.step-body .pill { display: inline-block; font-family: var(--font-mono); font-size: .88em; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); white-space: nowrap; }
.step-body .pill.f { background: var(--flavio-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--flavio) 45%, transparent); }
.step-body .pill.l { background: var(--lula-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lula) 45%, transparent); }
.formula-block { margin-top: clamp(40px, 6vw, 80px); padding: clamp(24px, 3.5vw, 44px); border: 1px solid var(--line-strong); border-radius: 22px; background: var(--wash); }
.formula { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin: 18px 0 22px; font-family: var(--font-display); font-size: clamp(1.15rem, 2.6vw, 1.9rem); font-variation-settings: "opsz" 48; }
.formula i, .formula-legend i, .formula-note i { font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.formula sub { font-size: .65em; }
.f-frac { display: inline-flex; flex-direction: column; align-items: center; }
.f-num { padding: 0 10px 8px; border-bottom: 1.5px solid var(--gold); }
.f-den { padding: 8px 10px 0; }
.f-eq { color: var(--gold); }
.formula-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 28px; margin: 0 0 18px; }
.formula-legend div { display: grid; gap: 2px; }
.formula-legend dt { font-family: var(--font-display); font-size: 1.15rem; }
.formula-legend dd { margin: 0; font-size: .88rem; color: var(--ink-2); }
.formula-note { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-2); max-width: 78ch; }
.formula-note strong { color: var(--ink); }
.comp-rows { display: grid; gap: 8px; max-width: 900px; }
.cr { display: grid; grid-template-columns: minmax(130px, 220px) 1fr auto; align-items: center; gap: 14px; font-size: .88rem; }
.cr-name { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.cr-name i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.cr-track { position: relative; height: 16px; border-radius: 8px; background: var(--wash); }
.cr-ghost { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: color-mix(in srgb, var(--ink) 14%, transparent); overflow: hidden; }
.cr-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--gold); border-radius: 8px 0 0 8px; transition: width .35s var(--ease-out); }
.cr-f { font-family: var(--font-mono); font-size: .78rem; color: var(--ink); min-width: 12ch; text-align: right; }
.cr-w { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-3); }
.pace-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pt { padding: 12px 12px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--wash); position: relative; }
.pt-h { display: flex; align-items: center; gap: 7px; font-size: .86rem; font-weight: 500; }
.pt-h i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pt-s { margin: 2px 0 6px; font-size: .74rem; color: var(--ink-3); font-family: var(--font-mono); }
.pt svg { width: 100%; height: 74px; display: block; overflow: visible; }
.pt .a-fill { fill: color-mix(in srgb, var(--gold) 18%, transparent); stroke: none; }
.pt .a-line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pt .b-line { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; opacity: .8; }
.pt .cur { stroke: var(--ink-3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pt .axis { stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pt-x { display: flex; justify-content: space-between; font-size: .68rem; color: var(--ink-3); font-family: var(--font-mono); }

/* --------------------------------------------------------- histórico */
.hist-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.hist-grid .viz { margin-top: 0; }
.hist-cards { display: grid; gap: 14px; }
.hc { padding: 20px 22px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--wash); }
.hc h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; font-variation-settings: "opsz" 48; }
.hc p { margin: 0 0 8px; color: var(--ink-2); font-size: .94rem; }
.hc .big { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-variation-settings: "opsz" 120; }
.hc .src { margin: 8px 0 0; }

/* ---------------------------------------------------------- simulador */
.sim { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 56px); align-items: start; }
.sim-controls { position: sticky; top: 80px; padding: 22px 22px 18px; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--bg-glass); backdrop-filter: blur(10px); display: grid; gap: 16px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.sim-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.rng { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 10px; }
.rng label { font-size: .88rem; color: var(--ink); font-weight: 500; }
.rng output { font-size: .9rem; color: var(--gold); }
.rng input { grid-column: 1 / -1; }
.rng-h { grid-column: 1 / -1; margin: 0; font-size: .74rem; color: var(--ink-3); line-height: 1.45; }
.rng-set { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 8px; margin: 0; display: grid; gap: 4px; }
.rng-set legend { font-size: .82rem; color: var(--ink-2); padding: 0 6px; }
.rng-seg { display: grid; gap: 8px; font-size: .88rem; font-weight: 500; }
.sim-head { padding: 22px 24px; border: 1px solid var(--line-strong); border-radius: 20px; background: linear-gradient(160deg, var(--hover), transparent); }
.sim-big { display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: baseline; }
.sim-big .nm { font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; font-variation-settings: "opsz" 96; font-weight: 450; }
.sim-big .nm.f { color: var(--ink); }
.sim-big .nm span.dot { display: inline-block; width: .42em; height: .42em; border-radius: 50%; margin-right: .3em; vertical-align: .06em; }
.sim-win { margin: 10px 0 0; font-size: .98rem; color: var(--ink-2); }
.sim-win b { color: var(--ink); }
.sim-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.kpi { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-card); }
.kpi .k { display: block; font-size: .74rem; color: var(--ink-3); line-height: 1.35; }
.kpi .v { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 1.02rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.sim-charts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; }
.sim-charts .viz { margin: 0; }

/* -------------------------------------------------------- comparecimento */
.comp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.comp-split .chapter-head { margin-bottom: 28px; }
.sens-text p { margin: 0 0 14px; color: var(--ink-2); max-width: 54ch; }
.sens-text strong { color: var(--ink); }
.sens-callout { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--bg-card); }
.sens-callout .big { font-family: var(--font-display); font-size: 2.2rem; line-height: 1.05; letter-spacing: -0.02em; font-variation-settings: "opsz" 96; }
.photo-voto { aspect-ratio: 16 / 8; margin-bottom: 18px; }
.comp-viz .viz { margin-top: 0; }

/* ------------------------------------------------------------- apuração */
.apur-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--line-strong); }
.tl-fill { position: absolute; left: 7px; top: 10px; width: 2px; height: calc(100% - 20px); background: linear-gradient(180deg, var(--gold), color-mix(in srgb, var(--gold) 65%, white)); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 12px color-mix(in srgb, var(--gold) 60%, transparent); }
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -34px; top: 6px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--bg); transition: border-color .4s, background .4s, box-shadow .4s; }
.tl-item.is-lit .tl-dot { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 16%, transparent); }
.tl-item h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.01em; font-variation-settings: "opsz" 48; }
.tl-item p { margin: 0 0 8px; color: var(--ink-2); max-width: 60ch; }
.tl-links a { color: var(--gold); font-size: .88rem; text-underline-offset: 3px; }
.apur-photo { position: sticky; top: 90px; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 4 / 5; }
.apur-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) brightness(.78) contrast(1.05); transform: scale(1.12); }
.apur-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,9,15,.9)); }
.apur-photo .photo-cap { z-index: 1; }

/* -------------------------------------------------------------- mitos */
.accordion { border-top: 1px solid var(--line-strong); }
.acc-item { border-bottom: 1px solid var(--line-strong); }
.acc-item h3 { margin: 0; }
.acc-btn { appearance: none; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left; background: transparent; border: 0; color: var(--ink); font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.65rem); font-weight: 450; letter-spacing: -0.01em; padding: 24px 0; cursor: pointer; font-variation-settings: "opsz" 48; }
.acc-btn:hover { color: var(--gold); }
.acc-btn i { position: relative; flex: none; width: 22px; height: 22px; }
.acc-btn i::before, .acc-btn i::after { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 2px; margin-top: -1px; background: currentColor; transition: transform .4s var(--ease-out); }
.acc-btn i::after { transform: rotate(90deg); }
.acc-btn[aria-expanded="true"] i::after { transform: rotate(0deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.acc-panel > div { overflow: hidden; }
.acc-btn[aria-expanded="true"] + * { }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-in { padding: 0 0 26px; max-width: 70ch; }
.acc-in p { margin: 0 0 12px; color: var(--ink-2); }
.acc-in strong { color: var(--ink); }

/* ---------------------------------------------------------- metodologia */
.met-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.met-text h3 { margin-top: 26px; } .met-text h3:first-child { margin-top: 0; }
.met-text p { color: var(--ink-2); max-width: 56ch; margin: 0 0 12px; }
.plain { margin: 0 0 12px; padding-left: 20px; color: var(--ink-2); max-width: 56ch; }
.plain li { margin-bottom: 6px; }
.met-params { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.mp { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card); }
.mp .k { display: block; font-size: .74rem; color: var(--ink-3); } .mp .v { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: .98rem; }
.met-sub { margin: 0 0 14px; color: var(--ink-2); font-size: .92rem; max-width: 70ch; }
.calib table { min-width: 860px; }
.calib th:first-child, .calib td:first-child { position: sticky; left: 0; background: var(--bg-panel); z-index: 1; min-width: 190px; }
.cta { position: relative; margin-top: clamp(60px, 8vw, 110px); overflow: hidden; border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); border-radius: 28px; background: radial-gradient(900px 300px at 85% 0%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 60%), linear-gradient(160deg, var(--bg-panel-2), var(--bg-band)); }
.cta-in { position: relative; z-index: 1; padding: clamp(30px, 5vw, 64px) clamp(30px, 5vw, 64px) clamp(96px, 11vw, 150px); max-width: 740px; }
.cta h3 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 4.6vw, 3.6rem); letter-spacing: -0.025em; line-height: 1.02; font-variation-settings: "opsz" 120; }
.cta p { margin: 0 0 24px; color: var(--ink-2); max-width: 56ch; }
.braid-cta { position: absolute; left: 0; right: 0; bottom: 0; opacity: .6; z-index: 0; }

/* ------------------------------------------------------------- rodapé */
.footer { padding: 70px 0 40px; border-top: 1px solid var(--line); background: var(--bg-deep); }
.legal { padding: 16px 20px; border: 1px solid var(--line-strong); border-radius: 12px; font-size: .96rem; color: var(--ink); background: var(--wash); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 44px; }
.f-h { margin: 0 0 14px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; font-variation-settings: "opsz" 36; }
.f-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .82rem; color: var(--ink-3); line-height: 1.55; }
.f-list a { color: var(--ink-2); text-underline-offset: 3px; } .f-list a:hover { color: var(--gold); }
.foot-end { margin-top: 48px; }
.foot-end p { margin: 14px 0 0; font-size: .82rem; color: var(--ink-3); }
.foot-end a { color: var(--ink-2); }

/* ------------------------------------------------------------- tooltip */
.tip { position: fixed; z-index: 300; pointer-events: none; padding: 8px 12px; border-radius: 10px; background: var(--bg-panel); border: 1px solid var(--line-strong); font-size: .8rem; color: var(--ink); box-shadow: var(--shadow); max-width: 260px; line-height: 1.45; }
.tip[hidden] { display: none; }
.tip b { font-weight: 600; } .tip .m { font-family: var(--font-mono); }

/* ------------------------------------------------- estados de motion */
html.js-motion [data-hero-in] { opacity: 0; }
html.js-motion .hero-title .hl { visibility: hidden; }
html.js-motion .chapter-title:not([data-split]) { visibility: hidden; }

.partida-grid > *, .mapa-grid > *, .hist-grid > *, .comp-split > *, .apur-grid > *, .met-grid > *, .sim > *, .sim-charts > *, .story > *, .cards3 > *, .foot-cols > * { min-width: 0; }
section[id] { scroll-margin-top: 64px; }

/* ------------------------------------------------------------ responsivo */
@media (max-width: 1100px) {
  .pace-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sim { grid-template-columns: 1fr; }
  .sim-controls { position: static; max-height: none; }
  .sim-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .partida-grid, .mapa-grid, .hist-grid, .comp-split, .apur-grid, .met-grid, .sim-charts { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3n+1) { padding-left: 20px; border-left: 1px solid var(--line); }
  .stat:nth-child(2n+1) { padding-left: 0; border-left: 0; }
  .stat-n { font-size: clamp(1.25rem, 8.2cqi, 2.6rem); }
  .foot-cols { grid-template-columns: 1fr; }
  .apur-photo { position: relative; top: 0; aspect-ratio: 16 / 10; order: -1; }
  .formula-legend { grid-template-columns: 1fr; }
  .partes-cards { grid-template-columns: 1fr; }
  .hero-legend { position: relative; right: auto; bottom: auto; margin: 26px var(--gutter) 0; max-width: 420px; }
  .hero-inner { padding-top: 12px; }
  .hero { justify-content: flex-start; padding-top: 50vh; padding-top: 50svh; }
  .hero-legal { margin-top: 18px; }
  .scroll-cue { display: none; }

  .story { grid-template-columns: 1fr; grid-template-areas: "chart" "steps"; gap: 0; }
  .story-chart { top: 62px; margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter) 10px; background: var(--nav-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-strong); }
  .story-panel { padding: 8px 10px 6px; border: 0; background: transparent; box-shadow: none; }
  .story-panel .viz-note { display: none; }
  .readout { gap: 4px; margin-bottom: 4px; }
  .readout > div { padding: 5px 7px; }
  .ro-v { font-size: .92rem; }
  .ro-k { font-size: .66rem; }
  .chart-danca { height: 190px; }
  .slider-row { margin-top: 0; }
  .step { min-height: 62vh; opacity: 1; }
  .step-body p { max-width: none; }
}
@media (max-width: 720px) {
  .topnav { gap: 8px; padding-inline: 12px; }
  .brand-name { display: none; }
  .parts { flex: 1 1 0; min-width: 0; padding: 3px; gap: 3px; }
  .part { flex: 1 1 0; min-width: 0; flex-direction: column; align-items: center; padding: 5px 6px; font-size: .68rem; line-height: 1.2; text-align: center; white-space: normal; }
  .part i { display: none; }
  .part b { font-size: .72rem; }
  .brand { margin-right: 0; }
  .chapbtn { padding: 7px 10px; font-size: .76rem; }
  .pace-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gb { grid-template-columns: 1fr auto; row-gap: 4px; } .gb-track { grid-column: 1 / -1; order: 3; }
  .cr { grid-template-columns: 1fr auto; row-gap: 4px; } .cr-track { grid-column: 1 / -1; order: 3; }
  .hb { grid-template-columns: 1fr; gap: 4px; }
  .hb-track { height: auto; } .hb-bar { position: relative; display: block; height: 16px; }
  .hb-val { position: static; display: block; transform: none; margin: 4px 0 0; }
  .met-params { grid-template-columns: 1fr 1fr; }
  .countdown { grid-template-columns: repeat(4, auto); }
  .hero-title { font-size: clamp(3rem, 15vw, 4.6rem); }
  .hero-title .hl:nth-child(2) { padding-left: .3em; }
  .sim-kpis { grid-template-columns: 1fr 1fr; }
  .readout { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story-chart .readout > div:nth-child(1), .story-chart .readout > div:nth-child(2) { display: none; }
  .readout > .ro-f, .readout > .ro-l { }
}
@media (max-width: 420px) {
  .pace-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .chip-reset { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-grain, .scroll-cue span { animation: none !important; }
  html.js-motion [data-hero-in] { opacity: 1 !important; filter: none !important; }
  .acc-panel { transition: none; }
}


/* ======================================================================
   v2 — cinco cenários, tema claro/escuro, capítulo das pesquisas, créditos
   ====================================================================== */

/* ------------------------------------------------ barra de navegação */
.topnav .theme-btn { margin-left: 0; }
.topnav[data-theme="dark"] { color: var(--ink); }
/* o hero é sempre escuro: a cor de texto herdada precisa vir dos tokens escuros, não do body (tema claro) */
.hero[data-theme="dark"] { color: var(--ink); }
.parts { background: var(--bg-glass); }

/* ------------------------------------------------ seletores de cenário (cinco) */
.seg-cen { flex-wrap: wrap; border-radius: 18px; padding: 4px; gap: 3px; align-items: stretch; max-width: 100%; }
.seg-cen button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 14px 7px 13px; border-radius: 14px; text-align: left; line-height: 1.15; border: 1px solid transparent; background: transparent; }
.seg-cen button .sg-n, .seg-cen button .sg-m { white-space: nowrap; }
.seg-cen button .sg-n { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 600; }
.seg-cen button .sg-n::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--gold)); flex: none; }
.seg-cen button .sg-m { padding-left: 15px; font-family: var(--font-mono); font-size: .68rem; font-weight: 400; color: var(--ink-3); letter-spacing: -0.01em; }
.seg-cen button:hover { background: var(--hover); }
.seg-cen button[aria-checked="true"] { background: color-mix(in srgb, var(--c, var(--gold)) 20%, var(--bg-panel)); border-color: var(--c, var(--gold)); color: var(--ink); font-weight: 600; }
.seg-cen button[aria-checked="true"] .sg-m { color: var(--ink-2); }
.seg-sep { width: 1px; align-self: stretch; margin: 5px 4px; background: var(--line-strong); }
.seg-mini { margin: 0 0 10px; }
.seg-mini button { padding: 5px 13px; font-size: .8rem; }
.viz-qual { display: inline-block; margin-left: 8px; padding: 2px 11px; border-radius: 99px; background: var(--gold-soft); font-family: var(--font-sans); font-size: .76rem; font-weight: 500; color: var(--ink); vertical-align: .18em; letter-spacing: 0; }
.story-qual { margin: 0 0 8px; }
.story-qual span { display: inline-block; padding: 2px 11px; border-radius: 99px; background: var(--gold-soft); font-size: .76rem; color: var(--ink); }

/* ------------------------------------------------ hero: expectativa */
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px 36px; margin-top: 28px; }
.hero-row .countdown { margin-top: 0; }
.hero-expect { display: block; max-width: 350px; padding: 14px 18px 15px; border: 1px solid var(--gold-line); border-left: 3px solid var(--gold); border-radius: 12px; background: var(--bg-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-decoration: none; color: var(--ink); transition: background .3s, transform .4s var(--ease-out), border-color .3s; }
.hero-expect[hidden] { display: none; }
.hero-expect:hover { background: var(--bg-panel-2); transform: translateY(-3px); border-color: var(--gold); }
.he-k { display: block; font-size: .82rem; color: var(--ink-2); }
.he-v { display: block; margin-top: 6px; line-height: 1; }
.he-nome { font-size: 1.15rem; color: var(--ink-2); }
.he-num { font-family: var(--font-sans); font-weight: 600; font-size: 2.5rem; letter-spacing: -0.035em; }
.he-un { font-size: .95rem; color: var(--ink-3); }
.he-s { display: block; margin-top: 9px; font-size: .76rem; line-height: 1.5; color: var(--ink-2); }

/* ------------------------------------------------ cartões dos cinco cenários */
.card-nome { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.12; text-wrap: balance; }
.card-margem { margin-top: 6px; }
.card-margem b { font-size: 1.02rem; }
.card .kv-v small { font-family: var(--font-sans); font-size: .72rem; color: var(--ink-3); }

/* ------------------------------------------------ capítulo das pesquisas */
.pq-nav { position: sticky; top: 68px; z-index: 40; display: flex; gap: 4px; overflow-x: auto; margin: 0 0 6px; padding: 6px; background: var(--nav-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 99px; scrollbar-width: none; max-width: max-content; }
.pq-nav::-webkit-scrollbar { display: none; }
.pq-nav a { flex: none; padding: 6px 13px; border-radius: 99px; text-decoration: none; font-size: .82rem; color: var(--ink-2); border: 1px solid transparent; white-space: nowrap; transition: color .2s, background .2s, border-color .2s; }
.pq-nav a:hover { color: var(--ink); background: var(--hover); }
.pq-nav a.is-on { color: var(--ink); border-color: var(--gold-line); background: var(--gold-soft); }
.pq-loading { margin: 26px 0; padding: 18px 20px; border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--ink-2); }
.pq-loading.is-erro { border-color: var(--bad); color: var(--ink); }
.pq-block { margin-top: clamp(54px, 7vw, 96px); scroll-margin-top: 120px; }
.pq-head { max-width: 780px; margin-bottom: 22px; }
.pq-head h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.45rem, 2.7vw, 2.1rem); line-height: 1.12; letter-spacing: -0.018em; font-variation-settings: "opsz" 56; text-wrap: balance; }
.pq-head p { margin: 0; color: var(--ink-2); max-width: 70ch; }
.pq-head b { color: var(--ink); font-weight: 600; }
.pq-block .viz { margin-top: 18px; }
.pq-block > .viz-note { max-width: 86ch; }
.pq-block .viz-note b { color: var(--ink); font-weight: 600; }

.pq-cards { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 18px; }
.pq-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 26px 22px; border: 1px solid var(--line-strong); border-top: 3px solid var(--c); border-radius: 20px; background: linear-gradient(170deg, var(--hover), transparent); min-width: 0; }
.pq-card.is-main { background: linear-gradient(170deg, color-mix(in srgb, var(--c) 10%, transparent), transparent 70%); box-shadow: 0 34px 80px -50px color-mix(in srgb, var(--c) 60%, transparent); }
.pq-tag { display: flex; align-items: center; gap: 9px; margin: 0; font-weight: 600; font-size: 1rem; }
.pq-tag i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.pq-lead { margin: 0; font-size: .88rem; color: var(--ink-2); max-width: 52ch; }
.pq-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 4px 0 2px; font-family: var(--font-sans); line-height: 1; }
.pq-nome { font-size: 1.55rem; font-weight: 500; color: var(--ink-2); letter-spacing: -0.02em; }
.pq-num { font-size: clamp(3.1rem, 6.4vw, 4.8rem); font-weight: 600; letter-spacing: -0.045em; color: var(--ink); }
.pq-un { font-size: 1.25rem; color: var(--ink-3); }
.pq-card:not(.is-main) .pq-num { font-size: clamp(2.6rem, 5vw, 3.7rem); }
.pq-dl { margin: 0; display: grid; gap: 10px; }
.pq-dl div { display: grid; gap: 2px; }
.pq-dl dt { font-size: .78rem; color: var(--ink-3); }
.pq-dl dd { margin: 0; font-size: .9rem; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.pq-probbar { display: flex; gap: 2px; height: 36px; margin-top: 2px; }
.pq-probbar span { display: flex; align-items: center; min-width: 5.6rem; padding: 0 12px; font-size: .84rem; color: var(--on-bar); white-space: nowrap; }
.pq-probbar .f { background: var(--flavio); border-radius: 10px 3px 3px 10px; } .pq-probbar .l { background: var(--lula); border-radius: 3px 10px 10px 3px; justify-content: flex-end; }
.pq-probbar b { font-weight: 600; font-family: var(--font-mono); font-size: .8rem; }
.pq-ressalva { margin: 0; padding-left: 12px; border-left: 2px solid var(--gold-line); font-size: .78rem; line-height: 1.55; color: var(--ink-2); }
.pq-ressalva b { color: var(--ink); font-weight: 600; }

.pq-faixa-fig { margin-top: 30px; }
.pq-faixa { --lab: 176px; padding: 4px 0 0; }
.fx-eixo-topo { display: flex; justify-content: space-between; margin-left: var(--lab); font-size: .76rem; color: var(--ink-3); }
.fx-corpo { position: relative; padding-bottom: 28px; margin-top: 6px; }
.fx-over { position: absolute; inset: 0 0 0 var(--lab); pointer-events: none; }
.fx-zero { position: absolute; top: 0; bottom: 28px; width: 0; border-left: 1.5px solid var(--ink-2); }
.fx-zero em { position: absolute; bottom: -22px; left: 0; transform: translateX(-50%); font-style: normal; font-size: .68rem; color: var(--ink-3); }
.fx-ticks span { position: absolute; bottom: 0; transform: translateX(-50%); font-family: var(--font-mono); font-size: .7rem; color: var(--ink-3); }
.fx-row { position: relative; display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); align-items: center; height: 46px; border-bottom: 1px solid var(--line); outline-offset: -2px; border-radius: 6px; }
.fx-row:hover, .fx-row:focus-visible { background: var(--hover); }
.fx-nome { display: flex; flex-direction: column; justify-content: center; padding-right: 10px; font-size: .86rem; line-height: 1.2; }
.fx-nome i { display: none; }
.fx-nome small { font-family: var(--font-mono); font-size: .7rem; color: var(--ink-3); }
.fx-trilho { position: relative; height: 100%; }
.fx-trilho b { position: absolute; top: 50%; }
.fx-des { height: 2px; background: var(--c); opacity: .6; transform: translateY(-50%); }
.fx-mod { height: 12px; border-radius: 6px; background: var(--c); opacity: .85; transform: translateY(-50%); }
.fx-pt { width: 15px; height: 15px; border-radius: 50%; background: var(--bg-panel); border: 3px solid var(--c); transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--bg); }
.fx-di { width: 13px; height: 13px; border-radius: 2px; background: var(--c); transform: translate(-50%, -50%) rotate(45deg); box-shadow: 0 0 0 2px var(--bg); }
.fx-leg { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 0; padding: 0; font-size: .78rem; color: var(--ink-2); }
.fx-leg li { display: inline-flex; align-items: center; gap: 8px; }
.fx-leg b { display: inline-block; background: var(--ink-2); }
.fx-leg .k-des { width: 22px; height: 2px; opacity: .7; } .fx-leg .k-mod { width: 22px; height: 9px; border-radius: 5px; opacity: .85; } .fx-leg .k-pt { width: 11px; height: 11px; border-radius: 50%; background: transparent; border: 3px solid var(--ink-2); } .fx-leg .k-di { width: 9px; height: 9px; border-radius: 1.5px; transform: rotate(45deg); }

.pq-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 34px; border-top: 1px solid var(--line-strong); }
.pq-kpi { display: flex; flex-direction: column; gap: 3px; padding: 18px 16px 16px 0; }
.pq-kpi + .pq-kpi { padding-left: 16px; border-left: 1px solid var(--line); }
.pq-kpi .v { font-family: var(--font-sans); font-weight: 600; font-size: clamp(1.7rem, 2.8vw, 2.3rem); letter-spacing: -0.03em; line-height: 1.05; }
.pq-kpi .k { font-size: .82rem; color: var(--ink); }
.pq-kpi .s { font-size: .74rem; color: var(--ink-3); line-height: 1.45; }
.pq-leitura { margin: 22px 0 0; padding: 18px 22px; max-width: 980px; border-left: 3px solid var(--gold); background: linear-gradient(90deg, var(--gold-soft), transparent); font-size: .98rem; line-height: 1.65; color: var(--ink-2); }
.pq-leitura b { color: var(--ink); font-weight: 600; }

.pq-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin: 0 0 14px; }
.tog { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .86rem; color: var(--ink-2); }
.tog input { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 38px; height: 22px; margin: 0; border-radius: 11px; background: var(--line-strong); cursor: pointer; transition: background .25s; }
.tog input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transition: transform .3s var(--ease-out), background .25s; }
.tog input:checked { background: var(--gold); }
.tog input:checked::after { transform: translateX(16px); background: var(--on-gold); }
.tog input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.tog:hover { color: var(--ink); }
.chart-tempo { height: 480px; }
.chart-funil { height: 460px; }
.chart-prob { height: 400px; }
.pq-leg { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0 0; padding: 0; font-size: .78rem; color: var(--ink-2); }
.pq-leg li { display: inline-flex; align-items: center; gap: 7px; }
.lg-ic svg { display: block; fill: var(--ink-2); }
.lg-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--c); flex: none; }
.lg-dot.is-oca { background: transparent; border: 1.6px solid var(--chart-label); }
.lg-dot.is-apagada { background: var(--neutral); opacity: .4; }
.lg-linha { width: 24px; height: 3px; border-radius: 2px; background: var(--sc-tendencia); }
.lg-barra { width: 7px; height: 16px; border-radius: 2px; background: color-mix(in srgb, var(--sc-tendencia) 55%, transparent); }
.lg-sz { display: inline-flex; align-items: center; gap: 3px; } .lg-sz i { display: block; border-radius: 50%; background: var(--ink-3); } .lg-sz i:first-child { width: 6px; height: 6px; } .lg-sz i:last-child { width: 12px; height: 12px; }

.pq-flags { margin-top: 26px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-card); }
.pq-flags h4, .pq-het h4 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; font-variation-settings: "opsz" 36; }
.pq-flags-s { margin: 0 0 12px; font-size: .82rem; color: var(--ink-3); max-width: 80ch; }
.pq-flags ul { list-style: none; margin: 0; padding: 0; display: grid; }
.pq-flags li { display: grid; grid-template-columns: 96px minmax(180px, 1.1fr) 38px minmax(0, 1.4fr); gap: 4px 14px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); font-size: .84rem; }
.fl-sev { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--ink-2); }
.fl-sev i { width: 9px; height: 9px; border-radius: 50%; background: var(--neutral); flex: none; }
.sev-alta .fl-sev i { background: var(--bad); } .sev-media .fl-sev i { background: var(--warn); } .sev-baixa .fl-sev i { background: var(--neutral); } .sev-info .fl-sev i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--neutral); }
.fl-n { text-align: right; color: var(--ink); }
.fl-ex { color: var(--ink-3); font-size: .78rem; }

.pq-duo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.pq-duo .viz { margin: 0; }
.het-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.het { display: flex; flex-direction: column; gap: 4px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card); }
.het .k { font-size: .78rem; color: var(--ink-3); } .het .v { font-size: 1.25rem; color: var(--ink); } .het .s { font-size: .75rem; color: var(--ink-3); line-height: 1.45; }
.het.is-herding { border-color: var(--gold-line); background: var(--gold-soft); }
.het-txt { margin: 14px 0 0; font-size: .86rem; color: var(--ink-2); line-height: 1.6; }
.pq-het h4 { margin-top: 22px; }
.het-sub { margin: 0 0 8px; font-size: .8rem; color: var(--ink-3); }
.het-tab { width: 100%; border-collapse: collapse; font-size: .82rem; }
.het-tab th, .het-tab td { padding: 7px 4px; border-top: 1px solid var(--line); text-align: left; font-weight: 400; color: var(--ink-2); }
.het-tab td.n { text-align: right; color: var(--ink); white-space: nowrap; }
.chart-infl { height: 420px; }

.um-res { padding: 16px 18px; border: 1px solid var(--gold-line); border-radius: 14px; background: var(--gold-soft); }
.um-res .k { display: block; font-size: .8rem; color: var(--ink-2); } .um-res .v { display: block; margin-top: 4px; font-size: 1.25rem; font-family: var(--font-display); font-variation-settings: "opsz" 36; } .um-res .s { display: block; margin-top: 4px; font-size: .84rem; color: var(--ink-2); }
.um-dl { margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.um-dl div { padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card); display: grid; gap: 3px; }
.um-dl dt { font-size: .76rem; color: var(--ink-3); line-height: 1.35; } .um-dl dd { margin: 0; font-size: 1.15rem; color: var(--ink); } .um-dl dd.s { font-size: .74rem; color: var(--ink-3); font-family: var(--font-sans); }

.pct-bar.thin { height: 10px; margin-top: 2px; }

.pq-ctl-cat { align-items: center; }
.campo-busca input { width: min(300px, 70vw); padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--bg-glass); color: var(--ink); font: inherit; font-size: .86rem; }
.campo-busca input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pq-dlbtns { margin-left: auto; display: inline-flex; gap: 8px; }
.pq-cat-n { margin: 0 0 8px; font-size: .8rem; color: var(--ink-3); }
.tablewrap.cat { max-height: 620px; }
.tablewrap.cat table { min-width: 1060px; }
.tablewrap.cat .num { font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-size: .82rem; letter-spacing: 0; white-space: nowrap; }
.tablewrap.cat td small { display: block; margin-top: 1px; font-size: .72rem; color: var(--ink-3); }
.tablewrap.cat td b { font-weight: 600; color: var(--ink); }
.tablewrap.cat td a { color: var(--gold); text-underline-offset: 3px; }
.tablewrap.cat th.srt { cursor: pointer; user-select: none; white-space: nowrap; }
.tablewrap.cat th.srt:hover { color: var(--gold); }
.tablewrap.cat th.srt[aria-sort="ascending"]::after { content: " ▲"; font-size: .7em; color: var(--gold); }
.tablewrap.cat th.srt[aria-sort="descending"]::after { content: " ▼"; font-size: .7em; color: var(--gold); }
.tablewrap.cat tr.is-exc td { opacity: .72; }
.st { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.st i { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--neutral); }
.st-ok i { background: var(--ok); } .st-exc i { background: var(--bad); } .st-tend i { background: transparent; box-shadow: inset 0 0 0 2px var(--sc-tendencia); } .st-pre i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--neutral); }
.tablewrap.cat td:last-child a { white-space: nowrap; }
.tablewrap.cat th, .tablewrap.cat td { padding: 9px 10px; }

/* ------------------------------------------------ probabilidade nos cartões do resumo */
.pq-prob { display: grid; gap: 7px; }
.pq-prob-k { margin: 0; font-size: .78rem; color: var(--ink-3); }
.pq-prob-fx { margin: 0; font-size: .78rem; line-height: 1.5; color: var(--ink-2); }
.pq-prob-fx b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------ regiões e robustez */
.chart-regioes { height: 346px; }
.chart-robustez { height: 576px; }
.chart-jackinst { height: 630px; }
.chart.is-wait::before { content: ""; position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(100deg, transparent 30%, var(--hover) 50%, transparent 70%) 0 0 / 220% 100%, var(--bg-card); animation: rb-brilho 1.6s linear infinite; }
@keyframes rb-brilho { to { background-position: -220% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .chart.is-wait::before { animation: none; } }
.rb-status { margin: 0 0 8px; min-height: 1.2em; font-size: .8rem; color: var(--ink-3); }
.rb-status:empty { display: none; }
.rb-fig { margin-top: 30px; }
.pq-exc { margin-top: 4px; }
.rb-exc { padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-card); }
.rb-exc h4 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; font-variation-settings: "opsz" 36; }
.rb-regra { margin: 0 0 14px; max-width: 92ch; font-size: .8rem; line-height: 1.55; color: var(--ink-3); }
.rb-tabwrap { border: 0; background: none; }
.rb-tab { min-width: 520px; }
.rb-tab th[scope="col"] { font-size: .74rem; color: var(--ink-3); }
.rb-tab th[scope="row"] { background: none; color: var(--ink); }
.rb-tab td small { display: block; margin-top: 2px; font-size: .72rem; color: var(--ink-3); font-family: var(--font-sans); }
.rb-lista { margin: 14px 0 0; padding: 0 0 0 18px; display: grid; gap: 6px; font-size: .82rem; line-height: 1.55; color: var(--ink-2); max-width: 96ch; }
.rb-lista b { color: var(--ink); font-weight: 600; }
.rb-conc { margin: 12px 0 0; padding-left: 12px; border-left: 2px solid var(--sc-consenso); font-size: .86rem; color: var(--ink); max-width: 92ch; }

/* ------------------------------------------------ sensibilidade ao erro histórico */
.pq-sig { margin-top: 30px; }
.pq-sig h4 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; font-variation-settings: "opsz" 36; }
.sig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.sig { display: flex; flex-direction: column; gap: 5px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-card); }
.sig.is-pad { border-color: color-mix(in srgb, var(--sc-tendencia) 55%, transparent); background: color-mix(in srgb, var(--sc-tendencia) 8%, var(--bg-card)); }
.sig .k { font-size: .78rem; color: var(--ink-2); line-height: 1.4; }
.sig .k em { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 99px; font-style: normal; font-size: .68rem; color: var(--ink); background: color-mix(in srgb, var(--sc-tendencia) 22%, transparent); }
.sig .v { font-size: 1.35rem; color: var(--ink); }
.sig .s { font-size: .74rem; color: var(--ink-3); line-height: 1.45; }
.sig .pr { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 2px; font-size: .84rem; }
.sig .pr b { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.sig .pr b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* ------------------------------------------------ créditos: campo ainda não preenchido */
.cred-pend { display: inline-block; padding: 0 .3em; border: 1px dashed var(--gold-line); border-radius: 8px; color: var(--ink-2); }

/* ------------------------------------------------ comparecimento / fatores / simulador */
.sens-text li.is-cur { color: var(--ink); }
.sens-text li.is-cur b { color: var(--ink); }
.sim-presets .chip i { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--c); }
.sim-near { margin: 8px 0 0; font-size: .86rem; color: var(--ink-2); }
.sim-near b { color: var(--ink); font-weight: 600; }
.sim-near b i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: var(--c); }
.rng-more { margin-top: 4px; }
.rng-more summary { cursor: pointer; font-size: .82rem; color: var(--ink-2); padding: 4px 0; }
.rng-more summary:hover { color: var(--gold); }
.rng-more .rng { margin-top: 8px; }
.met-docs { font-size: .88rem; }

/* ------------------------------------------------ créditos e rodapé */
.creditos { position: relative; padding: clamp(72px, 9vw, 132px) 0 clamp(54px, 7vw, 96px); border-top: 1px solid var(--line); background: var(--bg-band); }
.cred-titulo { margin: 0 0 clamp(26px, 4vw, 46px); font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 4.8vw, 3.8rem); letter-spacing: -0.028em; line-height: 1.02; font-variation-settings: "opsz" 120, "SOFT" 20; }
.cred-autor { display: grid; gap: 5px; max-width: 760px; margin-bottom: clamp(34px, 5vw, 56px); padding: clamp(22px, 3vw, 36px); border: 1px solid var(--gold-line); border-radius: 22px; background: linear-gradient(160deg, var(--gold-soft), transparent 70%); }
.cred-autor p { margin: 0; }
.cred-papel { font-size: .95rem; color: var(--ink-2); }
.cred-nome { font-family: var(--font-display); font-size: clamp(1.9rem, 4.2vw, 3.1rem); font-weight: 500; letter-spacing: -0.022em; line-height: 1.1; font-variation-settings: "opsz" 96; overflow-wrap: anywhere; }
.cred-org { font-size: 1.1rem; color: var(--ink); overflow-wrap: anywhere; }
.cred-contato a { color: var(--gold); text-underline-offset: 3px; }
.cred-ano { font-size: .85rem; color: var(--ink-3); }
.cred-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; }
.cred-col h3 { margin: 0 0 14px; font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; font-variation-settings: "opsz" 36; }
.cred-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: .8rem; color: var(--ink-3); line-height: 1.6; }
.cred-col a { color: var(--ink-2); text-underline-offset: 3px; }
.cred-col a:hover { color: var(--gold); }
.footer { padding: 46px 0 36px; }
.footer .foot-end { margin-top: 30px; }

/* ------------------------------------------------ tema claro: ajustes finos */
:root[data-theme="light"] .photo img, :root[data-theme="light"] .apur-photo img { filter: saturate(.85) brightness(.9) contrast(1.02); }
:root[data-theme="light"] .photo::after, :root[data-theme="light"] .apur-photo::after { background: linear-gradient(180deg, transparent 50%, rgba(7,9,15,.78)); }
:root[data-theme="light"] .photo-cap { color: #e7ebf3; }
:root[data-theme="light"] .braid-div { opacity: .7; }
:root[data-theme="light"] ::selection { background: var(--gold); color: #fff; }

/* ------------------------------------------------ responsivo v2 */
@media (max-width: 1100px) {
  .cred-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pq-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pq-kpi:nth-child(4) { padding-left: 0; border-left: 0; }
  .pq-kpi:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .pq-cards, .pq-duo { grid-template-columns: 1fr; }
  .pq-flags li { grid-template-columns: 96px minmax(0, 1fr) 34px; }
  .fl-ex { grid-column: 1 / -1; }
  .hero-row { gap: 18px; }
  .hero-expect { max-width: none; width: 100%; }
}
@media (max-width: 720px) {
  .topnav .theme-btn { width: 34px; height: 34px; }
  .theme-btn svg { width: 16px; height: 16px; }
  .pq-kpis { grid-template-columns: 1fr 1fr; }
  .pq-kpi:nth-child(n) { padding-left: 14px; border-left: 1px solid var(--line); border-top: 0; }
  .pq-kpi:nth-child(2n+1) { padding-left: 0; border-left: 0; }
  .pq-kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pq-faixa { --lab: 104px; }
  .fx-nome { font-size: .78rem; }
  .fx-row { height: 52px; }
  .het-grid, .um-dl, .sig-grid { grid-template-columns: 1fr; }
  .cred-cols { grid-template-columns: 1fr; }
  .rb-exc { padding: 16px 14px; }
  .tablewrap .rb-tab { min-width: 0; font-size: .74rem; }
  .tablewrap .rb-tab th, .tablewrap .rb-tab td { padding: 6px 3px; }
  .tablewrap .rb-tab td.n, .tablewrap .rb-tab th.n { white-space: normal; }
  .tablewrap .rb-tab th[scope="col"] { font-family: var(--font-sans); font-size: .68rem; }
  .rb-tab td small { font-size: .66rem; }
  .chart-tempo { height: 400px; }
  .chart-funil { height: 420px; }
  .chart-prob { height: 360px; }
  .pq-nav { top: 64px; max-width: 100%; }
  .pq-big { gap: 0 10px; }
  .pq-probbar span { min-width: 5rem; padding: 0 9px; }
  .seg-cen { width: 100%; }
  .seg-cen button { flex: 1 1 calc(33% - 6px); }
  .seg-sep { display: none; }
  .pq-dlbtns { margin-left: 0; }
}
@media (max-width: 420px) {
}

/* ======================================================================
   v3 — Nossa Análise, seis cenários, clareza das probabilidades
   ====================================================================== */
.hero-expect { max-width: 390px; border-left-color: var(--gold); }
.he-u { display: block; margin-top: 4px; font-size: .72rem; color: var(--ink-3); }
.he-ch { display: block; margin-top: 12px; }
.he-ch .t-chance { font-size: .82rem; }
.he-s { margin-top: 10px; }
.pq-bigu { margin: 4px 0 12px; font-size: .78rem; color: var(--ink-3); }
.pq-prob-k small { font-weight: 400; color: var(--ink-3); font-size: .78em; }
.pq-prob { padding: 12px 14px; border: 1px dashed var(--gold-line); border-radius: 14px; background: var(--chance-bg); }
.sim-un { margin: 6px 0 0; font-size: .8rem; color: var(--ink-3); }
.sim-un b { color: var(--ink-2); }
.pr .t-chance { font-size: .78rem; }
.pr .t-chance::before { display: none; }
