/* Codebreak design tokens. Approximated from the brand system described in
   the handoff README (colours_and_type.css) since that file itself wasn't
   part of this handoff - swap these for the canonical hex values if they
   differ once you have that file. */
:root {
  --cb-black: #1d1d1d;
  --cb-white: #ffffff;
  --cb-off-white: #f7f6f4;
  --cb-yellow: #ffe800;
  --cb-yellow-dark: #cbb800;
  --cb-grey: #dad9d7;
  --cb-grey-light: #efeeec;
  --cb-grey-mid: #9c9a97;
  --cb-grey-dark: #6b6966;
  --cb-charcoal: #333333;
  --color-success: #2ecc4a;
  --color-amber: #ff9500;
  --color-error: #ff3b30;

  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;

  /* Semantic z-index scale - only one tier in use today, but named rather
     than an arbitrary number so a future overlay has somewhere to sit
     relative to it. */
  --z-sticky-cta: 40;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--cb-charcoal);
  background: var(--cb-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { text-wrap: balance; margin: 0; }

a { color: var(--cb-black); text-decoration: none; }
a:hover { color: var(--cb-yellow-dark); }

button { font-family: var(--font-display); }

input:focus, textarea:focus, button:focus-visible {
  outline: 2px solid var(--cb-yellow);
  outline-offset: 1px;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cb-yellow);
}

.btn {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  padding: 18px 32px;
  cursor: pointer;
  border-radius: 0;
  transition: transform 180ms cubic-bezier(0.16,1,0.3,1), box-shadow 180ms cubic-bezier(0.16,1,0.3,1);
  display: inline-block;
}
.btn-primary {
  background: var(--cb-yellow);
  color: var(--cb-black);
  box-shadow: 4px 4px 0 var(--cb-black);
}
.btn-primary:hover:not(:disabled) { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--cb-black); }
.btn-primary:active:not(:disabled) { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--cb-black); transition-duration: 60ms; }
.btn-primary.on-black { box-shadow: 4px 4px 0 var(--cb-white); }
.btn-primary.on-black:hover:not(:disabled) { box-shadow: 6px 6px 0 var(--cb-white); }
.btn-primary.on-black:active:not(:disabled) { box-shadow: 1px 1px 0 var(--cb-white); }
.btn-primary:disabled { background: var(--cb-grey-light); color: var(--cb-grey-mid); box-shadow: none; cursor: not-allowed; }
/* A loading submit is still "working", not "unavailable" - keep it looking
   alive (full colour, shadow) rather than falling back to the plain
   disabled treatment above, and use the spinner to carry the motion cue. */
.btn-primary.is-loading:disabled {
  background: var(--cb-yellow);
  color: var(--cb-black);
  box-shadow: 4px 4px 0 var(--cb-black);
  cursor: wait;
}
.btn-primary.is-loading.on-black:disabled { box-shadow: 4px 4px 0 var(--cb-white); }
.btn-spinner { display: inline-flex; align-items: center; gap: 5px; margin-right: 12px; vertical-align: middle; }
.btn-spinner span {
  width: 6px;
  height: 6px;
  background: currentColor;
  display: inline-block;
  animation: btn-spinner-pulse 900ms cubic-bezier(0.16,1,0.3,1) infinite;
}
.btn-spinner span:nth-child(1) { animation-delay: 0ms; }
.btn-spinner span:nth-child(2) { animation-delay: 150ms; }
.btn-spinner span:nth-child(3) { animation-delay: 300ms; }
@keyframes btn-spinner-pulse {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.7); }
  40% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-spinner span { animation: none; opacity: 1; }
}
.btn-secondary {
  background: var(--cb-white);
  color: var(--cb-black);
  border: 1.5px solid var(--cb-black);
  box-shadow: 3px 3px 0 var(--cb-grey);
}
.btn-secondary:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--cb-grey); }
.btn-secondary:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--cb-grey); transition-duration: 60ms; }
.btn-ghost {
  background: none;
  color: var(--cb-grey-dark);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px;
}
.btn-ghost:disabled { color: transparent; cursor: default; }

/* ---------- Landing ---------- */
.landing {
  min-height: 100vh;
  /* Matched to the hero photo's own near-black studio background (sampled
     ~rgb(2,2,2)) rather than the site's usual --cb-black (#1d1d1d, a visibly
     lighter charcoal) - the two need to read as one continuous black here,
     not two different darks sitting side by side. */
  background: #000;
  color: var(--cb-white);
  display: flex;
  flex-wrap: wrap;
}
/* Type and spacing here are sized against viewport HEIGHT as well as width,
   so the whole hero (headline through trust strip, CTA included) fits on one
   screen on a short laptop instead of pushing the proof and the button below
   the fold. The vw term still governs on wide-but-short windows; whichever
   of the two is smaller wins. */
.landing-copy {
  flex: 1 1 480px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(11px, 2vh, 22px);
  /* Vertical padding scales well below the horizontal: with the column
     centred it only shows once the content fills the height, which is
     exactly when it needs to give way instead. */
  padding: clamp(20px, 3.2vh, 64px) clamp(24px, 3.4vw, 48px);
}
/* Brand row: logo left, phone right. Sits in the copy column's normal flow
   so it shares the column's padding and can never collide with the headline
   on a short screen, which a position:absolute bar would. */
.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
}
/* White block, black lockup - the logo as supplied, dropped onto the black
   hero intact. The padding is its clearspace, scaled down from the artwork's
   own generous margin so the block reads as a logo rather than a panel. */
.cb-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--cb-white);
  color: var(--cb-black);
  padding: 8px 12px;
}
.cb-logo-mark { display: block; width: 15px; height: 15px; }
/* The artwork as supplied: white ground, full artboard, uncropped. Its own
   clearspace is about the height of the ink again on every side, so the
   block reads roughly 3x taller than the lockup inside it - hence the
   generous heights here. Sized against viewport height like the rest of
   this column so the header can't be what pushes the trust strip below the
   fold on a short laptop. */
.cb-logo-img { background: none; padding: 0; }
.cb-logo-img img { display: block; height: clamp(19px, 2.8vh, 26px); width: auto; }
.cb-logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  /* Tracking adds a trailing gap after the final letter that the optical
     right edge shouldn't inherit. */
  margin-right: -0.19em;
}
.landing-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--cb-white);
  text-decoration: none;
  white-space: nowrap;
  transition: color 120ms ease;
}
.landing-phone-icon { display: block; width: 14px; height: 14px; fill: var(--cb-yellow); }
.landing-phone:hover, .landing-phone:focus-visible { color: var(--cb-yellow); }
/* Logo and number are ~20px too wide together on a 375px phone, which drops
   the number onto its own line and costs the headline a row of height for
   nothing. Trimming both a notch keeps them on one line instead. */
@media (max-width: 480px) {
  .landing-header { gap: 10px 14px; }
  .cb-logo { gap: 6px; padding: 7px 10px; }
  .cb-logo-mark { width: 13px; height: 13px; }
  .cb-logo-word { font-size: 15px; letter-spacing: 0.16em; margin-right: -0.16em; }
  .cb-logo-img img { height: 20px; }
  .landing-phone { gap: 6px; font-size: 13px; }
}

.landing-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, min(4.6vw, 6.4vh), 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: none;
}
.landing-headline .hl-yellow { color: var(--cb-yellow); }
.landing-subhead {
  font-size: clamp(15px, 1.9vh, 17px);
  line-height: 1.5;
  color: var(--cb-grey);
  max-width: 52ch;
  font-weight: 300;
}
.landing-strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(14px, 1.7vh, 15px);
  color: var(--cb-white);
  margin: 0;
}
.landing-microcopy { font-size: 13px; color: var(--cb-grey-mid); }
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(6px, 1vh, 20px);
  padding-top: clamp(10px, 1.8vh, 24px);
  border-top: 1px solid #333;
}
.trust-stat-num { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--cb-yellow); }
.trust-stat-label { font-size: 12px; color: var(--cb-grey); }

.landing-visual {
  position: relative;
  flex: 1 1 380px;
  min-width: 320px;
  min-height: 420px;
  background: #000;
  overflow: hidden;
}
/* Side-by-side layout only. The columns wrap once the viewport is narrower
   than their combined flex-basis (480 + 380), so that's the breakpoint for
   anything that only makes sense while they sit next to each other. */
@media (min-width: 861px) {
  /* A keyline is the difference between "one seamless hero" and "where does
     the photo start?" now both columns share the same black. */
  .landing-visual { border-left: 1px solid rgba(255,255,255,0.5); }

  /* Pin the hero to one screen. Without a definite height here the photo's
     own aspect ratio decides how tall the row is (a 670px-wide column of a
     951x1403 image wants ~988px), which dragged the CTA and trust strip
     below the fold on any laptop. A definite height lets object-fit: cover
     crop the photo to the space instead of the space growing to the photo. */
  .landing { height: 100vh; }
  .landing-copy { min-height: 0; overflow-y: auto; }
  .landing-visual { min-height: 0; }
  /* Out of flow so the image can't size its own column: in flow, width:100%
     plus the intrinsic ratio wins over height:100% (the parent's height is
     circular), and the column grows to the photo. Absolute means the column
     stretches to the row and the photo crops into it. Mobile keeps the
     in-flow version, where the photo running to its natural height below
     the copy is exactly what we want. */
  .landing-photo { position: absolute; inset: 0; }
}
.landing-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
/* Full-photo tint grounding it into the black hero rather than sitting as a
   separate, brighter panel - rgba values mirror --cb-black (#1d1d1d), which
   var() can't carry a variable alpha channel on its own. Separate layer
   from .pain-overlay below, which handles text legibility on its own. */
.photo-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(29,29,29,0.75) 0%, rgba(29,29,29,0) 100%);
  pointer-events: none;
}
/* Anchored to the true bottom of the image at all times, independent of
   .pain-overlay below - that one gets shifted up by JS to line up with the
   CTA button, but the dark ground behind it should still read as part of
   the photo's own bottom edge, not travel with the text. */
.pain-scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 35%, rgba(0,0,0,0.92) 100%);
  pointer-events: none;
}
.pain-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: 32px 28px 28px;
}
.pain-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.3;
  color: var(--cb-white);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.pain-title::before { content: '— '; color: var(--cb-yellow); }
/* A point carrying its own marker drops the default dash. Flex so a title
   that wraps to two lines keeps its marker on the first line rather than
   letting the glyph ride the middle of the block. */
.pain-title.has-icon { display: flex; align-items: flex-start; gap: 8px; }
.pain-title.has-icon::before { content: none; }
.pain-icon {
  flex: none;
  width: 14px;
  height: 14px;
  /* Nudged down to sit on the cap height rather than the line box's top. */
  margin-top: 3px;
  fill: none;
  stroke: var(--cb-yellow);
  stroke-width: 2.6;
  /* Square caps, in keeping with the sharp corners everywhere else. */
  stroke-linecap: square;
}
/* Wide enough that most of the authored lines in painPoints hold a single
   rendered line - at 36ch they broke mid-sentence and left orphans like
   "job." stranded on their own. pretty keeps the two that still wrap from
   ending on a single word. */
.pain-sub {
  font-size: 13px;
  line-height: 1.5;
  color: var(--cb-grey);
  margin-top: 4px;
  max-width: 62ch;
  text-wrap: pretty;
}

/* ---------- Quiz ---------- */
.quiz-shell { min-height: 100vh; background: var(--cb-white); display: flex; flex-wrap: wrap; }
.quiz-side {
  flex: 1 1 300px;
  min-width: 260px;
  background: var(--cb-black);
  color: var(--cb-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 32px;
  gap: 24px;
}
.quiz-ring { position: relative; width: 150px; height: 150px; }
.quiz-ring::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, rgba(255,232,0,0.16), rgba(255,232,0,0) 68%);
  z-index: 0;
}
.quiz-ring svg { position: relative; z-index: 1; width: 100%; height: 100%; transform: rotate(-90deg); filter: drop-shadow(0 0 10px rgba(255,232,0,0.25)); }
.quiz-ring-pct { position: absolute; z-index: 1; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 28px; }
.quiz-side-label { text-align: center; }
.quiz-section-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cb-yellow);
  margin-bottom: 8px;
}
/* Reserves the same vertical space whether a section label is showing this
   question or not, so the ring above it doesn't shift position between
   questions - visibility:hidden keeps the box, unlike display:none. */
.quiz-section-label--empty { visibility: hidden; }
.quiz-question-fraction { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--cb-grey); }

.quiz-main { flex: 2 1 480px; min-width: 320px; display: flex; flex-direction: column; justify-content: center; padding: 56px 44px; gap: 26px; }
@media (prefers-reduced-motion: no-preference) {
  .quiz-question-block, .quiz-answer, .quiz-nav {
    animation: reveal-up 380ms cubic-bezier(0.16,1,0.3,1) both;
  }
  .quiz-answer { animation-delay: 40ms; }
  .quiz-nav { animation-delay: 70ms; }
}
.quiz-question-block { max-width: 540px; }
.quiz-eyebrow { font-family: var(--font-display); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cb-yellow-dark); margin-bottom: 10px; }
.quiz-prompt { font-family: var(--font-display); font-weight: 800; font-size: clamp(23px, 3.2vw, 32px); line-height: 1.28; letter-spacing: -0.01em; color: var(--cb-black); }
.quiz-sub { font-size: 14px; color: var(--cb-grey-dark); margin: 8px 0 0; }

.quiz-answer { max-width: 540px; width: 100%; }
.quiz-text-input, .quiz-other-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 16px;
  border: 1.5px solid var(--cb-grey);
  background: var(--cb-off-white);
  color: var(--cb-charcoal);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.quiz-text-input:focus, .quiz-other-input:focus { border-color: var(--cb-black); box-shadow: inset 0 1px 4px rgba(0,0,0,0.08); }
.quiz-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
  font-family: var(--font-body);
}
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-multi-label { font-family: var(--font-display); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cb-grey-dark); margin-bottom: 4px; }
.quiz-option {
  padding: 16px;
  background: var(--cb-white);
  color: var(--cb-charcoal);
  border: 1.5px solid var(--cb-grey);
  font-size: 15px;
  cursor: pointer;
  transition: background-color 160ms cubic-bezier(0.16,1,0.3,1), border-color 160ms cubic-bezier(0.16,1,0.3,1), color 160ms cubic-bezier(0.16,1,0.3,1), transform 160ms cubic-bezier(0.16,1,0.3,1), box-shadow 160ms cubic-bezier(0.16,1,0.3,1);
}
.quiz-option:hover { border-color: var(--cb-black); transform: translate(-2px,-2px); box-shadow: 3px 3px 0 var(--cb-grey); }
.quiz-option:active { transform: translate(0,0); box-shadow: none; transition-duration: 60ms; }
.quiz-option.selected {
  background: var(--cb-black);
  color: var(--cb-white);
  border-color: var(--cb-black);
  transform: translate(-2px,-2px);
  box-shadow: 3px 3px 0 var(--cb-yellow);
}
.quiz-option.selected:hover { transform: translate(-2px,-2px); box-shadow: 3px 3px 0 var(--cb-yellow); }
.quiz-option.selected:active { transform: translate(0,0); box-shadow: none; transition-duration: 60ms; }

.quiz-nav { display: flex; justify-content: space-between; align-items: center; max-width: 540px; width: 100%; }

/* ---------- Contact gate ---------- */
.gate-wrap { min-height: 100vh; background: var(--cb-off-white); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.gate-card { max-width: 480px; width: 100%; display: flex; flex-direction: column; gap: 18px; background: var(--cb-black); color: var(--cb-white); padding: 44px; box-shadow: 8px 8px 0 var(--cb-yellow); }
.gate-title { font-family: var(--font-display); font-weight: 800; font-size: 27px; text-transform: uppercase; letter-spacing: -0.01em; }
.gate-sub { font-size: 16px; color: var(--cb-grey); font-weight: 300; margin: 0; }
/* Sits above the fields, not below them with the small print - it has to be
   read before someone decides whether to type their mobile number in. */
.gate-trust-line {
  font-size: 14px;
  line-height: 1.5;
  color: var(--cb-yellow);
  margin: 0;
  padding: 12px 14px;
  background: rgba(255,232,0,0.08);
  border-left: 2px solid var(--cb-yellow);
}
.gate-field { display: flex; flex-direction: column; gap: 6px; }
.gate-field-label { font-family: var(--font-display); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cb-grey); }
.gate-field input {
  width: 100%;
  font-size: 16px;
  padding: 14px;
  border: none;
  background: #2a2a2a;
  color: var(--cb-white);
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.35);
  transition: box-shadow 150ms ease;
}
.gate-field input:focus { background: #303030; }
/* Yellow rather than red: it reads on the black card at well over WCAG AA,
   and it's the brand's own "look here" colour rather than an alarm. */
.gate-field-error { font-size: 13px; line-height: 1.4; color: var(--cb-yellow); min-height: 0; }
.gate-field-error:empty { display: none; }
.gate-field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--cb-yellow); }
.gate-trust { font-size: 12px; color: var(--cb-grey-dark); line-height: 1.5; }
.gate-error { font-size: 13px; color: var(--cb-yellow); }

/* ---------- Results ---------- */
.results-hero { background: var(--cb-black); color: var(--cb-white); padding: 40px 24px; }
.results-hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.results-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3.4vw, 34px); text-transform: uppercase; margin-bottom: 8px; }
.score-meter { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 6px; }
.score-readout { display: flex; align-items: baseline; gap: 6px; }
.score-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(52px, 11vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cb-white);
}
.score-outof { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--cb-grey-mid); }
.score-blocks { display: flex; gap: 4px; width: min(88vw, 380px); }
.score-block {
  flex: 1;
  height: 30px;
  background: #262626;
  border: 1px solid #3a3a3a;
}
/* background-color is set inline per block (public/app.js) since each one
   carries its own red/amber/green colour; this rule only handles the shared
   depth cue once a block lights up. */
.score-block.filled { border-color: transparent; box-shadow: 0 3px 0 rgba(0,0,0,0.4); }
.results-context { max-width: 440px; font-size: 14px; color: var(--cb-grey); margin-top: 16px; }

.section-block { padding: 56px 24px; }
.section-inner { max-width: 720px; margin: 0 auto; }
.section-kicker { font-family: var(--font-display); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cb-grey-dark); margin-bottom: 16px; }

.rag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  background: var(--cb-grey-light);
  box-shadow: 0 10px 24px rgba(0,0,0,0.07);
}
.rag-item { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: var(--cb-white); }
.rag-name { font-size: 14px; color: var(--cb-charcoal); }
.rag-score-wrap { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: 12px; }
.rag-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.rag-score { font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--cb-black); }

.priority-block { background: var(--cb-yellow); padding: 56px 24px; }
.priority-kicker { font-family: var(--font-display); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cb-black); margin-bottom: 12px; }
.priority-name { font-family: var(--font-display); font-weight: 800; font-size: 23px; text-transform: uppercase; margin-bottom: 16px; color: var(--cb-black); }
.priority-text { font-size: 17px; font-weight: 500; line-height: 1.6; color: var(--cb-black); margin-bottom: 16px; white-space: pre-line; max-width: 68ch; }
.priority-bridge { font-size: 17px; line-height: 1.6; font-weight: 700; color: var(--cb-black); max-width: 68ch; }

.secondary-block { background: var(--cb-off-white); padding: 32px 24px; }
.secondary-text { font-size: 16px; line-height: 1.6; color: var(--cb-grey-dark); max-width: 68ch; }

.cta-block { background: var(--cb-black); padding: 64px 24px; }
/* The callback promise. Same treatment as the gate's trust line, so the
   promise made before the number was given and the one kept after it look
   like the same voice. */
.callback-notice {
  font-size: 16px; line-height: 1.5; color: var(--cb-yellow);
  border-left: 3px solid var(--cb-yellow); padding: 12px 16px; margin-bottom: 28px;
  background: rgba(255, 232, 0, 0.08); max-width: 60ch;
}
.cta-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3.4vw, 32px); text-transform: uppercase; color: var(--cb-white); margin-bottom: 12px; }
.cta-copy { font-size: 16px; font-weight: 300; color: var(--cb-grey); margin-bottom: 28px; max-width: 60ch; }
.calendly-embed { min-width: 280px; height: 700px; background: var(--cb-white); box-shadow: 8px 8px 0 var(--cb-yellow); }
.calendly-loading { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 14px; color: var(--cb-grey-dark); background: var(--cb-white); }
.nurture-copy { font-size: 15px; color: var(--cb-grey); margin-bottom: 16px; }
.nurture-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
/* The Systems of Scale opt-in: quieter than the link above it, so it reads
   as a choice rather than the main ask. */
.sos-optin { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--cb-charcoal); max-width: 60ch; }
.sos-optin-label { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--cb-grey); cursor: pointer; margin-bottom: 16px; }
.sos-optin-check { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--cb-yellow); cursor: pointer; }
.sos-optin-check:focus-visible { outline: 2px solid var(--cb-yellow); outline-offset: 2px; }
.sos-optin .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.sos-optin-error { font-size: 13px; color: var(--cb-yellow); margin: 12px 0 0; }
.sos-optin-error:empty { display: none; }
.sos-optin-done { font-size: 16px; line-height: 1.5; color: var(--cb-yellow); margin: 0; outline: none; }

.results-footer { background: var(--cb-black); padding: 40px 24px; }
.results-footer-inner { max-width: 720px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.results-footer-stat-num { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--cb-yellow); }
.results-footer-stat-label { font-size: 13px; color: var(--cb-grey); }
.restart-row { text-align: center; margin-top: 24px; }

@media (max-width: 640px) {
  .quiz-nav { flex-wrap: wrap; gap: 12px; }
}

/* ---------- Results page reveal sequence ----------
   Each block is fully visible with no JS involved - these rules only ever
   ADD a mount-time entrance on top of that default, so a script error or a
   headless renderer never leaves a section stuck invisible. Disabled
   entirely under reduced motion, which leaves every block at its default
   (already visible, no animation) rather than swapping in a cross-fade. */
@media (prefers-reduced-motion: no-preference) {
  .results-hero-inner,
  .section-block .section-inner,
  .priority-block .section-inner,
  .secondary-block .section-inner,
  .cta-block .section-inner,
  .rag-item {
    animation: reveal-up 640ms cubic-bezier(0.16,1,0.3,1) both;
  }
  .results-hero-inner { animation-delay: 0ms; }
  .section-block .section-inner { animation-delay: 60ms; }
  .priority-block .section-inner { animation-delay: 120ms; }
  .secondary-block .section-inner { animation-delay: 160ms; }
  .cta-block .section-inner { animation-delay: 200ms; }

  .rag-item { animation-duration: 480ms; }
  .rag-item:nth-child(1) { animation-delay: 80ms; }
  .rag-item:nth-child(2) { animation-delay: 120ms; }
  .rag-item:nth-child(3) { animation-delay: 160ms; }
  .rag-item:nth-child(4) { animation-delay: 200ms; }
  .rag-item:nth-child(5) { animation-delay: 240ms; }
  .rag-item:nth-child(6) { animation-delay: 280ms; }
  .rag-item:nth-child(7) { animation-delay: 320ms; }
  .rag-item:nth-child(8) { animation-delay: 360ms; }
  .rag-item:nth-child(9) { animation-delay: 400ms; }
  .rag-item:nth-child(10) { animation-delay: 440ms; }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Sticky results CTA ---------- */
.sticky-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-sticky-cta);
  background: var(--cb-black);
  border-top: 1px solid #333;
  padding: 12px 20px;
  transition: transform 320ms cubic-bezier(0.16,1,0.3,1), opacity 320ms cubic-bezier(0.16,1,0.3,1);
}
.sticky-cta-bar.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
.sticky-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sticky-cta-score { font-size: 14px; color: var(--cb-grey); }
.sticky-cta-score strong { font-family: var(--font-display); color: var(--cb-yellow); }
.sticky-cta-bar .btn { padding: 13px 24px; }

@media (max-width: 480px) {
  .sticky-cta-score { display: none; }
  .sticky-cta-inner { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta-bar { transition: opacity 150ms ease; }
  .sticky-cta-bar.is-hidden { transform: none; opacity: 0; }
}

/* ---------- Sticky landing CTA ----------
   Runs at every width now, as the guarantee that the CTA is never off
   screen. It's driven by an IntersectionObserver on the real button, so on
   a desktop where the whole hero fits it simply never appears; it only
   surfaces when the button has genuinely scrolled out of view. */
.landing-sticky-cta {
  display: flex;
  justify-content: center;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-sticky-cta);
  background: var(--cb-black);
  border-top: 1px solid #333;
  padding: 14px 20px;
  transition: transform 320ms cubic-bezier(0.16,1,0.3,1), opacity 320ms cubic-bezier(0.16,1,0.3,1);
}
.landing-sticky-cta .btn { text-align: center; }
.landing-sticky-cta.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }

/* Full-bleed button on phones, natural width on wider screens. */
@media (max-width: 640px) {
  .landing-sticky-cta .btn { display: block; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-sticky-cta { transition: opacity 150ms ease; }
  .landing-sticky-cta.is-hidden { transform: none; opacity: 0; }
}

/* ---------- Site footer ---------- */
/* Sits below the hero rather than inside it: the hero stays exactly one
   screen on desktop and the legal block is a short scroll away, which is
   where people go looking for it anyway. Present on every screen, so the
   privacy policy is one click from the contact gate. */
.site-footer {
  background: var(--cb-black);
  color: var(--cb-grey-mid);
  border-top: 1px solid #333;
  font-size: 12px;
  line-height: 1.6;
}
.site-footer-inner {
  /* Same horizontal padding as .landing-copy, and no centred max-width, so
     the footer's left edge lines up with the headline above it rather than
     starting 130px further in on a wide screen. */
  padding: 28px clamp(24px, 3.4vw, 48px) 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* Required wherever Meta ads land. Legible, not buried - it reads as a
   disclaimer rather than something we're hoping nobody notices. */
.site-footer-disclaimer {
  margin: 0;
  max-width: 88ch;
  /* --cb-grey-dark reads as the obvious "small print" colour here but lands
     at 3.08:1 on --cb-black, under AA for 12px text. --cb-grey-mid is 6:1
     and still clearly secondary to the company line below. */
  color: var(--cb-grey-mid);
}
.site-footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px 32px;
  padding-top: 14px;
  border-top: 1px solid #2a2a2a;
}
.site-footer-company { margin: 0; color: var(--cb-grey); }
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.site-footer a {
  color: var(--cb-grey);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-footer a:hover, .site-footer a:focus-visible {
  color: var(--cb-yellow);
  border-bottom-color: var(--cb-yellow);
}
.site-footer-copyright { margin: 0; color: var(--cb-grey-mid); }

@media (max-width: 640px) {
  .site-footer-row { flex-direction: column; }
}

/* Cookie consent. Both buttons look the same on purpose: refusing has to be
   as easy as accepting. The sticky bars move up while it's showing. */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 560px; margin: 0 auto; padding: 16px 18px;
  background: var(--cb-white); color: var(--cb-black);
  box-shadow: 6px 6px 0 var(--cb-yellow); font-size: 14px; line-height: 1.5;
}
.cookie-banner a { color: var(--cb-black); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.cookie-banner-actions .btn { flex: 1 1 140px; padding: 12px 16px; }
body.has-cookie-banner .landing-sticky-cta,
body.has-cookie-banner .sticky-cta-bar { bottom: var(--cookie-banner-h, 0px); }

/* The quieter second option on a dark block (the podcast beside the book).
   Same size and type as the primary, outlined in white so it reads as a real
   button at AA contrast without competing with the yellow one. */
.btn-outline-light {
  background: transparent;
  color: var(--cb-white);
  box-shadow: inset 0 0 0 2px var(--cb-white);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.08); }
.btn-outline-light:focus-visible { outline: 2px solid var(--cb-yellow); outline-offset: 2px; }

/* Results-page case study: one real client, set above the agency figures. */
.case-study { max-width: 720px; margin: 0 auto 40px; padding: 28px; border-left: 4px solid var(--cb-yellow); background: #1a1a1a; }
.case-study-kicker { font-family: var(--font-display); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cb-grey); margin-bottom: 10px; }
.case-study-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 5vw, 40px); color: var(--cb-yellow); line-height: 1.1; }
.case-study-label { font-size: 16px; color: var(--cb-white); margin: 6px 0 16px; }
.case-study-line { font-size: 15px; color: var(--cb-grey); margin: 0 0 8px; max-width: 60ch; }
.case-study-line strong { color: var(--cb-white); font-weight: 500; }
.case-study-period { font-size: 13px; }
.case-study-quote { margin: 20px 0 0; font-size: 17px; line-height: 1.5; color: var(--cb-white); font-weight: 300; }
.case-study-quote cite { display: block; margin-top: 8px; font-style: normal; font-size: 13px; color: var(--cb-grey); }
