/* L1 assessment styles — matches docs/assets/DESIGN.md (the ShiftAI brand system).
   Self-contained: fonts are self-hosted (no external requests), so this stylesheet works
   identically on the web page and in the WeasyPrint PDF. Mobile-first; type scale grows on
   wider screens toward the brand's desktop scale. */

/* ── Fonts (self-hosted Inter + JetBrains Mono, Latin subset) ─────────────────── */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/static/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/static/fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('/static/fonts/inter-800.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 900; font-display: swap; src: url('/static/fonts/inter-900.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/fonts/jetbrains-mono-500.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/static/fonts/jetbrains-mono-600.woff2') format('woff2'); }

/* ── Design tokens (DESIGN.md) ─────────────────────────────────────────────────── */
:root {
  --ink: #111111;
  --paper: #fafaf7;
  --pencil: #2a2a2a;
  --grey-1: #e8e8e4;
  --grey-2: #c9c9c2;
  --grey-3: #8a8a83;
  --highlight: #fff3a3;
  --accent-red: #d93b3b;
  --white: #ffffff;

  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Hard offset shadows — the entire elevation system. No blur, ever. */
  --sh-btn: 3px 3px 0 var(--ink);
  --sh-card: 6px 6px 0 var(--ink);

  /* Spacing scale */
  --xs: 8px;
  --sm: 12px;
  --md: 16px;
  --lg: 24px;
  --xl: 32px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  background: var(--paper);          /* cream, never pure white */
  color: var(--ink);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap { max-width: 640px; margin: 0 auto; padding: var(--md) var(--md) 72px; }

/* ── Masthead + wordmark ───────────────────────────────────────────────────────── */
header.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 var(--md);
  border-bottom: 2px solid var(--ink);
  margin-bottom: var(--lg);
}
.wordmark {
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  font-kerning: normal;
}
.wordmark .dot { color: var(--accent-red); }
.masthead .label {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-3);
}

/* ── Typography ────────────────────────────────────────────────────────────────── */
h1 {
  font-weight: 900;
  font-size: 34px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: var(--xs) 0 var(--sm);
}
h2.section-h {
  font-weight: 800;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: var(--xl) 0 var(--md);
}
.eyebrow {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-3);
  margin-bottom: 10px;
}
.lede { font-size: 19px; font-weight: 500; line-height: 1.45; }
.question-text { font-size: 23px; font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 var(--lg); }

/* The yellow marker — one or two phrases per page, maximum. */
.hl { background: var(--highlight); padding: 0 5px; }

/* ── Buttons (square-ish, 2px ink border, hard shadow; red is NEVER a fill) ─────── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 24px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--sh-btn);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.btn.cta { font-size: 17px; padding: 16px 26px; }

.btn-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--grey-3);
  text-decoration: none;
  border-bottom: 1.5px solid var(--grey-2);
}
.btn-link:hover { color: var(--ink); border-color: var(--ink); }

/* Subtle "retake" control on the result page (low prominence, must not compete with the L2 CTA). */
.retake { margin-top: 32px; text-align: center; font-size: 13px; color: var(--grey-3); }
.retake-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  color: var(--grey-3); border-bottom: 1.5px solid var(--grey-2);
}
.retake-btn:hover { color: var(--ink); border-color: var(--ink); }

.actions { display: flex; align-items: center; gap: var(--md); margin-top: var(--lg); }

/* ── Progress ──────────────────────────────────────────────────────────────────── */
.progress-meta {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--grey-3);
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--xs);
}
.progress-track { height: 10px; background: var(--grey-1); border: 1.5px solid var(--ink); }
.progress-fill { height: 100%; background: var(--ink); transition: width 0.2s ease; }
.progress-track { margin-bottom: var(--xl); }

/* ── Radio option cards ────────────────────────────────────────────────────────── */
fieldset { border: 0; margin: 0; padding: 0; }
legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.option {
  display: flex;
  align-items: flex-start;
  gap: var(--sm);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 14px var(--md);
  margin-bottom: var(--sm);
  cursor: pointer;
  transition: box-shadow 0.08s ease, transform 0.08s ease, background 0.08s ease;
}
.option:hover { box-shadow: var(--sh-btn); transform: translate(-1px, -1px); }
/* Selected: pressed-sticker treatment in ink/grey, no yellow fill. */
.option:has(input:checked) { background: var(--grey-1); box-shadow: var(--sh-btn); }
.option input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.option .opt-text { font-size: 16px; line-height: 1.4; }

/* ── Forms ─────────────────────────────────────────────────────────────────────── */
.field { margin-bottom: var(--md); }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.field input, .field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.field [aria-invalid="true"] { box-shadow: var(--sh-btn); }
.error { display: block; color: var(--accent-red); font-size: 14px; font-weight: 600; margin-top: 6px; }

.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; margin: var(--sm) 0; cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }

.popia { margin: var(--lg) 0; font-size: 14px; }
.popia summary { cursor: pointer; color: var(--grey-3); font-weight: 600; }
.popia summary:hover { color: var(--ink); }
.popia p { color: var(--pencil); line-height: 1.55; }

/* ── Info band (grey-1, ink border) — replaces prior yellow fills ──────────────── */
.note, .destination {
  background: var(--grey-1);
  border: 1.5px solid var(--ink);
  padding: 14px var(--md);
  font-size: 15px;
  margin: var(--md) 0;
}

/* ── Result: score + bars ──────────────────────────────────────────────────────── */
.score-hero { margin: var(--sm) 0 var(--xs); }
.score-big { font-size: 72px; font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; }
.score-outof { font-size: 22px; font-weight: 500; color: var(--grey-3); margin-left: var(--xs); }
.dim-row { margin-bottom: 14px; }
.dim-label { display: flex; justify-content: space-between; font-size: 15px; font-weight: 500; margin-bottom: 5px; }
.dim-score { font-family: var(--mono); font-weight: 600; }
.bar-track { height: 14px; background: var(--grey-1); border: 1.5px solid var(--ink); }
.bar-fill { height: 100%; background: var(--ink); }

/* ── Opportunity cards — the signature white-on-cream card (pure white allowed) ── */
.opp-card {
  background: var(--white);
  border: 1.5px solid var(--ink);
  box-shadow: var(--sh-card);
  padding: 20px;
  margin-bottom: var(--lg);
}
.opp-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dashed var(--grey-2);
  padding-bottom: 10px;
  margin-bottom: var(--sm);
}
.opp-name { font-weight: 800; font-size: 18px; letter-spacing: -0.015em; }
/* pill-filled badge (DESIGN.md pill) */
.opp-level {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--ink);
  color: var(--paper);
  padding: 3px 10px;
  border-radius: 99px;
  white-space: nowrap;
}
.opp-where { font-size: 15.5px; margin: var(--sm) 0; }
.opp-reflection { font-size: 15.5px; margin: var(--sm) 0; color: var(--pencil); }
.opp-teaser { font-size: 15.5px; margin: var(--sm) 0 0; font-weight: 500; }

.pdf-download { margin: var(--md) 0 var(--lg); }
.l2-bridge { font-size: 18px; font-weight: 500; margin: var(--xl) 0 var(--md); }
.cta-confirm {
  font-weight: 700;
  font-size: 16px;
  background: var(--grey-1);
  border: 1.5px solid var(--ink);
  padding: 15px var(--md);
}

/* ── Sliding maturity scale (the taker's level marked) ──────────────────────────── */
.scale { display: flex; gap: 4px; margin: var(--sm) 0 var(--lg); }
.scale-seg {
  position: relative;
  flex: 1;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  padding: 22px 4px 8px;
  text-align: center;
  min-width: 0;
}
.scale-seg.is-you { background: var(--ink); color: var(--paper); box-shadow: var(--sh-btn); }
.scale-num {
  display: block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
}
.scale-name {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 3px;
  overflow-wrap: break-word;
}
.scale-marker {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent-red);
  color: var(--white);
  padding: 1px 6px;
  border-radius: 99px;
}

/* ── Stakes pair inside each opportunity card ───────────────────────────────────── */
.stakes { margin-top: var(--sm); border-top: 1px dashed var(--grey-2); padding-top: var(--sm); }
.stake { margin-bottom: var(--sm); }
.stake:last-child { margin-bottom: 0; }
.stake-label {
  display: block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-3);
  margin-bottom: 3px;
}
.stake p { margin: 0; font-size: 15.5px; }
.stake-gain p { font-weight: 500; }

/* ── Future-state picture ───────────────────────────────────────────────────────── */
.future-state { font-size: 16.5px; line-height: 1.55; }

/* ── Locked roadmap preview ─────────────────────────────────────────────────────── */
.preview-intro { font-size: 16px; margin-bottom: var(--md); }
.preview-list { list-style: none; counter-reset: phase; margin: 0; padding: 0; }
.preview-phase {
  counter-increment: phase;
  position: relative;
  border: 1.5px solid var(--ink);
  background: var(--white);
  padding: 14px var(--md) 14px 44px;
  margin-bottom: 10px;
}
.preview-phase::before {
  content: counter(phase);
  position: absolute;
  left: 12px;
  top: 13px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  color: var(--grey-3);
}
.preview-phase-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.preview-phase-title { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.preview-lock {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-3);
  border: 1.5px solid var(--grey-2);
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
}
.preview-phase-sub { display: block; font-size: 14px; color: var(--pencil); margin-top: 3px; }
/* The visibly-locked detail: greyed, blurred placeholder bars standing in for the paid content. */
.preview-locked-detail {
  margin-top: 10px;
  height: 26px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    var(--grey-1), var(--grey-1) 7px, var(--paper) 7px, var(--paper) 12px
  );
  filter: blur(1px);
  opacity: 0.8;
}
.preview-footer { font-size: 14.5px; color: var(--pencil); margin: var(--md) 0 var(--lg); }

/* ── The unlock card (quick-win, payback, single CTA) ───────────────────────────── */
.unlock-card {
  background: var(--white);
  border: 1.5px solid var(--ink);
  box-shadow: var(--sh-card);
  padding: 20px;
  margin-top: var(--md);
}
.unlock-card .quick-win { font-size: 16px; font-weight: 500; margin: 0 0 var(--sm); }
.unlock-card .payback { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.unlock-card .payback-assumption { font-size: 13px; color: var(--grey-3); margin: 0 0 var(--md); }
.unlock-card .unlock-line { font-size: 15.5px; margin: 0 0 var(--md); }
.unlock-card .btn.cta { width: 100%; text-align: center; }
.unlock-card .founder-trust {
  font-size: 14px;
  margin: 0 0 var(--md);
  padding-top: var(--sm);
  border-top: 1px dashed var(--grey-2);
}

/* ── Result-page rework (2026-07-21) ─────────────────────────────────────────────── */
/* The "one gap holds you back" banner, shown only for a balance-gated result. */
.gated-banner {
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-left: 6px solid var(--accent-red);
  box-shadow: var(--sh-card);
  padding: 16px 18px;
  margin: var(--md) 0 var(--lg);
}
.gated-banner .gated-headline { font-size: 17px; font-weight: 800; margin: 0 0 6px; }
.gated-banner .gated-body { font-size: 15.5px; line-height: 1.5; margin: 0; }

/* The free -> paid bridge. */
.bridge { margin: var(--lg) 0; }
.bridge .bridge-headline { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 8px; }
.bridge .bridge-body { font-size: 16.5px; line-height: 1.55; margin: 0; }

/* Generous preview: the boundary-safe "what's inside" bullets under each locked phase. */
.preview-reveal { list-style: none; margin: 10px 0 0; padding: 0; }
.preview-reveal li {
  position: relative;
  font-size: 14.5px;
  line-height: 1.45;
  padding: 3px 0 3px 18px;
}
.preview-reveal li::before {
  content: "+";
  position: absolute;
  left: 0;
  font-weight: 800;
  color: var(--accent-red);
}

/* "What happens after you pay". */
.post-purchase { margin: var(--lg) 0; }
.post-purchase-list { margin: 0; padding-left: 22px; }
.post-purchase-list li { font-size: 15.5px; line-height: 1.5; margin-bottom: 10px; }
.post-purchase-list li strong { font-weight: 800; }

/* The CTA block: full-width action button + price/guarantee micro-copy beneath it. */
.cta-block { margin-top: var(--lg); }
.cta-block .btn.cta { width: 100%; text-align: center; }
.cta-microcopy { font-size: 13px; color: var(--grey-3); text-align: center; margin: 10px 0 0; }

/* Two action buttons by the score: a secondary (outline) PDF download, and an outcome-led CTA
   that jumps down to the roadmap + offer. Stack on narrow screens via flex-wrap. */
.result-actions { display: flex; flex-wrap: wrap; gap: var(--md); margin: var(--lg) 0; }
.result-actions .btn { flex: 1 1 220px; text-align: center; }
.btn.btn-secondary { background: var(--paper); color: var(--ink); }
/* The outcome CTA pops in brand red so it stands out from the secondary download button. */
.btn.cta-jump { background: var(--accent-red); border-color: var(--accent-red); color: var(--white); }
html { scroll-behavior: smooth; }
.unlock-card .cta-confirm { margin-top: 0; }

/* ── L2 checkout (SHI-213) ─────────────────────────────────────────────────────── */
/* The price display: its own size. The score-hero's .score-big is 72-88px, sized for a 2-digit
   score and far too large for a price string like "US$500 (R9,000)". */
.price-hero { font-size: 30px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; }
.checkout-includes { margin: var(--md) 0; }
.checkout-form { margin: 0 0 var(--md); }
.checkout-note { font-size: 15px; margin: 0 0 var(--md); }
.checkout-help { display: block; font-size: 13px; color: var(--grey-3); margin-top: 4px; }
.checkout-error { display: block; font-size: 13px; font-weight: 600; color: #d93b3b; margin-top: 4px; }
.checkout-trust { font-size: 13.5px; margin: var(--md) 0 4px; }
.checkout-guarantee { font-size: 13.5px; font-weight: 600; margin: 0 0 4px; }

/* ── Trust strip ───────────────────────────────────────────────────────────────── */
.trust {
  margin-top: 48px;
  padding-top: var(--md);
  border-top: 1.5px solid var(--grey-2);
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-3);
}

/* ── Wider screens: grow the display type toward the brand's desktop scale ─────── */
@media (min-width: 640px) {
  .wrap { padding-left: var(--xl); padding-right: var(--xl); }
  h1 { font-size: 44px; }
  .question-text { font-size: 26px; }
  .score-big { font-size: 88px; }
  .price-hero { font-size: 40px; }
}
