/* ============================================================
   GoLiveIQ base layer
   Reset, typography, the faint grid, and shared primitives.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent-wash); color: var(--text-primary); }

a { color: inherit; text-decoration: none; }

/* ---- the faint engineering grid ------------------------------------ */
/* barely there dot grid; use .grid-bg on any surface that wants it */
.grid-bg {
  background-image:
    linear-gradient(var(--grid-dot) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-dot) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}

/* ---- typography ----------------------------------------------------- */
.display,
h1.display { font-family: var(--font-display); }

.hero-title {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.2vw, 2.375rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0;
}

.card-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 0;
}

.body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.lede {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin: 0;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.data-figure {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* an orange figure, used sparingly for the one number that matters */
.data-figure.accent { color: var(--accent); }

/* ---- buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease,
              color 0.18s ease, box-shadow 0.18s ease, transform 0.06s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(0.5px); }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-rest);
}
.btn-primary:hover { background: var(--accent-light); box-shadow: var(--shadow-hover); }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }

/* ---- cards ---------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-rest);
  padding: var(--space-6);
}
.card.pad-lg { padding: var(--space-7); }
.card.wash { background: var(--bg-cream); }

/* ---- status dots ---------------------------------------------------- */
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--status-idle);
  flex: none;
}
.dot.ok       { background: var(--status-ok); }
.dot.progress { background: var(--status-progress); }
.dot.blocked  { background: var(--status-blocked); }
.dot.idle     { background: var(--status-idle); }
/* waived with risk: hollow red ring */
.dot.waived {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--status-blocked);
}

/* a row of dots, like the Alloovium category rows */
.dot-row { display: inline-flex; gap: 6px; align-items: center; }

/* ---- small chips / pills ------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
}
.kbd {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  padding: 2px 6px;
  line-height: 1;
}

/* ---- utility -------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}
.stack > * + * { margin-top: var(--space-4); }
.muted { color: var(--text-tertiary); }
.accent-text { color: var(--accent); }
