:root {
  --page-bg: #f5f7fb;
  --page-bg-2: #eef2f8;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.72);
  --ink: #171717;
  --muted: #536072;
  --line: #d9e1ed;
  --line-strong: #c6d1df;
  --accent: #0a72ef;
  --accent-strong: #095ec6;
  --accent-soft: #ebf5ff;
  --accent-ink: #ffffff;
  --shadow-line: rgba(15, 23, 42, 0.08) 0px 0px 0px 1px;
  --shadow-card: rgba(15, 23, 42, 0.08) 0px 0px 0px 1px, rgba(15, 23, 42, 0.06) 0px 12px 32px -18px, #fafcff 0px 0px 0px 1px;
  --shadow-soft: 0 18px 44px -26px rgba(15, 23, 42, 0.22);
  --alive: #177245;
  --alive-bg: #e2f3e9;
  --stale: #8a6116;
  --stale-bg: #fbf0d9;
  --dead: #a12626;
  --dead-bg: #fbe4e4;
  --unknown: #5b6b7a;
  --unknown-bg: #e8edf2;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(10, 114, 239, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(103, 80, 164, 0.08), transparent 22%),
    linear-gradient(180deg, #fbfcff 0%, var(--page-bg) 32%, #f8fafc 100%);
  line-height: 1.6;
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
a:hover { text-decoration: underline; }
code {
  font-family: 'Geist Mono', ui-monospace, monospace;
  background: #eef3fb;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.92em;
}
pre code { display: block; padding: 12px; }

h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); margin: 0 0 18px; }
h2 { font-size: clamp(1.85rem, 3vw, 2.8rem); margin: 0 0 14px; }
h3 { font-size: 1.12rem; margin: 0 0 8px; }
p { margin: 0 0 14px; }

.small { font-size: 0.9rem; }
.muted { color: var(--muted); }

.surface-card {
  background: var(--surface-soft);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  border-radius: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 252, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217, 225, 237, 0.9);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink);
  text-decoration: none;
}

.brand-title { font-weight: 700; font-size: 1.08rem; }
.brand-sub {
  font-size: 0.77rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-header nav a.on,
.site-header nav a:hover { color: var(--ink); }

.hero {
  padding: 72px 0 52px;
  border-bottom: 1px solid rgba(217, 225, 237, 0.85);
}

.hero-grid,
.offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.hero-copy { max-width: 680px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 12px;
}

.lede {
  font-size: clamp(1.06rem, 2vw, 1.22rem);
  color: var(--muted);
  max-width: 52rem;
}

.hero-badges,
.cta-row,
.footer-meta,
.proof-strip,
.pager { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-badges { margin-top: 22px; }

.signal-pill,
.panel-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.79rem;
  font-weight: 600;
}

.panel-label {
  background: #f2f6fc;
  color: #36506b;
  margin-bottom: 16px;
}

.cta-row { margin: 22px 0 8px; }
.cta-row.compact { gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: var(--shadow-card);
}

.btn-primary {
  background: linear-gradient(180deg, #1b84ff 0%, var(--accent) 100%);
  color: var(--accent-ink);
}

.btn-primary:hover { background: linear-gradient(180deg, #1676e3 0%, var(--accent-strong) 100%); }

.launch-note { margin-top: 4px; }

.inline-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-line);
  color: var(--muted);
}

.hero-panel { padding: 22px; }

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.kpi-card {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-line);
}

.kpi-value {
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.kpi-label,
.mini-metric span { font-size: 0.82rem; color: var(--muted); }

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}

.mini-metric {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(245, 248, 252, 0.92);
  box-shadow: inset 0 0 0 1px rgba(217, 225, 237, 0.9);
}

.mini-metric strong { display: block; margin-top: 2px; font-size: 1.02rem; }

.trust-checklist { display: grid; gap: 12px; }

.trust-item {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-line);
}

.trust-item strong { display: block; margin-bottom: 4px; }
.trust-item span { color: var(--muted); font-size: 0.93rem; }

.section { padding: 56px 0; }
.section.alt {
  background: linear-gradient(180deg, rgba(237, 242, 249, 0.56) 0%, rgba(246, 248, 252, 0.3) 100%);
  border-top: 1px solid rgba(217, 225, 237, 0.9);
  border-bottom: 1px solid rgba(217, 225, 237, 0.9);
}

.section.offer {
  background: linear-gradient(180deg, rgba(255, 248, 230, 0.8) 0%, rgba(255, 252, 241, 0.95) 100%);
  border-top: 1px solid #efe4b8;
  border-bottom: 1px solid #efe4b8;
}

.section-head { max-width: 760px; margin-bottom: 18px; }
.section-copy { color: var(--muted); max-width: 52rem; }

.prose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  color: var(--muted);
}

.cards,
.signal-grid,
.double-callout,
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card,
.callout-card,
.list-card,
.table-card,
.sidebar-card,
.filter-shell,
.cta-panel {
  padding: 20px;
}

.card p,
.callout-card p,
.list-card p { color: var(--muted); }

.supporting { margin-top: 16px; font-weight: 600; }

.trust-rule {
  font-weight: 700;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.preview-box { padding: 12px; }
.static-row { border-bottom: 0; }
.inline-links { margin-top: 10px; }

.check-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.compact-list { gap: 8px; }
.muted-list li { color: var(--muted); }

.faq-item {
  padding: 18px 0;
  border-top: 1px solid rgba(198, 209, 223, 0.85);
}

.faq-item:first-of-type { border-top: 0; }

.cta-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.filter-shell { margin-bottom: 22px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }

.filter-bar input[type="search"],
.filter-bar select,
.claim-form input,
.claim-form textarea {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
}

.claim-form textarea { min-height: 132px; resize: vertical; }

.server-list {
  display: grid;
  gap: 12px;
}

.server-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.server-row:hover {
  transform: translateY(-2px);
  box-shadow: rgba(15, 23, 42, 0.08) 0px 0px 0px 1px, rgba(15, 23, 42, 0.1) 0px 16px 32px -20px;
}

.server-main { min-width: 0; }
.server-name {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
}
.server-name:hover { color: var(--accent); }
.server-id {
  font-size: 0.81rem;
  font-family: 'Geist Mono', ui-monospace, monospace;
}
.server-desc { margin: 8px 0 0; color: var(--muted); font-size: 0.95rem; }
.server-side { text-align: right; flex-shrink: 0; min-width: 122px; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.badge.b-lg { font-size: 0.92rem; padding: 6px 14px; }
.b-alive { background: var(--alive-bg); color: var(--alive); }
.b-stale { background: var(--stale-bg); color: var(--stale); }
.b-dead { background: var(--dead-bg); color: var(--dead); }
.b-unknown { background: var(--unknown-bg); color: var(--unknown); }
.c-alive { color: var(--alive); }
.c-stale { color: var(--stale); }
.c-dead { color: var(--dead); }
.c-unknown { color: var(--unknown); }

.pager { align-items: center; margin-top: 22px; }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.6fr);
  gap: 18px;
  align-items: start;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.detail-head h1 { margin: 0; }

table.kv { width: 100%; border-collapse: collapse; margin: 10px 0 0; }
table.kv th,
table.kv td {
  text-align: left;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.kv th {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.offer-hero { background: transparent; }
.price { font-size: 1.55rem; font-weight: 700; margin: 12px 0 0; }

.claim-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.claim-form input[type="email"],
.claim-form input[type="text"] { flex: 1 1 220px; }
.claim-form.stacked { flex-direction: column; align-items: flex-start; }
.claim-form.stacked input,
.claim-form.stacked textarea { width: 100%; max-width: 520px; }

/* Compact labelled form card (monitoring request). Block layout on purpose:
   .claim-form's column flex must not put the shared `flex: 1 1 220px` basis
   on the controls' vertical axis, and label/control pairs need their own
   width cap so fields and the CTA align inside the card. */
.form-card { padding: 22px; }
.form-card > :last-child { margin-bottom: 0; }

/* Hidden anti-spam honeypot (see src/lib/forms/intake.mts HONEYPOT_FIELD).
   Visually hidden but present in the a11y tree-minus: aria-hidden on the
   wrapper keeps screen readers off it, and no display:none so naive bots
   still auto-fill it. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-field { display: block; width: 100%; max-width: 520px; }
.form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.flash {
  background: var(--alive-bg);
  color: var(--alive);
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-line);
}

.site-footer {
  border-top: 1px solid rgba(217, 225, 237, 0.9);
  margin-top: 56px;
  padding: 28px 0 42px;
  background: rgba(247, 250, 252, 0.85);
}

.site-footer p { margin: 6px 0; }
.footer-meta { gap: 10px 18px; font-size: 0.92rem; }

@media (max-width: 920px) {
  .hero-grid,
  .offer-grid,
  .split-panel,
  .detail-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .hero-kpis,
  .mini-metrics { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .header-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero { padding-top: 52px; }
  .wrap { padding: 0 18px; }

  .server-row,
  .detail-head {
    flex-direction: column;
  }

  .server-side { text-align: left; min-width: 0; }

  /* Phone widths: the stacked form's primary CTA becomes a full-width
     action, capped to the field column so it stays aligned. */
  .claim-form.stacked .btn { width: 100%; max-width: 520px; }
}
