/**
 * DWL Digital Evolution Assessment — Styles
 *
 * Mobile-first, WCAG 2.1 AA accessible.
 * Brand: Barlow Condensed throughout (Verdana as administrative fallback only).
 * Gradient: 11.294deg, central pivot at 30%.
 * @see docs/SPEC.md Section 9 | docs/DWL Style Guide Mar_26.pdf
 */

/* ─── Tokens ──────────────────────────────────────────── */

:root {
  /* Primary */
  --dwl-blue: #000F9F;
  --dwl-pink: #EF2AC1;
  /* Hero Gradient (Style Guide 6.2): blue bottom-left → pink top-right,
     axis tilted 11.294° FROM THE HORIZONTAL (design convention; every
     example in the guide runs left-to-right). CSS measures from
     vertical, so the CSS angle is 90 − 11.294 = 78.706deg. Central
     pivot at 30% — the transition centre sits 30% from the blue end. */
  --dwl-gradient: linear-gradient(78.706deg, #000F9F, 30%, #EF2AC1);

  /* Secondary */
  --dwl-pale-blue: #0FD5F8;
  --dwl-coral: #FF3639;
  --dwl-yellow: #FFAB4D;

  /* Neutrals */
  --dwl-white: #FFFFFF;
  --dwl-off-white: #F8F9FA;
  --dwl-grey-light: #E9ECEF;
  --dwl-grey-mid: #6C757D;
  --dwl-grey-dark: #343A40;
  --dwl-black: #212529;

  /* Typography — Barlow Condensed is primary for all text per brand guide */
  --font-heading: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-admin: 'Verdana', 'Geneva', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-xxl: 80px;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-card: 0 2px 8px rgba(0, 15, 159, 0.08);
  --shadow-elevated: 0 4px 24px rgba(0, 15, 159, 0.12);
}

/* ─── Reset & Base ────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--dwl-black);
  background-color: var(--dwl-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* ─── Accessibility ───────────────────────────────────── */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--dwl-blue);
  color: var(--dwl-white);
  padding: 12px var(--space-md);
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-md);
}

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

:focus-visible {
  outline: 3px solid var(--dwl-pale-blue);
  outline-offset: 2px;
}

/* ─── Typography ──────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--dwl-black);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--space-md);
  font-weight: 400;
}

/* Subheadings use SemiBold per brand guide */
.subheading {
  font-weight: 600;
  color: var(--dwl-pink);
}

/* ─── Layout ──────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ─── Screen management ───────────────────────────────── */

.screen {
  display: none;
  animation: fadeIn 300ms ease-out;
}

.screen.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .screen {
    animation: none;
  }
}

/* ─── Header ──────────────────────────────────────────── */

.site-header {
  padding: var(--space-md) 0;
  background: var(--dwl-white);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  height: clamp(40px, 6vw, 56px);
  width: auto;
}

/* ─── Hero ────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-xxl) 0;
  text-align: center;
  color: var(--dwl-white);
}

.hero--full {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero--full .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  text-align: left;
}

/* Logo sits in absolute top-right corner of the gradient area */
.hero__logo-corner {
  position: absolute;
  /* Exclusion zone (Style Guide 1.2): one D-height clear on all sides —
     ≈26px for a 120px logomark, so 24px was under. */
  top: clamp(28px, 4vw, 48px);
  right: clamp(28px, 4vw, 48px);
  z-index: 3;
}

.hero__logo {
  /* Scales with the screen (Style Guide 1.3: never below 10mm ≈ 38px;
     the 96px floor keeps it comfortably legible on small phones). */
  width: clamp(96px, 12vw, 180px);
  height: auto;
}

/* Angular gradient background derived from the brand's grid shapes */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--dwl-gradient);
  z-index: 0;
}

/* Top-right angular white cutout — echoes the logomark's geometry.
   Brand shape grammar (matches the logo box and the W strokes):
   horizontals stay horizontal, verticals lean at the brand angle —
   that is skewX, never skewY (skewY tilts the horizontals and visibly
   contradicts the logomark beside it). */
.hero::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -12%;
  width: 40%;
  height: 70%;
  background: rgba(255, 255, 255, 0.06);
  transform: skewX(var(--dwl-angle));
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--dwl-white);
  font-size: 2.5rem;
  max-width: 540px;
  margin: 0 0 var(--space-lg);
}

.hero__subtitle {
  font-size: 1.0625rem;
  font-weight: 400;
  max-width: 440px;
  margin: 0 0 var(--space-xl);
  opacity: 0.9;
  line-height: 1.5;
}

/* ─── Buttons ─────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-xl);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
  min-height: 48px;
  min-width: 48px;
  /* Brand rule (Simon, day 4): EVERY button is yellow with blue text —
     one button language across the whole tool (≈7:1, passes AA).
     Variants below only adjust size/weight, never the colours. */
  background-color: var(--dwl-yellow);
  color: var(--dwl-blue);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-elevated);
  background-color: #f5a03e;
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 3px solid var(--dwl-pale-blue);
  outline-offset: 3px;
}

/* Yellow CTA — identical to the base; kept as a semantic marker for
   the primary action on a screen */
.btn--cta {
  background-color: var(--dwl-yellow);
  color: var(--dwl-blue);
}

.btn--cta:hover {
  background-color: #f5a03e;
}

.btn--secondary {
  background-color: var(--dwl-yellow);
  color: var(--dwl-blue);
  border: none;
}

.btn--secondary:hover {
  background-color: #f5a03e;
}

/* On gradient backgrounds — same yellow/blue as everywhere else */
.btn--outline {
  background-color: var(--dwl-yellow);
  color: var(--dwl-blue);
  border: none;
}

.btn--outline:hover {
  background-color: #f5a03e;
}

/* Ghost — smaller, but the same button language (Back navigation) */
.btn--ghost {
  background-color: var(--dwl-yellow);
  color: var(--dwl-blue);
  border: none;
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.9375rem;
  font-weight: 600;
  min-height: 44px;
}

.btn--ghost:hover {
  background-color: #f5a03e;
  color: var(--dwl-blue);
  transform: none;
  box-shadow: none;
}

.btn__arrow {
  transition: transform 150ms ease;
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn__arrow {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}

/* ─── Dimension Cards ─────────────────────────────────── */

.dimensions-section {
  padding: var(--space-xxl) 0;
  background: var(--dwl-off-white);
}

.dimensions-section h2 {
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--dwl-blue);
}

.dimension-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.dimension-card {
  background: var(--dwl-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.dimension-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

@media (prefers-reduced-motion: reduce) {
  .dimension-card {
    transition: none;
  }
  .dimension-card:hover {
    transform: none;
  }
}

.dimension-card__number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dwl-blue);
  opacity: 0.55;
  margin-bottom: var(--space-xs);
}

.dimension-card h3 {
  color: var(--dwl-blue);
  margin-bottom: var(--space-sm);
  text-transform: none;
}

.dimension-card p {
  font-size: 0.9375rem;
  color: var(--dwl-grey-dark);
  margin-bottom: 0;
  line-height: 1.5;
}

/* ─── Tagline Section ─────────────────────────────────── */

.tagline-section {
  padding: var(--space-xl) 0;
  text-align: center;
}

.tagline-section blockquote {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dwl-blue);
  font-style: italic;
  margin-bottom: var(--space-sm);
}

.tagline-section cite {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--dwl-grey-mid);
  font-style: normal;
}

/* ─── Footer ──────────────────────────────────────────── */

.site-footer {
  background: var(--dwl-blue);
  color: var(--dwl-white);
  padding: var(--space-xl) 0;
  text-align: center;
}

.site-footer__brand {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.site-footer__tagline {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0;
}

.site-footer a {
  color: var(--dwl-yellow);
  text-decoration: none;
  display: inline-block;
  padding: 13px 0;
  line-height: 1;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ─── Progress Bar (used in question screens) ─────────── */

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--dwl-grey-light);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: var(--dwl-gradient);
  border-radius: 3px;
  transition: width 300ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .progress-bar__fill {
    transition: none;
  }
}

/* ─── Context Screen ──────────────────────────────────── */

.context-screen {
  padding: var(--space-xl) 0 var(--space-xxl);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.context-card {
  background: var(--dwl-white);
  border: 2px solid var(--dwl-grey-light);
  border-radius: 16px;
  padding: var(--space-xl);
  max-width: 560px;
  margin: 0 auto;
}

.context-card h1 {
  color: var(--dwl-blue);
  margin-bottom: var(--space-sm);
}

.context-card__subtitle {
  color: var(--dwl-grey-dark);
  font-size: 1.0625rem;
  margin-bottom: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  color: var(--dwl-black);
}

.form-group select {
  width: 100%;
  padding: 14px var(--space-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--dwl-black);
  background-color: var(--dwl-white);
  border: 2px solid var(--dwl-grey-light);
  border-radius: var(--radius-md);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23343A40' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
  transition: border-color 150ms ease;
}

.form-group select:focus {
  border-color: var(--dwl-blue);
  outline: 3px solid var(--dwl-pale-blue);
  outline-offset: 2px;
}

.form-group--error select {
  border-color: var(--dwl-coral);
}

.form-group--error::after {
  content: 'Please select an option';
  display: block;
  margin-top: var(--space-xs);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dwl-coral);
}

.context-card__actions {
  margin-top: var(--space-xl);
  text-align: center;
}

/* ─── Question Screen ─────────────────────────────────── */

.header-progress {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-progress__text {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--dwl-blue);
}

.question-screen {
  padding: var(--space-xl) 0 var(--space-xxl);
  min-height: 80vh;
  animation: slideIn 300ms ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .question-screen {
    animation: none;
  }
}

.question-card {
  max-width: 680px;
  margin: 0 auto;
}

.question-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.question-card__dimension {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dwl-pink);
}

.question-card__count {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--dwl-grey-mid);
}

.question-screen__dimension-intro {
  background: var(--dwl-off-white);
  border-left: 4px solid var(--dwl-pink);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.question-screen__dimension-intro p {
  font-style: italic;
  color: var(--dwl-grey-dark);
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.question-card__text {
  font-size: 1.375rem;
  font-weight: 600;
  text-transform: none;
  line-height: 1.35;
  color: var(--dwl-blue);
  margin-bottom: var(--space-lg);
}

.question-card__options {
  border: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

/* Radio cards — full-width, large touch targets */
.radio-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  min-height: 48px;
  background: var(--dwl-white);
  border: 2px solid var(--dwl-grey-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.radio-card:hover {
  border-color: var(--dwl-blue);
  background-color: var(--dwl-off-white);
}

/* :hover carries higher specificity than the modifier alone — without
   the :hover variant here, a mouse resting on the card (the kiosk
   laptop, always) washes the selected blue back to off-white. */
.radio-card--selected,
.radio-card--selected:hover {
  border-color: var(--dwl-blue);
  background-color: var(--dwl-blue);
}

.radio-card--selected .radio-card__label {
  color: var(--dwl-white);
}

/* Selected: blue card, white text, yellow indicator (Simon, day 4) */
.radio-card--selected .radio-card__input {
  border-color: var(--dwl-yellow);
  background: var(--dwl-blue);
}

.radio-card--selected .radio-card__input:checked::after {
  background: var(--dwl-yellow);
}

.radio-card__input {
  /* Custom radio appearance */
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 2px solid var(--dwl-grey-mid);
  border-radius: 50%;
  background: var(--dwl-white);
  cursor: pointer;
  position: relative;
  transition: border-color 150ms ease;
}

.radio-card__input:checked {
  border-color: var(--dwl-blue);
  border-width: 2px;
}

.radio-card__input:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  background: var(--dwl-blue);
  border-radius: 50%;
}

.radio-card__input:focus-visible {
  outline: 3px solid var(--dwl-pale-blue);
  outline-offset: 2px;
}

.radio-card__label {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--dwl-black);
}

@media (prefers-reduced-motion: reduce) {
  .radio-card {
    transition: none;
  }
  .radio-card__input {
    transition: none;
  }
}

/* Navigation buttons row */
.question-card__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

/* When only Next exists (first question), push it right */
.question-card__nav .btn:only-child {
  margin-left: auto;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn[disabled]:hover,
.btn[aria-disabled="true"]:hover {
  transform: none;
  box-shadow: none;
}

/* ─── Results Hero ────────────────────────────────────── */

.results-hero {
  text-align: center;
  padding: var(--space-xxl) 0 var(--space-xl);
  background: var(--dwl-white);
}

.results-hero__inner {
  max-width: 700px;
  margin: 0 auto;
}

.results-hero h1 {
  color: var(--dwl-blue);
  margin-bottom: var(--space-lg);
}

.score-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.score-display__number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 5rem;
  line-height: 1;
  color: var(--dwl-pink);
}

.score-display__max {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 2rem;
  color: var(--dwl-grey-mid);
}

/* Tier badges */
.tier-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.tier--passive {
  background: rgba(0, 15, 159, 0.1);
  color: var(--dwl-blue);
}

.tier--receptive {
  background: rgba(15, 213, 248, 0.15);
  color: var(--dwl-blue);
}

.tier--responsive {
  background: var(--dwl-gradient);
  color: var(--dwl-white);
}

.tier--proactive {
  background: rgba(239, 42, 193, 0.12);
  color: var(--dwl-pink);
}

.tier--leading {
  background: var(--dwl-gradient);
  color: var(--dwl-white);
  border: 2px solid var(--dwl-yellow);
}

.results-hero__summary {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--dwl-grey-dark);
  /* the hero is a centred composition — a lone left-aligned line
     inside it reads as a mistake (Simon's catch) */
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

/* ─── Diagnostic Panel ────────────────────────────────── */

.diagnostic-section {
  padding: var(--space-xl) 0 var(--space-lg);
}

.diagnostic-section__heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dwl-grey-mid);
  margin-bottom: var(--space-md);
}

.diagnostic-card {
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  border-left: 4px solid transparent;
}

.diagnostic-card--primary {
  border-left-width: 5px;
}

.diagnostic-card--high {
  background: rgba(255, 54, 57, 0.06);
  border-color: var(--dwl-coral);
}

.diagnostic-card--medium {
  background: rgba(255, 171, 77, 0.1);
  border-color: var(--dwl-yellow);
}

.diagnostic-card--none {
  background: rgba(40, 167, 69, 0.08);
  border-color: #28a745;
}

.diagnostic-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.diagnostic-card__code {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  padding: 2px var(--space-sm);
  border-radius: var(--radius-sm);
  background: rgba(0, 15, 159, 0.08);
  color: var(--dwl-blue);
  white-space: nowrap;
}

.diagnostic-card--high .diagnostic-card__code {
  background: rgba(255, 54, 57, 0.12);
  color: var(--dwl-coral);
}

.diagnostic-card__label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--dwl-blue);
}

.diagnostic-card__diagnosis {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--dwl-grey-dark);
  margin-bottom: var(--space-sm);
}

.diagnostic-card__action {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--dwl-grey-dark);
  margin: 0;
}

.diagnostic-secondary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}

.diagnostic-card--secondary .diagnostic-card__label {
  font-size: 1rem;
}

/* ─── Contradictions Panel ────────────────────────────── */

.contradictions-section {
  padding: 0 0 var(--space-xl);
}

.contradictions-section__heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dwl-coral);
  margin-bottom: var(--space-sm);
}

.contradictions-section__intro {
  font-size: 0.9375rem;
  color: var(--dwl-grey-mid);
  margin-bottom: var(--space-md);
  max-width: 640px;
}

.contradictions-list {
  display: grid;
  gap: var(--space-sm);
}

.contradiction-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border-left: 3px solid transparent;
}

.contradiction-item--high {
  background: rgba(255, 54, 57, 0.05);
  border-color: var(--dwl-coral);
}

.contradiction-item--medium {
  background: rgba(255, 171, 77, 0.08);
  border-color: var(--dwl-yellow);
}

.contradiction-item__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.contradiction-item__icon {
  color: var(--dwl-coral);
  font-size: 1rem;
}

.contradiction-item--medium .contradiction-item__icon {
  color: #d48a2c;
}

.contradiction-item__label {
  font-size: 0.9375rem;
  color: var(--dwl-blue);
}

.contradiction-item__detail {
  font-size: 0.875rem;
  color: var(--dwl-grey-mid);
  margin: 0;
  padding-left: 1.5rem;
}

/* ─── Radar Section ───────────────────────────────────── */

.radar-section {
  padding: var(--space-xl) 0;
}

.radar-section h2 {
  text-align: center;
  color: var(--dwl-blue);
  margin-bottom: var(--space-lg);
}

.radar-layout {
  max-width: 480px;
  margin: 0 auto;
}

.radar-chart-wrapper {
  position: relative;
}

/* ─── Strengths & Gaps ────────────────────────────────── */

.sg-section {
  padding: var(--space-xl) 0;
  background: var(--dwl-off-white);
}

.sg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.sg-col h2 {
  color: var(--dwl-blue);
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.sg-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--dwl-white);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-card);
}

.sg-item__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.sg-item--strength .sg-item__icon {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.sg-item--gap .sg-item__icon {
  background: rgba(255, 171, 77, 0.15);
  color: var(--dwl-yellow);
}

.sg-item strong {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dwl-black);
}

.sg-item__score {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dwl-grey-mid);
}

/* ─── Dimension Breakdown ─────────────────────────────── */

.breakdown-section {
  padding: var(--space-xl) 0 var(--space-xxl);
}

.breakdown-section h2 {
  color: var(--dwl-blue);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.breakdown-card {
  background: var(--dwl-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-card);
  border-left: 4px solid transparent;
  border-image: var(--dwl-gradient) 1;
}

.breakdown-card__header {
  margin-bottom: var(--space-md);
}

.breakdown-card__number {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dwl-pink);
  display: block;
  margin-bottom: var(--space-xs);
}

.breakdown-card h3 {
  color: var(--dwl-blue);
  text-transform: none;
  margin-bottom: 0;
}

.breakdown-card__score-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.breakdown-card__bar {
  flex: 1;
  min-width: 120px;
  height: 10px;
  background: var(--dwl-grey-light);
  border-radius: 5px;
  overflow: hidden;
}

.breakdown-card__bar-fill {
  height: 100%;
  background: var(--dwl-gradient);
  border-radius: 5px;
  transition: width 800ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .breakdown-card__bar-fill {
    transition: none;
  }
}

.breakdown-card__score-text {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--dwl-black);
  white-space: nowrap;
}

.breakdown-card__bracket {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px var(--space-sm);
  border-radius: var(--radius-sm);
}

.bracket--low {
  background: rgba(255, 54, 57, 0.1);
  color: var(--dwl-coral);
}

.bracket--developing {
  background: rgba(255, 171, 77, 0.15);
  color: #d48a2c;
}

.bracket--good {
  background: rgba(0, 15, 159, 0.08);
  color: var(--dwl-blue);
}

.bracket--strong {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.breakdown-card__insight {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--dwl-grey-dark);
  margin-bottom: 0;
}

/* ─── Email Gate ──────────────────────────────────────── */

.email-gate {
  padding: var(--space-xl) 0;
  background: var(--dwl-off-white);
}

.email-gate__card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--dwl-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-elevated);
  border-top: 4px solid transparent;
  border-image: var(--dwl-gradient) 1;
}

.email-gate__card h2 {
  color: var(--dwl-blue);
  margin-bottom: var(--space-sm);
}

.email-gate__subtitle {
  color: var(--dwl-grey-dark);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: var(--space-lg);
}

/* Lead form grid — single column mobile, two columns tablet+ */
.lead-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.form-group--full {
  grid-column: 1 / -1;
}

/* Form inputs (text & email) */
.form-group input[type="text"],
.form-group input[type="email"] {
  width: 100%;
  padding: 14px var(--space-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--dwl-black);
  background-color: var(--dwl-white);
  border: 2px solid var(--dwl-grey-light);
  border-radius: var(--radius-md);
  transition: border-color 150ms ease;
  box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
  border-color: var(--dwl-blue);
  outline: 3px solid var(--dwl-pale-blue);
  outline-offset: 2px;
}

.form-group input::placeholder {
  color: var(--dwl-grey-mid);
  font-weight: 400;
}

/* Error states for text/email inputs */
.form-group--error input[type="text"],
.form-group--error input[type="email"] {
  border-color: var(--dwl-coral);
}

.form-required {
  color: var(--dwl-coral);
  font-weight: 600;
}

.form-error {
  display: block;
  margin-top: var(--space-xs);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dwl-coral);
  min-height: 1.25em;
}

.form-error:empty {
  min-height: 0;
}

/* Consent checkbox */
.form-group--consent {
  margin-bottom: var(--space-lg);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin-top: 2px;
  border: 2px solid var(--dwl-grey-mid);
  border-radius: var(--radius-sm);
  background: var(--dwl-white);
  cursor: pointer;
  position: relative;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.checkbox-label input[type="checkbox"]:checked {
  background: var(--dwl-blue);
  border-color: var(--dwl-blue);
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 6px;
  height: 10px;
  border: solid var(--dwl-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--dwl-pale-blue);
  outline-offset: 2px;
}

.form-group--consent.form-group--error input[type="checkbox"] {
  border-color: var(--dwl-coral);
}

.checkbox-label__text {
  color: var(--dwl-grey-dark);
}

.checkbox-label__text a {
  color: var(--dwl-blue);
  text-decoration: underline;
  font-weight: 500;
}

.checkbox-label__text a:hover {
  color: var(--dwl-pink);
}

/* Submit actions */
.email-gate__actions {
  text-align: center;
}

/* Loading spinner on button */
.btn--loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn--loading .btn__arrow {
  display: none;
}

.btn-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--dwl-white);
  border-radius: 50%;
  animation: spin 600ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-spinner {
    animation: none;
    border-top-color: rgba(255, 255, 255, 0.6);
  }
  .checkbox-label input[type="checkbox"] {
    transition: none;
  }
}

/* Success state */
.email-gate__success {
  text-align: center;
  padding: var(--space-lg) 0;
}

.email-gate__success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.email-gate__success p {
  color: var(--dwl-grey-dark);
  margin-bottom: var(--space-sm);
}

.email-gate__success p:last-child {
  margin-bottom: 0;
}

/* ─── Book a Conversation CTA ────────────────────────── */

.book-cta {
  padding: var(--space-xl) 0;
}

.book-cta__inner {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background: var(--dwl-gradient);
  border-radius: var(--radius-lg);
  color: var(--dwl-white);
}

.book-cta__inner h2 {
  color: var(--dwl-white);
  margin-bottom: var(--space-sm);
}

.book-cta__inner p {
  color: var(--dwl-white);
  /* Sits on the gradient's pink side — AA needs large text here:
     ≥19px at SemiBold (DESIGN.md contrast rule). */
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.book-cta__inner .btn--cta {
  background: var(--dwl-yellow);
  color: var(--dwl-blue);
}

.book-cta__inner .btn--cta:hover {
  background: #f5a03e;
}

/* ─── Share Section ──────────────────────────────────── */

.share-section {
  padding: var(--space-lg) 0 var(--space-xl);
}

.share-section__inner {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.btn--share {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.share-icon {
  flex-shrink: 0;
}

/* ─── Mobile: Sticky Download Button ─────────────────── */

@media (max-width: 767px) {
  .email-gate__actions {
    position: sticky;
    bottom: 0;
    background: var(--dwl-white);
    padding: var(--space-md) 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    z-index: 10;
  }

  /* Ensure minimum 48px touch targets on mobile */
  .btn {
    min-height: 48px;
  }

  .radio-card {
    min-height: 52px;
  }

  .form-group select {
    min-height: 48px;
  }
}

/* ─── Responsive ──────────────────────────────────────── */

/* Tablet (768px+) */
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }

  .hero {
    padding: 120px 0;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero__subtitle {
    font-size: 1.25rem;
  }

  .dimension-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .container {
    padding: 0 var(--space-lg);
  }

  .question-card__text {
    font-size: 1.5rem;
  }

  .radio-card {
    padding: var(--space-md) var(--space-xl);
  }

  .score-display__number {
    font-size: 6rem;
  }

  .sg-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .breakdown-card {
    padding: var(--space-lg) var(--space-xl);
  }

  .lead-form__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .email-gate__card {
    padding: var(--space-xl);
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4.875rem;
    max-width: 700px;
  }

  .dimension-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════
   PDF Pages — Hidden render targets for html2canvas.
   Sized at A4 proportions (794 × 1123px at 96dpi).
   Positioned off-screen; html2canvas captures them.
   ═══════════════════════════════════════════════════════ */

#pdf-render-area {
  position: fixed;
  left: -9999px;
  top: 0;
  z-index: -1;
  /* Ensure fonts are rendered for capture */
  font-family: var(--font-heading);
}

/* ─── Base Page ──────────────────────────────────────── */

.pdf-page {
  width: 794px;
  height: 1123px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  font-family: var(--font-heading);
  -webkit-font-smoothing: antialiased;
}

/* ─── Page 1: Cover ──────────────────────────────────── */

.pdf-cover {
  background: linear-gradient(11.294deg, var(--dwl-blue) 0%, var(--dwl-pink) 100%);
  color: var(--dwl-white);
  padding: 60px;
  display: flex;
  flex-direction: column;
}

.pdf-cover__logo {
  position: absolute;
  top: 50px;
  right: 60px;
  width: 200px;
  height: auto;
}

.pdf-cover__content {
  margin-top: 280px;
}

.pdf-cover__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 72px;
  line-height: 1.1;
  color: var(--dwl-white);
  margin: 0 0 30px 0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.pdf-cover__line {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
}

.pdf-cover__org {
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 12px 0;
  opacity: 0.95;
}

.pdf-cover__date {
  font-size: 20px;
  font-weight: 400;
  margin: 0;
  opacity: 0.85;
}

.pdf-cover__url {
  position: absolute;
  bottom: 50px;
  left: 60px;
  font-size: 18px;
  font-weight: 400;
  opacity: 0.7;
  margin: 0;
}

/* ─── Content Pages (2-7) ────────────────────────────── */

.pdf-content {
  background: var(--dwl-white);
  padding: 60px;
}

.pdf-section-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  color: var(--dwl-blue);
  margin: 0 0 8px 0;
  padding-bottom: 10px;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--dwl-blue), var(--dwl-pink)) 1;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pdf-section-heading--spaced {
  margin-top: 40px;
}

.pdf-body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--dwl-grey-dark);
  margin: 12px 0 0 0;
}

.pdf-body--intro {
  margin-bottom: 24px;
}

.pdf-footer {
  position: absolute;
  bottom: 30px;
  left: 60px;
  right: 60px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--dwl-grey-mid);
  font-family: var(--font-body);
}

/* ─── Page 2: Summary ────────────────────────────────── */

.pdf-summary__score {
  margin: 24px 0 8px;
  display: flex;
  align-items: baseline;
}

.pdf-summary__number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 96px;
  line-height: 1;
  color: var(--dwl-blue);
}

.pdf-summary__max {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 36px;
  color: var(--dwl-grey-mid);
  margin-left: 6px;
}

.pdf-summary__tier {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--dwl-pink);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 16px 0;
}

.pdf-summary__tier strong {
  font-weight: 700;
}

.pdf-summary__radar {
  display: block;
  width: 380px;
  height: 380px;
  margin: 24px auto 0;
}

/* ─── Pages 3-4: Dimensions ──────────────────────────── */

.pdf-dimension {
  margin-bottom: 28px;
}

.pdf-dimension__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--dwl-blue);
  margin: 0 0 10px 0;
  text-transform: none;
}

.pdf-dimension__bar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.pdf-dimension__bar {
  flex: 1;
  max-width: 420px;
  height: 12px;
  background: var(--dwl-grey-light);
  border-radius: 6px;
  overflow: hidden;
}

.pdf-dimension__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--dwl-blue), var(--dwl-pink));
  border-radius: 6px;
}

.pdf-dimension__score {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--dwl-black);
  white-space: nowrap;
}

.pdf-dimension__bracket {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: 4px;
}

.pdf-bracket--strong { background: rgba(40, 167, 69, 0.12); color: #28a745; }
.pdf-bracket--good { background: rgba(0, 15, 159, 0.08); color: var(--dwl-blue); }
.pdf-bracket--developing { background: rgba(255, 171, 77, 0.15); color: #d48a2c; }
.pdf-bracket--low { background: rgba(255, 54, 57, 0.1); color: var(--dwl-coral); }

/* ─── Page 5: Strengths & Gaps ───────────────────────── */

.pdf-sg-item {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  background: var(--dwl-off-white);
  border-radius: 10px;
  margin-top: 16px;
}

.pdf-sg-item strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--dwl-black);
}

.pdf-sg-item__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin-top: 2px;
}

.pdf-sg-item__icon--strength {
  background: rgba(40, 167, 69, 0.12);
  color: #28a745;
}

.pdf-sg-item__icon--gap {
  background: rgba(255, 171, 77, 0.15);
  color: var(--dwl-yellow);
}

.pdf-sg-item__score {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--dwl-grey-mid);
  margin-top: 2px;
}

.pdf-sg-item .pdf-body {
  margin-top: 6px;
  font-size: 14px;
}

/* ─── Page 6: Recommendations ────────────────────────── */

.pdf-rec {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.pdf-rec__number {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: linear-gradient(135deg, var(--dwl-blue), var(--dwl-pink));
  color: var(--dwl-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  margin-top: 2px;
}

.pdf-rec__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--dwl-blue);
  margin: 0 0 4px 0;
  text-transform: none;
}

.pdf-rec__service {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  color: var(--dwl-pink);
  display: block;
}

.pdf-rec__content .pdf-body {
  font-size: 15px;
}

/* ─── Page 7: About ──────────────────────────────────── */

.pdf-about__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.pdf-about__logo {
  width: 180px;
  height: auto;
}

.pdf-about__badge {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--dwl-blue);
  margin: 20px 0;
}

.pdf-about__services-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--dwl-blue);
  margin: 0 0 14px 0;
  text-transform: none;
}

.pdf-service {
  margin-bottom: 14px;
}

.pdf-service__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--dwl-pink);
  display: block;
  margin-bottom: 2px;
}

.pdf-service span {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--dwl-grey-dark);
}

.pdf-about__purpose-line {
  height: 2px;
  background: linear-gradient(90deg, var(--dwl-blue), var(--dwl-pink));
  margin: 24px 0;
}

.pdf-about__quote {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  font-style: italic;
  color: var(--dwl-blue);
  margin: 0;
}

/* ─── Page 8: CTA ────────────────────────────────────── */

.pdf-cta-page {
  background: var(--dwl-white);
}

.pdf-cta__gradient {
  background: linear-gradient(11.294deg, var(--dwl-blue) 0%, var(--dwl-pink) 100%);
  padding: 60px;
  padding-bottom: 50px;
}

.pdf-cta__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 52px;
  color: var(--dwl-white);
  margin: 0 0 20px 0;
  text-transform: uppercase;
}

.pdf-cta__subtitle {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 24px;
  color: var(--dwl-white);
  margin: 0 0 16px 0;
  line-height: 1.35;
}

.pdf-cta__desc {
  font-family: var(--font-body);
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.5;
}

.pdf-cta__contact {
  padding: 40px 60px;
}

.pdf-cta__contact h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  color: var(--dwl-blue);
  margin: 0 0 20px 0;
  text-transform: none;
}

.pdf-cta__row {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 17px;
  font-family: var(--font-body);
}

.pdf-cta__row strong {
  color: var(--dwl-grey-dark);
  min-width: 60px;
}

.pdf-cta__row span {
  color: var(--dwl-blue);
}

.pdf-cta__qr {
  width: 120px;
  height: 120px;
  margin-top: 24px;
  background: var(--dwl-off-white);
  border: 1px solid var(--dwl-grey-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  color: var(--dwl-grey-mid);
  font-family: var(--font-body);
  line-height: 1.4;
}

/* ─── PDF Deep-Dive Narrative Pages ──────────────────────── */

.pdf-deepdive__header {
  background: linear-gradient(11.294deg, var(--dwl-blue) 0%, var(--dwl-pink) 100%);
  color: var(--dwl-white);
  padding: 16px 24px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.pdf-deepdive__domain-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin: 0 0 4px 0;
}

.pdf-deepdive__domain-name {
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
}

.pdf-deepdive-item {
  margin-bottom: 16px;
  border-bottom: 1px solid var(--dwl-grey-light);
  padding-bottom: 14px;
}

.pdf-deepdive-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.pdf-deepdive-item__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.pdf-deepdive-item__q-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--dwl-blue);
  line-height: 1.35;
  flex: 1;
}

.pdf-deepdive-item__tier {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.pdf-deepdive-item__tier--strong   { background: rgba(40, 167, 69, 0.12); color: #28a745; }
.pdf-deepdive-item__tier--good     { background: rgba(0, 15, 159, 0.08);  color: var(--dwl-blue); }
.pdf-deepdive-item__tier--developing { background: rgba(255, 171, 77, 0.15); color: #d48a2c; }
.pdf-deepdive-item__tier--low      { background: rgba(255, 54, 57, 0.1);  color: var(--dwl-coral); }

.pdf-deepdive-item__cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.pdf-deepdive-item__col-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dwl-grey-mid);
  margin-bottom: 3px;
}

.pdf-deepdive-item__text {
  font-size: 11px;
  line-height: 1.45;
  color: var(--dwl-grey-dark);
  margin: 0;
}

/* ─── Results Hero — Express label ───────────────────────── */

.results-hero__label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dwl-pink);
  margin-bottom: var(--space-md);
}

.results-hero__tier {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dwl-blue);
  margin-bottom: var(--space-lg);
  /* Override pill badge appearance when inside results hero */
  display: block;
  background: none !important;
  border: none !important;
  padding: 0;
  border-radius: 0;
}

/* ─── Domain Cards Grid ───────────────────────────────────── */

.domain-cards-section {
  padding: var(--space-xl) 0;
  background: var(--dwl-off-white);
}

.domain-cards-section h2 {
  color: var(--dwl-blue);
  margin-bottom: var(--space-sm);
}

.domain-cards-section__subtitle {
  color: var(--dwl-grey-mid);
  margin-bottom: var(--space-xl);
  font-size: 1.0625rem;
}

.domain-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .domain-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .domain-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.domain-card {
  background: var(--dwl-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.domain-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.domain-card__header h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--dwl-blue);
  margin: 0;
}

/* Small tier badge for domain cards */
.tier-badge--sm {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.tier-badge--sm.bracket--low    { background: rgba(0,15,159,0.1); color: var(--dwl-blue); }
.tier-badge--sm.bracket--developing { background: rgba(15,213,248,0.15); color: var(--dwl-blue); }
.tier-badge--sm.bracket--good   { background: rgba(0,15,159,0.15); color: var(--dwl-blue); }
.tier-badge--sm.bracket--strong { background: var(--dwl-gradient); color: var(--dwl-white); }

.domain-card__bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.domain-card__bar {
  flex: 1;
  height: 6px;
  background: var(--dwl-grey-light);
  border-radius: 3px;
  overflow: hidden;
}

.domain-card__bar-fill {
  height: 100%;
  background: var(--dwl-gradient);
  border-radius: 3px;
  transition: width 0.6s ease-out;
}

.domain-card__score {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--dwl-grey-dark);
  white-space: nowrap;
}

.domain-card__insight {
  font-size: 0.9375rem;
  color: var(--dwl-grey-dark);
  line-height: 1.5;
  flex: 1;
}

.domain-card__action {
  margin-top: auto;
}

.btn--explore {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: background 0.15s ease;
}

.domain-card__complete-badge {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a7f4f;
  background: rgba(26, 127, 79, 0.1);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  display: inline-block;
}

/* ─── Domain Narrative Accordions ─────────────────────────── */

.domain-narratives {
  border-top: 1px solid var(--dwl-grey-light);
  padding-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.domain-narratives__intro {
  font-size: 0.875rem;
  color: var(--dwl-grey-mid);
  margin: 0;
}

.narrative-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--dwl-grey-light);
  border-radius: var(--radius-md);
  background: var(--dwl-off-white);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dwl-black);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.narrative-item:hover,
.narrative-item:focus-visible {
  background: var(--dwl-grey-light);
  border-color: var(--dwl-blue);
  outline: none;
}

.narrative-item__q-text {
  flex: 1;
  line-height: 1.3;
}

.narrative-item__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.narrative-item__tier-badge {
  flex-shrink: 0;
}

.narrative-item__arrow {
  color: var(--dwl-blue);
  font-size: 1.125rem;
  transition: transform 0.15s ease;
}

.narrative-item:hover .narrative-item__arrow {
  transform: translateX(3px);
}

.narrative-item__col-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dwl-blue);
}

.narrative-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.narrative-modal[hidden] {
  display: none;
}

.narrative-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.narrative-modal__panel {
  position: relative;
  background: var(--dwl-white);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--space-xl);
  box-shadow: var(--shadow-elevated);
}

.narrative-modal__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--dwl-grey-light);
}

.narrative-modal__question {
  flex: 1;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--dwl-blue);
  margin: 0;
  line-height: 1.4;
}

.narrative-modal__close {
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 1.125rem;
  color: var(--dwl-grey-mid);
  cursor: pointer;
  padding: var(--space-sm);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  line-height: 1;
  transition: color 0.15s;
  margin: calc(-1 * var(--space-sm));
}

.narrative-modal__close:hover {
  color: var(--dwl-black);
  background: var(--dwl-grey-light);
}

.narrative-modal__close:focus-visible {
  outline: 3px solid var(--dwl-pale-blue);
  outline-offset: 2px;
}

.narrative-modal__cols {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.narrative-modal__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.narrative-modal__col-text {
  font-size: 1rem;
  color: var(--dwl-grey-dark);
  line-height: 1.65;
  margin: 0;
}

/* ─── Resume Banner ───────────────────────────────────── */

.resume-banner {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: rgba(15, 213, 248, 0.12);
  border: 1px solid rgba(15, 213, 248, 0.4);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.resume-banner__text {
  font-size: 1rem;
  color: var(--dwl-white);
  margin: 0;
}

.resume-banner__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.resume-banner__dismiss {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.resume-banner__dismiss:hover {
  color: var(--dwl-white);
}

/* ─── Benchmark Panel ─────────────────────────────────── */

/* ── Benchmark panel ──────────────────────────────────────────────────── */

.benchmark-panel {
  padding: var(--space-xl) 0;
  background: var(--dwl-off-white);
  border-top: 2px solid var(--dwl-grey-light);
}

.benchmark-panel__inner {
  max-width: 640px;
}

.benchmark-panel__heading {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--dwl-blue);
  margin: 0 0 var(--space-lg);
}

/* Hero stat */
.benchmark-hero {
  margin-bottom: var(--space-xl);
}

.benchmark-hero__label {
  font-size: 0.8rem;
  color: var(--dwl-grey-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 4px;
}

.benchmark-hero__value {
  display: block;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  color: var(--dwl-blue);
  line-height: 1;
  margin-bottom: 6px;
}

.benchmark-hero__context {
  font-size: 1rem;
  color: var(--dwl-grey-dark);
  margin: 0;
}

/* Percentile gauge */
.benchmark-gauge {
  margin-bottom: var(--space-xl);
}

.benchmark-gauge__track {
  position: relative;
  height: 10px;
  background: var(--dwl-grey-light);
  border-radius: 5px;
  margin-top: 32px;
  margin-bottom: 40px;
  overflow: visible;
}

.benchmark-gauge__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--user-pct);
  background: var(--dwl-gradient);
  border-radius: 5px;
}

.benchmark-gauge__marker {
  position: absolute;
  left: var(--user-pct);
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: #fff;
  border: 3px solid var(--dwl-blue);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 15, 159, 0.25);
  z-index: 2;
}

.benchmark-gauge__you-label {
  position: absolute;
  left: var(--user-pct);
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--dwl-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.benchmark-gauge__you-label::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 3px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--dwl-blue);
}

.benchmark-gauge__tick {
  position: absolute;
  top: 0;
  height: 100%;
  width: 1px;
  background: rgba(0, 0, 0, 0.18);
}

.benchmark-gauge__tick-label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  color: var(--dwl-grey-mid);
  white-space: nowrap;
  text-align: center;
  line-height: 1.4;
}

.benchmark-gauge__axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--dwl-grey-mid);
  margin-top: 6px;
  opacity: 0.7;
}

/* Score comparison bars */
.benchmark-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.benchmark-bars__row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: var(--space-sm);
}

.benchmark-bars__label {
  font-size: 0.8rem;
  color: var(--dwl-grey-dark);
  text-align: right;
}

.benchmark-bars__track {
  height: 10px;
  background: var(--dwl-grey-light);
  border-radius: 5px;
  overflow: hidden;
}

.benchmark-bars__fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.6s ease;
}

.benchmark-bars__fill--you    { background: var(--dwl-gradient); }
.benchmark-bars__fill--sector { background: var(--dwl-pale-blue); opacity: 0.7; }
.benchmark-bars__fill--overall{ background: var(--dwl-grey-mid); opacity: 0.4; }

.benchmark-bars__value {
  font-size: 0.75rem;
  color: var(--dwl-grey-mid);
  white-space: nowrap;
}

.benchmark-panel__methodology {
  font-size: 0.8rem;
  color: var(--dwl-grey-mid);
  margin: 0;
  line-height: 1.6;
}



/* ─── Identity Screen (Phase 3) ───────────────────────── */

.identity-screen {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: flex-start;
  padding: var(--space-xl) 0;
}

.identity-card {
  background: var(--dwl-white);
  border: 2px solid var(--dwl-grey-light);
  border-radius: 16px;
  padding: var(--space-xl);
  max-width: 820px;
  margin: 0 auto;
}

.identity-card h1 {
  font-size: 2rem;
  margin: 0 0 var(--space-sm);
}

.identity-card__subtitle {
  color: var(--dwl-grey-mid);
  margin: 0 0 var(--space-xl);
  font-size: 1.1rem;
}

.identity-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

@media (max-width: 600px) {
  .identity-choices {
    grid-template-columns: 1fr;
  }
  .identity-choice .btn {
    width: 100%;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    font-size: 1rem;
  }
  .identity-choice__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
}

.identity-choice {
  border: 2px solid var(--dwl-grey-light);
  border-radius: 12px;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.identity-choice--featured {
  border-color: var(--dwl-blue);
  background: var(--dwl-blue);
}

.identity-choice--featured .identity-choice__title,
.identity-choice--featured .identity-choice__list-item {
  color: var(--dwl-white);
}

.identity-choice__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.identity-choice__title {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 700;
  flex: 1 1 0;
  min-width: 0;
}

.identity-choice__tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--dwl-grey-light);
  color: var(--dwl-grey-dark);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.identity-choice__tag--featured {
  background: var(--dwl-yellow);
  color: var(--dwl-black);
}

.identity-choice__list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.identity-choice__list-item {
  padding: var(--space-xs) 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--dwl-grey-dark);
}

.identity-choice__list-item::before {
  flex-shrink: 0;
  font-size: 0.85rem;
}

.identity-choice__list-item--yes::before {
  content: '\2713';
  color: #198754;
}

.identity-choice__list-item--no::before {
  content: '\2715';
  color: var(--dwl-grey-mid);
}

.identity-choice__list-item--no {
  color: var(--dwl-grey-mid);
}

.identity-form-wrapper {
  border-top: 2px solid var(--dwl-grey-light);
  padding-top: var(--space-xl);
  margin-top: var(--space-lg);
}

.identity-form__heading {
  font-size: 1.25rem;
  margin: 0 0 var(--space-sm);
}

.identity-form__note {
  color: var(--dwl-grey-mid);
  font-size: 0.9rem;
  margin: 0 0 var(--space-lg);
}

.identity-form__actions {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

/* ─── Anonymous Gate (Phase 3) ────────────────────────── */

.anonymous-gate {
  padding: var(--space-2xl) 0;
  background: var(--dwl-off-white);
}

.anonymous-gate__card {
  background: var(--dwl-white);
  border: 2px solid var(--dwl-grey-light);
  border-radius: 16px;
  padding: var(--space-xl);
  max-width: 700px;
  margin: 0 auto;
}

.anonymous-gate__heading {
  font-size: 1.75rem;
  margin: 0 0 var(--space-md);
}

.anonymous-gate__teaser {
  color: var(--dwl-grey-dark);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 var(--space-xl);
}

.anonymous-gate__locked-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.agate-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.95rem;
  color: var(--dwl-grey-dark);
  padding: var(--space-sm) var(--space-md);
  background: var(--dwl-grey-light);
  border-radius: 8px;
  opacity: 0.7;
}

.agate-item__lock {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.anonymous-gate__actions {
  margin-top: var(--space-xl);
}

@media (max-width: 480px) {
  .anonymous-gate__actions .btn {
    width: 100%;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
}

/* ─── Report Ready (identified path, Phase 3) ──────────── */

.report-ready {
  padding: var(--space-2xl) 0;
  background: var(--dwl-off-white);
}

.report-ready__card {
  background: var(--dwl-white);
  border: 2px solid var(--dwl-grey-light);
  border-radius: 16px;
  padding: var(--space-xl);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.report-ready__card h2 {
  font-size: 1.75rem;
  margin: 0 0 var(--space-sm);
}

.report-ready__subtitle {
  color: var(--dwl-grey-mid);
  margin: 0 0 var(--space-xl);
}

.report-ready__actions {
  margin-bottom: var(--space-lg);
}

/* ─── Mid-flow Friction Modal (Phase 3) ────────────────── */

.friction-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.friction-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.friction-modal__panel {
  position: relative;
  background: var(--dwl-white);
  border-radius: 16px;
  padding: var(--space-xl);
  max-width: 420px;
  width: 100%;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.friction-modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--dwl-grey-mid);
  padding: var(--space-xs);
  border-radius: 4px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.friction-modal__close:hover {
  background: var(--dwl-grey-light);
}

.friction-modal__heading {
  font-size: 1.4rem;
  margin: 0 0 var(--space-md);
  padding-right: var(--space-xl);
}

.friction-modal__body {
  color: var(--dwl-grey-dark);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 var(--space-lg);
}

.friction-modal__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

.friction-modal__actions .btn--cta {
  width: 100%;
}

@media (max-width: 480px) {
  .friction-modal__panel {
    padding: var(--space-lg);
  }
}

.btn--link {
  background-color: var(--dwl-yellow);
  border: none;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  color: var(--dwl-blue);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: inherit;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
}

.btn--link:hover {
  background-color: #f5a03e;
  color: var(--dwl-blue);
}

/* ─── Expired Banner (Phase 4) ────────────────────────── */

.expired-banner {
  background: var(--dwl-grey-light);
  border-left: 4px solid var(--dwl-orange);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.expired-banner__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--dwl-grey-dark);
}

.expired-banner__actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.expired-banner__dismiss {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--dwl-grey-mid);
  cursor: pointer;
  text-decoration: underline;
}

.expired-banner__dismiss:hover {
  color: var(--dwl-grey-dark);
}

/* ─── Delta Panel (Phase 4) ────────────────────────────── */

.delta-section {
  padding: 2.5rem 0;
  background: var(--dwl-grey-light);
  border-top: 1px solid #e0e0e0;
}

.delta-section__heading {
  font-size: 1.375rem;
  margin: 0 0 0.375rem;
  color: var(--dwl-grey-dark);
}

.delta-section__note {
  font-size: 0.875rem;
  color: var(--dwl-grey-mid);
  margin: 0 0 1.5rem;
}

.delta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.delta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border-radius: 4px;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
}

.delta-row__label {
  flex: 1;
  font-weight: 600;
  color: var(--dwl-grey-dark);
}

.delta-row__arrow {
  font-size: 1.1rem;
}

.delta-row__value {
  font-weight: 700;
  min-width: 2.5rem;
  text-align: right;
}

.delta-row--up .delta-row__arrow,
.delta-row--up .delta-row__value {
  color: #2a7a4b;
}

.delta-row--down .delta-row__arrow,
.delta-row--down .delta-row__value {
  color: #b03a2e;
}

.delta-row--flat .delta-row__arrow,
.delta-row--flat .delta-row__value {
  color: var(--dwl-grey-mid);
}

.delta-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--dwl-grey-dark);
  color: #fff;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.delta-total__label {
  font-weight: 600;
}

.delta-total__value {
  font-weight: 700;
  font-size: 1.125rem;
}

.delta-total--up .delta-total__value { color: #7ef4a2; }
.delta-total--down .delta-total__value { color: #f4a07e; }
.delta-total--flat .delta-total__value { color: #ccc; }

/* ─── PDF Delta Page (Phase 4) ─────────────────────────── */

.pdf-delta-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.pdf-delta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 3px;
  background: #f5f5f5;
  font-size: 13px;
}

.pdf-delta-row__label {
  flex: 1;
  font-weight: 700;
  color: #1a1a1a;
}

.pdf-delta-row__arrow {
  font-size: 14px;
}

.pdf-delta-row__value {
  font-weight: 700;
  min-width: 36px;
  text-align: right;
}

.pdf-delta-row--up .pdf-delta-row__arrow,
.pdf-delta-row--up .pdf-delta-row__value { color: #2a7a4b; }
.pdf-delta-row--down .pdf-delta-row__arrow,
.pdf-delta-row--down .pdf-delta-row__value { color: #b03a2e; }
.pdf-delta-row--flat .pdf-delta-row__arrow,
.pdf-delta-row--flat .pdf-delta-row__value { color: #888; }

.pdf-delta-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a1a1a;
  color: #fff;
  border-radius: 3px;
  padding: 10px 14px;
  font-size: 14px;
  margin-top: 8px;
}

.pdf-delta-total__label { font-weight: 600; }
.pdf-delta-total__value { font-weight: 700; font-size: 16px; }
.pdf-delta-total--up .pdf-delta-total__value { color: #7ef4a2; }
.pdf-delta-total--down .pdf-delta-total__value { color: #f4a07e; }
.pdf-delta-total--flat .pdf-delta-total__value { color: #ccc; }

/* ─── Before We Begin — Combined Screen ─────────────────── */

.before-screen {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: flex-start;
  padding: var(--space-xl) 0 var(--space-xxl);
  animation: slideIn 300ms ease-out;
}

.before-card {
  background: var(--dwl-white);
  border: 2px solid var(--dwl-grey-light);
  border-radius: 16px;
  padding: var(--space-xl);
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.before-card h1 {
  font-size: 2rem;
  margin: 0 0 var(--space-sm);
}

.before-card__subtitle {
  color: var(--dwl-grey-mid);
  margin: 0 0 var(--space-xl);
  font-size: 1.1rem;
}

.before-section {
  margin-bottom: var(--space-xl);
}

.before-section__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dwl-grey-mid);
  margin: 0 0 var(--space-md);
}

.before-divider {
  border: none;
  border-top: 2px solid var(--dwl-grey-light);
  margin: var(--space-xl) 0;
}

.before-actions {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

/* Identity choice as selectable toggles in the combined screen */
.identity-toggles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

@media (max-width: 600px) {
  .identity-toggles {
    grid-template-columns: 1fr;
  }
}

.identity-toggle {
  border: 2px solid var(--dwl-grey-light);
  border-radius: 12px;
  padding: var(--space-lg);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: left;
  background: var(--dwl-white);
}

.identity-toggle:hover {
  border-color: var(--dwl-blue);
}

.identity-toggle--selected {
  border-color: var(--dwl-blue);
  background: var(--dwl-blue);
}

.identity-toggle--selected .identity-toggle__title,
.identity-toggle--selected .identity-toggle__desc {
  color: var(--dwl-white);
}

.identity-toggle__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--dwl-grey-light);
  color: var(--dwl-grey-dark);
  padding: 2px 8px;
  border-radius: 4px;
  align-self: flex-start;
}

.identity-toggle__tag--recommended {
  background: var(--dwl-yellow);
  color: var(--dwl-black);
}

.identity-toggle__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--dwl-blue);
  margin: 0;
}

.identity-toggle__desc {
  font-size: 0.9rem;
  color: var(--dwl-grey-dark);
  margin: 0;
  line-height: 1.4;
}

/* Details form revealed when identify is selected */
.before-details {
  display: none;
}

.before-details--visible {
  display: block;
}

/* ─── CTA Cards — Gradient Pair ─────────────────────────── */

.cta-cards-section {
  padding: var(--space-xl) 0 var(--space-xxl);
}

.cta-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

@media (max-width: 640px) {
  .cta-cards {
    grid-template-columns: 1fr;
  }
}

.cta-card {
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  color: var(--dwl-white);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cta-card--pdf {
  background: linear-gradient(135deg, #000F9F 0%, #0FD5F8 100%);
}

.cta-card--book {
  background: var(--dwl-gradient);
}

.cta-card__label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.cta-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dwl-white);
  margin: 0;
  line-height: 1.2;
}

.cta-card p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.5;
}

.cta-card .btn {
  align-self: flex-start;
  margin-top: auto;
  background: var(--dwl-yellow);
  color: var(--dwl-blue);
  border: none;
}

.cta-card .btn:hover {
  background: #f5a03e;
  transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════
   AI Pulse Check — day-3 components
   (spot-the-AI, staged reveal, typewriter briefing)
   ════════════════════════════════════════════════════════ */

/* The ONLY angle the brand device uses — the logomark's W (DESIGN.md).
   Every skew/cut below derives from this token; ad-hoc angles are
   off-brand by definition. Direction matters as much as the number:
   the logomark's verticals lean top-LEFT / bottom-RIGHT ("\"), which
   is skewX(+11.294deg). Never negate it, never skewY, never rotate. */
:root {
  --dwl-angle: 11.294deg;
}

/* ─── Score — brand gradient, band-independent (6A/10A) ── */

.pulse-score-number {
  background: var(--dwl-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--dwl-blue); /* fallback when background-clip:text unsupported */
}

/* One angled gradient quadrilateral behind the hero (brand device) */
.results-hero {
  position: relative;
  overflow: hidden;
}

.pulse-hero-shape {
  position: absolute;
  top: -40px;
  right: -50px;
  width: 220px;
  height: 180px;
  background: var(--dwl-gradient);
  /* Brand shape grammar: horizontals horizontal, verticals leaning at
     the logomark angle — skewX only, no rotate (a rotate tilts the
     horizontal edges, which the logomark never does). */
  transform: skewX(var(--dwl-angle));
  opacity: 0.95;
  z-index: 0;
}

.results-hero__inner {
  position: relative;
  z-index: 1;
}

.pulse-percentile {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--dwl-blue);
  margin-top: var(--space-sm);
}

/* ─── Staged reveal acts (1A) ───────────────────────────── */

.pulse-act {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.pulse-act--shown {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .pulse-act {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ─── Briefing card + typewriter (4A) ───────────────────── */

.pulse-briefing-section {
  padding: var(--space-lg) 0 var(--space-xl);
}

.pulse-briefing-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--dwl-white);
  border: 2px solid var(--dwl-grey-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.pulse-wait {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--dwl-blue);
  animation: pulse-wait-throb 1.6s ease-in-out infinite;
}

@keyframes pulse-wait-throb {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-wait { animation: none; }
}

.pulse-briefing-text {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--dwl-ink, #1A1A2E);
  white-space: pre-line;
  margin: 0;
}

.pulse-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--dwl-pink);
  animation: pulse-caret-blink 0.9s steps(1) infinite;
}

@keyframes pulse-caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-caret { animation: none; }
}

.pulse-skip {
  margin-top: var(--space-md);
  min-height: 44px;
}

/* ─── Bonus interstitial (7A) ───────────────────────────── */

.bonus-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--dwl-white);
}

.bonus-card {
  max-width: 540px;
  margin: 0 auto;
  text-align: left;
  padding: var(--space-xl) 0;
}

.bonus-card__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--dwl-blue);
  margin-bottom: var(--space-sm);
}

.bonus-card__sub {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.375rem;
  margin-bottom: var(--space-xs);
}

.bonus-card__note {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--dwl-grey-mid);
  margin-bottom: var(--space-lg);
}

/* ─── Spot-the-AI (2A) — both notes + task visible at 375px ─ */

.spot-screen {
  padding: var(--space-md) 0 var(--space-xl);
}

.spot-screen__task {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dwl-blue);
  margin-bottom: var(--space-md);
}

.spot-notes {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 700px;
}

.spot-note {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  background: var(--dwl-white);
  border: 2px solid var(--dwl-grey-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  padding-top: var(--space-lg);
  font-family: var(--font-heading);
  cursor: pointer;
  min-height: 44px;
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.spot-note:hover:not(:disabled),
.spot-note:focus-visible {
  border-color: var(--dwl-blue);
}

.spot-note:active:not(:disabled) {
  transform: scale(0.99);
}

.spot-note:disabled {
  cursor: default;
}

/* Angled label tab — DWL Blue, cut at the brand angle (2A). The
   background is a skewed pseudo-element so the slant is exactly
   --dwl-angle at any tab size, while the text stays upright. */
.spot-note__tab {
  position: absolute;
  top: -1px;
  left: var(--space-md);
  color: var(--dwl-white);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 3px 14px 3px 10px;
  isolation: isolate;
}

.spot-note__tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--dwl-blue);
  transform: skewX(var(--dwl-angle));
  transform-origin: bottom left;
  z-index: -1;
}

.spot-note__text {
  display: block;
  font-weight: 400;
  font-size: 1rem; /* 16px body at 375px — word budget keeps both on screen */
  line-height: 1.45;
  color: var(--dwl-ink, #1A1A2E);
}

.spot-note--chosen {
  border-color: var(--dwl-blue);
}

/* The AI note is identified by chip + icon, never colour alone (6A) */
.spot-note--ai {
  border-color: var(--dwl-blue);
}

.spot-note__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--dwl-blue);
  color: var(--dwl-white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-xs);
}

.spot-note__icon {
  width: 12px;
  height: 12px;
  fill: var(--dwl-pale-blue);
}

.spot-reveal {
  max-width: 700px;
  margin-top: var(--space-lg);
}

.spot-reveal__copy {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.45;
  margin-bottom: var(--space-sm);
}

.spot-reveal__stat {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--dwl-blue);
  margin-bottom: var(--space-lg);
}

/* `hidden` must win over the chip's display value — without this the
   chip shows on BOTH notes before/after the guess (caught in day-3 QA) */
.spot-note__chip[hidden] {
  display: none;
}

/* ════════════════════════════════════════════════════════
   AI Pulse Check — day-4 components
   (email capture, attract loop, idle resets)
   ════════════════════════════════════════════════════════ */

/* ─── Email capture ─────────────────────────────────────── */

.pulse-email-section {
  padding: 0 0 var(--space-xl);
}

.pulse-email-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--dwl-white);
  border: 2px solid var(--dwl-grey-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.pulse-email-card label[for="pulse-email-input"] {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dwl-blue);
  display: block;
  margin-bottom: var(--space-sm);
}

.pulse-gdpr-notice {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--dwl-grey-mid);
  line-height: 1.4;
  margin: var(--space-sm) 0 var(--space-md);
}

.pulse-gdpr-notice a {
  color: var(--dwl-blue);
}

.pulse-email-confirmation {
  max-width: 700px;
  margin: 0 auto;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.375rem;
  color: var(--dwl-blue);
  padding: var(--space-lg) 0;
}

/* ─── Attract loop (3A: billboard, 2–3m legibility) ─────── */

/* Billboard rule: the attract screen ALWAYS fits the laptop screen —
   no scrolling, ever. All type and the QR scale with viewport height. */
.attract {
  height: 100dvh;
  overflow: hidden;
  background: var(--dwl-gradient);
  color: var(--dwl-white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(8px, 2vh, 24px);
  padding: clamp(16px, 4vh, 48px) clamp(24px, 5vw, 80px);
  cursor: pointer;
  position: relative;
}

.attract__logo {
  position: absolute;
  /* Exclusion zone: one D-height minimum on all sides. */
  top: clamp(28px, 4vh, 56px);
  right: clamp(28px, 3vw, 56px);
  /* Billboard: the reverse logomark scales with the screen so it
     reads from 2–3 metres on the stand laptop. */
  width: clamp(110px, 14vh, 220px);
  height: auto;
}

/* Display-scale Bold — white on the gradient passes AA at this size.
   vh-driven so the whole composition scales to the screen, never past it. */
.attract__headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(48px, 10vh, 112px);
  line-height: 1.02;
  margin: 0;
  max-width: 14ch;
}

.attract__sub {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(24px, 3.6vh, 40px);
  margin: 0;
}

/* White-cut angled shape holding the QR (3A: QR ≥25% screen height).
   White panel as a skewed pseudo-element at the brand angle; the QR
   and hook text stay square inside it. */
.attract__qr-shape {
  position: relative;
  color: var(--dwl-blue);
  padding: clamp(12px, 2.4vh, 28px) clamp(20px, 3vw, 48px);
  margin: 0 0 0 var(--space-xl); /* room for the skew's bottom-left reach */
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 40px);
  isolation: isolate;
}

.attract__qr-shape::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--dwl-white);
  transform: skewX(var(--dwl-angle));
  z-index: -1;
}

.attract__qr-hook {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(20px, 2.8vh, 30px);
  max-width: 12ch;
  margin: 0;
}

/* QR ≥25% of screen height (3A) — assets/qr.png, regenerated per URL
   via scripts/generate-qr.mjs. If the image is missing the slot hides
   and the hook text carries the shape. */
.attract__qr-slot {
  width: clamp(140px, 26vh, 300px);
  height: clamp(140px, 26vh, 300px);
}

.attract__qr-slot img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Count + ticker anchored toward the gradient's blue end (AA rule) */
.attract__count {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(24px, 3.6vh, 44px);
  margin: 0;
}

/* Latest plays as a row of angled white cards — the brand device in
   miniature (Simon: the plain-text list undersold the results) */
.attract__feed {
  list-style: none;
  margin: 0;
  /* skewX shifts each card's corners sideways by ~height·tan(11.294°);
     overflow:hidden clips at the padding edge, so both sides need that
     reach as clearance or the end cards lose a corner (Simon, 15 June) */
  padding: 0 clamp(20px, 2vw, 34px);
  display: flex;
  gap: clamp(14px, 1.6vw, 28px);
  max-height: 20vh; /* the wall never pushes the CTA off screen */
  overflow: hidden;
}

.attract__feed-item {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: clamp(10px, 1.8vh, 20px) clamp(18px, 1.8vw, 32px);
  font-family: var(--font-heading);
  white-space: nowrap;
}

.attract__feed-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--dwl-white);
  transform: skewX(var(--dwl-angle));
  z-index: -1;
}

.attract__feed-persona {
  font-weight: 700;
  font-size: clamp(19px, 2.8vh, 30px);
  line-height: 1.1;
  white-space: normal;
  max-width: 14ch;
  background: var(--dwl-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--dwl-blue); /* fallback */
}

.attract__feed-time {
  color: var(--dwl-grey-mid);
  font-weight: 500;
  font-size: clamp(11px, 1.5vh, 15px);
}

.attract__cta {
  font-size: clamp(18px, 2.8vh, 28px);
  padding: clamp(12px, 2vh, 24px) clamp(28px, 4vw, 80px);
}

/* ─── Idle reset overlays (8A) ──────────────────────────── */

.idle-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--dwl-blue);
  color: var(--dwl-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  text-align: center;
  padding: var(--space-md);
  z-index: 90;
}

.idle-prompt {
  position: fixed;
  inset: 0;
  background: var(--dwl-white);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.idle-prompt__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(40px, 8vw, 96px);
  color: var(--dwl-blue);
  margin: 0;
}

.idle-prompt__countdown {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--dwl-grey-mid);
  margin: 0;
}

.idle-prompt__button {
  font-size: 1.75rem;
  padding: var(--space-lg) var(--space-xxl);
}

/* Global heading colours must not bleed onto the gradient (AA) */
.attract__headline,
.attract__sub,
.attract__count {
  color: var(--dwl-white);
}

/* ════════════════════════════════════════════════════════
   AI Pulse Check — day-5 polish (Simon's test feedback)
   ════════════════════════════════════════════════════════ */

/* The hidden attribute must ALWAYS win. Author display values (.btn's
   inline-flex, the chip's inline-flex) silently override the browser's
   [hidden] rule — this bit twice: the spot-the-AI chip and the
   "Show full briefing" button, which sat clickable before its handler
   existed. Never again. */
[hidden] {
  display: none !important;
}

/* Consent checkboxes: more air between box and label (Simon) */
.checkbox-label {
  gap: 14px;
}

/* End card: the message needs room to breathe (Simon) */
.book-cta__inner {
  padding: clamp(48px, 8vh, 88px) var(--space-lg);
}

/* The AI-writing moment gets a visible identity: a header above the
   briefing card + animated thinking dots while generating. */
.pulse-briefing-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--dwl-blue);
  max-width: 700px;
  margin: 0 auto var(--space-sm);
}

.pulse-wait {
  font-size: 1.25rem;
}

.pulse-wait-dots::after {
  content: '';
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: pulse-dots 1.4s steps(4) infinite;
}

@keyframes pulse-dots {
  0%   { content: ''; }
  25%  { content: '·'; }
  50%  { content: '· ·'; }
  75%  { content: '· · ·'; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-wait-dots::after {
    animation: none;
    content: '· · ·';
  }
}

/* ─── Attract: two-column billboard on landscape screens (Simon:
       "feels very one-sided") — message left, QR commanding the right.
       Narrow/portrait screens keep the stacked layout. ─────────── */

@media (min-width: 1000px) and (orientation: landscape) {
  .attract {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-rows: auto auto auto auto auto;
    align-content: center;
    align-items: start;
    column-gap: clamp(32px, 4vw, 80px);
  }

  .attract__headline { grid-column: 1; grid-row: 1; }
  .attract__sub      { grid-column: 1; grid-row: 2; }
  .attract__count    { grid-column: 1; grid-row: 3; margin-top: clamp(16px, 4vh, 48px); }
  .attract__feed     { grid-column: 1; grid-row: 4; }
  .attract__cta      { grid-column: 1; grid-row: 5; margin-top: clamp(16px, 3vh, 40px); }

  /* The QR owns the right half — centred, column layout, bigger code */
  .attract__qr-shape {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: center;
    justify-self: center;
    flex-direction: column;
    text-align: center;
    margin: 0;
    padding: clamp(24px, 4vh, 48px) clamp(32px, 3vw, 64px);
  }

  .attract__qr-hook {
    max-width: 16ch;
    font-size: clamp(24px, 3.2vh, 36px);
  }

  .attract__qr-slot {
    width: clamp(220px, 38vh, 440px);
    height: clamp(220px, 38vh, 440px);
  }
}

/* A second, faint brand shape grounds the lower-right — the grid
   device works in groups (DESIGN.md: 1–3 shapes with a connection).
   isolation creates the stacking context so z-index:-1 sits above the
   gradient but below ALL content without touching child positioning
   (a position:relative catch-all here once yanked the logo out of its
   corner — absolute positioning must stay untouched). */
.attract {
  isolation: isolate;
}

.attract::after {
  content: '';
  position: absolute;
  right: -4vw;
  bottom: -6vh;
  width: 34vw;
  height: 30vh;
  background: rgba(255, 255, 255, 0.07);
  transform: skewX(var(--dwl-angle));
  pointer-events: none;
  z-index: -1;
}

@media (min-width: 1000px) and (orientation: landscape) {
  .attract__cta {
    justify-self: start; /* a button, not a banner */
  }
}

/* The email CTA never lost below the fold: a slim bar rides the
   viewport bottom from briefing start until the form is on screen
   (or the email is confirmed). It is a button — yellow/blue. */
.pulse-email-jump {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 80; /* under the kiosk idle overlays (90/100) */
  font-size: 1rem;
  padding: 12px 24px;
  min-height: 48px;
  box-shadow: var(--shadow-elevated);
  white-space: nowrap;
}

/* On scroll the hero quad must not "slip from the top" (Simon): on
   larger screens it pins to the viewport corner as a true background —
   flush to the top, constant during scroll. Content (max-width 700px,
   centred) never reaches under it. Phones keep the in-flow version. */
@media (min-width: 1000px) {
  .pulse-hero-shape {
    position: fixed;
    top: -40px;
    right: -50px;
    z-index: 5;
    pointer-events: none;
  }
}


/* ─── Descriptor-only results (decision: Simon, 12 June) ── */

/* The persona name IS the result — display scale, brand gradient text */
.pulse-persona-hero {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(44px, 9vw, 84px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  /* Centred composition: cap the measure and balance the wrap so a
     two-line name splits evenly — full-bleed ragged wrapping read as
     misalignment (Simon's check before adopting the variant). */
  max-width: 11ch;
  margin: 0 auto var(--space-sm);
  text-align: center;
  text-wrap: balance;
  background: var(--dwl-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--dwl-blue);
}

/* ─── Priority action cards (Simon, 13 June — the takeaway) ──────
   White cards in a column under "Your priority actions"; the horizon
   label in DWL blue, the action below it. The CQC card gets the
   gradient left-edge to mark it as the consequence note. */
.pulse-actions-section {
  padding: 0 0 var(--space-xl);
}

.pulse-actions-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--dwl-blue);
  max-width: 700px;
  margin: 0 auto var(--space-md);
}

.pulse-actions {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pulse-action-card {
  background: var(--dwl-white);
  border: 1px solid var(--dwl-grey-light);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
}

.pulse-action-card__when {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dwl-blue);
  margin-bottom: 4px;
}

.pulse-action-card__text {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--dwl-ink, #1A1A2E);
  margin: 0;
}

/* The CQC card — marked as the consequence note, not a to-do */
.pulse-action-card--cqc {
  border: none;
  border-left: 4px solid var(--dwl-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: #F4F5FB;
}
