:root {
  --brand-blue: #2196f3;
  --brand-blue-dark: #104378;
  --brand-pink: #ff4d7a;
  --brand-green: #5bb73b;
  --page: #f4f8fd;
  --surface: #ffffff;
  --surface-soft: #f7fbff;
  --text: #12385f;
  --muted: #5f7187;
  --border: #d9e5f0;
  --operational: #18a957;
  --monitoring: #2563eb;
  --degraded: #d97706;
  --outage: #dc2626;
  --shadow: 0 22px 55px rgba(16, 67, 120, .13);
  --content-width: 1120px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(33, 150, 243, .10) 0, rgba(244, 248, 253, 0) 390px),
    var(--page);
  font-family: Poppins, Arial, sans-serif;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(16, 67, 120, .13);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  width: min(var(--content-width), calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
}

.brand-lockup,
.footer-logo {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.brand-lockup img {
  display: block;
  width: 166px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 0;
  color: var(--brand-blue-dark);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a,
.site-actions a,
.footer-grid a,
.legal-links a {
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}

.site-nav a:hover,
.site-actions .text-link:hover,
.footer-grid a:hover,
.legal-links a:hover {
  color: var(--brand-blue);
}

.site-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  font-size: 12px;
  font-weight: 800;
}

.site-actions a {
  white-space: nowrap;
}

.text-link {
  color: var(--brand-blue-dark);
}

.demo-link,
.footer-cta,
.newsletter-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 15px;
  border-radius: 7px;
  background: var(--brand-pink);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(255, 77, 122, .20);
}

.demo-link:hover,
.footer-cta:hover,
.newsletter-card a:hover {
  color: #ffffff;
  background: #e63e6a;
  transform: translateY(-1px);
}

.status-shell {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 42px;
}

.status-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 28px;
  align-items: end;
  margin-bottom: 18px;
}

.brand-mark {
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin-top: 5px;
  color: var(--brand-blue-dark);
  font-size: 40px;
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  color: var(--brand-blue-dark);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

.status-header-copy {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: right;
}

.status-header-copy span {
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.status-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--border);
  border-left: 6px solid var(--monitoring);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(33, 150, 243, .11), rgba(255, 255, 255, 0) 48%),
    var(--surface);
  box-shadow: var(--shadow);
}

.status-hero.operational { border-left-color: var(--operational); }
.status-hero.monitoring { border-left-color: var(--monitoring); }
.status-hero.degraded_performance { border-left-color: var(--degraded); }
.status-hero.partial_outage { border-left-color: var(--outage); }

.status-label-row {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--brand-blue-dark);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--monitoring);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, .13);
  flex: 0 0 auto;
}

.status-dot.operational {
  background: var(--operational);
  box-shadow: 0 0 0 6px rgba(22, 163, 74, .13);
}

.status-dot.degraded_performance {
  background: var(--degraded);
  box-shadow: 0 0 0 6px rgba(217, 119, 6, .14);
}

.status-dot.partial_outage {
  background: var(--outage);
  box-shadow: 0 0 0 6px rgba(220, 38, 38, .14);
}

.status-copy p {
  max-width: 760px;
  margin-top: 10px;
  color: #48627d;
  font-size: 15px;
  line-height: 1.55;
}

.status-stamp {
  justify-self: end;
  min-height: 38px;
  padding: 10px 14px;
  border: 1px solid rgba(33, 150, 243, .20);
  border-radius: 999px;
  color: var(--brand-blue-dark);
  background: #f7fbff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.status-proof-strip article {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
}

.status-proof-strip > article > span {
  display: block;
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.status-proof-strip strong {
  display: block;
  margin-top: 5px;
  color: var(--brand-blue-dark);
  font-size: 21px;
  line-height: 1.2;
}

.status-proof-strip p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.components-section,
.notice-section,
.timeline-section {
  margin-top: 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 11px;
}

.section-heading span {
  color: var(--muted);
  font-size: 13px;
}

.component-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.component-card,
.notice-card,
.timeline-list {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.component-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 13px;
}

.component-card strong {
  display: block;
  color: var(--brand-blue-dark);
  font-size: 15px;
}

.component-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.component-status {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  min-width: 104px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.component-status.operational {
  color: #166534;
  background: #dcfce7;
}

.component-status.monitoring {
  color: #1e40af;
  background: #dbeafe;
}

.component-status.degraded_performance {
  color: #92400e;
  background: #fef3c7;
}

.component-status.partial_outage {
  color: #991b1b;
  background: #fee2e2;
}

.notice-card {
  padding: 18px;
}

.notice-card strong {
  display: block;
  color: var(--brand-blue-dark);
  font-size: 18px;
}

.notice-card p {
  margin-top: 8px;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}

.notice-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 13px;
  color: var(--muted);
  font-size: 12px;
}

.history-calendar {
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  gap: 3px;
  margin-bottom: 9px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.history-day {
  display: block;
  height: 22px;
  min-width: 0;
  border-radius: 4px;
  background: #dbeafe;
}

.history-day.operational {
  background: linear-gradient(180deg, #22c55e, #16a34a);
  box-shadow: inset 0 -1px 0 rgba(21, 128, 61, .35);
}

.history-day.monitoring {
  background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.history-day.degraded_performance {
  background: linear-gradient(180deg, #fbbf24, #d97706);
}

.history-day.partial_outage {
  background: linear-gradient(180deg, #f87171, #dc2626);
}

.timeline-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  overflow: hidden;
}

.timeline-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  position: relative;
  min-height: 54px;
  padding: 10px 16px 10px 0;
  border-top: 1px solid #e6edf5;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 17px;
  width: 2px;
  background: #e2e8f0;
}

.timeline-item:nth-child(1),
.timeline-item:nth-child(2) {
  border-top: 0;
}

.timeline-item:nth-child(odd) {
  border-right: 1px solid #e6edf5;
}

.timeline-item:first-child::before {
  top: 22px;
}

.timeline-marker {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  margin: 6px auto 0;
  border-radius: 999px;
  background: var(--monitoring);
  box-shadow: 0 0 0 5px #dbeafe;
}

.timeline-item.operational .timeline-marker {
  background: var(--operational);
  box-shadow: 0 0 0 5px #dcfce7;
}

.timeline-item.degraded_performance .timeline-marker {
  background: var(--degraded);
  box-shadow: 0 0 0 5px #fef3c7;
}

.timeline-item.partial_outage .timeline-marker {
  background: var(--outage);
  box-shadow: 0 0 0 5px #fee2e2;
}

.timeline-body {
  min-width: 0;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
}

.timeline-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.timeline-meta strong {
  color: var(--brand-blue-dark);
  font-size: 15px;
}

.timeline-body p {
  margin-top: 5px;
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}

.brand-footer {
  color: #dceafb;
  background: #0b3158;
}

.brand-footer-inner {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 28px;
}

.footer-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.footer-logo img {
  width: 190px;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  margin-top: 14px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}

.footer-intro p:not(.footer-tagline) {
  max-width: 650px;
  margin-top: 10px;
  color: #bcd0e6;
  font-size: 13px;
  line-height: 1.65;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(210px, .9fr);
  gap: 24px;
  margin-top: 34px;
}

.footer-grid section {
  min-width: 0;
}

.footer-grid h2 {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.25;
}

.footer-grid h3 {
  margin-top: 14px;
  color: #bcd0e6;
  font-size: 12px;
  line-height: 1.25;
}

.footer-grid a {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  color: #dceafb;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.footer-grid a::before {
  content: ">";
  margin-right: 7px;
  color: var(--brand-blue);
  font-weight: 800;
}

.newsletter-card {
  align-self: start;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
}

.newsletter-card p {
  margin-top: 9px;
  color: #bcd0e6;
  font-size: 12px;
  line-height: 1.5;
}

.newsletter-card a {
  width: fit-content;
  margin-top: 14px;
}

.newsletter-card a::before {
  content: "";
  margin: 0;
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.footer-bottom p {
  color: #bcd0e6;
  font-size: 12px;
  line-height: 1.45;
}

.legal-links,
.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.legal-links a {
  color: #dceafb;
  font-size: 12px;
  font-weight: 650;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

.social-links a:hover {
  border-color: var(--brand-blue);
  background: rgba(33, 150, 243, .18);
}

@media (max-width: 1040px) {
  .site-header-inner {
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: 13px 0;
  }

  .site-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow: hidden;
  }

  .site-actions {
    gap: 8px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .newsletter-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
  }

  .site-header-inner,
  .status-shell,
  .brand-footer-inner {
    width: min(100% - 24px, var(--content-width));
  }

  .site-header-inner,
  .status-header,
  .status-hero,
  .footer-intro,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }

  .site-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 8px;
    justify-content: stretch;
  }

  .site-actions .text-link,
  .demo-link {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 11px;
  }

  .site-actions .text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(33, 150, 243, .24);
    border-radius: 7px;
    background: #ffffff;
  }

  .status-header-copy {
    text-align: left;
  }

  h1 {
    font-size: 34px;
  }

  .status-label-row {
    font-size: 24px;
  }

  .status-stamp {
    justify-self: start;
    width: fit-content;
  }

  .status-proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    display: grid;
    gap: 4px;
  }

  .component-grid {
    grid-template-columns: 1fr;
  }

  .history-calendar {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }

  .timeline-list {
    grid-template-columns: 1fr;
  }

  .timeline-item:nth-child(2) {
    border-top: 1px solid #e6edf5;
  }

  .timeline-item:nth-child(odd) {
    border-right: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 420px) {
  .brand-lockup img {
    width: 148px;
  }

  .status-proof-strip {
    grid-template-columns: 1fr;
  }

  .demo-link {
    width: 100%;
  }
}

/* Incident reporting is distinct from measured service availability. */
.status-dot.no_incidents_reported { background: #42769a; }
.status-dot.unknown { background: #64748b; }
.component-status.no_incidents_reported { background: #edf4f8; color: #315a78; }
.component-status.unknown { background: #f1f5f9; color: #475569; }
.history-day.no_incidents_reported, .history-day.unknown { background: #cbd5e1; }
.history-explanation { color: #526579; font-size: .85rem; margin: 0 0 14px; }
.status-footer { max-width: 1200px; margin: 0 auto; padding: 24px; border-top: 1px solid #d7e1eb; color: #526579; font-size: .85rem; }
.status-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.status-footer a { color: #164c76; }
.component-card { min-width: 0; }
.component-status { white-space: normal; }
