/* Lead VPN status page: tokens and look of leadvpn.app (lead-main-app DESIGN_SYSTEM.md). */
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/google-sans-cyrillic.woff2) format("woff2"); unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116; }
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/google-sans-latin.woff2) format("woff2"); 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, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #10161f; --bg-deep: #0b1018; --panel: #192330; --nodata: #293746;
  --fg: #f5f7fa; --muted: rgba(232,238,245,0.68); --subtle: rgba(232,238,245,0.6);
  --border: rgba(145,165,187,0.16); --divider: rgba(145,165,187,0.10);
  --brand: #0098ea; --brand-text: #5bcaff; --link: #35b8ff;
  --ok: #10b981; --ok-text: #34d399; --warn: #fbbf24; --bad: #f87171;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 "Google Sans", ui-sans-serif, system-ui, sans-serif; overflow-x: hidden; }
a { color: var(--link); } a:hover { color: var(--brand-text); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }

.glow { position: absolute; top: -170px; right: 8%; width: 560px; max-width: 90vw; height: 320px; border-radius: 9999px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(0,152,234,0.20) 0%, rgba(0,152,234,0.06) 42%, transparent 72%); }

.top { position: relative; max-width: 1312px; margin: 0 auto; height: 76px; padding: 0 16px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 20px; font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; }
.brand:hover { color: #fff; }
.muted { color: var(--muted); font-size: 15px; white-space: nowrap; }
.actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav { font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.72); text-decoration: none; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.nav:hover { color: #fff; }
.lang { min-height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15); background: transparent; color: rgba(255,255,255,0.6);
  font: 500 15px/1 inherit; font-family: inherit; letter-spacing: 0.04em; cursor: pointer; }
.lang:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.cta { display: inline-flex; align-items: center; min-height: 40px; padding: 0 20px; border-radius: 12px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.cta:hover { background: #28b5fa; color: #fff; }

.wrap { position: relative; max-width: 960px; margin: 0 auto; padding: 32px 16px 64px; display: flex; flex-direction: column; gap: 24px; }
.hero { display: flex; flex-direction: column; gap: 16px; padding-bottom: 12px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-text); }
.ring { width: 20px; height: 20px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; flex: none;
  border: 1px solid rgba(145,165,187,0.3); background: rgba(145,165,187,0.08); }
.ring .dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--nodata); }
.ring.ok { border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.08); } .ring.ok .dot { background: var(--ok-text); box-shadow: 0 0 10px var(--ok-text); }
.ring.partial { border-color: rgba(251,191,36,0.35); background: rgba(251,191,36,0.08); } .ring.partial .dot { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.ring.down { border-color: rgba(248,113,113,0.35); background: rgba(248,113,113,0.08); } .ring.down .dot { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
h1 { margin: 0; font-size: clamp(30px, 7vw, 44px); font-weight: 500; line-height: 1.18; letter-spacing: -0.012em; color: #fff; }
.lead { margin: 0; max-width: 640px; font-size: clamp(16px, 2.4vw, 18px); line-height: 1.7; color: var(--muted); }
.stale { margin: 0; font-size: 14px; color: var(--warn); }

#active, #groups { display: flex; flex-direction: column; gap: 24px; }
#active:empty { display: none; }
.panel { border-radius: 22px; border: 1px solid var(--border); background: var(--panel); overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 20px 28px; border-bottom: 1px solid var(--border); }
.panel-head .titles { display: flex; flex-direction: column; gap: 2px; flex: 1 1 260px; }
h2 { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.32; color: #fff; }
.note { font-size: 13px; color: var(--subtle); }
.pill { border-radius: 9999px; padding: 5px 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; border: 1px solid rgba(16,185,129,0.25); color: var(--ok-text); white-space: nowrap; }
.pill.warn { border-color: rgba(251,191,36,0.35); color: var(--warn); }
.pill.bad { border-color: rgba(248,113,113,0.35); color: var(--bad); }

.row-item { padding: 16px 28px 18px; display: flex; flex-direction: column; gap: 10px; }
.row-item + .row-item { border-top: 1px solid var(--divider); }
.row-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.code { width: 34px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--subtle); }
.name { font-size: 15px; font-weight: 500; color: #fff; }
.state { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ok-text); }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 9999px; background: currentColor; box-shadow: 0 0 10px currentColor; }
.state.partial { color: var(--warn); } .state.down { color: var(--bad); }
.bars { display: flex; gap: 2px; height: 30px; }
.bars span { flex: 1 1 0; min-width: 0; border-radius: 2px; background: var(--nodata); }
.bars .ok { background: var(--ok); } .bars .partial { background: var(--warn); } .bars .down { background: var(--bad); }
.scale { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--subtle); }
.scale .short { display: none; }

.event { padding: 22px 28px; display: flex; flex-direction: column; gap: 10px; }
.panel.alert { border-color: rgba(251,191,36,0.32); }
.panel.alert.severe { border-color: rgba(248,113,113,0.35); }
.event-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.event-head h2 { font-size: 20px; }
.event p { margin: 0; color: rgba(232,238,245,0.78); line-height: 1.7; }
.when { font-size: 13px; color: var(--subtle); }
.past-item { padding: 16px 28px; display: flex; flex-direction: column; gap: 4px; }
.past-item + .past-item { border-top: 1px solid var(--divider); }
.past-item .date { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); }
.past-item .what { font-size: 15px; font-weight: 500; color: #fff; }
.past-item .detail { font-size: 14px; color: var(--muted); }

.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--muted); padding: 0 4px; }
.legend > span { display: flex; align-items: center; gap: 8px; }
.legend .updated { margin-left: auto; color: var(--subtle); }
.sw { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.sw.ok { background: var(--ok); } .sw.partial { background: var(--warn); } .sw.down { background: var(--bad); } .sw.none { background: var(--nodata); }

.foot { background: var(--bg-deep); border-top: 1px solid rgba(255,255,255,0.06); }
.foot .row { padding-top: 24px; padding-bottom: 28px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 13px; color: var(--subtle); }
.foot a { font-weight: 500; }
.push { margin-left: auto; }

@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .panel-head, .row-item, .event, .past-item { padding-left: 18px; padding-right: 18px; }
  .bars span:nth-child(-n+60) { display: none; }
  .scale .long { display: none; } .scale .short { display: inline; }
  .push { margin-left: 0; }
}
