/* BAYANNET — Diagnostic Data : design dédié */

:root {
  --navy: #00154F;
  --navy-dark: #000c2e;
  --blue: #009dff;
  --blue-dark: #0070cc;
  --gold: #e6a700;
  --gold-light: #ffc83e;
  --success: #10b981;
  --warn: #f59e0b;
  --error: #ef4444;
  --ink: #0f172a;
  --ink-dim: #475569;
  --ink-mute: #94a3b8;
  --ground: #f8fafc;
  --panel: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --rx: 12px;
  --rx-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 21, 79, .05);
  --shadow-md: 0 8px 24px rgba(0, 21, 79, .08);
  --shadow-lg: 0 20px 50px rgba(0, 21, 79, .12);
}

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

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(0, 157, 255, .04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(230, 167, 0, .03) 0%, transparent 50%),
    var(--ground);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ─── HEADER ─── */
.diag-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.diag-logo img { height: 32px; }
.diag-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all .2s;
}
.diag-back:hover {
  background: var(--ground);
  color: var(--navy);
}

/* ─── MAIN ─── */
.diag-main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.diag-screen { animation: fadeIn .4s cubic-bezier(.4, 0, .2, 1); }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── INTRO ─── */
.diag-intro { text-align: center; padding: 20px 0; }
.diag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, .12);
  color: var(--success);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 24px;
}
.diag-intro h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.diag-highlight {
  background: linear-gradient(100deg, var(--blue) 0%, var(--gold-light) 50%, var(--blue) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradientShift 5s ease-in-out infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.diag-sub {
  font-size: 16px;
  color: var(--ink-dim);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.diag-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.diag-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--rx);
  text-align: center;
  transition: all .25s;
}
.diag-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}
.diag-feature svg {
  color: var(--blue);
  background: rgba(0, 157, 255, .1);
  padding: 10px;
  border-radius: 10px;
  width: 44px; height: 44px;
}
.diag-feature strong {
  display: block;
  font-size: 14px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 2px;
}
.diag-feature span {
  font-size: 12px;
  color: var(--ink-dim);
  line-height: 1.4;
}

.diag-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 157, 255, .35);
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
}
.diag-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 157, 255, .5);
}

.diag-trust {
  margin-top: 24px;
  font-size: 12px;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ─── WIZARD ─── */
.diag-progress {
  margin-bottom: 32px;
}
.diag-progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
}
.diag-progress-current {
  color: var(--ink-dim);
  font-weight: 500;
}
.diag-progress-current span {
  color: var(--navy);
  font-weight: 700;
}
.diag-progress-percent {
  color: var(--blue);
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}
.diag-progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.diag-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transition: width .4s cubic-bezier(.4, 0, .2, 1);
  width: 12%;
}

.diag-question {
  background: var(--panel);
  padding: 36px 32px;
  border-radius: var(--rx);
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}
.diag-q-icon {
  font-size: 40px;
  margin-bottom: 16px;
}
.diag-question h2 {
  font-size: clamp(20px, 3vw, 24px);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.diag-q-hint {
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 20px;
  font-style: italic;
}

.diag-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.diag-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--ground);
  border: 2px solid var(--border);
  border-radius: var(--rx-sm);
  cursor: pointer;
  transition: all .2s;
}
.diag-option:hover {
  border-color: var(--blue);
  background: rgba(0, 157, 255, .04);
}
.diag-option.selected {
  border-color: var(--blue);
  background: rgba(0, 157, 255, .07);
  box-shadow: 0 4px 14px rgba(0, 157, 255, .15);
}
.diag-option input { display: none; }
.diag-option-check {
  width: 20px; height: 20px;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: all .2s;
}
.diag-option.selected .diag-option-check {
  border-color: var(--blue);
  background: var(--blue);
}
.diag-option.selected .diag-option-check::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
}
.diag-option-text {
  flex: 1;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}

.diag-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.diag-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
}
.diag-btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 157, 255, .3);
}
.diag-btn-primary:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 157, 255, .45);
}
.diag-btn-primary:disabled {
  opacity: .4;
  cursor: not-allowed;
  box-shadow: none;
}
.diag-btn-ghost {
  background: var(--panel);
  color: var(--ink-dim);
  border: 1px solid var(--border);
}
.diag-btn-ghost:not(:disabled):hover {
  background: var(--ground);
  color: var(--navy);
  border-color: var(--border-strong);
}
.diag-btn-ghost:disabled { opacity: .3; cursor: not-allowed; }

/* ─── RÉSULTAT ─── */
.diag-result-head {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 32px 28px;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff;
  border-radius: var(--rx);
  box-shadow: var(--shadow-lg);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.diag-result-head::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0, 157, 255, .2) 0%, transparent 70%);
  pointer-events: none;
}
.diag-score-circle {
  width: 120px; height: 120px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.diag-score-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.diag-score-circle circle {
  fill: none;
  stroke-width: 10;
}
.score-track { stroke: rgba(255, 255, 255, .1); }
.score-fill {
  stroke: url(#scoreGrad);
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(.4, 0, .2, 1);
}
/* jsPDF n'a pas besoin de ce gradient SVG, mais pour l'écran : */
.diag-score-circle::after {
  content: '';
  position: absolute;
  inset: 0;
  background: conic-gradient(from -90deg, var(--blue), var(--gold-light));
  mask: radial-gradient(circle, transparent 42px, #000 44px, #000 54px, transparent 56px);
  -webkit-mask: radial-gradient(circle, transparent 42px, #000 44px, #000 54px, transparent 56px);
  pointer-events: none;
  opacity: 0;
}
.diag-score-value {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.diag-score-value strong {
  display: block;
  font-size: 36px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
  color: #fff;
}
.diag-score-value span {
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
  font-weight: 500;
}
.diag-result-head-text {
  flex: 1;
  position: relative;
  z-index: 2;
}
.diag-level {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, .15);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.level-beginner { background: rgba(243, 156, 18, .3); }
.level-intermediate { background: rgba(230, 167, 0, .3); }
.level-advanced { background: rgba(16, 185, 129, .3); }
.diag-result-head-text h2 {
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: 700;
}
.diag-result-head-text p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .85);
  line-height: 1.55;
}

/* Points faibles */
.diag-weak-points, .diag-recommendations {
  background: var(--panel);
  padding: 28px;
  border-radius: var(--rx);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.diag-weak-points h3, .diag-recommendations h3 {
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 18px;
  letter-spacing: -.01em;
}
.diag-weak-card {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(245, 158, 11, .07);
  border: 1px solid rgba(245, 158, 11, .2);
  border-radius: var(--rx-sm);
  margin-bottom: 10px;
}
.diag-weak-icon {
  font-size: 22px;
  color: var(--warn);
  flex-shrink: 0;
}
.diag-weak-body h4 {
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 4px;
}
.diag-weak-body p {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.55;
}
.diag-weak-none {
  color: var(--success);
  font-size: 14px;
  padding: 10px 0;
}

.diag-reco-list {
  list-style: none;
  padding: 0;
}
.diag-reco-list li {
  padding: 10px 0 10px 32px;
  position: relative;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.diag-reco-list li:last-child { border-bottom: none; }
.diag-reco-list li::before {
  content: '→';
  position: absolute;
  left: 8px;
  color: var(--blue);
  font-weight: 700;
}

/* Capture email */
.diag-capture {
  background: linear-gradient(135deg, rgba(0, 157, 255, .06), rgba(230, 167, 0, .04));
  border: 1px solid rgba(0, 157, 255, .18);
  padding: 28px;
  border-radius: var(--rx);
  margin-bottom: 24px;
}
.diag-capture-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.diag-capture-head svg {
  color: var(--blue);
  background: rgba(0, 157, 255, .12);
  padding: 10px;
  border-radius: 10px;
  flex-shrink: 0;
}
.diag-capture-head h3 {
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 4px;
}
.diag-capture-head p {
  font-size: 13.5px;
  color: var(--ink-dim);
  line-height: 1.5;
}

.diag-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.diag-capture input[type="email"],
.diag-capture input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--rx-sm);
  color: var(--ink);
  transition: all .2s;
}
.diag-capture input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 157, 255, .15);
}

.diag-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--rx-sm);
  cursor: pointer;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: var(--ink-dim);
  line-height: 1.5;
}
.diag-consent input {
  margin-top: 2px;
  width: 16px; height: 16px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--blue);
}
.diag-consent a {
  color: var(--blue);
  text-decoration: underline;
}

.diag-capture-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.diag-capture-actions-single { justify-content: stretch; }
.diag-capture-actions-single .diag-btn-primary {
  flex: 1;
  justify-content: center;
  padding: 14px 20px;
  font-size: 15px;
}

/* Hint sous le bouton download */
.diag-download-hint {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(0, 157, 255, .06);
  border-left: 3px solid var(--blue);
  font-size: 12.5px;
  color: var(--ink-dim);
  line-height: 1.5;
  border-radius: 4px;
}
.diag-download-hint strong {
  color: var(--navy);
  font-family: 'JetBrains Mono', monospace;
  background: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--border);
}

/* Section newsletter séparée (plus discrète que la capture email initiale) */
.diag-newsletter {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 22px 24px;
  border-radius: var(--rx);
  margin-bottom: 24px;
}
.diag-newsletter-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.diag-newsletter-head svg {
  color: var(--gold);
  background: var(--gold-pale, rgba(230,167,0,.1));
  padding: 8px;
  border-radius: 8px;
  flex-shrink: 0;
}
.diag-newsletter-head h4 {
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 3px;
}
.diag-newsletter-head p {
  font-size: 12.5px;
  color: var(--ink-dim);
  line-height: 1.5;
}
.diag-newsletter .diag-field-row {
  margin-bottom: 10px;
}
.diag-newsletter input[type="email"],
.diag-newsletter input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  background: var(--ground);
  border: 1px solid var(--border);
  border-radius: var(--rx-sm);
  color: var(--ink);
}
.diag-newsletter input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(230, 167, 0, .12);
}

.diag-capture-result { margin-top: 12px; }
.diag-success {
  padding: 12px 14px;
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .3);
  border-radius: var(--rx-sm);
  color: var(--success);
  font-size: 13.5px;
  font-weight: 500;
}
.diag-error {
  padding: 12px 14px;
  background: rgba(239, 68, 68, .08);
  border: 1px solid rgba(239, 68, 68, .25);
  border-radius: var(--rx-sm);
  color: var(--error);
  font-size: 13.5px;
}

.diag-restart {
  text-align: center;
  padding: 20px 0;
}
.diag-restart-link {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 13.5px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all .2s;
}
.diag-restart-link:hover { color: var(--navy); background: var(--ground); }
.diag-separator { color: var(--ink-mute); margin: 0 6px; }

/* ─── FOOTER ─── */
.diag-footer {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: var(--ink-mute);
  background: var(--panel);
  border-top: 1px solid var(--border);
}
.diag-footer a {
  color: var(--ink-dim);
  text-decoration: none;
}
.diag-footer a:hover { color: var(--navy); }

/* ═══════════════════ SECTIONS ENRICHIES (v2) ═══════════════════ */

.diag-section {
  background: var(--panel);
  padding: 28px;
  border-radius: var(--rx);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.diag-section h3 {
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -.01em;
}
.diag-section-sub {
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ─── Dimensions (barres) ─── */
.diag-dims { display: flex; flex-direction: column; gap: 16px; }
.diag-dim-row {}
.diag-dim-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13.5px;
}
.diag-dim-icon { font-size: 18px; }
.diag-dim-label {
  flex: 1;
  color: var(--ink);
  font-weight: 600;
}
.diag-dim-score {
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  font-size: 17px;
}
.diag-dim-score small {
  font-size: 11px;
  color: var(--ink-mute);
  font-weight: 500;
}
.diag-dim-bar {
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  overflow: hidden;
}
.diag-dim-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 1s cubic-bezier(.4, 0, .2, 1);
  width: 0;
  animation: dimFillGrow 1.4s cubic-bezier(.4, 0, .2, 1) forwards;
}
@keyframes dimFillGrow { from { width: 0; } }

/* ─── Benchmarks ─── */
.diag-bench-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 10px;
}
.diag-bench-card {
  padding: 16px;
  background: var(--ground);
  border: 1px solid var(--border);
  border-radius: var(--rx-sm);
}
.diag-bench-head {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.diag-bench-value {
  font-size: 13px;
  color: var(--ink-dim);
  margin-bottom: 8px;
  line-height: 1.5;
}
.diag-bench-value strong { color: var(--navy); font-family: 'JetBrains Mono', monospace; }
.diag-bench-diff {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
}
.bench-good { background: rgba(16, 185, 129, .12); color: var(--success); }
.bench-neutral { background: rgba(0, 157, 255, .1); color: var(--blue-dark); }
.bench-below { background: rgba(239, 68, 68, .1); color: var(--error); }
.diag-bench-note {
  font-size: 12px;
  color: var(--ink-mute);
  font-style: italic;
  margin-top: 12px;
  line-height: 1.5;
}

/* ─── Patterns ─── */
.diag-patterns { display: flex; flex-direction: column; gap: 12px; }
.diag-pattern {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: var(--rx-sm);
  border-left: 4px solid;
}
.diag-pattern-critical { background: rgba(239, 68, 68, .07); border-left-color: var(--error); }
.diag-pattern-warning  { background: rgba(245, 158, 11, .07); border-left-color: var(--warn); }
.diag-pattern-positive { background: rgba(16, 185, 129, .08); border-left-color: var(--success); }
.diag-pattern-info     { background: rgba(0, 157, 255, .07); border-left-color: var(--blue); }
.diag-pattern-icon { font-size: 22px; flex-shrink: 0; line-height: 1; }
.diag-pattern-body h4 {
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 6px;
  font-weight: 700;
}
.diag-pattern-body p {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.55;
}
.diag-pattern-body p strong { color: var(--navy); font-weight: 700; }

/* ─── Weak priority variants ─── */
.diag-weak-high {
  background: rgba(239, 68, 68, .07);
  border-color: rgba(239, 68, 68, .25);
}
.diag-weak-high .diag-weak-icon { color: var(--error); }
.diag-weak-medium {
  background: rgba(245, 158, 11, .07);
  border-color: rgba(245, 158, 11, .2);
}
.diag-weak-low {
  background: rgba(0, 157, 255, .07);
  border-color: rgba(0, 157, 255, .2);
}
.diag-weak-low .diag-weak-icon { color: var(--blue); }

/* ─── Plan 3 phases ─── */
.diag-phases { display: flex; flex-direction: column; gap: 16px; }
.diag-phase {
  padding: 20px;
  border-radius: var(--rx-sm);
  border: 1px solid var(--border);
  background: var(--panel);
  position: relative;
}
.diag-phase-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.diag-phase-num {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}
.diag-phase-head h4 {
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 2px;
}
.diag-phase-when {
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 500;
}
.diag-phase ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.diag-phase li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
}
.diag-phase li::before {
  content: '▸';
  position: absolute;
  left: 4px;
  color: var(--blue);
  font-weight: 700;
}
.diag-phase-2 .diag-phase-num { background: linear-gradient(135deg, var(--gold), #c48700); }
.diag-phase-3 .diag-phase-num { background: linear-gradient(135deg, var(--success), #047857); }

/* ─── ROI cards ─── */
.diag-rois { display: flex; flex-direction: column; gap: 12px; }
.diag-roi-card {
  padding: 16px;
  background: linear-gradient(135deg, rgba(230, 167, 0, .06), rgba(0, 157, 255, .04));
  border: 1px solid rgba(230, 167, 0, .18);
  border-radius: var(--rx-sm);
}
.diag-roi-head {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.diag-roi-detail {
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.5;
}
.diag-roi-invest {
  font-size: 12.5px;
  color: var(--ink-dim);
  margin-bottom: 4px;
  line-height: 1.5;
}
.diag-roi-payback {
  font-size: 12.5px;
  color: var(--success);
  font-weight: 600;
  padding-top: 6px;
  border-top: 1px dashed rgba(230, 167, 0, .3);
  margin-top: 6px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .diag-main { padding: 24px 16px 40px; }
  .diag-header { padding: 14px 20px; }
  .diag-features { grid-template-columns: 1fr; gap: 10px; }
  .diag-feature { flex-direction: row; text-align: left; }
  .diag-feature svg { width: 36px; height: 36px; padding: 7px; }
  .diag-question { padding: 24px 20px; }
  .diag-result-head { flex-direction: column; text-align: center; padding: 24px 20px; }
  .diag-field-row { grid-template-columns: 1fr; }
  .diag-capture-actions { flex-direction: column-reverse; }
  .diag-capture-actions .diag-btn { width: 100%; justify-content: center; }
  .diag-section { padding: 20px 18px; }
  .diag-bench-grid { grid-template-columns: 1fr; }
  .diag-pattern { padding: 14px; gap: 10px; }
  .diag-pattern-icon { font-size: 18px; }
  .diag-phase { padding: 16px; }
  .diag-phase-num { width: 30px; height: 30px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.1s !important;
  }
}
