/* Apex-Treinador — base reset + tipografia */

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

html { height: 100%; background: var(--bg); -webkit-text-size-adjust: 100%; }

body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;   /* o layout interno gere o scroll por painel */
}

#app { height: 100vh; width: 100vw; overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); font-weight: 600; }

p { color: var(--text-2); font-size: var(--fs-md); line-height: 1.55; }

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--green); }

button {
  font-family: inherit; font-size: inherit; color: inherit;
  border: none; background: none; outline: none;
  cursor: pointer; user-select: none;
}
button:disabled { cursor: not-allowed; opacity: 0.5; }

input, select, textarea {
  font-family: inherit; font-size: inherit; color: inherit;
  border: none; background: none; outline: none;
}

/* "Eyebrow" — pequenas labels mono uppercase para headings de secção */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-3);
  text-transform: uppercase;
}

.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-serif); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Estado de boot (antes do JS montar) */
.boot-fallback {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: 16px;
}
.boot-logo {
  font-family: var(--font-serif); font-size: 36px; color: var(--green); letter-spacing: 4px;
}
.boot-msg {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-3);
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* Scrollbar discreta */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--line-3) transparent;
}
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--line-3); border-radius: 4px; }
*::-webkit-scrollbar-thumb:hover { background: var(--line-4); }
