/* ============================================================
   ValidaXML — folha de estilo
   Extraída do protótipo (fonte da verdade visual). As adições ao
   final derivam exclusivamente dos tokens já existentes.
   ============================================================ */

/* ===== Design system ===== */
:root {
  --brand: #1451cc;
  --brand-dark: #0f3fa3;
  --brand-tint: #eaf0fc;
  --ink: #1a2b3c;
  --ink-soft: #4a5b6d;
  --line: #e3e8ee;
  --bg-alt: #f5f7fa;
  --ok: #1e8e4e;
  --warn: #b7791f;
  --err: #c53030;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(26, 43, 60, .07);
  --font: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }
h1, h2, h3 { line-height: 1.25; font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
.eyebrow { display: block; color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.muted { color: var(--ink-soft); }

.btn { display: inline-block; font-weight: 700; font-size: 15px; padding: 13px 26px; border-radius: 8px; border: 0; cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--brand); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { background: #f0f4fd; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid transparent; }
.site-header.scrolled { box-shadow: var(--shadow); border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; color: var(--ink); }
.logo-mark { width: 32px; height: 32px; border-radius: 7px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 800; }
.main-nav { display: none; gap: 28px; font-weight: 600; font-size: 15px; }
.main-nav a { color: var(--ink-soft); }
.main-nav a:hover { color: var(--brand); }
.header-cta { display: none; gap: 10px; align-items: center; }
@media (min-width: 900px) {
  .main-nav, .header-cta { display: flex; }
}

/* ===== Hero ===== */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.hero h1 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 16px; }
.hero p.lead { font-size: 18px; color: var(--ink-soft); margin-bottom: 24px; max-width: 46ch; }
.hero-check { list-style: none; margin-top: 22px; display: grid; gap: 9px; font-size: 15px; color: var(--ink-soft); }
.hero-check li { display: flex; gap: 9px; align-items: flex-start; }
.check-ico { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 3px; }

/* ===== Ferramenta / dropzone ===== */
.tool-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 28px rgba(26,43,60,.09); padding: 26px; }
.tool-card h2 { font-size: 19px; margin-bottom: 4px; }
.tool-card .sub { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.dropzone { border: 2px dashed #c3ceda; border-radius: var(--radius); background: var(--bg-alt); padding: 34px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.dragover { border-color: var(--brand); background: var(--brand-tint); }
.dropzone strong { display: block; margin: 10px 0 4px; font-size: 15px; }
.dropzone span { font-size: 13px; color: var(--ink-soft); }
.dz-ico { width: 40px; height: 40px; margin: 0 auto; color: var(--brand); }
.tool-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.tool-note { margin-top: 14px; font-size: 12.5px; color: var(--ink-soft); display: flex; gap: 7px; align-items: flex-start; }
.tool-note svg { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 2px; color: var(--ok); }

/* ===== Resultados ===== */
.resultados-sec { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.result-head h1 { font-size: clamp(24px, 3.4vw, 32px); }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form { display: inline; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 18px; }
@media (min-width: 760px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat .num { font-size: 30px; font-weight: 800; line-height: 1.1; }
.stat .lbl { font-size: 13.5px; color: var(--ink-soft); margin-top: 3px; }
.stat.s-ok .num { color: var(--ok); }
.stat.s-warn .num { color: var(--warn); }
.stat.s-err .num { color: var(--err); }
.resumo-linha { font-size: 14px; margin-bottom: 22px; }

.issues-area { margin-bottom: 4px; }
.issue-box { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; font-size: 14.5px; }
.issue-box.err { border-left-color: var(--err); }
.issue-box.ok-box { border-left-color: var(--ok); }
.issue-box strong { display: block; margin-bottom: 2px; }
.issue-box .muted { font-size: 13.5px; }

.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; margin-top: 22px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
th { text-align: left; padding: 11px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); white-space: nowrap; }
td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.badge-ok { background: #e3f4ea; color: var(--ok); }
.badge-warn { background: #fbf0dc; color: var(--warn); }
.badge-err { background: #fbe4e4; color: var(--err); }
.td-issues { color: var(--ink-soft); font-size: 12.8px; max-width: 320px; }

/* ===== Como funciona ===== */
.steps { display: grid; gap: 22px; margin-top: 34px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--ink-soft); }

/* ===== Checagens ===== */
.alt { background: var(--bg-alt); }
.split { display: grid; gap: 36px; align-items: center; margin-top: 8px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.check-list { list-style: none; display: grid; gap: 13px; margin-top: 20px; }
.check-list li { display: flex; gap: 11px; font-size: 15px; }
.check-list b { display: block; }
.check-list span { color: var(--ink-soft); font-size: 14px; }
.mock-report { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 28px rgba(26,43,60,.09); padding: 20px; font-size: 13px; }
.mock-line { display: flex; justify-content: space-between; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.mock-line:last-child { border-bottom: 0; }

/* ===== FAQ ===== */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 16px 18px; font-size: 15.5px; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 20px; font-weight: 800; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq .faq-body { padding: 0 18px 16px; color: var(--ink-soft); font-size: 14.5px; }

/* ===== CTA final ===== */
.cta-final { background: var(--brand); color: #fff; text-align: center; }
.cta-final h2 { color: #fff; margin-bottom: 10px; }
.cta-final p { color: #d7e2f8; max-width: 56ch; margin: 0 auto 26px; }

/* ===== Footer ===== */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 34px 0; font-size: 13.5px; color: var(--ink-soft); }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   Adições (derivadas dos tokens acima) — captura de lead,
   página de erro e utilitários de espaçamento.
   ============================================================ */

/* Utilitários usados nas views (substituem os style="" inline do protótipo) */
.container-narrow { max-width: 820px; }
.mb-26 { margin-bottom: 26px; }
.mt-20 { margin-top: 20px; }

/* Cartão de captura de lead — fundo branco sobre a faixa azul do CTA */
.lead-card { background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 8px 28px rgba(26,43,60,.18); padding: 26px; max-width: 720px; margin: 0 auto; text-align: left; }
.lead-card h3 { font-size: 19px; margin-bottom: 6px; color: var(--ink); }
.lead-card .lead-sub { font-size: 14px; margin-bottom: 18px; }
.lead-grid { display: grid; gap: 14px; margin-bottom: 16px; }
@media (min-width: 640px) { .lead-grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field input, .field select { font-family: inherit; font-size: 15px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.lead-erro { background: #fbe4e4; color: var(--err); border-radius: 8px; padding: 11px 14px; font-size: 14px; margin-bottom: 16px; }
.lead-obrigado { text-align: center; padding: 8px 0; }
.lead-obrigado svg { margin: 0 auto 10px; }
.lead-obrigado h3 { font-size: 20px; margin-bottom: 6px; }

/* Honeypot: fora da tela, invisível a humanos, presente para bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Página de erro / limite */
.erro-sec { padding: 80px 0; }
.erro-box { text-align: center; }
.erro-box h1 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 12px; }
.erro-box .issue-box { text-align: left; margin-top: 24px; }
