/* BLINVS — identidade "Intellectual Asset Architecture" (Stitch) + ecossistema visual BLINVS by Futuro Rocha. */

:root {
  --canvas: #f5f6fa;
  --surface: #ffffff;
  --surface-low: #eff4ff;
  --surface-container: #e5eeff;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --line-input: #cbd5e1;
  --ink-heavy: #101b33;
  --ink: #1b2437;
  --black: #111111;
  --navy: #101b33;
  --muted: #64748b;
  --disabled: #94a3b8;
  --inverse: #1e293b;

  --brand: #4f46e5;
  --brand-deep: #3730a3;
  --brand-ink: #4338ca;
  --violet: #6254d9;
  --brand-wash: #eef2ff;
  --brand-line: #a5b4fc;
  --brand-ring: #c7d2fe;

  --crit-bg: #fef2f2; --crit-line: #fca5a5; --crit-ink: #991b1b; --crit: #dc2626;
  --warn-bg: #fffbeb; --warn-line: #fcd34d; --warn-ink: #92400e; --warn: #f59e0b;
  --ok-bg: #f0fdf4;   --ok-line: #86efac;   --ok-ink: #166534;   --ok: #16a34a;

  --r-sm: 4px; --r-md: 6px; --r-lg: 8px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-pop: 0 4px 6px -1px rgba(15, 23, 42, .06), 0 2px 4px -2px rgba(15, 23, 42, .04);
  --shadow-modal: 0 20px 25px -5px rgba(15, 23, 42, .1), 0 8px 10px -6px rgba(15, 23, 42, .04);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--canvas); color: var(--ink);
  font: 400 14px/20px var(--font); -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
h1, h2, h3, h4 { margin: 0; color: var(--ink-heavy); font-weight: 600; font-family: var(--display); }
h1 { font-size: 28px; line-height: 36px; letter-spacing: -.02em; }
h2 { font-size: 20px; line-height: 28px; letter-spacing: -.01em; }
h3 { font-size: 16px; line-height: 24px; letter-spacing: -.005em; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand-ring); outline-offset: 1px; }
[x-cloak] { display: none !important; }
.tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 12px; line-height: 16px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Ícones Material Symbols */
.ms {
  font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal;
  font-size: 20px; line-height: 1; display: inline-block; white-space: nowrap; direction: ltr;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24; user-select: none; vertical-align: middle;
  -webkit-font-smoothing: antialiased; width: 1em; overflow: hidden;
}
.ms.fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.ms.sm { font-size: 16px; } .ms.lg { font-size: 24px; }
.row > .ms, .locked .ms, .good > .ms { flex: none; }

/* Layout */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
@media (min-width: 1280px) { .container { padding: 0 32px; } }
.stack > * + * { margin-top: var(--gap, 16px); }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.grid.g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) {
  .g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .g-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .g-main-side { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
}
@media (min-width: 768px) and (max-width: 1100px) { .g-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.section { padding-top: 32px; padding-bottom: 32px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }

/* Tipografia utilitária */
.eyebrow { font: 500 11px/14px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); }
.label { font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 16px; line-height: 24px; color: #334155; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; color: inherit; }
.logo-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--brand); color: #fff; }
.logo-name { display: block; font-weight: 600; font-size: 15px; line-height: 18px; letter-spacing: -.01em; color: var(--ink-heavy); }
.logo-sub { display: block; font: 500 10px/12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 6px; }
@media (max-width: 560px) { .hide-sm { display: none !important; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 48px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; font-size: 12px; color: var(--muted); }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; font-family: var(--mono); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--brand); }
.site-footer .credit { margin-left: auto; text-align: right; }
.site-footer .credit a { color: var(--ink-heavy); font-weight: 600; }
.site-footer .credit a:hover { color: var(--brand); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.card-pad { padding: 20px; }
@media (min-width: 768px) { .card-pad { padding: 24px; } }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.card-body { padding: 20px; }
.card.soft { background: var(--surface-low); border-color: #dbe5ff; box-shadow: none; }
.card.dark { background: var(--inverse); border-color: var(--inverse); color: #e2e8f0; }
.card.dark h3, .card.dark h2 { color: #fff; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: 14px; font-weight: 500; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: background-color .12s, border-color .12s, color .12s; text-decoration: none; background: none;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: #4338ca; color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-deep); color: #fff; }
.btn-secondary { background: var(--surface); border-color: var(--line); color: var(--ink-heavy); }
.btn-secondary:hover:not(:disabled) { background: var(--canvas); border-color: var(--line-input); color: var(--ink-heavy); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover:not(:disabled) { background: var(--brand-wash); color: var(--brand-deep); }
.btn-danger { background: var(--crit-bg); border-color: var(--crit-line); color: var(--crit-ink); }
.btn-danger:hover:not(:disabled) { background: #fee2e2; color: var(--crit-ink); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-xs { height: 26px; padding: 0 8px; font-size: 12px; gap: 4px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }

/* Formulários */
.field { display: block; }
.field > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--ink-heavy); }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-input); border-radius: var(--r-sm);
  background: var(--surface); font-size: 14px; color: var(--ink);
}
.textarea { height: auto; padding: 10px 12px; line-height: 20px; resize: vertical; }
.textarea.code { font: 12px/18px var(--mono); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-wash); }
/* Campo de senha com botão mostrar/ocultar */
.pw { position: relative; display: block; }
.pw .input { padding-right: 44px; }
.pw-toggle {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: var(--r-sm);
  background: none; color: var(--muted); cursor: pointer;
}
.pw-toggle:hover { color: var(--brand-deep); background: var(--brand-wash); }
.pw .input:disabled + .pw-toggle { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 19px; color: #334155; cursor: pointer; }
.check input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--brand); flex: none; }
.form-error { padding: 10px 12px; border: 1px solid var(--crit-line); background: var(--crit-bg); color: var(--crit-ink); border-radius: var(--r-sm); font-size: 13px; }
.form-ok { padding: 10px 12px; border: 1px solid var(--ok-line); background: var(--ok-bg); color: var(--ok-ink); border-radius: var(--r-sm); font-size: 13px; }

/* Chips / badges */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 7px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--canvas); color: var(--muted);
  font-size: 11px; font-weight: 500; line-height: 1; white-space: nowrap;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.mono { font-family: var(--mono); letter-spacing: .02em; }
.chip-crit { background: var(--crit-bg); border-color: var(--crit-line); color: var(--crit-ink); }
.chip-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.chip-ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.chip-info { background: var(--brand-wash); border-color: var(--brand-line); color: var(--brand-deep); }
.chip-dark { background: var(--inverse); border-color: var(--inverse); color: #fff; }

.t-crit { color: var(--crit-ink); } .t-warn { color: var(--warn-ink); } .t-ok { color: var(--ok-ink); } .t-info { color: var(--brand-deep); }

/* Medidor */
.meter { height: 6px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.meter.crit > i { background: var(--crit); } .meter.warn > i { background: var(--warn); }
.meter.ok > i { background: var(--ok); } .meter.info > i { background: var(--brand); }

/* Tabelas */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { height: 34px; padding: 0 12px; background: var(--canvas); border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table tr:hover td { background: #f8fafc; }
.table tr.sel td { background: var(--brand-wash); }
.table tr.sel td:first-child { box-shadow: inset 2px 0 0 var(--brand); }

/* Callouts */
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-low); border: 1px solid #dbe5ff; font-size: 14px; line-height: 22px; color: #334155; }
.callout .ms { color: var(--brand); flex: none; margin-top: 1px; }
.callout.crit { background: var(--crit-bg); border-color: var(--crit-line); color: var(--crit-ink); }
.callout.crit .ms { color: var(--crit); }
.callout.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.callout.warn .ms { color: var(--warn); }

/* Modal / drawer */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(15, 23, 42, .4); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { width: 100%; max-width: 560px; max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-modal); border: 1px solid var(--line); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-body { padding: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--surface); }
.drawer-wrap { justify-content: flex-end; align-items: stretch; padding: 0; }
.drawer { width: 100%; max-width: 720px; height: 100dvh; overflow: auto; background: var(--surface); box-shadow: var(--shadow-modal); display: flex; flex-direction: column; }
.drawer .modal-body { flex: 1; }

/* Toast */
.toast { position: fixed; z-index: 80; bottom: 20px; left: 50%; transform: translateX(-50%); padding: 10px 16px; border-radius: var(--r-md); background: var(--inverse); color: #fff; font-size: 13px; box-shadow: var(--shadow-pop); max-width: calc(100vw - 32px); }
.toast.error { background: var(--crit-ink); }

/* Estado vazio e carregamento */
.empty { padding: 40px 16px; text-align: center; color: var(--muted); }
.empty .ms { font-size: 32px; color: var(--disabled); margin-bottom: 8px; }
.skeleton { background: linear-gradient(90deg, var(--line-soft), #e9eef5, var(--line-soft)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r-sm); }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- Landing */
.hero { margin-top: 24px; border-radius: 12px; border: 1px solid #dbe5ff; background: linear-gradient(135deg, #eff4ff 0%, #f8f9ff 55%, #e5eeff 100%); padding: 28px 20px; }
@media (min-width: 768px) { .hero { padding: 48px 40px; } }
.hero h1 { font-size: 30px; line-height: 38px; max-width: 820px; }
@media (min-width: 768px) { .hero h1 { font-size: 42px; line-height: 50px; } }
.hero h1 em { font-style: normal; color: var(--brand-ink); text-decoration: underline; text-decoration-color: var(--brand-line); text-underline-offset: 6px; text-decoration-thickness: 3px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; }
.stat b { display: block; font-size: 22px; line-height: 28px; font-weight: 600; color: var(--ink-heavy); letter-spacing: -.01em; }
.stat b.brand { color: var(--brand-ink); }
.stat span { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.profile-card { display: block; padding: 18px; cursor: pointer; transition: border-color .12s, box-shadow .12s; text-align: left; width: 100%; font: inherit; }
.profile-card:hover { border-color: var(--brand-line); }
.profile-card.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-wash); }
.icon-box { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--brand-wash); color: var(--brand); }
.pillar { display: flex; flex-direction: column; }
.pillar .card-body { flex: 1; }
.pillar-foot { padding: 12px 20px; background: var(--surface-low); border-top: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); font: 500 11px/14px var(--mono); color: var(--brand-deep); }
.checklist { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; font-size: 13px; color: #334155; }
.checklist li { display: flex; gap: 8px; }
.checklist .ms { color: var(--brand); font-size: 18px; flex: none; margin-top: 1px; }

/* ---------------------------------------------------------------- Questionário */
.scan-top { background: var(--surface-low); border-bottom: 1px solid #dbe5ff; }
.scan-top .container { padding-top: 14px; padding-bottom: 14px; }
.steps { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.step { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); font-size: 12px; color: var(--muted); white-space: nowrap; flex: none; }
.step.done { color: var(--ink); }
.step.done .ms { color: var(--brand); }
.step.cur { background: var(--brand); border-color: var(--brand); color: #fff; }
.progress { height: 6px; border-radius: 99px; background: #dbe5ff; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brand); transition: width .25s; }
.q-title { font-size: 22px; line-height: 30px; letter-spacing: -.015em; }
@media (min-width: 768px) { .q-title { font-size: 26px; line-height: 34px; } }
.opts { display: grid; gap: 10px; }
.opt {
  display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; cursor: pointer;
  padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface);
  font: inherit; font-size: 15px; line-height: 22px; color: var(--ink-heavy); transition: border-color .1s, background .1s;
}
.opt:hover { border-color: var(--brand-line); background: #fbfcff; }
.opt.on { border-color: var(--brand); background: var(--brand-wash); box-shadow: inset 0 0 0 1px var(--brand); }
.opt:disabled { opacity: .45; cursor: not-allowed; }
.opt .box { flex: none; width: 18px; height: 18px; margin-top: 2px; border: 1.5px solid var(--disabled); background: #fff; display: grid; place-items: center; }
.opt .box.radio { border-radius: 50%; }
.opt .box.cb { border-radius: 4px; }
.opt.on .box { border-color: var(--brand); background: var(--brand); }
.opt.on .box.radio { background: #fff; box-shadow: inset 0 0 0 4px var(--brand); }
.opt.on .box.cb::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.opts.cols { grid-template-columns: 1fr; }
@media (min-width: 640px) { .opts.cols { grid-template-columns: 1fr 1fr; } }
.scan-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-top: 20px; }
.scan-actions .right { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
@media (max-width: 560px) {
  .scan-actions { flex-direction: column-reverse; align-items: stretch; }
  .scan-actions .right { margin-left: 0; flex-direction: column-reverse; }
  .scan-actions .btn { width: 100%; }
}
.review-item { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }

/* ---------------------------------------------------------------- Relatório */
.report-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-start; }
.gauge { position: relative; width: 220px; max-width: 100%; margin: 8px auto 0; }
.gauge svg { display: block; width: 100%; height: auto; }
.gauge .val { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; }
.gauge .val b { display: block; font-size: 44px; line-height: 44px; font-weight: 600; letter-spacing: -.03em; color: var(--ink-heavy); }
.scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 16px; }
.scale div { padding: 6px 4px; border-radius: var(--r-sm); text-align: center; font-size: 10px; line-height: 13px; border: 1px solid var(--line); color: var(--muted); }
.scale div b { display: block; font-family: var(--mono); font-size: 10px; }
.scale .on { font-weight: 600; }
.scale .on.ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.scale .on.info { background: var(--brand-wash); border-color: var(--brand-line); color: var(--brand-deep); }
.scale .on.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.scale .on.crit { background: var(--crit-bg); border-color: var(--crit-line); color: var(--crit-ink); }
.ind-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ind-card .score { font-size: 26px; line-height: 30px; font-weight: 600; letter-spacing: -.02em; }
.prio { padding: 18px; display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--brand); }
.prio.critical { border-top-color: var(--crit); }
.prio .num { font: 600 11px/14px var(--mono); letter-spacing: .06em; color: var(--brand-deep); }
.kv { display: grid; gap: 4px; font-size: 13px; line-height: 19px; }
.kv b { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.horizon { padding: 16px; border-left: 3px solid var(--brand); }
.horizon.agora { border-left-color: var(--crit); }
.horizon.organizar { border-left-color: var(--warn); }
.horizon ul, .plain-list { margin: 8px 0 0; padding-left: 18px; font-size: 13px; line-height: 20px; color: #334155; }
.horizon li + li, .plain-list li + li { margin-top: 4px; }
.good { display: flex; gap: 10px; padding: 12px; border-radius: var(--r-md); background: var(--ok-bg); border: 1px solid #bbf7d0; font-size: 13px; color: #14532d; }
.good .ms { color: var(--ok); }
.locked { position: relative; padding: 20px; border: 1px dashed var(--brand-line); background: repeating-linear-gradient(-45deg, #fff, #fff 10px, #f8f9ff 10px, #f8f9ff 20px); border-radius: var(--r-lg); }
.cta-band { border-radius: 12px; padding: 24px; background: linear-gradient(120deg, #3525cd, #4f46e5 60%, #5551c2); color: #e0e7ff; }
@media (min-width: 768px) { .cta-band { padding: 32px; } }
.cta-band h2 { color: #fff; font-size: 24px; line-height: 32px; }
.cta-band .btn-light { background: #fff; color: var(--brand-deep); border-color: #fff; }
.cta-band .btn-light:hover { background: var(--brand-wash); color: var(--brand-deep); }
.print-head { display: none; }

@media print {
  @page { size: A4; margin: 12mm 11mm; }
  body { background: #fff; font-size: 12px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .no-print, .site-header, .site-footer, .toast, .overlay { display: none !important; }
  .print-head { display: flex !important; justify-content: space-between; border-bottom: 2px solid var(--brand); padding-bottom: 8px; margin-bottom: 12px; }
  .container { max-width: none; padding: 0; }
  .card, .prio, .horizon, .good, .ind-card, .callout { break-inside: avoid; box-shadow: none !important; }
  .print-break { break-before: page; }
  .section { padding: 12px 0; }
  .grid.g-5 { grid-template-columns: repeat(5, 1fr); }
  .grid.g-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.g-2, .grid.g-main-side { grid-template-columns: 1fr 1fr; }
  .cta-band { background: var(--brand-wash) !important; color: var(--ink) !important; }
  .cta-band h2 { color: var(--ink-heavy) !important; }
  a { color: inherit; }
}

/* ---------------------------------------------------------------- Admin */
.admin { display: grid; grid-template-columns: 1fr; min-height: 100dvh; }
@media (min-width: 1024px) { .admin { grid-template-columns: 248px minmax(0, 1fr); } }
.admin > * { min-width: 0; }
@media (max-width: 767px) { .admin-top { padding: 0 16px; } }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1023px) { .sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; } .side-nav { display: flex !important; overflow-x: auto; } .side-extra { display: none; } }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); color: #334155; font-size: 13px; white-space: nowrap; }
.side-nav a:hover { background: var(--canvas); color: var(--ink-heavy); }
.side-nav a.on { background: var(--brand-wash); color: var(--brand-deep); font-weight: 500; }
.side-nav a .count { margin-left: auto; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; padding: 0 24px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 30; }
.admin-main { padding: 24px 16px 48px; }
@media (min-width: 768px) { .admin-main { padding: 28px 32px 56px; } }
.kpi { padding: 16px; }
.kpi .v { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -.02em; color: var(--ink-heavy); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--brand-deep); border-bottom-color: var(--brand); font-weight: 500; }
.opt-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 64px 58px 58px 58px minmax(0, 150px) 30px; gap: 6px; align-items: center; }
.opt-row .input { height: 34px; font-size: 13px; }
.cell-clip { max-width: 420px; }

/* ================================================================ BLINVS 1.3 */
.logo img { display: block; height: 28px; width: auto; }
.logo-by { font: 500 10px/12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; margin-left: 2px; }
@media (max-width: 560px) { .logo-by { display: none; } }
.nav-links { display: flex; gap: 2px; margin-right: 8px; }
.nav-links a { padding: 6px 10px; border-radius: var(--r-sm); color: #334155; font-size: 14px; }
.nav-links a:hover { color: var(--brand); }
.nav-links a.on { color: var(--brand); font-weight: 600; }
@media (max-width: 760px) { .nav-links { display: none; } }
.btn-dark { background: var(--black); border-color: var(--black); color: #fff; }
.btn-dark:hover:not(:disabled) { background: var(--navy); color: #fff; }
.free-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; background: var(--brand-wash); border: 1px solid var(--brand-line); color: var(--brand-deep); font: 600 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.free-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.hero-blinvs { margin-top: 24px; display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .hero-blinvs { grid-template-columns: minmax(0, 1fr) 340px; } }
.hero-blinvs h1 { font-size: 32px; line-height: 40px; letter-spacing: -.025em; font-weight: 700; }
@media (min-width: 768px) { .hero-blinvs h1 { font-size: 44px; line-height: 52px; } }
.access-card { padding: 20px; }
.stat-row { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-chip { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.stat-chip .icon-box { flex: none; }
.stat-chip b { display: block; font-family: var(--display); font-size: 20px; line-height: 26px; color: var(--ink-heavy); }
.stat-chip span { font-size: 12px; color: var(--muted); }
.pill-soon { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 11px; font-weight: 600; background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.pill-ok { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 11px; font-weight: 600; background: var(--ok-bg); color: var(--ok-ink); border: 1px solid var(--ok-line); }

/* Escala de 5 faixas do Nível de Proteção */
.scale5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.scale5 div { padding: 8px 4px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--canvas); text-align: center; font-size: 11px; line-height: 14px; color: var(--muted); }
.scale5 div b { display: block; font-family: var(--mono); font-size: 11px; }
.scale5 .on { background: var(--brand-wash); border: 2px solid var(--brand); color: var(--brand-deep); font-weight: 600; }
.scale5 .locked { text-decoration: line-through; opacity: .55; }
.level-big { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; color: var(--ink-heavy); font-size: 30px; line-height: 38px; }
@media (min-width: 768px) { .level-big { font-size: 40px; line-height: 48px; } }
.level-big .num { color: var(--brand); }
.crit-banner { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--crit-line); border-left: 4px solid var(--crit); background: #fff; border-radius: var(--r-lg); }
.crit-banner > .ms { color: var(--crit); background: var(--crit-bg); border-radius: var(--r-md); padding: 8px; font-size: 22px; width: auto; flex: none; }
.dim-card { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.dim-card.warn-edge { border-color: var(--crit-line); box-shadow: inset 0 0 0 1px var(--crit-line); }
.dim-card .score { font-family: var(--display); font-size: 20px; font-weight: 700; white-space: nowrap; }
.u-card { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.u-attn { padding: 10px 12px; border-radius: var(--r-md); background: var(--crit-bg); border: 1px solid #fecaca; font-size: 12px; line-height: 17px; color: var(--crit-ink); }
.u-attn.soft { background: var(--brand-wash); border-color: #c7d2fe; color: var(--brand-deep); }
.u-limit { font-size: 11px; line-height: 15px; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: 8px; margin-top: auto; }
.u-hidden { display: none; }
.show-all .u-hidden { display: flex; }
@media print { .u-hidden { display: flex !important; } .ver-todos { display: none !important; } }

/* Questionário 1.3 */
.dim-list { display: grid; gap: 6px; margin-top: 12px; }
.dim-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-md); background: var(--canvas); border: 1px solid transparent; font-size: 12px; line-height: 16px; }
.dim-item .n { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e2e8f0; color: #334155; font-weight: 600; font-size: 11px; }
.dim-item.on { background: var(--brand-wash); border-color: var(--brand-line); }
.dim-item.on .n { background: var(--brand); color: #fff; }
.dim-item .w { margin-left: auto; font: 600 11px/1 var(--mono); color: var(--muted); }
.dim-item.on .w { color: var(--brand-deep); }

/* Kanban de solicitações */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kcol { background: #eef1f7; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; min-height: 180px; transition: background .12s, border-color .12s; }
.kcol.drop { background: var(--brand-wash); border-color: var(--brand); }
.kcol-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; font-weight: 600; font-size: 13px; color: var(--ink-heavy); }
.kcol-head .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.kcol-head .count { margin-left: auto; }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; margin-bottom: 8px; cursor: grab; box-shadow: var(--shadow-card); }
.kcard:hover { border-color: var(--brand-line); }
.kcard.dragging { opacity: .45; }
.kcard .t { font-weight: 600; color: var(--ink-heavy); font-size: 13px; }
.kcard .meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.kcard .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.kempty { padding: 16px 8px; text-align: center; font-size: 12px; color: var(--disabled); border: 1px dashed var(--line-input); border-radius: var(--r-md); }
.urg-alta { background: var(--crit-bg); border-color: var(--crit-line); color: var(--crit-ink); }
.urg-media { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.urg-baixa { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 12px 14px; font-size: 12px; line-height: 17px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; }
.interest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 560px) { .interest-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.interest-grid label { display: flex; gap: 6px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-md); font-size: 13px; cursor: pointer; }
.interest-grid label:has(input:checked) { border-color: var(--brand); background: var(--brand-wash); }
.interest-grid input { accent-color: var(--brand); }
/* Gráficos do resultado */
.chart-card { margin: 0; }
.chart-card svg { display: block; height: auto; overflow: visible; font-family: var(--font); }
.chart-ring { flex: none; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: #334155; }
.chart-key { display: inline-flex; align-items: center; gap: 6px; }
.chart-key i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
@media (max-width: 560px) { .chart-ring { width: 88px; height: 88px; } }
@media print { .chart-card { break-inside: avoid; } }
.footer-note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 16px; font-size: 12px; color: #334155; }
