/* Gabaritô · site institucional
   Mesmos tokens do app (static/app.css): tudo o que muda entre os temas é token. Sem escolha, segue o sistema;
   a escolha da pessoa vem em <html data-tema="claro|escuro">. Fonte servida daqui mesmo, sem Google Fonts (LGPD). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter.woff2") format("woff2"); }

:root {
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --faint: #94a3b8;
  --bg: #f3f5f9; --surface: #fff; --surface-2: #f8fafc; --line: #e5e9f0; --line-2: #eef1f6; --line-3: #cbd5e1;
  --navy: #111827; --navy-2: #1b2435; --navy-3: #273247;
  --brand: #e8590c; --brand-600: #c2410c; --brand-hover: #c2410c; --brand-50: #fff5ed; --brand-100: #ffe6d5;
  --ok: #15803d; --ok-50: #ecfdf3; --ok-line: #bbf7d0; --ok-ink: #14532d;
  --warn: #b45309; --warn-50: #fffbeb; --warn-line: #fde68a; --warn-ink: #78350f;
  --err: #b91c1c; --err-50: #fef2f2; --err-line: #fecaca; --err-ink: #7f1d1d;
  --info: #1d4ed8; --info-50: #eff6ff;
  --field: #fff; --field-line: #d5dbe5;
  /* gráficos: paleta validada (scripts/validate_palette.js) contra a superfície de cada tema */
  --serie-1: #e8590c; --serie-2: #2a78d6; --grade: #eef1f6; --eixo: #cbd5e1;
  --so-claro: inline; --so-escuro: none;
  --r: 14px; --r-sm: 9px; --r-lg: 20px;
  --sh-1: 0 1px 2px rgba(15, 23, 42, .05);
  --sh-2: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --sh-3: 0 20px 50px -20px rgba(15, 23, 42, .35);
  --foco: 0 0 0 3px rgba(232, 89, 12, .3);
  --fonte: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --largura: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) {
    --ink: #e6ebf2; --ink-2: #c3ccd9; --muted: #94a3b8; --faint: #6b7a90;
    --bg: #0b1120; --surface: #141c2b; --surface-2: #1a2334; --line: #273247; --line-2: #1f2939; --line-3: #3a475d;
    --brand-600: #fb923c; --brand-hover: #d24e0a; --brand-50: #2b1c14; --brand-100: #4a2a16;
    --ok: #16a34a; --ok-50: #0f2a1d; --ok-line: #166534; --ok-ink: #bbf7d0;
    --warn: #f59e0b; --warn-50: #2a2112; --warn-line: #854d0e; --warn-ink: #fde68a;
    --err: #ef4444; --err-50: #2c1618; --err-line: #7f1d1d; --err-ink: #fecaca;
    --info: #3b82f6; --info-50: #111f3a;
    --field: #0f1624; --field-line: #334155;
    --serie-1: #e8590c; --serie-2: #3987e5; --grade: #1f2939; --eixo: #3a475d;
    --so-claro: none; --so-escuro: inline;
    --sh-1: 0 1px 2px rgba(0, 0, 0, .35);
    --sh-2: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --sh-3: 0 20px 50px -20px rgba(0, 0, 0, .8);
    --foco: 0 0 0 3px rgba(251, 146, 60, .4);
    color-scheme: dark;
  }
}
:root[data-tema="escuro"] {
  --ink: #e6ebf2; --ink-2: #c3ccd9; --muted: #94a3b8; --faint: #6b7a90;
  --bg: #0b1120; --surface: #141c2b; --surface-2: #1a2334; --line: #273247; --line-2: #1f2939; --line-3: #3a475d;
  --brand-600: #fb923c; --brand-hover: #d24e0a; --brand-50: #2b1c14; --brand-100: #4a2a16;
  --ok: #16a34a; --ok-50: #0f2a1d; --ok-line: #166534; --ok-ink: #bbf7d0;
  --warn: #f59e0b; --warn-50: #2a2112; --warn-line: #854d0e; --warn-ink: #fde68a;
  --err: #ef4444; --err-50: #2c1618; --err-line: #7f1d1d; --err-ink: #fecaca;
  --info: #3b82f6; --info-50: #111f3a;
  --field: #0f1624; --field-line: #334155;
  --serie-1: #e8590c; --serie-2: #3987e5; --grade: #1f2939; --eixo: #3a475d;
  --so-claro: none; --so-escuro: inline;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .35);
  --sh-2: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
  --sh-3: 0 20px 50px -20px rgba(0, 0, 0, .8);
  --foco: 0 0 0 3px rgba(251, 146, 60, .4);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--fonte); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; overflow-x: hidden; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
img, svg { display: block; }
:focus-visible { outline: none; box-shadow: var(--foco); border-radius: 6px; }
.mut { color: var(--muted); }
.pequeno { font-size: 13px; }
.ic { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -3px; }
.so-claro { display: var(--so-claro); }
.so-escuro { display: var(--so-escuro); }
.pular { position: absolute; left: 12px; top: -60px; background: var(--brand); color: #fff; padding: 8px 14px;
  border-radius: var(--r-sm); z-index: 100; font-weight: 600; }
.pular:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff;
  border: 1px solid transparent; border-radius: var(--r-sm); padding: 9px 16px; font: inherit; font-size: 14.5px;
  font-weight: 600; cursor: pointer; line-height: 1.2; white-space: nowrap; box-shadow: 0 1px 2px rgba(194, 65, 12, .25);
  transition: background .15s, transform .05s, border-color .15s; }
.btn:hover { background: var(--brand-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 17px; height: 17px; }
.btn.grande { padding: 13px 22px; font-size: 16px; border-radius: 11px; }
.btn.largo { width: 100%; }
.btn.fantasma { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.fantasma:hover { background: var(--surface-2); border-color: var(--line-3); }
.btn.vidro { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .18); box-shadow: none; }
.btn.vidro:hover { background: rgba(255, 255, 255, .14); }

/* ---------- topo ---------- */
.topo { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.topo.rolou { border-bottom-color: var(--line); box-shadow: var(--sh-1); }
.topo-in { max-width: var(--largura); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 28px; }
.marca { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.marca:hover { text-decoration: none; }
.marca img { border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
.marca b { display: block; font-size: 18px; letter-spacing: -.02em; line-height: 1.1; }
.marca small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .01em; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; padding: 7px 11px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.nav a.ativo { color: var(--ink); background: var(--line-2); }
.topo-acoes { display: flex; align-items: center; gap: 8px; }
.tema-botao, .menu-botao { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 9px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; padding: 0; }
.tema-botao:hover, .menu-botao:hover { background: var(--surface-2); color: var(--ink); }
.menu-botao { display: none; }
.menu-botao .fechar { display: none; }
.so-mobile { display: none; }

@media (max-width: 1020px) {
  .nav { position: fixed; inset: 63px 0 auto 0; flex-direction: column; gap: 2px; padding: 12px 16px 18px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--sh-2);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s, visibility .15s; }
  .nav a { padding: 11px 12px; font-size: 16px; }
  body.menu-aberto .nav { transform: none; opacity: 1; visibility: visible; }
  body.menu-aberto .menu-botao .abrir { display: none; }
  body.menu-aberto .menu-botao .fechar { display: inline-block; }
  .menu-botao { display: inline-grid; }
  .so-mobile { display: block; }
  .so-desktop { display: none; }
  .topo-acoes { margin-left: auto; }
}
@media (max-width: 560px) {
  .topo-in { padding: 10px 16px; gap: 12px; }
  .marca small { display: none; }
  .topo-acoes .btn:not(.so-desktop) { padding: 8px 12px; font-size: 13.5px; }
}
@media (max-width: 400px) {
  .topo-acoes > .btn { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #e2e8f0;
  background: radial-gradient(1100px 520px at -10% -25%, rgba(232, 89, 12, .38), transparent 60%),
    radial-gradient(800px 480px at 110% 115%, rgba(99, 102, 241, .28), transparent 60%), var(--navy); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); }
.hero-in { position: relative; max-width: var(--largura); margin: 0 auto; padding: clamp(48px, 8vw, 96px) 24px clamp(56px, 8vw, 104px);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.selo { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #fdba74;
  background: rgba(232, 89, 12, .14); border: 1px solid rgba(253, 186, 116, .25); padding: 6px 12px; border-radius: 999px; }
.selo .ic { width: 16px; height: 16px; }
.hero h1 { color: #fff; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -.035em; margin: 22px 0 20px; font-weight: 750; }
.hero h1 em { font-style: normal; color: #fdba74; }
.hero .lead { font-size: clamp(16.5px, 1.5vw, 19px); color: #cbd5e1; max-width: 560px; }
.hero .lead b { color: #fff; font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 26px; }
.hero-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14.5px; color: #cbd5e1; }
.hero-checks li { display: flex; align-items: center; gap: 7px; }
.hero-checks .ic { color: #4ade80; width: 17px; height: 17px; stroke-width: 2.4; }

.hero-visual { position: relative; height: 540px; }
.folha { position: absolute; left: 0; top: 18px; width: min(335px, 62%); transform: rotate(-4deg);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45)); }
.folha-svg { width: 100%; height: auto; font-family: var(--fonte); }
.folha-svg .bolhas circle[fill="#e8590c"] { transform-box: fill-box; transform-origin: center; animation: marcar .45s ease-out .3s backwards; }
@keyframes marcar { from { transform: scale(.2); opacity: 0; } }

.celular { position: absolute; right: 2%; bottom: 0; width: 210px; height: 420px; border-radius: 34px; padding: 10px;
  background: #0b0f19; box-shadow: 0 0 0 2px #2b3446, 0 40px 70px -20px rgba(0, 0, 0, .7); transform: rotate(5deg); }
.celular::before { content: ""; position: absolute; top: 16px; left: 50%; width: 64px; height: 18px; margin-left: -32px;
  background: #0b0f19; border-radius: 12px; z-index: 3; }
.celular-tela { position: relative; height: 100%; border-radius: 26px; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #3a4458, #151b27 70%); }
.mini-folha { position: absolute; left: 22%; top: 20%; width: 56%; height: 48%; background: #f8fafc; border-radius: 6px;
  transform: rotate(-3deg); box-shadow: 0 10px 20px rgba(0, 0, 0, .4); padding: 26% 12% 0; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 10px 8px; align-content: start; }
.mini-folha b { height: 9px; border-radius: 99px; background: #e2e8f0; }
.mini-folha b:nth-child(2), .mini-folha b:nth-child(4) { background: #e8590c; }
.mira { position: absolute; left: 16%; top: 16%; width: 68%; height: 56%; z-index: 2; }
.mira i { position: absolute; width: 22px; height: 22px; border: 3px solid #4ade80; }
.mira i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.mira i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.mira i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.mira i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.varredura { position: absolute; left: 6%; right: 6%; top: 8%; height: 2px; border-radius: 2px;
  background: #4ade80; box-shadow: 0 0 14px 3px rgba(74, 222, 128, .55); animation: varrer 2.6s ease-in-out infinite; }
@keyframes varrer { 0%, 100% { top: 8%; } 50% { top: 90%; } }
.leitura { position: absolute; left: 10px; right: 10px; bottom: 12px; background: #fff; color: #0f172a; border-radius: 16px;
  padding: 10px 12px; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); z-index: 3; }
.leitura small { display: block; font-size: 10.5px; color: #64748b; line-height: 1.3; }
.leitura strong { display: block; font-size: 12px; line-height: 1.3; }
.leitura-ok { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: #16a34a; color: #fff; display: grid; place-items: center; }
.leitura-ok .ic { width: 17px; height: 17px; stroke-width: 2.8; }

.flutuante { position: absolute; background: #fff; color: #0f172a; border-radius: 14px; box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .55);
  padding: 12px 14px; }
.flutuante small { display: block; font-size: 11.5px; color: #64748b; font-weight: 500; }
.kpi-flutuante { right: 0; top: 0; width: 190px; animation: flutuar 6s ease-in-out infinite; }
.kpi-linha { display: flex; align-items: baseline; gap: 8px; }
.kpi-linha strong { font-size: 28px; letter-spacing: -.03em; line-height: 1.1; }
.delta { font-size: 12px; font-weight: 600; }
.delta.sobe { color: #15803d; }
.delta.desce { color: #b91c1c; }
.spark { width: 100%; height: 28px; margin-top: 6px; }
.alerta-flutuante { left: 0; bottom: 58px; display: flex; align-items: center; gap: 10px; animation: flutuar 7s ease-in-out -2s infinite; }
.alerta-flutuante strong { font-size: 13.5px; }
.alerta-ico { width: 32px; height: 32px; border-radius: 10px; background: #fffbeb; color: #b45309; display: grid; place-items: center; flex-shrink: 0; }
@keyframes flutuar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { height: 500px; max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 520px) {
  .hero-visual { height: 420px; }
  .folha { left: 0; width: 70%; top: 70px; }
  .celular { width: 160px; height: 320px; border-radius: 28px; padding: 8px; }
  .celular-tela { border-radius: 22px; }
  .leitura { padding: 8px; gap: 7px; left: 6px; right: 6px; }
  .leitura strong { font-size: 10.5px; }
  .leitura-ok { width: 24px; height: 24px; }
  .kpi-flutuante { width: 160px; top: 0; }
  .kpi-linha strong { font-size: 23px; }
  .alerta-flutuante { display: none; }
}

/* ---------- faixa ---------- */
.faixa { background: var(--surface); border-bottom: 1px solid var(--line); }
.faixa-in { max-width: var(--largura); margin: 0 auto; padding: 22px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 28px; }
.faixa-in > div { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--ink-2); line-height: 1.4; }
.faixa-in .ic { width: 22px; height: 22px; color: var(--brand); }
.faixa-in b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .faixa-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .faixa-in { grid-template-columns: 1fr; padding: 20px 16px; } }

/* ---------- seções ---------- */
.secao { padding: clamp(64px, 9vw, 112px) 0; }
.secao.alt { background: var(--surface); border-block: 1px solid var(--line); }
.secao-in { max-width: var(--largura); margin: 0 auto; padding: 0 24px; }
.secao-in.estreito { max-width: 820px; }
.secao-cabeca { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.secao-cabeca.esquerda { text-align: left; margin: 0; }
.sobretitulo { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 12px; }
.secao-cabeca h2, .contato-texto h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.03em; font-weight: 750; }
.secao-cabeca p { color: var(--muted); font-size: 17.5px; margin-top: 16px; }
@media (max-width: 560px) { .secao-in { padding: 0 16px; } .secao-cabeca { margin-bottom: 36px; } }

/* passos */
.passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.passos::before { content: ""; position: absolute; top: 45px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-3) 0 6px, transparent 6px 12px); }
.passo { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px 24px; box-shadow: var(--sh-1); }
.passo-n { position: absolute; top: 18px; right: 18px; font-size: 13px; font-weight: 700; color: var(--faint); font-variant-numeric: tabular-nums; }
.passo-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50);
  color: var(--brand); border: 1px solid var(--brand-100); margin-bottom: 18px; position: relative; }
.passo-ico .ic { width: 24px; height: 24px; }
.passo h3 { font-size: 19px; margin-bottom: 8px; }
.passo p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .passos { grid-template-columns: 1fr 1fr; } .passos::before { display: none; } }
@media (max-width: 520px) { .passos { grid-template-columns: 1fr; } }

/* bento de recursos */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bento > * { min-width: 0; }
.cartao { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.cartao.largo { grid-column: span 2; flex-direction: row; gap: 28px; align-items: center; }
.mini-facilidade { flex: 1 1 55%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px;
  display: grid; gap: 10px; box-shadow: var(--sh-2); font-size: 13px; min-width: 0; }
.mf-linha { display: grid; grid-template-columns: 34px 1fr 40px; align-items: center; gap: 10px; }
.mf-linha b { color: var(--ink); font-weight: 600; }
.mf-linha span { height: 12px; border-radius: 0 4px 4px 0; background: var(--serie-1); }
.mf-linha em { font-style: normal; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.mf-rodape { display: flex; align-items: center; gap: 6px; color: var(--warn-ink); background: var(--warn-50); border: 1px solid var(--warn-line);
  border-radius: 8px; padding: 6px 10px; font-size: 12.5px; }
.mf-rodape .ic { width: 15px; height: 15px; color: var(--warn); }
.cartao-texto { flex: 1 1 42%; display: flex; flex-direction: column; gap: 10px; }
.cartao-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface);
  color: var(--brand); border: 1px solid var(--line); margin-bottom: 6px; box-shadow: var(--sh-1); }
.cartao-ico .ic { width: 21px; height: 21px; }
.cartao h3 { font-size: 18px; }
.cartao p { color: var(--muted); font-size: 15px; }
.mini-banco { flex: 1 1 58%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px;
  display: grid; gap: 8px; box-shadow: var(--sh-2); font-size: 13px; min-width: 0; }
.mb-busca { display: flex; align-items: center; gap: 8px; border: 1px solid var(--field-line); border-radius: 8px; padding: 7px 10px; color: var(--ink-2); }
.mb-busca span { width: 12px; height: 12px; border: 2px solid var(--faint); border-radius: 50%; flex-shrink: 0; }
.mb-item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line-2); }
.mb-item b { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mb-item span { flex: 1 1 100%; order: -1; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { font-style: normal; font-size: 11.5px; font-weight: 500; padding: 1px 8px; border-radius: 99px; background: var(--line-2); color: var(--ink-2); }
.tag.dif.f { background: var(--ok-50); color: var(--ok-ink); }
.tag.dif.m { background: var(--warn-50); color: var(--warn-ink); }
.tag.dif.d { background: var(--err-50); color: var(--err-ink); }
.mini-modelos { display: flex; gap: 0; margin-top: auto; padding-top: 10px; }
.mini-modelos span { width: 54px; height: 68px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line-3);
  display: grid; place-items: center; font-weight: 700; color: var(--brand); box-shadow: var(--sh-2); margin-right: -14px; font-size: 18px; }
.mini-modelos span:nth-child(odd) { transform: rotate(-5deg); }
.mini-modelos span:nth-child(even) { transform: rotate(4deg) translateY(4px); }
.mini-rubrica { margin-top: auto; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; font-size: 13px; overflow: hidden; }
.mini-rubrica div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 12px; }
.mini-rubrica div + div { border-top: 1px solid var(--line-2); }
.mini-rubrica b { font-variant-numeric: tabular-nums; color: var(--ink); }
.mini-rubrica span { color: var(--ink-2); }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cartao.largo { grid-column: span 2; } }
@media (max-width: 680px) { .bento { grid-template-columns: minmax(0, 1fr); } .cartao.largo { grid-column: auto; flex-direction: column; align-items: stretch; } .cartao { padding: 22px; } }

/* ---------- painel de indicadores ---------- */
.painel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); overflow: hidden; }
.painel-barra { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.painel-janela { display: flex; gap: 6px; margin-right: 6px; }
.painel-janela i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-3); }
.painel-filtro { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
select, input, textarea { font: inherit; color: var(--ink); background: var(--field); border: 1px solid var(--field-line); border-radius: var(--r-sm); }
.painel-filtro select { padding: 7px 30px 7px 11px; font-size: 14px; font-weight: 600; }
select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.chip { font-size: 12.5px; font-weight: 500; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 4px 10px; border-radius: 99px; }
.chip.ilustrativo { margin-left: auto; color: var(--muted); border-style: dashed; }
.abas { display: flex; gap: 4px; padding: 10px 18px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.abas button { font: inherit; font-size: 14.5px; font-weight: 600; color: var(--muted); background: none; border: 0; padding: 10px 14px 12px;
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; border-radius: 8px 8px 0 0; }
.abas button:hover { color: var(--ink); }
.abas button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); }
.painel-corpo { padding: 20px; background: var(--bg); min-height: 520px; }
.painel-corpo [role="tabpanel"] { display: grid; gap: 16px; }
.painel-corpo [role="tabpanel"]:focus-visible { box-shadow: none; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.tile-rotulo { font-size: 13px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.tile-valor { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; margin-top: 4px; }
.tile-delta { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.tile-delta.bom { color: var(--ok); }
.tile-delta.ruim { color: var(--err); }
.tile .ic { width: 15px; height: 15px; }
.tile.risco .tile-rotulo .ic { color: var(--err); }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr 1fr; } }

.grafico-cartao { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 12px; min-width: 0; }
.grafico-cabeca h3 { font-size: 16px; letter-spacing: -.01em; }
.grafico-cabeca p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.grafico { position: relative; margin-top: 12px; width: 100%; }
.grafico svg { width: 100%; height: auto; overflow: visible; font-family: var(--fonte); }
.grafico text { fill: var(--muted); font-size: 12px; }
.grafico .rot-forte { fill: var(--ink); font-weight: 600; }
.grafico .rot-medio { fill: var(--ink-2); }
.grafico .rot-sub { fill: var(--muted); font-weight: 400; }
.grafico .halo { paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.grafico .grade { stroke: var(--grade); stroke-width: 1; shape-rendering: crispEdges; }
.grafico .eixo { stroke: var(--eixo); stroke-width: 1; shape-rendering: crispEdges; }
.grafico .ref { stroke: var(--ink-2); stroke-width: 1; opacity: .55; shape-rendering: crispEdges; }
.grafico .marca-serie-1 { fill: var(--serie-1); }
.grafico .marca-serie-2 { fill: var(--serie-2); }
.grafico .alvo { cursor: default; outline: none; }
.grafico .alvo .realce { fill: var(--ink); opacity: 0; transition: opacity .12s; }
.grafico .alvo:hover .realce, .grafico .alvo:focus-visible .realce { opacity: .06; }
.grafico .alvo:hover .barra, .grafico .alvo:focus-visible .barra { filter: brightness(1.12); }
.grafico .cruz { stroke: var(--ink-2); stroke-width: 1; opacity: .4; }
.legenda { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.legenda span { display: inline-flex; align-items: center; gap: 7px; }
.legenda i { width: 16px; height: 2px; border-radius: 2px; display: inline-block; }
.legenda .legenda-ref { color: var(--muted); }
.legenda .legenda-ref i { height: 1px; opacity: .55; }

.dados { margin-top: 8px; border-top: 1px solid var(--line-2); padding-top: 8px; font-size: 13.5px; }
.dados summary { cursor: pointer; color: var(--muted); font-weight: 500; width: fit-content; }
.dados summary:hover { color: var(--ink); }
.dados table { margin-top: 10px; }
table.simples { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.simples th, table.simples td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line-2); }
table.simples th { color: var(--muted); font-weight: 600; font-size: 12.5px; }
table.simples td.num, table.simples th.num { text-align: right; font-variant-numeric: tabular-nums; }

.insight { display: flex; gap: 12px; align-items: flex-start; background: var(--warn-50); border: 1px solid var(--warn-line); color: var(--warn-ink);
  border-radius: var(--r); padding: 12px 16px; font-size: 14.5px; }
.insight .ic { margin-top: 3px; color: var(--warn); }
.insight.ok { background: var(--ok-50); border-color: var(--ok-line); color: var(--ok-ink); }
.insight.ok .ic { color: var(--ok); }
.insight b { font-weight: 650; }

.alunos-grade { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .alunos-grade { grid-template-columns: 1fr; } }
.tabela-rolagem { max-height: 400px; overflow: auto; margin: 12px -18px 0; border-top: 1px solid var(--line-2); }
.tabela-alunos { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabela-alunos th { position: sticky; top: 0; background: var(--surface); text-align: left; font-size: 12.5px; color: var(--muted);
  font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); z-index: 1; }
.tabela-alunos th:first-child, .tabela-alunos td:first-child { padding-left: 18px; }
.tabela-alunos td { padding: 7px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tabela-alunos .num { text-align: right; font-variant-numeric: tabular-nums; }
.tabela-alunos tbody tr { cursor: pointer; }
.tabela-alunos tbody tr:hover { background: var(--surface-2); }
.tabela-alunos tbody tr[aria-selected="true"] { background: var(--brand-50); }
.tabela-alunos tbody tr[aria-selected="true"] td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.tabela-alunos button { all: unset; cursor: pointer; font-weight: 600; color: var(--ink); white-space: nowrap; }
@media (max-width: 480px) { .tabela-alunos .col-evol { display: none; } }
.tabela-alunos button:focus-visible { box-shadow: var(--foco); border-radius: 4px; }
.mini-spark { width: 72px; height: 22px; display: block; }
.situacao { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 2px 9px 2px 7px; border-radius: 99px; white-space: nowrap; }
.situacao .ic { width: 13px; height: 13px; stroke-width: 2.2; }
.situacao.risco { background: var(--err-50); color: var(--err-ink); }
.situacao.atencao { background: var(--warn-50); color: var(--warn-ink); }
.situacao.dia { background: var(--ok-50); color: var(--ok-ink); }

.kpis-lista { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 44px; }
.kpis-lista h3 { font-size: 16.5px; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.kpis-lista .ic { color: var(--brand); }
.kpis-lista p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .kpis-lista { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .kpis-lista { grid-template-columns: 1fr; } .painel-corpo { padding: 12px; } .chip.ilustrativo { margin-left: 0; }
  .abas { padding: 6px 8px 0; gap: 0; } .abas button { padding: 10px 11px 12px; font-size: 14px; } }

/* dica (tooltip) dos gráficos */
.dica { position: fixed; z-index: 80; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--sh-3); padding: 8px 11px; font-size: 13px; line-height: 1.4; min-width: 120px; max-width: 240px; }
.dica .dica-titulo { color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.dica .dica-linha { display: flex; align-items: center; gap: 8px; }
.dica .dica-linha i { width: 12px; height: 2px; border-radius: 2px; flex-shrink: 0; }
.dica .dica-linha b { font-size: 14px; font-variant-numeric: tabular-nums; }
.dica .dica-linha span { color: var(--muted); }

/* ---------- promessa ---------- */
.promessa-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 980px; margin: 0 auto; }
.promessa-cartao { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; background: var(--bg); }
.promessa-cartao.sim { background: var(--surface); border-color: var(--brand-100); box-shadow: inset 0 3px 0 var(--brand), var(--sh-2); }
.promessa-cartao h3 { font-size: 18px; margin-bottom: 16px; }
.promessa-cartao.nao h3 { color: var(--muted); }
.promessa-cartao ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.promessa-cartao li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 15.5px; }
.promessa-cartao li .ic { margin-top: 3px; }
.promessa-cartao.nao li { color: var(--muted); }
.promessa-cartao.nao .ic { color: var(--faint); }
.promessa-cartao.sim .ic { color: var(--ok); stroke-width: 2.4; }
.promessa-fecho { text-align: center; margin-top: 28px; color: var(--ink-2); font-weight: 600; font-size: 16.5px; }
@media (max-width: 760px) { .promessa-grade { grid-template-columns: minmax(0, 1fr); } .promessa-cartao { padding: 22px; } }

/* ---------- para quem ---------- */
.perfis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.perfil { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh-1); }
.perfil-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--navy); color: #fdba74; margin-bottom: 18px; }
.perfil-ico .ic { width: 22px; height: 22px; }
.perfil h3 { font-size: 20px; }
.perfil-frase { color: var(--ink-2); margin: 6px 0 16px; font-weight: 500; }
.perfil ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.perfil li { position: relative; padding-left: 24px; color: var(--muted); font-size: 15px; }
.perfil li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
@media (max-width: 900px) { .perfis { grid-template-columns: 1fr; } }

/* ---------- segurança (sempre escura, como o menu do app) ---------- */
.secao.escura { color: #cbd5e1; background: radial-gradient(900px 500px at 100% 0%, rgba(232, 89, 12, .18), transparent 60%), var(--navy); }
.secao.escura h2 { color: #fff; }
.secao.escura .secao-cabeca p { color: #94a3b8; }
.secao.escura .sobretitulo { color: #fdba74; }
.seguranca-grade { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.link-seta { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; color: #fdba74; font-weight: 600; }
.garantias { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.garantias li { display: flex; gap: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r); padding: 18px; }
.garantias .ic { width: 22px; height: 22px; color: #fdba74; margin-top: 2px; }
.garantias b { display: block; color: #fff; font-weight: 600; margin-bottom: 4px; }
.garantias span { font-size: 14px; color: #94a3b8; }
@media (max-width: 960px) { .seguranca-grade { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 600px) { .garantias { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 600; font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* ---------- contato ---------- */
.contato-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contato-texto > p { color: var(--muted); font-size: 17.5px; margin-top: 16px; }
.contato-lista { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 12px; }
.contato-lista li { display: flex; gap: 10px; align-items: center; color: var(--ink-2); }
.contato-lista .ic { color: var(--ok); stroke-width: 2.4; }
.formulario { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 16px; box-shadow: var(--sh-2); }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.campo { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.campo.inteiro { grid-column: 1 / -1; }
.campo .mut { font-weight: 400; }
.campo input, .campo select, .campo textarea { width: 100%; padding: 10px 12px; font-size: 15px; font-weight: 400; }
.campo select { padding-right: 32px; }
.campo textarea { resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus, .painel-filtro select:focus { outline: none; border-color: var(--brand); box-shadow: var(--foco); }
.campo [aria-invalid="true"] { border-color: var(--err); }
.form-erro { color: var(--err); font-size: 14px; font-weight: 500; }
.form-ok { display: flex; gap: 12px; align-items: center; background: var(--ok-50); border: 1px solid var(--ok-line); color: var(--ok-ink); border-radius: var(--r); padding: 12px 14px; font-size: 14px; }
.form-ok b { display: block; }
@media (max-width: 900px) { .contato-grade { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 520px) { .campos { grid-template-columns: 1fr; } .formulario { padding: 20px; } }

/* ---------- rodapé ---------- */
.rodape { background: var(--surface); border-top: 1px solid var(--line); }
.rodape-in { max-width: var(--largura); margin: 0 auto; padding: 56px 24px 40px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.rodape-marca p { color: var(--muted); font-size: 14.5px; margin-top: 14px; max-width: 320px; }
.rodape nav { display: grid; gap: 8px; align-content: start; }
.rodape h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.rodape nav a { color: var(--ink-2); font-size: 14.5px; }
.rodape-base { max-width: calc(var(--largura) - 48px); margin: 0 auto; padding: 18px 0 28px; border-top: 1px solid var(--line-2);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--muted); }
@media (max-width: 800px) { .rodape-in { grid-template-columns: 1fr 1fr; } .rodape-marca { grid-column: 1 / -1; } }
@media (max-width: 1228px) { .rodape-base { margin: 0 24px; } }
@media (max-width: 560px) { .rodape-in { padding-left: 16px; padding-right: 16px; } .rodape-base { margin: 0 16px; } }

/* revelar ao rolar (só com JS; sem JS tudo aparece) */
.js .revelar { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .revelar.visivel { opacity: 1; transform: none; }
