/* ============================================
   DIGITAL BUSINESS HEALTH CHECK
============================================ */

.hc-page-hero {
  background-color: var(--color-surface-dark);
  padding-top: calc(var(--nav-height) + var(--space-12));
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--color-border-dark);
}

.hc-page-hero-inner {
  max-width: 640px;
}

.hc-page-hero-inner h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-text-on-dark);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}

.hc-page-hero-inner p {
  color: var(--color-text-on-dark-muted);
}

.hc-page-title {
  visibility: hidden;
}


/* ── Quiz wrapper ────────────────────────────────────────────── */

.hc-section {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - var(--nav-height));
  padding-block: var(--space-16);
  background: transparent;
}

.hc-wrapper {
  max-width: 640px;
  margin-inline: auto;
}

/* ============================================
   HEALTH CHECK PAGE — VIDEO BACKGROUND
   ============================================ */

.hc-page {
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
  background: #07131c;
}

/* Full-page video layer, limited to <main> */
.hc-bg-video {
  position: absolute;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  height: calc(100% - var(--nav-height));
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
}

/* Dark colour grade over the video */
.hc-bg-overlay {
  position: absolute;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  height: calc(100% - var(--nav-height));
  z-index: 1;
  pointer-events: none;

  background:
    linear-gradient(
      180deg,
      rgba(7, 19, 28, 0.72) 0%,
      rgba(7, 19, 28, 0.82) 45%,
      rgba(7, 19, 28, 0.94) 100%
    );
}

/* Keep all Health Check UI above the video */
.hc-section {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - var(--nav-height));
  background: transparent;
}

/* ── Intro screen ────────────────────────────────────────────── */

.hc-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.hc-intro-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background-color: rgba(233, 224, 201, 0.08);
  border: 1px solid rgba(233, 224, 201, 0.15);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent);
  letter-spacing: var(--tracking-wide);
  width: fit-content;
}

.hc-intro-badge svg {
  color: var(--color-accent);
}

.hc-intro-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: var(--weight-bold);
  color: var(--color-text-on-dark);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.hc-intro-accent {
  color: var(--color-accent);
  font-style: italic;
}

.hc-intro-body {
  font-size: var(--text-lg);
  color: var(--color-text-on-dark-muted);
  line-height: var(--leading-relaxed);
  max-width: 520px;
}

.hc-intro-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.hc-intro-cat {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-lg);
}

.hc-intro-cat-icon {
  color: var(--color-accent-on-light);
  display: flex;
  flex-shrink: 0;
}

.hc-intro-cat-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-on-dark);
}

.hc-start-btn {
  align-self: flex-start;
  margin-top: var(--space-2);
}

.hc-intro-note {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-on-dark-muted);
  letter-spacing: var(--tracking-wide);
}

/* ── Progress bar ────────────────────────────────────────────── */

.hc-progress-bar {
  height: 3px;
  background-color: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  overflow: hidden;
}

.hc-progress-fill {
  height: 100%;
  background-color: var(--color-accent);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.hc-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}

.hc-progress-cat {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent-on-light);
  letter-spacing: var(--tracking-wide);
}

.hc-progress-cat svg {
  color: var(--color-accent-on-light);
}

.hc-progress-count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-on-dark-muted);
  letter-spacing: var(--tracking-wide);
}

/* ── Questions ───────────────────────────────────────────────── */

.hc-question-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.hc-question {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  font-weight: var(--weight-semibold);
  color: var(--color-text-on-dark);
  line-height: var(--leading-snug);
}

.hc-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hc-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background-color: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--color-border-dark);
  border-radius: var(--radius-lg);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition-fast),
              background-color var(--transition-fast),
              transform var(--transition-fast);
  width: 100%;
}

.hc-option:hover {
  border-color: var(--color-accent);
  background-color: rgba(233, 224, 201, 0.05);
  transform: translateX(3px);
}

.hc-option.selected {
  border-color: var(--color-accent);
  background-color: rgba(233, 224, 201, 0.08);
}

.hc-option-marker {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-text-on-dark-muted);
  flex-shrink: 0;
  margin-top: 2px;
  transition: background-color var(--transition-fast),
              color var(--transition-fast);
}

.hc-option:hover .hc-option-marker,
.hc-option.selected .hc-option-marker {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

.hc-option-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}

.hc-option-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-on-dark);
  line-height: var(--leading-snug);
}

.hc-option-sub {
  font-size: var(--text-xs);
  color: var(--color-text-on-dark-muted);
  line-height: var(--leading-relaxed);
}

.hc-back {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-on-dark-muted);
  transition: color var(--transition-fast);
  align-self: flex-start;
}

.hc-back:hover {
  color: var(--color-accent-on-light);
}

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

.hc-results {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

/* Score dial row */
.hc-results-score-row {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8);
  background-color: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-xl);
}

.hc-score-dial {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hc-score-svg {
  position: absolute;
  width: 100%;
  height: 100%;
}

.hc-score-arc {
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hc-score-value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-on-dark);
  line-height: 1;
  position: relative;
  z-index: 1;
}

.hc-score-denom {
  position: absolute;
  bottom: 18px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--color-text-on-dark-muted);
  z-index: 1;
}

.hc-score-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.hc-score-label {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: 1;
}

.hc-score-desc {
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-muted);
  line-height: var(--leading-relaxed);
  max-width: 320px;
}

/* Category bars */
.hc-cat-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.hc-cat-bar-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-6);
  background-color: rgba(255,255,255,0.02);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast);
}

.hc-cat-bar-row--weak {
  border-color: rgba(233, 224, 201, 0.25);
  background-color: rgba(233, 224, 201, 0.04);
}

.hc-cat-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hc-cat-bar-name {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-on-dark);
}

.hc-cat-bar-name svg {
  color: var(--color-accent-on-light);
}

.hc-weak-badge {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  background-color: rgba(233, 224, 201, 0.1);
  border: 1px solid rgba(233, 224, 201, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: var(--space-2);
}

.hc-cat-bar-score {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-on-dark-muted);
  letter-spacing: var(--tracking-wide);
}

.hc-cat-bar-track {
  height: 6px;
  background-color: rgba(255,255,255,0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.hc-cat-bar-fill {
  height: 100%;
  background-color: var(--color-accent-on-light);
  border-radius: var(--radius-full);
  width: 0;
}

.hc-cat-bar-row--weak .hc-cat-bar-fill {
  background-color: var(--color-accent);
}

.hc-cat-bar-label {
  font-size: var(--text-xs);
  color: var(--color-text-on-dark-muted);
}

/* Recommendation */
.hc-recommendation {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-8);
  background-color: var(--color-surface-mid);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-xl);
}

.hc-rec-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.hc-rec-headline {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-on-dark);
  line-height: var(--leading-snug);
}

.hc-rec-body {
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-muted);
  line-height: var(--leading-relaxed);
}

.hc-rec-service {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-5);
  background-color: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
}

.hc-rec-service-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-on-dark-muted);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.hc-rec-service-name {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-text-on-dark);
}

.hc-rec-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hc-rec-actions .btn {
  width: 100%;
  justify-content: center;
}

.hc-restart {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-on-dark-muted);
  align-self: flex-start;
  transition: color var(--transition-fast);
}

.hc-restart:hover {
  color: var(--color-accent-on-light);
}

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

@media (max-width: 600px) {
  .hc-intro-cats {
    grid-template-columns: 1fr;
  }

  .hc-results-score-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
  }

  .hc-score-dial {
    width: 80px;
    height: 80px;
  }

  .hc-score-value {
    font-size: var(--text-2xl);
  }
}

/* ============================================
   HEALTH CHECK — MOBILE SPACING FIX
   ============================================ */

.hc-section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-16);
}

.hc-wrapper {
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
}

.hc-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-block: var(--space-8);
}

.hc-intro-headline {
  margin: 0;
  line-height: 1.05;
}

.hc-intro-body {
  margin: 0;
  line-height: 1.7;
  max-width: 560px;
}

.hc-start-btn {
  align-self: flex-start;
  margin-top: var(--space-2);
}

.hc-intro-note {
  margin: 0;
}

@media (max-width: 768px) {
  .hc-section {
    padding-top: var(--space-8);
    padding-inline: 0;
  }


  .hc-intro {
    padding-block: var(--space-6);
    gap: var(--space-4);
  }

  .hc-intro-headline {
    font-size: clamp(2.35rem, 9vw, 3rem);
    line-height: 1.05;
  }

  .hc-intro-body {
    line-height: 1.75;
  }

  .hc-start-btn {
    width: 100%;
  }
}


.hc-recommendation {
  border-left: none !important;
  border-inline-start: none !important;
}

/* ============================================
   MOBILE CATEGORY HEADER
   ============================================ */

.hc-cat-bar-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: var(--space-3);
}

.hc-cat-bar-name {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hc-cat-bar-name > span:first-of-type {
  min-width: 0;
}

.hc-weak-badge {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  background-color: rgba(233, 224, 201, 0.1);
  border: 1px solid rgba(233, 224, 201, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 600px) {

  .hc-cat-bar-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: var(--space-3);
  }

  .hc-cat-bar-name {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    column-gap: var(--space-2);
    row-gap: 6px;
    min-width: 0;
  }

  .hc-cat-bar-name svg {
    grid-column: 1;
    grid-row: 1;
  }

  .hc-cat-bar-name > span:first-of-type {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .hc-cat-bar-name .hc-weak-badge {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    margin: 0;
  }

  .hc-cat-bar-score {
    white-space: nowrap;
    align-self: start;
  }
}

@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  .hc-bg-video { display: none; }
  .hc-page { background-image: url('../images/health-check-bg.jpg');
             background-size: cover; background-position: center; }
}