/* ═══════════════════════════════════════ */
/* DIAGNOSTIC PAGE STYLES                  */
/* ═══════════════════════════════════════ */

/* ─── HERO ─── */
.diag-hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 300px 0 140px;
  overflow: hidden;
}

.diag-hero__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.diag-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 70%);
}

.diag-hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: diagBlobFloat 8s ease-in-out infinite;
}

.diag-hero__blob--1 {
  width: 400px; height: 400px;
  background: var(--blue);
  top: -10%; left: -5%;
  animation-delay: 0s;
}

.diag-hero__blob--2 {
  width: 350px; height: 350px;
  background: #1F8A99;
  bottom: -10%; right: -5%;
  animation-delay: -3s;
}

.diag-hero__blob--3 {
  width: 280px; height: 280px;
  background: var(--blue);
  top: 40%; left: 60%;
  opacity: 0.2;
  animation-delay: -5s;
}

@keyframes diagBlobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

.diag-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.diag-hero__inner h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.diag-hero__sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.diag-hero__price {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px 24px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}

.diag-hero__actions {
  margin-bottom: 16px;
}

.diag-hero__support {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

/* ─── COMPARE SECTION ─── */
.diag-compare {
  background: var(--white);
  padding: var(--section-py) 0;
}

.diag-compare__header {
  text-align: center;
  margin-bottom: 56px;
}

.diag-compare__header h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-top: 12px;
}

.diag-compare__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.diag-compare__card {
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.diag-compare__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.diag-compare__card--muted {
  opacity: 0.7;
}

.diag-compare__card--muted:hover {
  opacity: 0.85;
}

.diag-compare__card--active {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), 0 8px 32px rgba(37,99,235,0.1);
}

.diag-compare__card--active:hover {
  box-shadow: 0 0 0 1px var(--blue), 0 16px 48px rgba(37,99,235,0.15);
}

.diag-compare__badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.diag-compare__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  color: var(--text-secondary);
}

.diag-compare__card--active .diag-compare__icon {
  color: var(--blue);
}

.diag-compare__card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.diag-compare__card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ─── STEPS SECTION ─── */
.diag-steps {
  background: var(--off-white);
  padding: var(--section-py) 0;
}

.diag-steps__header {
  text-align: center;
  margin-bottom: 56px;
}

.diag-steps__header h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-top: 12px;
}

.diag-steps__timeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.diag-step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}

.diag-step__number {
  font-family: 'Sora', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.35;
}

.diag-step__content h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.diag-step__week {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blue);
  background: rgba(37,99,235,0.08);
  padding: 3px 10px;
  border-radius: 100px;
  margin-left: 8px;
  vertical-align: middle;
  white-space: nowrap;
}

.diag-step__content p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.diag-step__connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--blue), var(--border));
  margin-top: 32px;
  flex-shrink: 0;
  opacity: 0.4;
}

.diag-steps__note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 48px;
}

/* ─── DELIVERABLE SECTION (v2 — asymmetric editorial) ─── */
.diag-deliverable {
  background: var(--white);
  padding: var(--section-py) 0;
}

.diag-deliverable__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.diag-deliverable__header h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-top: 12px;
  margin-bottom: 16px;
}

.diag-deliverable__sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Layout grid: hero left (spans 3 rows), mini cards right */
.diag-deliverable__layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: auto auto auto;
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto 56px;
  align-items: stretch;
}

/* Numbered index shared */
.diag-deliverable__index {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-block;
}

/* HERO CARD (System Map) */
.diag-deliverable__hero {
  grid-column: 1;
  grid-row: 1 / span 3;
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diag-deliverable__hero:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(15, 28, 46, 0.08);
}

.diag-deliverable__hero-top {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
}

.diag-deliverable__hero-kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.diag-deliverable__hero-visual {
  background: var(--navy-deep);
  border-radius: var(--radius-sm);
  margin-bottom: 26px;
  overflow: hidden;
  position: relative;
}

.diag-deliverable__hero-visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.diag-deliverable__hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.diag-deliverable__hero-body h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.diag-deliverable__hero-body p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* "Use it for" microcopy */
.diag-deliverable__use {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.diag-deliverable__use-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* COMPACT CARDS */
.diag-deliverable__mini {
  grid-column: 2;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.diag-deliverable__mini:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.06);
}

.diag-deliverable__mini-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.diag-deliverable__mini-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
  display: block;
}

.diag-deliverable__mini h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.diag-deliverable__mini p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* SPEC STRIP */
.diag-deliverable__spec {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  padding: 26px 36px;
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.diag-deliverable__spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 20px;
}

.diag-deliverable__spec-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.diag-deliverable__spec-value {
  font-family: 'Sora', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.diag-deliverable__spec-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  display: block;
}

/* Responsive */
@media (max-width: 900px) {
  .diag-deliverable__layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .diag-deliverable__hero,
  .diag-deliverable__mini {
    grid-column: 1;
    grid-row: auto;
  }
  .diag-deliverable__spec {
    grid-template-columns: 1fr 1fr;
    gap: 20px 0;
    padding: 24px;
  }
  .diag-deliverable__spec-divider {
    display: none;
  }
  .diag-deliverable__spec-item {
    padding: 6px 16px;
  }
}

@media (max-width: 560px) {
  .diag-deliverable__spec {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }
  .diag-deliverable__hero,
  .diag-deliverable__mini {
    padding: 24px 20px;
  }
}

/* ─── OUTCOMES SECTION ─── */
.diag-outcomes {
  background: var(--navy-deep);
  color: var(--white);
  padding: var(--section-py) 0;
}

.diag-outcomes__header {
  text-align: center;
  margin-bottom: 56px;
}

.diag-outcomes__header .section-label {
  color: rgba(255,255,255,0.5);
}

.diag-outcomes__header h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-top: 12px;
}

.diag-outcomes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.diag-outcome__card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.diag-outcome__card:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-3px);
}

.diag-outcome__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 20px;
  color: var(--blue);
}

.diag-outcome__card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.diag-outcome__card p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin: 0;
}

/* ─── FIT SECTION ─── */
.diag-fit {
  background: var(--white);
  padding: var(--section-py) 0;
}

.diag-fit__header {
  text-align: center;
  margin-bottom: 56px;
}

.diag-fit__header h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-top: 12px;
}

.diag-scenarios {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.diag-scenario {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.diag-scenario:hover {
  border-color: var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.diag-scenario h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.3;
}

.diag-scenario p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.diag-fit__closing {
  text-align: center;
  margin-top: 48px;
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ─── FAQ SECTION ─── */
.diag-faq {
  background: var(--off-white);
  padding: var(--section-py) 0;
}

.diag-faq__header {
  text-align: center;
  margin-bottom: 48px;
}

.diag-faq__header h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-top: 12px;
}

.diag-faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diag-faq__item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.diag-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.diag-faq__question:hover {
  background: var(--off-white);
}

.diag-faq__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.diag-faq__question[aria-expanded="true"] .diag-faq__icon {
  transform: rotate(180deg);
}

.diag-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.diag-faq__answer.is-open {
  max-height: 300px;
  padding: 0 24px 20px;
}

.diag-faq__answer p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ─── CTA SECTION ─── */
.diag-cta {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: var(--section-py) 0;
  text-align: center;
}

.diag-cta__inner {
  max-width: 600px;
  margin: 0 auto;
}

.diag-cta__inner h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.diag-cta__inner > p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 32px;
}

.diag-cta__inner .btn--large {
  padding: 16px 36px;
  font-size: 1rem;
}

.diag-cta__secondary {
  display: block;
  margin-top: 24px;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.15s ease;
}

.diag-cta__secondary:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ─── DIAGNOSTIC RESPONSIVE ─── */
@media (max-width: 900px) {
  .diag-compare__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .diag-steps__timeline {
    flex-direction: column;
    gap: 32px;
  }

  .diag-step__connector {
    display: none;
  }

  .diag-step {
    text-align: left;
    display: flex;
    gap: 20px;
    padding: 0;
  }

  .diag-step__number {
    margin-bottom: 0;
    font-size: 2rem;
  }

  /* deliverable layout responsive — handled in main block */

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

  .diag-scenarios {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}

@media (max-width: 600px) {
  .diag-hero {
    padding: 130px 0 80px;
  }

  .diag-hero__price {
    font-size: 0.9rem;
    padding: 8px 18px;
  }

  .diag-compare__card,
  .diag-scenario {
    padding: 28px 20px;
  }

  .diag-outcomes__grid {
    grid-template-columns: 1fr;
  }

  .diag-step {
    flex-direction: column;
    gap: 12px;
  }

  .diag-step__number {
    margin-bottom: 4px;
  }

  .diag-faq__question {
    padding: 16px 20px;
    font-size: 0.9375rem;
  }

  .diag-faq__answer.is-open {
    padding: 0 20px 16px;
  }
}
