/* ==========================================================================
   The Business Bottleneck Finder — Lumen (business operations)
   Mobile-first. Every brand colour and typeface is a CSS custom property set
   at runtime from assets/js/config.js (branding.colors / branding.fonts), so a
   re-brand never requires editing this file.
   ========================================================================== */

:root {
  /* Brand (defaults mirror config.js) */
  --c-brand: #252237;
  --c-brand-deep: #1a1828;
  --c-canvas: #f5f1ea;
  --c-paper: #ffffff;
  --c-surface: #ece6dc;
  --c-line: #e2dcd1;
  --c-line-strong: #c9c1b4;
  --c-ink: #252237;
  --c-muted: #5e5a70;
  --c-on-dark-muted: #b7b4cb;
  --c-secondary: #c7c6f5;
  --c-secondary-soft: #ebeafc;
  --c-secondary-deep: #4c47b8;
  --c-accent: #ff684a;
  --c-accent-deep: #c23214;
  --c-accent-soft: #ffe6df;
  --c-on-dark: #f5f1ea;
  --c-error: #b42318;
  --c-error-soft: #fdeceb;

  /* Neutral "demo chrome": deliberately outside the client brand */
  --demo-bg: #141414;
  --demo-fg: #f2f2f2;
  --demo-font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --f-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-lg: 10px;
  --r-md: 8px;
  --r-sm: 6px;
  --r-btn: 6px;
  --shadow-1: 0 1px 2px rgba(37, 34, 55, 0.06), 0 14px 34px -22px rgba(37, 34, 55, 0.35);
  --shadow-2: 0 2px 6px rgba(37, 34, 55, 0.06), 0 36px 70px -36px rgba(37, 34, 55, 0.55);
  --ease: cubic-bezier(0.2, 0.75, 0.1, 1);
  --gutter: 16px;

  /* Brand motif: a fine architectural grid on dark surfaces */
  --grid: linear-gradient(rgba(199, 198, 245, 0.075) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(199, 198, 245, 0.075) 1px, transparent 1px) 0 0 / 44px 44px;
}
@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--c-canvas);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--c-secondary-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
[tabindex='-1']:focus {
  outline: none;
}
::selection {
  background: var(--c-secondary);
  color: var(--c-brand);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--c-brand);
  color: var(--c-on-dark);
  padding: 12px 18px;
  border-radius: var(--r-btn);
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
}
html:not(.js) .js-only {
  display: none !important;
}

/* Labels: a single coral module + tracked caps */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow {
  display: block;
  line-height: 1.7;
}
.eyebrow .badge {
  margin-left: 8px;
  vertical-align: middle;
}
.eyebrow::before {
  display: inline-block;
  margin-right: 12px;
  vertical-align: 1px;
}
.eyebrow,
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-brand);
}
.eyebrow::before,
.section-label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--c-accent);
  flex: none;
}
.eyebrow--light {
  color: var(--c-on-dark);
}
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 3px;
  line-height: 1.2;
}
.badge--sample {
  background: var(--c-secondary);
  color: var(--c-brand);
}
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  color: inherit;
}
.link-btn:hover {
  color: var(--c-accent-deep);
}
.link-btn--quiet {
  font-weight: 400;
  text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--c-paper);
  --btn-fg: var(--c-ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--r-btn);
  border: 1.5px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.15s var(--ease),
    box-shadow 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.25s var(--ease);
}
.btn:hover svg:last-child {
  transform: translateX(4px);
}
.btn:active {
  transform: translateY(1px);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.btn--primary {
  --btn-bg: var(--c-brand);
  --btn-fg: var(--c-on-dark);
}
.btn--primary:hover {
  --btn-bg: var(--c-brand-deep);
}
@media (hover: hover) {
  .btn--primary:hover {
    box-shadow: 4px 4px 0 var(--c-secondary);
  }
  .btn--accent:hover {
    box-shadow: 4px 4px 0 var(--c-brand);
  }
}
.btn--accent {
  --btn-bg: var(--c-accent);
  --btn-fg: var(--c-brand);
}
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--c-brand);
  border-color: var(--c-brand);
}
.btn--outline:hover {
  --btn-bg: var(--c-brand);
  --btn-fg: var(--c-on-dark);
}
.btn--ghost {
  --btn-bg: transparent;
  border-color: var(--c-line-strong);
}
.btn--ghost:hover {
  border-color: var(--c-brand);
  --btn-bg: var(--c-paper);
}
.btn--ghost svg:first-child {
  transition: transform 0.25s var(--ease);
}
.btn--ghost:hover svg:first-child {
  transform: translateX(-4px);
}
.btn--lg {
  min-height: 58px;
  padding: 0 28px;
  font-size: 16.5px;
}
.btn--small {
  min-height: 42px;
  padding: 0 16px;
  font-size: 14.5px;
}
.btn--block {
  width: 100%;
}

/* ---------- Demo chrome (neutral, outside the client brand) ---------- */
.demo-bar {
  background: var(--demo-bg);
  color: var(--demo-fg);
  font-family: var(--demo-font);
  font-size: 13px;
  position: relative;
  z-index: 20;
}
.demo-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding-block: 6px;
}
.demo-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.badge--demo {
  background: transparent;
  color: var(--demo-fg);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-family: var(--demo-font);
}
.demo-text {
  color: rgba(255, 255, 255, 0.7);
  display: none;
}
@media (min-width: 760px) {
  .demo-text {
    display: inline;
  }
}
.demo-actions {
  display: flex;
  gap: 8px;
  flex: none;
}
.demo-toggle,
.demo-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--demo-fg);
  font: 600 13px var(--demo-font);
}
.demo-toggle::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.demo-toggle[aria-expanded='true']::after {
  transform: translateY(2px) rotate(-135deg);
}
.demo-toggle:hover,
.demo-reset:hover {
  background: rgba(255, 255, 255, 0.08);
}
.demo-reset svg {
  width: 15px;
  height: 15px;
}
.demo-bar :focus-visible,
.demo-disclosure :focus-visible {
  outline-color: #fff;
}
.demo-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 18px 22px;
  animation: drop 0.3s var(--ease);
}
.demo-panel-intro {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 14px;
}
.demo-scenarios {
  list-style: none;
  display: grid;
  gap: 10px;
}
@media (min-width: 640px) {
  .demo-scenarios {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .demo-scenarios {
    grid-template-columns: repeat(4, 1fr);
  }
}
.scenario {
  width: 100%;
  height: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--demo-fg);
  font-family: var(--demo-font);
  transition:
    border-color 0.2s,
    background-color 0.2s;
}
.scenario:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}
.scenario-label {
  font-weight: 600;
}
.scenario-summary {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  line-height: 1.45;
}

/* ---------- Site header ---------- */
.site-header {
  background: var(--c-canvas);
  border-bottom: 1px solid var(--c-brand);
}
.site-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
  margin-right: auto;
}
.brand-mark {
  flex: none;
  width: 36px;
  height: 36px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--f-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--c-brand);
  margin-right: -0.24em;
}
.brand-sub {
  margin-top: 6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.tool-name {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.tool-name::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--c-accent);
}
@media (min-width: 640px) {
  .tool-name {
    display: inline-flex;
  }
}
/* On the intro the eyebrow already names the tool */
body[data-screen='intro'] .tool-name {
  display: none;
}

main:focus {
  outline: none;
}
.view {
  animation: fade-in 0.45s var(--ease);
}

/* ---------- Intro: one focused screen ---------- */
.intro {
  display: grid;
  gap: 48px;
  align-items: center;
  align-content: center;
  min-height: calc(100svh - 74px - 44px);
  padding-block: 40px 56px;
}
@media (min-width: 1000px) {
  .intro {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 64px;
    padding-block: 56px 72px;
  }
}
.hero-title {
  margin-top: 24px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(3rem, 7.2vw + 0.4rem, 6.6rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  color: var(--c-brand);
  max-width: 11ch;
  text-wrap: balance;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(transparent 70%, var(--c-accent) 70%, var(--c-accent) 90%, transparent 90%);
  padding-inline: 0.04em;
}
.hero-sub {
  margin-top: 28px;
  font-size: clamp(1.06rem, 0.5vw + 0.96rem, 1.22rem);
  color: var(--c-muted);
  max-width: 34em;
  text-wrap: pretty;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (min-width: 560px) {
  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }
}
.hero-note {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-muted);
}
@media (min-width: 560px) {
  .hero-note {
    white-space: nowrap;
  }
}
.resume {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--c-secondary-soft);
  border-left: 3px solid var(--c-secondary-deep);
  font-size: 14.5px;
}
.noscript {
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--c-surface);
}

/* Bento: a glimpse of the product */
.hero-visual {
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
}
/* On small screens the intro stays a single, focused screen */
@media (max-width: 699px) {
  .hero-visual {
    display: none;
  }
}
.bento {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-areas:
    'main accent'
    'main soft'
    'wide wide';
  gap: 10px;
}
.bento-tile {
  border-radius: var(--r-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  animation: rise 0.7s var(--ease) both;
}
.bento-main {
  grid-area: main;
  animation-delay: 0.1s;
}
.bento-tile--accent {
  grid-area: accent;
  background: var(--c-accent);
  color: var(--c-brand);
  animation-delay: 0.22s;
}
.bento-tile--soft {
  grid-area: soft;
  background: var(--c-secondary);
  color: var(--c-brand);
  animation-delay: 0.32s;
}
.bento-wide {
  grid-area: wide;
  animation-delay: 0.42s;
}
.bento-tile--dark {
  background: var(--grid), var(--c-brand);
  color: var(--c-on-dark);
  padding: 22px;
}
.bento-tile--line {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
}
.bento-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bento-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.bento-tile--dark .bento-label {
  color: var(--c-on-dark-muted);
}
.bento-tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border: 1px solid rgba(245, 241, 234, 0.3);
  border-radius: 3px;
  color: var(--c-on-dark-muted);
}
.bento-big {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(4.4rem, 9vw, 6.4rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin-top: 18px;
}
.bento-big small {
  font-size: 0.42em;
  color: var(--c-accent);
  letter-spacing: 0;
  margin-left: 4px;
}
.bento-caption {
  font-size: 13px;
  color: var(--c-on-dark-muted);
  max-width: 16em;
}
.bento-bars {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 84px;
}
.bento-bars span {
  flex: 1;
  height: var(--h);
  background: var(--c-secondary);
  opacity: 0.85;
  transform-origin: bottom;
  animation: grow 0.8s var(--ease) both;
}
.bento-bars span:first-child {
  background: var(--c-accent);
  opacity: 1;
}
.bento-bars span:nth-child(2) {
  animation-delay: 0.05s;
}
.bento-bars span:nth-child(3) {
  animation-delay: 0.1s;
}
.bento-bars span:nth-child(4) {
  animation-delay: 0.15s;
}
.bento-bars span:nth-child(5) {
  animation-delay: 0.2s;
}
.bento-bars span:nth-child(6) {
  animation-delay: 0.25s;
}
.bento-bars span:nth-child(7) {
  animation-delay: 0.3s;
}
.bento-mid {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-top: auto;
}
.bento-mid small {
  display: block;
  margin-top: 6px;
  font-family: var(--f-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
}
.bento-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: auto;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
  margin-top: 6px;
}
.bento-grid span {
  aspect-ratio: 1;
  border-radius: 1px;
  background: var(--c-surface);
}
.bento-grid span:nth-child(-n + 14) {
  animation: fill-brand 0.4s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 1ms + 700ms);
}
.bento-grid span:nth-child(n + 15):nth-child(-n + 22) {
  animation: fill-secondary 0.4s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 1ms + 700ms);
}

.r-hero :focus-visible,
.lead-pitch :focus-visible,
.bn-card--primary :focus-visible,
.big-figure :focus-visible {
  outline-color: var(--c-secondary);
}

/* ---------- Swatches (shared with charts) ---------- */
.swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex: none;
}
.swatch--delegable {
  background: var(--c-brand);
}
.swatch--retained {
  background: var(--c-secondary);
}
.swatch--other {
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line-strong);
}

/* ---------- Assessment: an interactive product ---------- */
.assess-wrap {
  max-width: 800px;
  padding-top: 24px;
}
@media (min-width: 1024px) {
  .assess-wrap {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 80px;
    align-items: start;
    padding-top: 48px;
  }
}
.progress {
  margin-bottom: 30px;
}
.progress-kicker,
.progress-note,
.progress-percent {
  display: none;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.progress-section {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.progress-count {
  font-size: 13px;
  color: var(--c-muted);
  font-variant-numeric: tabular-nums;
}
/* The continuous bar stays for assistive tech; the segmented indicator is the visual. */
.progress-track {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.progress-sections {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-muted);
  counter-reset: sec;
}
.progress-sections li {
  counter-increment: sec;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  min-width: 0;
  transition: color 0.3s;
}
.progress-sections li span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.progress-sections li::before {
  content: '';
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--c-brand) var(--seg, 0%), var(--c-line) var(--seg, 0%));
  transition: background 0.6s var(--ease);
}
.progress-sections li[data-state='done']::before {
  background: var(--c-brand);
}
.progress-sections li[data-state='current'] {
  color: var(--c-brand);
}
.progress-sections li[data-state='current']::before {
  background: linear-gradient(90deg, var(--c-accent) var(--seg, 0%), var(--c-secondary) var(--seg, 0%));
  background-size: 100% 100%;
}
@media (max-width: 420px) {
  .progress-sections li:not([data-state='current']) span {
    visibility: hidden;
  }
}
/* Desktop: a midnight control rail */
@media (min-width: 1024px) {
  .progress {
    position: sticky;
    top: 28px;
    margin: 0;
    padding: 28px 26px 26px;
    border-radius: var(--r-lg);
    background: var(--grid), var(--c-brand);
    color: var(--c-on-dark);
  }
  .progress-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-on-dark-muted);
  }
  .progress-kicker::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--c-accent);
  }
  .progress-percent {
    display: flex;
    align-items: flex-start;
    margin: 26px 0 6px;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 104px;
    line-height: 0.82;
    letter-spacing: -0.06em;
    font-variant-numeric: tabular-nums;
  }
  .progress-percent small {
    font-size: 30px;
    letter-spacing: 0;
    margin: 4px 0 0 6px;
    color: var(--c-accent);
  }
  .progress-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 22px;
  }
  .progress-section {
    color: var(--c-on-dark);
    font-size: 22px;
  }
  .progress-count {
    color: var(--c-on-dark-muted);
  }
  .progress-sections {
    grid-template-columns: 1fr;
    gap: 0;
    font-size: 14px;
    letter-spacing: 0;
    color: var(--c-on-dark-muted);
    border-top: 1px solid rgba(245, 241, 234, 0.14);
  }
  .progress-sections li {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: center;
    column-gap: 12px;
    row-gap: 8px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(245, 241, 234, 0.14);
  }
  .progress-sections li span {
    grid-column: 2;
    grid-row: 1;
  }
  .progress-sections li::before {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 3px;
    background: linear-gradient(90deg, var(--c-on-dark) var(--seg, 0%), rgba(245, 241, 234, 0.14) var(--seg, 0%));
  }
  .progress-sections li::after {
    content: counter(sec, decimal-leading-zero);
    grid-column: 1;
    grid-row: 1;
    font-family: var(--f-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--c-on-dark-muted);
  }
  .progress-sections li[data-state='done'] {
    color: var(--c-on-dark);
  }
  .progress-sections li[data-state='done']::before {
    background: var(--c-on-dark);
  }
  .progress-sections li[data-state='current'] {
    color: var(--c-on-dark);
  }
  .progress-sections li[data-state='current']::before {
    background: linear-gradient(90deg, var(--c-accent) var(--seg, 0%), rgba(199, 198, 245, 0.35) var(--seg, 0%));
  }
  .progress-sections li[data-state='current']::after {
    color: var(--c-accent);
  }
  .progress-note {
    display: block;
    margin-top: 22px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--c-on-dark-muted);
  }
}

.step-container {
  transition:
    opacity 0.22s var(--ease),
    transform 0.32s var(--ease);
  min-height: 300px;
}
.step-container.is-leaving {
  opacity: 0;
  transform: translateY(-14px);
}
.step-container.is-leaving[data-dir='back'] {
  transform: translateY(14px);
}
.step-container.is-entering {
  opacity: 0;
  transform: translateY(22px);
  transition: none;
}
.step-container.is-entering[data-dir='back'] {
  transform: translateY(-22px);
}
.step-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.05rem, 3vw + 1rem, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--c-brand);
  text-wrap: balance;
}
.step-intro {
  margin-top: 14px;
  color: var(--c-muted);
  font-size: 16.5px;
  max-width: 40em;
}
.step-questions {
  display: grid;
  gap: 36px;
  margin-top: 32px;
}
.q {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.q-label {
  display: block;
  padding: 0;
  font-weight: 700;
  font-size: 16.5px;
  margin-bottom: 12px;
}
.q-help,
.q-count {
  margin: -6px 0 12px;
  color: var(--c-muted);
  font-size: 14px;
}
.q-error {
  margin-top: 10px;
  color: var(--c-error);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  gap: 8px;
  align-items: center;
}
.q-error::before {
  content: '!';
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 2px;
  background: var(--c-error);
  color: #fff;
  font-size: 12px;
  flex: none;
}
.q-enter {
  animation: q-enter 0.4s var(--ease);
}

/* Option tiles with index letters */
.options {
  display: grid;
  gap: 8px;
  counter-reset: opt;
}
@media (min-width: 560px) {
  .options--cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
.options--pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.option {
  counter-increment: opt;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--c-paper);
  border: 1.5px solid var(--c-line);
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.15s var(--ease),
    box-shadow 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}
.options--cards .option::before {
  content: counter(opt, upper-alpha);
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid var(--c-line-strong);
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-muted);
  transition: all 0.2s var(--ease);
}
.options--pills .option {
  min-height: 48px;
  padding: 10px 16px;
  gap: 10px;
}
.option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.option-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.option-label {
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.3;
}
.option-hint {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.35;
  transition: color 0.2s;
}
.option-mark {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--c-brand);
  background: var(--c-accent);
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 0.2s var(--ease),
    transform 0.25s var(--ease);
}
.option-mark svg {
  width: 13px;
  height: 13px;
}
.options--pills .option-mark {
  order: -1;
  width: 0;
  margin-right: -10px;
  transition:
    width 0.25s var(--ease),
    margin 0.25s var(--ease),
    opacity 0.2s,
    transform 0.25s var(--ease);
}
@media (hover: hover) {
  .option:hover {
    border-color: var(--c-brand);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 -2px var(--c-secondary);
  }
  .option.is-selected:hover {
    box-shadow: none;
  }
}
.option:active {
  transform: translateY(0);
}
.option.is-selected {
  border-color: var(--c-brand);
  background: var(--c-brand);
  color: var(--c-on-dark);
}
.option.is-selected .option-hint {
  color: var(--c-on-dark-muted);
}
.options--cards .option.is-selected::before {
  background: var(--c-secondary);
  border-color: var(--c-secondary);
  color: var(--c-brand);
}
.option.is-selected .option-mark {
  opacity: 1;
  transform: scale(1);
}
.options--pills .option.is-selected .option-mark {
  width: 20px;
  margin-right: 0;
}
.option:has(input:focus-visible) {
  outline: 3px solid var(--c-secondary-deep);
  outline-offset: 3px;
}
@supports not selector(:has(*)) {
  .option:focus-within {
    outline: 3px solid var(--c-secondary-deep);
    outline-offset: 3px;
  }
}
.q[aria-invalid='true'] .option:not(.is-selected) {
  border-color: #e7b3ae;
}

/* Range (weekly hours) */
.q-range {
  padding: 30px 24px 24px;
  border-radius: var(--r-lg);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
}
.range-display {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}
.range-value {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(5rem, 12vw + 1rem, 8rem);
  line-height: 0.82;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.06em;
  color: var(--c-brand);
}
.range-unit {
  color: var(--c-muted);
  font-size: 16px;
  font-weight: 600;
}
.range-control {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stepper {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--c-line-strong);
  background: var(--c-paper);
  display: grid;
  place-items: center;
  transition:
    border-color 0.2s,
    background-color 0.2s,
    color 0.2s,
    transform 0.12s;
  touch-action: manipulation;
}
.stepper svg {
  width: 18px;
  height: 18px;
}
.stepper:hover {
  border-color: var(--c-brand);
  background: var(--c-brand);
  color: var(--c-on-dark);
}
.stepper:active {
  transform: scale(0.92);
}
.range-control--compact .stepper {
  width: 40px;
  height: 40px;
}
input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 0;
  height: 44px;
  background: transparent;
  cursor: pointer;
  margin: 0;
  touch-action: pan-y;
}
input[type='range']::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 1px;
  background: linear-gradient(to right, var(--c-brand) 0, var(--c-brand) var(--fill, 0%), var(--c-surface) var(--fill, 0%));
}
input[type='range']::-moz-range-track {
  height: 8px;
  border-radius: 1px;
  background: var(--c-surface);
}
input[type='range']::-moz-range-progress {
  height: 8px;
  border-radius: 1px;
  background: var(--c-brand);
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -9px;
  border-radius: 5px;
  background: var(--c-accent);
  border: 3px solid var(--c-paper);
  box-shadow:
    0 0 0 1.5px var(--c-brand),
    0 6px 14px rgba(37, 34, 55, 0.25);
  transition: transform 0.15s var(--ease);
}
input[type='range']::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--c-accent);
  border: 3px solid var(--c-paper);
  box-shadow: 0 0 0 1.5px var(--c-brand);
}
input[type='range']:active::-webkit-slider-thumb {
  transform: scale(1.15) rotate(45deg);
}
input[type='range']:focus-visible {
  outline: none;
}
input[type='range']:focus-visible::-webkit-slider-thumb {
  box-shadow:
    0 0 0 1.5px var(--c-brand),
    0 0 0 6px var(--c-secondary-deep);
}
input[type='range']:focus-visible::-moz-range-thumb {
  box-shadow:
    0 0 0 1.5px var(--c-brand),
    0 0 0 6px var(--c-secondary-deep);
}
.range-scale {
  display: flex;
  justify-content: space-between;
  padding: 2px 56px 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c-muted);
}
.range-comment {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 12px;
  border-radius: 4px;
  background: var(--c-secondary-soft);
  color: var(--c-secondary-deep);
  font-weight: 700;
  font-size: 15px;
}

/* Hours: one instrument panel, not a stack of cards */
.q-hours {
  display: grid;
  border-radius: var(--r-lg);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  overflow: hidden;
}
.hours-row {
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--c-line);
  transition: background-color 0.2s;
}
.hours-row:last-of-type {
  border-bottom: 0;
}
.hours-row:focus-within {
  background: var(--c-secondary-soft);
}
.hours-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.hours-label {
  font-weight: 700;
  font-size: 16px;
}
.hours-value {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-muted);
}
.hours-value b {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -0.04em;
  color: var(--c-brand);
  font-variant-numeric: tabular-nums;
}
.hours-help {
  font-size: 13.5px;
  color: var(--c-muted);
  margin: 2px 0 4px;
  max-width: 46em;
}
.q-hours .q-error {
  margin: 0;
  padding: 12px 20px;
}
.q-hours .q-error[hidden] {
  display: none;
}

/* Sticky step navigation + running tally */
.step-form {
  padding-bottom: 40px;
  min-width: 0;
}
.step-nav {
  position: sticky;
  bottom: 0;
  z-index: 10;
  margin: 32px calc(-1 * var(--gutter)) 0;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(245, 241, 234, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--c-line);
}
.step-nav-buttons {
  display: flex;
  gap: 10px;
}
.step-nav-buttons #btn-next {
  flex: 1;
}
@media (min-width: 768px) {
  .step-nav {
    margin-inline: 0;
    padding-inline: 0;
    border-top: 0;
    background: linear-gradient(to top, var(--c-canvas) 70%, rgba(245, 241, 234, 0));
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding-top: 22px;
  }
  .step-nav-buttons {
    justify-content: space-between;
  }
  .step-nav-buttons #btn-next {
    flex: 0 0 auto;
    min-width: 210px;
  }
}
.tally {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--c-brand);
  color: var(--c-on-dark);
}
.tally-figures {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 12px;
  font-size: 13px;
  color: var(--c-on-dark-muted);
  margin-bottom: 8px;
}
.tally-figures {
  flex-wrap: nowrap;
}
.tally-figures > span {
  white-space: nowrap;
}
.tally-figures b {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--c-on-dark);
  font-variant-numeric: tabular-nums;
}
.tally-share b {
  color: var(--c-accent);
}
@media (max-width: 420px) {
  .tally-figures {
    font-size: 11.5px;
    gap: 8px;
  }
  .tally-figures b {
    font-size: 19px;
  }
}
@media (min-width: 768px) {
  .tally {
    padding: 14px 18px;
  }
  .tally-figures {
    font-size: 13.5px;
  }
  .tally-figures b {
    font-size: 26px;
  }
}
.tally-track {
  height: 4px;
  background: rgba(245, 241, 234, 0.16);
  overflow: hidden;
}
.tally-fill {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  background: var(--c-secondary);
  transition: width 0.3s var(--ease);
}
.tally.is-over .tally-fill {
  background: var(--c-accent);
}
.tally-warning {
  margin-top: 10px;
  font-size: 13px;
  color: var(--c-brand);
  padding: 8px 12px;
  border-radius: 4px;
  background: var(--c-accent);
}

/* ---------- Analysing: a modular grid filling in ---------- */
.analysing {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 64px;
}
.analysing-mark {
  display: grid;
  grid-template-columns: repeat(3, 20px);
  gap: 5px;
}
.analysing-mark span {
  width: 20px;
  height: 20px;
  background: var(--c-surface);
  animation: module 1.2s var(--ease) infinite;
}
.analysing-mark span:nth-child(1) {
  animation-delay: 0s;
}
.analysing-mark span:nth-child(2) {
  animation-delay: 0.08s;
}
.analysing-mark span:nth-child(3) {
  animation-delay: 0.16s;
  background: var(--c-accent);
  animation-name: module-accent;
}
.analysing-mark span:nth-child(4) {
  animation-delay: 0.24s;
}
.analysing-mark span:nth-child(5) {
  animation-delay: 0.32s;
}
.analysing-mark span:nth-child(6) {
  animation-delay: 0.4s;
}
.analysing-mark span:nth-child(7) {
  animation-delay: 0.48s;
}
.analysing-mark span:nth-child(8) {
  animation-delay: 0.56s;
}
.analysing-mark span:nth-child(9) {
  animation-delay: 0.64s;
}
.analysing-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw + 1rem, 3.6rem);
  letter-spacing: -0.04em;
  color: var(--c-brand);
  margin: 32px 0 24px;
}
.analysing-list {
  list-style: none;
  display: grid;
  gap: 12px;
  text-align: left;
}
.analysing-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-muted);
  transition: color 0.3s;
}
.analysing-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--c-line-strong);
  flex: none;
  transition: all 0.3s var(--ease);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px;
}
.analysing-list li.is-done {
  color: var(--c-ink);
}
.analysing-list li.is-done::before {
  background-color: var(--c-brand);
  border-color: var(--c-brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23FF684A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Results: a personalised report ---------- */
.results {
  padding-top: 24px;
}
.sample-banner {
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--c-secondary-soft);
  border-left: 3px solid var(--c-secondary-deep);
  font-size: 14.5px;
}
.r-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--grid), var(--c-brand);
  color: var(--c-on-dark);
  padding: 36px 20px 20px;
}
@media (min-width: 768px) {
  .r-hero {
    padding: 64px 56px 40px;
  }
}
.r-hero-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.4vw + 0.8rem, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin-top: 22px;
  max-width: 15ch;
  text-wrap: balance;
}
.r-hero-sub {
  margin-top: 22px;
  color: var(--c-on-dark-muted);
  font-size: clamp(1rem, 0.5vw + 0.95rem, 1.18rem);
  max-width: 38em;
}
.r-stats {
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.r-stat {
  min-width: 0;
  padding: 16px 14px 14px;
  border-radius: var(--r-md);
  border: 1px solid rgba(245, 241, 234, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 132px;
}
.r-stat:nth-child(2) {
  background: var(--c-secondary);
  border-color: var(--c-secondary);
  color: var(--c-brand);
}
.r-stat--accent {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-brand);
}
.r-stat dt {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-on-dark-muted);
}
.r-stat:nth-child(2) dt,
.r-stat--accent dt {
  color: var(--c-brand);
}
.r-stat dd {
  margin: 14px 0 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 6px;
}
.r-stat .num {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 5.4vw + 0.6rem, 5rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.r-stat .unit {
  font-size: 12.5px;
  font-weight: 600;
}
@media (min-width: 768px) {
  .r-stats {
    gap: 12px;
  }
  .r-stat {
    padding: 22px 22px 20px;
    min-height: 176px;
  }
  .r-stat dt {
    font-size: 11.5px;
  }
  .r-stat .unit {
    font-size: 15px;
  }
}

.r-section {
  padding-block: 64px;
}
@media (min-width: 768px) {
  .r-section {
    padding-block: 96px;
  }
}
.r-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 20px;
  align-items: start;
  margin-bottom: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--c-brand);
}
.r-num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 3vw + 1rem, 4rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--c-brand);
}
.r-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2rem, 2.6vw + 1rem, 3.2rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--c-brand);
}
.r-intro {
  margin-top: 12px;
  color: var(--c-muted);
  max-width: 44em;
}

/* Reveal animations */
.results:not(.is-static) .r-section,
.results:not(.is-static) .client-cta {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.results .r-section.is-in,
.results .client-cta.is-in {
  opacity: 1;
  transform: none;
}
.r-hero-inner > * {
  animation: rise 0.7s var(--ease) both;
}
.r-hero-inner > *:nth-child(2) {
  animation-delay: 0.08s;
}
.r-hero-inner > *:nth-child(3) {
  animation-delay: 0.16s;
}
.r-hero-inner > *:nth-child(4) {
  animation-delay: 0.24s;
}

/* Week waffle */
.week-grid {
  display: grid;
  gap: 36px;
}
@media (min-width: 920px) {
  .week-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: start;
  }
}
.waffle-figure {
  margin: 0;
  position: relative;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
}
.waffle {
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
}
.cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--c-surface);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.cell--delegable {
  background: var(--c-brand);
}
.cell--retained {
  background: var(--c-secondary);
}
.results:not(.is-static) .r-section:not(.is-in) .cell {
  opacity: 0;
  transform: scale(0.4);
}
.results:not(.is-static) .r-section.is-in .cell {
  animation: cell-in 0.45s var(--ease) both;
  animation-delay: calc(var(--i) * 14ms);
}
.waffle[data-highlight] .cell:not(.is-hl) {
  opacity: 0.14;
}
.waffle[data-highlight] .cell.is-hl {
  transform: scale(1.06);
}
.waffle-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--c-ink);
}
.waffle-legend .key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.waffle-legend .key b {
  font-variant-numeric: tabular-nums;
}
.waffle-note {
  width: 100%;
  font-size: 12.5px;
  color: var(--c-muted);
}
.waffle-tip {
  position: absolute;
  left: calc(24px + var(--x, 0px));
  top: calc(24px + var(--y, 0px));
  transform: translate(-50%, calc(-100% - 8px));
  background: var(--c-brand);
  color: var(--c-on-dark);
  font-size: 12.5px;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}
.cat-list {
  list-style: none;
  display: grid;
  border-top: 1px solid var(--c-line);
}
.cat-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: baseline;
  padding: 13px 12px;
  border: 0;
  border-bottom: 1px solid var(--c-line);
  background: transparent;
  text-align: left;
  transition: background-color 0.2s;
}
.cat-row:hover,
.cat-row.is-active {
  background: var(--c-paper);
}
.cat-row[aria-pressed='true'] {
  background: var(--c-secondary-soft);
  box-shadow: inset 3px 0 0 var(--c-brand);
}
.cat-row[data-empty] {
  opacity: 0.5;
}
.cat-name {
  font-weight: 600;
  font-size: 15px;
}
.cat-value {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.cat-value small {
  font-family: var(--f-body);
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: 0;
}
.cat-bar {
  grid-column: 1 / -1;
  height: 4px;
  background: var(--c-surface);
  overflow: hidden;
}
.cat-bar-fill {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--c-brand);
  transition: width 1s var(--ease) 0.2s;
}
.results:not(.is-static) .r-section:not(.is-in) .cat-bar-fill,
.results:not(.is-static) .r-section:not(.is-in) .funnel-fill,
.results:not(.is-static) .r-section:not(.is-in) .meter-fill,
.results:not(.is-static) .r-section:not(.is-in) .score-bar span {
  width: 0;
}
.cat-hint {
  font-size: 13px;
  color: var(--c-muted);
  padding: 12px 12px 0;
}

/* Reclaim funnel */
.reclaim-grid {
  display: grid;
  gap: 36px;
}
@media (min-width: 920px) {
  .reclaim-grid {
    grid-template-columns: 1.3fr 0.7fr;
    gap: 56px;
    align-items: center;
  }
}
.funnel {
  display: grid;
  gap: 26px;
}
.funnel-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.funnel-label b {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.funnel-track {
  height: 18px;
  background: var(--c-surface);
  overflow: hidden;
}
.funnel-fill {
  display: block;
  height: 100%;
  width: var(--w);
  transition: width 1.1s var(--ease);
}
.funnel-row--admin .funnel-fill {
  background: var(--c-secondary);
}
.funnel-row--delegable .funnel-fill {
  background: var(--c-brand);
  transition-delay: 0.2s;
}
.funnel-row--reclaim .funnel-fill {
  background: var(--c-accent);
  transition-delay: 0.4s;
}
.funnel-note {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--c-muted);
}
.reclaim-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (min-width: 920px) {
  .reclaim-figures {
    grid-template-columns: 1fr;
  }
}
.big-figure {
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--grid), var(--c-brand);
  color: var(--c-on-dark);
}
.big-figure--soft {
  background: var(--c-secondary);
  color: var(--c-brand);
}
.big-num {
  display: block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(3.4rem, 6vw + 1rem, 5.6rem);
  line-height: 0.85;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.big-figure:not(.big-figure--soft) .big-num {
  color: var(--c-accent);
}
.big-label {
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
}

/* Explainers */
.explain {
  margin-top: 40px;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.explain summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  cursor: pointer;
  font-weight: 700;
  min-height: 52px;
}
.explain summary::-webkit-details-marker {
  display: none;
}
.explain summary::after {
  content: '';
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 4px;
  background:
    linear-gradient(var(--c-on-dark), var(--c-on-dark)) center / 12px 2px no-repeat,
    linear-gradient(var(--c-on-dark), var(--c-on-dark)) center / 2px 12px no-repeat,
    var(--c-brand);
  transition: transform 0.25s var(--ease);
}
.explain[open] summary::after {
  transform: rotate(45deg);
}
.explain-body {
  padding-bottom: 20px;
  font-size: 14.5px;
  color: var(--c-ink);
  display: grid;
  gap: 18px;
  animation: drop 0.3s var(--ease);
}
.calc-steps {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.calc-table,
.rp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.calc-table th,
.calc-table td,
.rp-table th,
.rp-table td {
  text-align: right;
  padding: 10px 8px;
  border-bottom: 1px solid var(--c-line);
}
.calc-table th:first-child,
.rp-table th:first-child {
  text-align: left;
  font-weight: 600;
}
.calc-table thead th,
.rp-table thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-muted);
  font-weight: 700;
}
.assumptions {
  padding-left: 20px;
  display: grid;
  gap: 6px;
  color: var(--c-muted);
}

/* Bottleneck cards */
.bn-grid {
  display: grid;
  gap: 10px;
}
@media (min-width: 920px) {
  .bn-grid {
    grid-template-columns: 1.25fr 1fr 0.85fr;
    align-items: stretch;
  }
}
.bn-card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--r-lg);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
}
.bn-card--primary {
  background: var(--grid), var(--c-brand);
  border-color: var(--c-brand);
  color: var(--c-on-dark);
}
.bn-card--strength {
  background: var(--c-secondary-soft);
  border-color: var(--c-secondary);
}
.bn-card--muted .bn-title {
  color: var(--c-muted);
}
.bn-rank {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--c-accent-deep);
}
.bn-card--primary .bn-rank {
  color: var(--c-accent);
}
.bn-card--strength .bn-rank {
  color: var(--c-secondary-deep);
}
.bn-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--c-brand);
  margin: 14px 0 10px;
}
.bn-card--primary .bn-title {
  color: var(--c-on-dark);
}
.bn-summary {
  font-size: 15px;
}
.bn-card--primary .bn-summary,
.bn-card--primary .bn-reasons {
  color: var(--c-on-dark-muted);
}
.meter {
  margin-top: 24px;
  height: 6px;
  background: var(--c-surface);
  overflow: hidden;
}
.bn-card--primary .meter {
  background: rgba(245, 241, 234, 0.16);
}
.meter-fill {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--c-brand);
  transition: width 1.1s var(--ease) 0.25s;
}
.bn-card--primary .meter-fill {
  background: var(--c-accent);
}
.meter-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-muted);
}
.bn-card--primary .meter-label {
  color: var(--c-on-dark-muted);
}
.meter-label b {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.04em;
  color: var(--c-brand);
}
.bn-card--primary .meter-label b {
  color: var(--c-on-dark);
}
.meter-label small {
  font-size: 13px;
  color: inherit;
  letter-spacing: 0;
}
.bn-why {
  margin-top: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.bn-reasons {
  margin-top: 10px;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.bn-reasons li::marker {
  color: var(--c-accent);
}
.score-list {
  list-style: none;
  display: grid;
  gap: 10px;
}
.score-list li {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 1fr 2.2em;
  gap: 12px;
  align-items: center;
}
.score-bar {
  height: 5px;
  background: var(--c-surface);
  overflow: hidden;
}
.score-bar span {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--c-brand);
  transition: width 0.8s var(--ease);
}
.score-list b {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Support match */
.match-card {
  display: grid;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: var(--c-paper);
}
@media (min-width: 920px) {
  .match-card {
    grid-template-columns: 1.05fr 0.95fr;
  }
}
.match-main {
  background: var(--c-secondary);
  color: var(--c-brand);
  padding: 34px 24px;
}
.match-card--none .match-main {
  background: var(--c-surface);
}
@media (min-width: 768px) {
  .match-main {
    padding: 56px 52px;
  }
}
.match-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
}
.match-eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--c-accent);
}
.match-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 3.4vw + 1.1rem, 4rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 20px 0 16px;
  text-wrap: balance;
}
.match-summary {
  font-size: 16.5px;
  max-width: 30em;
}
.match-note {
  margin-top: 18px;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.55);
}
.match-detail {
  padding: 30px 24px 34px;
}
@media (min-width: 768px) {
  .match-detail {
    padding: 56px 52px;
  }
}
.match-detail h4 {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-muted);
  margin-bottom: 12px;
}
.match-detail h4:not(:first-child) {
  margin-top: 30px;
}
.tick-list {
  list-style: none;
  display: grid;
  gap: 10px;
}
.tick-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.tick-list svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  padding: 3px;
  border-radius: 3px;
  background: var(--c-brand);
  color: var(--c-on-dark);
}
.plain-list {
  list-style: none;
  display: grid;
  counter-reset: inc;
}
.plain-list li {
  counter-increment: inc;
  display: flex;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--c-line);
  font-size: 15px;
}
.plain-list li::before {
  content: counter(inc, decimal-leading-zero);
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-secondary-deep);
  padding-top: 2px;
}

/* Actions */
.actions {
  list-style: none;
  display: grid;
  gap: 10px;
}
@media (min-width: 920px) {
  .actions {
    grid-template-columns: repeat(3, 1fr);
  }
}
.action {
  display: grid;
  gap: 18px;
  padding: 26px 24px 28px;
  border-radius: var(--r-lg);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  align-content: start;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
@media (hover: hover) {
  .action:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0 var(--c-secondary);
  }
}
.action-num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 54px;
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--c-brand);
}
.action-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 8px;
  border-radius: 3px;
  background: var(--c-secondary-soft);
  color: var(--c-secondary-deep);
}
.action-tag--support {
  background: var(--c-accent-soft);
  color: var(--c-accent-deep);
}
.action-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--c-brand);
  margin: 14px 0 8px;
}
.action-body {
  font-size: 15px;
}

/* Lead capture */
.lead {
  margin-block: 64px 0;
  border-radius: var(--r-lg);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  overflow: hidden;
}
@media (min-width: 768px) {
  .lead {
    margin-top: 96px;
  }
}
.lead-grid {
  display: grid;
}
@media (min-width: 920px) {
  .lead-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.lead-pitch {
  padding: 34px 24px;
  background: var(--grid), var(--c-brand);
  color: var(--c-on-dark);
}
.lead-pitch .eyebrow {
  color: var(--c-on-dark);
}
.lead-form,
.lead-done {
  padding: 30px 24px 34px;
}
@media (min-width: 768px) {
  .lead-pitch,
  .lead-form,
  .lead-done {
    padding: 56px 52px;
  }
}
.lead-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 2.6vw + 1rem, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 18px 0 16px;
  text-wrap: balance;
}
.lead-intro {
  color: var(--c-on-dark-muted);
  margin-bottom: 24px;
}
.lead-pitch .tick-list svg {
  background: var(--c-accent);
  color: var(--c-brand);
}
.lead-done {
  display: grid;
  gap: 16px;
  align-content: center;
  justify-items: start;
}
.lead-done-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.03em;
}
.lead-form {
  display: grid;
  gap: 16px;
  align-content: start;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-weight: 700;
  font-size: 14px;
}
.optional {
  font-weight: 400;
  color: var(--c-muted);
}
.field input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--c-line-strong);
  background: var(--c-canvas);
  font-size: 16px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background-color 0.2s;
}
.field input:hover {
  border-color: var(--c-muted);
}
.field input:focus {
  outline: none;
  border-color: var(--c-brand);
  background: var(--c-paper);
  box-shadow: 4px 4px 0 var(--c-secondary);
}
.field input[aria-invalid='true'] {
  border-color: var(--c-error);
  background: var(--c-error-soft);
}
.field-error {
  color: var(--c-error);
  font-size: 13.5px;
  font-weight: 600;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.consent-notice {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.55;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.45;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-line);
  background: var(--c-canvas);
  position: relative;
}
.check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.check-box {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1.5px solid var(--c-line-strong);
  display: grid;
  place-items: center;
  color: transparent;
  background: var(--c-paper);
  transition: all 0.2s;
}
.check-box svg {
  width: 14px;
  height: 14px;
}
.check input:checked + .check-box {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: var(--c-on-dark);
}
.check:has(input:focus-visible) {
  outline: 3px solid var(--c-secondary-deep);
  outline-offset: 2px;
}
.form-note {
  font-size: 13px;
  color: var(--c-muted);
}
.form-note--sample {
  padding: 12px 14px;
  border-radius: 4px;
  background: var(--c-secondary-soft);
  color: var(--c-ink);
}
.form-status:empty {
  display: none;
}
.form-status {
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 14px;
  background: var(--c-surface);
}
.form-status--error {
  background: var(--c-error-soft);
  border-left: 3px solid var(--c-error);
}
.form-status--success {
  background: var(--c-secondary-soft);
}
.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* Client CTA: the one bold coral block */
.client-cta {
  margin-top: 64px;
  border-radius: var(--r-lg);
  background: var(--c-accent);
  color: var(--c-brand);
  overflow: hidden;
}
.client-cta-inner {
  padding: 48px 24px;
  display: grid;
  gap: 20px;
  justify-items: start;
}
@media (min-width: 900px) {
  .client-cta-inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    column-gap: 64px;
    align-items: end;
    padding: 76px 64px;
  }
  .client-cta-inner .eyebrow,
  .client-cta-title {
    grid-column: 1;
  }
  .client-cta-body,
  .client-cta-inner .btn {
    grid-column: 2;
  }
  .client-cta-title {
    grid-row: 2 / span 2;
  }
}
.client-cta .eyebrow {
  color: var(--c-brand);
}
.client-cta .eyebrow::before {
  background: var(--c-brand);
}
.client-cta-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 4.4vw + 1rem, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.client-cta-body {
  font-size: 17px;
  max-width: 30em;
}
.client-cta .btn--accent {
  --btn-bg: var(--c-brand);
  --btn-fg: var(--c-on-dark);
}
@media (hover: hover) {
  .client-cta .btn--accent:hover {
    box-shadow: 4px 4px 0 var(--c-paper);
  }
}
.client-cta :focus-visible {
  outline-color: var(--c-brand);
}
.r-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding-block: 40px 72px;
}

/* ---------- Footer (slim) ---------- */
.site-footer {
  border-top: 1px solid var(--c-line);
  font-size: 13px;
  color: var(--c-muted);
}
body[data-screen='assessment'] .site-footer,
body[data-screen='analysing'] .site-footer {
  display: none;
}
.footer-base {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 20px calc(22px + env(safe-area-inset-bottom));
}
@media (min-width: 820px) {
  .footer-base {
    flex-direction: row;
    justify-content: space-between;
    gap: 32px;
  }
}
.footer-base a {
  color: inherit;
}
.footer-base a:hover {
  color: var(--c-ink);
}
.footer-credit {
  flex: none;
}
.footer-credit a {
  text-decoration: none;
}
.footer-credit a:hover {
  text-decoration: underline;
}

/* ---------- Demo disclosure (separate from the client's site) ---------- */
.demo-disclosure {
  background: var(--demo-bg);
  color: var(--demo-fg);
  font-family: var(--demo-font);
}
.disclosure-inner {
  display: grid;
  gap: 24px;
  padding-block: 40px calc(40px + env(safe-area-inset-bottom));
  align-items: center;
}
@media (min-width: 900px) {
  .disclosure-inner {
    grid-template-columns: 1fr auto;
    gap: 56px;
  }
}
.disclosure-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  margin-bottom: 14px;
}
.disclosure-title {
  font-family: var(--demo-font);
  font-weight: 650;
  font-size: clamp(1.35rem, 1.2vw + 1rem, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 32ch;
}
.disclosure-body {
  margin-top: 10px;
  max-width: 60ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}
.disclosure-cta {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
  transition: background-color 0.2s;
}
.disclosure-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}
.disclosure-cta:hover {
  background: #e6e6e6;
}
.disclosure-cta:hover svg {
  transform: translateX(3px);
}

/* ---------- Report ---------- */
.report-wrap {
  max-width: 960px;
  padding-block: 20px 72px;
}
.report-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  background: rgba(245, 241, 234, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@media (max-width: 480px) {
  .report-toolbar .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 12px;
    font-size: 14px;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
}
.delivery-note {
  margin: 8px 0 18px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--c-surface);
  font-size: 14.5px;
}
.delivery-note--success {
  background: var(--c-secondary-soft);
}
.report-sheet {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: 4px;
  box-shadow: var(--shadow-2);
  padding: 28px 20px;
  font-size: 15px;
}
@media (min-width: 768px) {
  .report-sheet {
    padding: 60px 68px;
  }
}
.rp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--c-brand);
}
.rp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rp-mark {
  width: 40px;
  height: 40px;
  flex: none;
}
.rp-brand > div {
  display: flex;
  flex-direction: column;
}
.rp-client {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-brand);
  line-height: 1.2;
}
.rp-tagline,
.rp-date,
.rp-contact {
  font-size: 12.5px;
  color: var(--c-muted);
}
.rp-meta {
  text-align: right;
}
.rp-sample {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--c-secondary-soft);
  font-size: 13.5px;
  font-weight: 600;
}
.rp-title-block {
  padding: 36px 0 28px;
}
.rp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--c-brand);
}
.rp-eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--c-accent);
}
.rp-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 3vw + 1rem, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--c-brand);
  margin: 16px 0 12px;
  text-wrap: balance;
}
.rp-for {
  color: var(--c-muted);
}
.rp-figures {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0 0 12px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  overflow: hidden;
}
@media (min-width: 640px) {
  .rp-figures {
    grid-template-columns: repeat(4, 1fr);
  }
}
.rp-figures div {
  background: var(--c-paper);
  padding: 14px 16px;
}
.rp-figures div:last-child {
  background: var(--c-brand);
  color: var(--c-on-dark);
}
.rp-figures dt {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-muted);
  font-weight: 700;
}
.rp-figures div:last-child dt,
.rp-figures div:last-child dd small {
  color: var(--c-on-dark-muted);
}
.rp-figures dd {
  margin: 8px 0 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.rp-figures dd small {
  display: block;
  margin-top: 4px;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0;
  color: var(--c-muted);
}
.rp-section {
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--c-line);
}
.rp-section h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--c-brand);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.rp-section h2 span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 3px;
  background: var(--c-brand);
  color: var(--c-on-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}
.rp-section > p {
  margin-bottom: 14px;
}
.rp-profile {
  display: grid;
  margin: 0;
}
@media (min-width: 640px) {
  .rp-profile {
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
  }
}
.rp-profile div {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 14px;
}
.rp-profile dt {
  color: var(--c-muted);
}
.rp-profile dd {
  margin: 0;
  font-weight: 600;
}
.rp-table {
  font-size: 13.5px;
}
.rp-table thead th {
  background: var(--c-canvas);
}
.rp-table tfoot th,
.rp-table tfoot td {
  font-weight: 700;
  border-bottom: 0;
  border-top: 2px solid var(--c-brand);
}
.rp-bn {
  padding: 16px 18px;
  border-left: 4px solid var(--c-accent);
  background: var(--c-canvas);
  margin-bottom: 12px;
}
.rp-bn--strength {
  border-left-color: var(--c-secondary-deep);
}
.rp-bn h4,
.rp-actions h4 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--c-brand);
  margin: 4px 0 6px;
}
.rp-bn ul {
  margin-top: 8px;
  padding-left: 18px;
  font-size: 14px;
}
.rp-kicker {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-accent-deep);
  font-weight: 700;
}
.rp-opps,
.rp-next {
  padding-left: 20px;
  display: grid;
  gap: 10px;
}
.rp-muted {
  color: var(--c-muted);
  font-size: 13.5px;
}
.rp-rec {
  padding: 22px 24px;
  background: var(--c-secondary);
  color: var(--c-brand);
}
.rp-rec h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.rp-rec ul {
  margin-top: 10px;
  padding-left: 18px;
  font-size: 14px;
}
.rp-actions {
  list-style: none;
  display: grid;
  gap: 10px;
}
.rp-actions li {
  padding: 16px 18px;
  border: 1px solid var(--c-line);
}
.rp-actions p:last-child {
  font-size: 14.5px;
}
.rp-url {
  font-weight: 600;
  word-break: break-all;
}
.rp-assumptions ul {
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--c-muted);
}
.rp-assumptions h2 {
  font-size: 21px;
}
.rp-footer {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 3px solid var(--c-brand);
  font-size: 12.5px;
  color: var(--c-muted);
  display: grid;
  gap: 4px;
}
.rp-footer b {
  color: var(--c-brand);
}
.rp-credit {
  margin-top: 6px;
  font-size: 11.5px;
}

/* ---------- Dialog ---------- */
.dialog {
  border: 0;
  padding: 0;
  border-radius: var(--r-lg);
  max-width: min(500px, calc(100vw - 32px));
  background: var(--c-paper);
  color: var(--c-ink);
  box-shadow: var(--shadow-2);
}
.dialog::backdrop {
  background: rgba(37, 34, 55, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.dialog[open] {
  animation: rise 0.35s var(--ease);
}
.dialog-body {
  padding: 32px 28px 28px;
  display: grid;
  gap: 14px;
  border-top: 6px solid var(--c-accent);
}
.dialog-body h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--c-brand);
}
.dialog-body p {
  font-size: 15px;
}
.dialog-note {
  font-size: 13.5px !important;
  color: var(--c-muted) !important;
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* ---------- Keyframes ---------- */
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
@keyframes grow {
  from {
    transform: scaleY(0);
  }
}
@keyframes q-enter {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
@keyframes cell-in {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}
@keyframes fill-brand {
  to {
    background: var(--c-brand);
  }
}
@keyframes fill-secondary {
  to {
    background: var(--c-secondary);
  }
}
@keyframes module {
  0%,
  100% {
    background: var(--c-surface);
  }
  40% {
    background: var(--c-brand);
  }
}
@keyframes module-accent {
  0%,
  100% {
    background: var(--c-secondary);
  }
  40% {
    background: var(--c-accent);
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
}

/* ---------- Forced colours (Windows high contrast) ---------- */
@media (forced-colors: active) {
  .option.is-selected,
  .cat-row[aria-pressed='true'] {
    outline: 3px solid Highlight;
  }
  .cell--delegable {
    background: Highlight;
  }
  .cell--retained {
    background: CanvasText;
  }
  .tally-fill,
  .funnel-fill,
  .meter-fill,
  .cat-bar-fill {
    background: Highlight;
  }
  .r-num,
  .action-num {
    color: CanvasText;
  }
}

/* ==========================================================================
   Staged results: free diagnosis → action-plan invitation → full plan
   ========================================================================== */
.r-section--compact {
  padding-block: 48px 8px;
}
@media (min-width: 768px) {
  .r-section--compact {
    padding-block: 72px 8px;
  }
}
.glance-grid {
  display: grid;
  gap: 10px;
}
@media (min-width: 920px) {
  .glance-grid {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: stretch;
  }
}
.glance-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 14px;
}
.cell--admin {
  background: var(--c-brand);
}
.swatch--admin {
  background: var(--c-brand);
}
.action--feature {
  grid-template-columns: auto 1fr;
  column-gap: 22px;
  align-items: start;
}
@media (min-width: 768px) {
  .action--feature {
    padding: 34px 36px;
    column-gap: 32px;
  }
  .action--feature .action-title {
    font-size: 30px;
  }
  .action--feature .action-body {
    font-size: 16.5px;
    max-width: 44em;
  }
}

/* Stage two: the invitation */
.lead-includes-label {
  margin: 4px 0 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-on-dark-muted);
}
.sample-submit {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 16px;
  border: 1px dashed var(--c-line-strong);
  border-radius: var(--r-md);
  background: var(--c-canvas);
}
.sample-submit-text {
  font-size: 14px;
}
.sample-submit-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--demo-bg);
  color: var(--demo-fg);
  font: 700 10.5px var(--demo-font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.sample-submit-detail {
  font-size: 12.5px;
  color: var(--c-muted);
}
.lead--unlocked {
  background: var(--grid), var(--c-brand);
  color: var(--c-on-dark);
  border-color: var(--c-brand);
}
.unlocked {
  padding: 34px 24px;
  display: grid;
  gap: 16px;
  justify-items: start;
}
@media (min-width: 768px) {
  .unlocked {
    padding: 52px 52px;
  }
}
.lead--unlocked .eyebrow {
  color: var(--c-on-dark);
}
.lead--unlocked .lead-title {
  margin: 0;
}
.unlocked-note {
  max-width: 52em;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 14.5px;
  background: rgba(245, 241, 234, 0.08);
  border-left: 3px solid var(--c-secondary);
  color: var(--c-on-dark);
}
.unlocked-note--success {
  border-left-color: var(--c-accent);
}
.unlocked-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lead--unlocked .btn--primary {
  --btn-bg: var(--c-on-dark);
  --btn-fg: var(--c-brand);
}
.lead--unlocked .btn--ghost {
  --btn-fg: var(--c-on-dark);
  border-color: rgba(245, 241, 234, 0.4);
}
.lead--unlocked .btn--ghost:hover {
  --btn-bg: transparent;
  border-color: var(--c-on-dark);
}
.lead--unlocked :focus-visible {
  outline-color: var(--c-secondary);
}

/* Stage three: the full plan */
.full-plan {
  scroll-margin-top: 12px;
}
.plan-head {
  padding-top: 64px;
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) {
  .plan-head {
    padding-top: 96px;
  }
}
.plan-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.4vw + 1rem, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--c-brand);
}
.plan-index ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.plan-index a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-sm);
  background: var(--c-paper);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}
@media (max-width: 599px) {
  .plan-index ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .plan-index a {
    min-height: 44px;
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.25;
  }
}
.plan-index a span {
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-secondary-deep);
}
.plan-index a:hover {
  border-color: var(--c-brand);
  background: var(--c-secondary-soft);
}
.full-plan .r-section {
  scroll-margin-top: 12px;
}
.reclaim-diff {
  margin-top: 28px;
  padding: 16px 18px;
  border-left: 3px solid var(--c-accent);
  background: var(--c-paper);
  font-size: 15px;
  max-width: 60em;
}
.opp-list {
  list-style: none;
  counter-reset: opp;
  border-top: 1px solid var(--c-brand);
}
.opp {
  counter-increment: opp;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 6px 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-line);
}
.opp::before {
  content: counter(opp, decimal-leading-zero);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--c-secondary-deep);
  padding-top: 4px;
}
.opp-figures {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
@media (min-width: 820px) {
  .opp {
    grid-template-columns: 56px minmax(0, 1fr) minmax(0, 0.7fr);
    gap: 28px;
    align-items: baseline;
  }
  .opp-figures {
    grid-column: 3;
    justify-content: flex-end;
  }
}
.opp-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--c-brand);
}
.opp-why {
  margin-top: 4px;
  font-size: 14.5px;
  color: var(--c-muted);
}
.opp-hrs {
  font-size: 13.5px;
  color: var(--c-muted);
  white-space: nowrap;
}
.opp-hrs b {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--c-brand);
}
.opp-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 3px;
  background: var(--c-secondary-soft);
  color: var(--c-secondary-deep);
}
.r-empty {
  color: var(--c-muted);
}
@media (min-width: 920px) {
  .bn-grid--two {
    grid-template-columns: 1fr 1fr;
  }
}

/* Contextual CTA tiers */
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}
@media (min-width: 900px) {
  .client-cta-inner .cta-actions {
    grid-column: 2;
  }
}
.cta-quiet {
  font-size: 14.5px;
}
.client-cta--soft {
  background: var(--c-secondary);
}
.client-cta--quiet {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
}
.client-cta--quiet .eyebrow::before,
.client-cta--soft .eyebrow::before {
  background: var(--c-accent);
}
.client-cta--quiet .client-cta-body {
  color: var(--c-muted);
}
.cta-actions .btn {
  max-width: 100%;
  white-space: normal;
  text-align: left;
  line-height: 1.25;
  padding-block: 12px;
}

/* Small screens: keep stat labels inside their tiles and the seven hour sliders compact */
@media (max-width: 479px) {
  .r-stat {
    padding: 14px 10px 12px;
  }
  .r-stat dt {
    font-size: 9.5px;
    letter-spacing: 0.05em;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  .hours-row {
    padding: 14px 14px 8px;
  }
  .hours-help {
    font-size: 12.5px;
    line-height: 1.45;
  }
  .hours-value b {
    font-size: 28px;
  }
  .range-control--compact {
    gap: 8px;
  }
  .range-control--compact .stepper {
    width: 36px;
    height: 36px;
  }
}
