/* =========================================================
   Sacoman & Cabral Analytics — painéis de saúde corporativa
   Identidade visual da Sacoman & Cabral (sacomancabral.com.br)
   ========================================================= */

@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 450 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../fonts/spectral-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../fonts/spectral-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../fonts/spectral-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* Marca Sacoman & Cabral */
  --ink: #101820;
  --paper: #F1F1EE;
  --muted: #565C63;
  --line: #D6D6D0;
  --red: #A5322B;
  --band: #E8E8E2;
  --tile: #FBFBF9;
  --sans: 'IBM Plex Sans', Arial, sans-serif;
  --display: 'Spectral', Georgia, serif;
  --mono: 'IBM Plex Mono', monospace;
  --gutter: clamp(22px, 5.7vw, 88px);

  /* Status (sempre com ícone e rótulo) */
  --crit-bg: #F2E1DE; --crit-text: #8C2A24;
  --warn-bg: #F4EAD4; --warn-text: #74500F;
  --good: #3E7C52; --good-bg: #E1ECE3; --good-text: #2F6340;
  --info-bg: #E2E8F0; --info-text: #284F7A;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--red); color: var(--paper); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
[hidden] { display: none !important; }

.skip { position: fixed; left: -9999px; top: 12px; z-index: 2000; background: var(--ink); color: var(--paper); padding: 12px; }
.skip:focus { left: 16px; }
.wrap { width: min(100%, 1440px); margin: auto; padding-inline: var(--gutter); }
.section { padding-block: 104px; }
.band { background: var(--band); }
.overline { font: 400 11px/1.5 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.arrow { font-family: var(--sans); font-size: 20px; line-height: 1; }
.text-link { display: inline-flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; border-bottom: 1px solid currentColor; padding-block: 7px; }
.text-link:hover { color: var(--red); }
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); padding: 16px 23px; min-height: 56px; font-weight: 500; font-size: 14px; border-radius: 6px; transition: background .18s, border-color .18s, color .18s; }
.btn:hover { background: var(--red); border-color: var(--red); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: #deded8; border-color: #deded8; color: var(--ink); }

/* Títulos de seção: coluna de rótulo + coluna de conteúdo */
.section-top { display: grid; grid-template-columns: 1fr 2.05fr; gap: 40px; margin-bottom: 48px; }
.section-top .overline { padding-top: 12px; }
.section-top h2 { font: 400 clamp(34px, 3.5vw, 50px)/1.14 var(--display); letter-spacing: -.035em; max-width: 23ch; }
.section-top h2 em, .hero h1 em { font-style: italic; color: var(--red); }
.section-top .intro { color: var(--muted); max-width: 58ch; margin-top: 18px; }
.offset { margin-left: calc((100% - 40px) / 3 + 40px); }

/* ---------- Cabeçalho ---------- */
.masthead { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 900; background: var(--paper); }
.nav { min-height: 88px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.brand { display: flex; flex-direction: column; flex-shrink: 0; }
.wordmark { font: 500 21px/1.2 var(--display); letter-spacing: .055em; }
.wordmark i { font-weight: 400; color: var(--red); padding-inline: 2px; }
.brand-sub { font: 400 8px/1.4 var(--mono); letter-spacing: .11em; text-transform: uppercase; margin-top: 7px; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 13px; }
.nav-links > a:not(.nav-contact):hover { color: var(--red); }
.nav-contact { border-bottom: 1px solid var(--ink); padding-block: 8px; display: flex; gap: 22px; align-items: center; font-weight: 500; }
.nav-contact:hover { color: var(--red); border-color: var(--red); }
.menu-btn { display: none; border: 1px solid var(--line); background: transparent; min-height: 44px; padding: 8px 12px; font-size: 13px; border-radius: 6px; }
.mobilenav { display: flex; flex-direction: column; padding-bottom: 18px; }
.mobilenav a { padding: 13px 0; border-top: 1px solid var(--line); font-size: 14px; min-height: 44px; }

/* ---------- Abertura ---------- */
.hero { padding-block: 60px 72px; }
.hero-top { display: grid; grid-template-columns: 1.5fr 1fr; gap: 9%; align-items: center; }
.hero .overline { display: flex; align-items: center; gap: 12px; }
.hero .overline::before { content: ''; height: 1px; width: 28px; background: var(--red); flex-shrink: 0; }
.hero h1 { font: 400 clamp(44px, 5.4vw, 80px)/1.04 var(--display); letter-spacing: -.05em; margin-top: 29px; max-width: 14ch; }
.hero-copy { font-size: 17px; color: var(--muted); max-width: 52ch; margin-top: 28px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { font-size: 12px; color: var(--muted); margin-top: 15px; }
.doc-caption { display: flex; justify-content: space-between; gap: 12px; font: 400 10px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .05em; padding-bottom: 12px; color: var(--muted); }
.document { border: 1px solid var(--ink); border-radius: 8px; padding: 30px 28px 24px; }
.doc-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.doc-brand { font: 500 13px var(--display); letter-spacing: .07em; }
.doc-amp { font: italic 32px/1 var(--display); color: var(--red); }
.doc-type { margin-top: 27px; font: 400 10px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.document h2 { font: 400 31px/1.15 var(--display); letter-spacing: -.035em; max-width: 14ch; margin-top: 10px; }
.doc-question { width: 100%; display: grid; grid-template-columns: 24px 1fr; gap: 7px; padding: 15px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-size: 13px; color: var(--ink); }
.doc-question:first-of-type { margin-top: 22px; }
.doc-question .num { font: 400 10px/1.8 var(--mono); color: var(--red); }
.doc-question strong { font-weight: 500; }
.doc-question small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.doc-question small b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.doc-question:hover strong { color: var(--red); }
.doc-note { font-size: 11px; line-height: 1.55; color: var(--muted); margin-top: 18px; }
.hero-baseline { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 1px solid var(--line); margin-top: 64px; padding-top: 21px; gap: 30px; }
.hero-baseline div { display: flex; gap: 15px; align-items: baseline; font-size: 13px; }
.hero-baseline b { font: 400 10px var(--mono); color: var(--red); }

/* ---------- Visualizador de painéis ---------- */
.viewer-sec { border-top: 1px solid var(--line); padding-top: 88px; }
.rv { background: var(--tile); border: 1px solid var(--ink); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.rv:fullscreen { border-radius: 0; height: 100vh; }
.rv:fullscreen .rv-body { flex: 1; min-height: 0; }
.rv:fullscreen .rv-canvas { flex: 1; overflow: auto; }

.rv-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 46px; padding: 0 12px 0 16px; background: var(--ink); color: var(--paper); }
.rv-crumb { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; }
.rv-logo { font: italic 22px/1 var(--display); color: #D98A82; flex-shrink: 0; }
.rv-org { color: #B9BFC1; white-space: nowrap; }
.rv-sep { color: #61676A; }
.rv-panel { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-meta { display: flex; align-items: center; gap: 8px; }
.rv-updated { font: 400 10px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: #B9BFC1; white-space: nowrap; }
.rv-icon-btn { width: 32px; height: 32px; display: grid; place-items: center; background: none; border: 0; color: var(--paper); border-radius: 4px; }
.rv-icon-btn:hover { background: rgba(255,255,255,.1); }
.rv-icon-btn svg { width: 18px; height: 18px; }

.rv-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.rv-nav { background: var(--paper); border-right: 1px solid var(--line); padding: 14px 0; }
.rv-nav-label { font: 400 10px var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding: 2px 18px 10px; }
.rv-panel-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 18px 11px 16px; border: 0; border-left: 2px solid transparent; background: none; font-size: 13.5px; color: var(--muted); text-align: left; }
.rv-panel-btn:hover { color: var(--ink); background: var(--band); }
.rv-panel-btn .ico { width: 17px; height: 17px; flex-shrink: 0; }
.rv-panel-btn .cnt { margin-left: auto; font: 400 10px var(--mono); color: var(--muted); }
.rv-panel-btn[aria-current="true"] { color: var(--ink); font-weight: 500; border-left-color: var(--red); background: var(--band); }
.rv-panel-btn[aria-current="true"] .ico { color: var(--red); }
.rv-pages { padding: 2px 0 8px 43px; }
.rv-page-link { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 6px 12px 6px 0; font-size: 12.5px; color: var(--muted); }
.rv-page-link:hover { color: var(--ink); }
.rv-page-link[aria-current="page"] { color: var(--red); font-weight: 500; }
.rv-nav-select { display: none; }

.rv-main { display: flex; flex-direction: column; min-width: 0; }
.rv-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--tile); }
.slicer { display: flex; flex-direction: column; gap: 4px; font: 400 10px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.slicer select { appearance: none; -webkit-appearance: none; min-width: 190px; height: 36px; padding: 0 32px 0 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font: 400 13.5px var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23565C63' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.slicer select:hover { border-color: #B5B5AE; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px; border: 1px solid var(--red); background: #F6ECEA; color: var(--crit-text); border-radius: 4px; font: 500 13px var(--sans); letter-spacing: 0; text-transform: none; }
.chip::after { content: "×"; font-size: 17px; line-height: 1; }
.rv-reset { margin-left: auto; height: 36px; padding: 0 2px; background: none; border: 0; border-bottom: 1px solid currentColor; font-size: 13px; font-weight: 500; }
.rv-reset:hover { color: var(--red); }

.rv-canvas { background: var(--band); padding: 18px; min-height: 620px; outline: none; }
.pg-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.pg-title { font: 400 26px/1.2 var(--display); letter-spacing: -.025em; }
.pg-sub { font-size: 13.5px; color: var(--muted); margin-top: 4px; max-width: 82ch; }
.pg-toggle { display: inline-flex; border: 1px solid var(--ink); border-radius: 6px; padding: 2px; background: var(--tile); }
.pg-toggle button { border: 0; background: none; padding: 6px 12px; font-size: 13px; color: var(--muted); border-radius: 4px; }
.pg-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; }
.c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; grid-column: span 12; }

.tile { background: var(--tile); border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px 12px; min-width: 0; display: flex; flex-direction: column; }
.tile-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.tile-title { font-size: 14px; font-weight: 500; line-height: 1.35; }
.tile-sub { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.tile-tools { display: flex; gap: 2px; opacity: 0; transition: opacity .12s; flex-shrink: 0; }
.tile:hover .tile-tools, .tile:focus-within .tile-tools { opacity: 1; }
@media (hover: none) { .tile-tools { opacity: 1; } }
.tile-tool { width: 28px; height: 28px; display: grid; place-items: center; border: 0; background: none; border-radius: 4px; color: var(--muted); }
.tile-tool:hover { background: var(--band); color: var(--red); }
.tile-tool svg { width: 15px; height: 15px; }
.chart { width: 100%; flex: 1; min-height: 220px; }

.kpi { padding: 14px 16px; }
.kpi-label { font: 400 10px/1.5 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.kpi-value { font: 400 34px/1.1 var(--display); letter-spacing: -.03em; margin-top: 8px; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.kpi-value small { font: 400 14px var(--sans); letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.kpi-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--muted); }

.status { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 500; padding: 2px 8px 2px 6px; border-radius: 3px; white-space: nowrap; }
.status svg { width: 12px; height: 12px; flex-shrink: 0; }
.st-crit { background: var(--crit-bg); color: var(--crit-text); }
.st-warn { background: var(--warn-bg); color: var(--warn-text); }
.st-good { background: var(--good-bg); color: var(--good-text); }
.st-info { background: var(--info-bg); color: var(--info-text); }

.insight { background: var(--tile); border: 1px solid var(--line); border-left: 2px solid var(--red); border-radius: 4px; padding: 16px 20px; }
.insight .insight-title { font: 400 10px/1.5 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.insight p { font-size: 14px; line-height: 1.6; }
.insight p + p { margin-top: 8px; }
.insight .act { color: var(--muted); }
.insight .act b { color: var(--ink); font-weight: 500; }

.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font: 400 10px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #F3F3EF; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.tbl th.num { text-align: right; }
.tbl .strong { font-weight: 500; }

.ruler { margin: 18px 4px 6px; }
.ruler-track { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #30639A 0%, #9DB4CE 24%, #E2E2DC 33.33%, #DDB1AB 48%, #A5322B 100%); }
.ruler-mark { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); border: 4px solid var(--ink); }
.ruler-mark.target { border-color: var(--good); }
.ruler-scale { position: relative; height: 34px; margin-top: 8px; font: 400 10.5px/1.4 var(--mono); color: var(--muted); }
.ruler-scale span { position: absolute; top: 0; transform: translateX(-50%); text-align: center; white-space: nowrap; }
.ruler-scale span:first-child { transform: none; text-align: left; }
.ruler-scale span:last-child { transform: translateX(-100%); text-align: right; }
.ruler-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.ruler-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 3px solid var(--ink); margin-right: 6px; vertical-align: -1px; }
.ruler-legend span.t::before { border-color: var(--good); }

.split { display: flex; height: 26px; border-radius: 3px; overflow: hidden; gap: 2px; margin: 10px 0 8px; }
.split > div { display: flex; align-items: center; padding: 0 8px; font-size: 12px; font-weight: 500; color: #fff; white-space: nowrap; }
.split-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--muted); }
.split-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; background: var(--c); vertical-align: -1px; }

.ergo { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; align-items: start; }
.ergo-fig { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 10px; display: grid; place-items: center; }
.ergo-fig svg { width: 100%; max-width: 180px; height: auto; }
.ergo-hot { cursor: pointer; }
.ergo-hot:focus-visible { outline: none; }
.ergo-hot:focus-visible circle:last-of-type, .ergo-hot.on circle:last-of-type { stroke: var(--ink); stroke-width: 3; }
.ergo-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ergo-tabs button { border: 1px solid var(--line); background: var(--tile); border-radius: 4px; padding: 6px 12px; font-size: 12.5px; color: var(--muted); }
.ergo-tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ergo-detail h4 { font: 400 22px/1.25 var(--display); letter-spacing: -.02em; margin-bottom: 8px; }
.ergo-detail p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.ergo-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 20px; margin-top: 14px; }
.ergo-facts div { border-top: 1px solid var(--ink); padding-top: 8px; }
.ergo-facts dt { font: 400 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ergo-facts dd { margin: 4px 0 0; font-size: 13.5px; font-weight: 500; }

.sim { margin-top: 10px; padding: 12px 14px; border-radius: 4px; background: var(--paper); border: 1px solid var(--line); }
.sim-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sim label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.sim label b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sim input[type="range"] { width: 100%; accent-color: var(--red); }
.sim-out { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.sim-out strong { font: 400 24px var(--display); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }

.rv-tabs { display: flex; gap: 0; padding: 0 10px; border-top: 1px solid var(--line); background: var(--tile); overflow-x: auto; scrollbar-width: thin; }
.rv-tab { flex-shrink: 0; border: 0; border-top: 2px solid transparent; margin-top: -1px; background: none; padding: 12px 14px 11px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.rv-tab:hover { color: var(--ink); }
.rv-tab[aria-selected="true"] { color: var(--ink); font-weight: 500; border-top-color: var(--red); }

.focus { position: fixed; inset: 0; z-index: 1500; background: rgba(16, 24, 32, .6); display: grid; place-items: center; padding: clamp(8px, 3vw, 40px); }
.focus-box { background: var(--tile); border: 1px solid var(--ink); border-radius: 8px; width: min(1200px, 100%); height: min(760px, 100%); display: flex; flex-direction: column; padding: 20px 22px; }
.focus-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.focus-title { font: 400 24px/1.2 var(--display); letter-spacing: -.02em; }
.focus-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.focus-close { border: 1px solid var(--ink); background: none; border-radius: 6px; height: 40px; padding: 0 16px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.focus-close:hover { background: var(--ink); color: var(--paper); }
.focus-chart { flex: 1; min-height: 0; }

/* ---------- Para quem ---------- */
.rows-sec { border-top: 1px solid var(--line); }
.rows { margin-left: calc((100% - 40px) / 3 + 40px); }
.row { display: grid; grid-template-columns: 32px 1fr 1.15fr; gap: 18px 24px; padding: 28px 0; border-top: 1px solid var(--line); align-items: baseline; }
.row:last-child { border-bottom: 1px solid var(--line); }
.row .number { font: 400 11px var(--mono); color: var(--red); }
.row h3 { font: 400 10.5px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.row-q { font: 400 23px/1.3 var(--display); letter-spacing: -.02em; margin-top: 8px; }
.row ul li { font-size: 14px; color: var(--muted); padding: 6px 0 6px 18px; position: relative; }
.row ul li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 1px; background: var(--red); }

/* ---------- Contexto ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.fact { border-top: 1px solid var(--ink); padding-top: 18px; }
.fact-num { font: 400 clamp(36px, 3.4vw, 48px)/1 var(--display); letter-spacing: -.035em; font-variant-numeric: lining-nums; }
.fact figcaption p { margin-top: 16px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.fact figcaption a { display: inline-block; margin-top: 14px; font: 400 10px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.fact figcaption a:hover { color: var(--red); border-color: var(--red); }

/* ---------- Etapas ---------- */
.steps { display: grid; gap: 28px; }
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { border-top: 1px solid var(--ink); padding-top: 15px; }
.step > span { font: 400 10px var(--mono); color: var(--red); }
.step h3 { font-size: 16px; font-weight: 500; margin-top: 15px; }
.step p { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.6; }
.cta-row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 44px; }

/* ---------- Seções escuras ---------- */
.dark { background: var(--ink); color: var(--paper); }
.dark .overline { color: #B9BFC1; }
.dark .section-top .intro { color: #BAC0C3; }
.dark .section-top h2 em { color: #E4A49D; }
.entregas-grid { display: grid; grid-template-columns: 1fr 2.05fr; gap: 40px; }
.rule-example { border: 1px solid #61676A; border-radius: 8px; padding: 22px 22px 8px; align-self: start; }
.rule-example dl { margin-top: 16px; }
.rule-example dl > div { display: grid; grid-template-columns: 56px 1fr; gap: 12px; border-top: 1px solid #40494F; padding: 14px 0; font-size: 14px; line-height: 1.6; color: #E4E7E8; }
.rule-example dt { font: 400 10px/2 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #B9BFC1; }
.rule-example .decision { border-left: 2px solid var(--red); padding-left: 14px; margin-left: -16px; }
.rule-example .decision dt { color: #E4A49D; }
.deliver-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.deliver-list li { padding: 20px 0 24px; border-top: 1px solid #61676A; }
.deliver-list h3 { font: 400 22px/1.25 var(--display); letter-spacing: -.02em; }
.deliver-list p { font-size: 14px; color: #C7CCCE; margin-top: 10px; line-height: 1.65; }

.founders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.founder { border-top: 1px solid #61676A; padding-top: 22px; }
.founder-number { font: 400 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #BEC3C6; display: block; margin-bottom: 18px; }
.founder h3 { font: 400 28px/1.18 var(--display); letter-spacing: -.025em; }
.founder .role { color: #C7CCCE; font-size: 12px; margin-top: 10px; }
.founder .bio { font-size: 14px; line-height: 1.65; color: #C7CCCE; margin-top: 20px; }

/* ---------- Fontes de dados ---------- */
.sources div { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.sources div:last-child { border-bottom: 1px solid var(--line); }
.sources dt { font: 400 10.5px/1.9 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--red); }
.sources dd { margin: 0; font-size: 15px; }

/* ---------- LGPD ---------- */
.checks li { padding: 20px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; line-height: 1.6; }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks b { color: var(--ink); font-weight: 500; }

/* ---------- Dúvidas ---------- */
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; cursor: pointer; padding: 22px 0; font-size: 16px; font-weight: 450; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font: 400 21px var(--sans); color: var(--red); }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details > p { max-width: 66ch; padding-bottom: 24px; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ---------- Contato ---------- */
.contact { background: var(--ink); color: var(--paper); padding-block: 90px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; }
.contact .overline { color: #B9BFC1; }
.contact h2 { font: 400 clamp(38px, 4.2vw, 60px)/1.1 var(--display); letter-spacing: -.045em; max-width: 14ch; margin-top: 24px; }
.contact-copy { font-size: 15px; color: #C7CCCE; max-width: 40ch; margin-top: 25px; }
.contact .btn { margin-top: 30px; }
.contact-direct { margin-top: 24px; font-size: 13px; color: #C7CCCE; }
.contact-direct a { border-bottom: 1px solid #798186; padding-bottom: 4px; }
.contact-alt { padding-top: 8px; }
.contact-alt h3 { font-size: 17px; font-weight: 450; }
.contact-alt > p { color: #C7CCCE; font-size: 13px; max-width: 47ch; margin-top: 10px; }
.contact-form { margin-top: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 11px; color: #C7CCCE; }
.field input, .field select { border: 0; border-bottom: 1px solid #778087; border-radius: 0; color: var(--paper); background: transparent; width: 100%; padding: 9px 0; min-height: 44px; font-size: 14px; }
.field input::placeholder { color: #AAB1B6; }
.field input[aria-invalid="true"] { border-bottom-color: #E4A49D; }
.field select { color-scheme: dark; }
.field select option { background: var(--ink); color: var(--paper); }
.form-note { font-size: 11px; line-height: 1.7; color: #BAC0C3; margin-top: 17px; }
.form-error { font-size: 12px; color: #F0C3BD; margin-top: 12px; border-left: 2px solid #D7928B; padding-left: 12px; }
.form-submit { width: 100%; display: flex; align-items: center; justify-content: space-between; border-radius: 6px; border: 1px solid var(--paper); background: var(--paper); color: var(--ink); padding: 14px 18px; min-height: 52px; margin-top: 22px; font-size: 14px; font-weight: 500; transition: background .18s; }
.form-submit:hover { background: #deded8; }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid #40494F; background: var(--ink); color: var(--paper); padding-block: 36px 28px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 26px; }
.footer .brand-sub { color: #BAC0C3; }
.footer-links { display: flex; gap: 24px; font-size: 11px; color: #C7CCCE; flex-wrap: wrap; }
.footer-links a:hover { color: var(--paper); }
.footer-note { font-size: 12px; color: #AAB1B6; margin-top: 26px; }
.footer-bottom { margin-top: 18px; padding-top: 17px; border-top: 1px solid #40494F; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: #AAB1B6; font: 400 9px/1.5 var(--mono); letter-spacing: .04em; }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .nav-links { gap: 18px; }
  .c3 { grid-column: span 6; }
  .c4, .c5, .c6, .c7, .c8 { grid-column: span 12; }
  .facts { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .founders { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .section { padding-block: 80px; }
  .hero-top { grid-template-columns: 1fr; gap: 48px; }
  .hero-document { max-width: 520px; }
  .rv-body { grid-template-columns: 1fr; }
  .rv-nav { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; }
  .rv-nav-label, .rv-nav-list { display: none; }
  .rv-nav-select { display: flex; flex-direction: column; gap: 4px; font: 400 10px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
  .rv-nav-select select { height: 42px; border: 1px solid var(--line); border-radius: 4px; padding: 0 10px; font: 400 14px var(--sans); letter-spacing: 0; text-transform: none; background: #fff; color: var(--ink); }
  .section-top, .entregas-grid { grid-template-columns: 1fr 2fr; gap: 26px; }
  .offset, .rows { margin-left: calc((100% - 26px) / 3 + 26px); }
  .steps-4 { grid-template-columns: 1fr 1fr; gap: 32px 28px; }
  .row { grid-template-columns: 28px 1fr; }
  .row ul { grid-column: 2; }
  .deliver-list { grid-template-columns: 1fr; }
  .contact-grid { gap: 7%; }
}
@media (max-width: 720px) {
  .wordmark { font-size: 18px; }
  .brand-sub { font-size: 7px; letter-spacing: .06em; }
  .nav { min-height: 74px; gap: 12px; }
  .hero { padding-block: 32px 44px; }
  .hero h1 { font-size: clamp(42px, 11.5vw, 62px); margin-top: 22px; }
  .hero-copy { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-actions .btn { width: 100%; }
  .document { padding: 24px 22px; }
  .document h2 { font-size: 27px; }
  .hero-baseline { grid-template-columns: 1fr; gap: 14px; margin-top: 36px; }
  .section { padding-block: 60px; }
  .viewer-sec { padding-top: 60px; }
  .section-top, .entregas-grid { display: block; }
  .section-top { margin-bottom: 30px; }
  .section-top .overline { padding-top: 0; }
  .section-top h2 { font-size: 34px; margin-top: 18px; }
  .section-top .intro { font-size: 14px; }
  .offset, .rows { margin-left: 0; }
  .rule-example { margin-bottom: 28px; }
  .steps-4, .steps-3, .facts, .founders { grid-template-columns: 1fr; }
  .row-q { font-size: 21px; }
  .sources div { grid-template-columns: 1fr; gap: 4px; }
  .rv-updated, .rv-org, .rv-sep { display: none; }
  .rv-canvas { padding: 10px; min-height: 0; }
  .rv-filters { padding: 10px 12px; }
  .slicer { flex: 1 1 140px; }
  .slicer select { min-width: 0; width: 100%; }
  .rv-reset { margin-left: 0; }
  .c3 { grid-column: span 12; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi-value { font-size: 26px; }
  .ergo { grid-template-columns: 1fr; }
  .sim-row { grid-template-columns: 1fr; }
  .contact { padding-block: 60px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact h2 { font-size: 42px; }
  .contact .btn { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.form-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.form-state{font-size:13px;line-height:1.6;margin-top:16px;color:inherit}
.form-state:empty{display:none}
.form-submit:disabled{opacity:.65;cursor:wait}
.form-note a{text-decoration:underline;text-underline-offset:3px}
