/* ════════════════════════════════════════════════
   JIL Bug Report — 7 May 2026
   Liquid Glass design · letterpress text · ambient mesh
   ════════════════════════════════════════════════ */

:root {
  --bg-base: #0a0d18;
  --bg-soft: #0f1424;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --heading: #f1f5f9;
  --text: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --brand: #3a30f0;
  --brand-light: #7b73ff;
  --accent: #d4ff00;
  --accent-glow: rgba(212, 255, 0, 0.25);
  --critical: #f87171;
  --high: #fb923c;
  --medium-high: #fbbf24;
  --medium: #facc15;
  --gap: #a78bfa;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 18px 48px -12px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 32px 80px -16px rgba(0, 0, 0, 0.7);
  --radius: 24px;
  --radius-sm: 14px;
  --spring: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-padding-top: 24px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 450;
  line-height: 1.65;
  letter-spacing: -0.005em;
  color: var(--text);
  background: var(--bg-base);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

code, pre {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-weight: 500;
  letter-spacing: 0;
}

/* ═════════ Ambient mesh background ═════════ */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top left, rgba(58, 48, 240, 0.18), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(212, 255, 0, 0.08), transparent 50%),
    linear-gradient(180deg, #0a0d18 0%, #0f1424 100%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
}
.blob-1 {
  width: 540px;
  height: 540px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, #3a30f0 0%, transparent 70%);
}
.blob-2 {
  width: 460px;
  height: 460px;
  top: 40%;
  right: -120px;
  background: radial-gradient(circle, #d4ff00 0%, transparent 70%);
  opacity: 0.18;
}
.blob-3 {
  width: 380px;
  height: 380px;
  bottom: 10%;
  left: 30%;
  background: radial-gradient(circle, #7b73ff 0%, transparent 70%);
  opacity: 0.32;
}

/* ═════════ Layout ═════════ */
.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px;
}

/* ═════════ Sidebar ═════════ */
.sidebar {
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  overflow-y: auto;
  padding-right: 24px;
  border-right: 1px solid var(--border);
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }

.sidebar-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-dot {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(58, 48, 240, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.logo-dot::after {
  content: '!';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 800;
  font-size: 22px;
}
.logo-text { line-height: 1.2; }
.logo-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--heading);
  letter-spacing: -0.01em;
}
.logo-date {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toc-item {
  display: block;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
  padding: 6px 14px 6px 18px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  transition: all 0.18s var(--spring);
  font-weight: 500;
}
.toc-item:hover {
  color: var(--heading);
  background: var(--surface);
  border-left-color: var(--border-strong);
}
.toc-item.active {
  color: var(--brand-light);
  background: var(--surface-strong);
  border-left-color: var(--accent);
  font-weight: 600;
}
.toc-h2 {
  font-size: 13px;
  font-weight: 600;
  color: var(--heading);
  margin-top: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}
.toc-h2:first-child { margin-top: 0; }
.toc-h3 {
  padding-left: 30px;
  font-size: 12.5px;
}

/* ═════════ Content ═════════ */
.content {
  padding-left: 48px;
  max-width: 920px;
}

/* ═════════ Glass primitive ═════════ */
.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.025) 100%);
  backdrop-filter: blur(50px) saturate(180%);
  -webkit-backdrop-filter: blur(50px) saturate(180%);
  border: 1px solid var(--border);
  border-top-color: rgba(255, 255, 255, 0.12);
  border-left-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.3),
    var(--shadow-lg);
  position: relative;
}

/* ═════════ Hero ═════════ */
.hero {
  margin-bottom: 64px;
  padding: 56px 48px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(212, 255, 0, 0.08), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(58, 48, 240, 0.15), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(212, 255, 0, 0.1);
  border: 1px solid rgba(212, 255, 0, 0.25);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 0 8px rgba(212, 255, 0, 0.4);
}
.hero-title {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--heading);
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 60%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 28px;
}
.hero-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
}
.meta-label {
  color: var(--text-dim);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.meta-value {
  color: var(--brand-light);
  font-weight: 600;
}

/* ═════════ Sections ═════════ */
.section {
  margin-bottom: 80px;
  scroll-margin-top: 24px;
}
.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--heading);
  margin-bottom: 12px;
}
.title-suffix {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: -0.01em;
}
.section-lead {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 720px;
}

/* ═════════ Stat grid ═════════ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat {
  padding: 24px 22px;
  transition: transform 0.3s var(--spring);
}
.stat:hover { transform: translateY(-3px); }
.stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.stat-num.red { color: var(--critical); text-shadow: 0 0 24px rgba(248, 113, 113, 0.3); }
.stat-num.orange { color: var(--high); text-shadow: 0 0 24px rgba(251, 146, 60, 0.3); }
.stat-num.yellow { color: var(--medium); text-shadow: 0 0 24px rgba(250, 204, 21, 0.3); }
.stat-num.blue { color: var(--brand-light); text-shadow: 0 0 24px rgba(123, 115, 255, 0.3); }
.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.stat-note {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ═════════ Callouts ═════════ */
.callout {
  padding: 24px 28px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  background: linear-gradient(135deg, rgba(212, 255, 0, 0.04) 0%, rgba(255, 255, 255, 0.025) 100%);
}
.callout-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.callout p { font-size: 15px; line-height: 1.65; }
.clean-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
}
.clean-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.65;
}
.clean-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ═════════ Bug card ═════════ */
.bug {
  padding: 32px 36px;
  margin-bottom: 24px;
  transition: transform 0.4s var(--spring), box-shadow 0.4s var(--spring);
}
.bug:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 24px 60px -16px rgba(0, 0, 0, 0.6),
    0 8px 24px -6px rgba(0, 0, 0, 0.4);
}
.bug-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.bug-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.25;
  color: var(--heading);
  flex: 1;
  min-width: 0;
}
.sev {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 4px;
}
.sev-critical {
  color: var(--critical);
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
  text-shadow: 0 0 8px rgba(248, 113, 113, 0.4);
}
.sev-high {
  color: var(--high);
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.3);
}
.sev-medium-high {
  color: var(--medium-high);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.sev-medium {
  color: var(--medium);
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.25);
}
.sev-gap {
  color: var(--gap);
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
}
.bug-reported {
  font-size: 13px;
  color: var(--text-muted);
  padding: 10px 14px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  border-left: 2px solid var(--border-strong);
}
.bug-reported strong { color: var(--text); font-weight: 600; }
.bug-body { font-size: 15px; line-height: 1.7; }
.bug-body h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 24px 0 10px 0;
  font-family: 'JetBrains Mono', monospace;
}
.bug-body h4:first-child { margin-top: 0; }
.bug-body p { margin-bottom: 12px; color: var(--text); }
.bug-body p:last-child { margin-bottom: 0; }
.bug-body ol, .bug-body ul {
  margin: 12px 0;
  padding-left: 24px;
  color: var(--text);
}
.bug-body ol li, .bug-body ul li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.bug-body strong { color: var(--heading); font-weight: 600; }
.bug-body em { color: var(--text-muted); font-style: italic; }
.bug-body code {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 13px;
  color: var(--brand-light);
  white-space: nowrap;
}
.bug-body pre {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 12px 0;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  color: var(--brand-light);
}
.bug-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  white-space: pre;
}

/* Inline code in body text */
p code, li code, td code, h4 code {
  font-size: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--brand-light);
  white-space: nowrap;
}

/* ═════════ UX grid ═════════ */
.ux-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.ux-item {
  padding: 24px 24px 22px;
  position: relative;
  transition: transform 0.3s var(--spring);
}
.ux-item:hover { transform: translateY(-3px); }
.ux-num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  font-weight: 600;
}
.ux-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  padding-right: 40px;
  line-height: 1.3;
}
.ux-item p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
}
.ux-item.note-yellow {
  border-color: rgba(250, 204, 21, 0.25);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.04) 0%, rgba(255, 255, 255, 0.025) 100%);
}
.ux-item em { color: var(--medium); font-style: normal; font-weight: 600; }

/* ═════════ Feature grid ═════════ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.feature {
  padding: 26px 28px;
  border-color: rgba(167, 139, 250, 0.18);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.04) 0%, rgba(255, 255, 255, 0.025) 100%);
  transition: transform 0.3s var(--spring);
}
.feature:hover { transform: translateY(-3px); }
.feature-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gap);
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.3);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.feature h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 10px;
  letter-spacing: -0.012em;
  line-height: 1.3;
}
.feature p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ═════════ External grid ═════════ */
.ext-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.ext {
  padding: 24px 26px;
  border-color: rgba(94, 234, 212, 0.18);
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.03) 0%, rgba(255, 255, 255, 0.025) 100%);
}
.ext h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 10px;
  letter-spacing: -0.012em;
  line-height: 1.3;
}
.ext p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}
.ext em { color: var(--text); font-style: italic; }

/* ═════════ Tables ═════════ */
.priority-table-wrap, .index-table-wrap {
  padding: 8px;
  overflow-x: auto;
}
.priority-table, .index-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.priority-table thead, .index-table thead {
  background: rgba(255, 255, 255, 0.03);
}
.priority-table th, .index-table th {
  text-align: left;
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border-bottom: 1px solid var(--border-strong);
  font-family: 'JetBrains Mono', monospace;
}
.priority-table td, .index-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text);
  line-height: 1.6;
}
.priority-table tr:last-child td, .index-table tr:last-child td { border-bottom: none; }
.priority-table tr:hover, .index-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}
.rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: white;
  font-weight: 700;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 0 12px rgba(58, 48, 240, 0.4);
}
.priority-table td:first-child { width: 60px; }
.index-table td code { white-space: nowrap; font-size: 12px; }

/* ═════════ Footer ═════════ */
.footer {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.7;
}
.footer-small {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer code {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--brand-light);
}

/* ═════════ Responsive ═════════ */

/* Tablet — 1024px */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 240px 1fr; }
  .content { padding-left: 32px; }
  .hero { padding: 44px 36px; }
  .hero-title { font-size: 38px; }
  .stat-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}

/* Tablet portrait — collapse to single column */
@media (max-width: 860px) {
  body { line-height: 1.6; }
  .layout {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .sidebar {
    position: relative;
    top: auto;
    height: auto;
    padding-right: 0;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .sidebar-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  .toc { display: none; }
  .content {
    padding-left: 0;
    max-width: 100%;
  }
  .hero {
    padding: 40px 28px;
    margin-bottom: 48px;
    border-radius: 20px;
  }
  .hero-title { font-size: 32px; line-height: 1.08; }
  .hero-sub { font-size: 16px; }
  .section { margin-bottom: 60px; }
  .section-title { font-size: 26px; }
  .title-suffix { font-size: 16px; }
  .bug {
    padding: 26px 24px;
    border-radius: 20px;
  }
  .bug-title { font-size: 19px; }
  .ux-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .ext-grid { grid-template-columns: 1fr; }
}

/* Mobile — 640px */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .layout { padding: 12px; }

  /* Sidebar header — keep brand mark but compact */
  .sidebar { padding-bottom: 16px; margin-bottom: 16px; }
  .logo-dot { width: 34px; height: 34px; }
  .logo-dot::after { font-size: 19px; }
  .logo-name { font-size: 14px; }
  .logo-date { font-size: 10px; }

  /* Hero — compact */
  .hero {
    padding: 32px 22px;
    margin-bottom: 40px;
    border-radius: 18px;
  }
  .hero-tag {
    font-size: 10px;
    padding: 4px 10px;
    margin-bottom: 16px;
  }
  .hero-title {
    font-size: 26px;
    line-height: 1.1;
    margin-bottom: 14px;
  }
  .hero-sub {
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 22px;
  }
  .hero-meta { gap: 8px; }
  .meta-pill {
    padding: 6px 11px;
    font-size: 11px;
    gap: 6px;
  }
  .meta-label { font-size: 9px; }

  /* Sections */
  .section { margin-bottom: 50px; }
  .section-eyebrow { font-size: 11px; }
  .section-title {
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.02em;
  }
  .title-suffix { font-size: 14px; display: block; margin-top: 2px; }
  .section-lead { font-size: 14px; margin-bottom: 24px; }

  /* Stats — 2 per row on phone */
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat {
    padding: 18px 16px;
    border-radius: 16px;
  }
  .stat-num { font-size: 36px; }
  .stat-label { font-size: 11px; letter-spacing: 0.05em; }
  .stat-note { font-size: 11px; line-height: 1.4; }

  /* Callouts */
  .callout {
    padding: 18px 20px;
    border-radius: 16px;
  }
  .callout p { font-size: 14px; }
  .clean-list li { font-size: 14px; padding-left: 18px; }
  .clean-list li::before {
    width: 6px; height: 6px; top: 9px;
  }

  /* Bug cards */
  .bug {
    padding: 22px 20px;
    border-radius: 16px;
    margin-bottom: 16px;
  }
  .bug:hover { transform: none; } /* disable lift on touch */
  .bug-head {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
  }
  .sev {
    margin-top: 0;
    font-size: 9px;
    padding: 3px 9px;
    letter-spacing: 0.08em;
  }
  .bug-title { font-size: 17px; line-height: 1.3; }
  .bug-reported {
    font-size: 12.5px;
    padding: 9px 12px;
    margin-bottom: 16px;
    border-radius: 11px;
  }
  .bug-body { font-size: 14px; line-height: 1.65; }
  .bug-body h4 {
    font-size: 11px;
    margin: 18px 0 8px 0;
    letter-spacing: 0.08em;
  }
  .bug-body ol, .bug-body ul { padding-left: 20px; }
  .bug-body ol li, .bug-body ul li { font-size: 14px; line-height: 1.6; }
  .bug-body code {
    font-size: 12px;
    word-break: break-word;
    white-space: normal;
  }
  .bug-body pre {
    padding: 12px 14px;
    font-size: 12px;
    border-radius: 11px;
  }
  p code, li code, td code, h4 code { font-size: 12px; }

  /* UX cards */
  .ux-item { padding: 20px 20px 18px; border-radius: 16px; }
  .ux-item:hover { transform: none; }
  .ux-num { top: 16px; right: 18px; font-size: 10px; }
  .ux-item h4 { font-size: 15px; padding-right: 36px; }
  .ux-item p { font-size: 13px; line-height: 1.55; }

  /* Feature cards */
  .feature { padding: 22px 22px; border-radius: 16px; }
  .feature:hover { transform: none; }
  .feature-tag { font-size: 9px; padding: 2px 8px; margin-bottom: 10px; }
  .feature h4 { font-size: 15.5px; line-height: 1.3; }
  .feature p { font-size: 13.5px; line-height: 1.55; }

  /* External cards */
  .ext { padding: 20px 22px; border-radius: 16px; }
  .ext h4 { font-size: 15px; }
  .ext p { font-size: 13px; line-height: 1.55; }

  /* Tables — convert to stacked card view on mobile */
  .priority-table-wrap, .index-table-wrap {
    padding: 4px;
    border-radius: 16px;
  }
  .priority-table thead, .index-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .priority-table tr, .index-table tr {
    display: block;
    padding: 14px 14px 12px;
    border-bottom: 1px solid var(--border);
  }
  .priority-table tr:last-child, .index-table tr:last-child {
    border-bottom: none;
  }
  .priority-table td, .index-table td {
    display: block;
    padding: 0 0 6px 0;
    border-bottom: none;
    font-size: 13px;
    line-height: 1.5;
  }
  .priority-table td:last-child, .index-table td:last-child { padding-bottom: 0; }

  /* Priority — show rank inline with item, then reason below */
  .priority-table td:first-child {
    display: inline-block;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
  }
  .priority-table td:nth-child(2) {
    display: inline-block;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 6px;
  }
  .priority-table td:nth-child(3) {
    color: var(--text-muted);
    font-size: 12.5px;
  }
  .priority-table td:nth-child(3)::before {
    content: 'Why first — ';
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
  }
  .rank { width: 24px; height: 24px; font-size: 12px; }

  /* Index — show area as label, file/lines/issue as data */
  .index-table td:first-child {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 4px;
  }
  .index-table td:nth-child(2) {
    font-weight: 600;
    word-break: break-all;
  }
  .index-table td:nth-child(2) code {
    white-space: normal;
    word-break: break-all;
    font-size: 11.5px;
  }
  .index-table td:nth-child(3) {
    display: inline-block;
    margin-right: 10px;
    color: var(--brand-light);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
  }
  .index-table td:nth-child(3)::before {
    content: 'Lines ';
    color: var(--text-dim);
    font-size: 10px;
    text-transform: uppercase;
  }
  .index-table td:nth-child(4) {
    color: var(--text-muted);
    font-size: 12.5px;
  }

  /* Footer */
  .footer { margin-top: 56px; padding-top: 24px; font-size: 12px; }
  .footer-small { font-size: 10px; }
}

/* Small phone — 380px */
@media (max-width: 380px) {
  .hero-title { font-size: 24px; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-num { font-size: 40px; }
  .hero-meta { flex-direction: column; align-items: flex-start; }
  .meta-pill { width: 100%; justify-content: space-between; }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .bug:hover, .stat:hover, .ux-item:hover, .feature:hover {
    transform: none;
  }
}

/* ═════════ Selection ═════════ */
::selection {
  background: rgba(212, 255, 0, 0.25);
  color: var(--heading);
}

/* ═════════ Scrollbar ═════════ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }
