/* Panorama JUS — site público. Identidade 02 · Balança (petróleo, ardósia e âmbar; Sora + Manrope). */
:root {
  --bg: #F3F7F7; --surface: #FFFFFF; --ink: #10282B; --muted: #56696B; --line: #D5E2E2;
  --brand: #0E6B6B; --brand-esc: #0B5858; --brand2: #2A3B40; --accent: #F2B441; --onbrand: #FFFFFF;
  --side: #0C3236; --sideink: #BFD8D6; --tint: #E1EFEE;
  --display: 'Sora', system-ui, sans-serif; --body: 'Manrope', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --r: 14px;
  --sym2: var(--brand2); --b2d: #F2B441;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); text-wrap: balance; margin: 0; line-height: 1.12; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pular { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.pular:focus { left: 8px; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: .5em; color: var(--brand); text-decoration: none; line-height: 1; }
.logo .sym { width: 1.9em; height: 1.9em; display: inline-flex; flex-shrink: 0; }
.logo .sym svg { width: 100%; height: 100%; }
.logo.inv { color: var(--onbrand); --sym2: var(--b2d); }
.wm { display: inline-flex; align-items: baseline; gap: .28em; font-family: var(--display); font-size: 1.15em; white-space: nowrap; }
.wm-a { font-weight: 700; letter-spacing: -.03em; }
.wm-b { color: var(--brand2); font-weight: 500; }
.inv .wm-b { color: var(--b2d); }
.app-logo { --sym2: var(--b2d); }

/* Navegação */
.nav { background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.nav .wrap { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.logo-link { text-decoration: none; }
.nav .logo { font-size: 19px; }
.nav nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--muted); }
.nav ul a { text-decoration: none; } .nav ul a:hover { color: var(--brand); }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
  .menu-btn { display: flex; }
  .nav nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; box-shadow: 0 20px 30px -24px rgba(16, 40, 43, .5); }
  .nav nav.aberto { display: flex; }
  .nav ul { flex-direction: column; gap: 0; font-size: 16px; }
  .nav ul a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav nav .btn { margin-top: 14px; }
}

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px var(--body); padding: 12px 20px; border-radius: var(--r); border: 2px solid var(--brand); background: var(--brand); color: var(--onbrand); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--brand-esc); border-color: var(--brand-esc); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--tint); }
.btn[disabled] { opacity: .65; cursor: wait; }
.nav .btn { padding: 9px 16px; font-size: 14px; }

/* Herói */
.hero { padding-block: clamp(40px, 7vw, 88px); }
.hero .wrap { display: grid; gap: 48px; justify-items: center; text-align: center; }
.hero-txt { max-width: 780px; display: grid; justify-items: center; }
.eyebrow { font: 600 12px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; display: block; }
.hero h1 { font-size: clamp(34px, 5.2vw, 60px); margin-bottom: 20px; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 58ch; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .ctas { justify-content: center; }
.hero-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.hero .app { width: 100%; max-width: 980px; }
@media (max-width: 480px) { .ctas .btn { width: 100%; white-space: normal; } }

/* Ilustração do painel */
.app { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(16, 40, 43, .45); color: var(--ink); text-align: left; min-width: 0; }
.app-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--tint); border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.app-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.app-bar span { margin-left: 10px; background: var(--surface); padding: 2px 10px; border-radius: 99px; }
.app-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 380px; }
.app-side { background: var(--side); color: var(--sideink); padding: 14px 10px; font-size: 13px; display: flex; flex-direction: column; gap: 14px; }
.app-logo { display: flex; align-items: center; gap: 8px; color: #fff; font-family: var(--display); font-size: 15px; }
.app-logo .sym { width: 24px; height: 24px; display: inline-flex; }
.app-logo .sym svg { width: 100%; height: 100%; }
.app-logo b { color: var(--b2d); font-weight: 700; }
.app-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.app-side li { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 6px; }
.app-side li .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; }
.app-side li.on { background: rgba(242, 180, 65, .22); color: #fff; }
.app-side li.on .dot { background: var(--b2d); opacity: 1; }
.app-side li b { margin-left: auto; background: var(--b2d); color: var(--ink); font-size: 10px; padding: 1px 7px; border-radius: 99px; }
.app-esc { margin-top: auto; font-size: 12px; background: rgba(255, 255, 255, .08); padding: 8px 10px; border-radius: 6px; color: #fff; }
.app-esc small { display: block; color: var(--sideink); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.app-main { padding: 14px 16px; display: grid; gap: 12px; align-content: start; min-width: 0; background: var(--bg); }
.app-top { display: flex; gap: 10px; align-items: center; }
.app-search { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 7px 12px; border-radius: 99px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-user span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--onbrand); font-size: 11px; font-weight: 700; }
.app-hello { font-size: 13px; color: var(--muted); } .app-hello strong { color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: grid; gap: 2px; min-width: 0; }
.kpi small { font-size: 11px; color: var(--muted); }
.kpi strong { font-family: var(--display); font-size: clamp(16px, 1.5vw, 21px); color: var(--brand); font-variant-numeric: tabular-nums; line-height: 1.15; overflow-wrap: anywhere; }
.kpi em { font-style: normal; font-size: 10.5px; color: var(--muted); }
.app-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.app-card-h { display: flex; justify-content: space-between; font-weight: 600; font-size: 13px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.app-card-h span { font-weight: 500; color: var(--brand); font-size: 12px; }
.its { list-style: none; margin: 0; padding: 0; }
.it { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.it:last-child { border-bottom: 0; }
.it-main { display: grid; min-width: 0; gap: 1px; }
.cnj { font-family: var(--mono); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it-tipo { font-size: 12.5px; font-weight: 600; }
.it-trib { font-size: 11px; color: var(--muted); }
.it-prazo { display: grid; justify-items: end; gap: 3px; flex-shrink: 0; }
.it-quando { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pill { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.pill.warn { background: #FDF0D5; color: #7A4B00; } .pill.crit { background: #FCE1E1; color: #8E1B1B; } .pill.info { background: #DDEBFA; color: #194A80; }
.app.mini .app-body { min-height: 0; }
.app.mini .it:nth-child(n+4) { display: none; }
@media (max-width: 720px) {
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-side { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Faixa de fontes */
.fontes { border-block: 1px solid var(--line); background: var(--surface); }
.fontes .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; padding-block: 18px; font-size: 13px; color: var(--muted); }
.fontes strong { color: var(--ink); font-weight: 600; margin-right: 6px; }
.fontes span { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; }

/* Seções */
.sec { padding-block: clamp(56px, 8vw, 96px); }
.tint { background: var(--tint); }
.sec-h { max-width: 680px; margin-bottom: 40px; display: grid; gap: 12px; }
.sec-h .eyebrow { margin-bottom: 0; }
.sec-h h2 { font-size: clamp(28px, 3.6vw, 42px); }
.sec-h p { color: var(--muted); font-size: 17px; }

.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.feat { background: var(--surface); padding: 28px 26px; display: grid; gap: 10px; align-content: start; }
.feat-i { font-family: var(--mono); font-size: 12px; color: var(--brand); }
.feat h3 { font-size: 21px; }
.feat p { color: var(--muted); font-size: 15px; }
.feats-mais { margin-top: 20px; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feats { grid-template-columns: minmax(0, 1fr); } }

.passos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.passo { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 3px solid var(--brand); }
.passo b { font-family: var(--display); font-size: 40px; color: var(--brand2); line-height: 1; }
.passo h3 { font-size: 20px; }
.passo p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .passos { grid-template-columns: minmax(0, 1fr); } }

.perfis, .seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.perfis div, .seg div { display: grid; gap: 6px; align-content: start; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.perfis div { border-top: 3px solid var(--accent); }
.perfis strong, .seg strong { font-family: var(--display); font-size: 18px; }
.perfis p, .seg p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) { .perfis, .seg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .perfis, .seg { grid-template-columns: minmax(0, 1fr); } }

/* Área do cliente */
.cliente .wrap { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 40px; align-items: center; }
.cliente-txt { display: grid; gap: 16px; min-width: 0; }
.cliente-txt .eyebrow { margin-bottom: 0; }
.cliente-txt h2 { font-size: clamp(28px, 3.4vw, 40px); }
.cliente-txt ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; font-size: 15px; }
.cliente-txt .ctas { margin-top: 4px; }
@media (max-width: 900px) { .cliente .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Dúvidas */
.duvidas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px; align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 600 22px var(--display); color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .duvidas { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* Contato */
.cta { background: var(--brand); color: var(--onbrand); border-radius: calc(var(--r) + 6px); padding: clamp(24px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 32px; align-items: center; }
.cta h2 { color: var(--onbrand); font-size: clamp(26px, 3.4vw, 40px); }
.cta p { color: rgba(255, 255, 255, .82); margin-top: 12px; }
.cta-zap { color: var(--b2d); font-weight: 600; }
.form-contato { display: grid; gap: 12px; }
.form-contato label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: #fff; }
.form-contato .opc { font-weight: 400; opacity: .7; }
.form-contato input:not([type=checkbox]), .form-contato select { font: 15px var(--body); padding: 11px 13px; border-radius: calc(var(--r) / 1.5); border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; width: 100%; }
.form-contato select option { color: var(--ink); }
.form-contato input::placeholder { color: rgba(255, 255, 255, .55); }
.form-contato input[aria-invalid="true"] { border-color: var(--b2d); box-shadow: 0 0 0 2px var(--b2d); }
.form-contato .dupla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 480px) { .form-contato .dupla { grid-template-columns: minmax(0, 1fr); } }
.form-contato .aceite { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; line-height: 1.45; }
.form-contato .aceite input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--b2d); flex-shrink: 0; }
.form-contato .aceite a { color: var(--b2d); }
.form-contato .btn { background: var(--b2d); border-color: var(--b2d); color: var(--ink); }
.form-contato .btn:hover { background: #E3A22C; border-color: #E3A22C; }
.form-contato .aviso { margin: 0; font-size: 14px; padding: 10px 12px; border-radius: 8px; }
.form-contato .aviso.ok { background: rgba(255, 255, 255, .14); color: #fff; }
.form-contato .aviso.erro { background: #FCE1E1; color: #8E1B1B; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .cta { grid-template-columns: minmax(0, 1fr); } }

/* Páginas de texto */
.texto .wrap { max-width: 760px; }
.texto h1 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 8px; }
.texto h2 { font-size: 22px; margin: 36px 0 10px; }
.texto p { color: var(--muted); margin-bottom: 12px; }
.texto p a { color: var(--brand); }
.texto .atualizado { font-size: 14px; }
.texto .btn { margin-top: 24px; }
.nao-achou { min-height: 50vh; }

/* Rodapé */
footer { background: var(--ink); color: #D9DCE3; padding-block: 48px 28px; font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
footer .logo { font-size: 19px; }
.rod-marca { display: grid; gap: 14px; align-content: start; }
.rod-marca p { color: #A9B6B8; max-width: 44ch; }
.rod-col { display: grid; gap: 8px; align-content: start; }
.rod-col strong { color: #fff; font-family: var(--display); font-size: 14px; margin-bottom: 4px; }
.rod-col a { color: #C6D2D3; text-decoration: none; overflow-wrap: anywhere; }
.rod-col a:hover { color: var(--b2d); }
.rod-base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; }
.rod-base small { color: #8FA0A2; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .rod-marca { grid-column: 1 / -1; } }
@media (max-width: 420px) { footer .wrap { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: no-preference) {
  .hero .app { animation: sobe .8s ease-out both; }
  @keyframes sobe { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
