:root {
  --brand: #3355ff;
  --ink: #0b1020;
  --ink-2: #3b4458;
  --muted: #6b7489;
  --bg: #ffffff;
  --bg-2: #f5f6fa;
  --line: #e7e9f0;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 18px 40px -20px rgba(16, 24, 40, .25);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --brand-soft: color-mix(in srgb, var(--brand) 12%, white);
  --brand-2: color-mix(in srgb, var(--brand) 70%, #7c4dff);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, white); outline-offset: 3px; border-radius: 6px; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 14px; font-weight: 700; font-size: .98rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 12px 28px -12px var(--brand), inset 0 1px 0 #ffffff30; }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 85%, black); }
.btn-ghost { background: #ffffff14; color: #fff; border-color: #ffffff38; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #ffffff24; }
.btn-light { background: #fff; color: var(--ink); }
.btn-sm { height: 40px; padding: 0 16px; font-size: .88rem; border-radius: 11px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* topo */
.topnav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, white 82%, transparent); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.topnav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px #0b102055; }
.nav-inner { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand b { display: block; font-size: 1.02rem; white-space: nowrap; }
.brand small { display: block; font-size: .74rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; overflow: hidden; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 8px 20px -8px var(--brand); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.menu { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.menu a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: 10px; }
.menu a:not(.btn):hover, .menu a[aria-current] { background: var(--bg-2); color: var(--ink); }
.menu .btn { margin-left: 8px; }
.menu-toggle { display: none; margin-left: auto; border: 0; background: var(--bg-2); width: 44px; height: 44px; border-radius: 12px; font-size: 1.4rem; cursor: pointer; }

/* hero */
.hero { position: relative; overflow: hidden; color: #fff; padding: 96px 0 110px; margin-top: -72px; padding-top: 168px;
  background: radial-gradient(70% 70% at 15% 0%, color-mix(in srgb, var(--brand) 85%, transparent) 0%, transparent 60%),
              radial-gradient(55% 55% at 100% 55%, #7c4dffaa 0%, transparent 65%), #0a0f24; }
.hero::before { content: ''; position: absolute; inset: 0; opacity: .45; background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 40% 40%, #000 25%, transparent 75%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--brand) 40%, white); }
.hero .eyebrow { background: #ffffff14; border: 1px solid #ffffff26; padding: 6px 12px; border-radius: 99px; color: #dfe4ff; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 800; letter-spacing: -.045em; margin: 18px 0 16px; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #c9d0f0; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 26px; }
.hero-photo { position: relative; justify-self: end; width: min(420px, 100%); aspect-ratio: 4/5; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, #ffffff22, #ffffff08); border: 1px solid #ffffff2a; box-shadow: 0 40px 80px -30px #000c; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .mono { width: 100%; height: 100%; display: grid; place-items: center; font-size: clamp(5rem, 12vw, 8rem); font-weight: 800; color: #ffffffd9; letter-spacing: -.04em; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--brand) 70%, transparent), transparent 60%), linear-gradient(160deg, #1b2550, #0c1230); }
.hero-badge { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; background: #0b1020b3; backdrop-filter: blur(10px); border: 1px solid #ffffff22; border-radius: 14px; padding: 12px 14px; font-weight: 700; font-size: .92rem; }
.hero-badge i { color: #7ea0ff; font-size: 1.2rem; }

/* redes */
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: .88rem; border-radius: 12px; padding: 9px 14px; }
.socials-hero a { color: #e2e7ff; background: #ffffff12; border: 1px solid #ffffff22; }
.socials-hero a span { display: none; }
.socials-hero a { width: 44px; height: 44px; padding: 0; justify-content: center; font-size: 1.1rem; }
.socials-hero a:hover { background: #ffffff26; }
.socials-big { justify-content: center; }
.socials-big a { background: #fff; color: var(--ink); border: 1px solid var(--line); padding: 14px 20px; font-size: 1rem; box-shadow: var(--shadow); }
.socials-big a i { font-size: 1.3rem; color: var(--brand); }
.socials-big a:hover { transform: translateY(-2px); }
.socials-foot a { color: #c9d0f0; background: #ffffff0d; padding: 8px 12px; }
.socials-foot a:hover { background: #ffffff1a; color: #fff; }

/* seções */
.sec { padding: 96px 0; }
.sec-alt { background: var(--bg-2); }
.sec-head { margin-bottom: 44px; max-width: 700px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; letter-spacing: -.035em; }
.sec-head .lead { color: var(--muted); font-size: 1.1rem; margin-top: 12px; }
.prose { color: var(--ink-2); font-size: 1.06rem; }
.prose ul { padding-left: 1.2em; }
.prose strong { color: var(--ink); }
.page-hero { padding: 72px 0 40px; background: linear-gradient(180deg, var(--brand-soft), transparent); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.035em; }
.page-hero p { color: var(--muted); font-size: 1.1rem; margin-top: 10px; }
.preview-bar { background: #fff4e2; color: #9a5b00; text-align: center; padding: 10px; font-weight: 700; font-size: .88rem; }

/* números */
.sec-numbers { background: #0a0f24; color: #fff; position: relative; overflow: hidden; }
.sec-numbers::after { content: ''; position: absolute; width: 600px; height: 600px; right: -200px; top: -300px; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 55%, transparent), transparent 65%); }
.sec-numbers .sec-head .lead { color: #aab3d6; }
.stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.stat { background: #ffffff0a; border: 1px solid #ffffff1a; border-radius: var(--radius); padding: 26px 22px; }
.stat strong { display: block; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, #fff, color-mix(in srgb, var(--brand) 35%, white)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 10px; color: #aab3d6; font-weight: 600; font-size: .92rem; }

/* texto + imagem */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split-img img, .img-ph { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow); }
.img-ph { display: grid; place-items: center; background: linear-gradient(160deg, var(--brand-soft), var(--bg-2)); color: color-mix(in srgb, var(--brand) 50%, white); font-size: 3rem; border: 1px dashed color-mix(in srgb, var(--brand) 35%, white); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .2s; }
.card:hover { transform: translateY(-4px); }
.card-ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 1.4rem; color: var(--brand); background: var(--brand-soft); margin-bottom: 18px; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card .prose { font-size: .98rem; }

/* bairros */
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar { display: grid; grid-template-columns: 190px 1fr 64px; gap: 16px; align-items: center; }
.bar-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 12px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.bar-track i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width 1s cubic-bezier(.2, .8, .2, 1) var(--d); }
.bar.in .bar-track i { width: var(--w); }
.bar b { text-align: right; font-variant-numeric: tabular-nums; }
.note { color: var(--muted); font-size: .88rem; text-align: center; margin-top: 24px; }

/* galeria / vídeo / cta */
.gallery { columns: 3 260px; column-gap: 16px; }
.gallery figure { margin: 0 0 16px; break-inside: avoid; }
.gallery img { border-radius: 16px; width: 100%; }
.gallery figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.video { aspect-ratio: 16/9; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 20px; }
.video iframe { width: 100%; height: 100%; border: 0; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 44px; border-radius: 28px; color: #fff; background: linear-gradient(120deg, var(--brand), var(--brand-2)); box-shadow: 0 30px 60px -30px var(--brand); }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.cta p { color: #ffffffd0; margin: 8px 0 0; }

/* contato */
.sec-contact { background: linear-gradient(180deg, var(--bg-2), #fff); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-direction: column; gap: 12px; }
.contact-info li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.contact-info i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.contact-info a { color: var(--ink); text-decoration: none; }
.track { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-top: 24px; box-shadow: var(--shadow); }
.track > i:first-child { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.track span { flex: 1; font-size: .9rem; color: var(--muted); }
.track b { display: block; color: var(--ink); font-size: 1rem; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .86rem; color: var(--ink-2); }
.form input:not([type=checkbox]):not([type=file]), .form select, .form textarea { font: inherit; font-weight: 500; font-size: 1rem; color: var(--ink); border: 1px solid #d6dae4; border-radius: 12px; padding: 12px 14px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; width: 100%; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.form .invalid input, .form .invalid textarea, .form input.invalid, .form textarea.invalid { border-color: #e0364f; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .file { flex-direction: row; align-items: center; gap: 10px; border: 2px dashed #d6dae4; border-radius: 12px; padding: 14px; cursor: pointer; color: var(--muted); }
.form .file:hover { border-color: var(--brand); color: var(--brand); }
.form .file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.form .file i { font-size: 1.3rem; }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--muted); font-size: .85rem; }
.form .check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.hp { position: absolute !important; left: -9999px !important; }
.form-msg { border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: .92rem; background: #ffecef; color: #b4233a; }
.success { text-align: center; padding: 20px 6px; }
.success .ok { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 22px; display: grid; place-items: center; font-size: 2rem; color: #fff; background: #0f9f6e; box-shadow: 0 16px 32px -16px #0f9f6e; }
.success .code { display: inline-block; font-size: 1.6rem; font-weight: 800; letter-spacing: .04em; background: var(--bg-2); border: 1px dashed #c9cfdd; border-radius: 14px; padding: 12px 20px; margin: 12px 0 18px; }

/* protocolo */
.proto-form { display: flex; gap: 10px; margin-top: 24px; }
.proto-form input { flex: 1; font: inherit; font-size: 1.1rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border: 1px solid #d6dae4; border-radius: 14px; padding: 0 16px; height: 54px; outline: none; }
.proto-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.proto-form .btn { height: 54px; }
.proto-card { border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); }
.proto-card h2 { font-size: 1.8rem; margin: 4px 0; }
.proto-card p { color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 26px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: s; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-weight: 700; font-size: .86rem; color: var(--muted); position: relative; }
.steps li span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 2px solid var(--line); font-weight: 800; }
.steps li.done span { background: #0f9f6e; border-color: #0f9f6e; color: #fff; }
.steps li.current span { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 6px var(--brand-soft); }
.steps li.done, .steps li.current { color: var(--ink); }
.reply { background: var(--bg-2); border-radius: 16px; padding: 16px 18px; margin-top: 12px; }
.reply header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.reply header i { color: var(--brand); }
.reply time { margin-left: auto; color: var(--muted); font-size: .82rem; }
.reply p:last-child { margin: 0; }
.alert { background: #fff4e2; color: #8a5100; border-radius: 14px; padding: 14px 16px; font-weight: 600; }

/* rodapé */
.footer { background: #0a0f24; color: #aab3d6; padding: 64px 0 28px; }
.footer .brand { color: #fff; }
.footer .brand small { color: #8b94ba; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid p { margin-top: 16px; font-size: .92rem; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid > div > a:not(.brand) { display: block; color: #aab3d6; text-decoration: none; padding: 4px 0; font-weight: 600; }
.footer-grid > div > a:not(.brand):hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #ffffff14; margin-top: 44px; padding-top: 22px; font-size: .82rem; color: #7c86ad; }

/* animação de entrada */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .bar-track i { transition: none; } }

/* responsivo */
@media (max-width: 960px) {
  .menu-toggle { display: grid; place-items: center; }
  .menu { position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px #0b102066; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s; }
  .menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .menu a:not(.btn) { padding: 12px; }
  .menu .btn { margin: 8px 0 0; }
  .hero { padding-top: 130px; padding-bottom: 72px; }
  .hero-grid, .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.flip > :first-child { order: 0; }
  .hero-photo { justify-self: start; width: min(340px, 100%); }
  .sec { padding: 72px 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .row2 { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 1fr 52px; gap: 6px 12px; }
  .bar-name { grid-column: 1 / -1; }
  .form { padding: 20px; border-radius: 20px; }
  .cta { padding: 28px; }
  .proto-form { flex-direction: column; }
  .brand small { display: none; }
  .hero-cta .btn { flex: 1; }
}

/* topo transparente sobre o hero escuro */
body.has-hero .topnav:not(.scrolled) { background: transparent; backdrop-filter: none; }
body.has-hero .topnav:not(.scrolled) .brand, body.has-hero .topnav:not(.scrolled) .menu a:not(.btn) { color: #fff; }
body.has-hero .topnav:not(.scrolled) .brand small { color: #aab3d6; }
body.has-hero .topnav:not(.scrolled) .menu a:not(.btn):hover { background: #ffffff18; }
body.has-hero .topnav:not(.scrolled) .menu-toggle { background: #ffffff18; color: #fff; }
@media (max-width: 960px) { body.has-hero .topnav:not(.scrolled) .menu a:not(.btn) { color: var(--ink-2); } }

/* mapa público (agregado) */
.territory { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: center; }
.map-card { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #eef1f7; }
#mapa-publico { height: 480px; }
.map-legend { display: flex; gap: 18px; flex-wrap: wrap; padding: 12px 16px; font-size: .8rem; font-weight: 600; color: var(--muted); border-top: 1px solid var(--line); background: #fff; }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg-heat { width: 34px; height: 10px; border-radius: 99px; background: linear-gradient(90deg, #3355ff, #7c4dff, #f59e0b, #e0364f); }
.lg-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--brand); }
.bar[data-bairro] { cursor: default; border-radius: 10px; padding: 4px 6px; margin: -4px -6px; transition: background .15s; }
.bar.hl { background: var(--brand-soft); }
.leaflet-container { font-family: var(--font); }
.map-tip { font-family: var(--font); font-size: .82rem; line-height: 1.4; }
.map-tip b { font-size: .92rem; }
@media (max-width: 960px) { .territory { grid-template-columns: 1fr; } #mapa-publico { height: 360px; } }

/* prestação de contas */
.t-tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.t-tabs a { text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: .9rem; padding: 8px 16px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); }
.t-tabs a.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.t-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.t-kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.t-kpi i { color: var(--brand); font-size: 1.2rem; }
.t-kpi strong { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.t-kpi span { color: var(--muted); font-weight: 600; font-size: .88rem; }
.t-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.t-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.t-head h3 { font-size: 1.15rem; }
.t-leg { display: flex; gap: 14px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.t-leg span { display: inline-flex; align-items: center; gap: 6px; } .t-leg i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.ti { background: var(--brand); } .to { background: #7c4dff; } .td { background: #0891b2; }
.t-chart { display: flex; align-items: flex-end; gap: 6px; height: 260px; overflow-x: auto; padding-bottom: 4px; }
.t-col { flex: 1; min-width: 34px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.t-stack { width: 70%; max-width: 38px; display: flex; flex-direction: column-reverse; border-radius: 6px 6px 2px 2px; overflow: hidden; min-height: 2px; }
.t-stack i { display: block; min-height: 0; }
.t-col b { font-size: .72rem; font-variant-numeric: tabular-nums; } .t-col span { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.t-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.t-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.t-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 8px 8px; }
.t-table td { padding: 9px 8px; border-top: 1px solid var(--line); }
.t-table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; width: 60px; }
.t-prog { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; min-width: 80px; } .t-prog i { display: block; height: 100%; background: #0f9f6e; border-radius: 99px; }
.t-list { margin: 0; padding: 0; list-style: none; counter-reset: t; }
.t-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); counter-increment: t; }
.t-list li span::before { content: counter(t) '. '; color: var(--muted); font-weight: 700; }
.t-list b { font-variant-numeric: tabular-nums; }
.t-cols { columns: 2 280px; column-gap: 32px; } .t-cols li { break-inside: avoid; }
@media (max-width: 900px) { .t-grid { grid-template-columns: 1fr; } }
.verify { display: flex; gap: 20px; align-items: flex-start; }
.verify .v-ico { font-size: 3rem; line-height: 1; } .verify.ok .v-ico { color: #0f9f6e; } .verify.bad .v-ico { color: #e0364f; }
.verify.ok { border-color: #0f9f6e55; } .verify.bad { border-color: #e0364f55; background: #fff7f8; }
.assin { background: var(--bg-2); border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.assin i { color: var(--brand); }

/* faixa do site de demonstração (instância-vitrine) */
.demo-ribbon { background: #0b1020; color: #dfe4f5; font-size: .84rem; text-align: center; padding: 8px 16px; line-height: 1.4; }
.demo-ribbon a { color: #fff; font-weight: 700; margin-left: 6px; }

/* ---------- verificação: documento + detalhes ---------- */
.page-hero.compact { padding: 28px 0 22px; }
.vhead { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.vhead h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0; }
.vhead .proto-form { margin: 0; flex: 0 1 460px; }
.sec.vsec { padding: 28px 0 72px; }
.vgrid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.viewer { background: #e9ecf2; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.viewer-bar .btn { background: var(--bg-2); color: var(--ink, inherit); }
.pdf-pages { padding: 16px; display: flex; flex-direction: column; gap: 14px; max-height: 82vh; overflow: auto; }
.pdf-pages canvas { width: 100%; height: auto; background: #fff; box-shadow: 0 4px 18px rgba(16, 24, 40, .14); border-radius: 2px; }
.pdf-loading { color: var(--muted); text-align: center; padding: 60px 0; margin: 0; }
.vside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 90px; }
.vcard { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: #fff; box-shadow: var(--shadow); }
.vcard h3 { font-size: 1rem; margin: 0 0 12px; display: flex; gap: 8px; align-items: center; } .vcard h3 i { color: var(--brand); }
.vcard p { margin: 6px 0 0; } .vcard .muted { color: var(--muted); font-size: .9rem; }
.vcard.status { display: flex; gap: 14px; align-items: flex-start; }
.vcard.status h2 { font-size: 1.45rem; margin: 2px 0; } .vcard.status .assunto { font-weight: 500; }
.vcard.status .v-ico { font-size: 2.4rem; line-height: 1; } .vcard.status.ok { border-color: #0f9f6e66; } .vcard.status.ok .v-ico { color: #0f9f6e; }
.vcard.status.bad { border-color: #e0364f66; background: #fff7f8; } .vcard.status.bad .v-ico { color: #e0364f; }
.vcard.status .eyebrow { color: inherit; } .vcard.status.ok .eyebrow { color: #0f9f6e; } .vcard.status.bad .eyebrow { color: #e0364f; }
.signer { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.signer-h { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; } .signer-h i { color: #0f9f6e; font-size: 1.3rem; }
.signer-h small { display: block; color: var(--muted); font-size: .82rem; }
.ev { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .86rem; }
.ev span { color: var(--muted); flex: 0 0 auto; } .ev b { font-weight: 500; text-align: right; word-break: break-word; }
.iti { font-size: .84rem; color: var(--muted); }
.hashbox { margin-top: 12px; background: var(--bg-2); border-radius: 12px; padding: 10px 12px; }
.hashbox span { display: block; font-size: .76rem; color: var(--muted); margin-bottom: 4px; }
.hashbox code { font-size: .76rem; word-break: break-all; }
.conferir { margin-top: 12px; } .conferir label { cursor: pointer; display: inline-flex; gap: 6px; }
.conferir-res { margin-top: 8px; font-size: .9rem; } .conferir-res:empty { display: none; }
.conferir-res.ok { color: #0f9f6e; font-weight: 600; } .conferir-res.bad { color: #e0364f; font-weight: 600; }
.wrap-narrow-inner { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 900px) {
  .vgrid { grid-template-columns: 1fr; } .vside { position: static; order: -1; }
  .pdf-pages { max-height: none; padding: 10px; } .vhead .proto-form { flex-basis: 100%; }
}

