/* ─────────────────────────────────────────────────────────────
   capsula.dev · css/capsula.css
   Estilos compartilhados entre todas as páginas.
   Inclua ANTES dos estilos específicos de cada página.
───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

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

/* Variáveis globais */
:root {
  --bg:       #0a0a0f;
  --surface:  #13131a;
  --border:   rgba(255,255,255,0.08);
  --text:     #e8e8f0;
  --muted:    rgba(232,232,240,0.45);
  --accent:   #7c6af7;
  --success:  #4caf87;
  --warning:  #e8603a;
  --radius:   12px;
  --shadow:   0 4px 24px rgba(0,0,0,0.4);
  --mono:     'Space Mono', monospace;
  /* DISC profile colors */
  --D: #E8603A;
  --I: #6C5FE6;
  --S: #2EC4A0;
  --C: #1BA8D4;
}

/* Tipografia base */
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(124,106,247,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124,106,247,0.6); }

/* Botões base */
button { cursor: pointer; font-family: inherit; }

/* Links */
a { color: var(--accent); }

/* Utilitários */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── Botões compartilhados ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: var(--radius);
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none; line-height: 1;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
/* ── Hierarquia editorial de títulos ──────────────────────── */
h1 { letter-spacing: -0.03em; font-weight: 800; line-height: 1.1; }
h2 { letter-spacing: -0.025em; font-weight: 700; line-height: 1.2; }
h3 { letter-spacing: -0.015em; font-weight: 600; line-height: 1.3; }

/* ── Dados numéricos (sempre mono) ───────────────────────── */
.data-num, .stat-val, [class*="score-num"], [class*="pct-num"] {
  font-family: 'Space Mono', monospace;
  font-variant-numeric: tabular-nums;
}

.btn-primary  { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { opacity: 0.88; }
.btn-ghost    { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,0.05); }
.btn-danger   { background: var(--warning); color: #fff; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
}

/* ── Inputs ──────────────────────────────────────────────── */
input[type="text"], input[type="email"], textarea, select {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-family: inherit;
  font-size: 0.95rem; padding: 0.65rem 1rem; width: 100%;
  transition: border-color 0.2s;
}
input[type="text"]:focus, input[type="email"]:focus,
textarea:focus, select:focus {
  outline: none; border-color: var(--accent);
}

/* ── Preload de fonte: evita FOUT ────────────────────────── */
/* (preload declarado via <link> no HTML de cada página)     */

/* ── Animação de fade-in ─────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.4s ease forwards; }

/* ── Design "Mítico" — Cards de Matriz ───────────────────── */
.matriz-card,
.card-disc, .card-soar, .card-ikigai,
[class*="matriz-"] {
  border-radius: 4px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18) !important;
}

/* Tipografia técnica para títulos de matriz */
.matriz-title,
.card-matrix-title {
  font-family: 'Roboto Mono', 'Space Mono', monospace;
}

/* ── Engenharia de PDF — @media print ────────────────────── */
@media print {
  /* Ocultar elementos desnecessários */
  nav, .sidebar, .cta-buttons, .no-print,
  .nav-cta, .btn-primary, .btn-secondary,
  .hero-actions, footer, .cta-final-section,
  [data-modal-open] { display: none !important; }

  /* Cores para clareza e economia de tinta */
  body { background: white; color: black; font-size: 11pt; }

  /* Azuis vibrantes → marinho/cinza escuro */
  :root {
    --accent: #1a237e;
    --accent2: #00695c;
    --text:   #111;
    --muted:  #444;
    --bg:     #fff;
    --surface: #f5f5f5;
  }

  /* Regras de quebra de página */
  .matriz-container,
  .plano-card,
  .card {
    page-break-inside: avoid;
    margin-bottom: 20mm;
  }

  /* Títulos em PDF */
  h1, h2, h3 { color: #000; page-break-after: avoid; }

  /* Unidades físicas */
  .page-container {
    width: 210mm;
    padding: 15mm;
  }

  /* SVGs nítidos na impressão */
  svg { shape-rendering: geometricPrecision; }
}
