/* ──────────────────────────────────────────────────────────────────────────
   ReproGuard — Precision Lab theme  v2
   No build step. Plain CSS with tokens. Single signature: the calibration
   seal + the evidence terminal. Everything else stays quiet and forensic.
   ────────────────────────────────────────────────────────────────────────── */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,700;9..144,900&family=Instrument+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap");

:root {
  /* ink & paper — lab-cool, not warm-cream default */
  --ink: #0a1020;
  --ink-2: #25324d;
  --ink-muted: #5b6b84;
  --ink-faint: #8fa0b8;
  --paper: #ffffff;
  --paper-subtle: #f7f8fb;
  --paper-inset: #eef2f7;
  --paper-grid: #e6ebf3;
  --border: #e1e7ef;
  --border-strong: #c8d2e2;
  --border-faint: #eef2f7;

  /* brand — electric indigo, now with ink depth */
  --brand: #3b37e8;
  --brand-deep: #2927b8;
  --brand-tint: #eff0ff;
  --brand-ring: rgba(59, 55, 232, 0.16);
  --brand-ring-strong: rgba(59, 55, 232, 0.28);

  /* signals — kept honest, not washed */
  --critical: #d12030;
  --critical-tint: #fff1f2;
  --high: #d95b0c;
  --high-tint: #fff4e6;
  --medium: #a66e00;
  --medium-tint: #fff8e1;
  --low: #1d5bd6;
  --low-tint: #eff4ff;
  --info: #64748b;
  --info-tint: #f1f5f9;
  --ok: #0e7a5a;
  --ok-tint: #eaf6f0;

  /* surfaces */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-xs: 0 1px 2px rgba(10, 16, 32, 0.06);
  --shadow-sm: 0 2px 10px rgba(10, 16, 32, 0.06);
  --shadow: 0 8px 24px rgba(10, 16, 32, 0.08);
  --shadow-lg: 0 16px 40px rgba(10, 16, 32, 0.12);
  --shadow-xl: 0 24px 56px rgba(10, 16, 32, 0.14);

  /* type */
  --font-display: "Fraunces", Georgia, serif;
  --font-sans:
    "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-mono:
    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --nav-h: 64px;
  --maxw: 1160px;
  --content-w: 68ch;

  /* motion */
  --ease: out cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── base ── */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection {
  background: var(--brand-tint);
}

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

/* type scale — display is Fraunces italic hook, body is Instrument */
h1,
h2,
h3,
h4 {
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0;
  font-family: var(--font-sans);
}
h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
h1 .accent {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: normal;
  letter-spacing: -0.03em;
  color: var(--brand);
}
h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}
p {
  margin: 0 0 1rem;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.lede {
  font-size: 1.08rem;
  color: var(--ink-2);
  max-width: 66ch;
  line-height: 1.65;
}
.muted {
  color: var(--ink-muted);
}
.small {
  font-size: 0.875rem;
}
.mono {
  font-family: var(--font-mono);
}
.k {
  color: #7c3aed;
}
.s {
  color: #0e7a5a;
}
.c {
  color: var(--ink-faint);
  font-style: italic;
}
.f {
  color: #1d4ed8;
}
.n {
  color: #9a3412;
}

/* skip */
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}
.skip:focus {
  left: 12px;
}

/* ── nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--brand-ring-strong),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.nav.scrolled::after {
  opacity: 1;
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  background: var(--brand);
  width: 0;
  transition: width 0.1s linear;
  z-index: 60;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  color: var(--ink);
  font-size: 1.06rem;
  letter-spacing: -0.025em;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
  filter: drop-shadow(0 1px 4px rgba(59, 55, 232, 0.25));
}
.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 6px 2px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}
.nav-links a:hover {
  color: var(--brand);
  text-decoration: none;
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
.nav-links a.active {
  color: var(--brand);
}
.nav-links a.active::after {
  transform: scaleX(1);
}
.nav .nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  border: 1px solid var(--ink);
  transition:
    background 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}
.nav-cta::after {
  display: none;
}
.nav-cta:hover {
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59, 55, 232, 0.22);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  gap: 8px;
  align-items: center;
}
.nav-toggle .burger {
  width: 16px;
  height: 12px;
  position: relative;
  display: inline-block;
}
.nav-toggle .burger i {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition:
    transform 0.25s,
    opacity 0.2s;
}
.nav-toggle .burger i:nth-child(1) {
  top: 0;
}
.nav-toggle .burger i:nth-child(2) {
  top: 5px;
}
.nav-toggle .burger i:nth-child(3) {
  top: 10px;
}
.nav-toggle[aria-expanded="true"] .burger i:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .burger i:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .burger i:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ── buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(59, 55, 232, 0.22);
}
.btn-primary:hover {
  background: var(--brand-deep);
  box-shadow: 0 12px 28px rgba(59, 55, 232, 0.28);
}
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover {
  border-color: var(--ink-faint);
  background: var(--paper-subtle);
  box-shadow: var(--shadow-sm);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 12px;
}
.btn .arrow {
  transition: transform 0.2s var(--ease);
}
.btn:hover .arrow {
  transform: translateX(3px);
}

/* ── hero ── */
.hero {
  padding: 56px 0 36px;
  background:
    radial-gradient(
      900px 500px at 85% -10%,
      var(--brand-tint) 15%,
      transparent 60%
    ),
    radial-gradient(700px 400px at -5% 30%, #f0f7ff 0%, transparent 55%),
    linear-gradient(180deg, var(--paper-subtle), var(--paper));
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--paper-grid) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.55;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 44px;
  align-items: start;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-tint);
  border: 1px solid #ddd8ff;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-ring);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px var(--brand-ring);
  }
  50% {
    box-shadow: 0 0 0 7px transparent;
  }
}
.hero h1 {
  margin-bottom: 16px;
  max-width: 14ch;
}
.hero .lede {
  margin-bottom: 6px;
}
.hero-note {
  font-size: 0.86rem;
  color: var(--ink-muted);
  margin-top: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-note .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-faint);
}
.hero-badges {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.hero-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: #fff;
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 6px;
}
.hero-badges .hero-badge {
  border-color: var(--border);
}

/* install block — forensic evidence tag look */
.install {
  margin-top: 22px;
  background: #0b0f1c;
  color: #e6eaf2;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #1e2a44;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.install-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #11182c;
  border-bottom: 1px solid #1e2a44;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #8ea0bf;
}
.install-head .dots {
  display: flex;
  gap: 6px;
}
.install-head .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}
.install-head .title {
  margin-left: 6px;
  letter-spacing: 0.02em;
}
.install pre {
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 14px 18px;
  color: #e6eaf2;
  font-size: 0.84rem;
  line-height: 1.7;
}
.install pre code {
  color: #e6eaf2;
}
.install .prompt {
  color: #7aa2ff;
}
.install .comment {
  color: #6b7fa3;
}
.install .copy-btn {
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5ea;
}
.install .copy-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

/* ── terminal artifact — the signature ── */
.terminal {
  background: #0b1020;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #18233f;
  box-shadow: var(--shadow-xl);
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  position: relative;
  transform: rotate(-0.18deg);
}
.terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
  pointer-events: none;
  z-index: 2;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  background: #121a31;
  border-bottom: 1px solid #1e2a44;
  position: relative;
  z-index: 1;
}
.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2);
}
.terminal-title {
  margin-left: 8px;
  color: #8ea0bf;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.terminal-meta {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
}
.terminal-pill {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #1e2a44;
  color: #8ea0bf;
  border: 1px solid #253455;
  padding: 3px 7px;
  border-radius: 999px;
}
.terminal-body {
  padding: 16px 18px 18px;
  overflow-x: auto;
  line-height: 1.75;
  position: relative;
  background: #0b1020;
}
.terminal-body .cmd {
  color: #8be9fd;
}
.terminal-body .dim {
  color: #5b7094;
}
.terminal-body .sev-critical {
  color: #ff7b84;
  font-weight: 700;
}
.terminal-body .sev-high {
  color: #ffb86b;
  font-weight: 700;
}
.terminal-body .sev-medium {
  color: #ffd67a;
  font-weight: 700;
}
.terminal-body .sev-low {
  color: #8ab4ff;
  font-weight: 700;
}
.terminal-body .code {
  color: #c3e88d;
}
.terminal-body .score {
  color: #ff7b84;
  font-weight: 800;
}
/* scanline signature */
.terminal-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(123, 156, 255, 0.9),
    transparent
  );
  top: 42%;
  opacity: 0;
  pointer-events: none;
  animation: scan 4.2s ease-in-out infinite;
  animation-delay: 1.2s;
}
@keyframes scan {
  0% {
    transform: translateY(-36px);
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  45% {
    transform: translateY(36px);
    opacity: 0.9;
  }
  60% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
/* noise texture */
.terminal::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}
/* evidence tag floating off terminal */
.evidence-tag {
  position: absolute;
  right: -10px;
  top: 18px;
  z-index: 3;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 10px 12px;
  transform: rotate(1.2deg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--ink);
  display: flex;
  gap: 10px;
  align-items: center;
}
.evidence-tag .seal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--critical);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(209, 32, 48, 0.25);
  flex: none;
}
.evidence-tag strong {
  font-size: 0.78rem;
}
.evidence-tag span {
  color: var(--ink-muted);
}

/* hero stats ticker — replaces 4-col grid */
.hero-stats {
  margin-top: 32px;
  display: flex;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.hero-stats .stat {
  flex: 1;
  text-align: center;
  padding: 16px 12px;
  position: relative;
}
.hero-stats .stat + .stat {
  border-left: 1px solid var(--border);
}
.hero-stats .stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.hero-stats .stat-num small {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.hero-stats .stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 4px;
}
.hero-stats .stat:nth-child(1) .stat-num {
  color: var(--brand);
}
.hero-stats .stat:nth-child(4) .stat-num {
  color: var(--ok);
}

/* ── sections ── */
section {
  padding: 64px 0;
  position: relative;
}
section + section {
  border-top: 1px solid var(--border-faint);
}
.section-head {
  max-width: 68ch;
  margin-bottom: 36px;
}
.section-head h2 {
  margin-bottom: 12px;
}
.section-head p {
  color: var(--ink-2);
  font-size: 1.04rem;
  margin: 0;
  line-height: 1.6;
}
.alt {
  background:
    radial-gradient(600px 300px at 20% 0%, #f0f3ff 0%, transparent 60%),
    var(--paper-subtle);
}
.alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--paper-grid) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.45;
  pointer-events: none;
}
.alt > * {
  position: relative;
}

/* ── grids & cards — forensic file cards ── */
.grid {
  display: grid;
  gap: 20px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), #7c8cff);
  opacity: 0;
  transition: opacity 0.2s;
}
.card:hover {
  border-color: #d4dbe8;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card:hover::before {
  opacity: 1;
}
.card h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
  line-height: 1.35;
}
.card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.93rem;
  line-height: 1.6;
}
.card .kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card .kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}
.stat {
  text-align: center;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 4px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

/* category table — lab ledger */
.cat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.cat-table th {
  text-align: left;
  padding: 12px 14px;
  background: var(--paper-subtle);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
}
.cat-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-faint);
  vertical-align: top;
  line-height: 1.55;
}
.cat-table tr:last-child td {
  border-bottom: none;
}
.cat-table td:first-child {
  font-weight: 650;
  white-space: nowrap;
  color: var(--ink);
}
.cat-table tr {
  transition: background 0.15s;
}
.cat-table tbody tr:hover {
  background: #f8faff;
}
.table-shell {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

/* ── code ── */
pre {
  background: var(--paper-inset);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  margin: 0 0 18px;
}
pre code {
  font-size: inherit;
  color: var(--ink);
}
:not(pre) > code {
  background: var(--paper-inset);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.84em;
  font-weight: 500;
}
.copy-wrap {
  position: relative;
}
.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.74rem;
  cursor: pointer;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-weight: 600;
  transition: all 0.15s;
}
.copy-btn:hover {
  color: var(--ink);
  border-color: var(--ink-faint);
  background: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-xs);
}
.copy-btn.copied {
  background: var(--ok);
  color: #fff;
  border-color: var(--ok);
}

/* ── pills ── */
.sev {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.sev-critical {
  background: var(--critical-tint);
  color: var(--critical);
  border-color: #ffd1d6;
}
.sev-high {
  background: var(--high-tint);
  color: var(--high);
  border-color: #ffe0c2;
}
.sev-medium {
  background: var(--medium-tint);
  color: var(--medium);
  border-color: #ffecb3;
}
.sev-low {
  background: var(--low-tint);
  color: var(--low);
  border-color: #d4e2ff;
}
.sev-info {
  background: var(--info-tint);
  color: var(--info);
  border-color: #e2e8f0;
}
.code-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--paper-inset);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--ink);
  white-space: nowrap;
}

/* ── checks browser ── */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
}
.filters input[type="search"] {
  flex: 1;
  min-width: 220px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.92rem;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.filters input[type="search"]::placeholder {
  color: var(--ink-faint);
}
.filters input[type="search"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-ring);
}
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: #fff;
  font-size: 0.84rem;
  cursor: pointer;
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-weight: 600;
  transition: all 0.15s;
}
.chip:hover {
  border-color: var(--ink-faint);
  transform: translateY(-1px);
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 0 4px 12px rgba(10, 16, 32, 0.14);
}
.check-group {
  margin-bottom: 32px;
}
.check-group h3 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.check-row {
  display: grid;
  grid-template-columns: 98px 1fr 110px;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-faint);
  align-items: start;
  transition: background 0.15s;
}
.check-row:hover {
  background: rgba(59, 55, 232, 0.03);
  margin: 0 -10px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 8px;
}
.check-row:last-child {
  border-bottom: none;
}
.check-name {
  font-weight: 650;
  font-size: 0.94rem;
  margin-bottom: 3px;
}
.check-trigger {
  color: var(--ink-2);
  font-size: 0.86rem;
  margin: 0;
  line-height: 1.55;
}
.check-fix {
  color: var(--ink-muted);
  font-size: 0.84rem;
  margin: 6px 0 0;
  line-height: 1.5;
}
.check-sev {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.check-conf {
  font-size: 0.71rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}
.empty-state {
  padding: 40px;
  text-align: center;
  color: var(--ink-muted);
  background: var(--paper-subtle);
  border: 1px dashed var(--border);
  border-radius: 14px;
}

/* ── demo ── */
.demo-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}
.sample-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.sample-btn {
  text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.18s var(--ease);
}
.sample-btn:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.sample-btn[aria-pressed="true"] {
  border-color: var(--brand);
  box-shadow:
    0 0 0 3px var(--brand-ring),
    var(--shadow);
}
.sample-btn .t {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--ink);
  display: block;
  margin-bottom: 3px;
}
.sample-btn .s {
  font-size: 0.8rem;
  color: var(--ink-muted);
  display: block;
  line-height: 1.4;
}
.sample-btn .sc {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.report-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.gauge {
  position: relative;
  width: 118px;
  height: 118px;
  flex: none;
}
.gauge svg {
  transform: rotate(-90deg);
}
.gauge-ring {
  fill: none;
  stroke: var(--paper-inset);
  stroke-width: 10;
}
.gauge-val {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.7s var(--ease);
}
.gauge-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gauge-num {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.gauge-den {
  font-size: 0.68rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-weight: 600;
}
.report-meta h3 {
  margin-bottom: 6px;
}
.report-meta p {
  margin: 0 0 10px;
  color: var(--ink-2);
  font-size: 0.93rem;
  line-height: 1.5;
}
.penalty-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.penalty {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  background: var(--paper-inset);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 600;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
  border: 1px solid transparent;
}
.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-ready_with_caution,
.status-ready {
  background: var(--ok-tint);
  color: var(--ok);
  border-color: #c7e7d8;
}
.status-needs_review {
  background: var(--medium-tint);
  color: var(--medium);
  border-color: #ffecb3;
}
.status-not_ready {
  background: var(--critical-tint);
  color: var(--critical);
  border-color: #ffd1d6;
}

.demo-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.demo-tab {
  background: none;
  border: none;
  padding: 11px 16px;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ink-muted);
  cursor: pointer;
  font-family: var(--font-sans);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.demo-tab[aria-selected="true"] {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.demo-tab:hover {
  color: var(--ink);
}

.bar-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.bar-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.84rem;
  cursor: pointer;
  font-family: var(--font-sans);
  color: var(--ink-2);
  transition: all 0.15s;
}
.bar-chip .n {
  font-weight: 750;
  color: var(--ink);
}
.bar-chip[aria-pressed="false"] {
  opacity: 0.42;
}
.bar-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-xs);
}
.bar-sep {
  width: 1px;
  background: var(--border);
  margin: 0 4px;
}

.issue {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.issue:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.issue-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}
.issue-head:hover {
  background: var(--paper-subtle);
}
.issue-title {
  font-weight: 650;
  font-size: 0.93rem;
  flex: 1;
  min-width: 0;
}
.issue-loc {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-muted);
  white-space: nowrap;
}
.issue-chevron {
  color: var(--ink-faint);
  font-size: 0.7rem;
  transition: transform 0.2s var(--ease);
  flex: none;
  width: 14px;
  text-align: center;
}
.issue[data-open="true"] .issue-chevron {
  transform: rotate(90deg);
}
.issue-body {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--border-faint);
}
.issue[data-open="true"] .issue-body {
  display: block;
}
.issue-body dl {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 8px 14px;
  font-size: 0.88rem;
}
.issue-body dt {
  color: var(--ink-muted);
  font-weight: 650;
}
.issue-body dd {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.55;
}
.evidence {
  background: var(--paper-inset);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.fix {
  background: var(--ok-tint);
  border: 1px solid #c7e7d8;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.87rem;
  color: #0b5c3e;
  line-height: 1.5;
}

.source-pane {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.source-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--paper-subtle);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-2);
  overflow-x: auto;
}
.source-tab {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 8px;
  color: var(--ink-muted);
  white-space: nowrap;
  transition: all 0.15s;
  font-weight: 600;
}
.source-tab[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border);
}
.source-code {
  margin: 0;
  border: none;
  border-radius: 0;
  max-height: 520px;
  overflow: auto;
  background: #fff;
  font-size: 0.8rem;
}
.source-code .ln {
  display: inline-block;
  width: 3ch;
  text-align: right;
  margin-right: 16px;
  color: var(--ink-faint);
  user-select: none;
}

.try-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.try-editor {
  width: 100%;
  min-height: 360px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  resize: vertical;
  color: var(--ink);
  background: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.try-editor:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-ring);
}
.try-out {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--paper-subtle);
  padding: 16px;
  min-height: 360px;
}
.callout {
  background: var(--brand-tint);
  border: 1px solid #ddd8ff;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.88rem;
  color: #23228a;
  margin-bottom: 18px;
  line-height: 1.55;
}
.callout strong {
  color: #1a1a6b;
}

/* ── steps — calibrated timeline ── */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 16px;
  bottom: 34px;
  width: 1px;
  background: linear-gradient(180deg, var(--brand), var(--border));
  opacity: 0.35;
}
.steps li {
  position: relative;
  padding-left: 50px;
  margin-bottom: 30px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  font-weight: 800;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  display: grid;
  place-items: center;
  border: 2px solid var(--brand);
  box-shadow: 0 2px 8px rgba(59, 55, 232, 0.12);
}
.steps li:last-child {
  margin-bottom: 0;
}
.steps h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}
.steps p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* ── tabset ── */
.tabset {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: var(--shadow-xs);
}
.tabset-tabs {
  display: flex;
  background: var(--paper-subtle);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  gap: 0;
}
.tabset-tab {
  background: none;
  border: none;
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink-muted);
  cursor: pointer;
  font-family: var(--font-sans);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
}
.tabset-tab[aria-selected="true"] {
  color: var(--brand);
  border-bottom-color: var(--brand);
  background: #fff;
}
.tabset-tab:hover {
  color: var(--ink);
}
.tabset-panel {
  display: none;
  padding: 22px;
  background: #fff;
}
.tabset-panel[data-active="true"] {
  display: block;
}
.tabset-panel pre {
  margin-bottom: 0;
}

/* ── roadmap ── */
.milestone {
  border-left: 2px solid var(--border);
  padding-left: 26px;
  margin-left: 8px;
  position: relative;
}
.milestone::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand);
}
.milestone.done::before {
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-ring);
}
.milestone h3 {
  margin-bottom: 8px;
}
.milestone .when {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.milestone ul {
  margin: 0 0 6px;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ── footer ── */
.footer {
  background: var(--ink);
  color: #cbd5e1;
  border-top: none;
  padding: 48px 0 32px;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      600px 300px at 90% 0%,
      rgba(59, 55, 232, 0.18),
      transparent 60%
    ),
    radial-gradient(
      1px 1px at 20% 40%,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 0
    );
  background-size:
    auto,
    28px 28px;
  pointer-events: none;
}
.footer > * {
  position: relative;
}
.footer .brand {
  color: #fff;
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8ea0bf;
  margin-bottom: 12px;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer li {
  margin-bottom: 7px;
}
.footer a {
  color: #cbd5e1;
}
.footer a:hover {
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8ea0bf;
  font-size: 0.84rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── reveal motion ── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  .terminal-scan {
    animation: none;
  }
  .eyebrow .dot {
    animation: none;
  }
}

/* ── responsive ── */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .terminal {
    transform: none;
  }
  .evidence-tag {
    position: static;
    transform: none;
    margin-top: 12px;
    justify-content: center;
  }
  .hero-stats {
    margin-top: 24px;
  }
}

@media (max-width: 940px) {
  .demo-layout,
  .try-grid {
    grid-template-columns: 1fr;
  }
  .sample-list {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    gap: 10px;
  }
  .sample-list::-webkit-scrollbar {
    height: 4px;
  }
  .sample-list::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 999px;
  }
  .sample-btn {
    min-width: 230px;
    scroll-snap-align: start;
  }
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .report-head {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .hero-stats .stat {
    padding: 14px 8px;
  }
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 18px;
  }
  .nav-inner {
    padding: 0 18px;
    gap: 16px;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 18px;
  }
  .check-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .check-sev {
    flex-direction: row;
    align-items: center;
  }
  .hero {
    padding: 36px 0 28px;
  }
  .hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }
  .install pre {
    font-size: 0.78rem;
    padding: 12px 14px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  section {
    padding: 48px 0;
  }
  .table-shell {
    overflow-x: auto;
  }
  .cat-table {
    min-width: 560px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .nav-links[data-open="true"] {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8px 18px 16px;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.22s var(--ease);
  }
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  .nav-links[data-open="true"] a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-faint);
  }
  .nav-links[data-open="true"] .nav-cta {
    margin-top: 12px;
    text-align: center;
    justify-content: center;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    flex-wrap: wrap;
  }
  .hero-stats .stat {
    flex: 1 1 46%;
  }
  .hero-stats .stat:nth-child(3) {
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .hero-stats .stat:nth-child(4) {
    border-top: 1px solid var(--border);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .hero-badges {
    gap: 6px;
  }
  .issue-body dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .issue-body dt {
    margin-top: 8px;
  }
}

@media (max-width: 375px) {
  .wrap {
    padding: 0 14px;
  }
  h1 {
    font-size: 1.85rem;
  }
  .btn {
    padding: 11px 16px;
    font-size: 0.9rem;
  }
  .hero-stats .stat-num {
    font-size: 1.6rem;
  }
}

/* ── print ── */
@media print {
  .nav,
  .footer,
  .btn-row,
  .copy-btn,
  .nav-progress {
    display: none;
  }
  .hero {
    background: #fff;
  }
  .terminal {
    break-inside: avoid;
  }
}
