/* ==========================================================================
   BELMARK — Design System (tokens, base, tipografia, layout)
   --------------------------------------------------------------------------
   Origem: a logotipo oficial (monograma BMK branco sobre preto, wordmark
   "B.M.K." em sans geométrica). A identidade é monocromática; por isso:

   CORES
     --belmark-background  preto da logo — fundo de todas as telas
     --belmark-surface     grafite — cards, sidebar, inputs
     --belmark-primary     branco da logo — ação principal, destaques
     --belmark-secondary   cinza claro — ação secundária, ícones ativos
     --belmark-text / --belmark-muted — hierarquia de texto
     --belmark-border      divisórias finas (a logo não usa sombras fortes)
     success / warning / danger — cores funcionais, dessaturadas para não
     competir com o preto e branco. Usar apenas para estado, nunca decoração.

   TIPOGRAFIA
     --font-display Montserrat (ecoa o wordmark) — títulos e rótulos
     --font-body    Inter — texto corrido e interface
     Escala: --text-xs … --text-4xl (base 16px, razão ~1.25)

   ESPAÇAMENTO  --space-1 (4px) … --space-10 (96px), múltiplos de 4
   RAIO         --radius-sm (6) / --radius (10) / --radius-lg (16) / pill
   SOMBRAS      --shadow-1 (cards elevados) / --shadow-2 (modais)
   MOTIVO       .bm-bars — três barras verticais, derivadas das pernas do "M".
                Usar com moderação (rótulos de seção, capas de playbook).
   ========================================================================== */

:root {
  --belmark-primary: #ffffff;
  --belmark-secondary: #d4d4d4;
  --belmark-background: #000000;
  --belmark-surface: #0c0c0c;
  --belmark-surface-2: #131313;
  --belmark-surface-3: #1a1a1a;
  --belmark-text: #f4f4f4;
  --belmark-muted: #8c8c8c;
  --belmark-subtle: #5e5e5e;
  --belmark-border: #232323;
  --belmark-border-strong: #333333;
  --belmark-success: #7cc49a;
  --belmark-warning: #d8b660;
  --belmark-danger: #e0706c;
  --belmark-on-primary: #000000;

  --belmark-success-bg: rgba(124, 196, 154, 0.1);
  --belmark-warning-bg: rgba(216, 182, 96, 0.1);
  --belmark-danger-bg: rgba(224, 112, 108, 0.1);
  --belmark-overlay: rgba(0, 0, 0, 0.72);

  --font-display: "Montserrat", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 3rem;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 56px;
  --space-9: 72px;
  --space-10: 96px;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 24px 64px rgba(0, 0, 0, 0.6);

  --focus-ring: 0 0 0 2px var(--belmark-background), 0 0 0 4px var(--belmark-primary);
  --transition: 140ms ease;

  --sidebar-width: 256px;
  --topbar-height: 64px;
  --content-max: 1200px;
  --gutter: var(--space-4);

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--belmark-background);
  color: var(--belmark-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
  color: var(--belmark-primary);
}
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-base); }
p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }
small { font-size: var(--text-sm); }
strong { font-weight: 600; color: var(--belmark-primary); }

a { color: var(--belmark-primary); text-decoration-color: var(--belmark-subtle); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--belmark-primary); }

ul, ol { padding-left: 1.25rem; margin: 0 0 var(--space-4); }
li + li { margin-top: var(--space-1); }

hr { border: 0; border-top: 1px solid var(--belmark-border); margin: var(--space-6) 0; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

::selection { background: var(--belmark-primary); color: var(--belmark-on-primary); }

/* ---------- utilitários ---------- */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 1000;
  background: var(--belmark-primary); color: var(--belmark-on-primary);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: var(--space-4); }

.muted { color: var(--belmark-muted); }
.subtle { color: var(--belmark-subtle); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.mono { font-family: var(--font-mono); font-size: 0.92em; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--space-2); } .mt-4 { margin-top: var(--space-4); } .mt-6 { margin-top: var(--space-6); }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: var(--space-2); } .mb-4 { margin-bottom: var(--space-4); } .mb-6 { margin-bottom: var(--space-6); }
[hidden] { display: none !important; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--belmark-muted);
  margin-bottom: var(--space-3);
}

/* Motivo derivado das pernas do "M" */
.bm-bars { display: inline-flex; gap: 3px; height: 12px; align-items: stretch; }
.bm-bars::before, .bm-bars::after, .bm-bars > i {
  content: ""; width: 3px; background: currentColor; border-radius: 1px;
}
.bm-bars > i { display: block; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gutter); }
.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }
.row { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }

/* ---------- logotipo ---------- */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 28px; width: auto; }
.logo--lg img { height: 44px; }
.logo--lockup img { height: auto; width: 180px; }

/* ---------- app shell (área logada) ---------- */
.app { min-height: 100vh; }
.app-main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.page { flex: 1; width: 100%; max-width: var(--content-max); margin: 0 auto; padding: var(--space-5) var(--gutter) var(--space-9); }
.page-header { margin-bottom: var(--space-6); }
.page-header h1 { margin-bottom: var(--space-2); }
.page-header p { color: var(--belmark-muted); max-width: 64ch; }
.section { margin-top: var(--space-7); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); flex-wrap: wrap; }
.section-title h2 { margin: 0; font-size: var(--text-lg); }

/* ---------- área pública ---------- */
.public-body { background: var(--belmark-background); }
