/* =========================================================
   Agile AI University — Typography & Rhythm System
   ---------------------------------------------------------
   Version: v1.0.0 (SaaS-Level Polish)

   PURPOSE:
   - Consistent text hierarchy
   - Clean spacing rhythm
   - Premium readability

========================================================= */


/* =========================================================
   🧠 BASE TYPE SCALE
========================================================= */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 26px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 16px;
}

h4 {
  font-size: 14px;
  color: var(--text-muted);
}

p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}


/* =========================================================
   📏 SPACING SYSTEM (8pt GRID)
========================================================= */

.section {
  margin-bottom: 24px;
}

.section-tight {
  margin-bottom: 16px;
}

.section-loose {
  margin-bottom: 32px;
}


/* =========================================================
   📦 CARD SYSTEM (UNIFIED LOOK)
========================================================= */

.card {
  border-radius: 12px;
  padding: 20px 22px;
}

.card-compact {
  padding: 14px 16px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}


/* =========================================================
   🧾 LABEL SYSTEM
========================================================= */

label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}


/* =========================================================
   🔘 BUTTON SYSTEM (CONSISTENT)
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 14px;
  font-size: 13px;
  border-radius: 8px;

  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
}


/* =========================================================
   📊 DATA TEXT (IMPORTANT FOR DASHBOARD)
========================================================= */

.data-label {
  font-size: 12px;
  color: var(--text-muted);
}

.data-value {
  font-size: 14px;
  font-weight: 500;
}


/* =========================================================
   📐 GRID HELPERS
========================================================= */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}


/* =========================================================
   📱 RESPONSIVE
========================================================= */

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}