/* FaroAuto — sistema visual. Uma solução RGD Tecnologias. */
/* Fontes servidas pelo próprio FaroAuto, sem Google Fonts (nada do navegador vai a terceiros).
   Inter e Plus Jakarta Sans, SIL Open Font License 1.1 (OFL.txt junto, em static/fonts/<família>/).
   Arquivos variáveis (eixo de peso), subconjunto latino, baixados do Google Fonts em 20/10/2026
   (Inter v20, Plus Jakarta Sans v12). Inter cobre 400 a 700 e Plus Jakarta Sans 600 a 800.
   Os preloads de base.html apontam para estes mesmos endereços: ao trocar o arquivo, troque o nome nos dois. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter/inter-latin-v20.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-v12.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --ink: #0a1628;
  --ink-2: #102542;
  --ink-3: #1b3358;
  --beam: #ffb020;
  --beam-2: #ffcb5c;
  --beam-deep: #a35a00;
  --teal: #12b5a5;
  --teal-deep: #0b7d72;
  --danger: #c2362b;
  --warning: #b86e00;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --line: #e3e8f0;
  --line-2: #cfd7e3;
  --text: #17202e;
  --muted: #5a6577;
  --soft: #eef2f8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(10, 22, 40, .06), 0 8px 24px rgba(10, 22, 40, .06);
  --shadow-lg: 0 24px 60px rgba(10, 22, 40, .18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
.ico { width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.2em; }
a { color: var(--ink-3); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
/* Anel de foco: âmbar escuro nas telas claras (5,2:1 sobre o branco; o --beam daria 1,8:1, abaixo
   dos 3:1 do WCAG 1.4.11) e o âmbar claro só sobre fundo escuro (menu lateral, cabeçalho, rodapé). */
:focus-visible { outline: 3px solid var(--beam-deep); outline-offset: 2px; border-radius: 6px; }
.sidebar :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible,
.section.dark :focus-visible, .on-dark :focus-visible, .code-box :focus-visible, .device .app-top :focus-visible { outline-color: var(--beam); }
/* "Pular para o conteúdo": fica fora da tela até receber o foco do teclado. */
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus, .skip-link:focus-visible { top: 12px; color: #fff; outline: 3px solid var(--beam); }
main[tabindex="-1"]:focus { outline: none; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }
/* min-width:0: dentro de grid (.form, coluna de Ações), a linha não impõe à coluna a largura do select mais longo */
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; min-width: 0; }
.row.between { justify-content: space-between; }
/* select com opção longa (nome de organização) tem largura própria: no celular empurrava a página */
select, input, textarea { max-width: 100%; }
.row > select { min-width: 0; text-overflow: ellipsis; }
/* botão de rótulo longo sozinho na linha ("Exibir dados cifrados (auditado)") quebra o texto em vez de vazar */
.row > .btn { max-width: 100%; white-space: normal; line-height: 1.2; }
.grid { display: grid; gap: 20px; }
.grid > *, .split > *, .kpis > * { min-width: 0; } /* tabelas largas rolam dentro do cartão, não empurram a página */
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font: 600 .975rem/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--beam); color: var(--ink); box-shadow: 0 6px 18px rgba(255, 176, 32, .35); }
.btn-primary:hover { background: var(--beam-2); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--soft); color: var(--ink); }
.btn-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-light:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn-danger { background: #fff; color: var(--danger); border-color: #f0c5c1; }
.btn-danger:hover { background: #fdf0ef; color: var(--danger); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .875rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- selos ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--soft); color: var(--ink-3); border: 1px solid var(--line); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.b-ok { background: #e6f7f4; color: var(--teal-deep); border-color: #bfe9e2; }
.b-warn { background: #fff4e0; color: #8f5600; border-color: #ffe0a8; } /* contraste AA no texto pequeno */
.b-danger { background: #fdecea; color: var(--danger); border-color: #f6c9c4; }
.b-info { background: #eaf1fd; color: #1d4fa8; border-color: #cfdcf6; }
.b-neutral { background: var(--soft); color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 .78rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--beam-deep); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }

/* ---------- alertas ---------- */
.flashes { display: grid; gap: 10px; margin: 0 0 20px; }
.alert { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: .95rem; display: block; overflow-wrap: anywhere; }
/* Texto corrido com <span class="mono">/<code> no meio: bloco, não flex (flex quebrava em colunas). */
.alert .mono, .alert code { overflow-wrap: anywhere; }
.alert-success { border-color: #bfe9e2; background: #effaf8; color: #0b5e56; }
.alert-danger { border-color: #f6c9c4; background: #fdf1f0; color: #8f241b; }
.alert-warning { border-color: #ffe0a8; background: #fff8eb; color: #7a4a00; }
.alert-info { border-color: #cfdcf6; background: #f1f6fe; color: #1d3f7a; }
.ver-como-banner { position: sticky; top: 0; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; background: #0a1628; color: #fff; font: 600 .875rem/1.4 var(--font); padding: 8px 16px; text-align: center; }
.ver-como-banner b { color: #ffcb5c; }
.ver-como-voltar { background: #ffcb5c; color: #0a1628; border: 0; border-radius: 8px; padding: 4px 12px; font: 700 .85rem/1.4 var(--font); cursor: pointer; }
.ver-como-voltar:hover, .ver-como-voltar:focus-visible { background: #ffd47a; outline: 2px solid #fff; outline-offset: 2px; }
.demo-banner { background: repeating-linear-gradient(45deg, #ffcb5c, #ffcb5c 12px, #ffd47a 12px, #ffd47a 24px); color: var(--ink); text-align: center; font: 600 .8rem/1.4 var(--font); padding: 6px 12px; }

/* ---------- logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.3rem/1 var(--font-display); letter-spacing: -.02em; }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand .auto { color: var(--beam-deep); }
.on-dark .brand, .brand.on-dark { color: #fff; }
.on-dark .brand .auto, .brand.on-dark .auto { color: var(--beam); }

/* ---------- cabeçalho do site ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 22, 40, .92); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(255,255,255,.06); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: rgba(255,255,255,.82); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.site-nav a:hover, .site-nav a.active { color: #fff; background: rgba(255,255,255,.08); }
.site-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav, .site-actions { display: none; }
  .site-header.open .site-nav, .site-header.open .site-actions { display: flex; }
  .site-header.open .bar { flex-wrap: wrap; height: auto; padding: 14px 0; }
  .site-header.open .site-nav { flex-direction: column; align-items: stretch; width: 100%; order: 3; }
  .site-header.open .site-actions { width: 100%; order: 4; padding-bottom: 8px; }
  .site-header.open .site-actions .btn { flex: 1; }
}
/* Com o link "Ajuda", o menu completo só cabe acima de ~1180 px: entre o menu recolhido (até 1020 px) e isso, aperta o espaçamento. */
@media (min-width: 1021px) and (max-width: 1180px) { .site-header .bar { gap: 14px; } .site-nav a { padding: 8px 8px; font-size: .9rem; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% -10%, rgba(255,176,32,.20), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(18,181,165,.16), transparent 60%), linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); color: #dfe7f3; padding: 84px 0 96px; }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--beam); }
.hero .lead { font-size: 1.15rem; color: #c5d0e0; max-width: 560px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }
.hero-trust { display: flex; gap: 18px; flex-wrap: wrap; color: #9fb0c8; font-size: .9rem; }
.hero-trust span { display: inline-flex; gap: 8px; align-items: center; }
.hero-trust svg { width: 18px; height: 18px; color: var(--teal); }
.beam { position: absolute; inset: 0; pointer-events: none; background: conic-gradient(from 200deg at 78% 30%, transparent 0deg, rgba(255,176,32,.10) 18deg, transparent 40deg); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 56px 0 64px; } }

/* mockup do app */
.device-wrap { position: relative; width: min(360px, 100%); margin-inline: auto; }
.device { position: relative; margin-inline: auto; width: min(360px, 100%); border-radius: 36px; padding: 12px; background: linear-gradient(160deg, #23395d, #0d1b30); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.08); }
.device .screen { border-radius: 26px; background: var(--bg); overflow: hidden; color: var(--text); }
.device .app-top { background: var(--ink); color: #fff; padding: 18px 18px 22px; }
.device .app-top small { color: #9fb0c8; }
.device .plate { display: flex; align-items: center; gap: 10px; margin-top: 12px; background: #fff; border-radius: 12px; padding: 6px 6px 6px 14px; }
.plate-mercosul { display: inline-flex; flex-direction: column; border: 2px solid #1b2433; border-radius: 6px; overflow: hidden; font-family: "Plus Jakarta Sans", monospace; min-width: 120px; background: #fff; }
.plate-mercosul .strip { background: #1d4fa8; color: #fff; font-size: 8px; font-weight: 700; letter-spacing: .2em; text-align: center; padding: 1px 0; }
.plate-mercosul .num { font-size: 20px; font-weight: 800; letter-spacing: .12em; color: #1b2433; text-align: center; padding: 2px 8px; }
.device .result { margin: 14px; background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.device .result h4 { margin: 8px 0 4px; font-size: 1rem; }
.device .kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .78rem; margin-top: 10px; }
.device .kv dt { color: var(--muted); }
.device .kv dd { margin: 0; font-weight: 600; text-align: right; }
.device .tabbar { display: flex; justify-content: space-around; gap: 4px; padding: 10px 6px 14px; border-top: 1px solid var(--line); background: #fff; font-size: .66rem; color: var(--muted); }
.device .tabbar b { color: var(--ink); }
.float-card { position: absolute; background: #fff; color: var(--text); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-lg); font-size: .8rem; display: flex; gap: 10px; align-items: center; }
.float-card .dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #e6f7f4; color: var(--teal-deep); flex: none; }
.float-card.f1 { left: -96px; top: -24px; }
.float-card.f2 { right: -56px; bottom: 16%; }
@media (max-width: 1180px) { .float-card.f1 { left: -12px; } .float-card.f2 { right: -16px; } }
@media (max-width: 520px) { .float-card { display: none; } }

/* ---------- seções ---------- */
.section { padding: 88px 0; }
.section.alt { background: #fff; border-block: 1px solid var(--line); }
.section.dark { background: var(--ink); color: #c5d0e0; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; }
.section-head p { font-size: 1.08rem; color: var(--muted); }
.section.dark .section-head p { color: #9fb0c8; }
@media (max-width: 640px) { .section { padding: 60px 0; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card h3 { margin-top: 0; }
.card .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #fff4e0; color: var(--beam-deep); margin-bottom: 16px; }
.card .icon.teal { background: #e6f7f4; color: var(--teal-deep); }
.card .icon.navy { background: #e8eef8; color: var(--ink-3); }
.card .icon svg { width: 24px; height: 24px; }
.section.dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); box-shadow: none; color: #c5d0e0; }

.audience { display: flex; flex-direction: column; }
.audience .tag { align-self: flex-start; margin-bottom: 12px; }
.audience ul { padding-left: 18px; margin: 0 0 18px; color: var(--muted); }
.audience .foot { margin-top: auto; }

.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps .step { position: relative; padding-top: 58px; }
.steps .step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; font: 800 2.1rem/1 var(--font-display); color: var(--beam); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.checklist { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: #e6f7f4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7d72' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat; }
.section.dark .checklist li::before { background-color: rgba(18,181,165,.15); }
.xlist li::before { background: #fdecea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2362b' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center/12px no-repeat; }

.stat-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stat-band .s b { display: block; font: 800 2rem/1.1 var(--font-display); color: var(--ink); }
.section.dark .stat-band .s b { color: var(--beam); }
@media (max-width: 760px) { .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- planos ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px; box-shadow: var(--shadow); }
.plan.highlight { border: 2px solid var(--beam); box-shadow: 0 24px 50px rgba(255, 176, 32, .22); }
.plan .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--beam); color: var(--ink); font: 700 .75rem/1 var(--font); padding: 7px 14px; border-radius: 999px; letter-spacing: .04em; }
.plan h3 { font-size: 1.35rem; margin-bottom: 4px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; color: var(--ink); }
.plan .price b { font: 800 2.6rem/1 var(--font-display); letter-spacing: -.03em; }
.plan .price span { color: var(--muted); font-size: .95rem; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; font-size: .95rem; }
.plan ul li { display: flex; gap: 10px; }
.plan ul li::before { content: "✓"; color: var(--teal-deep); font-weight: 800; }
.plan .btn { margin-top: auto; }
.draft-note { margin-top: 18px; text-align: center; font-size: .85rem; color: var(--muted); }
.free-band { margin-top: 28px; border-radius: 20px; padding: 26px; display: flex; gap: 22px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: linear-gradient(120deg, #e8eef8, #f6f9fd); border: 1px solid var(--line); }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--beam-deep); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); }

/* ---------- CTA final e rodapé ---------- */
.cta-band { border-radius: 28px; padding: 54px; background: radial-gradient(600px 300px at 90% 0%, rgba(255,176,32,.28), transparent 60%), var(--ink); color: #c5d0e0; display: flex; justify-content: space-between; gap: 28px; align-items: center; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
@media (max-width: 640px) { .cta-band { padding: 32px 22px; } }
.site-footer { background: var(--ink); color: #9fb0c8; padding: 64px 0 28px; margin-top: 0; font-size: .93rem; }
.site-footer a { color: #c5d0e0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { color: #fff; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.rgd-sign { display: inline-flex; align-items: center; gap: 10px; color: #9fb0c8; }
.rgd-sign img { height: 28px; width: auto; }
/* Assinatura compacta da RGD: no logo completo "TECNOLOGIAS" tem 1/6 da altura de "RGD" e
   vira borrão em tamanho de rodapé; aqui ele é texto real, nítido em qualquer tela. */
.rgd-lockup { display: inline-flex; align-items: center; gap: 9px; color: #e6ebf2; }
.rgd-sign .rgd-lockup img { height: 26px; }
.rgd-tag { display: inline-flex; align-items: center; height: 18px; padding-left: 9px; border-left: 1px solid rgba(230,235,242,.35);
  font: 600 10.5px/1 var(--font-display); letter-spacing: .26em; text-transform: uppercase; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- páginas internas do site ---------- */
.page-hero { background: linear-gradient(180deg, var(--ink), var(--ink-2)); color: #c5d0e0; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { max-width: 680px; font-size: 1.1rem; }
.prose { max-width: 820px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose li { color: #2b3545; }
.prose .toc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.legal-meta { font-size: .9rem; color: var(--muted); }

/* ---------- formulários ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field label { overflow-wrap: anywhere; } /* rótulo de uma palavra longa não fixa a largura mínima da coluna */
.field .hint { font-size: .82rem; color: var(--muted); }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font: 400 1rem/1.4 var(--font); color: var(--text); transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink-3); box-shadow: 0 0 0 4px rgba(27, 51, 88, .12); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
/* minmax(0, 1fr): a coluna encolhe com o cartão (planos em 3 cartões a 1024 px não vazam a página). */
.form-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .form-2, .form-3 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -10000px; }
.plate-input { font: 800 1.6rem/1 var(--font-display) !important; letter-spacing: .14em; text-transform: uppercase; text-align: center; min-height: 64px !important; }
.segmented { display: inline-flex; background: var(--soft); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.segmented a { padding: 8px 14px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; }
.segmented a.active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

/* ---------- autenticação ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: radial-gradient(800px 400px at 100% 0%, rgba(255,176,32,.22), transparent 60%), var(--ink); color: #c5d0e0; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { color: #fff; font-size: 2rem; }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: min(480px, 100%); }
.auth-card.wide { width: min(640px, 100%); }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- aplicação (painel) ---------- */
.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { background: var(--ink); color: #9fb0c8; padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar .brand { color: #fff; padding: 4px 8px 22px; }
.sidebar .brand .auto { color: var(--beam); }
.side-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.side-close { display: none; }
.side-group { margin-bottom: 18px; }
.side-group h5 { margin: 0 0 6px; padding: 0 10px; font: 700 .7rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: #8196b8; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: #c5d0e0; text-decoration: none; font-weight: 500; font-size: .94rem; }
.side-link svg { width: 18px; height: 18px; opacity: .85; flex: none; }
.side-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-link.active { background: rgba(255,176,32,.14); color: #fff; box-shadow: inset 3px 0 0 var(--beam); }
.side-link .count { margin-left: auto; background: var(--beam); color: var(--ink); font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.side-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
.side-foot .who { color: #fff; font-weight: 600; }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 32px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar h1 { font-size: 1.35rem; margin: 0; }
.topbar .crumbs { font-size: .82rem; color: var(--muted); }
.content { padding: 28px 32px 60px; max-width: 1280px; }
.app-toggle { display: none; }
@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  /* Fechada, a gaveta fica fora da tela e também fora do Tab (visibility). */
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; max-width: 86vw; transform: translateX(-100%); visibility: hidden; transition: transform .2s, visibility 0s linear .2s; z-index: 60; }
  .app.nav-open .sidebar { transform: none; visibility: visible; transition: transform .2s; box-shadow: var(--shadow-lg); }
  .app.nav-open::before { content: ""; position: fixed; inset: 0; background: rgba(10, 22, 40, .45); z-index: 50; }
  .side-close { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; margin-top: -4px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }
  .side-close svg { width: 18px; height: 18px; }
  .app-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; }
  /* Título longo e selos do caso descem de linha em vez de alargar a página. */
  .topbar { padding: 14px 16px; flex-wrap: wrap; row-gap: 10px; }
  .topbar > .row:first-child { flex-wrap: nowrap; max-width: 100%; }
  .topbar > .row:first-child > div { min-width: 0; }
  .topbar h1 { overflow-wrap: anywhere; }
  .content { padding: 20px 16px 48px; }
}

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.kpi .label { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.kpi b { display: block; font: 800 1.9rem/1.2 var(--font-display); color: var(--ink); margin-top: 6px; overflow-wrap: anywhere; }
/* Celular: datas (21/10/2026) e valores (R$ 1.234,00) cabem nos dois cartões por linha a 375 px. */
@media (max-width: 420px) { .kpi { padding: 14px; } .kpi b { font-size: 1.35rem; } }
@media (max-width: 360px) { .kpis { grid-template-columns: 1fr; } } /* 320 px: rótulos como "Credenciamentos" não cabem em meia tela */
.kpi .sub { font-size: .82rem; color: var(--muted); }
.kpi.accent { border-color: #ffe0a8; background: #fffaf0; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 22px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { font-size: 1.05rem; margin: 0; }
.panel-body { padding: 20px; }
.panel-body.flush { padding: 0; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty svg { width: 42px; height: 42px; color: var(--line-2); }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 16px; background: #fafbfd; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #fbfcfe; }
.table svg { width: 20px; height: 20px; color: var(--teal-deep); vertical-align: middle; }
.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .86rem; }

.result-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: #fff; display: grid; gap: 14px; }
.result-card + .result-card { margin-top: 14px; }
.result-card .head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 20px; }
.kv-grid div span { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.kv-grid div b { font-weight: 600; color: var(--ink); }
.negative { border: 1px dashed var(--line-2); border-radius: 16px; padding: 22px; background: #fafbfd; color: var(--ink-3); }
.issues { display: grid; gap: 10px; }
.issue { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 12px; border: 1px solid #ffe0a8; background: #fffaf0; flex-wrap: wrap; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: -6px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 1px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--beam); }

/* chat */
.chat { display: grid; grid-template-columns: 300px 1fr; min-height: 560px; }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; max-height: 640px; }
.chat-list a { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.chat-list a.active, .chat-list a:hover { background: var(--soft); }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-msgs { flex: 1; padding: 20px; overflow-y: auto; max-height: 520px; display: flex; flex-direction: column; gap: 10px; background: #fafbfd; }
/* overflow-wrap: link colado ou palavra longa quebra dentro do balão, sem rolagem lateral em 375 px. */
.msg { max-width: 78%; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); align-self: flex-start; overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
.msg.me { align-self: flex-end; background: #fff7e6; border-color: #ffe0a8; }
.msg .meta { font-size: .72rem; color: var(--muted); margin-bottom: 2px; }
.chat-form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.chat-form textarea { min-height: 46px; height: 46px; }
@media (max-width: 860px) { .chat { grid-template-columns: 1fr; } .chat-list { max-height: 200px; border-right: none; border-bottom: 1px solid var(--line); } }

.code-box { background: var(--ink); color: #e8eef8; border-radius: 12px; padding: 14px; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; word-break: break-all; }
.qr { background: #fff; padding: 12px; border: 1px solid var(--line); border-radius: 12px; width: 220px; }
.qr svg { width: 100%; height: auto; display: block; }
.inline-form { display: inline; }
.divider { height: 1px; background: var(--line); margin: 22px 0; }
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.error-page .code { font: 800 5rem/1 var(--font-display); color: var(--beam-deep); }
