/* =========================================================================
   Pricing Excellence Blueprint — stylesheet
   Single file, no build step, no external assets (see _headers CSP).
   Palette taken from the source blueprint deck.
   ========================================================================= */

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
svg { display: block; }

/* --------------------------------------------------------------- tokens */
/* Dark only. There is no light palette and no theme switch: the site is
   designed for one set of values, so every colour is defined exactly once. */
:root {
  color-scheme: dark;

  --bg:            #0b1614;
  --surface:       #12211f;
  --surface-2:     #1a2c29;
  --border:        #2b433f;
  --border-strong: #3e5a55;
  --text:          #e6efed;
  --text-muted:    #a9bcb9;
  --text-faint:    #7d928e;
  --accent:        #4fc3ac;
  --accent-deep:   #0f3d38;
  --accent-hover:  #6fd6c1;
  --accent-soft:   #12332e;
  --on-accent:     #06201c;
  --focus:         #4fc3ac;

  --band-critical:   #e8806c;
  --band-reactive:   #e0a94a;
  --band-structured: #6aa9c9;
  --band-strategic:  #4fc3ac;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .45);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);

  --radius:    10px;
  --radius-lg: 14px;

  --wrap:        1180px;
  --wrap-narrow: 720px;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-serif, Georgia, "Iowan Old Style", Cambria,
                  "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* ----------------------------------------------------------------- base */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}
.wrap-narrow { max-width: var(--wrap-narrow); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 18px; z-index: 100; border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------- header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky; top: 0; z-index: 20;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 62px; gap: 16px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.02rem; letter-spacing: -.01em;
}
.wordmark strong { font-weight: 700; }
.wordmark-mark {
  width: 11px; height: 11px; border-radius: 3px;
  background: var(--accent); flex: none;
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--text-muted); text-decoration: none;
  font-size: .9rem; padding: 6px 12px; border-radius: 999px;
  border: 1px solid transparent;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] {
  color: var(--accent); border-color: var(--border-strong); background: var(--surface-2);
}

/* ---------------------------------------------------------------- views */
.page { padding-block: clamp(36px, 6vw, 68px); }
.view { display: none; padding-block: clamp(36px, 6vw, 68px); }
.view-active { display: block; }

/* ---------------------------------------------------------------- intro */
.intro-head { max-width: 760px; }
.eyebrow {
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 18px;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 4.6vw, 2.9rem);
  line-height: 1.16; letter-spacing: -.022em; font-weight: 700;
  margin-bottom: 24px; text-wrap: balance;
}

.lede {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 16px;
}

.intro-actions { margin-top: 40px; }
.micro { font-size: .85rem; color: var(--text-faint); margin-top: 14px; }

/* --------------------------------------------------------------- canvas */
.canvas { display: grid; gap: 14px; }

.canvas-row {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 18px;
  align-items: stretch;
}
.canvas-row-label {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center;
  gap: 4px; text-align: right;
  border-right: 2px solid var(--border);
  padding-right: 16px;
}
.canvas-row-name {
  font-size: .74rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--text-faint);
}
.canvas-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.canvas-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: grid; gap: 10px; align-content: start;
  box-shadow: var(--shadow-sm);
}
.canvas-cell-head {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 10px; align-items: center;
}
.canvas-n {
  width: 26px; height: 26px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--accent); color: var(--on-accent);
  font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.canvas-cell-name {
  font-family: var(--font-display);
  font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em;
}
.canvas-prompt {
  font-style: italic; color: var(--accent);
  font-size: .89rem; line-height: 1.45;
}

/* --------------------------------------------------------------- button */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: 1px solid transparent; border-radius: var(--radius);
  padding: 11px 20px; font-size: .95rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s, transform .06s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled {
  background: var(--surface-2); color: var(--text-faint);
  cursor: not-allowed; border-color: var(--border);
}
.btn-secondary {
  background: var(--surface); color: var(--text); border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-ghost:disabled { opacity: .4; cursor: not-allowed; }

/* ------------------------------------------------------------- objective */
/* The unscored steps lead with the question itself, not a section title. */
.step-question {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  line-height: 1.22; letter-spacing: -.022em; font-weight: 700;
  margin-bottom: 28px; text-wrap: balance;
}
.objectives { display: grid; gap: 10px; margin-bottom: 8px; }
.objective-option .option-label { font-weight: 600; }

/* --------------------------------------------------------------- metrics */
.metrics { display: grid; gap: 10px; margin-bottom: 8px; }
.metric-row {
  display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: stretch;
}
.metric-option { grid-column: 1; }
.metric-more {
  grid-column: 2;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-faint);
  font-size: .82rem; padding: 0 16px; cursor: pointer; white-space: nowrap;
  transition: color .12s, border-color .12s, background-color .12s;
}
.metric-more:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.metric-more[aria-expanded="true"] {
  color: var(--accent); border-color: var(--accent); background: var(--accent-soft);
}
.metric-def {
  grid-column: 1 / -1;
  color: var(--text-muted); font-size: .9rem; line-height: 1.55;
  padding: 14px 16px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-left: 2px solid var(--accent); border-radius: var(--radius);
}

/* -------------------------------------------------------------- progress */
.progress-block { margin-bottom: 26px; }
.progress-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px; gap: 12px;
}
.progress-dim {
  font-size: .76rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
}
.progress-figures {
  display: flex; align-items: baseline; gap: 10px; flex: none;
}
.progress-count {
  font-size: .8rem; color: var(--text-faint); font-family: var(--font-mono);
}
.progress-pct {
  font-size: .8rem; font-weight: 700; color: var(--accent);
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
}
.progress-pct::before {
  content: "·"; color: var(--text-faint); font-weight: 400; margin-right: 10px;
}
.progress-track {
  height: 5px; background: var(--surface-2); border-radius: 999px;
  overflow: hidden; border: 1px solid var(--border);
}
.progress-fill {
  height: 100%; width: 0%; background: var(--accent);
  border-radius: 999px; transition: width .3s ease;
}

/* -------------------------------------------------------------- question */
.question-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow-md);
}
.cell-tag {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.cell-n {
  width: 26px; height: 26px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--accent); color: var(--on-accent);
  font-size: .82rem; font-weight: 700;
}
.cell-name {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700; letter-spacing: -.01em;
}
.question-text {
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 2.5vw, 1.5rem);
  line-height: 1.28; letter-spacing: -.018em; font-weight: 700;
  margin-bottom: 26px; text-wrap: balance;
}

.options { display: grid; gap: 10px; }
.option {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  width: 100%; text-align: left;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; cursor: pointer;
  transition: border-color .12s, background-color .12s;
}
.option:hover { border-color: var(--border-strong); background: var(--surface-2); }
.option[aria-checked="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.option-key {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 600;
  width: 24px; height: 24px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong); border-radius: 6px;
  color: var(--text-faint); background: var(--surface);
  margin-top: 1px;
}
.option[aria-checked="true"] .option-key {
  background: var(--accent); color: var(--on-accent); border-color: var(--accent);
}
.option-label { line-height: 1.45; font-size: .96rem; }

.quiz-nav {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 24px;
}
.nav-hint { text-align: center; }

/* ----------------------------------------------------------- email step */
.email-form {
  display: grid; gap: 14px; margin-bottom: 14px; justify-items: start;
}
.field { display: grid; gap: 6px; width: 100%; }
.field label {
  font-size: .85rem; font-weight: 600; color: var(--text-muted);
}
.field-optional {
  font-weight: 400; color: var(--text-faint); font-size: .8rem;
}
.text-input {
  font: inherit; font-size: 1rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 13px 16px; width: 100%;
}
.text-input::placeholder { color: var(--text-faint); }
.text-input:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--accent);
}
.email-error {
  color: var(--band-critical); font-size: .9rem; margin-bottom: 14px;
}
.email-status {
  background: var(--surface-2); border: 1px solid var(--border);
  border-left: 2px solid var(--accent); border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 24px;
  color: var(--text-muted); font-size: .92rem;
}

/* --------------------------------------------------------------- results */
.score-hero {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 40px);
  align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow-lg); margin-bottom: 48px;
}
.score-dial { position: relative; width: 148px; height: 148px; flex: none; }
.dial { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial circle { fill: none; stroke-width: 9; }
.dial-track { stroke: var(--surface-2); }
.dial-value {
  stroke: var(--band-color, var(--accent));
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset .9s cubic-bezier(.22,.61,.36,1);
}
.score-number {
  position: absolute; inset: 0;
  display: grid; place-content: center; text-align: center;
  font-variant-numeric: tabular-nums;
}
.score-number > span:first-child {
  font-family: var(--font-display);
  font-size: 2.6rem; font-weight: 700; letter-spacing: -.04em; line-height: 1;
}
.score-denom { font-size: .85rem; color: var(--text-faint); }

.band-label {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--band-color, var(--accent));
  border: 1px solid currentColor; border-radius: 999px;
  padding: 3px 11px; margin-bottom: 14px;
}
.score-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  line-height: 1.24; letter-spacing: -.022em; margin-bottom: 12px;
  text-wrap: balance;
}
.band-summary { color: var(--text-muted); font-size: .97rem; }
.objective-note {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--text-faint); font-size: .9rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.1rem; letter-spacing: -.01em; margin-bottom: 18px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}

/* ------------------------------------------------------------- weakest */
.weakest {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--band-color, var(--accent));
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 32px);
  margin-bottom: 48px;
  box-shadow: var(--shadow-md);
}
.weakest-head {
  font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px;
}
.weakest-cell {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 10px;
  color: var(--band-color, var(--accent));
}
.weakest-action { color: var(--text-muted); font-size: 1rem; max-width: 68ch; }

/* --------------------------------------------------------- scored canvas */
/* The results page's grid: the blueprint's boxes, each carrying its number.
   Mirrors the PDF exactly. */
.canvas-scored { margin-bottom: 48px; }
.canvas-row-pct {
  font-family: var(--font-mono); font-size: .82rem; font-weight: 600;
  color: var(--text-muted); font-variant-numeric: tabular-nums;
}
.canvas-cell.is-scored { gap: 8px; }
.canvas-score {
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 700;
  color: var(--accent); letter-spacing: -.02em; line-height: 1;
  font-variant-numeric: tabular-nums; margin-top: auto;
}
.canvas-focus {
  font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
  font-weight: 700; color: var(--text-faint);
}

.actions { display: grid; gap: 16px; counter-reset: step; margin-bottom: 48px; }
.actions li {
  counter-increment: step;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--band-color, var(--accent));
  border-radius: var(--radius); padding: 18px 22px;
  display: grid; gap: 6px;
}
.actions li::before {
  content: "Then " counter(step);
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-faint);
}
.action-dim { font-weight: 700; letter-spacing: -.01em; font-family: var(--font-display); }
.action-text { color: var(--text-muted); font-size: .95rem; }

.results-actions {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px;
}

.cta-card {
  margin-top: 48px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 34px);
}
.cta-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: 10px;
}
.cta-card p {
  color: var(--text-muted); font-size: .96rem; max-width: 58ch; margin-bottom: 22px;
}

/* ------------------------------------------------------------- dashboard */
.dash-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 28px;
}
.dash-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin-bottom: 4px; }
.dash-head .micro { margin-top: 0; }

.range { display: flex; gap: 6px; flex: none; }
.range button {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); border-radius: 999px;
  padding: 7px 14px; font-size: .84rem; cursor: pointer;
}
.range button:hover { color: var(--text); border-color: var(--border-strong); }
.range button[aria-pressed="true"] {
  background: var(--accent-soft); color: var(--accent); border-color: var(--accent);
}

.dash-message { color: var(--text-muted); }

.tiles {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px;
}
.tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px;
  display: grid; gap: 4px; align-content: start;
}
.tile-label {
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 700;
}
.tile-value {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.tile-note { font-size: .82rem; color: var(--text-faint); }

.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 22px;
}
.panel-title {
  font-family: var(--font-display); font-size: 1.02rem; letter-spacing: -.01em;
  margin-bottom: 4px;
}
.panel-note { font-size: .84rem; color: var(--text-faint); margin-bottom: 16px; }
.panel-title + .rows, .panel-title + .timeseries { margin-top: 16px; }
.chart-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.chart-pair .panel { margin-bottom: 22px; }
.empty { color: var(--text-faint); font-size: .88rem; }

/* Vertical bars: one column per day, zero days kept visible as a hairline. */
.ts-plot {
  display: flex; align-items: flex-end; gap: 2px; height: 130px;
}
.ts-col {
  flex: 1 1 0; min-width: 3px; height: 100%;
  display: flex; align-items: flex-end; cursor: default;
  border-radius: 3px;
}
.ts-col:hover, .ts-col:focus-visible { background: var(--surface-2); outline: none; }
.ts-bar {
  width: 100%; background: var(--accent);
  border-radius: 3px 3px 0 0; min-height: 2px;
}
.ts-bar.is-zero { background: var(--border); }
.ts-axis {
  display: flex; justify-content: space-between; margin-top: 8px;
  font-size: .74rem; color: var(--text-faint); font-family: var(--font-mono);
}

/* Horizontal bars: length carries magnitude, the label carries identity. */
.rows { display: grid; gap: 12px; }
.row-item { display: grid; gap: 5px; border-radius: 4px; }
.row-item:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.row-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.row-label { font-size: .88rem; }
.row-value {
  font-family: var(--font-mono); font-size: .82rem; font-weight: 600;
  color: var(--text-muted); font-variant-numeric: tabular-nums; flex: none;
}
.row-track {
  height: 7px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 999px; overflow: hidden;
}
.row-fill {
  height: 100%; background: var(--accent); border-radius: 999px;
  transition: width .5s cubic-bezier(.22,.61,.36,1);
}

.table-scroll { overflow-x: auto; margin-top: 16px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.data-table th, .data-table td {
  text-align: left; padding: 9px 14px 9px 0; white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 700;
}
.data-table td { color: var(--text-muted); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 18px; }
.data-table a { color: var(--accent); }
.data-table tbody tr:hover td { color: var(--text); background: var(--surface-2); }

.tooltip {
  position: absolute; z-index: 60; pointer-events: none;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 6px;
  padding: 6px 10px; font-size: .8rem; box-shadow: var(--shadow-md);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .chart-pair { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-block: 26px; margin-top: 56px;
}
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 10px 24px; align-items: baseline;
}
.site-footer p { font-size: .87rem; color: var(--text-muted); }
.site-footer a, .page a:not(.btn) { color: var(--accent); }
.site-footer a:hover, .page a:not(.btn):hover { color: var(--accent-hover); }
.site-footer .micro { margin-top: 0; }
.quote {
  font-family: var(--font-display); font-style: italic;
  color: var(--accent); max-width: 52ch;
}

kbd {
  font-family: var(--font-mono); font-size: .8em;
  background: var(--surface-2); border: 1px solid var(--border);
  border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px;
}

/* ----------------------------------------------------------------- home */
.hero { max-width: 780px; }
.hero h1 { margin-bottom: 22px; }
.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px;
}

.home-links {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin-top: clamp(46px, 7vw, 72px);
}
.home-link {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 26px;
  transition: border-color .15s, background-color .15s;
}
.home-link:hover { border-color: var(--border-strong); background: var(--surface-2); }
.home-link h2 {
  font-family: var(--font-display); font-size: 1.15rem;
  letter-spacing: -.02em; margin-bottom: 8px;
}
.home-link p { color: var(--text-muted); font-size: .93rem; }
.home-link .arrow { color: var(--accent); font-weight: 700; }

/* ------------------------------------------------------------ blueprint */
.page-head { max-width: 760px; margin-bottom: clamp(38px, 6vw, 56px); }
.page-head h1 { margin-bottom: 20px; }

.layers { display: grid; gap: clamp(32px, 5vw, 48px); margin-top: 52px; }
.layer-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 18px;
}
.layer-n {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 700;
  color: var(--accent); letter-spacing: .1em;
}
.layer-name {
  font-family: var(--font-display); font-size: 1.2rem;
  letter-spacing: -.02em; font-weight: 700;
}
.layer-blurb { color: var(--text-faint); font-size: .9rem; }
.layer-body { color: var(--text-muted); max-width: 68ch; margin-bottom: 20px; }

.cell-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cell-list li {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  display: grid; gap: 10px; align-content: start;
}
.cell-list .canvas-cell-name { display: block; }

.scoring-note {
  margin-top: clamp(40px, 6vw, 60px);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 32px);
}
.scoring-note h2 {
  font-family: var(--font-display); font-size: 1.15rem;
  letter-spacing: -.02em; margin-bottom: 12px;
}
.scoring-note p { color: var(--text-muted); font-size: .95rem; max-width: 66ch; }
.scoring-note p + p { margin-top: 12px; }

/* -------------------------------------------------------------- authors */
.authors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.author-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 32px);
  display: grid; gap: 12px; align-content: start;
  box-shadow: var(--shadow-md);
}
.author-photo {
  width: 152px; height: 152px; display: block;
  border-radius: var(--radius-lg); object-fit: cover;
  border: 1px solid var(--border); margin-bottom: 6px;
}
.author-name {
  font-family: var(--font-display); font-size: 1.35rem;
  letter-spacing: -.02em; font-weight: 700;
}
.author-role { color: var(--accent); font-size: .92rem; font-style: italic; }
.author-bio { color: var(--text-muted); font-size: .95rem; }
.author-link {
  color: var(--text); font-size: .9rem; text-decoration: none;
  border-bottom: 1px solid var(--border-strong); justify-self: start;
  padding-bottom: 2px; word-break: break-word;
}
.author-link:hover { color: var(--accent); border-color: var(--accent); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .canvas-row { grid-template-columns: 1fr; gap: 10px; }
  .canvas-row-label {
    flex-direction: row; align-items: baseline; justify-content: space-between;
    text-align: left;
    border-right: 0; border-bottom: 1px solid var(--border);
    padding-right: 0; padding-bottom: 8px;
  }
  .canvas-cells { grid-template-columns: 1fr; }
  .cell-list { grid-template-columns: 1fr; }
  .authors { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .score-hero { grid-template-columns: 1fr; justify-items: start; }
  .quiz-nav .btn { flex: 1; }
  .results-actions .btn { flex: 1 1 auto; }
  .home-links { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 1fr; }
  .metric-more { grid-column: 1; justify-self: start; padding: 8px 16px; }
  .header-inner { flex-wrap: wrap; min-height: 0; padding-block: 10px; gap: 6px 12px; }
  .site-nav a { padding: 6px 10px; }
}

/* -------------------------------------------------------------- a11y/print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header, .results-actions, .cta-card, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .view { padding-block: 0; }
  .score-hero, .weakest, .actions li, .canvas-cell { box-shadow: none; break-inside: avoid; }
  .canvas-row { break-inside: avoid; }
  .canvas-cells { grid-template-columns: repeat(3, 1fr); }
  .canvas-row { grid-template-columns: 110px 1fr; }
}
