:root {
  color-scheme: light;
  --bg: var(--pg-bg, #f4efe5);
  --paper: var(--pg-paper, #fffdf7);
  --paper-warm: var(--pg-paper-warm, #fbf5ea);
  --ink: var(--pg-text, #1f1d19);
  --muted: var(--pg-muted, #70695f);
  --faint: #ddd6ca;
  --rule: var(--pg-border, #2a2823);
  --soft-rule: var(--pg-soft-border, #cfc5b5);
  --accent: #5c4a2f;
  --accent-2: #0f725d;
  --bad: #b93b35;
  --shadow: var(--pg-shadow-hard, 4px 4px 0 #2a2823);
  font-family: var(--pg-font-ui, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(42, 40, 35, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 40, 35, .035) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
}

.shell {
  width: min(1320px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 72px;
}

.back { display: none; }

.hero {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 5vw, 56px);
  border: 2px solid var(--rule);
  border-radius: 2px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
}

.eyebrow, .kicker {
  margin: 0;
  color: var(--accent-2);
  font-family: var(--pg-font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
}

h1, h2 { margin: 0; letter-spacing: -0.025em; }
h1 {
  max-width: 12ch;
  font-size: clamp(3.1rem, 10vw, 8rem);
  line-height: 0.9;
}
.hero .lede {
  max-width: 760px;
  margin: 0;
  color: #2d2a25;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.55;
}
.note {
  max-width: 760px;
  padding: 14px 16px;
  border: 2px solid var(--rule);
  background: #fffaf0;
  color: var(--muted);
  line-height: 1.5;
}

.toc {
  position: sticky;
  top: 52px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 34px;
  padding: 8px;
  border: 2px solid var(--rule);
  border-radius: 2px;
  background: rgba(251, 245, 234, 0.92);
  box-shadow: 2px 2px 0 var(--rule);
}
.toc a {
  padding: 9px 13px;
  border-radius: 2px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  font-size: 0.9rem;
}
.toc a:hover { background: var(--paper); }

.case { margin: 46px 0; }
.case-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  gap: 24px;
  align-items: end;
  margin-bottom: 16px;
}
.case-head h2 {
  max-width: 860px;
  margin-top: 6px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
}
.case-head p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.panel {
  min-width: 0;
  border: 2px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.panel.before {
  background:
    radial-gradient(circle at 15% 5%, rgba(168,85,247,.22), transparent 18rem),
    radial-gradient(circle at 85% 8%, rgba(34,211,238,.18), transparent 16rem),
    #111827;
  color: #f9fafb;
  border-color: var(--rule);
}
.label-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding: 16px 18px;
  border-bottom: 2px solid var(--rule);
  font-weight: 850;
}
.label-row small {
  color: var(--muted);
  font-weight: 650;
  text-align: right;
}
.before .label-row small { color: #a7b0c0; }
.chart {
  min-height: 440px;
  padding: 8px 12px 18px;
}
.chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.verdict {
  margin-top: 58px;
  padding: clamp(24px, 5vw, 48px);
  border-radius: 2px;
  border: 2px solid var(--rule);
  background: #151515;
  color: #fffdf8;
  box-shadow: var(--shadow);
}
.verdict h2 { font-size: clamp(2rem, 5vw, 4rem); }
.verdict ul {
  max-width: 920px;
  margin: 20px 0 0;
  padding-left: 1.2rem;
  color: #d8d0c2;
  font-size: 1.05rem;
  line-height: 1.7;
}
.verdict li { margin: 0.7rem 0; line-height: 1.55; }
.verdict strong { color: #fff; }

@media (max-width: 900px) {
  .compare-grid, .case-head { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 20px, 1320px); }
  h1 { font-size: clamp(2.7rem, 15vw, 4.6rem); }
  .hero { padding: 20px; }
  .label-row { align-items: flex-start; flex-direction: column; }
  .chart { min-height: 320px; padding-inline: 4px; }
}
