:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-muted: #f1f5f9;
  --card: #ffffff;
  --card-alt: #f8fafc;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #475569;
  --brand: #1d4ed8;
  --brand-strong: #1e40af;
  --brand-soft: #eff6ff;
  --brand-border: #bfdbfe;
  --ok: #166534;
  --ok-soft: #f0fdf4;
  --ok-border: #bbf7d0;
  --warn: #92400e;
  --warn-soft: #fffbeb;
  --warn-border: #fde68a;
  --danger: #991b1b;
  --danger-soft: #fef2f2;
  --danger-border: #fecaca;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-frame: 0 1px 3px rgba(15, 23, 42, 0.05), 0 12px 32px -8px rgba(15, 23, 42, 0.08);
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--brand-strong); }
.nav-links a:not(.btn), .btn, .brand-link { text-decoration: none; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  background: var(--brand);
  color: #ffffff;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { left: 12px; }

h1, h2, h3 {
  color: var(--ink);
  letter-spacing: -0.025em;
  margin-top: 0;
}
h2 {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  line-height: 1.22;
  margin-bottom: 8px;
}
h3 {
  font-size: 1.0625rem;
  line-height: 1.32;
  margin-bottom: 6px;
}

.hidden { display: none !important; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Header */
.topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 8px 0;
  flex-wrap: wrap;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-link:hover { color: var(--ink); }
.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--brand);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-links a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 11px;
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-links a:not(.btn):hover {
  color: var(--ink);
  background: var(--bg-muted);
}

/* Hero */
.hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 44px;
  align-items: center;
}
@media (max-width: 940px) {
  .hero { padding: 40px 0 36px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(1.9rem, 2.55vw, 2.35rem);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.028em;
  margin: 0 0 16px;
  color: var(--ink);
}

.lead {
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 56ch;
}

.hero-scope-note {
  margin: 22px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Product Inspection Window */
.product-window {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-frame);
  overflow: hidden;
  min-width: 0;
}
.pw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.pw-dots {
  display: inline-flex;
  gap: 6px;
  flex-shrink: 0;
}
.pw-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}
.pw-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pw-body {
  padding: 20px;
}
.pw-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 500px) {
  .pw-metrics { grid-template-columns: minmax(0, 1fr); }
}
.pw-metric {
  padding: 11px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.pw-metric-lbl {
  font-size: 0.75rem;
  color: var(--muted);
}
.pw-metric-val {
  margin-top: 2px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.pw-checks {
  border: 1px solid var(--line);
  border-radius: 8px;
  divide-y: 1px solid var(--line);
}
.pw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--line);
}
.pw-row:last-child { border-bottom: 0; }
.pw-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink-2);
}
.pw-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  border-radius: 4px;
  padding: 1px 6px;
  flex-shrink: 0;
}
.pw-pass {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ok);
  flex-shrink: 0;
}
.pw-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--muted);
}
.pw-footer a { font-weight: 600; }

/* Sections & Cards */
.section-block {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}
.section-block:last-child {
  border-bottom: 0;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.section-sub {
  color: var(--ink-2);
  font-size: 0.96rem;
  margin: 0;
  max-width: 66ch;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-xs);
}
.card-alt { background: var(--card-alt); }
.card code, p code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: var(--bg-muted);
  color: var(--ink);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}

/* Pills — clean sentence case */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  flex-shrink: 0;
}
.pill-ok { background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok-border); }
.pill-warn { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn-border); }
.pill-danger { background: var(--danger-soft); color: var(--danger); border: 1px solid var(--danger-border); }
.pill-brand { background: var(--brand-soft); color: var(--brand-strong); border: 1px solid var(--brand-border); }

/* Buttons */
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: #ffffff;
}
.btn-secondary {
  background: #ffffff;
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  background: var(--bg-soft);
  border-color: #94a3b8;
  color: var(--ink);
}
.btn-sm { min-height: 36px; padding: 6px 13px; font-size: 0.8125rem; }

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}

.sample-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 5px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 0.875rem;
  font-family: inherit;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #94a3b8;
}

.verdict-panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  margin-top: 18px;
}
.verdict-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.relay-box {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 14px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.rule-list {
  padding-left: 18px;
  margin: 12px 0;
  color: var(--ink-2);
  font-size: 0.875rem;
}
.rule-list li { margin-bottom: 6px; }

/* Pricing */
.price-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.price-card.featured {
  background: #ffffff;
  border: 2px solid var(--brand);
  box-shadow: var(--shadow-xs);
}
.price-tag {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 8px 0;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.price-tag span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}
.muted-text {
  color: var(--ink-2);
  font-size: 0.9rem;
  margin: 0;
}
.mor-note {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

/* Footer */
footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.8125rem;
}
footer p { margin: 0 0 10px; }
footer p:last-child { margin-bottom: 0; }
footer a { color: var(--ink-2); font-weight: 500; }

@media (max-width: 720px) {
  .nav-hide-mobile { display: none !important; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 2.05rem; }
  .card { padding: 18px; }
  .cta-row .btn { width: 100%; }
}
