/* PingBack — dark monochrome + lime */
:root {
  /* Warm near-black background stack */
  --bg-0: oklch(0.16 0.006 60);      /* body */
  --bg-1: oklch(0.19 0.007 60);      /* panels */
  --bg-2: oklch(0.22 0.008 60);      /* elevated cards */
  --bg-3: oklch(0.26 0.009 60);      /* hover / input */
  --bg-4: oklch(0.32 0.010 60);      /* borders-strong */

  --line: oklch(0.26 0.008 60 / 0.8);
  --line-soft: oklch(0.26 0.008 60 / 0.5);

  --fg-0: oklch(0.98 0.005 90);      /* primary text */
  --fg-1: oklch(0.82 0.008 80);      /* secondary */
  --fg-2: oklch(0.62 0.010 70);      /* tertiary / labels */
  --fg-3: oklch(0.46 0.010 70);      /* quaternary / muted */

  /* Hot accent — lime */
  --accent: oklch(0.92 0.21 120);
  --accent-ink: oklch(0.22 0.08 120);
  --accent-dim: oklch(0.62 0.16 120);
  --accent-wash: oklch(0.92 0.21 120 / 0.12);
  --accent-line: oklch(0.92 0.21 120 / 0.32);

  /* Status */
  --up: oklch(0.92 0.21 120);
  --down: oklch(0.70 0.19 25);
  --degraded: oklch(0.82 0.16 75);
  --paused: oklch(0.62 0.010 70);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-1: 0 1px 0 oklch(1 0 0 / 0.03) inset, 0 1px 2px oklch(0 0 0 / 0.4);
  --shadow-2: 0 1px 0 oklch(1 0 0 / 0.04) inset, 0 8px 24px -12px oklch(0 0 0 / 0.6);

  --ff-sans: 'Geist', ui-sans-serif, -apple-system, system-ui, sans-serif;
  --ff-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--fg-0);
  font-family: var(--ff-sans);
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 15px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; color: inherit; }

/* App shell */
.app {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}

/* ---------- SIDEBAR ---------- */
.sidebar {
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  background: var(--bg-0);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px 18px;
}
.brand-svg { display: block; }
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--accent);
  position: relative;
  display: grid; place-items: center;
}
.brand-mark::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent-ink);
}
.brand-mark::after {
  content: ""; position: absolute; inset: -6px;
  border-radius: 14px; border: 1.5px solid var(--accent-line);
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
.brand-name {
  font-weight: 600; letter-spacing: -0.01em; font-size: 16px;
}

.nav-section {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--fg-3); padding: 14px 10px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--fg-1);
  font-size: 14px;
  font-weight: 450;
  transition: background 120ms, color 120ms;
}
.nav-item:hover { background: var(--bg-1); color: var(--fg-0); }
.nav-item.active {
  background: var(--bg-2);
  color: var(--fg-0);
}
.nav-item.active .nav-dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.nav-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--fg-3);
  flex-shrink: 0;
  margin-left: 2px;
}
.nav-icon {
  width: 18px; height: 18px; flex-shrink: 0;
  color: var(--fg-2);
}
.nav-item.active .nav-icon { color: var(--fg-0); }
.nav-badge {
  margin-left: auto;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--fg-2);
}

.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
  display: flex; align-items: center; gap: 10px;
}
.avatar {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-4));
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600;
  color: var(--fg-0);
}
.user-meta { line-height: 1.2; }
.user-meta .name { font-size: 13px; font-weight: 500; }
.user-meta .plan { font-size: 11px; color: var(--fg-3); font-family: var(--ff-mono); }

/* ---------- MAIN ---------- */
.main { min-width: 0; }

.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 36px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  background: oklch(0.16 0.006 60 / 0.85);
  backdrop-filter: blur(12px);
}
.crumbs { color: var(--fg-2); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.crumbs .sep { color: var(--fg-3); }
.crumbs .cur { color: var(--fg-0); }

.topbar .search {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  color: var(--fg-2);
  min-width: 260px;
}
.topbar .kbd {
  font-family: var(--ff-mono); font-size: 10px;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--bg-3);
  color: var(--fg-2);
  margin-left: auto;
}

.page {
  padding: 32px 36px 80px;
  max-width: 1280px;
}
.page.wide { max-width: none; }

h1.page-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.page-sub { color: var(--fg-2); font-size: 14px; margin-bottom: 28px; }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 24px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  color: var(--fg-0);
  font-size: 13px;
  font-weight: 500;
  transition: background 120ms, border-color 120ms, transform 80ms;
}
.btn:hover { background: var(--bg-2); }
.btn:active { transform: translateY(0.5px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 600;
}
.btn-primary:hover { background: var(--accent); filter: brightness(1.05); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--fg-1); }
.btn-ghost:hover { background: var(--bg-1); color: var(--fg-0); }
.btn-icon { padding: 9px; }
.btn-lg { padding: 13px 20px; font-size: 14px; border-radius: 12px; }

/* ---------- CARDS / SURFACES ---------- */
.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card.elev {
  background: var(--bg-2);
  box-shadow: var(--shadow-2);
}
.card-title {
  font-size: 13px; font-weight: 500; color: var(--fg-2);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.card-value {
  font-size: 32px; font-weight: 600; letter-spacing: -0.02em;
  font-family: var(--ff-mono);
}

/* ---------- STATUS HERO ---------- */
.status-hero {
  position: relative; overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 32px;
  margin-bottom: 28px;
}
@media (max-width: 1180px) {
  .status-hero { grid-template-columns: 1fr; gap: 24px; }
}
.status-hero.all-up::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 10% 0%, var(--accent-wash), transparent 50%);
  pointer-events: none;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  font-size: 12px; font-weight: 500;
  color: var(--accent);
  font-family: var(--ff-mono);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.status-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.status-hero h2 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 14px 0 8px;
  line-height: 1.1;
  max-width: 18ch;
}
.status-hero p {
  color: var(--fg-2);
  margin: 0 0 18px;
  max-width: 46ch;
}
.status-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
  margin-top: 4px;
}
.status-stats .s-label { font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.08em; }
.status-stats .s-value { font-family: var(--ff-mono); font-size: 20px; margin-top: 2px; letter-spacing: -0.01em; }

.heatmap {
  display: grid;
  grid-template-columns: repeat(90, 1fr);
  gap: 2px;
  border-radius: 12px;
  padding: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  align-content: center;
  min-height: 80px;
}
.heatmap .cell {
  height: 52px;
  border-radius: 2px;
  background: var(--accent);
}
.heatmap .cell.dim { background: oklch(0.92 0.21 120 / 0.55); }
.heatmap .cell.dim2 { background: oklch(0.92 0.21 120 / 0.28); }
.heatmap .cell.down { background: var(--down); }
.heatmap .cell.deg { background: var(--degraded); }
.heatmap-head {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--fg-3); font-family: var(--ff-mono);
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em;
}
.heatmap-wrap { display: flex; flex-direction: column; justify-content: center; }

/* ---------- MONITOR LIST ---------- */
.list-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.list-head h3 {
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 0;
}
.list-head .count {
  color: var(--fg-3); font-family: var(--ff-mono); font-size: 13px;
}
.filters { margin-left: auto; display: flex; gap: 6px; }
.chip {
  padding: 6px 11px;
  font-size: 12px;
  border-radius: 8px;
  color: var(--fg-2);
  background: transparent;
  border: 1px solid transparent;
}
.chip:hover { background: var(--bg-1); color: var(--fg-0); }
.chip.active {
  background: var(--bg-2);
  color: var(--fg-0);
  border-color: var(--line);
}
.chip .num { font-family: var(--ff-mono); color: var(--fg-3); margin-left: 6px; }
.chip.active .num { color: var(--accent); }

.monitors {
  display: flex; flex-direction: column;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.mrow {
  display: grid;
  grid-template-columns: 28px 1.6fr 2fr 0.8fr 0.8fr 0.6fr 28px;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background 100ms;
}
.mrow:last-child { border-bottom: 0; }
.mrow:hover { background: var(--bg-2); }
.mrow.head {
  cursor: default;
  padding-top: 12px; padding-bottom: 12px;
  background: var(--bg-0);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
}
.mrow.head:hover { background: var(--bg-0); }

.m-indicator {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 4px var(--accent-wash);
  position: relative;
}
.m-indicator.down { background: var(--down); box-shadow: 0 0 0 4px oklch(0.70 0.19 25 / 0.15); }
.m-indicator.deg { background: var(--degraded); box-shadow: 0 0 0 4px oklch(0.82 0.16 75 / 0.15); }
.m-indicator.paused { background: var(--paused); box-shadow: none; }

.m-name { font-weight: 500; font-size: 15px; letter-spacing: -0.005em; }
.m-url { color: var(--fg-3); font-size: 12px; font-family: var(--ff-mono); margin-top: 2px; }

.spark {
  height: 28px;
  width: 100%;
  display: block;
}

.m-metric { font-family: var(--ff-mono); font-size: 14px; text-align: right; }
.m-metric .unit { color: var(--fg-3); font-size: 11px; margin-left: 2px; }
.m-metric .bad { color: var(--down); }

.caret { color: var(--fg-3); }

/* ---------- MONITOR DETAIL ---------- */
.detail-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; margin-bottom: 24px;
}
.detail-title {
  display: flex; align-items: center; gap: 14px;
}
.detail-title h1 {
  margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -0.02em;
}
.tag {
  padding: 3px 8px;
  font-size: 11px;
  font-family: var(--ff-mono);
  text-transform: uppercase; letter-spacing: 0.06em;
  border-radius: 6px;
  background: var(--bg-2); color: var(--fg-2);
  border: 1px solid var(--line-soft);
}
.tag.up { background: var(--accent-wash); color: var(--accent); border-color: var(--accent-line); }
.tag.down { background: oklch(0.70 0.19 25 / 0.12); color: var(--down); border-color: oklch(0.70 0.19 25 / 0.3); }

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.kpi {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.kpi .k-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-3); }
.kpi .k-value { font-family: var(--ff-mono); font-size: 26px; letter-spacing: -0.02em; margin-top: 6px; }
.kpi .k-delta { font-size: 12px; color: var(--fg-2); margin-top: 4px; font-family: var(--ff-mono); }
.kpi .k-delta.up-d { color: var(--accent); }
.kpi .k-delta.down-d { color: var(--down); }

.chart-card { padding: 24px; }
.chart-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.chart-head h3 { margin: 0; font-size: 15px; font-weight: 500; }
.chart-range {
  display: flex; gap: 2px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 2px;
}
.chart-range button {
  padding: 5px 10px;
  font-size: 11px;
  font-family: var(--ff-mono);
  background: transparent;
  border: 0;
  color: var(--fg-2);
  border-radius: 6px;
}
.chart-range button.active { background: var(--bg-3); color: var(--fg-0); }

.two-col {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.incident-list { display: flex; flex-direction: column; gap: 2px; }
.incident {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.incident:last-child { border-bottom: 0; }
.incident-dot {
  width: 8px; height: 8px; border-radius: 50%;
  margin-top: 7px;
  background: var(--down);
  flex-shrink: 0;
}
.incident-dot.resolved { background: var(--accent); }
.incident-main { flex: 1; min-width: 0; }
.incident-title { font-size: 14px; font-weight: 500; }
.incident-meta { font-size: 12px; color: var(--fg-3); font-family: var(--ff-mono); margin-top: 3px; }
.incident-dur { font-family: var(--ff-mono); font-size: 12px; color: var(--fg-2); }

/* ---------- FORMS ---------- */
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 12px; color: var(--fg-2);
  font-weight: 500; margin-bottom: 7px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.field label .hint { color: var(--fg-3); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 12px; margin-left: 6px; }
.input, .select, textarea.input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--fg-0);
  font-size: 14px;
  outline: none;
  transition: border-color 120ms, background 120ms;
}
.input:focus { border-color: var(--accent-line); background: var(--bg-3); }
.input::placeholder { color: var(--fg-3); }

.seg {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 2px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
}
.seg button {
  padding: 8px 14px;
  font-size: 13px;
  background: transparent;
  border: 0;
  color: var(--fg-2);
  border-radius: 7px;
  font-family: var(--ff-mono);
}
.seg button.active { background: var(--bg-3); color: var(--fg-0); }

.switch {
  --w: 34px; --h: 20px;
  width: var(--w); height: var(--h);
  background: var(--bg-3);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 150ms;
}
.switch::after {
  content: "";
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: var(--fg-1);
  border-radius: 50%;
  transition: left 150ms;
}
.switch.on { background: var(--accent); }
.switch.on::after { left: 16px; background: var(--accent-ink); }

/* ---------- TWEAKS PANEL ---------- */
.tweaks-panel {
  position: fixed; right: 20px; bottom: 20px;
  width: 300px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-2);
  z-index: 100;
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h4 { margin: 0 0 14px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); }
.tweaks-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 13px; }
.swatches { display: flex; gap: 6px; }
.swatches button {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}
.swatches button.active { border-color: var(--fg-0); }

/* ---------- EMPTY / LOGIN ---------- */
.centerpage {
  display: grid; place-items: center;
  min-height: calc(100vh - 80px);
  padding: 40px;
}
.card-center {
  width: 100%; max-width: 420px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* ---------- UTILITIES ---------- */
.row { display: flex; gap: 12px; align-items: center; }
.grow { flex: 1; }
.sep { height: 1px; background: var(--line-soft); margin: 22px 0; }
.muted { color: var(--fg-3); }
.mono { font-family: var(--ff-mono); }
.small { font-size: 12px; }
.tnum { font-variant-numeric: tabular-nums; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* landing */
.landing {
  padding: 0;
  max-width: none;
}
.landing-nav {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 48px;
  border-bottom: 1px solid var(--line-soft);
}
.landing-nav .brand { padding: 0; }
.landing-nav .spacer { flex: 1; }
.landing-nav a { color: var(--fg-2); font-size: 14px; }
.landing-nav a:hover { color: var(--fg-0); }

.hero {
  padding: 80px 48px 100px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  font-size: 12px; color: var(--fg-2); font-family: var(--ff-mono);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 28px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.hero h1 {
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p.lead {
  font-size: 19px;
  color: var(--fg-2);
  max-width: 54ch;
  margin: 0 auto 36px;
  line-height: 1.5;
}
.hero-cta { display: flex; justify-content: center; gap: 10px; }
.hero-demo {
  margin: 80px auto 0;
  max-width: 1100px;
  padding: 0 24px;
}
.hero-demo-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-1);
  box-shadow: 0 40px 120px -30px oklch(0.92 0.21 120 / 0.18),
              0 20px 60px -20px oklch(0 0 0 / 0.6);
  position: relative;
}
.hero-demo-frame::before {
  content: ""; position: absolute; inset: -1px;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(180deg, var(--accent-line), transparent 40%);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-demo-bar {
  display: flex; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-0);
  align-items: center;
}
.hero-demo-bar .tls { display: flex; gap: 6px; }
.hero-demo-bar .tl { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-4); }
.hero-demo-bar .url {
  flex: 1; text-align: center;
  font-family: var(--ff-mono); font-size: 12px; color: var(--fg-3);
}

.features {
  padding: 80px 48px;
  max-width: 1100px;
  margin: 0 auto;
}
.features-head { text-align: center; margin-bottom: 48px; }
.features-head h2 {
  font-size: 40px; font-weight: 600; letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.features-head p { color: var(--fg-2); font-size: 16px; max-width: 52ch; margin: 0 auto; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.feature h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 16px 0 6px; }
.feature p { color: var(--fg-2); font-size: 14px; margin: 0; line-height: 1.55; }
.feature-ico {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  display: grid; place-items: center;
  color: var(--accent);
}

.cta-strip {
  margin: 40px 48px 80px;
  padding: 56px 48px;
  background:
    radial-gradient(circle at 80% 0%, var(--accent-wash), transparent 60%),
    var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  text-align: center;
}
.cta-strip h2 {
  font-size: 40px; letter-spacing: -0.025em; margin: 0 0 12px; font-weight: 600;
}
.cta-strip p { color: var(--fg-2); max-width: 50ch; margin: 0 auto 24px; }

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 28px 48px;
  display: flex; align-items: center; gap: 20px;
  color: var(--fg-3); font-size: 13px;
}
.footer .spacer { flex: 1; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: oklch(0.10 0.005 60 / 0.72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200;
  padding: 40px;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: 100%; max-width: 540px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 30px 80px -20px oklch(0 0 0 / 0.7);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-head h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.modal-steps { display: flex; gap: 6px; margin-bottom: 24px; }
.modal-step { height: 3px; flex: 1; background: var(--bg-3); border-radius: 2px; }
.modal-step.active { background: var(--accent); }

/* empty state */
.empty {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
}
.empty h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; margin: 16px 0 8px; }
.empty p { color: var(--fg-2); max-width: 44ch; margin: 0 auto 20px; }
.empty-icon {
  width: 56px; height: 56px;
  margin: 0 auto;
  border-radius: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--accent);
}

/* settings */
.settings-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
}
.settings-nav { display: flex; flex-direction: column; gap: 2px; }
.settings-nav .snav {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--fg-1);
  font-size: 14px;
}
.settings-nav .snav:hover { background: var(--bg-1); }
.settings-nav .snav.active { background: var(--bg-2); color: var(--fg-0); }

.section-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 14px; }
.section-sub { font-size: 13px; color: var(--fg-2); margin-bottom: 20px; }

.billing-plan {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px;
  margin-bottom: 24px;
}
.plan {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}
.plan.current {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, var(--accent-wash), transparent 40%), var(--bg-1);
}
.plan .price { font-family: var(--ff-mono); font-size: 28px; letter-spacing: -0.02em; margin: 8px 0 4px; }
.plan .price .unit { font-size: 13px; color: var(--fg-3); }
.plan ul { list-style: none; padding: 0; margin: 14px 0 0; font-size: 13px; color: var(--fg-1); }
.plan li { padding: 6px 0; display: flex; align-items: center; gap: 8px; }
.plan li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* audit log */
.audit-row {
  display: grid;
  grid-template-columns: 140px 1fr 120px 120px;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  align-items: center;
}
.audit-row:last-child { border-bottom: 0; }
.audit-row.head {
  font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--bg-0);
}
.audit-row .mono { color: var(--fg-2); }

/* ---------- Pingback server-rendered extras ---------- */

/* Bar chart (server-rendered response-time history) */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 160px;
  padding: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}
.bars .bar {
  flex: 1;
  min-width: 3px;
  max-width: 14px;
  border-radius: 2px 2px 0 0;
  background: var(--accent);
  transition: background 120ms, filter 120ms;
}
.bars .bar:hover { filter: brightness(1.15); }
.bars .bar.good { background: var(--accent); }
.bars .bar.warn { background: var(--degraded); }
.bars .bar.bad { background: var(--down); }
.bars .bar.none { background: var(--bg-3); opacity: 0.6; }

.bars-small { height: 40px; padding: 8px; }

/* Flash messages */
.flash {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--fg-1);
}
.flash.success {
  background: var(--accent-wash);
  border-color: var(--accent-line);
  color: var(--accent);
}
.flash.error {
  background: oklch(0.70 0.19 25 / 0.12);
  border-color: oklch(0.70 0.19 25 / 0.3);
  color: var(--down);
}
.flash.warn {
  background: oklch(0.82 0.16 75 / 0.12);
  border-color: oklch(0.82 0.16 75 / 0.3);
  color: var(--degraded);
}

/* Auth card (login/signup/error pages) */
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.auth-card h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 4px; text-align: center; }
.auth-card .auth-sub { color: var(--fg-2); font-size: 14px; text-align: center; margin-bottom: 24px; }
.auth-card .auth-foot { text-align: center; margin-top: 20px; font-size: 13px; color: var(--fg-2); }
.auth-card .auth-foot a { color: var(--accent); font-weight: 500; }
.auth-card .auth-brand { display: flex; justify-content: center; margin-bottom: 24px; }

.btn-full { width: 100%; justify-content: center; padding: 11px 14px; }
.btn-danger {
  background: oklch(0.70 0.19 25 / 0.10);
  border-color: oklch(0.70 0.19 25 / 0.28);
  color: var(--down);
  font-weight: 500;
}
.btn-danger:hover { background: oklch(0.70 0.19 25 / 0.18); }
.btn-warn {
  background: oklch(0.82 0.16 75 / 0.10);
  border-color: oklch(0.82 0.16 75 / 0.28);
  color: var(--degraded);
  font-weight: 500;
}
.btn-warn:hover { background: oklch(0.82 0.16 75 / 0.18); }

.danger-zone {
  background: oklch(0.70 0.19 25 / 0.04);
  border: 1px solid oklch(0.70 0.19 25 / 0.22);
  border-radius: var(--radius);
  padding: 22px;
}
.danger-zone h3 { color: var(--down); font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.danger-zone p { color: var(--fg-2); font-size: 13px; margin: 0 0 14px; }

/* Status code pill */
.status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 500;
  font-family: var(--ff-mono);
  text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--bg-2); color: var(--fg-2);
  border: 1px solid var(--line-soft);
}
.status-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--fg-3);
}
.status-badge.up   { background: var(--accent-wash); color: var(--accent); border-color: var(--accent-line); }
.status-badge.up   .dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.status-badge.down { background: oklch(0.70 0.19 25 / 0.12); color: var(--down); border-color: oklch(0.70 0.19 25 / 0.3); }
.status-badge.down .dot { background: var(--down); }
.status-badge.error,
.status-badge.degraded { background: oklch(0.82 0.16 75 / 0.12); color: var(--degraded); border-color: oklch(0.82 0.16 75 / 0.3); }
.status-badge.error .dot,
.status-badge.degraded .dot { background: var(--degraded); }

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table thead th {
  text-align: left;
  padding: 12px 20px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-0);
}
.table tbody td {
  padding: 14px 20px;
  color: var(--fg-1);
  border-bottom: 1px solid var(--line-soft);
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--bg-2); }
.table .mono { color: var(--fg-2); font-size: 12px; }

.card.flat { padding: 0; overflow: hidden; }

/* Hero inline demo status-pill dot glow */
.heatmap-compact { grid-template-columns: repeat(60, 1fr); }

/* a11y: visible focus rings */
a:focus-visible,
button:focus-visible,
.input:focus-visible,
.select:focus-visible,
.switch:focus-visible,
textarea.input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Remove focus ring on mouse click, keep on keyboard */
:focus:not(:focus-visible) { outline: none; }

/* Responsive sidebar — collapse below 900px */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    z-index: 50;
    top: 0; left: 0;
    width: 248px;
    transform: translateX(-100%);
    transition: transform 180ms ease;
    background: var(--bg-1);
    border-right: 1px solid var(--line);
  }
  .sidebar.open { transform: translateX(0); }
  .topbar .menu-btn { display: inline-flex; }
  .topbar .search { display: none; }
  .page { padding: 20px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .billing-plan { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .mrow { grid-template-columns: 22px 1fr 0.7fr 22px; }
  .mrow .spark-cell,
  .mrow .p95-cell,
  .mrow .every-cell { display: none; }
  .mrow.head .spark-cell,
  .mrow.head .p95-cell,
  .mrow.head .every-cell { display: none; }
  .status-hero { padding: 20px; }
  .status-hero h2 { font-size: 28px; }
  .hero { padding: 60px 24px 60px; }
  .landing-nav { padding: 18px 24px; flex-wrap: wrap; gap: 10px; }
  .cta-strip { padding: 40px 24px; margin: 24px; }
  .features { padding: 60px 24px; }
  .footer { padding: 22px 24px; flex-wrap: wrap; gap: 10px; }
}

.menu-btn { display: none; background: transparent; border: 0; color: var(--fg-1); padding: 6px; border-radius: 8px; }
.menu-btn:hover { background: var(--bg-2); }

/* monitor bar colors using latency thresholds */
.latency-good { color: var(--accent); }
.latency-warn { color: var(--degraded); }
.latency-bad  { color: var(--down); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .brand-mark::after { animation: none !important; opacity: 0; }
}
