/* RTC Pro — estilos próprios sobre o Bootstrap 5.3 (sem estilos inline: a CSP bloqueia) */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(../fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(../fonts/inter-500.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(../fonts/inter-600.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(../fonts/inter-700.woff2) format("woff2"); }

:root {
  --rtc-azul: #0b5cff;
  --rtc-azul-escuro: #0a2a66;
  --rtc-verde: #12b76a;
  --rtc-fundo: #f5f7fb;
  --rtc-borda: #e4e8f0;
  --bs-body-font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-primary: #0b5cff;
  --bs-primary-rgb: 11, 92, 255;
  --bs-link-color: #0b5cff;
  --bs-link-color-rgb: 11, 92, 255;
}
body { background: var(--rtc-fundo); color: #101828; }
.btn-primary { --bs-btn-bg: #0b5cff; --bs-btn-border-color: #0b5cff; --bs-btn-hover-bg: #0a4fd9; --bs-btn-hover-border-color: #0a4fd9; --bs-btn-active-bg: #0943bb; }
.btn-outline-primary { --bs-btn-color: #0b5cff; --bs-btn-border-color: #0b5cff; --bs-btn-hover-bg: #0b5cff; --bs-btn-hover-border-color: #0b5cff; }
.text-primary { color: #0b5cff !important; }
.bg-primary { background-color: #0b5cff !important; }
.card { border-color: var(--rtc-borda); border-radius: 14px; }
.card-header { background: #fff; border-bottom-color: var(--rtc-borda); font-weight: 600; }
.form-control, .form-select { border-color: #d0d5dd; }
.form-control:focus, .form-select:focus { border-color: #84adff; box-shadow: 0 0 0 .2rem rgba(11, 92, 255, .15); }
.marca { font-weight: 700; letter-spacing: -.02em; color: var(--rtc-azul-escuro); text-decoration: none; }
.marca span { color: var(--rtc-azul); }
.marca:hover { color: var(--rtc-azul-escuro); }
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre.codigo { background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 14px 16px; font-size: .82rem; max-height: 520px; overflow: auto; white-space: pre; }
pre.codigo.curto { max-height: 260px; }
textarea.json { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; min-height: 320px; }
.oculto { display: none !important; }

/* ---------- Painel ---------- */
.painel { display: flex; min-height: 100vh; }
.lateral { width: 260px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--rtc-borda); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.lateral .marca { display: block; padding: 20px 22px 14px; font-size: 1.25rem; }
.lateral .nav-link { color: #344054; border-radius: 8px; margin: 1px 12px; padding: 8px 12px; font-size: .93rem; display: flex; align-items: center; gap: 10px; }
.lateral .nav-link:hover { background: #f2f4f7; }
.lateral .nav-link.active { background: #eff4ff; color: var(--rtc-azul); font-weight: 600; }
.lateral .nav-link .bloq { margin-left: auto; color: #98a2b3; font-size: .8rem; }
.lateral .secao { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #98a2b3; margin: 18px 24px 6px; font-weight: 600; }
.lateral.escura { background: #0b1222; border-right-color: #1d2939; }
.lateral.escura .marca { color: #fff; }
.lateral.escura .nav-link { color: #cbd5e1; }
.lateral.escura .nav-link:hover { background: #172036; }
.lateral.escura .nav-link.active { background: #1d2b4d; color: #fff; }
.principal { flex: 1; min-width: 0; }
.topo { background: #fff; border-bottom: 1px solid var(--rtc-borda); padding: 12px 28px; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 10; }
.conteudo { padding: 28px; max-width: 1280px; }
.titulo-pagina { font-size: 1.45rem; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.metrica { font-size: 1.8rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.metrica-rotulo { color: #667085; font-size: .85rem; }
.barra { height: 8px; background: #eaecf0; border-radius: 99px; overflow: hidden; }
.barra > div { height: 100%; background: var(--rtc-azul); border-radius: 99px; width: 0; transition: width .4s; }
.barra.alerta > div { background: #f79009; }
.faixa-trial { background: linear-gradient(90deg, #0a2a66, #0b5cff); color: #fff; border-radius: 14px; }
.botao-menu { display: none; }
@media (max-width: 991px) {
  .lateral { position: fixed; left: -280px; z-index: 1050; transition: left .2s; box-shadow: 0 0 40px rgba(0,0,0,.2); }
  .lateral.aberta { left: 0; }
  .botao-menu { display: inline-flex; }
  .conteudo { padding: 18px 16px; }
  .topo { padding: 10px 16px; }
}

/* ---------- Resultado de cálculo ---------- */
.estado { font-size: .75rem; font-weight: 600; padding: 3px 8px; border-radius: 99px; }
.estado-CALCULADO, .estado-CALCULO_SIMULADO { background: #ecfdf3; color: #067647; }
.estado-INCONSISTENCIA_ENTRADA { background: #fef3f2; color: #b42318; }
.estado-NAO_IMPLEMENTADO, .estado-FALHA_TECNICA { background: #fffaeb; color: #b54708; }
.tabela-itens input, .tabela-itens select { min-width: 90px; }
.tabela-itens td { vertical-align: middle; }
.valor-grande { font-size: 1.35rem; font-weight: 700; }
.memoria { font-size: .85rem; color: #475467; background: #f9fafb; border-left: 3px solid #84adff; padding: 8px 12px; border-radius: 6px; }

/* ---------- Site ---------- */
.site-nav { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rtc-borda); }
.hero { background: radial-gradient(1200px 500px at 85% -10%, #dbe7ff 0, transparent 60%), linear-gradient(180deg, #fff 0, var(--rtc-fundo) 100%); padding: 84px 0 64px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; }
.hero .lead { font-size: 1.2rem; color: #475467; }
.selo-oficial { display: inline-flex; gap: 8px; align-items: center; background: #ecfdf3; color: #067647; border: 1px solid #abefc6; border-radius: 99px; padding: 6px 14px; font-size: .85rem; font-weight: 600; }
.secao-site { padding: 72px 0; }
.secao-site h2 { font-weight: 700; letter-spacing: -.02em; }
.recurso-icone { width: 44px; height: 44px; border-radius: 10px; background: #eff4ff; color: var(--rtc-azul); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.plano { border-radius: 18px; }
.plano.destaque { border: 2px solid var(--rtc-azul); box-shadow: 0 16px 40px rgba(11, 92, 255, .14); }
.plano .preco { font-size: 2.6rem; font-weight: 700; letter-spacing: -.03em; }
.plano li { padding: 5px 0; }
.plano li.nao { color: #98a2b3; text-decoration: line-through; }
.linha-tempo .ano { font-weight: 700; color: var(--rtc-azul); }
.mock { background: #0f172a; border-radius: 16px; box-shadow: 0 30px 60px rgba(15, 23, 42, .25); color: #e2e8f0; font-size: .82rem; }
.mock .pontos span { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: #475467; margin-right: 6px; }
.cta-final { background: linear-gradient(135deg, #0a2a66, #0b5cff); color: #fff; border-radius: 24px; }
footer.rodape { background: #0b1222; color: #98a2b3; }
footer.rodape a { color: #cbd5e1; text-decoration: none; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; background: radial-gradient(900px 400px at 50% -10%, #dbe7ff 0, transparent 70%), var(--rtc-fundo); }
.auth .card { width: 100%; max-width: 440px; box-shadow: 0 20px 50px rgba(16, 24, 40, .08); }
.auth .card.largo { max-width: 560px; }
.codigo-2fa { letter-spacing: .4em; font-size: 1.6rem; text-align: center; font-weight: 600; }
.qr { background: #fff; padding: 12px; border: 1px solid var(--rtc-borda); border-radius: 12px; display: inline-block; }
.qr svg, .qr img { display: block; width: 200px; height: 200px; }
.codigos-rec { columns: 2; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Docs ---------- */
.docs-menu { position: sticky; top: 84px; }
.docs-menu a { display: block; color: #475467; padding: 4px 0; text-decoration: none; font-size: .92rem; }
.docs-menu a:hover { color: var(--rtc-azul); }
.docs h2 { margin-top: 2.6rem; font-weight: 700; scroll-margin-top: 90px; }
.docs h3 { margin-top: 1.8rem; font-size: 1.2rem; font-weight: 600; scroll-margin-top: 90px; }
.metodo { font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 5px; color: #fff; }
.metodo.get { background: #12b76a; } .metodo.post { background: #0b5cff; }
#swagger-ui .topbar { display: none; }
