/*
 * Owl Keeper — the marketing site's one stylesheet.
 *
 * The same tokens as the app (app-web/src/styles.css): monochrome surfaces,
 * colour only for status, Inter and IBM Plex Mono. Light is warm paper, dark is
 * cold night, chosen by the reader's system. No framework and no build: this
 * file is served as it is written, so it is written to be read.
 *
 * Sections: fonts · tokens · base · layout · type · buttons · header · footer ·
 * sections and cards · product figures · forms · prose · tools · utilities.
 */

/* Fonts ------------------------------------------------------------------- */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* Tokens ------------------------------------------------------------------ */

:root {
  color-scheme: light dark;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --canvas: #fbfaf8;
  --panel: #ffffff;
  --panel-muted: #f4f2ee;
  --line: #e7e3dc;
  --line-strong: #d8d2c8;
  --ink: #14171c;
  --ink-muted: #5c5852;
  --ink-faint: #6f695f;
  --action: #14171c;
  --action-ink: #fbfaf8;

  --ok: #047857;   --ok-surface: #ecfdf5;   --ok-fill: #10b981;
  --warn: #b45309; --warn-surface: #fef6e7; --warn-fill: #f59e0b;
  --bad: #be123c;  --bad-surface: #fef1f3;  --bad-fill: #f43f5e;
  --idle: #6b665e; --idle-surface: #f4f2ee; --idle-fill: #d8d2c8;

  --radius-panel: 0.625rem;
  --radius-control: 0.375rem;
  --radius-cell: 2px;
  --shadow-panel: 0 1px 2px rgb(20 23 28 / 0.05), 0 6px 16px rgb(20 23 28 / 0.045);
  --shadow-pop: 0 2px 4px rgb(20 23 28 / 0.06), 0 12px 32px rgb(20 23 28 / 0.12);

  --container: 76rem;
  --gutter: 1.25rem;
  --header-h: 4rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #080b11;
    --panel: #0e1219;
    --panel-muted: #0b0f16;
    --line: #1c2230;
    --line-strong: #29313f;
    --ink: #e9e6e0;
    --ink-muted: #96a0ae;
    --ink-faint: #7f8a9b;
    --action: #e9e6e0;
    --action-ink: #080b11;
    --ok: #34d399;   --ok-surface: rgb(52 211 153 / 0.14);  --ok-fill: #34d399;
    --warn: #fbbf24; --warn-surface: rgb(251 191 36 / 0.14); --warn-fill: #fbbf24;
    --bad: #fb7185;  --bad-surface: rgb(251 113 133 / 0.14); --bad-fill: #fb7185;
    --idle: #8391a5; --idle-surface: rgb(100 116 139 / 0.14); --idle-fill: #29313f;
    --shadow-panel: 0 1px 2px rgb(0 0 0 / 0.4), 0 6px 18px rgb(0 0 0 / 0.36);
    --shadow-pop: 0 2px 4px rgb(0 0 0 / 0.5), 0 16px 40px rgb(0 0 0 / 0.55);
  }
}

/* Base -------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: color-mix(in srgb, var(--ink) 16%, transparent); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }
code, kbd, samp, pre, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--action); color: var(--action-ink);
  padding: 0.5rem 0.875rem; border-radius: var(--radius-control);
  font-size: 0.875rem; font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Layout ------------------------------------------------------------------ */

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 48rem; }
.container--prose { max-width: 44rem; }
@media (min-width: 640px) { :root { --gutter: 1.5rem; } }
@media (min-width: 1024px) { :root { --gutter: 2rem; } }

.section { padding-block: 4rem; }
.section--muted { background: var(--panel-muted); }
.section--tight { padding-block: 3rem; }
@media (min-width: 1024px) { .section { padding-block: 6rem; } .section--tight { padding-block: 4rem; } }

/* The ninety-day strip used as a section divider: the product's own motif. */
.strip-rule {
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 9px);
  opacity: 0.7;
}

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.split > *, .grid > * { min-width: 0; }
@media (min-width: 1024px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 4rem; }
  .split--flip > :first-child { order: 2; }
}

.grid { display: grid; gap: 2.5rem 2rem; }
@media (min-width: 640px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.stack > * + * { margin-top: var(--stack, 1rem); }

/* Type -------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.display {
  font-size: clamp(2.5rem, 4.2vw + 1rem, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.display .muted { color: var(--ink-muted); }
.display .line { display: block; }
.h2 {
  font-size: clamp(2rem, 2.4vw + 1.2rem, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.h3 { font-size: 1.0625rem; line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; }
.lede { font-size: 1.0625rem; line-height: 1.7; color: var(--ink-muted); max-width: 38rem; }
.muted { color: var(--ink-muted); }
.faint { color: var(--ink-faint); }
.small { font-size: 0.875rem; }
.xsmall { font-size: 0.8125rem; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

.link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.15s;
}
.link:hover { text-decoration-color: var(--ink); }

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 2.5rem; padding: 0 1rem;
  border: 1px solid transparent; border-radius: var(--radius-control);
  background: transparent;
  font-size: 0.875rem; font-weight: 500; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer; user-select: none;
  transition: background-color 0.1s, border-color 0.1s, color 0.1s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.btn--primary {
  background: var(--action); color: var(--action-ink);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 1px 2px rgb(0 0 0 / 0.12);
}
.btn--primary:hover { background: color-mix(in srgb, var(--action) 88%, var(--canvas)); }
.btn--secondary { background: var(--panel); border-color: var(--line-strong); color: var(--ink); box-shadow: 0 1px 2px rgb(20 23 28 / 0.04); }
.btn--secondary:hover { background: var(--panel-muted); border-color: color-mix(in srgb, var(--ink-faint) 60%, transparent); }
.btn--ghost { color: var(--ink-muted); }
.btn--ghost:hover { background: var(--panel-muted); color: var(--ink); }
.btn--sm { height: 2rem; padding: 0 0.75rem; font-size: 0.8125rem; }
.btn--lg { height: 3rem; padding: 0 1.25rem; font-size: 0.9375rem; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.center .btn-row { justify-content: center; }

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; gap: 1rem; height: 100%; }

.wordmark { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--ink); }
.wordmark svg { width: 1.5rem; height: 1.5rem; }
.wordmark span { font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.015em; }

.nav { display: none; align-items: center; gap: 0.125rem; margin-inline: auto; }
.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: 0.25rem;
  height: 2.25rem; padding: 0 0.75rem;
  border: 0; border-radius: var(--radius-control); background: none;
  color: var(--ink-muted); font-size: 0.875rem; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}
.nav-link:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { color: var(--ink); background: var(--panel-muted); }
.nav-link[aria-current="page"] { color: var(--ink); }
.nav-trigger svg { width: 0.875rem; height: 0.875rem; transition: transform 0.15s; }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-item { position: relative; }

.menu {
  position: absolute; top: calc(100% + 0.5rem); left: 50%;
  translate: -50% 0;
  width: max-content; max-width: min(40rem, calc(100vw - 2rem));
  padding: 0.5rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-panel);
  box-shadow: var(--shadow-pop);
  animation: pop-in 140ms cubic-bezier(0.16, 1, 0.3, 1);
}
.menu-grid { display: grid; grid-auto-flow: column; gap: 0.25rem; }
.menu-col { min-width: 13rem; }
.menu-heading { padding: 0.5rem 0.75rem 0.25rem; }
.menu a {
  display: block; padding: 0.5rem 0.75rem; border-radius: var(--radius-control);
  color: var(--ink); font-size: 0.875rem; text-decoration: none; line-height: 1.35;
}
.menu a:hover, .menu a:focus-visible { background: var(--panel-muted); }
.menu a small { display: block; margin-top: 0.125rem; font-size: 0.8125rem; color: var(--ink-faint); }
.menu-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  margin: 0.375rem -0.5rem -0.5rem; padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--line); background: var(--panel-muted);
  border-radius: 0 0 var(--radius-panel) var(--radius-panel);
  font-size: 0.8125rem; color: var(--ink-muted);
}
.menu-foot a { display: inline; padding: 0; color: var(--ink); font-weight: 500; white-space: nowrap; }
.menu-foot a:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }

.header-actions { display: none; align-items: center; gap: 0.5rem; }
.menu-toggle {
  margin-left: auto;
  display: inline-grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border: 0; border-radius: var(--radius-control);
  background: none; color: var(--ink); cursor: pointer;
}
.menu-toggle:hover { background: var(--panel-muted); }
.menu-toggle svg { width: 1.25rem; height: 1.25rem; }

@media (min-width: 960px) {
  .nav, .header-actions { display: flex; }
  .menu-toggle { display: none; }
}

/* The phone menu: a full-height sheet below the header. */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 39;
  overflow-y: auto; padding: 1rem var(--gutter) 2rem;
  background: var(--canvas);
  animation: fade-in 140ms ease-out;
}
.mobile-nav details { border-bottom: 1px solid var(--line); }
.mobile-nav summary, .mobile-nav > a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem 0; font-size: 1rem; font-weight: 500; list-style: none; cursor: pointer;
  text-decoration: none; color: var(--ink);
}
.mobile-nav > a { border-bottom: 1px solid var(--line); }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary svg { width: 1rem; height: 1rem; color: var(--ink-faint); transition: transform 0.15s; }
.mobile-nav details[open] summary svg { transform: rotate(180deg); }
.mobile-nav ul { list-style: none; margin: 0 0 0.75rem; padding: 0; }
.mobile-nav li a { display: block; padding: 0.5rem 0; color: var(--ink-muted); text-decoration: none; font-size: 0.9375rem; }
.mobile-nav li a:hover { color: var(--ink); }
.mobile-nav .btn-row { margin-top: 1.5rem; }
.mobile-nav .btn-row .btn { flex: 1; }
@media (min-width: 960px) { .mobile-nav { display: none !important; } }
body.nav-open { overflow: hidden; }

/* Footer ------------------------------------------------------------------ */

.site-footer { padding-block: 4rem 2rem; border-top: 1px solid var(--line); background: var(--canvas); }
.footer-grid { display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { margin-top: 0.75rem; max-width: 18rem; font-size: 0.875rem; color: var(--ink-muted); }
.footer-brand .btn { margin-top: 1.25rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); } .footer-brand { grid-column: auto; } }
.footer-col h2 { margin-bottom: 0.875rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.footer-col a { color: var(--ink-muted); text-decoration: none; font-size: 0.875rem; line-height: 1.4; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: 0.8125rem; color: var(--ink-faint);
}
.footer-bottom nav { display: flex; gap: 1.25rem; }
.footer-bottom a, .footer-bottom button {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--ink-faint); text-decoration: none; font-size: inherit;
}
.footer-bottom a:hover, .footer-bottom button:hover { color: var(--ink); }

/* Sections and cards ------------------------------------------------------- */

.hero { padding-block: 4rem 4.5rem; background: var(--panel-muted); }
@media (min-width: 1024px) { .hero { padding-block: 6rem; } }
.hero .display { margin-top: 1rem; }
.page-hero { padding-block: 4rem 3rem; }
@media (min-width: 1024px) { .page-hero { padding-block: 5.5rem 4rem; } }
.page-hero .h2, .page-hero .display { margin-top: 0.875rem; }
.page-hero .lede { margin-top: 1.25rem; }

.feature h3 { font-size: 0.9375rem; font-weight: 600; }
.feature p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.7; color: var(--ink-muted); }
.feature .icon {
  display: grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: 1rem;
  border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--panel);
  color: var(--ink-muted);
}
.feature .icon svg { width: 1rem; height: 1rem; }

.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-panel); box-shadow: var(--shadow-panel);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--line);
}
.panel-head h2, .panel-head h3 { font-size: 0.875rem; font-weight: 600; }
.panel-body { padding: 1.25rem; }
.panel-foot { padding: 0.75rem 1.25rem; border-top: 1px solid var(--line); font-size: 0.75rem; color: var(--ink-faint); }

.card-link {
  display: block; padding: 1.5rem; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
  transition: border-color 0.15s, transform 0.15s;
}
.card-link:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.card-link h3 { font-size: 1rem; font-weight: 600; }
.card-link p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--ink-muted); line-height: 1.65; }
.card-link .more { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 1rem; font-size: 0.8125rem; font-weight: 500; }
.card-link .more svg { width: 0.875rem; height: 0.875rem; transition: transform 0.15s; }
.card-link:hover .more svg { transform: translateX(2px); }

.faq { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.faq > div { padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.faq dt { font-weight: 600; }
.faq dd { margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.7; color: var(--ink-muted); }

.cta { text-align: center; }
.cta .mark { width: 2.5rem; height: 2.5rem; margin: 0 auto 1.5rem; color: var(--ink); }
.cta .lede { margin: 1rem auto 0; }
.cta .btn-row { margin-top: 2rem; justify-content: center; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.375rem; list-style: none; padding: 0; }
.breadcrumbs li { display: flex; align-items: center; gap: 0.375rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--ink-faint); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }

/* Product figures: the app's own components, drawn with example data ------ */

.figure { overflow: hidden; }
.figure-label { padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--line); }
.figure-body { padding: 1.25rem; }
.figure figcaption { padding: 0.875rem 1.25rem; border-top: 1px solid var(--line); font-size: 0.8125rem; line-height: 1.6; color: var(--ink-faint); }

.watch-strip { display: flex; gap: 2px; height: 1.75rem; }
.watch-strip--sm { height: 1.25rem; }
.watch-strip i { flex: 1; border-radius: 1px; background: var(--ok-fill); min-width: 0; }
.watch-strip i.down { background: var(--bad-fill); }
.watch-strip i.blocked { background: var(--warn-fill); }
.watch-strip i.none { background: var(--idle-fill); }

.badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  height: 1.375rem; padding: 0 0.5rem; border-radius: var(--radius-cell);
  font-size: 0.6875rem; font-weight: 600; line-height: 1;
  border: 1px solid transparent;
}
.badge::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 999px; background: currentColor; }
.badge--up { color: var(--ok); background: var(--ok-surface); border-color: color-mix(in srgb, var(--ok) 22%, transparent); }
.badge--down { color: var(--bad); background: var(--bad-surface); border-color: color-mix(in srgb, var(--bad) 22%, transparent); }
.badge--blocked { color: var(--warn); background: var(--warn-surface); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.badge--paused { color: var(--idle); background: var(--idle-surface); border-color: var(--line); }
.badge--down::before { animation: breathe 2.4s ease-in-out infinite; }

.tag {
  display: inline-flex; align-items: center; height: 1.25rem; padding: 0 0.375rem;
  border: 1px solid var(--line); border-radius: var(--radius-cell); background: var(--panel-muted);
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted);
}

.monitor-row { display: flex; align-items: center; gap: 0.875rem; padding: 0.875rem 1.25rem; }
.monitor-row + .monitor-row { border-top: 1px solid var(--line); }
.monitor-row .who { min-width: 0; flex: 1; }
.monitor-row .name { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 500; }
.monitor-row .url { margin-top: 0.125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-faint); }
.monitor-row .uptime { text-align: right; font-family: var(--font-mono); font-size: 0.875rem; font-weight: 500; }
.monitor-row .uptime small { display: block; font-size: 0.625rem; color: var(--ink-faint); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; }

.findings { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.findings li { display: flex; gap: 0.625rem; font-size: 0.875rem; line-height: 1.55; }
.findings svg { width: 1rem; height: 1rem; flex-shrink: 0; margin-top: 0.15rem; }
.sev-problem { color: var(--bad); }
.sev-warning { color: var(--warn); }
.sev-ok { color: var(--ok); }
.sev-unknown { color: var(--idle); }

.alert-card { display: grid; gap: 0.75rem; }
.alert-card .top { display: flex; align-items: center; gap: 0.75rem; }
.alert-card .time { margin-left: auto; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-faint); }
.alert-card p { font-size: 0.875rem; color: var(--ink-muted); line-height: 1.6; }

.latency-chart svg { width: 100%; height: auto; overflow: visible; }
.latency-chart .axis { font-family: var(--font-mono); font-size: 10px; fill: var(--ink-faint); }

/* Forms -------------------------------------------------------------------- */

.field { display: grid; gap: 0.375rem; }
.field label, .field .field-label { font-size: 0.875rem; font-weight: 500; }
.field .hint { font-size: 0.8125rem; color: var(--ink-faint); }
.field .error { font-size: 0.8125rem; color: var(--bad); }
.input, .textarea {
  width: 100%; min-height: 2.75rem; padding: 0.625rem 0.875rem;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius-control);
  font-size: 1rem; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--ink-faint); opacity: 1; }
.input:focus, .textarea:focus { outline: none; border-color: var(--ink-faint); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--bad); }
.input--lg { min-height: 3rem; font-size: 1rem; }
.input--mono { font-family: var(--font-mono); font-size: 0.9375rem; }

.domain-form { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.domain-form .input { flex: 1 1 14rem; max-width: 22rem; }

.notice {
  padding: 0.75rem 1rem; border-radius: var(--radius-control); border: 1px solid var(--line);
  background: var(--panel); font-size: 0.875rem; line-height: 1.6;
}
.notice--bad { color: var(--bad); background: var(--bad-surface); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.notice--ok { color: var(--ok); background: var(--ok-surface); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.notice--warn { color: var(--warn); background: var(--warn-surface); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }

/* Prose: articles, feature pages, legal ----------------------------------- */

.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-muted); }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { margin-top: 2.25em; font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; color: var(--ink); }
.prose h3 { margin-top: 1.75em; font-size: 1.125rem; line-height: 1.4; font-weight: 600; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: 0.75em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--ink-faint); }
.prose code { padding: 0.1em 0.35em; border-radius: 4px; background: var(--panel-muted); border: 1px solid var(--line); font-size: 0.875em; color: var(--ink); }
.prose pre { overflow-x: auto; padding: 1rem 1.25rem; border-radius: var(--radius-panel); background: #0b0f16; color: #d5dbe4; font-size: 0.875rem; line-height: 1.65; }
.prose pre code { padding: 0; background: none; border: 0; color: inherit; }
.prose blockquote { padding-left: 1.25rem; border-left: 2px solid var(--line-strong); color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.5em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.table-scroll { overflow-x: auto; }

.article-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-top: 1.25rem; font-size: 0.8125rem; color: var(--ink-faint); }

/* Tools -------------------------------------------------------------------- */

.result { margin-top: 2rem; }
.facts { display: grid; }
.facts > div { display: flex; justify-content: space-between; gap: 1.5rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--ink-muted); flex-shrink: 0; }
.facts dd { min-width: 0; text-align: right; font-family: var(--font-mono); font-size: 0.8125rem; overflow-wrap: anywhere; }

/* The check stream: a fixed-dark terminal in both themes, as in the app. */
.stream {
  border-radius: var(--radius-panel); overflow: hidden;
  background: #0b0f16; color: #d5dbe4; border: 1px solid #1c2230;
  font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.6;
}
.stream-head { display: flex; align-items: center; justify-content: space-between; padding: 0.625rem 1rem; border-bottom: 1px solid #1c2230; color: #7f8a9b; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; }
.stream ol { list-style: none; margin: 0; padding: 0.5rem 0; }
.stream li { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.875rem; padding: 0.375rem 1rem; animation: stream-in 220ms ease-out backwards; }
.stream .t { color: #7f8a9b; }
.stream .up { color: #34d399; }
.stream .down { color: #fb7185; }
.stream .blocked { color: #fbbf24; }
.stream .idle { color: #8391a5; }
.stream .why { grid-column: 2; color: #96a0ae; }

.spinner { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }

/* Cookie banner ------------------------------------------------------------ */

.cookie-banner { position: fixed; inset: auto 0 0; z-index: 50; padding: 1rem; }
.cookie-banner .inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 48rem; margin-inline: auto; padding: 1.25rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-panel); box-shadow: var(--shadow-pop);
  animation: toast-in 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner .copy { flex: 1 1 22rem; min-width: 0; }
.cookie-banner h2 { font-size: 0.875rem; font-weight: 600; }
.cookie-banner p { margin-top: 0.25rem; font-size: 0.8125rem; color: var(--ink-muted); line-height: 1.6; }
@media (min-width: 640px) { .cookie-banner { padding: 1.5rem; } }

/* Motion ------------------------------------------------------------------- */

@keyframes breathe { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-2px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes stream-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes owl-blink {
  0%, 92% { transform: scaleY(0); }
  93.4%, 94.2% { transform: scaleY(1); }
  95.6%, 96.4% { transform: scaleY(0); }
  97.8% { transform: scaleY(1); }
  99.2%, 100% { transform: scaleY(0); }
}
.owl-eyelid { transform-box: fill-box; transform-origin: top; transform: scaleY(0); animation: owl-blink 9s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .owl-eyelid { animation: none; }
}

/* Utilities ---------------------------------------------------------------- */

.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; } .mt-12 { margin-top: 3rem; } .mt-16 { margin-top: 4rem; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; } .wrap { flex-wrap: wrap; }
.min-w-0 { min-width: 0; } .w-full { width: 100%; }
.max-w-md { max-width: 28rem; }

/* ==========================================================================
 * Pages: features, pricing, about, contact, legal (fork M1).
 * Page-specific only; nothing here restyles a shared class.
 * ======================================================================== */

/* Features hub: the comparison table. */
.compare { width: 100%; min-width: 40rem; border-collapse: collapse; text-align: left; }
.compare thead th { padding: 0.75rem 1rem 0.75rem 0; border-bottom: 2px solid var(--line); font-size: 0.875rem; font-weight: 600; }
.compare thead th:nth-child(2) { color: var(--ink-muted); width: 11rem; }
.compare thead th:nth-child(3) { width: 9rem; }
.compare tbody th, .compare td { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tbody th { font-size: 0.9375rem; font-weight: 500; }
.compare .note { display: block; margin-top: 0.25rem; font-size: 0.8125rem; font-weight: 400; line-height: 1.6; color: var(--ink-faint); }

.depth { padding-top: 1.25rem; border-top: 2px solid var(--line); }
.depth h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.depth h3 a { text-decoration: none; }
.depth h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.depth p { margin-top: 0.625rem; font-size: 0.875rem; line-height: 1.7; color: var(--ink-muted); }
.depth .more { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 1rem; font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.depth .more svg { width: 0.875rem; height: 0.875rem; transition: transform 0.15s; }
.depth .more:hover svg { transform: translateX(2px); }

/* Feature pages. */
.page-hero .breadcrumbs { margin-bottom: 0.25rem; }
.keep-reading { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.keep-reading ul { list-style: none; padding: 0; margin-top: 1rem; display: grid; gap: 0.625rem; }

/* Pricing. */
.interval-toggle { display: flex; justify-content: center; margin-bottom: 1rem; }
.segmented { display: inline-flex; gap: 0.25rem; padding: 0.25rem; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--panel-muted); }
.segmented button {
  display: inline-flex; align-items: center; gap: 0.5rem;
  height: 2.25rem; padding: 0 1rem; border: 0; border-radius: calc(var(--radius-control) - 2px);
  background: none; color: var(--ink-muted); font-size: 0.875rem; font-weight: 600; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-checked="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgb(20 23 28 / 0.08), 0 0 0 1px var(--line-strong); }
.segmented .label { font-size: 0.625rem; }
.pricing-note { margin-bottom: 2.5rem; text-align: center; font-size: 0.875rem; color: var(--ink-faint); text-wrap: balance; }
.plans { display: grid; gap: 1.5rem; align-items: stretch; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
}
.plan--featured { border-color: var(--line-strong); box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-pop); }
@media (min-width: 1024px) { .plan--featured { margin-block: -0.75rem; padding-block: 2.5rem 2.25rem; } }
.plan-flag {
  position: absolute; top: -0.75rem; left: 1.5rem;
  padding: 0.25rem 0.75rem; border-radius: 999px;
  background: var(--action); color: var(--action-ink);
  font-family: var(--font-mono); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
}
.plan-name { font-size: 1rem; font-weight: 600; }
.price { display: flex; align-items: baseline; gap: 0.25rem; margin-top: 1rem; }
.price .amount { font-size: 2.5rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.price .per { font-size: 0.875rem; color: var(--ink-faint); }
.price-note { margin-top: 0.5rem; min-height: 1.25rem; font-size: 0.8125rem; color: var(--ink-faint); }
.plan-blurb { margin-top: 1rem; font-size: 0.875rem; line-height: 1.65; color: var(--ink-muted); }
.plan-lines { flex: 1; display: grid; align-content: start; gap: 0.625rem; margin: 1.5rem 0 0; padding: 1.25rem 0 0; list-style: none; border-top: 2px solid var(--line); font-size: 0.875rem; color: var(--ink-muted); }
.plan-lines li { display: flex; align-items: flex-start; gap: 0.625rem; line-height: 1.5; }
.plan-lines svg { width: 1rem; height: 1rem; flex-shrink: 0; margin-top: 0.125rem; color: var(--ink-faint); }
.plan-lines li.lead { color: var(--ink); font-weight: 500; }
.plan-action { margin-top: 1.75rem; }

/* About. */
.about-intro { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .about-intro { grid-template-columns: auto minmax(0, 1fr); gap: 4rem; align-items: start; } }
.portrait img { width: 10rem; height: 10rem; object-fit: cover; border-radius: var(--radius-panel); border: 1px solid var(--line); box-shadow: var(--shadow-panel); }
@media (min-width: 1024px) { .portrait img { width: 14rem; height: 14rem; } }
.about-copy { margin-top: 1.5rem; max-width: 42rem; display: grid; gap: 1.25rem; font-size: 1.0625rem; line-height: 1.75; color: var(--ink-muted); }
.promises .panel-body { padding: 1.5rem; }

/* Contact. */
.contact-layout { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 4rem; align-items: start; } }
.contact-points { display: grid; gap: 1.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px solid var(--line); }
.contact-points dt { font-size: 0.875rem; font-weight: 600; }
.contact-points dd { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.65; color: var(--ink-muted); }
.contact-panel { padding: 1.5rem; }
@media (min-width: 640px) { .contact-panel { padding: 2rem; } }
.contact-form { display: grid; gap: 1.25rem; }
.contact-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding-top: 0.25rem; }
.contact-done { outline: none; }
.select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f695f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 1rem; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot { min-height: 65px; }

/* Legal. */
.legal { font-size: 1rem; }

/* ==========================================================================
 * Pages: /tools, /compare, /check (fork M2). Only classes these pages own;
 * nothing above is restyled here.
 * ========================================================================== */

.page-intro { max-width: 48rem; }
.page-intro .h2 { margin-top: 0.875rem; }
.page-intro .lede { margin-top: 1.25rem; }

/* Comparisons index: an editorial list rather than cards. */
.compare-list { list-style: none; padding: 0; margin-top: 2.5rem; border-top: 1px solid var(--line); }
.compare-list li { border-bottom: 1px solid var(--line); }
.compare-item { display: block; padding: 1.5rem 0; text-decoration: none; }
.compare-item h2 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; }
.compare-item p { margin-top: 0.375rem; font-size: 0.9375rem; line-height: 1.65; color: var(--ink-muted); }
.compare-item .label { display: block; margin-top: 0.75rem; }
.compare-item:hover h2, .compare-item:focus-visible h2 { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }

.article-body { font-size: 1.0625rem; }

/* Tool cards and the "all at once" band on /tools. */
.tool-cards { list-style: none; padding: 0; }
.tool-cards li { display: flex; }
.tool-cards .card-link { display: flex; flex-direction: column; width: 100%; }
.tool-cards .card-link h2 { font-size: 1rem; font-weight: 600; }
.tool-cards .card-link .more { margin-top: auto; padding-top: 1rem; }
.tool-all {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding: 1.25rem 1.5rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-panel);
}

/* A tool page: the field, the result panel, the related links. */
.field-error { margin-top: 0.75rem; font-size: 0.875rem; color: var(--bad); }
.challenge-slot { margin-top: 1rem; min-height: 65px; }
.result-panel { overflow: hidden; }
.result-title { min-width: 0; overflow-wrap: anywhere; }
.result-host { color: var(--ink-muted); }
.result-failure { font-size: 0.9375rem; line-height: 1.65; color: var(--ink-muted); }
.result-section + .result-section, .result-failure + .result-section { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.facts dd.plain { font-family: var(--font-sans); font-size: 0.875rem; }
.result-watch {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem;
  padding: 1rem 1.25rem; border-top: 1px solid var(--line); background: var(--panel-muted);
  font-size: 0.875rem; color: var(--ink-muted);
}
.result-watch p { flex: 1 1 16rem; min-width: 0; overflow-wrap: anywhere; }
.result-watch .mono { color: var(--ink); }
.result-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-top: 0.875rem; font-size: 0.8125rem; color: var(--ink-faint); }
.result-link p { min-width: 0; overflow-wrap: anywhere; }
.result-link a { font-family: var(--font-mono); color: var(--ink-muted); text-underline-offset: 3px; }
.result-link a:hover { color: var(--ink); }
.skeleton { height: 0.75rem; border-radius: var(--radius-cell); background: var(--panel-muted); animation: skeleton-pulse 1.4s ease-in-out infinite; }
@keyframes skeleton-pulse { 50% { opacity: 0.45; } }
.btn .spinner { width: 0.875rem; height: 0.875rem; }
.tool-related { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.tool-related ul { list-style: none; padding: 0; margin-top: 1rem; display: grid; gap: 0.625rem; font-size: 0.9375rem; }

/* /check: the terminal, laid out for lines that wrap rather than truncate. */
.check-run { margin-top: 2.5rem; }
.stream { box-shadow: var(--shadow-panel); }
.stream-head { gap: 0.75rem; }
.stream-dots { display: flex; gap: 6px; }
.stream-dots i { width: 10px; height: 10px; border-radius: 50%; background: #fb7185; opacity: 0.85; }
.stream-dots i:nth-child(2) { background: #fbbf24; }
.stream-dots i:nth-child(3) { background: #34d399; }
.stream-title { margin-right: auto; text-transform: none; letter-spacing: 0; }
.stream-live { display: inline-flex; align-items: center; gap: 0.375rem; }
.stream-live i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; animation: breathe 2.4s ease-in-out infinite; }
.stream-live.is-done i { animation: none; background: #7f8a9b; }
.stream-live.is-stopped i { animation: none; background: #fbbf24; }
.stream .stream-body { max-height: 28rem; min-height: 6rem; overflow: auto; }
.stream .stream-body:focus-visible { outline: 2px solid #e9e6e0; outline-offset: -2px; }
.stream li.ck-line { grid-template-columns: 4.5rem 6.5rem 2.75rem 3.5rem minmax(0, 1fr); gap: 0.125rem 0.75rem; align-items: baseline; }
.ck-place { color: #96a0ae; letter-spacing: 0.04em; }
.ck-glyph { font-weight: 500; }
.ck-ms { color: #e9e6e0; text-align: right; }
.ck-msg { color: #d5dbe4; overflow-wrap: anywhere; }
.stream li.ck-line .why { grid-column: 5; color: #96a0ae; font-size: 0.75rem; overflow-wrap: anywhere; }
.stream-foot { margin: 0; padding: 0.75rem 1rem; border-top: 1px solid #1c2230; color: #96a0ae; font-family: var(--font-sans); font-size: 0.8125rem; line-height: 1.6; }
@media (max-width: 639px) {
  .stream li.ck-line { grid-template-columns: auto auto auto minmax(0, 1fr); gap: 0.125rem 0.625rem; }
  .ck-ms { text-align: left; }
  .ck-msg, .stream li.ck-line .why { grid-column: 1 / -1; }
}
.check-reads .feature .label { margin-bottom: 0.5rem; }
.check-reads .feature p:not(.label) { margin-top: 0; }
.check-reads .feature .link { display: inline-block; margin-top: 0.625rem; }
.panel-head .result-title { font-size: 0.75rem; font-weight: 500; }
.result-host { text-transform: none; letter-spacing: 0; font-size: 0.8125rem; }
.check-reads .feature h3.label { font-size: 0.6875rem; font-weight: 500; }
/* .btn--ghost sets no background, so on a <button> the browser's ButtonFace
   shows through (grey, and 2:1 in dark mode). Scoped here; see fork M2's note. */
.result-link .btn--ghost { background: transparent; }
.result-link .btn--ghost:hover { background: var(--panel-muted); }
.more-grid .card-link { display: flex; flex-direction: column; }
.more-grid .card-link .more { margin-top: auto; padding-top: 1rem; }
.grid.tool-cards, .grid.more-grid { gap: 1rem; }
