/* Saldo Veicular — tema baseado nos prints do site Ezequiel Silva.
   Substitua integralmente assets/style.css por este arquivo.
   Paleta amostrada: #AFA939, #212529, #1A1D20, #F8F9FA, #FFFFFF.
   A fonte Poppins usa Google Fonts; há fallback local se indisponível. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #212529;
  --muted: #60656a;
  --paper: #ffffff;
  --line: #e5e7e9;
  --accent: #afa939;
  --white: #ffffff;
  --accent-hover: #99932e;
  --accent-soft: #f4f2df;
  --surface: #f8f9fa;
  --footer: #1a1d20;
  --shadow: 0 8px 32px rgba(33, 37, 41, .055);
  --font: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font: 400 16px/1.75 var(--font); background: var(--paper); color: var(--ink); }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font-family: var(--font); }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

/* Cabeçalho branco e marca com destaque dourado. */
header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 22px max(6%, calc((100vw - 1320px) / 2));
  min-height: 94px; background: #fff; border-bottom: 1px solid #f2f3f4;
  box-shadow: 0 4px 16px rgba(33, 37, 41, .055);
  position: relative; z-index: 20;
}
.brand { color: var(--ink); font-size: 27px; font-weight: 800; line-height: 1.2; letter-spacing: -.8px; text-decoration: none; }
.brand span { color: var(--accent); font-weight: 800; }
nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
nav a { text-decoration: none; transition: color .18s ease; }
nav a:last-child { padding: 14px 23px; background: var(--accent); border-radius: 6px; color: var(--ink); font-weight: 600; }
nav a:last-child:hover { background: var(--accent-hover); color: #fff; }

.wrap { max-width: 1320px; margin: auto; padding: 76px 32px; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); }
h1 { font-size: clamp(36px, 4.3vw, 64px); line-height: 1.17; font-weight: 800; letter-spacing: -1.5px; margin: 17px 0 26px; overflow-wrap: break-word; }
h2 { font-size: clamp(27px, 3vw, 38px); line-height: 1.3; font-weight: 700; letter-spacing: -.8px; margin: 0 0 22px; }
h3 { font-size: 23px; font-weight: 700; line-height: 1.4; margin: 18px 0 14px; }
p { margin: 12px 0 21px; }
.eyebrow { text-transform: uppercase; font-size: 13px; font-weight: 700; letter-spacing: 1.6px; color: var(--accent); }
.sub { font-size: 19px; color: var(--muted); line-height: 1.8; }
small, .note { font-size: 13px; color: var(--muted); line-height: 1.75; }

/* Bloco principal escuro, no mesmo contraste da referência.
   Não depende de nova imagem ou alteração do HTML. */
.hero {
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 65px;
  max-width: none; margin: 0; padding: 85px max(6%, calc((100vw - 1256px) / 2));
  background: var(--ink); color: #fff; min-height: 580px;
}
.hero h1 { color: #fff; }
.hero .sub { color: #d0d1d2; }
.hero .note { color: #c4c6c8; }
.hero .eyebrow { color: var(--accent); }
.hero .btn { margin-top: 7px; }
.illustration {
  position: relative; overflow: hidden; min-height: 385px; padding: 34px;
  background: var(--footer); color: #fff; border: 1px solid #ffffff17;
  border-radius: 12px; box-shadow: 0 15px 40px #00000018;
}
.illustration .big { font: 700 clamp(34px, 3.5vw, 48px)/1.22 var(--font); letter-spacing: -1px; margin: 20px 0; }
.illustration .small { color: #c5c7c9; }
.illustration > .eyebrow { color: var(--accent); }
.ledger { padding: 14px 18px; margin: 25px 0 17px; background: #ffffff06; border: 1px solid #ffffff20; border-radius: 8px; }
.ledger div { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid #ffffff17; padding: 11px 0; font-size: 14px; }
.ledger div:last-child { border: 0; color: #d4cc65; font-weight: 600; }

button, .btn {
  display: inline-block; background: var(--accent); color: var(--ink); border: 1px solid transparent;
  border-radius: 6px; padding: 14px 23px; font: 600 14px/1.5 var(--font);
  text-align: center; cursor: pointer; text-decoration: none; vertical-align: middle;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
button:hover, .btn:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 5px 16px #21252912; }
button:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: wait; box-shadow: none; }
.light { background: var(--accent); color: var(--ink); }
.ghost { background: #fff; color: var(--ink); border: 1px solid #dadddf; }
.ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--accent); }

.card { background: #fff; border: 1px solid #f5f5f5; padding: 32px; border-radius: 12px; box-shadow: var(--shadow); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.band { background: var(--surface); }
#direitos .wrap > .eyebrow { display: block; text-align: center; }
#direitos .wrap > h2 { text-align: center; max-width: 850px; margin: 12px auto 42px; }
#direitos article { text-align: center; padding-top: 35px; padding-bottom: 35px; }
#direitos article p { color: var(--muted); }
#direitos article h3 { margin-top: 22px; }
.pill { display: inline-block; background: var(--accent-soft); color: #68631e; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
#analise { align-items: start; gap: 55px; }
#analise > div > p { color: var(--muted); }
#analise > div > a { font-weight: 600; text-decoration-color: var(--accent); }
#analise form { border-top: 3px solid var(--accent); }
#duvidas h2 { text-align: center; margin-bottom: 32px; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; font-size: 16px; font-weight: 600; }
summary::marker { color: var(--accent); }
details p { color: var(--muted); max-width: 1000px; }

label { display: block; font-size: 13px; font-weight: 500; margin: 14px 0 6px; }
input, select, textarea { width: 100%; min-width: 0; font: 400 14px/1.5 var(--font); padding: 12px 13px; border: 1px solid #dcdfe2; border-radius: 6px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid #afa93925; outline-offset: 1px; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); vertical-align: middle; margin-right: 5px; }
input::placeholder, textarea::placeholder { color: #858a8f; }
textarea { min-height: 110px; resize: vertical; }
form button { margin-top: 19px; }
.status { padding: 12px 15px; border-left: 3px solid var(--accent); background: var(--accent-soft); color: var(--ink); margin: 14px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.status:empty { display: none; }
.hide { display: none !important; }
.error { color: #a12b27; }
footer { padding: 38px 6%; background: var(--footer); border-top: 1px solid #ffffff10; color: #bbc0c5; font-size: 13px; line-height: 1.9; }
footer a { color: #d3cc75; }
footer a:hover { color: #fff; }

/* Painel: mesmas cores, mantendo as classes e funções da V1.0. */
.app { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; background: var(--surface); }
.sidebar { background: var(--footer); color: #fff; padding: 30px 20px; }
.sidebar .brand { color: #fff; display: block; margin-bottom: 32px; font-size: 25px; }
.sidebar .eyebrow { font-size: 11px; letter-spacing: 1.5px; }
.sidebar button { display: block; width: 100%; text-align: left; margin: 9px 0; padding: 12px; background: #ffffff09; color: #d5d8db; border: 1px solid transparent; font-size: 13px; }
.sidebar button:hover, .sidebar button:focus-visible { color: #e0d778; background: #afa9391a; border-color: #afa93945; box-shadow: none; }
.main { padding: 32px; min-width: 0; }
.main > .toolbar { justify-content: space-between; }
.main h2 { font-size: 31px; margin: 5px 0 10px; }
.main .card { padding: 28px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.toolbar input { flex: 1; min-width: 180px; }
.toolbar label.btn { margin: 0; }
.toolbar button, .toolbar .btn { font-size: 12px; padding: 11px 15px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 24px 0; }
.metric { border-bottom: 3px solid var(--accent); }
.metric span { color: var(--muted); font-size: 13px; }
.metric strong { display: block; font: 700 40px/1.4 var(--font); color: #807b25; margin-top: 8px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.fields .full { grid-column: 1 / -1; }
.fields h3 { font-size: 20px; padding: 14px 0 9px; margin-top: 25px; border-bottom: 1px solid var(--line); }
.fields h3:first-child { margin-top: 0; }
table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.7; }
td, th { text-align: left; border-bottom: 1px solid var(--line); padding: 13px 10px; vertical-align: top; }
th { background: var(--surface); font-weight: 600; }
td button { font-size: 11px; padding: 8px 11px; margin: 2px; }
.scroll { overflow-x: auto; }
#editor { min-height: 580px; white-space: pre-wrap; overflow-wrap: break-word; font: 16px/1.8 Georgia, 'Times New Roman', serif; background: #fff; color: #212529; padding: 46px; border: 1px solid #e3e4e5; border-radius: 5px; box-shadow: var(--shadow); outline: none; }
#editor:focus { border-color: var(--accent); }
.doclist { display: flex; flex-wrap: wrap; gap: 8px; }
.doclist button { font-size: 12px; padding: 10px 13px; }
.auth { max-width: 490px; margin: 8vh auto; border-top: 4px solid var(--accent); }
.auth h2 { margin-top: 12px; }
.auth a { font-size: 13px; }
.chart { height: 110px; display: flex; gap: 12px; align-items: end; }
.bar { background: var(--accent); flex: 1; min-height: 6px; border-radius: 5px 5px 0 0; }

@media (max-width: 1000px) {
  nav { gap: 18px; }
  .hero { gap: 32px; padding: 65px 5%; }
  .wrap { padding: 60px 26px; }
  .grid { gap: 18px; }
  .card { padding: 25px; }
  #analise { gap: 30px; }
}
@media (max-width: 800px) {
  html { scroll-padding-top: 20px; }
  header { min-height: 80px; padding: 18px 20px; gap: 12px; }
  header nav a:not(:last-child) { display: none; }
  nav a:last-child { padding: 10px 13px; font-size: 12px; }
  .brand { font-size: 23px; }
  .hero, .two { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hero { padding: 48px 22px; min-height: 0; }
  h1 { font-size: clamp(34px, 7vw, 49px); letter-spacing: -.8px; }
  .sub { font-size: 17px; }
  .illustration { min-height: 0; padding: 27px; }
  .illustration .big { font-size: 36px; }
  .wrap { padding: 48px 22px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { padding: 18px; }
  .sidebar .brand { margin-bottom: 15px; }
  .sidebar .eyebrow { display: block; }
  .sidebar button { display: inline-block; width: auto; margin: 5px 3px 0 0; font-size: 11px; }
  .main { padding: 20px; }
  .main h2 { font-size: 26px; }
  .main .card { padding: 22px; }
  .metrics { gap: 10px; }
  .main .metric { padding: 16px; }
  .metric strong { font-size: 30px; }
  .metric span { font-size: 11px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  #editor { padding: 23px; }
  .toolbar input { width: 100%; }
  footer { padding: 30px 22px; }
  .auth { margin: 7vh 20px; max-width: none; }
}
@media (max-width: 420px) {
  header .brand { font-size: 21px; }
  nav a:last-child { padding: 9px 10px; font-size: 11px; }
  .metrics { grid-template-columns: minmax(0, 1fr); }
  .main .metric { display: flex; align-items: center; justify-content: space-between; }
  .metric strong { margin: 0; }
  .hero .btn { width: 100%; padding: 14px 12px; }
  .ledger { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  @page { size: A4; margin: 22mm; }
  body { background: #fff !important; color: #000; }
  .noprint, .sidebar, header, footer { display: none !important; }
  .app { display: block; background: #fff; min-height: 0; }
  .main { padding: 0; }
  #editor { border: 0; border-radius: 0; box-shadow: none; padding: 0; min-height: 0; color: #000; font: 12pt/1.5 Georgia, 'Times New Roman', serif; }
  .printonly { display: block !important; }
}
