/* =========================
   Fonts
   ========================= */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap");

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./assets/fonts/inter-tight-latin.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("./assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

/* =========================
   Global tokens
   ========================= */

:root {
  /* Brand-aligned neutrals (clean SaaS, white surfaces) */
  --paper: #ffffff;
  --paper-2: #f7f7f8;
  --paper-3: #f0f2f4;

  /* Text */
  --ink: #101828;
  --ink-2: #344054;
  --ink-3: #667085;
  --ink-4: #98a2b3;

  /* Borders */
  --line: #e4e7ec;
  --line-2: #d0d5dd;

  /* Primary accent (docu tools orange) */
  --accent: #ff6b2c;
  --accent-soft: #ffe4d5;

  /* Audit severity palette */
  --crit: #d92d20;
  --crit-bg: #fee4e2;
  --warn: #f79009;
  --warn-bg: #fef0c7;
  --ok: #12b76a;
  --ok-bg: #d1fadf;
  --na: #98a2b3;
  --na-bg: #f2f4f7;

  /* Correlation tag palette */
  --confirm: var(--ok);
  --confirm-bg: var(--ok-bg);
  --new: var(--warn);
  --new-bg: var(--warn-bg);
  --strong: var(--crit);
  --strong-bg: var(--crit-bg);

  /* Interview role palette */
  --sales: #027a48;
  --sales-soft: #d1fadf;
  --cx: var(--accent);
  --cx-soft: var(--accent-soft);
  --support: #3538cd;
  --support-soft: #e0eaff;

  --shadow:
    0 1px 2px rgba(16, 24, 40, 0.06),
    0 12px 28px rgba(16, 24, 40, 0.10);

  /* Background gradient tweaks (page-scoped overrides allowed) */
  --bg-spot-1: rgba(255, 107, 44, 0.06);
  --bg-spot-2: rgba(16, 24, 40, 0.025);

  /* Page layout */
  --page-max: 1240px;
  --page-pad-top: 48px;
  --page-pad-x: 40px;
  --page-pad-bottom: 96px;
}

/* =========================
   Global base
   ========================= */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter Tight", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse at 12% 8%, var(--bg-spot-1), transparent 45%),
    radial-gradient(ellipse at 88% 92%, var(--bg-spot-2), transparent 50%);
  background-attachment: fixed;
}

/* =========================
   Shared layout + components
   ========================= */

.wrap {
  margin: 0 auto;
  max-width: var(--page-max);
  padding: var(--page-pad-top) var(--page-pad-x) var(--page-pad-bottom);
}

header.doc-head {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 28px 0 32px;
  margin-bottom: 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 18px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

h1.title {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
  color: var(--ink);
}
h1.title em { font-style: italic; font-weight: 300; color: var(--accent); }

.subtitle {
  font-family: "Playfair Display", serif;
  font-size: 19px;
  font-weight: 300;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 14px 0 0;
  font-style: italic;
  line-height: 1.45;
}

.meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--ink-3);
  text-align: right;
  line-height: 2;
  letter-spacing: 0.02em;
}
.meta b { color: var(--ink); font-weight: 600; }

.section-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

section.block { margin-bottom: 64px; }
section.block > h2 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
  color: var(--ink);
}
section.block > .block-intro {
  color: var(--ink-2);
  max-width: 70ch;
  margin: 0 0 28px;
  font-size: 15px;
}

footer.doc-foot {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
footer .sig em {
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: var(--accent);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}

/* Utilities (used to replace inline style="...") */
.u-ml-auto { margin-left: auto; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:where(a, button, [role="button"], input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mono-muted-11 {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--ink-3);
}
.mono-muted-11-tight { letter-spacing: 0.02em; }

/* Shared navigation (pure HTML) */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 18px;
  margin: 0 0 28px;
  border-bottom: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.site-nav a:hover { border-color: var(--line-2); color: var(--ink); }
.site-nav a:focus-visible { border-color: var(--line-2); color: var(--ink); }
.site-nav a:active { transform: translateY(1px); }
.site-nav a[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.site-nav a[aria-current="page"]:focus-visible { outline-color: var(--accent-soft); }

/* =========================
   Component primitives
   ========================= */

:where(.pcard, .feedback-card, .tipbox) {
  background: var(--paper-2);
  border: 1px solid var(--line);
}

:where(
  body.page-index .new-card,
  body.page-correlation .new-card,
  body.page-audit .questions,
  body.page-correlation .conclusion
) {
  background: var(--paper-2);
  border-left-width: 3px;
  border-left-style: solid;
}

:where(.step-req, .theme-pill, .impact-badge, .fc-tag, .link-pill, .prio-pill, .nc-tag) {
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  border-radius: 2px;
  white-space: nowrap;
}

:where(body.page-audit table.matrix thead th, body.page-correlation table.corr thead th) {
  background: var(--ink);
  color: var(--paper);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 14px 14px;
  text-align: left;
  border-right: 1px solid var(--ink-2);
}

/* =========================
   Page: Audit
   ========================= */

body.page-audit h1.title { font-size: clamp(42px, 5.2vw, 68px); }
body.page-audit .subtitle { max-width: 52ch; }

/* KPI ROW */
body.page-audit .kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
body.page-audit .kpi {
  padding: 22px 24px 20px;
  border-right: 1px solid var(--line);
  position: relative;
}
body.page-audit .kpi:last-child { border-right: none; }
body.page-audit .kpi .k-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
body.page-audit .kpi .k-value {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
body.page-audit .kpi .k-value .unit {
  font-size: 15px;
  color: var(--ink-3);
  margin-left: 6px;
  font-family: "Inter Tight", sans-serif;
  font-weight: 500;
}
body.page-audit .kpi .k-sub {
  color: var(--ink-3);
  font-size: 12px;
  margin-top: 6px;
}
body.page-audit .kpi.crit .k-value { color: var(--crit); }
body.page-audit .kpi.warn .k-value { color: var(--warn); }
body.page-audit .kpi.accent .k-value { color: var(--accent); }

/* LEGEND */
body.page-audit .legend {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  font-size: 12px;
  color: var(--ink-2);
}
body.page-audit .legend-item { display: inline-flex; align-items: center; gap: 8px; }

body.page-audit .sev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  color: white;
}
body.page-audit .sev.crit { background: var(--crit); }
body.page-audit .sev.warn { background: var(--warn); }
body.page-audit .sev.ok { background: var(--ok); }
body.page-audit .sev.na { background: var(--na); color: white; }

/* MATRIX */
body.page-audit .matrix-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-2);
}
body.page-audit table.matrix {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--paper-2);
}
body.page-audit table.matrix thead th { vertical-align: middle; }
body.page-audit table.matrix thead th:last-child { border-right: none; }
body.page-audit table.matrix thead th.platform { text-align: center; width: 110px; }
body.page-audit table.matrix thead th.col-step { width: 22%; }
body.page-audit table.matrix thead th.platform .plat-label { display: block; font-weight: 600; color: var(--paper); }
body.page-audit table.matrix thead th.platform .plat-sub {
  display: block;
  font-size: 9px;
  color: var(--ink-4);
  margin-top: 3px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

body.page-audit table.matrix tbody td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 14px 14px;
  vertical-align: top;
}
body.page-audit table.matrix tbody td:last-child { border-right: none; }
body.page-audit table.matrix tbody tr:last-child td { border-bottom: none; }

body.page-audit .step-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
body.page-audit .step-name {
  font-family: "Playfair Display", serif;
  font-size: 16px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 6px;
  font-weight: 500;
}
body.page-audit .step-req {
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  display: inline-block;
  margin-right: 4px;
  margin-top: 2px;
}
body.page-audit .step-req.req { background: var(--ink); color: var(--paper); }
body.page-audit .step-req.opt { background: transparent; color: var(--ink-3); border: 1px solid var(--line-2); }
body.page-audit .step-req.hid { background: var(--accent-soft); color: var(--accent); }

body.page-audit .matrix-step-desc {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 8px;
  line-height: 1.45;
}

body.page-audit .cell-sev-row { display: flex; align-items: flex-start; gap: 10px; }
body.page-audit .cell-sev-row .sev { flex-shrink: 0; margin-top: 1px; }
body.page-audit .cell-text { flex: 1; color: var(--ink-2); font-size: 12px; line-height: 1.5; }
body.page-audit .cell-text b { color: var(--ink); font-weight: 600; }

/* THEMES PANEL */
body.page-audit .themes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
body.page-audit .theme {
  padding: 28px 28px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  position: relative;
}
body.page-audit .theme-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
body.page-audit .theme-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}
body.page-audit .theme-title {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  margin: 6px 0 10px;
  letter-spacing: -0.01em;
}
body.page-audit .theme-pill {
  font-size: 9px;
  letter-spacing: 0.14em;
  padding: 4px 9px;
  flex-shrink: 0;
}
body.page-audit .theme-pill.high { background: var(--crit-bg); color: var(--crit); }
body.page-audit .theme-pill.med { background: var(--warn-bg); color: var(--warn); }
body.page-audit .theme-pill.low { background: var(--ok-bg); color: var(--ok); }
body.page-audit .theme-body { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin-bottom: 14px; }
body.page-audit .theme-affects {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  padding-top: 12px;
  border-top: 1px dashed var(--line-2);
}
body.page-audit .theme-affects b { color: var(--ink); font-weight: 600; }

/* PLATFORM SNAPSHOT */
body.page-audit .platform-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
body.page-audit .pcard { padding: 22px 18px 20px; position: relative; }
body.page-audit .pcard .p-icon {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
body.page-audit .pcard h3 {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  line-height: 1.15;
}
body.page-audit .pcard .p-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line-2);
  margin-bottom: 14px;
}
body.page-audit .pcard .p-score .val {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  line-height: 1;
  color: var(--ink);
  font-weight: 400;
}
body.page-audit .pcard .p-score .lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
body.page-audit .pcard .p-bar { display: flex; gap: 3px; margin-bottom: 10px; }
body.page-audit .pcard .p-bar span { height: 6px; flex: 1; background: var(--line); border-radius: 1px; }
body.page-audit .pcard .p-bar span.crit { background: var(--crit); }
body.page-audit .pcard .p-bar span.warn { background: var(--warn); }
body.page-audit .pcard .p-bar span.ok { background: var(--ok); }
body.page-audit .pcard .p-bar span.na { background: var(--na); }
body.page-audit .pcard ul.p-notes { list-style: none; padding: 0; margin: 0; font-size: 12px; color: var(--ink-2); }
body.page-audit .pcard ul.p-notes li { padding: 4px 0 4px 14px; position: relative; line-height: 1.45; }
body.page-audit .pcard ul.p-notes li::before { content: "—"; position: absolute; left: 0; color: var(--ink-4); }

/* RECOMMENDATIONS */
body.page-audit .rec-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
body.page-audit .rec-table thead th {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}
body.page-audit .rec-table thead th:first-child { padding-left: 0; }
body.page-audit .rec-table thead th.col-rec-id { width: 44px; }
body.page-audit .rec-table thead th.col-impact { width: 110px; }
body.page-audit .rec-table thead th.col-effort { width: 110px; }
body.page-audit .rec-table thead th.col-platforms { width: 130px; }
body.page-audit .rec-table thead th.col-themes { width: 90px; }
body.page-audit .rec-table tbody td {
  padding: 18px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 13px;
  color: var(--ink-2);
}
body.page-audit .rec-table tbody td:first-child { padding-left: 0; }
body.page-audit .rec-table tbody tr:last-child td { border-bottom: none; }
body.page-audit .rec-id { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; }
body.page-audit .rec-title { font-family: "Playfair Display", serif; font-size: 17px; color: var(--ink); font-weight: 500; margin-bottom: 4px; line-height: 1.25; }
body.page-audit .rec-desc { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
body.page-audit .effort-dots { display: inline-flex; gap: 3px; }
body.page-audit .effort-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line); display: inline-block; }
body.page-audit .effort-dots span.on { background: var(--ink); }
body.page-audit .impact-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
}
body.page-audit .impact-badge.high { background: var(--accent); color: white; }
body.page-audit .impact-badge.med { background: var(--warn-bg); color: var(--warn); }
body.page-audit .impact-badge.low { background: var(--na-bg); color: var(--ink-3); }
body.page-audit .rec-meta { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--ink-3); }

/* QUESTIONS */
body.page-audit .questions { border-left-color: var(--accent); padding: 26px 28px 22px; }
body.page-audit .questions h3 { font-family: "Playfair Display", serif; font-size: 22px; font-weight: 500; margin: 0 0 4px; letter-spacing: -0.01em; }
body.page-audit .questions p.lead { color: var(--ink-3); font-size: 13px; margin: 0 0 18px; }
body.page-audit .questions ol { margin: 0; padding: 0; counter-reset: q; list-style: none; }
body.page-audit .questions ol li {
  counter-increment: q;
  padding: 10px 0 10px 40px;
  position: relative;
  font-size: 14px;
  color: var(--ink-2);
  border-top: 1px dashed var(--line-2);
  line-height: 1.5;
}
body.page-audit .questions ol li:first-child { border-top: none; }
body.page-audit .questions ol li::before {
  content: "Q" counter(q, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Audit responsive */
@media (max-width: 960px) {
  :root {
    --page-pad-top: 32px;
    --page-pad-x: 20px;
    --page-pad-bottom: 64px;
  }
  header.doc-head { grid-template-columns: 1fr; gap: 20px; }
  .meta { text-align: left; }
  body.page-audit .kpi-row { grid-template-columns: repeat(2, 1fr); }
  body.page-audit .kpi:nth-child(2) { border-right: none; }
  body.page-audit .kpi:nth-child(1),
  body.page-audit .kpi:nth-child(2) { border-bottom: 1px solid var(--line); }
  body.page-audit .themes-grid { grid-template-columns: 1fr; }
  body.page-audit .platform-cards { grid-template-columns: repeat(2, 1fr); }
  body.page-correlation .fc-body { grid-template-columns: 1fr; }
  body.page-correlation .fc-quote { border-right: none; border-bottom: 1px solid var(--line); }
  body.page-correlation .new-grid { grid-template-columns: 1fr; }
  body.page-correlation .shift-row { grid-template-columns: 1fr; gap: 8px; }
  body.page-correlation .arrow { display: none; }
  body.page-correlation .headline-stats { flex-wrap: wrap; gap: 20px; }
  body.page-interviews .purpose { grid-template-columns: 1fr; }
  body.page-interviews .purpose > div { border-right: none; border-bottom: 1px solid var(--line); }
  body.page-interviews .purpose > div:last-child { border-bottom: none; }
  body.page-interviews .principles { grid-template-columns: repeat(2, 1fr); }
  body.page-interviews .role-head { grid-template-columns: 1fr; }
  body.page-interviews .role-sigil { font-size: 64px; }
  body.page-interviews .question { grid-template-columns: 32px 1fr; }
  body.page-interviews .q-why { grid-column: 1 / -1; margin-top: 10px; }
  body.page-interviews .tips-grid { grid-template-columns: 1fr; }
  body.page-interviews .synth-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 560px) {
  body.page-audit .platform-cards { grid-template-columns: 1fr; }
  body.page-audit .kpi-row { grid-template-columns: 1fr; }
  body.page-audit .kpi { border-right: none; border-bottom: 1px solid var(--line); }
  body.page-audit .kpi:last-child { border-bottom: none; }
}

/* =========================
   Page: Correlation
   ========================= */

body.page-correlation {
  --on-dark-text: color-mix(in srgb, var(--paper) 78%, transparent);
  --on-dark-muted: color-mix(in srgb, var(--paper) 60%, transparent);
  --on-dark-border: color-mix(in srgb, var(--paper) 20%, transparent);
}

body.page-correlation .headline {
  background: var(--ink);
  color: var(--paper);
  padding: 36px 40px 38px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
body.page-correlation .headline::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50%;
  height: 180%;
  background: radial-gradient(circle, rgba(255, 107, 44, 0.18), transparent 60%);
  pointer-events: none;
}
body.page-correlation .headline .h-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 14px;
  position: relative;
}
body.page-correlation .headline h2 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--paper);
  position: relative;
  max-width: 32ch;
}
body.page-correlation .headline h2 em { color: var(--accent-soft); font-style: italic; font-weight: 300; }
body.page-correlation .headline p {
  font-size: 15px;
  color: var(--on-dark-text);
  line-height: 1.6;
  max-width: 68ch;
  margin: 0;
  position: relative;
}
body.page-correlation .headline-stats {
  display: flex;
  gap: 36px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--on-dark-border);
  position: relative;
}
body.page-correlation .h-stat .h-num {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  line-height: 1;
  color: var(--accent-soft);
  font-weight: 400;
}
body.page-correlation .h-stat .h-lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-top: 6px;
}

body.page-correlation .feedback-card { margin-bottom: 28px; overflow: hidden; }
body.page-correlation .fc-head {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 20px;
  padding: 20px 28px 18px;
  align-items: center;
  background: var(--paper-3);
  border-bottom: 1px solid var(--line);
}
body.page-correlation .fc-num {
  font-family: "Playfair Display", serif;
  font-size: 38px;
  line-height: 1;
  color: var(--accent);
  font-weight: 400;
  font-style: italic;
}
body.page-correlation .fc-title {
  font-family: "Playfair Display", serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
body.page-correlation .fc-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
body.page-correlation .fc-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 280px; }
body.page-correlation .fc-tag {
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 4px 9px;
}
body.page-correlation .fc-tag.confirm { background: var(--confirm-bg); color: var(--confirm); }
body.page-correlation .fc-tag.new { background: var(--new-bg); color: var(--new); }
body.page-correlation .fc-tag.strong { background: var(--strong-bg); color: var(--strong); }

body.page-correlation .fc-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; }
body.page-correlation .fc-quote { padding: 26px 28px 24px; border-right: 1px solid var(--line); background: var(--paper-2); position: relative; }
body.page-correlation .fc-quote::before {
  content: "“";
  position: absolute;
  top: 4px;
  left: 16px;
  font-family: "Playfair Display", serif;
  font-size: 80px;
  color: var(--line-2);
  line-height: 1;
  font-style: italic;
}
body.page-correlation .fc-quote-text {
  font-family: "Playfair Display", serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  font-style: italic;
  position: relative;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
  margin: 0;
}
body.page-correlation .fc-quote-text strong {
  color: var(--ink);
  background: var(--accent-soft);
  padding: 0 3px;
  font-weight: 500;
  font-style: normal;
}
body.page-correlation .fc-quote-source {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 16px;
  padding-left: 12px;
}

body.page-correlation .fc-analysis { padding: 26px 28px 24px; }
body.page-correlation .fc-analysis h5 {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 8px;
  font-weight: 500;
}
body.page-correlation .fc-analysis h5:not(:first-child) { margin-top: 18px; }
body.page-correlation .fc-analysis p { font-size: 13px; color: var(--ink-2); line-height: 1.55; margin: 0 0 6px; }
body.page-correlation .fc-analysis b { color: var(--ink); font-weight: 600; }
body.page-correlation .fc-link-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
body.page-correlation .link-pill {
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  background: var(--paper-3);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
body.page-correlation .link-pill.match { background: var(--confirm-bg); color: var(--confirm); border-color: transparent; }
body.page-correlation .link-pill.gap { background: var(--new-bg); color: var(--new); border-color: transparent; }

body.page-correlation .corr-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--paper-2); }
body.page-correlation table.corr { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 13px; }
body.page-correlation table.corr thead th:last-child { border-right: none; }
body.page-correlation table.corr thead th.feedback { text-align: center; width: 70px; }
body.page-correlation table.corr thead th.col-audit-ref { width: 38%; }
body.page-correlation table.corr tbody td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 14px 14px; vertical-align: top; }
body.page-correlation table.corr tbody td:last-child { border-right: none; }
body.page-correlation table.corr tbody tr:last-child td { border-bottom: none; }
body.page-correlation table.corr tbody td.f-cell { text-align: center; vertical-align: middle; }
body.page-correlation .match-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
}
body.page-correlation .match-dot.strong { background: var(--accent); color: white; }
body.page-correlation .match-dot.partial { background: var(--accent-soft); color: var(--accent); }
body.page-correlation .match-dot.none { color: var(--ink-4); font-size: 13px; }
body.page-correlation .row-label { font-family: "Playfair Display", serif; font-size: 14px; color: var(--ink); font-weight: 500; line-height: 1.3; margin-bottom: 4px; }
body.page-correlation .row-meta { font-family: "JetBrains Mono", monospace; font-size: 9px; letter-spacing: 0.1em; color: var(--ink-3); text-transform: uppercase; }

body.page-correlation .new-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
body.page-correlation .new-card { border-left-color: var(--new); padding: 22px 24px 20px; }
body.page-correlation .new-card .nc-tag {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--new);
  background: var(--new-bg);
  padding: 3px 8px;
  display: inline-block;
  margin-bottom: 10px;
}
body.page-correlation .new-card h4 { font-family: "Playfair Display", serif; font-size: 19px; font-weight: 500; margin: 0 0 8px; line-height: 1.25; letter-spacing: -0.01em; }
body.page-correlation .new-card p { font-size: 13px; color: var(--ink-2); line-height: 1.55; margin: 0 0 10px; }
body.page-correlation .new-card .source { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.06em; color: var(--ink-3); padding-top: 10px; border-top: 1px dashed var(--line-2); }
body.page-correlation .new-card .source b { color: var(--ink); font-weight: 600; }

body.page-correlation .shifts { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
body.page-correlation .shift-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 60px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
body.page-correlation .shift-row:last-child { border-bottom: none; }
body.page-correlation .shift-id { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--ink-3); letter-spacing: 0.06em; }
body.page-correlation .shift-name { font-family: "Playfair Display", serif; font-size: 16px; font-weight: 500; color: var(--ink); line-height: 1.3; }
body.page-correlation .shift-prio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
body.page-correlation .prio-pill { padding: 4px 8px; font-weight: 600; }
body.page-correlation .prio-pill.was-low { background: var(--paper-3); color: var(--ink-3); }
body.page-correlation .prio-pill.was-med { background: var(--new-bg); color: var(--new); }
body.page-correlation .prio-pill.was-high { background: var(--strong-bg); color: var(--strong); }
body.page-correlation .prio-pill.is-critical { background: var(--accent); color: white; }
body.page-correlation .arrow { font-family: "JetBrains Mono", monospace; color: var(--ink-3); text-align: center; font-size: 16px; }
body.page-correlation .shift-why { font-size: 12px; color: var(--ink-2); line-height: 1.5; margin-left: 8px; text-transform: none; letter-spacing: 0; }
body.page-correlation .shift-why b { color: var(--ink); font-weight: 600; }

body.page-correlation .conclusion { border-left-color: var(--accent); padding: 30px 32px 26px; }
body.page-correlation .conclusion h3 { font-family: "Playfair Display", serif; font-size: 26px; font-weight: 500; margin: 0 0 8px; letter-spacing: -0.01em; }
body.page-correlation .conclusion p.lead {
  color: var(--ink-3);
  font-size: 13px;
  margin: 0 0 22px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
body.page-correlation .conclusion ol { margin: 0; padding: 0; counter-reset: c; list-style: none; }
body.page-correlation .conclusion ol li {
  counter-increment: c;
  padding: 14px 0 14px 44px;
  position: relative;
  font-size: 14px;
  color: var(--ink-2);
  border-top: 1px dashed var(--line-2);
  line-height: 1.55;
}
body.page-correlation .conclusion ol li:first-child { border-top: none; }
body.page-correlation .conclusion ol li::before {
  content: counter(c, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}
body.page-correlation .conclusion ol li b { color: var(--ink); font-weight: 600; }

/* =========================
   Page: Interviews
   ========================= */

body.page-interviews h1.title { font-size: clamp(42px, 5.2vw, 64px); }

body.page-interviews { --bg-spot-2: rgba(45, 90, 63, 0.03); }

body.page-interviews section.block { margin-bottom: 72px; }
body.page-interviews section.block > h2 { font-size: 34px; }
body.page-interviews section.block > .block-intro { max-width: 68ch; margin-bottom: 32px; }

body.page-interviews .purpose {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
body.page-interviews .purpose > div { padding: 24px 26px; border-right: 1px solid var(--line); }
body.page-interviews .purpose > div:last-child { border-right: none; }
body.page-interviews .purpose h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 10px;
}
body.page-interviews .purpose p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
body.page-interviews .purpose b { color: var(--ink); font-weight: 600; }

body.page-interviews .principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
body.page-interviews .principle { padding: 20px 20px 18px; background: var(--paper-2); border-left: 2px solid var(--ink); }
body.page-interviews .principle .num { font-family: "JetBrains Mono", monospace; font-size: 10px; color: var(--ink-3); letter-spacing: 0.1em; margin-bottom: 8px; }
body.page-interviews .principle h5 { font-family: "Playfair Display", serif; font-size: 17px; font-weight: 500; margin: 0 0 6px; line-height: 1.25; letter-spacing: -0.01em; }
body.page-interviews .principle p { font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.5; }

body.page-interviews .role-block { border-top: 2px solid var(--ink); padding-top: 32px; margin-bottom: 56px; }
body.page-interviews .role-head { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: start; margin-bottom: 28px; }
body.page-interviews .role-sigil {
  font-family: "Playfair Display", serif;
  font-size: 88px;
  line-height: 0.85;
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.04em;
}
body.page-interviews .role-sales .role-sigil { color: var(--sales); }
body.page-interviews .role-cx .role-sigil { color: var(--cx); }
body.page-interviews .role-support .role-sigil { color: var(--support); }

body.page-interviews .role-intro h3 { font-family: "Playfair Display", serif; font-size: 30px; font-weight: 500; margin: 0 0 4px; letter-spacing: -0.015em; line-height: 1.1; }
body.page-interviews .role-intro .role-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
body.page-interviews .role-intro p { font-size: 14px; color: var(--ink-2); max-width: 62ch; margin: 0; line-height: 1.55; }

body.page-interviews .role-stats { display: flex; flex-direction: column; gap: 10px; min-width: 180px; }
body.page-interviews .role-stat { padding: 10px 14px; background: var(--paper-2); border-left: 2px solid; font-size: 12px; color: var(--ink-2); line-height: 1.4; }
body.page-interviews .role-sales .role-stat { border-left-color: var(--sales); }
body.page-interviews .role-cx .role-stat { border-left-color: var(--cx); }
body.page-interviews .role-support .role-stat { border-left-color: var(--support); }
body.page-interviews .role-stat b {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
  font-weight: 500;
}

body.page-interviews .q-group { margin-bottom: 36px; }
body.page-interviews .q-group-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-2);
}
body.page-interviews .q-group-num { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; }
body.page-interviews .q-group-title { font-family: "Playfair Display", serif; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; margin: 0; flex: 1; }
body.page-interviews .q-group-goal { font-family: "Inter Tight", sans-serif; font-size: 12px; color: var(--ink-3); font-style: italic; max-width: 40ch; text-align: right; line-height: 1.4; }

body.page-interviews .question {
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 42px 1fr 240px;
  gap: 22px;
  align-items: start;
}
body.page-interviews .question:last-child { border-bottom: none; }
body.page-interviews .q-id { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; padding-top: 3px; }
body.page-interviews .q-main .q-text {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 400;
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}
body.page-interviews .q-main .q-text em { font-style: italic; color: var(--accent); font-weight: 400; }
body.page-interviews .q-probes { list-style: none; padding: 0; margin: 0; }
body.page-interviews .q-probes li { font-size: 13px; color: var(--ink-2); padding: 3px 0 3px 20px; position: relative; line-height: 1.5; }
body.page-interviews .q-probes li::before { content: "↳"; position: absolute; left: 0; color: var(--ink-4); font-family: "JetBrains Mono", monospace; font-size: 12px; }

body.page-interviews .q-why { padding: 12px 14px; background: var(--paper-2); border-left: 2px solid var(--accent); font-size: 12px; line-height: 1.5; color: var(--ink-2); }
body.page-interviews .role-sales .q-why { border-left-color: var(--sales); }
body.page-interviews .role-cx .q-why { border-left-color: var(--cx); }
body.page-interviews .role-support .q-why { border-left-color: var(--support); }
body.page-interviews .q-why .why-label { font-family: "JetBrains Mono", monospace; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 4px; }

body.page-interviews .tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
body.page-interviews .tipbox { padding: 26px 28px 22px; }
body.page-interviews .tipbox h4 { font-family: "Playfair Display", serif; font-size: 20px; font-weight: 500; margin: 0 0 14px; letter-spacing: -0.01em; }
body.page-interviews .tipbox ul { list-style: none; padding: 0; margin: 0; }
body.page-interviews .tipbox ul li { font-size: 13px; color: var(--ink-2); padding: 8px 0 8px 22px; position: relative; line-height: 1.5; border-top: 1px dashed var(--line-2); }
body.page-interviews .tipbox ul li:first-child { border-top: none; }
body.page-interviews .tipbox ul li::before { content: "●"; position: absolute; left: 0; top: 8px; color: var(--accent); font-size: 10px; }
body.page-interviews .tipbox.dos ul li::before { color: var(--sales); }
body.page-interviews .tipbox.donts ul li::before { content: "✕"; color: var(--cx); }
body.page-interviews .tipbox b { color: var(--ink); font-weight: 600; }

body.page-interviews .synthesis { border: 1px solid var(--ink); background: var(--paper-2); }
body.page-interviews .synth-head { padding: 20px 28px 18px; background: var(--ink); color: var(--paper); }
body.page-interviews .synth-head h4 { font-family: "Playfair Display", serif; font-size: 24px; font-weight: 400; margin: 0; color: var(--paper); }
body.page-interviews .synth-head .synth-sub { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.12em; color: var(--ink-4); margin-top: 4px; text-transform: uppercase; }
body.page-interviews .synth-body { padding: 28px 28px 20px; }
body.page-interviews .synth-row { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px dashed var(--line-2); }
body.page-interviews .synth-row:last-child { border-bottom: none; }
body.page-interviews .synth-label { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); padding-top: 4px; }
body.page-interviews .synth-field { font-size: 13px; color: var(--ink-2); line-height: 1.55; font-style: italic; }
body.page-interviews .synth-field .blank { display: inline-block; min-width: 220px; border-bottom: 1px solid var(--line-2); height: 1.4em; }

/* =========================
   Page: Index (landing)
   ========================= */

body.page-index .card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

body.page-index .new-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
body.page-index .new-card { border-left-color: var(--accent); padding: 22px 24px 20px; }
body.page-index .new-card:hover { border-left-color: var(--ink); }
body.page-index .new-card:focus-visible { border-left-color: var(--ink); }
body.page-index .new-card .nc-tag {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  display: inline-block;
  margin-bottom: 10px;
}
body.page-index .new-card h4 { font-family: "Playfair Display", serif; font-size: 19px; font-weight: 500; margin: 0 0 8px; line-height: 1.25; letter-spacing: -0.01em; }
body.page-index .new-card p { font-size: 13px; color: var(--ink-2); line-height: 1.55; margin: 0 0 10px; }
body.page-index .new-card .source { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.06em; color: var(--ink-3); padding-top: 10px; border-top: 1px dashed var(--line-2); }
body.page-index .new-card .source b { color: var(--ink); font-weight: 600; }

@media (max-width: 960px) {
  body.page-index .new-grid { grid-template-columns: 1fr; }
}

