/* Finpay status page. Design tokens from the finpay-docs skill (assets/finpay.css): navy, blue, sky, cards, status
   colors, Plus Jakarta Sans. No external resources (the CSP only allows this site and the status.json blob). */
@font-face { font-family: "Finpay Sans"; src: url("fonts/PlusJakartaSans.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }

:root {
  --fp-navy: #0f2b40;
  --fp-navy-2: #183a52;
  --fp-blue: #2a76a8;
  --fp-sky: #b5cddc;
  --fp-text: #2b3e4f;
  --fp-muted: #5d7182;
  --fp-line: #d7e3ec;
  --fp-card: #f1f6f9;
  --fp-warm: #fef7ea; --fp-warm-line: #f0dcb2; --fp-warm-ink: #7a4b12;
  --fp-ok: #1f7a55;   --fp-ok-bg: #e2f3eb;
  --fp-due: #8a5a12;  --fp-due-bg: #fdf1dc;
  --fp-bad: #a6392f;  --fp-bad-bg: #fbe5e2;
  --fp-grad-bar: linear-gradient(90deg, var(--fp-blue), var(--fp-sky));
  --fp-sans: "Finpay Sans", "Segoe UI", Arial, sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--fp-sans); color: var(--fp-text); background: #fff; font-size: 16px; line-height: 1.5; }
h1, h2, h3 { color: var(--fp-navy); margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
a { color: var(--fp-blue); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }

/* Header */
.top { background: var(--fp-navy); color: #fff; padding-bottom: 40px; }
.top-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.brand img { display: block; height: 32px; width: auto; }
.lang { display: flex; gap: 4px; background: var(--fp-navy-2); border-radius: 999px; padding: 4px; }
.lang button { font: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--fp-sky); background: transparent;
  border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--fp-blue); color: #fff; }
.lang button:focus-visible { outline: 2px solid var(--fp-sky); outline-offset: 2px; }
.hero { padding-top: 18px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--fp-sky); }
.eyebrow::before { content: ""; width: 28px; height: 4px; border-radius: 2px; background: var(--fp-grad-bar); }
.hero h1 { color: #fff; font-size: clamp(26px, 4.4vw, 38px); font-weight: 800; margin-top: 12px; max-width: 18em; }

/* Overall banner */
main.wrap { padding-bottom: 56px; }
.overall { display: flex; gap: 16px; align-items: center; margin-top: -24px; background: #fff; border: 1px solid var(--fp-line);
  border-left-width: 6px; border-radius: var(--radius); padding: 20px 24px; }
.overall .dot { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--fp-muted); }
.overall-text { margin: 0; font-size: 19px; font-weight: 800; color: var(--fp-navy); }
.updated { margin: 2px 0 0; font-size: 14px; color: var(--fp-muted); }
.overall.operational { border-left-color: var(--fp-ok); } .overall.operational .dot { background: var(--fp-ok); }
.overall.degraded { border-left-color: var(--fp-due); } .overall.degraded .dot { background: var(--fp-due); }
.overall.down { border-left-color: var(--fp-bad); } .overall.down .dot { background: var(--fp-bad); }
.overall.unknown { border-left-color: var(--fp-line); }

.notice { margin-top: 16px; background: var(--fp-warm); border: 1px solid var(--fp-warm-line); color: var(--fp-warm-ink);
  border-radius: var(--radius); padding: 12px 18px; font-size: 15px; }

/* Services */
.section-title { font-size: 20px; font-weight: 800; margin: 40px 0 14px; }
.services { list-style: none; margin: 0; padding: 0; border: 1px solid var(--fp-line); border-radius: var(--radius); overflow: hidden; }
.service { padding: 20px 24px; }
.service + .service { border-top: 1px solid var(--fp-line); }
.service-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.service-name { font-size: 17px; font-weight: 700; margin-right: auto; }
.month { font-size: 14px; color: var(--fp-muted); }
.month b { color: var(--fp-navy); font-weight: 700; }

.pill { display: inline-block; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 12px; white-space: nowrap; }
.pill.operational { color: var(--fp-ok); background: var(--fp-ok-bg); }
.pill.degraded { color: var(--fp-due); background: var(--fp-due-bg); }
.pill.down { color: var(--fp-bad); background: var(--fp-bad-bg); }
.pill.unknown { color: var(--fp-muted); background: var(--fp-card); }

.bars { display: grid; grid-template-columns: repeat(90, 1fr); gap: 2px; height: 34px; margin-top: 14px; }
.bar { border-radius: 2px; background: var(--fp-line); cursor: pointer; border: 0; padding: 0; min-width: 0; }
.bar.operational, .swatch.operational { background: var(--fp-ok); }
.bar.degraded, .swatch.degraded { background: var(--fp-due); }
.bar.down, .swatch.down { background: var(--fp-bad); }
.bar.unknown, .swatch.unknown { background: var(--fp-line); }
.bar:hover, .bar:focus-visible, .bar.selected { outline: 2px solid var(--fp-navy); outline-offset: 1px; }
.bars-axis { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 13px; color: var(--fp-muted); }
.day-detail { text-align: center; color: var(--fp-text); }

.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: 13px; color: var(--fp-muted); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }

/* Incidents */
.incidents { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.incident { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; background: var(--fp-card);
  border: 1px solid var(--fp-line); border-radius: var(--radius); padding: 14px 18px; }
.incident.open { background: #fff; border-left: 6px solid var(--fp-bad); }
.incident.open.degraded { border-left-color: var(--fp-due); }
.incident-service { font-weight: 700; color: var(--fp-navy); }
.incident-when { grid-column: 1 / -1; font-size: 14px; color: var(--fp-muted); }
.incident .pill { grid-row: 1; grid-column: 2; }
.empty { color: var(--fp-muted); background: var(--fp-card); border-radius: var(--radius); padding: 16px 20px; }

/* Footer */
.foot { border-top: 1px solid var(--fp-line); color: var(--fp-muted); font-size: 14px; padding: 20px 0 32px; }
.foot p { margin: 4px 0; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .service { padding: 16px; }
  .bars { gap: 1px; height: 28px; }
  .overall { padding: 16px; }
}
