/* ==========================================================================
   MicroSIS.ai · Stats-06 Bento (vanilla port of components/ui/stats-06.tsx)
   5 tinted stat cards, tall illustrated card spanning two rows on md+.
   ========================================================================== */

.st6-wrap {
  max-width: 64rem;
  margin: 0 auto 3rem;
  padding: 1rem 0 0;
}

.st6-title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.9rem, 3.4vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--ink-primary);
}

.st6-lead {
  margin: 0.875rem auto 0;
  max-width: 40rem;
  text-align: center;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  letter-spacing: -0.015em;
  text-wrap: pretty;
  color: var(--ink-secondary);
}

.st6-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .st6-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .st6-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.st6-card {
  --st6-border: #bfdbfe;
  --st6-bg: #eff6ff;
  --st6-ico: #3b82f6;
  border: 1px solid var(--st6-border);
  background: var(--st6-bg);
  border-radius: 0.75rem;
  padding: 1.75rem 1.5rem;
  color: var(--ink-primary);
}

.st6-tall {
  grid-row: span 2 / span 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}

.st6-icon {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.75rem;
  color: var(--st6-ico);
}

.st6-num {
  display: block;
  font-size: 3rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.st6-lbl {
  margin: 1rem 0 0;
  font-size: 1.25rem;
  color: color-mix(in srgb, var(--ink-primary) 80%, transparent);
}

.st6-tall .st6-lbl { margin-bottom: 0.5rem; }

.st6-illustration {
  display: block;
  width: 100%;
  height: auto;
  margin-top: auto;
  margin-bottom: -0.5rem;
}

.st6-blue   { --st6-border: #bfdbfe;              --st6-bg: #eff6ff; --st6-ico: #3b82f6; }
.st6-green  { --st6-border: rgba(22, 163, 74, .3); --st6-bg: #f0fdf4; --st6-ico: #16a34a; }
.st6-red    { --st6-border: #fecaca;              --st6-bg: #fef2f2; --st6-ico: #ef4444; }
.st6-amber  { --st6-border: rgba(217, 119, 6, .3); --st6-bg: #fffbeb; --st6-ico: #d97706; }
.st6-purple { --st6-border: #e9d5ff;              --st6-bg: #faf5ff; --st6-ico: #a855f7; }

html[data-theme="dark"] .st6-blue   { --st6-border: rgba(96, 165, 250, .3);  --st6-bg: rgba(59, 130, 246, .15); }
html[data-theme="dark"] .st6-green  { --st6-border: rgba(34, 197, 94, .3);   --st6-bg: rgba(34, 197, 94, .15); }
html[data-theme="dark"] .st6-red    { --st6-border: rgba(248, 113, 113, .3); --st6-bg: rgba(248, 113, 113, .15); }
html[data-theme="dark"] .st6-amber  { --st6-border: rgba(245, 158, 11, .3);  --st6-bg: rgba(245, 158, 11, .15); }
html[data-theme="dark"] .st6-purple { --st6-border: rgba(192, 132, 252, .3); --st6-bg: rgba(192, 132, 252, .15); }
