/* MailCraft status page: self-contained (served from its own origin under a strict CSP,
 * so it cannot rely on the marketing site's stylesheet). Tokens copy website/assets/style.css. */

:root {
  /* Navy */
  --navy-50:  #f3f5fb;
  --navy-100: #e4e9f5;
  --navy-200: #c5d0ea;
  --navy-300: #95abda;
  --navy-500: #3e5dae;
  --navy-700: #263878;
  --navy-800: #1e2e62;
  --navy-850: #18254a;
  --navy-900: #152050;
  --navy-950: #0d1430;

  /* Ocean — accent */
  --ocean-300: #7dd3fc;
  --ocean-400: #38bdf8;
  --ocean-500: #0ea5e9;
  --ocean-600: #0284c7;

  /* On-light text */
  --text-head: #0f172a;
  --text-body: #334155;
  --text-meta: #475569;

  --white: #ffffff;

  --font-display: system-ui, sans-serif;
  --font-body: system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1120px;
}


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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--navy-900);
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}


a { color: var(--ocean-400); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--ocean-400); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
h1, h2 { font-family: var(--font-display); letter-spacing: -0.025em; }

.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-900);
  border-bottom: 1px solid var(--navy-800);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--ocean-500);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 16px; height: 16px; }
.brand-name {
  font-family: var(--font-display); font-weight: 600;
  color: var(--white); font-size: 18px;
}
.nav-links { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); }
.nav-links a {
  color: var(--navy-300); font-weight: 500;
  font-size: clamp(13px, 1.2vw, 14px);
}
.nav-links a:hover { color: var(--white); text-decoration: none; }
@media (max-width: 720px) {
  .nav-inner { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 8px 18px; }
  .nav-links { flex-wrap: wrap; gap: 14px; }
}


.hero { background: var(--navy-900); padding: clamp(40px, 6vw, 64px) 0; }

h1 {
  font-size: clamp(34px, 5.4vw, 54px); line-height: 1.08;
  font-weight: 700; color: var(--white);
  margin: 0 0 20px; text-wrap: balance;
}
h1 .accent { color: var(--ocean-400); }
.lede {
  color: var(--navy-300); font-size: clamp(16px, 1.9vw, 19px);
  max-width: 56ch; margin: 0 0 32px;
}

.foot { background: var(--navy-950); padding: 40px 0; }
.foot-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--navy-500);
}
.foot-inner a { color: var(--navy-300); }


.foot-legal {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--navy-800);
  font-size: 12.5px; color: var(--navy-500);
}
.foot-legal a { color: var(--navy-300); }
.foot-legal a:hover { color: var(--white); text-decoration: none; }


.footnote { font-size: 13px; line-height: 1.6; margin: 24px 0 0; max-width: 68ch; color: var(--text-meta); }
.band { background: var(--navy-50); padding: clamp(40px, 6vw, 64px) 0; }

/* ---------- status page ---------- */
.status-overall {
  margin: 0 0 28px; padding: 16px 20px; border-radius: 12px;
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  background: var(--white); color: var(--text-head);
  border: 1px solid var(--navy-200); border-left-width: 6px;
}
.status-overall[data-state="up"]          { border-left-color: #15803d; }
.status-overall[data-state="degraded"]    { border-left-color: #b45309; }
.status-overall[data-state="down"]        { border-left-color: #b91c1c; }
.status-overall[data-state="unknown"],
.status-overall[data-state="unavailable"],
.status-overall[data-state="checking"]    { border-left-color: #64748b; }
.status-list { display: grid; gap: 18px; }
.status-comp { background: var(--white); border: 1px solid var(--navy-200); border-radius: 14px; padding: 18px 20px; }
.status-comp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.status-comp-name { font-size: 18px; margin: 0; color: var(--text-head); }
.status-pill { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status-pill.status-up       { background: #dcfce7; color: #14532d; }
.status-pill.status-degraded { background: #fef3c7; color: #78350f; }
.status-pill.status-down     { background: #fee2e2; color: #7f1d1d; }
.status-pill.status-unknown  { background: #e2e8f0; color: #334155; }
.status-strip { display: flex; gap: 2px; height: 34px; }
.status-strip:focus-visible { outline-color: var(--navy-700); }
.status-bar { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: #cbd5e1; }
.status-bar-up       { background: #16a34a; }
.status-bar-degraded { background: #d97706; }
.status-bar-down     { background: #dc2626; }
.status-bar-none     { background: #cbd5e1; }
