/* Wren & Cue status page. Brand palette from the landing page brief. */
:root {
  --midnight: #1b1f3b;
  --cobalt: #274dea;
  --sky: #8eb9fc;
  --coral: #ff513d;
  --coral-text: #c0321f;
  --butter: #fff197;
  --mint: #ebffdc;
  --paper: #fafaf7;
  --muted: #4a4f6a;
  --helper: #5b6078;
  --line: #e6e7ee;
  --up: #3fb26b;
  --degraded: #f2b233;
  --down: #ff513d;
  --none: #dadce5;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--midnight);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--cobalt); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 24px; }

.top { padding: 20px 0; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { height: 40px; width: auto; display: block; }
.pill-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1.5px solid var(--midnight); border-radius: 999px; color: var(--midnight);
  text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap;
}
.pill-link:hover { background: var(--midnight); color: #fff; }

.demo-note {
  margin: 8px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--butter);
  font-size: 14px; font-weight: 500;
}

.banner {
  margin: 24px 0; padding: 22px 24px; border-radius: 20px; display: flex; align-items: center; gap: 14px;
  font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: #fff; background: var(--up);
}
.banner-dot { width: 14px; height: 14px; border-radius: 50%; background: #fff; flex: none; }
.banner-loading { background: var(--muted); }
.banner-degraded { background: #b7770b; }
.banner-down { background: var(--coral-text); }

.card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 8px 0; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 16px 24px 8px; }
.card-head h2 { margin: 0; font-size: 18px; }
.legend { margin: 0; font-size: 13px; color: var(--helper); }

.components { list-style: none; margin: 0; padding: 0; }
.component { padding: 18px 24px; border-top: 1px solid var(--line); }
.component-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.component-name { font-weight: 600; }
.component-desc { margin: 2px 0 0; font-size: 14px; color: var(--helper); }
.state { font-size: 14px; font-weight: 600; white-space: nowrap; }
.state-up { color: #1f7a45; }
.state-degraded { color: #8a5a06; }
.state-down { color: var(--coral-text); }
.state-unknown { color: var(--helper); }

.bars { display: flex; gap: 2px; height: 34px; margin-top: 14px; }
.bar { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: var(--none); cursor: default; }
.bar.up { background: var(--up); }
.bar.degraded { background: var(--degraded); }
.bar.down { background: var(--down); }
.bar:hover, .bar:focus-visible { opacity: 0.75; }
.bars-scale { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; font-size: 13px; color: var(--helper); }
.bars-scale .rule { flex: 1; height: 1px; background: var(--line); }

.incidents { margin: 48px 0 24px; }
.incidents > h2 { font-size: 22px; letter-spacing: -0.02em; margin: 0 0 8px; }
.incident-day { padding: 18px 0; border-bottom: 1px solid var(--line); }
.incident-day h3 { margin: 0 0 6px; font-size: 16px; }
.incident-none { margin: 0; color: var(--helper); font-size: 15px; }
.incident { margin: 10px 0 0; }
.incident-title { font-weight: 700; font-size: 16px; margin: 0; }
.incident-title.minor { color: #8a5a06; }
.incident-title.major { color: var(--coral-text); }
.incident-title.maintenance { color: var(--cobalt); }
.update { margin: 6px 0 0; font-size: 15px; }
.update strong { text-transform: capitalize; }
.update time { display: block; font-size: 13px; color: var(--helper); }

.footer { padding-top: 16px; padding-bottom: 56px; font-size: 14px; }
.footer p { margin: 4px 0; }
.muted { color: var(--helper); }

.tooltip {
  position: fixed; z-index: 10; max-width: 240px; padding: 10px 12px; border-radius: 12px;
  background: var(--midnight); color: #fff; font-size: 13px; line-height: 1.4; pointer-events: none;
  box-shadow: 0 10px 24px rgba(27, 31, 59, 0.2);
}
.tooltip strong { display: block; }

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .banner { font-size: 18px; padding: 18px 18px; }
  .component, .card-head { padding-left: 16px; padding-right: 16px; }
  .bars { gap: 1px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
