/* BarMatrix — editorial/forensic design system */

:root {
  --bg: #f6f3ec;
  --bg-alt: #ece7da;
  --bg-dark: #0e0e0e;
  --paper: #fffdf7;
  --ink: #0a0a0a;
  --ink-soft: #1f1f1f;
  --muted: #6b6862;
  --muted-light: #a39e93;
  --rule: rgba(10, 10, 10, 0.85);
  --rule-soft: rgba(10, 10, 10, 0.15);
  --red: #c8102e;
  --red-deep: #8b0a1e;
  --amber: #c2410c;
  --highlighter: #fff066;
  --highlighter-soft: #fff8d6;
  --correct: #1f6f3a;
  --tape: repeating-linear-gradient(
    -45deg,
    #c8102e 0 14px,
    #0a0a0a 14px 28px
  );

  --serif: "Newsreader", "Source Serif 4", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "IBM Plex Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --maxw: 1320px;
  --gutter: 32px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv05";
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* ====== HAIRLINE RED TAPE STRIP ====== */
.tape-strip {
  height: 6px;
  background: var(--tape);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* ====== NAV ====== */
.nav {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: sticky;
  top: 6px;
  z-index: 49;
  backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 64px;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.01em;
  cursor: pointer;
}
.brand .mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--serif);
  font-weight: 900;
  font-size: 18px;
  transform: translateY(2px);
}
.brand .dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  display: inline-block;
  margin-left: 2px;
  transform: translateY(-2px);
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links button {
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color 120ms;
  letter-spacing: 0.01em;
}
.nav-links button:hover {
  border-bottom-color: var(--ink);
}
.nav-links button.active {
  border-bottom-color: var(--red);
}
.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--ink);
  transition: transform 80ms, background 120ms;
  cursor: pointer;
  text-transform: uppercase;
}
.btn:hover {
  background: var(--red);
  border-color: var(--red);
}
.btn:active {
  transform: translateY(1px);
}
.btn.btn-lg {
  padding: 18px 30px;
  font-size: 15px;
}
.btn.btn-sm {
  padding: 8px 14px;
  font-size: 12px;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
}
.btn.ghost:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn.red {
  background: var(--red);
  border-color: var(--red);
  color: white;
}
.btn.red:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
}
.btn .arrow {
  font-family: var(--mono);
  font-weight: 400;
}

/* ====== LABELS / META ====== */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow-strong {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}
.eyebrow-red {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}
.section-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.section-rule::before,
.section-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.section-rule .label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}

/* ====== TYPOGRAPHY ====== */
.display {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.display-xl {
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1.02;
}
.display-lg {
  font-size: clamp(40px, 5.5vw, 80px);
}
.display-md {
  font-size: clamp(32px, 3.5vw, 52px);
}
.display-sm {
  font-size: clamp(24px, 2.5vw, 36px);
}
.body-lg {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ====== LAYOUT ====== */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: 96px 0;
}
.section-tight {
  padding: 56px 0;
}
.section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.section.dark {
  background: var(--bg-dark);
  color: #f6f3ec;
}
.section.dark .display,
.section.dark .body-lg {
  color: #f6f3ec;
}
.section.dark .muted {
  color: #a39e93;
}

/* ====== HERO ====== */
.hero {
  padding: 64px 0 32px;
  border-bottom: 1px solid var(--rule);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: start;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 48px;
}
.hero-meta .stamp {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero h1 {
  margin: 0 0 48px;
  padding-bottom: 4px;
}
.hero p.lede {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0 0 36px;
  max-width: 32ch;
  font-weight: 400;
  font-style: italic;
}
.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-actions .platforms {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  padding-left: 16px;
  border-left: 1px solid var(--rule);
  line-height: 1.6;
}

.home-pricing-lock {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 36px 0;
}
.locked-pricing-card {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 28px;
}
.locked-pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  border-top: 1px solid var(--rule-soft);
}
.locked-pricing-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
  line-height: 1.35;
  display: flex;
  gap: 10px;
}
.locked-pricing-card li::before {
  content: "→";
  font-family: var(--mono);
  font-weight: 600;
  color: var(--red);
}
.pricing-lock-footer {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
  margin-bottom: 22px;
}
.pricing-lock-footer p {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ====== FORENSICS CARD ====== */
.forensics-card {
  background: var(--paper);
  border: 1px solid var(--ink);
  position: relative;
  box-shadow: 6px 6px 0 var(--ink);
}
.forensics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.forensics-header .live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.forensics-body {
  padding: 28px;
}
.q-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  margin: 0 -28px 24px;
  padding: 12px 28px;
}
.q-meta > div {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.q-meta .k {
  color: var(--muted);
  margin-bottom: 4px;
}
.q-meta .v {
  color: var(--ink);
  font-weight: 600;
}
.q-stem {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 24px;
}
.choices {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.choice {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 16px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--rule-soft);
  align-items: start;
  cursor: default;
  transition: background 120ms;
  font-size: 15px;
  line-height: 1.45;
  position: relative;
}
.choice .letter {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--rule);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.choice .text {
  color: var(--ink-soft);
}
.choice .pct {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding-top: 2px;
}
.choice.picked .letter {
  background: var(--highlighter);
  border-color: var(--ink);
  color: var(--ink);
}
.choice.picked {
  background: var(--highlighter-soft);
}
.choice.picked .pct {
  color: var(--red);
  font-weight: 700;
}
.choice.correct .letter {
  background: var(--correct);
  border-color: var(--correct);
  color: white;
}
.choice.correct .pct {
  color: var(--correct);
  font-weight: 700;
}
.choice.dim {
  opacity: 0.5;
}

/* ====== FORENSICS BREAKDOWN ====== */
.forensic-breakdown {
  margin-top: 28px;
  border-top: 2px solid var(--ink);
  padding-top: 24px;
  background: var(--bg);
  margin-left: -28px;
  margin-right: -28px;
  margin-bottom: -28px;
  padding: 24px 28px 28px;
}
.forensic-breakdown .verdict {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
}
.forensic-breakdown .verdict-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
}
.forensic-breakdown .verdict-stat {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--rule);
  color: var(--ink);
}
.tag.red {
  border-color: var(--red);
  color: var(--red);
}
.tag.solid {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.forensic-why {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 14px;
}
.forensic-why strong {
  background: var(--highlighter);
  padding: 0 3px;
  font-weight: 600;
  font-style: normal;
}
.repair-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--bg);
  cursor: default;
}
.repair-cta .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  opacity: 0.7;
}
.repair-cta .drill-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  margin-top: 2px;
}
.repair-cta .arrow {
  font-family: var(--mono);
  font-size: 18px;
}

/* ====== STATS STRIP ====== */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat-strip > div {
  padding: 28px 24px;
  border-right: 1px solid var(--rule);
}
.stat-strip > div:last-child {
  border-right: none;
}
.stat-strip .num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 8px;
}
.stat-strip .num .red-dot {
  color: var(--red);
}
.stat-strip .lbl {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ====== PROBLEM SECTION ====== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.four-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ====== METHOD STEPS ====== */
.method-step {
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}
.method-step .num {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 12px;
}
.method-step h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}
.method-step p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

/* ====== TENSION MATRIX VIZ ====== */
.matrix-viz {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 32px;
}
.matrix-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.matrix-grid {
  display: grid;
  grid-template-columns: 120px repeat(7, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.matrix-grid > div {
  background: var(--paper);
  padding: 8px 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.matrix-grid .row-label {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
}
.matrix-grid .col-label {
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  background: var(--bg-alt);
}
.matrix-cell {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  transition: transform 120ms;
}
.matrix-cell:hover {
  transform: scale(1.08);
  z-index: 2;
  outline: 1px solid var(--ink);
}
.matrix-cell.h0 { background: #fafaf7; color: var(--muted-light); }
.matrix-cell.h1 { background: #fff0c2; color: var(--ink); }
.matrix-cell.h2 { background: #ffd4a0; color: var(--ink); }
.matrix-cell.h3 { background: #ff8a5f; color: var(--ink); }
.matrix-cell.h4 { background: var(--red); color: white; }
.matrix-cell.h5 { background: var(--red-deep); color: white; }

.matrix-legend {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.legend-bar {
  display: flex;
  height: 12px;
  flex: 1;
  max-width: 200px;
}
.legend-bar > div {
  flex: 1;
}

/* ====== PRICING ====== */
.price-card {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 36px 36px 40px;
  position: relative;
}
.price-card.flagship {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 8px 8px 0 var(--red);
}
.price-card .ribbon {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--red);
  color: white;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 10px;
  font-weight: 600;
}
.price-card .name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.price-card .summary {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 28px;
  line-height: 1.4;
}
.price-card .price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.price-card .price .num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.price-card .price .strike {
  font-family: var(--mono);
  font-size: 16px;
  text-decoration: line-through;
  opacity: 0.5;
}
.price-card .plan {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 28px;
}
.price-card.flagship .plan {
  color: var(--muted-light);
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  border-top: 1px solid var(--rule-soft);
}
.price-card.flagship ul {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.price-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 14px;
  display: flex;
  gap: 12px;
  align-items: baseline;
  line-height: 1.4;
}
.price-card.flagship li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.price-card li::before {
  content: "→";
  font-family: var(--mono);
  font-weight: 600;
  color: var(--red);
}
.price-card.flagship li::before {
  color: var(--red);
}

/* ====== SCARCITY METER ====== */
.scarcity-meter {
  border: 1px solid var(--ink);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--paper);
}
.meter-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.meter-row .left {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.meter-row .right {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
}
.meter-bar {
  height: 8px;
  background: var(--bg-alt);
  position: relative;
  border: 1px solid var(--ink);
}
.meter-bar .fill {
  height: 100%;
  background: var(--red);
  transition: width 400ms;
}
.meter-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ====== FAQ ====== */
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
  cursor: pointer;
}
.faq-item .q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0;
}
.faq-item .toggle {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  transition: transform 200ms;
  flex-shrink: 0;
}
.faq-item.open .toggle {
  transform: rotate(45deg);
}
.faq-item .a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease, margin 300ms ease;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.faq-item.open .a {
  max-height: 320px;
  margin-top: 14px;
}

/* ====== FOOTER ====== */
.footer {
  background: var(--bg-dark);
  color: #c8c4ba;
  border-top: 4px solid var(--red);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: white;
  font-weight: 600;
  margin: 0 0 18px;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.footer a:hover {
  color: white;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #6b6862;
  text-transform: uppercase;
}
.footer .disclaimer {
  font-size: 12px;
  line-height: 1.5;
  color: #8b8576;
  margin-top: 24px;
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: 0;
  max-width: 80ch;
}

/* ====== DIAGNOSTIC FLOW ====== */
.diag-wrap {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.diag-header {
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
}
.diag-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.diag-progress {
  flex: 1;
  height: 4px;
  background: var(--bg-alt);
  position: relative;
}
.diag-progress .fill {
  height: 100%;
  background: var(--red);
  transition: width 400ms;
}
.diag-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 48px 0;
}
.diag-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}
.diag-q-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.diag-q-num .pill {
  border: 1px solid var(--rule);
  padding: 3px 8px;
  font-weight: 500;
}
.diag-stem {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 36px;
  max-width: 70ch;
}
.diag-choices {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule);
  margin-bottom: 32px;
}
.diag-choice {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  cursor: pointer;
  transition: background 120ms, padding 120ms;
  font-size: 17px;
  line-height: 1.45;
}
.diag-choice:hover {
  background: rgba(0, 0, 0, 0.03);
  padding-left: 16px;
}
.diag-choice.selected {
  background: var(--highlighter-soft);
  padding-left: 16px;
}
.diag-choice .letter {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  border: 1px solid var(--ink);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
}
.diag-choice.selected .letter {
  background: var(--ink);
  color: var(--bg);
}
.confidence-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 24px;
}
.confidence-row .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.confidence-pips {
  display: flex;
  gap: 6px;
}
.conf-pip {
  width: 32px;
  height: 32px;
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 120ms;
}
.conf-pip:hover {
  border-color: var(--ink);
}
.conf-pip.selected {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.diag-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ====== RESULTS PAGE ====== */
.results-hero {
  border-bottom: 1px solid var(--rule);
  padding: 56px 0 40px;
}
.results-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}
.score-block {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 28px;
}
.score-block .score-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.score-block .score-row:last-child {
  border-bottom: none;
}
.score-block .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.score-block .v {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
}

.trap-list {
  border-top: 2px solid var(--ink);
}
.trap-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.trap-row .rank {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 36px;
  color: var(--red);
  letter-spacing: -0.02em;
  line-height: 1;
}
.trap-row .name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.trap-row .meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.trap-row .severity {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--ink);
  white-space: nowrap;
}
.trap-row .severity.high {
  background: var(--red);
  color: white;
  border-color: var(--red);
}
.trap-row .severity.med {
  background: var(--bg-alt);
}

/* ====== UTILS ====== */
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.txt-red { color: var(--red); }
.no-wrap { white-space: nowrap; }
.center { text-align: center; }
.divider {
  height: 1px;
  background: var(--rule);
  margin: 48px 0;
}
.thick-divider {
  height: 4px;
  background: var(--ink);
  margin: 48px 0;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .home-pricing-lock { grid-template-columns: 1fr; }
  .locked-pricing-card ul { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .three-col { grid-template-columns: 1fr; }
  .four-col { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .matrix-grid { grid-template-columns: 100px repeat(7, 1fr); font-size: 8px; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 24px; }
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }
  .container { min-width: 0; }
  .container,
  .nav-inner {
    width: 100%;
    max-width: 100vw;
  }
  .hero,
  .section,
  .section-tight {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }
  .nav-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 12px;
  }
  .brand { font-size: 22px; }
  .nav-cta { gap: 0; }
  .nav-cta .btn.ghost { display: none; }
  .nav-cta .btn.red { display: none; }
  .display-xl {
    font-size: clamp(38px, 12vw, 44px);
    line-height: 1.06;
  }
  .display-md { font-size: clamp(30px, 9vw, 40px); }
  .hero { padding-top: 40px; }
  .hero-meta {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 20px;
  }
  .hero .eyebrow-red {
    line-height: 1.6;
    overflow-wrap: anywhere;
  }
  .hero-grid,
  .home-pricing-lock,
  .hero-grid > div,
  .home-pricing-lock > div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .hero h1 { margin-bottom: 32px; }
  .hero p.lede {
    font-size: 18px;
    max-width: 26ch;
    overflow-wrap: break-word;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .platforms {
    padding-left: 0;
    padding-top: 16px;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .btn.btn-lg {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    padding: 16px 18px;
    text-align: center;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .forensics-card {
    max-width: 100%;
    overflow: hidden;
    box-shadow: 4px 4px 0 var(--ink);
  }
  .forensics-header {
    flex-wrap: wrap;
    gap: 12px;
  }
  .forensics-body { padding: 20px; }
  .q-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin: 0 -20px 20px;
    padding: 12px 20px;
  }
  .choice {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
  }
  .choice .pct {
    grid-column: 2;
    white-space: normal;
  }
  .q-meta .k,
  .q-meta .v,
  .q-stem,
  .choice .text,
  .forensics-header {
    overflow-wrap: anywhere;
  }
  .forensic-breakdown {
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: -20px;
    padding: 20px;
  }
  .forensic-breakdown .verdict {
    flex-direction: column;
    gap: 8px;
  }
  .locked-pricing-card { padding: 22px; }
}
