/* BI demo dashboards — lightweight, matches Matchfoot tokens */
:root {
  --navy-900: #0e161d;
  --navy-800: #16212b;
  --cobalt-600: #0f4ccf;
  --cobalt-500: #1a5fe6;
  --flame-500: #e8791c;
  --ink: #14212b;
  --muted: #5b7186;
  --line: #e4e9ee;
  --surface: #fff;
  --surface-muted: #f5f7f9;
  --font: 'Inter', system-ui, sans-serif;
  --display: 'Space Grotesk', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--surface-muted); line-height: 1.5; }
a { color: var(--cobalt-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.demo-top {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-900));
  color: #fff;
  padding: 1.25rem 1.5rem 1.5rem;
}
.demo-top .crumb { font-size: 0.8rem; opacity: 0.7; margin-bottom: 0.5rem; }
.demo-top .crumb a { color: #fff; }
.demo-top h1 { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.02em; }
.demo-top p { opacity: 0.8; max-width: 62ch; margin-top: 0.4rem; font-size: 0.95rem; }
.badge {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(232,121,28,0.2);
  color: #ffb877;
  border: 1px solid rgba(232,121,28,0.35);
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 1.25rem 1.25rem 3rem; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; margin: -0.5rem 0 1.25rem; }
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow: 0 1px 2px rgba(20,33,43,0.04);
}
.kpi .label { font-size: 0.75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.kpi .value { font-family: var(--display); font-size: 1.75rem; font-weight: 700; margin-top: 0.2rem; color: var(--cobalt-600); }
.kpi .hint { font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }

.grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0.85rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem 1.15rem;
}
.card h2 { font-family: var(--display); font-size: 1rem; margin-bottom: 0.75rem; }
.chart-box { position: relative; height: 240px; }
.chart-box.sm { height: 200px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.sev { font-weight: 600; font-size: 0.75rem; text-transform: uppercase; }
.sev.critical { color: #b42318; }
.sev.high { color: #b54708; }
.sev.medium { color: #0f4ccf; }

.note {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}
.note strong { color: var(--ink); }
.note code { font-size: 0.82em; background: var(--surface-muted); padding: 0.1em 0.35em; border-radius: 4px; }

@media (max-width: 800px) {
  .kpis, .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .kpis, .grid { grid-template-columns: 1fr; }
}
