@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin-var.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

/* guarder.io — the public site.
 *
 * THE IDEA, so later edits keep it: a network is quiet until it is not.
 * The page is built on that rhythm — a steady, regular measure interrupted
 * at exact points by real events. That is why the live strip runs the full
 * width and everything else is calm around it, and why colour is spent
 * ONLY on data: green/amber/red mean a severity, never decoration. If you
 * are about to colour something because it looked plain, don't.
 *
 * Type does the work instead. Manrope is variable (200-800) and the range
 * is used deliberately: display sizes sit at 300 so they read as calm
 * rather than shouted, small labels at 600-700. IBM Plex Mono is reserved
 * for measured values — counts, timestamps, IPs, axis ticks — so monospace
 * always means "this is a reading".
 *
 * No inline styles anywhere, and no external anything: hub/tests/
 * test_site_csp.py enforces both (CSP is default-src 'self'), which is
 * also why the charts in app.js are hand-rolled SVG rather than a library.
 */

:root {
  --bg: #080d17;
  --panel: #0e1524;
  --panel2: #131c2e;
  --line: #1e2b42;
  --line-soft: #172236;
  --fg: #e9eff8;
  --dim: #8da0bc;
  --acc: #6ba5ff;
  --accink: #08111f;
  --deep: #1257c4;
  --ok: #46d18b;
  --warn: #f2a63c;
  --crit: #ff6b5e;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --pad: clamp(18px, 4vw, 56px);
  --measure: 68ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 var(--pad); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--acc); color: var(--accink); padding: 10px 16px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { left: 8px; top: 8px; }

/* ── the status rail: the one piece of chrome that never leaves ─────────
 * Real numbers from the watched network, so the first thing a reader sees
 * is the product working rather than a claim that it does. */
.rail { background: #060a12; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.rail .wrap {
  display: flex; align-items: center; gap: 18px; height: 36px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--dim);
  overflow-x: auto; white-space: nowrap; scrollbar-width: none;
}
.rail .wrap::-webkit-scrollbar { display: none; }
.rail b { color: var(--fg); font-weight: 600; }
.rail-i { flex: 0 0 auto; }
.rail-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: 0 0 auto; animation: blink 2.6s infinite; }
.rail-end { margin-left: auto; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .22; } }

/* ── masthead ───────────────────────────────────────────────────────── */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top .wrap { display: flex; align-items: center; gap: 26px; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 17.5px; letter-spacing: -.015em; text-decoration: none;
}
.brand svg { width: 22px; height: 22px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 600; color: var(--dim); flex-wrap: wrap; }
.top nav a { text-decoration: none; }
.top nav a:hover, .top nav a:focus-visible { color: var(--acc); }
.top nav a:last-child {
  font-family: var(--font-mono); font-size: 12px; color: var(--fg);
  border: 1px solid var(--line); padding: 8px 14px;
}
.top nav a:last-child:hover { border-color: var(--acc); color: var(--acc); }

/* ── hero ───────────────────────────────────────────────────────────── */
.hero { padding: clamp(40px, 6vw, 86px) 0 clamp(30px, 4vw, 54px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 350px); gap: clamp(26px, 5vw, 70px); align-items: end; }
.hero-main { min-width: 0; }
.pill {
  margin: 0 0 20px; font-family: var(--font-mono);
  font-size: 11.5px; color: var(--acc); letter-spacing: .04em;
}
h1 {
  font-size: clamp(34px, 5.1vw, 62px); font-weight: 300; line-height: 1.04;
  letter-spacing: -.028em; margin: 0 0 20px; max-width: 17ch;
}
/* The second line carries the turn in the sentence, so it carries the
 * weight — not a different colour. Colour is reserved for data. */
.hl { font-weight: 600; }
.sub { margin: 0; max-width: var(--measure); color: var(--dim); font-size: clamp(16px, 1.5vw, 18px); }
.cta-row { display: flex; gap: 11px; margin-top: 28px; flex-wrap: wrap; }
.btn {
  display: inline-block; font: 600 14.5px/1 var(--font-sans); padding: 13px 20px;
  text-decoration: none; background: var(--deep); color: #fff; border: 1px solid var(--deep);
}
.btn:hover { background: #1663df; }
.btn.ghost { background: none; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--acc); color: var(--acc); }
.cta-note { font-family: var(--font-mono); font-size: 11.5px; color: var(--dim); margin: 14px 0 0; max-width: 62ch; }

/* the one big honest number */
.readout { border-top: 2px solid var(--acc); padding-top: 15px; }
.readout-k { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--dim); letter-spacing: .04em; margin: 0; }
.readout-v { font-family: var(--font-mono); font-size: clamp(44px, 6.2vw, 64px); font-weight: 600; line-height: 1; letter-spacing: -.035em; margin: 8px 0 4px; }
.readout-s { font-size: 13.5px; color: var(--dim); max-width: 34ch; margin: 0; }

/* ── the live strip ─────────────────────────────────────────────────── */
#live { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
#live .wrap { padding-top: 18px; padding-bottom: 18px; }
.panel { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 0; }
.feed-pane { min-width: 0; }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.panel-title { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--dim); margin: 0; letter-spacing: .06em; display: flex; align-items: center; gap: 9px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: blink 2.6s infinite; }
.poll { margin: 0 0 0 auto; font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.feed-body { min-height: 60px; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed-row {
  display: grid; grid-template-columns: 54px minmax(0, 1fr) 150px 78px; gap: 13px;
  align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px;
}
.feed-row:last-child { border-bottom: 0; }
.badge { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .06em; color: var(--dim); }
.badge.ok { color: var(--ok); }
.badge.warn { color: var(--warn); }
.badge.crit { color: var(--crit); }
/* The title and the thing it happened to are two stacked lines, not one
 * run-on string: app.js puts a <b> and a <span> in here with no separator
 * between them, so they must each be their own block. */
.feed-what { min-width: 0; }
.feed-what b { display: block; font-weight: 600; }
.feed-what span { display: block; color: var(--dim); font-size: 12.5px; }
.feed-detail { color: var(--dim); font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
.feed-when { font-family: var(--font-mono); font-size: 11.5px; color: var(--dim); text-align: right; }
.feed-fallback { color: var(--dim); font-size: 14px; margin: 0; max-width: var(--measure); }
.panel-foot { font-family: var(--font-mono); font-size: 11px; color: var(--dim); margin: 12px 0 0; }
.panel.offline .live-dot { background: var(--warn); animation: none; }
/* skeleton bars, before the first payload lands */
.skel .bar { display: inline-block; height: 9px; width: 100%; background: var(--line); }
.skel .bar.short { width: 60%; }
.skel .badge .bar { width: 26px; }

/* right half of the strip: gauges */
.gauges { border-left: 1px solid var(--line); padding-left: clamp(18px, 3vw, 34px); margin-left: clamp(18px, 3vw, 34px); }
.gauge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.gauge { border: 1px solid var(--line); background: var(--panel2); padding: 11px 12px; }
.gauge-k { font-family: var(--font-mono); font-size: 10px; color: var(--dim); letter-spacing: .04em; margin: 0; }
.gauge-v { font-family: var(--font-mono); font-size: 26px; font-weight: 600; letter-spacing: -.025em; margin: 4px 0 0; }
.gauge-v span { font-size: 12px; color: var(--dim); font-weight: 400; letter-spacing: 0; }
.gauge-bar { height: 3px; background: var(--line); margin-top: 9px; }
.gauge-bar i { display: block; height: 3px; background: var(--acc); }
.gauge-bar.amber i { background: var(--warn); }

/* ── generic sections ───────────────────────────────────────────────── */
main > section { padding: clamp(52px, 8vw, 98px) 0; border-bottom: 1px solid var(--line); }
main > section.hero, main > section#live { border-bottom: 0; }
main > section#live { padding: 0; }
.eyebrow { font-family: var(--font-mono); font-size: 11px; color: var(--acc); margin: 0 0 13px; letter-spacing: .05em; }
h2 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 300; letter-spacing: -.024em; line-height: 1.1; margin: 0 0 18px; max-width: 23ch; }
h2 .hl { font-weight: 600; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; margin: 0 0 8px; }
.lede { max-width: var(--measure); color: var(--dim); margin: 0 0 18px; }
p { max-width: var(--measure); }

/* the quotes a call-out usually starts with */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 26px 0 12px; list-style: none; padding: 0; }
.quotes li { border-left: 2px solid var(--line); padding: 2px 0 2px 14px; color: var(--fg); font-size: 15px; }
.quotes-note { font-family: var(--font-mono); font-size: 11px; color: var(--dim); margin: 0; }

/* what it watches / integrations / who it is for */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 14px; margin-top: 30px; }
.card { background: var(--panel); border: 1px solid var(--line); padding: 20px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--dim); font-size: 14.5px; margin: 0; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; margin-top: 30px; list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 14px; }
.steps li::before { content: counter(step); font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--acc); display: block; margin-bottom: 8px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--dim); font-size: 14.5px; margin: 0; }
.cmd { font-family: var(--font-mono); font-size: 12.5px; background: var(--panel2); border: 1px solid var(--line); padding: 3px 7px; color: var(--fg); }

/* ── capability switcher ────────────────────────────────────────────── */
.caps { display: grid; grid-template-columns: minmax(0, 266px) minmax(0, 1fr); gap: clamp(22px, 4vw, 52px); margin-top: 34px; }
.cap-list { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.cap-list button {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  border-left: 2px solid transparent; margin-left: -1px; padding: 12px 0 12px 16px;
  font: 600 14.5px/1.3 var(--font-sans); color: var(--dim); cursor: pointer;
}
.cap-list button:hover { color: var(--fg); }
.cap-list button[aria-selected="true"] { color: var(--fg); border-left-color: var(--acc); }
.cap-list small { display: block; font-weight: 400; font-size: 12.5px; color: var(--dim); margin-top: 3px; opacity: .85; }
.cap-view { border: 1px solid var(--line); background: var(--panel); padding: clamp(18px, 3vw, 30px); }
.cap-view h3 { font-size: 21px; margin-bottom: 9px; }
.cap-body { color: var(--dim); max-width: 58ch; font-size: 15px; margin: 0 0 22px; }
.cap-kpis { display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 18px; }
.cap-k { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; color: var(--dim); letter-spacing: .03em; margin: 0; }
.cap-v { font-family: var(--font-mono); font-size: 27px; font-weight: 600; letter-spacing: -.025em; margin: 2px 0 0; }

/* ── evidence charts ────────────────────────────────────────────────── */
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); gap: 22px; margin-top: 32px; }
.chart { border: 1px solid var(--line); background: var(--panel); padding: 18px; }
.chart h3 { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.chart-sub { font-size: 12.5px; color: var(--dim); margin: 0 0 14px; }
.tag { font-family: var(--font-mono); font-size: 10px; color: var(--dim); border: 1px solid var(--line); padding: 1px 6px; }
.ax { font-family: var(--font-mono); font-size: 9.5px; fill: var(--dim); }

/* ── pricing ────────────────────────────────────────────────────────── */
.interval-toggle { display: inline-flex; align-items: center; gap: 11px; margin: 22px 0 0; font-size: 14px; color: var(--dim); cursor: pointer; }
.interval-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { width: 40px; height: 22px; border: 1px solid var(--line); background: var(--panel2); position: relative; flex: 0 0 auto; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: var(--dim); transition: transform .16s ease, background .16s ease; }
/* The switch lives INSIDE the label, so the checked rules have to reach
 * through it -- `+ .switch` matches nothing, which is how both prices came
 * to show at once. */
.interval-input:checked + .interval-toggle .switch { border-color: var(--acc); }
.interval-input:checked + .interval-toggle .switch::after { transform: translateX(18px); background: var(--acc); }
.interval-input:focus-visible + .interval-toggle { outline: 2px solid var(--acc); outline-offset: 3px; }
html[dir="rtl"] .interval-input:checked + .interval-toggle .switch::after { transform: translateX(-18px); }

/* Monthly is the default view; the checkbox swaps which price shows. */
#pricing .tiers .price[data-interval="year"] { display: none; }
#pricing .interval-input:checked ~ .tiers .price[data-interval="year"] { display: block; }
#pricing .interval-input:checked ~ .tiers .price[data-interval="month"] { display: none; }

/* The Subscribe link follows the same switch as the price above it, so the
 * visitor reaches checkout on the interval they were reading. Two links
 * rather than one plus a script: the toggle is a checkbox and nothing else,
 * and a subscribe button that needs JavaScript is broken on first paint. */
#pricing .tiers .btn[data-interval="year"] { display: none; }
#pricing .interval-input:checked ~ .tiers .btn[data-interval="year"] { display: inline-block; }
#pricing .interval-input:checked ~ .tiers .btn[data-interval="month"] { display: none; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); gap: 14px; margin-top: 26px; }
.tier { background: var(--panel); border: 1px solid var(--line); padding: 20px 18px; display: flex; flex-direction: column; }
.tier.is-trial { border-color: var(--acc); }
.tier h3 { font-size: 16px; margin-bottom: 10px; }
.price { font-family: var(--font-mono); font-size: 27px; font-weight: 600; letter-spacing: -.03em; margin: 0 0 2px; }
.price span { font-size: 12.5px; color: var(--dim); font-weight: 400; letter-spacing: 0; }
.price.free { color: var(--ok); }
.save { font-family: var(--font-mono); font-size: 11px; color: var(--ok); margin: 0 0 10px; }
.meta { font-family: var(--font-mono); font-size: 11px; color: var(--dim); margin: 0 0 10px; }
.tier p { color: var(--dim); font-size: 14px; margin: 0; }
.trial { font-family: var(--font-mono); font-size: 11px; color: var(--acc); margin: 0 0 8px; }

/* ── faq ────────────────────────────────────────────────────────────── */
.faq { margin-top: 26px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 16px; list-style: none; display: flex; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; font-family: var(--font-mono); color: var(--acc); font-weight: 400; }
.faq details[open] summary::before { content: "\2212"; }
.faq details p { color: var(--dim); margin: 0 0 18px; font-size: 15px; }

/* ── sign up ────────────────────────────────────────────────────────── */
.form-panel { border: 1px solid var(--line); background: var(--panel); padding: clamp(18px, 3vw, 30px); margin-top: 28px; max-width: 620px; }
.field { display: block; margin-bottom: 15px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--dim); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--fg);
  font: 400 15px/1.4 var(--font-sans); padding: 10px 12px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--acc); outline: none; }
.field textarea { min-height: 84px; resize: vertical; }
.hint { font-size: 12.5px; color: var(--dim); margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; }
.form-msg { font-family: var(--font-mono); font-size: 12.5px; margin: 12px 0 0; color: var(--dim); }
.form-msg.ok { color: var(--ok); }
.form-msg.crit { color: var(--crit); }

/* ── footer ─────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 44px 0 56px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(130px, 1fr)); gap: 28px; }
.foot-brand-name { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; text-decoration: none; }
.foot-brand-name svg { width: 20px; height: 20px; }
.foot-tag { color: var(--dim); font-size: 14px; margin: 10px 0 0; max-width: 34ch; }
.foot-col h3 { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--dim); letter-spacing: .05em; margin-bottom: 10px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 7px; }
.foot-col a { font-size: 14px; color: var(--fg); text-decoration: none; }
.foot-col a:hover { color: var(--acc); }
.foot-bottom { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); }
.foot-copy { font-family: var(--font-mono); font-size: 11.5px; color: var(--dim); margin: 0; }
.foot-lang { margin-left: auto; display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.foot-lang a { color: var(--dim); text-decoration: none; }
.foot-lang a:hover { color: var(--acc); }
.foot-lang a[aria-current="true"] { color: var(--fg); font-weight: 600; }

.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--dim); }
.dot.ok { background: var(--ok); }

@media (max-width: 900px) {
  .hero .wrap, .panel, .caps { grid-template-columns: 1fr; }
  .gauges { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; margin-left: 0; padding-top: 18px; margin-top: 18px; }
  .feed-row { grid-template-columns: 48px minmax(0, 1fr) 70px; }
  .feed-detail { display: none; }
  .top nav { gap: 14px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
