/* Fonts are served by the gateway itself (SIL OFL): the start page makes no request to Google. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(/__demo/static/fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(/__demo/static/fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(/__demo/static/fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(/__demo/static/fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(/__demo/static/fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(/__demo/static/fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url(/__demo/static/fonts/manrope-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url(/__demo/static/fonts/manrope-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url(/__demo/static/fonts/manrope-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url(/__demo/static/fonts/manrope-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Shared by the start page and the countdown injected into demo instances. Every selector is
   prefixed with .bspd- so nothing leaks into the BetterStatusPage UI. Colours are the admin
   panel's light theme; the start page is always light. */
:root {
  --bspd-surface: #f5f6f9;
  --bspd-card: #fafbfc;
  --bspd-border: #d3d7df;
  --bspd-text: #1c2333;
  --bspd-muted: #45464d;
  --bspd-primary: #dbe7ff;
  --bspd-primary-hover: #c9d9ff;
  --bspd-on-primary: #172033;
  --bspd-code: #e7eaf0;
  --bspd-warn: #fb8c00;
}

/* ── Start page ─────────────────────────────────────────────────────── */
body.bspd-start {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  box-sizing: border-box;
  background: var(--bspd-surface);
  color: var(--bspd-text);
  font: 15px/1.6 Inter, system-ui, sans-serif;
}
.bspd-card {
  width: 100%;
  max-width: 640px;
  background: var(--bspd-card);
  border: 1px solid var(--bspd-border);
  border-radius: 20px;
  padding: 36px;
  box-sizing: border-box;
}
.bspd-card h1, .bspd-card h2, .bspd-overlay-card h2 { font-family: Manrope, Inter, sans-serif; margin: 0; }
.bspd-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font: 800 20px/1 Manrope, Inter, sans-serif;
  letter-spacing: -0.01em;
}
.bspd-brand img { display: block; }
.bspd-card h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.bspd-card h2 { font-size: 16px; font-weight: 700; margin: 28px 0 10px; }
.bspd-eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bspd-muted); }
.bspd-lead { margin: 12px 0 0; color: var(--bspd-muted); }
.bspd-facts { margin: 20px 0 0; padding-left: 20px; }
.bspd-facts li + li { margin-top: 4px; }
.bspd-card code {
  font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--bspd-code);
  padding: 2px 6px;
  border-radius: 6px;
  word-break: break-all;
}
.bspd-actions, .bspd-ready { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.bspd-ready[hidden], .bspd-btn[hidden] { display: none; }
.bspd-status { min-height: 1.6em; margin: 12px 0 0; color: var(--bspd-muted); }

.bspd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--bspd-border);
  font: 600 14px/1 Inter, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  color: var(--bspd-text);
  background: transparent;
  transition: background-color 0.18s ease;
}
.bspd-btn-primary { background: var(--bspd-primary); color: var(--bspd-on-primary); border-color: transparent; }
.bspd-btn-primary:hover:not(:disabled) { background: var(--bspd-primary-hover); }
.bspd-btn-ghost:hover { background: var(--bspd-code); }
.bspd-btn:disabled { opacity: 0.6; cursor: progress; }
.bspd-btn:focus-visible { outline: 2px solid var(--bspd-on-primary); outline-offset: 2px; }

@media (max-width: 520px) {
  .bspd-card { padding: 24px 18px; }
}

/* ── Countdown injected into the demo instance ──────────────────────── */
.bspd-timer {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: #172033;
  color: #f5f6f9;
  font: 600 13px/1 Inter, system-ui, sans-serif;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.bspd-timer-warn { background: var(--bspd-warn); color: #1c2333; }
.bspd-timer button {
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
}
.bspd-timer button:hover { background: rgba(255, 255, 255, 0.28); }

.bspd-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(15, 18, 25, 0.6);
}
.bspd-overlay-card {
  max-width: 420px;
  background: var(--bspd-card);
  color: var(--bspd-text);
  border-radius: 20px;
  padding: 28px;
  font: 15px/1.6 Inter, system-ui, sans-serif;
  text-align: center;
}
.bspd-overlay-card p { color: var(--bspd-muted); margin: 8px 0 20px; }

.bspd-privacy { margin: 20px 0 0; font-size: 13px; color: var(--bspd-muted); }
.bspd-privacy a { color: inherit; }
