/* DekkoSecure status page. Theme lifted from dekkosecure.com (dekkocore-website/app/globals.css):
   dark by default, PP Mori for text, JetBrains Mono for eyebrows, "signal" blue running into DEMS purple. */

@font-face {
  font-family: 'PP Mori';
  src: url('/fonts/PPMori-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'PP Mori';
  src: url('/fonts/PPMori-Semibold.otf') format('opentype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink-950: 13 21 48;
  --ink-900: 18 27 58;
  --ink-850: 23 33 68;
  --ink-800: 28 40 78;
  --ink-700: 37 50 92;
  --ink-600: 50 63 110;
  --fog-100: 243 246 252;
  --fog-200: 213 220 236;
  --fog-300: 174 184 209;
  --fog-400: 133 145 179;
  --white: 255 255 255;
  --line: 255 255 255;
  --signal: 99 144 246;
  --signal-to: 161 124 246;
  --ok: 52 211 153;
  --warn: 251 191 36;
  --bad: 248 113 113;
  --critical: 244 63 94;
  --sans: 'PP Mori', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
:root[data-theme='light'] {
  color-scheme: light;
  --ink-950: 248 249 252;
  --ink-900: 239 242 249;
  --ink-850: 255 255 255;
  --ink-800: 232 236 246;
  --ink-700: 219 225 239;
  --ink-600: 199 207 227;
  --fog-100: 26 34 62;
  --fog-200: 48 58 92;
  --fog-300: 78 90 124;
  --fog-400: 108 119 151;
  --white: 13 21 48;
  --line: 13 21 48;
  --signal: 52 110 236;
  --signal-to: 128 84 230;
  --ok: 16 160 110;
  --warn: 200 140 0;
  --bad: 220 60 60;
  --critical: 200 30 70;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  margin: 0;
  background: rgb(var(--ink-950));
  color: rgb(var(--fog-100));
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
}
/* The soft glow behind the hero on the website. */
body::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 520px;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% -10%, rgb(var(--signal) / 0.22), transparent 70%),
    radial-gradient(40% 40% at 90% 0%, rgb(var(--signal-to) / 0.12), transparent 70%);
}
a {
  color: rgb(var(--signal));
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
b,
strong {
  font-weight: 600;
}
::selection {
  background: rgb(var(--signal));
  color: rgb(var(--ink-950));
}
:focus-visible {
  outline: 2px solid rgb(var(--signal));
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.wordmark {
  height: 20px;
  width: auto;
  display: block;
}
:root[data-theme='light'] .wordmark.dark-only,
.wordmark.light-only {
  display: none;
}
:root[data-theme='light'] .wordmark.light-only {
  display: block;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: rgb(var(--fog-300));
}
.top nav a {
  color: rgb(var(--fog-300));
}
.top nav a:hover {
  color: rgb(var(--white));
  text-decoration: none;
}
.theme {
  background: none;
  border: 1px solid rgb(var(--line) / 0.12);
  color: rgb(var(--fog-300));
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.theme:hover {
  color: rgb(var(--white));
  border-color: rgb(var(--line) / 0.25);
}
.theme svg {
  width: 16px;
  height: 16px;
}
:root[data-theme='light'] .theme .moon,
.theme .sun {
  display: none;
}
:root[data-theme='light'] .theme .sun {
  display: block;
}

/* Type */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgb(var(--fog-300));
  margin: 0 0 10px;
}
h1 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: 34px;
  margin: 0;
  color: rgb(var(--white));
}
h2 {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 20px;
  margin: 0 0 14px;
  color: rgb(var(--white));
}
h3 {
  font-weight: 600;
  font-size: 16px;
  margin: 0;
  color: rgb(var(--white));
}
.muted {
  color: rgb(var(--fog-400));
}
.small {
  font-size: 13px;
}
.mono {
  font-family: var(--mono);
}

/* Panels */
.panel {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgb(var(--line) / 0.1);
  background: rgb(var(--ink-850) / 0.8);
  backdrop-filter: blur(4px);
  padding: 22px 24px;
}
section {
  margin-top: 36px;
}
section.hero {
  margin-top: 24px;
}

/* Banner */
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px 28px;
  border-color: rgb(var(--status) / 0.35);
  background: linear-gradient(135deg, rgb(var(--status) / 0.14), rgb(var(--ink-850) / 0.8) 60%);
}
.banner .state {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgb(var(--status));
  box-shadow: 0 0 0 5px rgb(var(--status) / 0.18);
  flex: none;
}
.dot.pulse {
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgb(var(--status) / 0.18);
  }
  50% {
    box-shadow: 0 0 0 9px rgb(var(--status) / 0.08);
  }
}
.banner .meta {
  text-align: right;
  font-size: 13px;
  color: rgb(var(--fog-300));
}
.banner .meta .mono {
  color: rgb(var(--fog-200));
}

/* Status colours, used through --status */
.s-operational {
  --status: var(--ok);
}
.s-degraded {
  --status: var(--warn);
}
.s-partial_outage {
  --status: 251 146 60;
}
.s-major_outage {
  --status: var(--critical);
}
.s-maintenance {
  --status: var(--signal);
}
.s-unknown {
  --status: var(--fog-400);
}

/* Components */
.components {
  padding: 0;
  overflow: hidden;
}
.component {
  padding: 18px 24px;
  border-top: 1px solid rgb(var(--line) / 0.08);
}
.component:first-child {
  border-top: 0;
}
.component .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.component .name {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.component .desc {
  font-family: var(--mono);
  font-size: 12px;
  color: rgb(var(--fog-400));
}
.component .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgb(var(--status));
}
.component .status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(var(--status));
}
.bar {
  display: flex;
  gap: 3px;
  margin-top: 14px;
  height: 30px;
}
.bar i {
  flex: 1 1 0;
  border-radius: 2px;
  background: rgb(var(--line) / 0.1);
  min-width: 0;
  transition: transform 0.12s ease;
}
.bar i:hover {
  transform: scaleY(1.2);
}
.bar i.ok {
  background: rgb(var(--ok));
}
.bar i.warn {
  background: rgb(var(--warn));
}
.bar i.bad {
  background: rgb(var(--bad));
}
.bar i.today {
  outline: 1px solid rgb(var(--white) / 0.5);
  outline-offset: 1px;
}
.bar-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgb(var(--fog-400));
}
.legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 24px;
  border-top: 1px solid rgb(var(--line) / 0.08);
  font-size: 12px;
  color: rgb(var(--fog-400));
  background: rgb(var(--ink-900) / 0.5);
}
.legend span::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 7px;
  vertical-align: -1px;
  background: rgb(var(--line) / 0.12);
}
.legend .ok::before {
  background: rgb(var(--ok));
}
.legend .warn::before {
  background: rgb(var(--warn));
}
.legend .bad::before {
  background: rgb(var(--bad));
}

/* Incidents */
.incident {
  border-left: 3px solid rgb(var(--status));
  margin-bottom: 14px;
}
.incident .head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}
.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgb(var(--status) / 0.4);
  background: rgb(var(--status) / 0.08);
  color: rgb(var(--status));
}
/* An open incident or maintenance under the product it affects */
.component-alerts {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.incident.nested {
  border: 1px solid rgb(var(--status) / 0.3);
  border-left: 3px solid rgb(var(--status));
  background: rgb(var(--status) / 0.06);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 0;
}
.incident.nested h3 {
  font-size: 15px;
}
.incident.nested .updates {
  margin-top: 8px;
}
.incident.nested .updates li {
  padding: 8px 0;
}
.affects {
  margin-top: 6px;
  font-size: 13px;
  color: rgb(var(--fog-300));
}
.updates {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.updates li {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid rgb(var(--line) / 0.07);
}
.updates .when {
  font-family: var(--mono);
  font-size: 11px;
  color: rgb(var(--fog-400));
  padding-top: 3px;
  line-height: 1.5;
}
.updates .status-word {
  font-weight: 600;
  color: rgb(var(--white));
}
.updates .body {
  white-space: pre-line;
  color: rgb(var(--fog-200));
}
.day-group {
  margin-top: 18px;
}
.day-group .day {
  font-family: var(--mono);
  font-size: 12px;
  color: rgb(var(--fog-400));
  padding-bottom: 8px;
  border-bottom: 1px solid rgb(var(--line) / 0.08);
  margin-bottom: 12px;
}
.empty {
  color: rgb(var(--fog-400));
}
details.incident summary {
  cursor: pointer;
  list-style: none;
}
details.incident summary::-webkit-details-marker {
  display: none;
}
details.incident summary h3::after {
  content: '›';
  color: rgb(var(--fog-400));
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.15s;
}
details.incident[open] summary h3::after {
  transform: rotate(90deg);
}

/* Subscribe */
.subscribe {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.subscribe p {
  margin: 4px 0 0;
  color: rgb(var(--fog-300));
}
.subscribe form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hp {
  position: absolute;
  left: -9999px;
}
input[type='email'],
input[type='text'],
input[type='datetime-local'],
select,
textarea {
  font: inherit;
  color: rgb(var(--fog-100));
  background: rgb(var(--ink-950) / 0.7);
  border: 1px solid rgb(var(--line) / 0.14);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 0;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aeb8d1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgb(var(--signal));
  box-shadow: 0 0 0 3px rgb(var(--signal) / 0.25);
}
.button,
button.primary {
  font: inherit;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(90deg, rgb(var(--signal)), rgb(var(--signal-to)));
  text-decoration: none;
}
.button:hover,
button.primary:hover {
  filter: brightness(1.08);
  text-decoration: none;
}
button.ghost {
  font: inherit;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgb(var(--line) / 0.14);
  background: transparent;
  color: rgb(var(--fog-200));
  cursor: pointer;
}
button.ghost:hover {
  border-color: rgb(var(--line) / 0.3);
  color: rgb(var(--white));
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.note {
  margin-top: 10px;
  font-size: 13px;
  color: rgb(var(--fog-300));
}
.note.ok {
  color: rgb(var(--ok));
}
.note.bad {
  color: rgb(var(--bad));
}

/* Footer */
footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid rgb(var(--line) / 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgb(var(--fog-400));
}
footer a {
  color: rgb(var(--fog-300));
}

/* The confirm / unsubscribe pages */
.message {
  padding-top: 40px;
}
.message .panel {
  margin-top: 28px;
  max-width: 520px;
}
.message h1 {
  font-size: 26px;
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  h1 {
    font-size: 26px;
  }
  .banner .meta {
    text-align: left;
  }
  .subscribe {
    grid-template-columns: 1fr;
  }
  .updates li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .bar {
    gap: 2px;
    height: 24px;
  }
  .bar i {
    border-radius: 1px;
  }
}
