/* ============================================================
   markethub.css — MarketHub by BizFirstAi
   MarketHub-specific styles, supplements b-index.css
   ============================================================ */

/* ── Sub-section headings (used inside two-col layout cards) ─ */
.mh-subsection-title {
  font-size: var(--b-font-size-xl);
  font-weight: var(--b-font-weight-semibold);
  color: var(--b-text-primary);
  margin-bottom: var(--b-space-4);
}

.mh-subsection-desc {
  color: var(--b-text-muted);
  font-size: var(--b-font-size-sm);
  margin-bottom: var(--b-space-5);
}

/* ── Logo Wordmark ────────────────────────────────────────── */
.mh-navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--b-space-3);
  text-decoration: none;
}

.mh-logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.mh-logo-name {
  font-size: var(--b-font-size-md);
  font-weight: var(--b-font-weight-bold);
  color: var(--b-text-primary);
  letter-spacing: -0.01em;
}

.mh-logo-byline {
  font-size: var(--b-font-size-xs);
  color: var(--b-text-muted);
  font-weight: var(--b-font-weight-normal);
}

/* ── Hero ──────────────────────────────────────────────────── */
.mh-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: #080F08;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.mh-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(22, 163, 74, 0.18) 0%, rgba(22, 163, 74, 0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.mh-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, #080F08);
  pointer-events: none;
  z-index: 0;
}

.mh-hero .b-container {
  position: relative;
  z-index: 1;
}

.mh-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--b-space-2);
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.30);
  border-radius: var(--b-radius-full);
  padding: var(--b-space-1) var(--b-space-4);
  font-size: var(--b-font-size-xs);
  font-weight: var(--b-font-weight-medium);
  color: var(--b-color-primary-light);
  letter-spacing: var(--b-letter-spacing-wide);
  text-transform: uppercase;
  margin-bottom: var(--b-space-8);
}

.mh-hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--b-color-primary-light);
  flex-shrink: 0;
}

.mh-hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: var(--b-font-weight-black);
  line-height: var(--b-line-height-tight);
  letter-spacing: var(--b-letter-spacing-tight);
  color: var(--b-text-primary);
  margin-bottom: var(--b-space-6);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.mh-hero-headline .mh-accent {
  background: linear-gradient(135deg, var(--b-color-primary), var(--b-color-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mh-hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--b-text-muted);
  line-height: var(--b-line-height-relaxed);
  max-width: 640px;
  margin: 0 auto var(--b-space-12) auto;
}

.mh-hero-ctas {
  display: flex;
  gap: var(--b-space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Stats Bar ─────────────────────────────────────────────── */
.mh-stats-bar {
  background: var(--b-bg-raised);
  border-top: 1px solid var(--b-border-subtle);
  border-bottom: 1px solid var(--b-border-subtle);
  padding: var(--b-space-8) 0;
}

.mh-stats-bar .b-container {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.mh-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--b-space-4) var(--b-space-12);
  border-right: 1px solid var(--b-border-subtle);
}

.mh-stat:last-child {
  border-right: none;
}

.mh-stat-number {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--b-font-weight-black);
  color: var(--b-color-primary-light);
  line-height: 1;
  margin-bottom: var(--b-space-1);
  letter-spacing: -0.02em;
}

.mh-stat-label {
  font-size: var(--b-font-size-sm);
  color: var(--b-text-muted);
  font-weight: var(--b-font-weight-medium);
  white-space: nowrap;
}

/* ── Apps Grid ─────────────────────────────────────────────── */
.mh-apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--b-space-6);
  margin-top: var(--b-space-12);
}

.mh-app-card {
  background: var(--b-card-bg);
  border: 1px solid var(--b-card-border);
  border-radius: var(--b-radius-xl);
  padding: var(--b-space-8);
  position: relative;
  overflow: hidden;
  transition: transform var(--b-transition-normal), box-shadow var(--b-transition-normal), border-color var(--b-transition-normal);
}

.mh-app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--b-color-primary), var(--b-color-primary-light));
}

.mh-app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--b-card-shadow-hover);
  border-color: var(--b-border-primary);
}

.mh-app-card--admin::before { background: linear-gradient(90deg, #16A34A, #22C55E); }
.mh-app-card--publisher::before { background: linear-gradient(90deg, #0EA5E9, #38BDF8); }
.mh-app-card--public::before { background: linear-gradient(90deg, #8B5CF6, #A78BFA); }

.mh-app-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--b-radius-lg);
  background: var(--b-color-primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--b-space-5);
}

.mh-app-icon--publisher {
  background: rgba(14, 165, 233, 0.12);
}

.mh-app-icon--public {
  background: rgba(139, 92, 246, 0.12);
}

.mh-app-card h3 {
  font-size: var(--b-font-size-lg);
  font-weight: var(--b-font-weight-bold);
  color: var(--b-text-primary);
  margin-bottom: var(--b-space-2);
}

.mh-app-card .mh-app-role {
  font-size: var(--b-font-size-sm);
  color: var(--b-color-primary-light);
  font-weight: var(--b-font-weight-medium);
  margin-bottom: var(--b-space-4);
}

.mh-app-card p {
  font-size: var(--b-font-size-sm);
  color: var(--b-text-muted);
  line-height: var(--b-line-height-relaxed);
  margin-bottom: var(--b-space-5);
}

.mh-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--b-space-2);
}

.mh-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--b-space-2);
  font-size: var(--b-font-size-sm);
  color: var(--b-text-secondary);
  line-height: var(--b-line-height-normal);
}

.mh-feature-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--b-color-primary);
}

/* ── Modules Grid ──────────────────────────────────────────── */
.mh-modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--b-space-5);
  margin-top: var(--b-space-12);
}

.mh-module-card {
  background: var(--b-card-bg);
  border: 1px solid var(--b-card-border);
  border-radius: var(--b-radius-xl);
  padding: var(--b-space-6);
  transition: transform var(--b-transition-normal), box-shadow var(--b-transition-normal), border-color var(--b-transition-normal);
}

.mh-module-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--b-card-shadow-hover);
  border-color: var(--b-border-strong);
}

.mh-module-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--b-radius-md);
  background: var(--b-color-primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--b-space-4);
}

.mh-module-card h3 {
  font-size: var(--b-font-size-base);
  font-weight: var(--b-font-weight-semibold);
  color: var(--b-text-primary);
  margin-bottom: var(--b-space-2);
}

.mh-module-card p {
  font-size: var(--b-font-size-sm);
  color: var(--b-text-muted);
  line-height: var(--b-line-height-relaxed);
}

/* ── Problem Cards ─────────────────────────────────────────── */
.mh-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--b-space-6);
  margin-top: var(--b-space-12);
}

.mh-problem-card {
  background: var(--b-bg-surface);
  border: 1px solid var(--b-border-subtle);
  border-radius: var(--b-radius-xl);
  padding: var(--b-space-8);
}

.mh-problem-card .mh-problem-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--b-radius-md);
  background: rgba(239, 68, 68, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--b-space-5);
}

.mh-problem-card h3 {
  font-size: var(--b-font-size-md);
  font-weight: var(--b-font-weight-semibold);
  color: var(--b-text-primary);
  margin-bottom: var(--b-space-3);
}

.mh-problem-card p {
  font-size: var(--b-font-size-sm);
  color: var(--b-text-muted);
  line-height: var(--b-line-height-relaxed);
}

/* ── White-Label Section ───────────────────────────────────── */
.mh-whitelabel-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--b-space-16);
  align-items: center;
  margin-top: var(--b-space-12);
}

.mh-whitelabel-list {
  list-style: none;
  padding: 0;
  margin: var(--b-space-6) 0 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--b-space-3);
}

.mh-whitelabel-list li {
  display: flex;
  align-items: center;
  gap: var(--b-space-3);
  font-size: var(--b-font-size-base);
  color: var(--b-text-secondary);
}

.mh-whitelabel-list li svg {
  flex-shrink: 0;
  color: var(--b-color-primary);
}

.mh-customisation-visual {
  background: var(--b-card-bg);
  border: 1px solid var(--b-border-default);
  border-radius: var(--b-radius-xl);
  padding: var(--b-space-8);
}

.mh-cv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--b-space-6);
  padding-bottom: var(--b-space-4);
  border-bottom: 1px solid var(--b-border-subtle);
}

.mh-cv-title {
  font-size: var(--b-font-size-sm);
  font-weight: var(--b-font-weight-semibold);
  color: var(--b-text-primary);
}

.mh-cv-badge {
  font-size: var(--b-font-size-xs);
  color: var(--b-color-primary-light);
  background: var(--b-color-primary-subtle);
  border: 1px solid var(--b-border-primary);
  border-radius: var(--b-radius-full);
  padding: 2px 10px;
}

.mh-cv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--b-space-3) 0;
  border-bottom: 1px solid var(--b-border-subtle);
}

.mh-cv-row:last-child {
  border-bottom: none;
}

.mh-cv-label {
  font-size: var(--b-font-size-sm);
  color: var(--b-text-muted);
}

.mh-cv-toggle {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: var(--b-color-primary);
  position: relative;
  flex-shrink: 0;
}

.mh-cv-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
}

.mh-cv-toggle--off {
  background: var(--b-bg-surface);
  border: 1px solid var(--b-border-default);
}

.mh-cv-toggle--off::after {
  right: auto;
  left: 3px;
  background: var(--b-text-muted);
}

.mh-cv-color-swatches {
  display: flex;
  gap: 6px;
}

.mh-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
}

.mh-swatch--active {
  border-color: var(--b-text-primary);
}

/* ── Use Cases ─────────────────────────────────────────────── */
.mh-use-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--b-space-6);
  margin-top: var(--b-space-12);
}

.mh-use-case {
  background: var(--b-card-bg);
  border: 1px solid var(--b-card-border);
  border-radius: var(--b-radius-xl);
  padding: var(--b-space-8);
  transition: transform var(--b-transition-normal), box-shadow var(--b-transition-normal);
}

.mh-use-case:hover {
  transform: translateY(-3px);
  box-shadow: var(--b-card-shadow-hover);
}

.mh-use-case-header {
  display: flex;
  align-items: center;
  gap: var(--b-space-3);
  margin-bottom: var(--b-space-4);
}

.mh-use-case-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--b-radius-md);
  background: var(--b-color-primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mh-use-case h3 {
  font-size: var(--b-font-size-md);
  font-weight: var(--b-font-weight-semibold);
  color: var(--b-text-primary);
}

.mh-use-case .mh-use-case-scenario {
  font-size: var(--b-font-size-xs);
  color: var(--b-color-primary-light);
  font-weight: var(--b-font-weight-medium);
  letter-spacing: var(--b-letter-spacing-wide);
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--b-space-3);
}

.mh-use-case p {
  font-size: var(--b-font-size-sm);
  color: var(--b-text-muted);
  line-height: var(--b-line-height-relaxed);
}

/* ── Tech Strip ────────────────────────────────────────────── */
.mh-tech-quality-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--b-space-16);
  align-items: start;
  margin-top: var(--b-space-12);
}

.mh-tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--b-space-3);
  margin-top: var(--b-space-4);
}

.mh-tech-badge {
  display: flex;
  align-items: center;
  gap: var(--b-space-2);
  background: var(--b-bg-surface);
  border: 1px solid var(--b-border-default);
  border-radius: var(--b-radius-md);
  padding: var(--b-space-2) var(--b-space-4);
  font-size: var(--b-font-size-sm);
  font-weight: var(--b-font-weight-medium);
  color: var(--b-text-secondary);
}

.mh-tech-badge svg {
  color: var(--b-color-primary);
}

.mh-quality-metrics {
  display: flex;
  flex-direction: column;
  gap: var(--b-space-4);
  margin-top: var(--b-space-4);
}

.mh-quality-item {
  display: flex;
  align-items: center;
  gap: var(--b-space-4);
  background: var(--b-bg-surface);
  border: 1px solid var(--b-border-subtle);
  border-radius: var(--b-radius-lg);
  padding: var(--b-space-4) var(--b-space-5);
}

.mh-quality-item svg {
  color: var(--b-color-primary);
  flex-shrink: 0;
}

.mh-quality-item-text {
  display: flex;
  flex-direction: column;
}

.mh-quality-item-label {
  font-size: var(--b-font-size-sm);
  font-weight: var(--b-font-weight-semibold);
  color: var(--b-text-primary);
}

.mh-quality-item-desc {
  font-size: var(--b-font-size-xs);
  color: var(--b-text-muted);
}

/* ── Pricing Signal Strip ──────────────────────────────────── */
.mh-pricing-strip {
  background: var(--b-section-bg-alt);
  border-top: 1px solid var(--b-border-subtle);
  border-bottom: 1px solid var(--b-border-subtle);
  padding: var(--b-space-12) 0;
}

.mh-pricing-strip .b-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--b-space-8);
  flex-wrap: wrap;
}

.mh-pricing-strip-text h3 {
  font-size: var(--b-font-size-xl);
  font-weight: var(--b-font-weight-semibold);
  color: var(--b-text-primary);
  margin-bottom: var(--b-space-2);
}

.mh-pricing-strip-text p {
  font-size: var(--b-font-size-base);
  color: var(--b-text-muted);
}

/* ── Pricing Cards ─────────────────────────────────────────── */
.mh-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--b-space-6);
  margin-top: var(--b-space-12);
  align-items: start;
}

.mh-pricing-card {
  background: var(--b-card-bg);
  border: 1px solid var(--b-card-border);
  border-radius: var(--b-radius-xl);
  padding: var(--b-space-8);
  position: relative;
  transition: transform var(--b-transition-normal), box-shadow var(--b-transition-normal);
}

.mh-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--b-card-shadow-hover);
}

.mh-pricing-card--featured {
  border-color: var(--b-border-primary);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.08), rgba(34, 197, 94, 0.04));
}

.mh-pricing-featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--b-color-primary);
  color: #fff;
  font-size: var(--b-font-size-xs);
  font-weight: var(--b-font-weight-semibold);
  padding: 4px 16px;
  border-radius: var(--b-radius-full);
  white-space: nowrap;
  letter-spacing: var(--b-letter-spacing-wide);
  text-transform: uppercase;
}

.mh-pricing-card h3 {
  font-size: var(--b-font-size-xl);
  font-weight: var(--b-font-weight-bold);
  color: var(--b-text-primary);
  margin-bottom: var(--b-space-2);
}

.mh-pricing-tagline {
  font-size: var(--b-font-size-sm);
  color: var(--b-text-muted);
  margin-bottom: var(--b-space-6);
  line-height: var(--b-line-height-relaxed);
}

.mh-pricing-cta-label {
  font-size: var(--b-font-size-2xl);
  font-weight: var(--b-font-weight-black);
  color: var(--b-color-primary-light);
  margin-bottom: var(--b-space-1);
  display: block;
}

.mh-pricing-cta-sub {
  font-size: var(--b-font-size-xs);
  color: var(--b-text-muted);
  display: block;
  margin-bottom: var(--b-space-6);
}

.mh-pricing-divider {
  border: none;
  border-top: 1px solid var(--b-border-subtle);
  margin: var(--b-space-6) 0;
}

.mh-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--b-space-8) 0;
  display: flex;
  flex-direction: column;
  gap: var(--b-space-3);
}

.mh-pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--b-space-2);
  font-size: var(--b-font-size-sm);
  color: var(--b-text-secondary);
}

.mh-pricing-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--b-color-primary);
}

/* ── Included Checklist ────────────────────────────────────── */
.mh-included-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--b-space-4);
  margin-top: var(--b-space-12);
}

.mh-included-item {
  display: flex;
  align-items: center;
  gap: var(--b-space-3);
  padding: var(--b-space-4) var(--b-space-5);
  background: var(--b-bg-surface);
  border: 1px solid var(--b-border-subtle);
  border-radius: var(--b-radius-lg);
}

.mh-included-item svg {
  color: var(--b-color-primary);
  flex-shrink: 0;
}

.mh-included-item span {
  font-size: var(--b-font-size-sm);
  color: var(--b-text-secondary);
  font-weight: var(--b-font-weight-medium);
}

/* ── FAQ ───────────────────────────────────────────────────── */
.mh-faq {
  max-width: 760px;
  margin: var(--b-space-12) auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--b-space-3);
}

.mh-faq-item {
  background: var(--b-card-bg);
  border: 1px solid var(--b-card-border);
  border-radius: var(--b-radius-lg);
  overflow: hidden;
}

.mh-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--b-space-4);
  padding: var(--b-space-5) var(--b-space-6);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--b-text-primary);
  font-size: var(--b-font-size-base);
  font-weight: var(--b-font-weight-semibold);
  font-family: inherit;
  transition: background var(--b-transition-fast);
}

.mh-faq-question:hover {
  background: var(--b-bg-surface);
}

.mh-faq-chevron {
  flex-shrink: 0;
  color: var(--b-text-muted);
  transition: transform var(--b-transition-normal);
}

.mh-faq-item.mh-faq-open .mh-faq-chevron {
  transform: rotate(180deg);
}

.mh-faq-answer {
  display: none;
  padding: 0 var(--b-space-6) var(--b-space-5) var(--b-space-6);
  font-size: var(--b-font-size-sm);
  color: var(--b-text-muted);
  line-height: var(--b-line-height-relaxed);
}

.mh-faq-item.mh-faq-open .mh-faq-answer {
  display: block;
}

/* ── Features Deep Dive ────────────────────────────────────── */
.mh-feature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--b-space-12);
  align-items: start;
  margin-top: var(--b-space-8);
}

.mh-feature-section--reverse {
  direction: rtl;
}

.mh-feature-section--reverse > * {
  direction: ltr;
}

.mh-feature-detail-card {
  background: var(--b-card-bg);
  border: 1px solid var(--b-card-border);
  border-radius: var(--b-radius-xl);
  padding: var(--b-space-6);
}

.mh-feature-detail-header {
  display: flex;
  align-items: center;
  gap: var(--b-space-3);
  margin-bottom: var(--b-space-5);
}

.mh-feature-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--b-radius-md);
  background: var(--b-color-primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mh-feature-detail-header h3 {
  font-size: var(--b-font-size-lg);
  font-weight: var(--b-font-weight-bold);
  color: var(--b-text-primary);
}

.mh-feature-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--b-space-3);
}

.mh-feature-points li {
  display: flex;
  align-items: flex-start;
  gap: var(--b-space-2);
  font-size: var(--b-font-size-sm);
  color: var(--b-text-secondary);
  line-height: var(--b-line-height-normal);
}

.mh-feature-points li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--b-color-primary);
}

.mh-algorithm-visual {
  background: var(--b-bg-surface);
  border: 1px solid var(--b-border-subtle);
  border-radius: var(--b-radius-lg);
  padding: var(--b-space-5);
  margin-top: var(--b-space-4);
}

.mh-algo-title {
  font-size: var(--b-font-size-xs);
  font-weight: var(--b-font-weight-semibold);
  color: var(--b-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--b-letter-spacing-wide);
  margin-bottom: var(--b-space-4);
}

.mh-algo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--b-space-3);
  gap: var(--b-space-3);
}

.mh-algo-label {
  font-size: var(--b-font-size-sm);
  color: var(--b-text-secondary);
  min-width: 100px;
}

.mh-algo-bar-track {
  flex: 1;
  height: 8px;
  background: var(--b-bg-raised);
  border-radius: 4px;
  overflow: hidden;
}

.mh-algo-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--b-color-primary), var(--b-color-primary-light));
}

.mh-algo-pct {
  font-size: var(--b-font-size-xs);
  color: var(--b-color-primary-light);
  font-weight: var(--b-font-weight-semibold);
  min-width: 32px;
  text-align: right;
}

.mh-rep-tiers {
  display: flex;
  flex-direction: column;
  gap: var(--b-space-2);
  margin-top: var(--b-space-4);
}

.mh-rep-tier {
  display: flex;
  align-items: center;
  gap: var(--b-space-3);
  padding: var(--b-space-2) var(--b-space-4);
  border-radius: var(--b-radius-md);
  background: var(--b-bg-surface);
}

.mh-rep-tier-badge {
  font-size: var(--b-font-size-xs);
  font-weight: var(--b-font-weight-bold);
  color: var(--b-color-primary-light);
  background: var(--b-color-primary-subtle);
  border-radius: var(--b-radius-full);
  padding: 2px 10px;
  min-width: 70px;
  text-align: center;
}

.mh-rep-tier-desc {
  font-size: var(--b-font-size-sm);
  color: var(--b-text-muted);
}

.mh-workflow-steps {
  display: flex;
  flex-direction: column;
  gap: var(--b-space-3);
  margin-top: var(--b-space-4);
}

.mh-workflow-step {
  display: flex;
  align-items: center;
  gap: var(--b-space-3);
}

.mh-workflow-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--b-color-primary-subtle);
  border: 1px solid var(--b-border-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--b-font-size-xs);
  font-weight: var(--b-font-weight-bold);
  color: var(--b-color-primary-light);
  flex-shrink: 0;
}

.mh-workflow-step-arrow {
  color: var(--b-color-primary);
  flex-shrink: 0;
}

.mh-workflow-step-label {
  font-size: var(--b-font-size-sm);
  color: var(--b-text-secondary);
}

/* ── Section heading utilities ─────────────────────────────── */
.mh-section-label {
  display: inline-block;
  font-size: var(--b-font-size-xs);
  font-weight: var(--b-font-weight-semibold);
  color: var(--b-color-primary-light);
  letter-spacing: var(--b-letter-spacing-wider);
  text-transform: uppercase;
  margin-bottom: var(--b-space-4);
}

/* ── Table overflow wrapper ────────────────────────────────── */
.mh-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Code block overflow ───────────────────────────────────── */
.mh-code-block {
  overflow: hidden;
}

.mh-code-block pre {
  overflow-x: auto;
}

.mh-code-block code {
  white-space: pre;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .mh-apps-grid {
    grid-template-columns: 1fr;
  }

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

  .mh-use-cases {
    grid-template-columns: 1fr 1fr;
  }

  .mh-problem-grid {
    grid-template-columns: 1fr;
  }

  .mh-whitelabel-layout {
    grid-template-columns: 1fr;
  }

  .mh-tech-quality-layout {
    grid-template-columns: 1fr;
  }

  .mh-pricing-grid {
    grid-template-columns: 1fr;
  }

  .mh-included-grid {
    grid-template-columns: 1fr;
  }

  .mh-feature-section {
    grid-template-columns: 1fr;
  }

  .mh-feature-section--reverse {
    direction: ltr;
  }

  .mh-pricing-strip .b-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .mh-hero-headline {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .mh-stats-bar .b-container {
    gap: var(--b-space-4);
  }

  .mh-stat {
    padding: var(--b-space-4) var(--b-space-6);
    border-right: none;
    border-bottom: 1px solid var(--b-border-subtle);
    width: 50%;
  }

  .mh-stat:nth-child(odd) {
    border-right: 1px solid var(--b-border-subtle);
  }

  .mh-stat:last-child,
  .mh-stat:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
  }

  .mh-modules-grid {
    grid-template-columns: 1fr;
  }

  .mh-use-cases {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .mh-hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .mh-stat {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--b-border-subtle);
  }

  .mh-stat:last-child {
    border-bottom: none;
  }
}
