@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@700;800&family=Manrope:wght@400;600;700&display=swap');

/* Fridaay design system tokens (see the Fridaay customer web app). */
:root{
  --fd-bg: #05070b;
  --fd-surface: #080d13;
  --fd-surface-medium: #101820;
  --fd-text: #f2f6f9;
  --fd-text-muted: #9fb3c1;
  --fd-text-subtle: #7a8fa0;
  --fd-cyan: #4fd3e8;
  --fd-cyan-bright: #5fd8ea;
  --fd-success: #6fd6a6;
  --fd-danger: #f2a7a7;
  --fd-border: #17242f;
  --fd-border-strong: #24384a;
  --fd-gradient-card: linear-gradient(150deg, #122a3d 0%, #0d1826 58%, #0a1019 100%);
  --fd-font-body: 'Manrope', Helvetica, Arial, sans-serif;
  --fd-font-display: 'Archivo', Helvetica, Arial, sans-serif;
}

*{ box-sizing: border-box; }
html, body{ margin: 0; }

body{
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px 16px;
  color: var(--fd-text);
  font-family: var(--fd-font-body);
  font-size: .9375rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(ellipse 110% 90% at 50% -20%, #132735 0%, #0a141d 45%, #05080c 100%);
}

.page{ width: min(100%, 556px); }

/* Masthead */
.masthead{ text-align: center; }
.brand{ display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img{ display: block; width: 160px; height: auto; }
.tag{
  padding: 3px 8px;
  border: 1px solid rgba(79,211,232,.4);
  border-radius: 999px;
  color: #d6f4fc;
  background: rgba(19,155,204,.1);
  font-family: var(--fd-font-display);
  font-size: .625rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1.2;
}
.masthead-site{
  margin: 22px 0 0;
  font-family: var(--fd-font-display);
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: #fff;
}
.masthead-site span{
  background: linear-gradient(100deg, #4fd3e8, #2f6fd0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.masthead-sub{
  margin: 10px 0 0;
  color: var(--fd-cyan);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Card */
.status-card{
  margin-top: 32px;
  background: var(--fd-gradient-card);
  border: 1px solid var(--fd-border-strong);
  border-radius: 14px;
  padding: 28px 30px 0;
  box-shadow: 0 1.625rem 3.125rem -1.875rem rgba(59,163,212,.6);
}
.status-card h1{
  margin: 0 0 6px;
  font-family: var(--fd-font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: #fff;
}
.lede{ margin: 0; color: var(--fd-text-muted); line-height: 1.7; }
.card-head{ display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

/* Health badge */
.badge{
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 6px;
  padding: 4px 8px;
  white-space: nowrap;
  font-family: var(--fd-font-display);
  font-size: .625rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 4px;
}
.badge-checking{ background: rgba(79,211,232,.12); color: var(--fd-cyan-bright); border-color: rgba(79,211,232,.3); }
.badge-online{ background: rgba(111,214,166,.12); color: var(--fd-success); border-color: rgba(111,214,166,.3); }
.badge-offline{ background: rgba(242,167,167,.12); color: var(--fd-danger); border-color: rgba(242,167,167,.3); }
.pulse{ width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-online .pulse{ animation: pulse 1.6s ease-out infinite; }
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(111,214,166,.45); }
  100%{ box-shadow: 0 0 0 7px rgba(111,214,166,0); }
}

/* Endpoints */
.endpoints{
  list-style: none;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--fd-border);
  display: grid;
  gap: 14px;
}
.label{
  display: block;
  margin-bottom: 5px;
  color: var(--fd-text-subtle);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.endpoints code{
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8125rem;
  color: var(--fd-cyan-bright);
  background: rgba(6,12,18,.78);
  border: 1px solid var(--fd-border-strong);
  border-radius: 6px;
  padding: 10px 12px;
  overflow-wrap: anywhere;
}

.card-foot{
  margin: 24px 0 0;
  padding: 18px 0 20px;
  border-top: 1px solid var(--fd-border);
  text-align: center;
  color: var(--fd-text-subtle);
  font-size: .8125rem;
}
.card-foot svg{ vertical-align: -2px; margin-right: 4px; }

@media (max-width: 576px){
  .status-card{ padding: 22px 18px 0; }
  .card-head{ flex-direction: column; gap: 4px; }
  .badge{ margin-top: 0; }
  .brand img{ width: 130px; }
}
@media (prefers-reduced-motion: reduce){ .pulse{ animation: none; } }
