/* ─────────────────────────────────────────────────────────────────────────── */
/* SROI Benchmark Platform — Professional CSS                                   */
/* Author: Juan Carlos Muñoz, jmunozm1@eafit.edu.co                            */
/* ─────────────────────────────────────────────────────────────────────────── */

/* ── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Custom Properties ────────────────────────────────────────────────── */
:root {
  --navy:    #1a3a4f;
  --blue:    #2e7d9f;
  --teal:    #4db6ac;
  --orange:  #e67e22;
  --green:   #27ae60;
  --red:     #e74c3c;
  --light:   #f8fafc;
  --border:  #e2e8f0;
  --text:    #1e293b;
  --muted:   #64748b;
  --white:   #ffffff;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: all 0.2s ease;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
  background: #f0f4f8;
  -webkit-font-smoothing: antialiased;
}

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
  background: var(--navy) !important;
  border-bottom: 3px solid var(--teal) !important;
  padding: 0.6rem 1.75rem !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25) !important;
  z-index: 1030 !important;
}

.navbar-brand {
  color: white !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  letter-spacing: -0.025em !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.navbar-brand .brand-icon {
  width: 28px;
  height: 28px;
  background: var(--teal);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: white;
  font-weight: 700;
}

.navbar-brand .brand-accent { color: var(--teal); }

.navbar .nav-link {
  color: rgba(255,255,255,0.78) !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  padding: 0.45rem 0.85rem !important;
  border-radius: var(--radius-sm) !important;
  transition: var(--transition) !important;
  letter-spacing: 0.01em !important;
}

.navbar .nav-link:hover {
  color: white !important;
  background: rgba(77,182,172,0.18) !important;
}

.navbar .nav-link.active {
  color: var(--teal) !important;
  background: rgba(77,182,172,0.12) !important;
  font-weight: 600 !important;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-left: 6px;
  border: 1px solid rgba(255,255,255,0.12);
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.65);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.05em;
  font-family: 'Inter', sans-serif;
}

.lang-btn.active {
  background: var(--teal);
  color: white;
  box-shadow: 0 1px 4px rgba(77,182,172,0.4);
}

.lang-btn:hover:not(.active) {
  color: white;
  background: rgba(255,255,255,0.1);
}

/* ── Page wrapper ─────────────────────────────────────────────────────────── */
.page-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

/* ── Hero banner ──────────────────────────────────────────────────────────── */
.hero-banner {
  background: linear-gradient(140deg, var(--navy) 0%, #1e4d6b 40%, var(--blue) 75%, var(--teal) 100%);
  color: white;
  padding: 2.25rem 2rem 1.75rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: rgba(77,182,172,0.12);
  border-radius: 50%;
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -60px; right: 80px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.hero-banner h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: white;
  border: none;
  margin: 0 0 0.5rem 0;
  padding: 0;
  letter-spacing: -0.03em;
  line-height: 1.25;
  position: relative;
  z-index: 1;
}

.hero-banner .hero-subtitle {
  font-size: 0.98rem;
  opacity: 0.88;
  max-width: 680px;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

/* ── Stat cards ───────────────────────────────────────────────────────────── */
.stat-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.1rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: default;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--teal);
}

.stat-card .sv { font-size: 1.85rem; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 0.2rem; }
.stat-card .sl { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; line-height: 1.3; margin-top: 0.25rem; }
.stat-card .ss { font-size: 0.7rem; color: var(--teal); margin-top: 0.15rem; font-weight: 500; }

/* ── Content cards ────────────────────────────────────────────────────────── */
.card-panel {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: box-shadow 0.2s;
}

.card-panel:hover { box-shadow: var(--shadow-md); }

.card-panel .card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-panel .card-title .ct-icon {
  width: 22px; height: 22px;
  background: var(--teal);
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: white;
}

/* ── Factor stats row ─────────────────────────────────────────────────────── */
.factor-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  background: var(--light);
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.fsg-item { text-align: center; }
.fsg-item .fv { font-size: 1.5rem; font-weight: 700; color: var(--navy); line-height: 1; }
.fsg-item .fl { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.2rem; }
.fsg-item.highlight .fv { color: var(--teal); }

/* ── Insight boxes ────────────────────────────────────────────────────────── */
.insight-box {
  border-left: 4px solid var(--blue);
  background: #f0f7ff;
  padding: 0.85rem 1.1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.insight-box.warning  { border-left-color: var(--orange); background: #fff8f0; }
.insight-box.success  { border-left-color: var(--green);  background: #f0fff5; }
.insight-box.teal     { border-left-color: var(--teal);   background: #f0fdfb; }
.insight-box.danger   { border-left-color: var(--red);    background: #fff5f5; }

.insight-box strong {
  display: block;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

/* ── Filter sidebar ───────────────────────────────────────────────────────── */
.filter-sidebar {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 80px;
}

.filter-sidebar .fs-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-sidebar .form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.filter-clear-btn {
  width: 100%;
  padding: 0.45rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.75rem;
}

.filter-clear-btn:hover { background: var(--light); color: var(--navy); }

/* ── Tabs ─────────────────────────────────────────────────────────────────── */
.nav-tabs {
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.25rem;
  gap: 0.1rem;
}

.nav-tabs .nav-link {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.875rem;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  margin-bottom: -2px;
  padding: 0.55rem 1rem;
  transition: var(--transition);
  border-radius: 0 !important;
  background: none !important;
}

.nav-tabs .nav-link:hover { color: var(--navy); border-bottom-color: var(--teal) !important; }

.nav-tabs .nav-link.active {
  color: var(--navy);
  font-weight: 600;
  border-bottom-color: var(--teal) !important;
  background: none !important;
}

/* ── Percentile badge ─────────────────────────────────────────────────────── */
.pct-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-xl);
  font-size: 1.35rem;
  font-weight: 700;
  min-width: 80px;
}

.pct-badge.low  { background: #dcfce7; color: #15803d; }
.pct-badge.mid  { background: #fef9c3; color: #854d0e; }
.pct-badge.high { background: #fee2e2; color: #991b1b; }

.pct-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
  text-align: center;
}

/* ── My SROI results ──────────────────────────────────────────────────────── */
.factor-compare-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.factor-compare-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  transition: var(--transition);
}

.factor-compare-card:hover { box-shadow: var(--shadow-sm); }

.fcc-name  { font-size: 0.75rem; font-weight: 600; color: var(--navy); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.fcc-value { font-size: 1.4rem; font-weight: 700; color: var(--blue); margin-bottom: 0.3rem; }
.fcc-bench { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.5rem; }

/* ── Corrected ratio box ──────────────────────────────────────────────────── */
.corrected-ratio-box {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-md);
}

.crb-label { font-size: 0.8rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.5rem; }
.crb-value { font-size: 3rem; font-weight: 700; line-height: 1; margin-bottom: 0.25rem; }
.crb-ci    { font-size: 0.82rem; opacity: 0.75; margin-bottom: 0.5rem; }
.crb-over  { font-size: 0.9rem; color: #fbbf24; font-weight: 500; }

/* ── DT table ─────────────────────────────────────────────────────────────── */
.dataTables_wrapper { font-size: 0.85rem; }

table.dataTable {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: var(--radius-md);
  overflow: hidden;
}

table.dataTable thead { background: var(--navy); }
table.dataTable thead th {
  color: white !important;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  border: none !important;
  padding: 0.75rem 1rem !important;
}

table.dataTable tbody tr { transition: background 0.15s; }
table.dataTable tbody tr:hover td { background: rgba(77,182,172,0.07) !important; }

table.dataTable.stripe tbody tr.odd { background: #fafbfd; }

.dataTables_filter input {
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border) !important;
  padding: 0.35rem 0.65rem !important;
  font-size: 0.85rem !important;
}

/* ── Ratio pill in table ──────────────────────────────────────────────────── */
.ratio-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.82rem;
}

.ratio-pill.low   { background: #dcfce7; color: #15803d; }
.ratio-pill.mid   { background: #fef9c3; color: #854d0e; }
.ratio-pill.high  { background: #fee2e2; color: #991b1b; }

.assured-yes { color: var(--green); font-weight: 600; font-size: 0.8rem; }
.assured-no  { color: var(--muted); font-size: 0.8rem; }

/* ── Quality principle chart ──────────────────────────────────────────────── */
.principle-bar-wrap {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

/* ── Regression forest plot ───────────────────────────────────────────────── */
.forest-note {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.75rem;
  line-height: 1.4;
}

/* ── About page ───────────────────────────────────────────────────────────── */
.about-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.about-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--teal);
  display: inline-block;
}

/* Paper card */
.paper-card {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.paper-card .pc-journal {
  display: inline-block;
  background: var(--teal);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.paper-card .pc-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.paper-card .pc-status {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

/* Author card */
.author-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.author-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 3px solid var(--teal);
}

.author-info h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin: 0 0 0.2rem 0; }
.author-info .author-title { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.6rem; }

.author-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.author-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: white;
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none !important;
  transition: var(--transition);
}

.author-link-btn:hover { background: var(--navy); color: white !important; border-color: var(--navy); }

/* Citation block */
.citation-block {
  background: #0f1923;
  color: #94c5cc;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  font-family: 'JetBrains Mono', 'Fira Code', 'Source Code Pro', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  position: relative;
  overflow-x: auto;
  border: 1px solid rgba(77,182,172,0.25);
}

.citation-block .cb-copy {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(77,182,172,0.2);
  border: 1px solid rgba(77,182,172,0.4);
  color: var(--teal);
  border-radius: var(--radius-xs);
  padding: 3px 8px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.citation-block .cb-copy:hover { background: var(--teal); color: white; }

/* ── Plotly plot containers ───────────────────────────────────────────────── */
.plot-wrap {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

/* ── Select inputs ────────────────────────────────────────────────────────── */
.selectize-input {
  border-radius: var(--radius-sm) !important;
  border-color: var(--border) !important;
  font-size: 0.875rem !important;
  box-shadow: none !important;
  font-family: 'Inter', sans-serif !important;
}

.selectize-input.focus {
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 3px rgba(77,182,172,0.15) !important;
}

.selectize-dropdown {
  font-size: 0.875rem !important;
  border-color: var(--border) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow-md) !important;
}

.selectize-dropdown .option:hover, .selectize-dropdown .option.active {
  background: rgba(77,182,172,0.1) !important;
  color: var(--navy) !important;
}

/* Slider */
.irs--shiny .irs-bar { background: var(--teal); border-top-color: var(--teal); border-bottom-color: var(--teal); }
.irs--shiny .irs-handle { background: white; border-color: var(--teal); }
.irs--shiny .irs-from, .irs--shiny .irs-to, .irs--shiny .irs-single { background: var(--navy); }

/* Action button */
.btn-analyze {
  background: var(--navy) !important;
  color: white !important;
  border: none !important;
  padding: 0.65rem 1.5rem !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  border-radius: var(--radius-md) !important;
  width: 100% !important;
  transition: var(--transition) !important;
  letter-spacing: 0.01em !important;
}

.btn-analyze:hover {
  background: var(--blue) !important;
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-1px);
}

.btn-download {
  background: white !important;
  color: var(--navy) !important;
  border: 1px solid var(--border) !important;
  padding: 0.45rem 1rem !important;
  font-weight: 500 !important;
  font-size: 0.85rem !important;
  border-radius: var(--radius-sm) !important;
  transition: var(--transition) !important;
}

.btn-download:hover {
  background: var(--light) !important;
  border-color: var(--navy) !important;
}

/* ── Number inputs ────────────────────────────────────────────────────────── */
.form-control {
  border-radius: var(--radius-sm) !important;
  border-color: var(--border) !important;
  font-size: 0.875rem !important;
  font-family: 'Inter', sans-serif !important;
}

.form-control:focus {
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 3px rgba(77,182,172,0.15) !important;
}

/* ── Section heading ──────────────────────────────────────────────────────── */
.section-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-heading::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.app-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 1.75rem 2rem;
  margin-top: 2rem;
  font-size: 0.8rem;
  line-height: 1.6;
}

.app-footer a { color: var(--teal); text-decoration: none; }
.app-footer a:hover { text-decoration: underline; }

.app-footer .footer-brand {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.app-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.25rem;
}

.app-footer .footer-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 1rem 0;
}

.app-footer .footer-bottom {
  font-size: 0.75rem;
  opacity: 0.5;
}

/* ── Recalculating spinner ────────────────────────────────────────────────── */
.recalculating { opacity: 0.35; transition: opacity 0.2s; }

/* ── Conditional visibility ───────────────────────────────────────────────── */
.results-placeholder {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
  font-size: 0.9rem;
}

.results-placeholder .rp-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}

/* ── Sector legend chip ───────────────────────────────────────────────────── */
.sector-chip {
  display: inline-block;
  background: rgba(46,125,159,0.1);
  color: var(--blue);
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .factor-compare-row { grid-template-columns: 1fr; }
  .app-footer .footer-grid { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 768px) {
  .hero-banner { padding: 1.5rem; border-radius: var(--radius-md); }
  .hero-banner h2 { font-size: 1.3rem; }
  .stat-cards-row { grid-template-columns: repeat(2, 1fr); }
  .factor-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .navbar-brand span:not(.brand-icon) { display: none; }
  .about-section { padding: 1.25rem; }
  .author-card { flex-direction: column; }
}

@media (max-width: 480px) {
  .stat-cards-row { grid-template-columns: repeat(2, 1fr); }
  .hero-banner .hero-subtitle { display: none; }
}
