/* ── Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Variables ──────────────────────────────────────── */
:root {
  --bg:              #F2EDE3;
  --bg-card:         #FAF6EE;
  --ink:             #15140F;
  --ink-muted:       #6A675F;
  --ink-faint:       #A39E92;
  --hairline:        rgba(21,20,15,0.14);
  --hairline-strong: rgba(21,20,15,0.32);
  --accent:          oklch(0.68 0.13 152);
  --accent-soft:     oklch(0.93 0.06 152);
  --warn:            oklch(0.78 0.14 75);
  --warn-soft:       oklch(0.95 0.06 75);
  --danger:          oklch(0.62 0.18 25);
  --danger-soft:     oklch(0.94 0.05 25);
  --sans:            "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:            "JetBrains Mono", ui-monospace, monospace;
  --radius:          10px;
  --topbar-h:        56px;
}
[data-theme="dark"] {
  --bg:              #15140F;
  --bg-card:         #1F1D17;
  --ink:             #F2EDE3;
  --ink-muted:       rgba(242,237,227,0.65);
  --ink-faint:       rgba(242,237,227,0.42);
  --hairline:        rgba(242,237,227,0.10);
  --hairline-strong: rgba(242,237,227,0.22);
  --accent:          oklch(0.72 0.14 152);
  --accent-soft:     oklch(0.32 0.06 152);
  --warn:            oklch(0.78 0.14 75);
  --warn-soft:       oklch(0.34 0.06 75);
  --danger:          oklch(0.68 0.18 25);
  --danger-soft:     oklch(0.34 0.08 25);
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01","cv11";
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; }
img, svg { display: block; }

/* ── Layout ─────────────────────────────────────────── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.page-body { padding-top: calc(var(--topbar-h) + 32px); padding-bottom: 64px; }

/* ── Topbar ─────────────────────────────────────────── */
.topbar, .landing-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--topbar-h);
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  display: flex; align-items: center;
}
.topbar-inner {
  width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center;
}
.topbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 600; color: var(--ink);
  margin-right: 32px; flex-shrink: 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
}
.brand-name em { font-style: normal; color: var(--accent); }
.topbar-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.topbar-nav a {
  padding: 6px 12px; border-radius: 7px; font-size: 14px;
  color: var(--ink-muted); transition: color 0.15s, background 0.15s;
}
.topbar-nav a:hover { color: var(--ink); background: var(--hairline); }
.topbar-nav a.active { color: var(--ink); font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.topbar-btn {
  width: 32px; height: 32px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted); font-size: 16px;
  transition: color 0.15s, background 0.15s;
}
.topbar-btn:hover { color: var(--ink); background: var(--hairline); }
.icon-btn {
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-card);
  display: grid; place-items: center;
  color: var(--ink-muted);
  transition: background 0.12s, color 0.12s;
}
.icon-btn:hover { background: var(--bg); color: var(--ink); }
.user-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--bg-card);
  font-size: 13px; cursor: pointer;
  transition: background 0.12s;
}
.user-pill:hover { background: var(--bg); }
.user-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 500;
  flex-shrink: 0;
}
.user-pill .user-email { color: var(--ink-muted); font-family: var(--mono); font-size: 12px; }
.notif-btn { position: relative; }
.notif-badge {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--danger);
  border: 1.5px solid var(--bg);
}
.user-pill-wrap { position: relative; }
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 160px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  overflow: hidden; z-index: 200;
}
.user-dd-item {
  display: block; width: 100%;
  padding: 10px 16px;
  font-size: 14px; text-align: left;
  color: var(--ink); background: none; border: none;
  cursor: pointer;
  transition: background 0.1s;
}
.user-dd-item:hover { background: var(--hairline); }
.user-dd-logout { color: var(--danger); }
.user-dropdown form { margin: 0; }

/* ── Landing topbar ─────────────────────────────────── */
.topbar .wrap.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px; color: var(--ink-muted);
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 8px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--bg-card);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 60%, transparent);
  animation: lp-pulse 2.2s infinite;
  flex-shrink: 0;
}
@keyframes lp-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 55%, transparent); }
  70%  { box-shadow: 0 0 0 8px color-mix(in oklch, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 0%, transparent); }
}
.lp-theme-btn {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--ink-muted);
  border: 1px solid var(--hairline);
  transition: color 0.15s, background 0.15s;
}
.lp-theme-btn:hover { color: var(--ink); background: var(--hairline); }
@media (max-width: 1080px) { .nav-links { display: none; } }
@media (max-width: 600px) {
  .status-pill { display: none; }
  .topbar .wrap.topbar-inner { height: 56px; }
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--hairline-strong); color: var(--ink);
  background: var(--bg-card); cursor: pointer; transition: opacity 0.15s;
  text-decoration: none; line-height: 1.4;
}
.btn:hover { opacity: 0.8; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
}
.btn-danger {
  background: var(--danger); color: var(--bg);
  border-color: var(--danger);
}
.btn-ghost {
  background: transparent; border-color: var(--hairline);
  color: var(--ink-muted);
}
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Card ────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.card-title { font-size: 13px; font-weight: 500; color: var(--ink-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Form elements ───────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-muted); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px; font-size: 14px; font-family: var(--sans);
  background: var(--bg); color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group input[type="checkbox"] {
  width: auto; margin-right: 6px; accent-color: var(--accent);
}
.form-hint { font-size: 12px; color: var(--ink-faint); margin-top: 4px; }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
.error-msg { color: var(--danger); font-size: 13px; margin-bottom: 12px; }
.success-msg { color: var(--accent); font-size: 13px; margin-bottom: 12px; }

/* ── Badges & pips ───────────────────────────────────── */
.pip {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--ink-faint);
}
.pip.up    { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pip.down  { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.pip.warn  { background: var(--warn);   box-shadow: 0 0 0 3px var(--warn-soft); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 99px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.03em;
}
.badge-up      { background: var(--accent-soft); color: var(--accent); }
.badge-down    { background: var(--danger-soft); color: var(--danger); }
.badge-warn    { background: var(--warn-soft);   color: var(--warn); }
.badge-neutral { background: var(--hairline);    color: var(--ink-muted); }

/* ── Monitor card grid ───────────────────────────────── */
/* ── Dashboard layout ────────────────────────────────── */
.db-wrap { max-width: 1240px; margin: 0 auto; padding: 40px 32px 80px; }
.db-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end;
  gap: 32px; margin-bottom: 36px;
}
.db-title {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.06; letter-spacing: -0.025em;
  margin: 0;
}
.db-title em { font-style: normal; color: var(--ink-muted); font-weight: 400; }
.num { font-style: normal; color: var(--ink-faint); }

/* ── Summary grid ────────────────────────────────────── */
.summary-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 20px; overflow: hidden;
  margin-bottom: 28px;
}
.summary-card {
  background: var(--bg-card); padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 6px;
  min-height: 130px;
}
.summary-card .k {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted);
}
.summary-card .v {
  font-size: 38px; font-weight: 500; letter-spacing: -0.03em;
  line-height: 1; margin-top: 6px;
}
.summary-card .meta {
  font-family: var(--mono); font-size: 11px; color: var(--ink-faint);
  margin-top: auto; letter-spacing: 0.04em;
}
.summary-card .meta.up   { color: var(--accent); }
.summary-card .meta.down { color: var(--danger); }
.summary-card .meta.warn { color: oklch(0.5 0.12 75); }
.summary-spark { display: flex; gap: 2px; align-items: flex-end; height: 30px; margin-top: 6px; }
.summary-spark span { flex: 1; min-width: 2px; background: var(--ink); opacity: 0.7; border-radius: 1px; }
.summary-spark span.bad { background: var(--danger); opacity: 1; }

/* ── Toolbar ─────────────────────────────────────────── */
.db-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; gap: 16px; flex-wrap: wrap;
}
.filter-chips { display: flex; gap: 6px; }
.filter-chip {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--hairline);
  color: var(--ink-muted); cursor: pointer; transition: all 0.12s;
}
.filter-chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter-chip:hover:not(.active) { color: var(--ink); }
.filter-chip .count { margin-left: 6px; opacity: 0.6; }

/* ── Monitor list ────────────────────────────────────── */
.monitor-list {
  border: 1px solid var(--hairline); border-radius: 20px;
  overflow: hidden; background: var(--bg-card);
}
.db-empty { text-align: center; padding: 80px 20px; color: var(--ink-muted); }
.db-empty h3 { font-weight: 500; font-size: 22px; color: var(--ink); margin: 0 0 8px; }
.mon-card {
  display: grid;
  grid-template-columns: 24px minmax(200px, 1.6fr) 1.2fr 1fr 0.8fr 36px;
  gap: 20px; align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-card);
  text-decoration: none; color: inherit;
  cursor: pointer; transition: background 0.12s;
}
.mon-card:last-child { border-bottom: none; }
.mon-card:hover { background: var(--bg); }
.mon-card .name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mon-card .name strong { font-weight: 500; font-size: 15px; letter-spacing: -0.005em; }
.mon-card .name .url {
  font-family: var(--mono); font-size: 12px; color: var(--ink-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mon-card .spark { display: flex; gap: 2px; align-items: flex-end; height: 32px; min-width: 0; }
.mon-card .spark span { flex: 1; min-width: 2px; background: var(--ink); opacity: 0.55; border-radius: 1px; }
.mon-card .spark span.bad { background: var(--danger); opacity: 1; }
.mon-card .spark span.warn { background: var(--warn); opacity: 1; }
.mon-card .last { font-family: var(--mono); font-size: 12px; color: var(--ink-muted); text-align: right; }
.mon-card .last strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 2px; font-size: 13px; }
.mon-card .uptime { text-align: right; font-weight: 500; font-size: 18px; letter-spacing: -0.015em; }
.mon-card .uptime .meta {
  display: block; font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-muted); font-weight: 400; margin-top: 2px;
}
.mon-card .arrow {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
  color: var(--ink-muted); background: var(--bg);
  transition: all 0.15s; justify-self: center;
}
.mon-card:hover .arrow { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── Page header ─────────────────────────────────────── */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.page-title { font-size: 26px; font-weight: 600; }
.page-sub { font-size: 14px; color: var(--ink-muted); margin-top: 2px; }
.section-label { font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }

/* ── Uptime stats row ────────────────────────────────── */
.uptime-row { display: flex; gap: 12px; margin-bottom: 16px; }
.uptime-cell {
  flex: 1; background: var(--bg-card); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 16px; text-align: center;
}
.uptime-cell .v { font-size: 24px; font-weight: 600; }
.uptime-cell .k { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }

/* ── Tables ──────────────────────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; padding: 8px 12px; color: var(--ink-faint); font-weight: 500; border-bottom: 1px solid var(--hairline); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--hairline); }
.mono { font-family: var(--mono); }

/* ── Auth page ───────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 32px 16px;
}
.auth-card {
  width: 100%; max-width: 400px;
  background: var(--bg-card); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 32px;
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo .brand-name { font-size: 22px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.auth-title { font-size: 18px; font-weight: 600; margin-bottom: 20px; }
.auth-switch { text-align: center; margin-top: 20px; font-size: 13px; color: var(--ink-muted); }
.auth-switch a { color: var(--accent); }

/* ── Monitor detail ──────────────────────────────────── */
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-muted); padding: 8px 0;
  background: none; border: none; cursor: pointer;
  text-decoration: none; margin-bottom: 24px;
  transition: color 0.12s;
}
.back-link:hover { color: var(--ink); }
.detail-head {
  display: grid; grid-template-columns: 1fr auto; gap: 24px;
  align-items: end; margin-bottom: 32px;
  padding-bottom: 24px; border-bottom: 1px solid var(--hairline);
}
.detail-head .eyebrow {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-muted); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.detail-head h1 {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(32px, 3.6vw, 46px);
  letter-spacing: -0.025em; line-height: 1; margin: 0 0 10px;
}
.detail-head .url { font-family: var(--mono); font-size: 13px; color: var(--ink-muted); word-break: break-all; }
.detail-actions { display: flex; gap: 8px; }

.detail-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--hairline);
  border: 1px solid var(--hairline); border-radius: 20px;
  overflow: hidden; margin-bottom: 32px;
}
.detail-stat { background: var(--bg-card); padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 6px; }
.detail-stat .k { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted); }
.detail-stat .v { font-size: 48px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; margin-top: 8px; }
.detail-stat .v.bad  { color: var(--danger); }
.detail-stat .v.warn { color: oklch(0.5 0.12 75); }
.detail-stat .meta { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin-top: 8px; letter-spacing: 0.04em; }

.panel { background: var(--bg-card); border: 1px solid var(--hairline); border-radius: 20px; padding: 26px; margin-bottom: 24px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 16px; }
.panel-head h3 { font-family: var(--sans); font-weight: 500; font-size: 17px; letter-spacing: -0.012em; margin: 0; }
.panel-head .badge { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); color: oklch(0.36 0.07 152); }
.panel-head .badge.warn { background: var(--warn-soft); color: oklch(0.40 0.10 75); }
.panel-head .badge.down { background: var(--danger-soft); color: oklch(0.42 0.13 25); }

.chart { display: flex; gap: 3px; align-items: flex-end; height: 160px; padding: 8px 0 0; position: relative; }
.chart .axis-y { position: absolute; left: 0; right: 0; top: 0; bottom: 0; pointer-events: none; }
.chart .axis-y span { position: absolute; left: 0; font-family: var(--mono); font-size: 10px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; background: var(--bg-card); padding-right: 8px; }
.chart .bars { flex: 1; min-width: 0; overflow: hidden; display: flex; gap: 2px; align-items: flex-end; padding-left: 56px; height: 100%; }
.chart .bars span { flex: 1; min-width: 3px; background: var(--ink); opacity: 0.5; border-radius: 1px; transition: opacity 0.15s; cursor: default; }
.chart .bars span:hover { opacity: 1; }
.chart .bars span.bad  { background: var(--danger); opacity: 1; }
.chart .bars span.warn { background: var(--warn); opacity: 0.9; }
.chart-axis-x { display: flex; justify-content: space-between; padding: 10px 0 0 56px; border-top: 1px solid var(--hairline); margin-top: 6px; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); }

.kv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; }
.kv { background: var(--bg); padding: 14px 16px; }
.kv .k { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted); margin-bottom: 4px; }
.kv .v { font-size: 14px; }
.kv .v code { font-family: var(--mono); font-size: 12px; }
.ssl-valid { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--accent-soft); color: oklch(0.36 0.07 152); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.ssl-valid.warn { background: var(--warn-soft); color: oklch(0.40 0.10 75); }
.ssl-valid.down { background: var(--danger-soft); color: oklch(0.42 0.13 25); }

.alert-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.alert-row:last-child { border-bottom: none; }
.alert-row .ico { width: 28px; height: 28px; border-radius: 8px; background: var(--bg); border: 1px solid var(--hairline-strong); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--ink-muted); }
.alert-row .body { font-size: 14px; }
.alert-row .body strong { font-weight: 500; }
.alert-row .body .sub { color: var(--ink-muted); font-size: 12px; margin-top: 2px; }
.switch { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--hairline-strong); cursor: pointer; transition: background 0.15s; border: none; padding: 0; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); transition: transform 0.18s cubic-bezier(.2,.9,.3,1.1); }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(16px); }

.checks { display: grid; grid-template-columns: minmax(160px,1fr) 90px 80px 100px; font-size: 13px; }
.checks > div { padding: 10px 12px; border-bottom: 1px solid var(--hairline); }
.checks .head { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted); background: var(--bg); }
.checks .time { font-family: var(--mono); font-size: 12px; }
.checks .stat { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 8px; border-radius: 999px; }
.checks .stat.up   { background: var(--accent-soft); color: oklch(0.36 0.07 152); }
.checks .stat.warn { background: var(--warn-soft); color: oklch(0.40 0.10 75); }
.checks .stat.down { background: var(--danger-soft); color: oklch(0.42 0.13 25); }
.checks .code    { font-family: var(--mono); font-size: 12px; }
.checks .latency { font-family: var(--mono); font-size: 12px; }

.setting-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.setting-row:last-child { border-bottom: none; }
.setting-row .lbl strong { font-weight: 500; }
.setting-row .lbl .sub { color: var(--ink-muted); font-size: 12px; margin-top: 2px; }
.setting-row select { font: inherit; font-size: 13px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--hairline-strong); background: var(--bg); cursor: pointer; }
.danger-btn { font: inherit; font-size: 13px; padding: 8px 14px; border-radius: 999px; border: 1px solid color-mix(in oklch, var(--danger) 30%, var(--hairline)); background: var(--bg); color: var(--danger); cursor: pointer; }
.danger-btn:hover { background: var(--danger-soft); }

.detail-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: start; }
.detail-grid .panel { margin-bottom: 0; }
.detail-col { display: flex; flex-direction: column; gap: 24px; }

/* ── Stub page ───────────────────────────────────────── */
.stub-page { max-width: 480px; padding-top: 64px; }
.stub-page .stub-icon { font-size: 48px; margin-bottom: 16px; }
.stub-page h1 { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.stub-page p { color: var(--ink-muted); font-size: 15px; }

/* ── Search modal ────────────────────────────────────── */
@keyframes srch-fade { from { opacity:0 } to { opacity:1 } }
@keyframes srch-pop  { from { transform:translateY(10px) scale(0.97); opacity:0 } to { transform:none; opacity:1 } }
.search-backdrop {
  position: fixed; inset: 0;
  background: rgba(21,20,15,0.4);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 300;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 80px 16px 16px;
  animation: srch-fade 0.15s ease;
}
[data-theme="dark"] .search-backdrop { background: rgba(0,0,0,0.6); }
.search-modal {
  background: var(--bg); border: 1px solid var(--hairline);
  border-radius: 16px; max-width: 600px; width: 100%;
  max-height: calc(100vh - 120px);
  display: flex; flex-direction: column;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.3);
  animation: srch-pop 0.2s cubic-bezier(.2,.9,.3,1.1);
  overflow: hidden;
}
.search-input-row {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--hairline);
  color: var(--ink-muted); flex-shrink: 0;
}
.search-input-row input {
  flex: 1; border: none; outline: none; background: transparent;
  font: inherit; font-size: 16px; color: var(--ink); min-width: 0;
}
.search-input-row input::placeholder { color: var(--ink-faint); }
.search-input-row kbd {
  font-family: var(--mono); font-size: 10px; padding: 3px 7px;
  border-radius: 4px; background: var(--bg-card);
  border: 1px solid var(--hairline-strong); border-bottom-width: 2px;
  color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.06em;
}
.search-results { overflow-y: auto; flex: 1; min-height: 0; padding: 8px 8px 0; }
.search-group { margin-bottom: 8px; }
.search-group-label {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-faint); padding: 10px 12px 6px;
}
.search-item {
  display: grid; grid-template-columns: 32px 1fr auto;
  gap: 12px; align-items: center; width: 100%;
  padding: 10px 12px; border-radius: 10px;
  color: var(--ink); font: inherit; text-align: left;
  cursor: pointer; text-decoration: none; margin-bottom: 1px;
}
.search-item.active, .search-item:hover { background: var(--bg-card); }
[data-theme="dark"] .search-item.active { background: rgba(242,237,227,0.06); }
.search-ico {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px; font-weight: 500; flex: none;
}
.search-body { min-width: 0; }
.search-label { font-size: 14px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-sub { font-family: var(--mono); font-size: 11px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.search-enter { font-family: var(--mono); font-size: 12px; color: var(--ink-muted); padding: 2px 6px; border-radius: 4px; background: var(--bg-card); }
.search-empty { padding: 40px 20px; text-align: center; }
.search-empty strong { display: block; font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.search-empty span { color: var(--ink-muted); font-size: 13px; }
.search-foot {
  display: flex; gap: 16px; padding: 10px 18px;
  border-top: 1px solid var(--hairline); background: var(--bg-card);
  font-size: 11px; color: var(--ink-muted); flex-wrap: wrap; flex-shrink: 0;
}
.search-foot kbd {
  font-family: var(--mono); font-size: 9px; padding: 1px 5px;
  border-radius: 3px; background: var(--bg); border: 1px solid var(--hairline-strong);
  margin: 0 2px; text-transform: uppercase;
}

/* ── Incidents page ──────────────────────────────────── */
.incident-row-open td { color: var(--danger); }
.incident-row {
  display: grid; grid-template-columns: 6px 1fr;
  border-bottom: 1px solid var(--hairline);
  border-radius: var(--radius); overflow: hidden;
  margin-bottom: 6px;
}
.incident-row:last-child { margin-bottom: 0; }
.incident-bar { background: var(--bg-card); }
.incident-bar .bar { display: block; width: 6px; height: 100%; background: var(--accent); }
.incident-bar .bar.down { background: var(--danger); }
.incident-body {
  padding: 20px 24px; display: flex; flex-direction: column; gap: 10px;
  background: var(--bg-card);
}
.incident-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.incident-id { display: flex; align-items: center; margin-bottom: 8px; }
.incident-title { font-weight: 500; font-size: 16px; letter-spacing: -0.01em; margin: 0 0 4px; }
.incident-cause { font-size: 13px; color: var(--ink-muted); }
.incident-time { text-align: right; flex: none; }
.incident-time .started {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-muted); margin-bottom: 4px;
}
.incident-time .duration { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.incident-meta {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-muted);
  padding-top: 8px; border-top: 1px solid var(--hairline);
}
.status-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--accent-soft); color: var(--ink);
}
.status-tag.down { background: var(--danger-soft); color: var(--danger); }
.summary-card .v.small { font-size: 32px; }
.incident-checks {
  border: 1px solid var(--hairline); border-radius: 8px; overflow: hidden;
  font-size: 13px;
}
.inc-checks-head {
  display: grid; grid-template-columns: 1fr 70px 60px 80px;
  padding: 6px 12px;
  background: var(--bg); border-bottom: 1px solid var(--hairline);
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-faint);
}
.inc-checks-row {
  display: grid; grid-template-columns: 1fr 70px 60px 80px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--hairline);
}
.inc-checks-row:last-child { border-bottom: none; }
.inc-checks-row.bad { background: var(--danger-soft); }

/* ── Landing: Hero ───────────────────────────────────── */
.lp-hero { padding: 72px 0 40px; }
.lp-hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px;
  align-items: end;
}
.lp-hero-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-muted);
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
}
.lp-hero-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--hairline-strong); }
.lp-hero-title {
  font-weight: 400; font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 24px;
  text-wrap: balance;
}
.lp-hero-title em { font-style: normal; color: var(--ink-muted); }
.lp-hero-sub {
  font-size: 16px; color: var(--ink-muted); max-width: 480px;
  margin: 0 0 32px; line-height: 1.55; text-wrap: pretty;
}
.lp-hero-form {
  display: flex; gap: 8px; align-items: center;
  background: var(--bg-card); padding: 6px 6px 6px 18px;
  border-radius: 999px; border: 1px solid var(--hairline);
  max-width: 460px;
}
.lp-hero-form input {
  flex: 1; border: none; outline: none; background: transparent;
  font: inherit; font-size: 15px; color: var(--ink); min-width: 0;
}
.lp-hero-form input::placeholder { color: var(--ink-faint); }
.lp-hero-meta { display: flex; gap: 20px; margin-top: 18px; font-size: 13px; color: var(--ink-muted); flex-wrap: wrap; }
.lp-hero-meta-item { display: flex; align-items: center; gap: 8px; }
.lp-check {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); display: inline-grid; place-items: center;
  color: var(--bg); font-size: 9px; flex-shrink: 0;
}

/* Hero art — penguin + annotations */
.lp-hero-art {
  position: relative; align-self: stretch;
  display: flex; flex-direction: column; align-items: stretch; justify-content: end;
  min-height: 520px;
}
.lp-penguin-stage {
  position: relative; flex: 1;
  display: flex; align-items: end; justify-content: center;
}
.lp-penguin-stage img {
  width: 86%; max-width: 420px; display: block;
  position: relative; z-index: 2;
  mix-blend-mode: multiply; filter: contrast(1.05);
}
[data-theme="dark"] .lp-penguin-stage img { mix-blend-mode: normal; filter: none; }
.lp-stage-horizon {
  position: absolute; left: 0; right: 0; bottom: 16%;
  height: 1px; background: var(--hairline-strong); z-index: 1;
}
.lp-stage-horizon::before, .lp-stage-horizon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--hairline);
}
.lp-stage-horizon::before { top: -8px; }
.lp-stage-horizon::after  { top: 6px; }
.lp-notes { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.lp-notes svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; color: var(--ink-muted); }
.lp-note {
  position: absolute; font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted);
  display: inline-flex; align-items: center; gap: 6px;
  background: color-mix(in oklch, var(--bg) 85%, transparent);
  padding: 2px 0; white-space: nowrap;
}
.lp-pill {
  font-family: var(--mono); font-size: 9px; padding: 2px 6px;
  border-radius: 999px; background: var(--ink); color: var(--bg);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.lp-pill-accent { background: var(--accent); color: var(--ink); }
.lp-pill-warn   { background: var(--warn);   color: var(--ink); }
.lp-note-1 { top: 10%; left: 0; max-width: 180px; }
.lp-note-2 { top: 30%; right: 0; }
.lp-note-3 { top: 62%; left: 2%; }
.lp-note-4 { bottom: 16%; right: 0; }
.lp-note-stamp {
  position: absolute; right: 0; top: 0;
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint);
  border: 1px solid var(--hairline); padding: 6px 10px; border-radius: 6px;
  transform: rotate(2deg);
  background: color-mix(in oklch, var(--bg) 60%, transparent);
  white-space: nowrap;
}
@media (max-width: 900px) {
  .lp-hero-grid { grid-template-columns: 1fr; }
  .lp-hero-art { min-height: 360px; }
}
@media (max-width: 600px) {
  .lp-hero { padding: 56px 0 24px; }
  .lp-hero-art { min-height: 280px; }
  .lp-hero-meta { gap: 12px; }
}

/* ── Landing: Live monitor widget ─────────────────────── */
.lp-monitor {
  border: 1px solid var(--hairline); border-radius: 24px;
  background: var(--bg-card); overflow: hidden;
}
.lp-monitor-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--hairline);
  background: linear-gradient(to bottom, rgba(0,0,0,0.02), transparent);
}
.lp-monitor-head-left { display: flex; align-items: center; gap: 16px; }
.lp-window-dots { display: flex; gap: 6px; }
.lp-window-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--hairline-strong); }
.lp-monitor-tabs { display: flex; gap: 6px; }
.lp-tab {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 6px 10px; border-radius: 999px; color: var(--ink-muted);
  border: 1px solid transparent; background: none;
}
.lp-tab.active { background: var(--bg); border-color: var(--hairline); color: var(--ink); }
.lp-monitor-head-right {
  font-family: var(--mono); font-size: 11px; color: var(--ink-muted);
  display: flex; align-items: center; gap: 8px;
}
.lp-monitor-row {
  display: grid; grid-template-columns: minmax(160px, 1.4fr) 0.7fr 1.6fr 0.7fr auto;
  align-items: center; gap: 18px; padding: 14px 22px;
  border-bottom: 1px solid var(--hairline); font-size: 14px;
}
.lp-monitor-row:last-child { border-bottom: none; }
.lp-site-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lp-site-favicon {
  width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center; font-size: 13px; font-weight: 500;
  color: var(--bg); flex-shrink: 0;
}
.lp-site-url { font-family: var(--mono); font-size: 12px; color: var(--ink-muted); }
.lp-site-name strong { font-weight: 500; }
.lp-status-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 9px; border-radius: 999px;
}
.lp-tag-up   { background: var(--accent-soft); color: oklch(0.36 0.07 152); }
.lp-tag-warn { background: var(--warn-soft);   color: oklch(0.40 0.10 75);  }
.lp-tag-down { background: var(--danger-soft); color: oklch(0.42 0.13 25);  }
.lp-dot-xs { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; flex-shrink: 0; }
.lp-dot-warn { background: var(--warn); }
.lp-dot-down { background: var(--danger); }
.lp-spark { display: flex; gap: 2px; align-items: end; height: 28px; }
.lp-spark span { flex: 1; min-width: 2px; background: var(--ink); opacity: 0.55; border-radius: 1px; transition: height 0.4s ease; }
.lp-spark-bad  { background: var(--danger) !important; opacity: 1 !important; }
.lp-spark-warn { background: var(--warn)   !important; opacity: 1 !important; }
.lp-response { font-family: var(--mono); font-size: 13px; text-align: right; }
.lp-unit { color: var(--ink-faint); font-size: 11px; }
.lp-row-action { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); display: flex; align-items: center; gap: 6px; }
@media (max-width: 900px) {
  .lp-monitor-row { grid-template-columns: 1.5fr 0.7fr 0.7fr auto; }
  .lp-monitor-row .lp-spark { display: none; }
}
@media (max-width: 600px) {
  .lp-monitor-head { padding: 12px 14px; }
  .lp-monitor-row { grid-template-columns: 1fr auto auto; gap: 12px; padding: 12px 14px; }
  .lp-monitor-row .lp-row-action { display: none; }
  .lp-monitor-tabs { gap: 4px; }
  .lp-tab { padding: 4px 8px; font-size: 10px; }
}

/* ── Landing: Ticker ─────────────────────────────────── */
.lp-ticker {
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  background: var(--bg-card); overflow: hidden; padding: 14px 0;
}
.lp-ticker-track {
  display: flex; gap: 48px; white-space: nowrap;
  animation: lp-scroll 50s linear infinite;
  font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted);
}
.lp-ticker-track span { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.lp-sep { color: var(--ink-faint); }
@keyframes lp-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Landing: Section heads ──────────────────────────── */
section { padding: 96px 0; }
.lp-section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: end; margin-bottom: 56px;
}
.lp-section-label {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink-muted); display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.lp-num {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); color: var(--bg); font-size: 10px;
}
.lp-section-title {
  font-weight: 400; font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.08; letter-spacing: -0.022em; margin: 0 0 20px;
  max-width: 18ch; text-wrap: balance;
}
.lp-section-title em { font-style: normal; color: var(--ink-muted); }
.lp-section-lead { font-size: 16px; color: var(--ink-muted); max-width: 520px; line-height: 1.55; text-wrap: pretty; }
@media (max-width: 900px) { .lp-section-head { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 600px) { section { padding: 56px 0; } }

/* ── Landing: Features ───────────────────────────────── */
.lp-features {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--hairline);
  border: 1px solid var(--hairline); border-radius: 24px; overflow: hidden;
}
.lp-feature {
  background: var(--bg); padding: 32px 28px 36px;
  display: flex; flex-direction: column; gap: 18px; min-height: 280px;
}
.lp-feature-icon {
  width: 36px; height: 36px; border: 1px solid var(--hairline-strong); border-radius: 10px;
  display: grid; place-items: center; font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--ink-muted);
}
.lp-feature h3 { font-weight: 500; font-size: 19px; line-height: 1.25; letter-spacing: -0.012em; margin: 0; }
.lp-feature p  { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 1.55; }
.lp-feature-foot {
  margin-top: auto; font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint);
  display: flex; justify-content: space-between;
}
@media (max-width: 1080px) { .lp-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .lp-features { grid-template-columns: 1fr; } .lp-feature { min-height: 0; padding: 24px 22px 26px; } }

/* ── Landing: How it works ───────────────────────────── */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lp-step {
  background: var(--bg-card); border: 1px solid var(--hairline); border-radius: 20px;
  padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 320px;
}
.lp-step-num { font-family: var(--mono); font-size: 13px; color: var(--ink-faint); letter-spacing: 0.08em; }
.lp-step h4  { font-weight: 500; font-size: 19px; line-height: 1.25; letter-spacing: -0.012em; margin: 0; }
.lp-step p   { margin: 0; color: var(--ink-muted); font-size: 14px; }
.lp-step-visual {
  margin-top: 8px; border: 1px dashed var(--hairline-strong);
  border-radius: 12px; padding: 14px; font-family: var(--mono); font-size: 11px;
  color: var(--ink-muted); background: var(--bg); min-height: 96px;
}
.lp-kbd {
  font-family: var(--mono); font-size: 10px; padding: 2px 5px; border-radius: 4px;
  background: var(--bg); border: 1px solid var(--hairline-strong); border-bottom-width: 2px;
}
@media (max-width: 900px) { .lp-steps { grid-template-columns: 1fr; } .lp-step { min-height: 0; } }

/* ── Landing: Incident ribbon ────────────────────────── */
.lp-ribbon {
  background: var(--ink); color: var(--bg); border-radius: 24px;
  padding: 56px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start;
}
[data-theme="dark"] .lp-ribbon { background: #0B0A07; }
.lp-timeline { display: flex; flex-direction: column; }
.lp-timeline-item {
  display: grid; grid-template-columns: 100px 22px 1fr;
  gap: 16px; padding: 18px 0;
  border-bottom: 1px solid rgba(242,237,227,0.12); align-items: start;
}
.lp-timeline-item:last-child { border-bottom: none; }
.lp-timeline-time {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(242,237,227,0.55);
}
.lp-timeline-marker {
  width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; justify-self: center;
}
.lp-tm-up   { background: var(--accent); }
.lp-tm-warn { background: var(--warn); }
.lp-tm-down { background: var(--danger); }
.lp-timeline-msg { font-size: 14px; }
.lp-timeline-msg strong { font-weight: 500; color: rgba(242,237,227,0.9); }
.lp-timeline-msg span { display: block; color: rgba(242,237,227,0.55); font-size: 12px; margin-top: 4px; font-family: var(--mono); }
@media (max-width: 900px) { .lp-ribbon { grid-template-columns: 1fr; padding: 36px; } }
@media (max-width: 600px) { .lp-ribbon { padding: 28px 22px; } .lp-timeline-item { grid-template-columns: 72px 14px 1fr; gap: 12px; } }

/* ── Landing: Pricing ────────────────────────────────── */
.lp-pricing {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--hairline); border: 1px solid var(--hairline);
  border-radius: 24px; overflow: hidden;
}
.lp-plan {
  background: var(--bg); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 20px;
}
.lp-plan-featured { background: var(--bg-card); }
.lp-plan-head { display: flex; align-items: baseline; justify-content: space-between; }
.lp-plan-name { font-size: 20px; font-weight: 500; letter-spacing: -0.012em; }
.lp-plan-badge {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 3px 8px; border-radius: 999px;
  background: var(--accent-soft); color: oklch(0.36 0.07 152);
}
.lp-plan-price {
  font-size: 44px; line-height: 1; font-weight: 400; letter-spacing: -0.03em;
  display: flex; align-items: baseline; gap: 4px;
}
.lp-plan-price .lp-unit { font-family: var(--mono); font-size: 11px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.lp-plan-tag { color: var(--ink-muted); font-size: 13px; min-height: 36px; }
.lp-plan-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-plan-features li { font-size: 14px; display: flex; gap: 10px; align-items: center; color: var(--ink-muted); }
.lp-plan-features li::before { content: "+"; font-family: var(--mono); color: var(--accent); width: 16px; flex-shrink: 0; text-align: center; }
.lp-plan-features li strong { color: var(--ink); font-weight: 500; }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 999px; }
.lp-billing-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px; background: var(--bg-card);
  border: 1px solid var(--hairline); border-radius: 999px;
}
.lp-billing-toggle button {
  border: none; background: none; padding: 7px 14px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted);
  border-radius: 999px;
}
.lp-billing-toggle button.active { background: var(--ink); color: var(--bg); }
@media (max-width: 1080px) { .lp-pricing { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .lp-billing-toggle button { padding: 6px 10px; font-size: 10px; } }

/* ── Landing: Final CTA ──────────────────────────────── */
.lp-cta-final { text-align: center; padding: 120px 0; }
.lp-cta-final h2 {
  font-weight: 400; font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 32px; text-wrap: balance;
}
.lp-cta-final h2 em { font-style: normal; color: var(--ink-muted); }
@media (max-width: 600px) { .lp-cta-final { padding: 72px 0 56px; } }

/* ── Landing: Footer ─────────────────────────────────── */
footer { border-top: 1px solid var(--hairline); padding: 48px 0 36px; font-size: 13px; color: var(--ink-muted); }
.lp-footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 48px;
}
.lp-footer-col h5 {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink-faint); margin: 0 0 14px;
}
.lp-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-footer-col li a:hover { color: var(--ink); }
.lp-footer-tagline { font-size: 15px; color: var(--ink-muted); max-width: 30ch; line-height: 1.5; }
.lp-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--hairline);
}
@media (max-width: 900px) { .lp-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .lp-footer-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 28px; }
  .lp-footer-bottom { flex-direction: column; gap: 12px; align-items: start; }
}

/* ── Public status page ──────────────────────────────── */
.status-header { padding: 48px 0 32px; text-align: center; }
.status-header h1 { font-size: 28px; font-weight: 600; }
.status-header p  { color: var(--ink-muted); margin-top: 6px; }
.status-all-up {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent); font-weight: 500; margin-top: 12px;
}
.status-monitor-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--hairline);
}
.status-monitor-row:last-child { border-bottom: none; }
.status-monitor-name  { flex: 1; font-weight: 500; }
.status-monitor-url   { font-size: 12px; color: var(--ink-faint); font-family: var(--mono); }
.status-monitor-stats { display: flex; gap: 16px; font-size: 13px; color: var(--ink-muted); }

/* ── Landing: Add-site modal ─────────────────────────── */
.lp-modal-backdrop {
  position: fixed; inset: 0; background: rgba(21,20,15,0.32);
  display: grid; place-items: center; z-index: 200;
  animation: lp-fade 0.2s ease; padding: 24px;
}
@keyframes lp-fade { from { opacity: 0; } to { opacity: 1; } }
.lp-modal {
  background: var(--bg); border-radius: 20px;
  border: 1px solid var(--hairline); padding: 32px;
  max-width: 460px; width: 100%;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.3);
  animation: lp-pop 0.25s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes lp-pop { from { transform: translateY(8px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.lp-modal h3 { font-weight: 500; font-size: 20px; letter-spacing: -0.012em; margin: 0 0 6px; }
.lp-modal p  { margin: 0 0 20px; color: var(--ink-muted); font-size: 14px; }
.lp-modal label {
  display: block; font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted); margin-bottom: 6px;
}
.lp-modal input, .lp-modal select {
  width: 100%; padding: 12px 14px; font: inherit;
  border: 1px solid var(--hairline-strong); border-radius: 12px;
  background: var(--bg-card); color: var(--ink); margin-bottom: 16px; outline: none;
}
.lp-modal input:focus, .lp-modal select:focus { border-color: var(--ink); }
.lp-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

/* ── Auth modal ───────────────────────────────────────── */
.auth-modal {
  background: var(--bg);
  border-radius: 20px;
  border: 1px solid var(--hairline);
  padding: 0;
  max-width: 440px; width: 100%;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.3);
  animation: lp-pop 0.25s cubic-bezier(.2,.9,.3,1.1);
  overflow: hidden;
}
.auth-head { padding: 22px 28px 0; position: relative; }
.auth-close {
  position: absolute; top: 16px; right: 16px;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  background: var(--bg); display: grid; place-items: center;
  color: var(--ink-muted); cursor: pointer; font-size: 16px;
}
.auth-close:hover { background: var(--bg-card); color: var(--ink); }
.auth-tabs {
  display: flex; gap: 4px;
  padding: 4px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  margin-bottom: 20px;
  width: max-content;
}
.auth-tabs button {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  border: none; background: none; cursor: pointer;
  color: var(--ink-muted);
  transition: background 0.12s, color 0.12s;
}
.auth-tabs button.active { background: var(--ink); color: var(--bg); }
.auth-modal h3 {
  font-weight: 500; font-size: 22px; letter-spacing: -0.018em;
  margin: 0 0 6px; min-height: 28px;
}
.auth-sub { color: var(--ink-muted); font-size: 14px; margin: 0 0 22px; min-height: 22px; }
.auth-body { padding: 0 28px 24px; }
.auth-field { margin-bottom: 12px; }
.auth-field label {
  display: block;
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-muted); margin-bottom: 6px;
}
.auth-field input {
  width: 100%; padding: 11px 14px;
  font: inherit; font-size: 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  background: var(--bg-card); color: var(--ink);
  outline: none; box-sizing: border-box;
  transition: border-color 0.12s;
}
.auth-field input:focus { border-color: var(--ink); }
.auth-extra { min-height: 40px; display: flex; flex-direction: column; justify-content: center; margin-top: 8px; }
.auth-forgot { text-align: right; }
.auth-forgot a { font-size: 12px; color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px; }
.auth-legal { font-size: 11px; color: var(--ink-faint); line-height: 1.5; text-align: center; }
.auth-legal a { text-decoration: underline; text-underline-offset: 2px; }
.auth-submit { width: 100%; margin-top: 8px; padding: 12px 18px; font-size: 14px; }
.auth-foot {
  text-align: center; padding: 16px 28px;
  border-top: 1px solid var(--hairline);
  background: var(--bg-card);
  font-size: 13px; color: var(--ink-muted);
}
.auth-foot button {
  border: none; background: none; font: inherit; padding: 0; cursor: pointer;
  color: var(--ink); text-decoration: underline; text-underline-offset: 3px;
}
.auth-foot button:hover { color: var(--accent); }

/* ── Utility ─────────────────────────────────────────── */
.text-muted { color: var(--ink-muted); }
.text-faint { color: var(--ink-faint); }
.text-mono  { font-family: var(--mono); }
.text-sm    { font-size: 13px; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
