/* HisarPay status page (Cloudflare Pages). Colours are those of packages/ui/src/styles/tokens.css. */
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-19f9c925.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-tr-2a86fd95.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+011E-011F, U+0130, U+015E-015F;
}
:root {
  color-scheme: light;
  --bg: #f7f9fd;
  --surface: #f1f5fc;
  --surface-2: #e8effb;
  --elevated: #ffffff;
  --border: #e2e9f5;
  --border-strong: #c6d2e8;
  --ink: #0c1424;
  --ink-2: #3b475f;
  --muted: #56627b;
  --primary: #2257ff;
  --ok: #0a7450;
  --ok-fill: #17a583;
  --ok-soft: #e0f6eb;
  --warn: #875000;
  --warn-fill: #e8a33d;
  --warn-soft: #fff2d8;
  --down: #c2243c;
  --down-fill: #d8434f;
  --down-soft: #fdecef;
  --none-fill: #dfe7f5;
  --ring: rgba(34, 87, 255, 0.4);
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow: 0 1px 2px rgba(12, 32, 100, 0.05), 0 18px 40px -28px rgba(11, 43, 181, 0.38);
  --sky:
    radial-gradient(36% 60% at 14% 40%, rgba(86, 204, 255, 0.34), transparent 72%),
    radial-gradient(38% 60% at 88% 34%, rgba(132, 120, 255, 0.28), transparent 72%),
    linear-gradient(180deg, #e6eeff, #f7f9fd);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #070b16;
    --surface: #0c1322;
    --surface-2: #151f37;
    --elevated: #0f1627;
    --border: #1d2842;
    --border-strong: #303f62;
    --ink: #f0f4ff;
    --ink-2: #c3cde4;
    --muted: #97a3c0;
    --primary: #8db0ff;
    --ok: #4ade9f;
    --ok-fill: #1fa383;
    --ok-soft: #0e2a2b;
    --warn: #ffc46b;
    --warn-fill: #d99a3c;
    --warn-soft: #2a2418;
    --down: #ff7a88;
    --down-fill: #e05a67;
    --down-soft: #2b1a26;
    --none-fill: #1d2842;
    --ring: rgba(141, 176, 255, 0.5);
    --edge: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 22px 44px -28px rgba(0, 0, 0, 0.8);
    --sky:
      radial-gradient(36% 60% at 14% 40%, rgba(86, 204, 255, 0.14), transparent 72%),
      radial-gradient(38% 60% at 88% 34%, rgba(132, 120, 255, 0.22), transparent 72%),
      linear-gradient(180deg, #0c1736, #070b16);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070b16;
  --surface: #0c1322;
  --surface-2: #151f37;
  --elevated: #0f1627;
  --border: #1d2842;
  --border-strong: #303f62;
  --ink: #f0f4ff;
  --ink-2: #c3cde4;
  --muted: #97a3c0;
  --primary: #8db0ff;
  --ok: #4ade9f;
  --ok-fill: #1fa383;
  --ok-soft: #0e2a2b;
  --warn: #ffc46b;
  --warn-fill: #d99a3c;
  --warn-soft: #2a2418;
  --down: #ff7a88;
  --down-fill: #e05a67;
  --down-soft: #2b1a26;
  --none-fill: #1d2842;
  --ring: rgba(141, 176, 255, 0.5);
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 22px 44px -28px rgba(0, 0, 0, 0.8);
  --sky:
    radial-gradient(36% 60% at 14% 40%, rgba(86, 204, 255, 0.14), transparent 72%),
    radial-gradient(38% 60% at 88% 34%, rgba(132, 120, 255, 0.22), transparent 72%),
    linear-gradient(180deg, #0c1736, #070b16);
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px / 1.6 "Geist",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 6px;
}
.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 8px;
  background: var(--bg);
  padding: 6px 10px;
  z-index: 2;
}

.top {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1;
}
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 570;
  letter-spacing: -0.02em;
  min-width: 0;
}
.word {
  font-size: 20px;
  font-weight: 640;
  letter-spacing: -0.05em;
}
.word span {
  color: var(--primary);
}
.sep {
  color: var(--border-strong);
  font-weight: 400;
}
.crumb {
  color: var(--muted);
  font-weight: 560;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tools {
  display: flex;
  gap: 8px;
}
.tool {
  height: 40px;
  min-width: 40px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--bg);
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 560;
  cursor: pointer;
}
.tool svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  vertical-align: middle;
}
.tool:hover {
  border-color: var(--border-strong);
}

.hero {
  position: relative;
  margin-top: 0;
  padding: 88px 0 12px;
}
/* the light the site and the dashboard have */
.sky {
  position: absolute;
  inset: 0 calc(50% - 50vw) auto;
  height: 300px;
  background: var(--sky);
  mask-image: linear-gradient(#000 50%, transparent);
}
.overall {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--elevated);
  box-shadow: var(--shadow), var(--edge);
}
.overall h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.045em;
}
.overall p {
  margin: 6px 0 0;
  color: var(--muted);
}
.dot {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 11px;
  border-radius: 50%;
  background: var(--none-fill);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--none-fill) 30%, transparent);
}
.overall[data-state="operational"] {
  background: var(--ok-soft);
  border-color: color-mix(in srgb, var(--ok-fill) 35%, var(--border));
}
.overall[data-state="operational"] .dot {
  background: var(--ok-fill);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--ok-fill) 22%, transparent);
}
.overall[data-state="degraded"],
.overall[data-state="unknown"] {
  background: var(--warn-soft);
  border-color: color-mix(in srgb, var(--warn-fill) 40%, var(--border));
}
.overall[data-state="degraded"] .dot,
.overall[data-state="unknown"] .dot {
  background: var(--warn-fill);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--warn-fill) 22%, transparent);
}
.overall[data-state="down"] {
  background: var(--down-soft);
  border-color: color-mix(in srgb, var(--down-fill) 40%, var(--border));
}
.overall[data-state="down"] .dot {
  background: var(--down-fill);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--down-fill) 22%, transparent);
}
.hero > :not(.sky) {
  position: relative;
}
.stale {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--warn-fill) 40%, var(--border));
  background: var(--warn-soft);
  color: var(--ink-2);
  font-size: 14px;
}
.meta {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

section {
  margin-top: 36px;
}
h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 560;
  letter-spacing: -0.04em;
}
.sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  justify-content: space-between;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12.5px;
}
.legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sw {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.components {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--elevated);
  box-shadow: var(--shadow), var(--edge);
  overflow: hidden;
}
.component {
  padding: 22px 26px;
}
.component + .component {
  border-top: 1px solid var(--border);
}
.c-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 12px;
  align-items: flex-start;
}
/* a long state ("unknown since …") goes to a line of its own instead of pressing the text into a column */
.c-head > :first-child {
  flex: 1 1 170px;
  min-width: 0;
}
.c-name {
  margin: 0;
  font-size: 15px;
  font-weight: 570;
}
.c-desc {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.pill {
  flex: 0 1 auto;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 570;
  background: var(--surface-2);
  color: var(--muted);
}
.pill::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.pill.operational {
  background: var(--ok-soft);
  color: var(--ok);
}
.pill.degraded {
  background: var(--warn-soft);
  color: var(--warn);
}
.pill.down {
  background: var(--down-soft);
  color: var(--down);
}
.bars {
  display: flex;
  gap: 2px;
  height: 34px;
  margin-top: 14px;
}
.bars span {
  flex: 1;
  min-width: 0;
  border-radius: 3px;
  background: var(--none-fill);
}
.sw.operational,
.bars .operational {
  background: var(--ok-fill);
}
.sw.degraded,
.bars .degraded {
  background: var(--warn-fill);
}
.sw.down,
.bars .down {
  background: var(--down-fill);
}
.sw.none {
  background: var(--none-fill);
}
.bars span:hover {
  opacity: 0.75;
}
.c-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.c-foot strong {
  color: var(--ink-2);
  font-weight: 570;
}
.c-foot .from45 {
  display: none;
}
@media (max-width: 560px) {
  /* 45 days fit a phone: the bar shows the most recent half, the uptime still covers 90 */
  .bars span:nth-child(-n + 45) {
    display: none;
  }
  .c-foot .from90 {
    display: none;
  }
  .c-foot .from45 {
    display: inline;
  }
}

.incidents {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.incident {
  padding: 22px 26px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--bg);
}
.incident h3 {
  margin: 0;
  font-size: 15px;
}
.i-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}
.updates {
  margin: 12px 0 0;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--border);
  list-style: none;
  display: grid;
  gap: 10px;
}
.updates p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
}
.updates time {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.empty {
  padding: 18px;
  border: 1px dashed var(--border-strong);
  border-radius: 26px;
  color: var(--muted);
  font-size: 14px;
}
.foot {
  margin: 48px auto 32px;
  color: var(--muted);
  font-size: 12.5px;
}
@media (prefers-reduced-motion: no-preference) {
  .overall[data-state="operational"] .dot {
    animation: pulse 2.4s ease-in-out infinite;
  }
  @keyframes pulse {
    50% {
      box-shadow: 0 0 0 10px color-mix(in srgb, var(--ok-fill) 0%, transparent);
    }
  }
}
