/* =====================================================================
   SEMEAR ASSESSORIA — Design System
   Academia de Desenvolvimento e Liderança
   Identidade: elegante, orgânica, premium — não corporativo-frio
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Paleta primária Semear */
  --navy:        #1b3d4f;
  --navy-soft:   #2d5266;
  --teal:        #4d9999;
  --teal-light:  #7bbdbd;
  --teal-pale:   #e6f3f3;
  --rose:        #c45070;
  --rose-light:  #f5e0e7;
  --cream:       #faf5ee;
  --cream-deep:  #f3eadc;

  /* Texto */
  --text:        #1e2d25;
  --text-soft:   #3d4a44;
  --text-light:  #6b808c;
  --text-mute:   #9bafb8;

  /* Funcionais */
  --success:     #5a8f5a;
  --warning:     #d4a056;
  --danger:      #c45050;
  --info:        #5a7a8f;

  /* Eisenhower / Prioridades */
  --q1: #c45050;  /* Urgente + Importante */
  --q2: #5a8f5a;  /* Não urgente + Importante */
  --q3: #d4a056;  /* Urgente + Não importante */
  --q4: #9bafb8;  /* Não urgente + Não importante */

  /* PDCA */
  --pdca-p: #5a7a8f;
  --pdca-d: #5a8f5a;
  --pdca-c: #8c6dbf;
  --pdca-a: #d4a056;

  /* DISC */
  --disc-d: #c45070;
  --disc-i: #d4a056;
  --disc-s: #5a8f8f;
  --disc-c: #5a7a8f;

  /* Espaçamentos */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  /* Raios */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(27, 61, 79, 0.06);
  --shadow:    0 4px 16px rgba(27, 61, 79, 0.08);
  --shadow-lg: 0 8px 32px rgba(27, 61, 79, 0.12);

  /* Transições */
  --tr: 0.25s ease;

  /* Container */
  --container: 1100px;
}

/* ---------- Reset enxuto ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Tipografia ---------- */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1.1; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.15rem; line-height: 1.35; }
h1 em, h2 em { font-style: italic; color: var(--teal); }

p { margin-bottom: var(--space-4); color: var(--text-soft); line-height: 1.65; }
small { color: var(--text-light); }
a { color: var(--teal); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--navy); }
strong { font-weight: 600; color: var(--text); }

.eyebrow {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-soft);
  line-height: 1.65;
  font-weight: 400;
}
.lead em { color: var(--navy); font-style: italic; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-5); }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 var(--space-5); }
.section { padding: var(--space-8) 0; }
.section-tight { padding: var(--space-6) 0; }

.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.flex { display: flex; gap: var(--space-4); }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.flex-center { display: flex; justify-content: center; align-items: center; gap: var(--space-4); }
.flex-col { display: flex; flex-direction: column; gap: var(--space-4); }
.flex-wrap { flex-wrap: wrap; }

/* ---------- TopNav (cabeçalho fixo de navegação) ---------- */
.topnav {
  background: rgba(27, 61, 79, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(123, 189, 189, 0.15);
}
.topnav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topnav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--cream);
  text-decoration: none;
  transition: opacity 0.2s;
}
.topnav-brand:hover { opacity: 0.85; color: var(--cream); }
.topnav-brand-name {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.topnav-brand-sub {
  font-size: 0.7rem;
  color: var(--teal-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 2px;
}
.topnav-links {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.topnav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(250, 245, 238, 0.85);
  background: transparent;
  border: 1px solid rgba(250, 245, 238, 0.18);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.topnav-link:hover {
  color: var(--cream);
  background: rgba(123, 189, 189, 0.15);
  border-color: var(--teal-light);
}
@media (max-width: 640px) {
  .topnav-brand-sub { display: none; }
  .topnav-link { padding: 0.45rem 0.7rem; font-size: 0.78rem; }
  .topnav-link svg { display: none; }
}

/* ---------- Header / Capa ---------- */
.cover {
  background:
    radial-gradient(ellipse at top right, rgba(196, 80, 112, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(123, 189, 189, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 60%, #2a5066 100%);
  color: var(--cream);
  padding: var(--space-8) var(--space-5) var(--space-7);
  position: relative;
  overflow: hidden;
}
.cover::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 25% 80%, rgba(255,255,255,0.04) 1px, transparent 1px),
    radial-gradient(circle at 75% 30%, rgba(255,255,255,0.03) 1.5px, transparent 1.5px);
  background-size: 60px 60px, 90px 90px;
  pointer-events: none;
}
.cover::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 24px;
  background: linear-gradient(to bottom, transparent, var(--cream));
  pointer-events: none;
}
.cover h1, .cover h2, .cover h3 { color: var(--cream); }
.cover .eyebrow { color: var(--teal-light); }
.cover p { color: rgba(250, 245, 238, 0.88); }
.cover-inner { position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-5);
}
.brand-mark, .brand-mark-svg {
  flex-shrink: 0;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-light), var(--rose));
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-weight: 700; font-size: 1.1rem;
  font-family: 'Playfair Display', serif;
}
.brand-mark-svg {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
  transition: transform 0.3s ease;
}
.topnav-brand:hover .brand-mark-svg { transform: rotate(-8deg) scale(1.08); }

/* ---------- Cards ---------- */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27, 61, 79, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(123, 189, 189, 0.25);
}
.card-feature {
  background: linear-gradient(180deg, white 0%, var(--cream) 100%);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(123, 189, 189, 0.1);
  box-shadow: 0 4px 16px rgba(27, 61, 79, 0.06);
}
.card-feature:hover {
  border-color: rgba(123, 189, 189, 0.3);
  box-shadow: 0 8px 24px rgba(27, 61, 79, 0.1);
}

.card-accent-teal   { border-left: 4px solid var(--teal); }
.card-accent-rose   { border-left: 4px solid var(--rose); }
.card-accent-navy   { border-left: 4px solid var(--navy); }
.card-accent-success{ border-left: 4px solid var(--success); }
.card-accent-warning{ border-left: 4px solid var(--warning); }
.card-accent-danger { border-left: 4px solid var(--danger); }

.card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: var(--space-3); gap: var(--space-3);
}
.card-title { font-family: 'Playfair Display', serif; color: var(--navy); font-size: 1.15rem; font-weight: 600; }

/* ---------- KPIs ---------- */
.kpi {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  border: 1px solid rgba(27, 61, 79, 0.06);
  box-shadow: var(--shadow-sm);
}
.kpi-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem; font-weight: 600; color: var(--navy);
  line-height: 1;
}
.kpi-label {
  font-size: 0.8rem; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: var(--space-2);
}

/* ---------- Badges / Pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  font-size: 0.75rem; font-weight: 500;
  background: var(--teal-pale); color: var(--navy);
}
.badge-rose   { background: var(--rose-light); color: var(--rose); }
.badge-cream  { background: var(--cream-deep); color: var(--text); }
.badge-navy   { background: var(--navy); color: var(--cream); }
.badge-success{ background: #e3f0e3; color: var(--success); }
.badge-warning{ background: #fbf0dc; color: #8c6c2f; }
.badge-danger { background: #f7dada; color: var(--danger); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.005em;
  border: none; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 2px; }

.btn-primary {
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--cream);
  box-shadow: 0 2px 8px rgba(27,61,79,0.18);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--navy-soft), #3b6480);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,61,79,0.25);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--teal), #3e8484);
  color: white;
  box-shadow: 0 2px 8px rgba(77,153,153,0.2);
}
.btn-secondary:hover {
  background: linear-gradient(135deg, #3e8484, var(--navy));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(77,153,153,0.3);
}

.btn-accent {
  background: linear-gradient(135deg, var(--rose), #a83f5c);
  color: white;
  box-shadow: 0 2px 8px rgba(196,80,112,0.22);
}
.btn-accent:hover {
  background: linear-gradient(135deg, #a83f5c, #8c3148);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,80,112,0.32);
}

.btn-ghost {
  background: transparent; color: var(--navy);
  border: 1.5px solid rgba(27,61,79,0.2);
  box-shadow: none;
}
.btn-ghost:hover {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
  transform: translateY(-1px);
}

.btn-sm { padding: 0.45rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; letter-spacing: 0.01em; }

/* ---------- Formulários ---------- */
.field { margin-bottom: var(--space-4); }
.field label {
  display: block; font-weight: 500; font-size: 0.9rem;
  color: var(--text); margin-bottom: var(--space-2);
}
input[type="text"], input[type="email"], input[type="number"], textarea, select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid rgba(27, 61, 79, 0.15);
  border-radius: var(--radius);
  font-family: inherit; font-size: 1rem;
  background: white; color: var(--text);
  transition: border-color var(--tr), box-shadow var(--tr);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(77, 153, 153, 0.15);
}
textarea { min-height: 100px; resize: vertical; line-height: 1.5; }

/* Slider de avaliação 0-10 */
.scale-input {
  display: flex; gap: 6px; flex-wrap: wrap;
  align-items: center; padding: var(--space-2) 0;
}
.scale-input input[type="radio"] { display: none; }
.scale-input label {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cream-deep); color: var(--text-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; cursor: pointer;
  transition: all var(--tr);
  margin-bottom: 0;
  border: 2px solid transparent;
  font-size: 0.9rem;
}
.scale-input label:hover { background: var(--teal-pale); color: var(--navy); }
.scale-input input[type="radio"]:checked + label {
  background: var(--teal); color: white;
  border-color: var(--navy);
  transform: scale(1.1);
}

/* Ranking input para DISC (1-4) */
.rank-input {
  display: inline-flex; gap: 4px;
  background: var(--cream); padding: 4px; border-radius: var(--radius-sm);
}
.rank-input button {
  width: 36px; height: 36px;
  border: 1.5px solid transparent;
  background: white; color: var(--text-light);
  border-radius: var(--radius-sm);
  font-weight: 600; cursor: pointer;
  transition: all var(--tr);
}
.rank-input button:hover { border-color: var(--teal); }
.rank-input button.active {
  background: var(--navy); color: var(--cream);
  border-color: var(--navy);
}
.rank-input button[data-rank="4"].active { background: var(--rose); }
.rank-input button[data-rank="1"].active { background: var(--text-mute); }

/* ---------- Detalhes / acordeão ---------- */
details {
  background: white;
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27, 61, 79, 0.06);
}
details summary {
  cursor: pointer; font-weight: 600; color: var(--navy);
  font-family: 'Playfair Display', serif; font-size: 1.05rem;
  list-style: none; display: flex; justify-content: space-between;
}
details summary::after { content: '+'; font-size: 1.5rem; color: var(--teal); }
details[open] summary::after { content: '−'; }
details[open] { padding-bottom: var(--space-5); }
details > *:not(summary) { margin-top: var(--space-4); }

/* ---------- Tabelas ---------- */
table.semear {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
table.semear th {
  background: var(--navy); color: var(--cream);
  padding: var(--space-3) var(--space-4);
  text-align: left; font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.04em; text-transform: uppercase;
}
table.semear td {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid rgba(27, 61, 79, 0.06);
}
table.semear tr:nth-child(even) td { background: var(--cream); }

/* ---------- Stepper de sessão ---------- */
.stepper { display: flex; gap: var(--space-2); margin: var(--space-5) 0; flex-wrap: wrap; }
.step {
  flex: 1; min-width: 80px;
  padding: var(--space-3); border-radius: var(--radius);
  background: white; text-align: center; font-size: 0.85rem;
  color: var(--text-light); border: 1.5px solid transparent;
  transition: all var(--tr); cursor: pointer;
}
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--teal-light); }
.step.active { background: var(--navy); color: var(--cream); border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow); }
.step.active:hover { background: var(--navy-soft); }
.step.done { background: var(--teal-pale); color: var(--navy); border-color: var(--teal); }
.step.done:hover { background: var(--teal); color: white; }
.step-num {
  display: inline-block; width: 24px; height: 24px;
  background: var(--cream-deep); border-radius: 50%;
  line-height: 24px; font-weight: 600; margin-bottom: 4px;
}
.step.active .step-num, .step.done .step-num { background: var(--teal); color: white; }

/* ---------- Quote / Insight box ---------- */
.insight {
  background: linear-gradient(135deg, var(--teal-pale), var(--cream));
  border-left: 4px solid var(--teal);
  padding: var(--space-5);
  border-radius: var(--radius);
  margin: var(--space-5) 0;
  font-style: italic; color: var(--navy);
}
.insight strong { font-style: normal; font-family: 'Playfair Display', serif; }

.callout {
  background: var(--rose-light);
  border-left: 4px solid var(--rose);
  padding: var(--space-5);
  border-radius: var(--radius);
  margin: var(--space-5) 0;
}
.callout-title { font-family: 'Playfair Display', serif; color: var(--rose); font-weight: 600; margin-bottom: var(--space-2); }

/* ---------- Progress ---------- */
.progress {
  width: 100%; height: 8px;
  background: var(--cream-deep); border-radius: 999px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--teal), var(--rose));
  transition: width 0.6s ease; border-radius: 999px;
}

/* ---------- Mapa de áreas (cards grid) ---------- */
.area-card {
  background: white;
  padding: var(--space-4);
  border-radius: var(--radius);
  border-left: 4px solid var(--teal);
  box-shadow: var(--shadow-sm);
}
.area-card.green   { border-left-color: var(--success); }
.area-card.yellow  { border-left-color: var(--warning); }
.area-card.red     { border-left-color: var(--danger); }
.area-card h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: var(--space-2); }
.area-card .area-score { font-size: 1.75rem; font-family: 'Playfair Display', serif; font-weight: 600; }
.area-card.green .area-score   { color: var(--success); }
.area-card.yellow .area-score  { color: var(--warning); }
.area-card.red .area-score     { color: var(--danger); }

/* ---------- Footer ---------- */
.footer {
  background:
    radial-gradient(ellipse at top, rgba(123,189,189,0.06) 0%, transparent 60%),
    var(--navy);
  color: var(--cream);
  padding: var(--space-7) var(--space-5) var(--space-5);
  margin-top: var(--space-8);
  font-size: 0.9rem;
  border-top: 1px solid rgba(123,189,189,0.15);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(250,245,238,0.1);
}
.footer-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 0.85rem;
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--cream);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.25rem;
}
.footer-tagline {
  color: rgba(250, 245, 238, 0.65);
  font-style: italic;
  font-size: 0.9rem;
  margin: 0;
}
.footer-link {
  display: block;
  color: rgba(250, 245, 238, 0.75);
  text-decoration: none;
  padding: 0.25rem 0;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--teal-light); }
.footer-line {
  display: block;
  color: rgba(250, 245, 238, 0.65);
  font-size: 0.85rem;
  padding: 0.25rem 0;
}
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: var(--space-5);
  font-size: 0.78rem;
  color: rgba(250, 245, 238, 0.5);
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-5); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- UserBar refinada ---------- */
.userbar {
  background: white;
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(27,61,79,0.05);
}
.userbar-left { display: flex; align-items: center; gap: 0.85rem; }
.userbar-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--rose));
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Playfair Display', serif;
  box-shadow: 0 2px 8px rgba(196,80,112,0.2);
}
.userbar-name {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  line-height: 1.2;
}
.userbar-sub {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 2px;
}
.userbar-actions {
  display: flex;
  gap: 0.5rem;
}
@media (max-width: 600px) {
  .userbar { flex-direction: column; align-items: flex-start; }
  .userbar-actions { width: 100%; }
}

/* ---------- Print refinado ---------- */
@media print {
  @page { margin: 18mm; size: A4; }
  body { background: white; font-size: 11pt; }
  .no-print, .topnav, .btn:not(.btn-print), .userbar-actions { display: none !important; }
  .card, details, .bloco, .pdi-bloco { box-shadow: none !important; border: 1px solid #ddd; page-break-inside: avoid; }
  .cover {
    background: white !important;
    color: var(--navy) !important;
    padding: 0 0 1rem !important;
    border-bottom: 2px solid var(--teal);
  }
  .cover::before, .cover::after { display: none !important; }
  .cover h1, .cover h2 { color: var(--navy) !important; }
  .cover p { color: var(--text) !important; }
  .cover .eyebrow { color: var(--rose) !important; }
  .footer { background: white !important; color: var(--text) !important; padding: 1rem 0 !important; }
  .footer * { color: var(--text) !important; }
  .footer-inner { display: none; }
  .footer-bottom { border-top: 1px solid #ddd; padding-top: 0.5rem; }
  h1, h2, h3 { page-break-after: avoid; }
  a { color: var(--navy) !important; text-decoration: none; }
  .bloco-header { page-break-after: avoid; }
  textarea, input { border-color: #ccc !important; background: white !important; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .flex-between { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 1.85rem; }
}

/* ---------- Animações sutis ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  from { background-position: 0 0; }
  to { background-position: 200% 0; }
}
.animate { animation: fadeUp 0.6s ease both; }
.animate-fade { animation: fadeIn 0.7s ease both; }
.animate-scale { animation: scaleIn 0.5s cubic-bezier(0.4,0,0.2,1) both; }
.animate-delay-1 { animation-delay: 0.08s; }
.animate-delay-2 { animation-delay: 0.18s; }
.animate-delay-3 { animation-delay: 0.28s; }
.animate-delay-4 { animation-delay: 0.38s; }

/* Focus visível para acessibilidade */
:focus-visible {
  outline: 3px solid var(--teal-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scrollbar refinada */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--teal-light); border-radius: 999px; border: 3px solid var(--cream); }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

/* Seleção de texto */
::selection { background: var(--teal-pale); color: var(--navy); }

/* Tabular nums para KPIs */
.kpi-value, .kpi-num { font-variant-numeric: tabular-nums lining-nums; }

/* Texturas botânicas sutis para fundos premium */
.bg-organic {
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 15% 25%, rgba(77,153,153,0.04) 0%, transparent 35%),
    radial-gradient(circle at 85% 75%, rgba(196,80,112,0.035) 0%, transparent 40%);
}
