/* ============================================================================
   Membership Benefits Comparison Table
   Embeddable on /pricing, /start-here, and any marketing page.
   Requires: design-system.css (CSS custom properties)
   ============================================================================ */

/* ── Container ─────────────────────────────────────────────────────────────── */
.mct-wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

.mct-section-label {
  text-align: center;
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent, #34d2e2);
  margin-bottom: 0.75rem;
}

.mct-heading {
  text-align: center;
  font-family: var(--font-heading, 'Rubik', sans-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text, #fff);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.mct-subheading {
  text-align: center;
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: 1rem;
  color: var(--text-muted, #A89FA0);
  margin: 0 0 2.5rem;
}

/* ── Mobile tier tabs (visible < 680px) ─────────────────────────────────────── */
.mct-mobile-tabs {
  display: none;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: #0d0d0d;
  border-radius: 10px;
  padding: 4px;
}

.mct-tab {
  flex: 1;
  padding: 8px 4px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted, #A89FA0);
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: center;
  white-space: nowrap;
}

.mct-tab.active {
  background: var(--primary, #633a85);
  color: #fff;
}

.mct-tab[data-tier="practitioner"].active {
  background: var(--accent, #34d2e2);
  color: #000;
}

/* ── Table ──────────────────────────────────────────────────────────────────── */
.mct-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(99, 58, 133, 0.2);
}

/* Header row */
.mct-header-row {
  background: #0a0a0a;
}

.mct-header-row th {
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
  vertical-align: top;
  border-bottom: 1px solid rgba(99, 58, 133, 0.2);
}

.mct-header-row th:first-child {
  text-align: left;
  width: 38%;
}

.mct-col-label {
  font-family: var(--font-heading, 'Rubik', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.mct-col-label.free   { color: #6a5a7a; }
.mct-col-label.member { color: var(--primary, #633a85); }
.mct-col-label.practitioner { color: var(--accent, #34d2e2); }

.mct-col-price {
  font-family: var(--font-heading, 'Rubik', sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text, #fff);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.mct-col-price.free { color: #6a5a7a; }

.mct-col-price sub {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted, #A89FA0);
  vertical-align: baseline;
  margin-left: 2px;
}

.mct-col-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 0.4rem;
}

.mct-col-badge.popular {
  background: var(--primary, #633a85);
  color: #fff;
}

.mct-col-badge.practitioner {
  background: rgba(52, 210, 226, 0.12);
  color: var(--accent, #34d2e2);
  border: 1px solid rgba(52, 210, 226, 0.3);
}

/* Category rows */
.mct-category-row td {
  padding: 0.6rem 1rem;
  background: #080808;
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted, #A89FA0);
  border-top: 1px solid rgba(99, 58, 133, 0.12);
  border-bottom: 1px solid rgba(99, 58, 133, 0.12);
}

.mct-category-row td:first-child {
  color: var(--accent, #34d2e2);
}

/* Feature rows */
.mct-feature-row td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(99, 58, 133, 0.08);
  background: #030303;
  transition: background 0.15s;
}

.mct-feature-row:hover td {
  background: #0a0610;
}

.mct-feature-row td:not(:first-child) {
  text-align: center;
  min-width: 90px;
}

/* Feature name cell */
.mct-feature-name {
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: 0.9rem;
  color: var(--text-body, #fcfcfc);
  line-height: 1.4;
}

.mct-feature-note {
  font-size: 0.75rem;
  color: var(--text-muted, #A89FA0);
  margin-top: 2px;
  display: block;
}

/* Check / X marks */
.mct-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
}

.mct-check.yes-member {
  background: rgba(99, 58, 133, 0.18);
  color: var(--primary, #633a85);
}

.mct-check.yes-practitioner {
  background: rgba(52, 210, 226, 0.12);
  color: var(--accent, #34d2e2);
}

.mct-check.no {
  background: transparent;
  color: #3a2a4a;
  font-size: 0.9rem;
}

.mct-check.yes-all {
  background: rgba(99, 58, 133, 0.1);
  color: #8a6aaa;
}

/* CTA row */
.mct-cta-row td {
  padding: 1.25rem 1rem;
  text-align: center;
  background: #080808;
  border-top: 1px solid rgba(99, 58, 133, 0.2);
}

.mct-cta-row td:first-child {
  text-align: left;
}

.mct-cta-row .mct-cta-hint {
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: 0.82rem;
  color: var(--text-muted, #A89FA0);
}

/* Buttons */
.mct-btn {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 8px;
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  white-space: nowrap;
}

.mct-btn:active { transform: scale(0.97); }

.mct-btn-free {
  background: transparent;
  border: 1px solid #3d2452;
  color: #6a5a7a;
}

.mct-btn-member {
  background: var(--primary, #633a85);
  border: 1px solid var(--primary, #633a85);
  color: #fff;
}

.mct-btn-member:hover { opacity: 0.88; }

.mct-btn-practitioner {
  background: var(--accent, #34d2e2);
  border: 1px solid var(--accent, #34d2e2);
  color: #000;
}

.mct-btn-practitioner:hover { opacity: 0.88; }

/* ── Mobile: stack + tab switching ─────────────────────────────────────────── */
@media (max-width: 680px) {
  .mct-mobile-tabs { display: flex; }
  .mct-heading { font-size: 1.5rem; }

  .mct-table {
    border-radius: 10px;
    font-size: 0.85rem;
  }

  /* Header: hide free/member/practitioner extra cols, show only label + active tier */
  .mct-header-row th.mct-th-free,
  .mct-header-row th.mct-th-member,
  .mct-header-row th.mct-th-practitioner {
    display: none;
  }

  .mct-header-row th.mct-th-active {
    display: table-cell;
  }

  /* Feature rows: hide non-active cols */
  .mct-feature-row td.mct-td-free,
  .mct-feature-row td.mct-td-member,
  .mct-feature-row td.mct-td-practitioner,
  .mct-category-row td.mct-td-free,
  .mct-category-row td.mct-td-member,
  .mct-category-row td.mct-td-practitioner,
  .mct-cta-row td.mct-td-free,
  .mct-cta-row td.mct-td-member,
  .mct-cta-row td.mct-td-practitioner {
    display: none;
  }

  .mct-feature-row td.mct-td-active,
  .mct-category-row td.mct-td-active,
  .mct-cta-row td.mct-td-active {
    display: table-cell;
  }

  .mct-feature-name { font-size: 0.85rem; }
  .mct-col-price { font-size: 1.1rem; }
}

/* ── Narrow embed (< 480px) ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .mct-wrap { padding: 1.5rem 0.5rem; }
  .mct-heading { font-size: 1.3rem; }

  .mct-feature-row td { padding: 0.7rem 0.75rem; }
  .mct-header-row th { padding: 1.1rem 0.75rem 1rem; }
}
