/* Membership / plan comparison page - aligned with landing page design language */

.membership-body {
  font-family: 'Inter', sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #141414;
  color: #d8d8d8;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  max-width: 100vw;
}

.membership-main {
  padding: 3.5rem 1.25rem 5rem;
  max-width: 980px;
  margin: 0 auto;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.mem-hero {
  position: relative;
  max-width: 720px;
  margin: 0 auto 4rem;
  text-align: center;
  padding: 1rem 0 1rem;
}

.mem-hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(200, 169, 110, 0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.mem-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.mem-hero-inner .capabilities-label {
  margin-bottom: 0.1rem;
}

.mem-hero-title {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0;
  color: #ebebeb;
  text-wrap: balance;
}

.mem-hero-title .hero-accent {
  color: #c8a96e;
}

.mem-hero-lead {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #888;
  max-width: 540px;
  margin: 0;
}

.mem-guarantee {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.4rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(200, 169, 110, 0.35);
  background: rgba(200, 169, 110, 0.06);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #d6c8b0;
  letter-spacing: 0.01em;
}

.mem-guarantee-icon {
  display: inline-flex;
  color: #c8a96e;
}

/* ── Section intros ───────────────────────────────────────────────────────── */

.mem-plans-intro,
.mem-faq-intro {
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.mem-section-title {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #e8e0d5;
  margin: 0;
  text-wrap: balance;
}

.mem-section-sub {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #7d7d7d;
  margin: 0;
  max-width: 38rem;
}

/* ── Plan grid ────────────────────────────────────────────────────────────── */

.mem-plans {
  margin: 0 auto;
}

.mem-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  border: 1px solid #232323;
  border-radius: 10px;
  overflow: hidden;
  max-width: 920px;
  margin: 0 auto;
  background: #141414;
}

.mem-col-head {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid #232323;
  background: #161616;
}

.mem-col-head:not(:last-child) {
  border-right: 1px solid #1f1f1f;
}

.mem-col-head.is-pro {
  border-top: 2px solid #d680c4;
  background: linear-gradient(180deg, rgba(210, 90, 195, 0.10) 0%, rgba(210, 90, 195, 0.03) 100%);
}

.mem-tier-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #383430;
  margin-bottom: 6px;
}

.mem-tier-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e8e0d5;
  letter-spacing: -0.005em;
}

.mem-tier-price {
  font-size: 0.78rem;
  color: #7d7d7d;
  margin-top: 6px;
  line-height: 1.7;
  font-weight: 500;
}

.mem-badge {
  display: inline-block;
  font-size: 0.6rem;
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mem-badge--popular {
  background: rgba(210, 90, 195, 0.16);
  color: #e6b3cf;
  border: 1px solid rgba(210, 90, 195, 0.45);
  text-shadow: 0 0 10px rgba(210, 90, 195, 0.4);
}

.mem-badge--early {
  background: rgba(255, 255, 255, 0.03);
  color: #888;
  border: 1px solid #2a2a2a;
}

.mem-row {
  display: contents;
}

.mem-cell {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #1c1c1c;
  font-size: 0.84rem;
  color: #b8b3a8;
  display: flex;
  align-items: center;
  background: #141414;
}

.mem-cell:not(:last-child) {
  border-right: 1px solid #1c1c1c;
}

.mem-row:last-child .mem-cell {
  border-bottom: none;
}

.mem-cell--label {
  font-size: 0.82rem;
  font-weight: 500;
  color: #b8b3a8;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.mem-cell-sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: #555;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  margin-top: 2px;
}

.mem-cell--stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.mem-cell--badge {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
}

.mem-cell--badge .mem-cell-sub {
  margin-top: 0;
  text-transform: none;
  letter-spacing: 0.03em;
}

/* Decorative tier badges in the plan grid (matches live profile badges). */
.mem-grid .tier-badge {
  display: inline-block;
  position: relative;
  width: fit-content;
  overflow: hidden;
  vertical-align: middle;
  pointer-events: none;
}

.mem-grid .tier-badge.tier-supporter {
  padding: 0.22rem 0.65rem 0.24rem;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  color: #c8e8ff;
  text-shadow:
    0 0 14px rgba(80, 170, 255, 0.45),
    0 1px 0 rgba(0, 20, 40, 0.85);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, #152a42 0%, #1c3d5e 28%, #143552 55%, #0f2840 100%);
  border: 1px solid rgba(100, 190, 255, 0.42);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45) inset,
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(40, 140, 255, 0.18),
    0 0 1px rgba(160, 220, 255, 0.35);
}

.mem-grid .tier-badge.tier-pro {
  padding: 0.18rem 0.42rem 0.2rem;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  color: #f2cae8;
  text-shadow:
    0 0 14px rgba(210, 90, 195, 0.5),
    0 1px 0 rgba(20, 4, 12, 0.85);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, #3c1640 0%, #62205a 28%, #4a1746 55%, #310d30 100%);
  border: 1px solid rgba(210, 90, 195, 0.5);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45) inset,
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 0 22px rgba(205, 75, 185, 0.22),
    0 0 1px rgba(255, 180, 245, 0.4);
}

.mem-grid .tier-badge > * {
  position: relative;
  z-index: 1;
}

.mem-cell--section {
  background: #161616;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  padding: 0.55rem 1.25rem;
}

/* Pro column tint runs the full column height - magenta to match Pro brand */
.mem-cell--pro {
  background: rgba(210, 90, 195, 0.04);
}

.mem-cell--section.mem-cell--pro {
  background: linear-gradient(180deg, rgba(210, 90, 195, 0.09) 0%, rgba(210, 90, 195, 0.05) 100%);
}

.mem-cell--pro .mem-check {
  color: #e6b3cf;
}

.mem-check {
  color: #c8a96e;
}

.mem-dash {
  color: #2a2a2a;
  font-size: 1.05rem;
}

.mem-pill-unlimited {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(210, 90, 195, 0.12);
  color: #e6b3cf;
  border: 1px solid rgba(210, 90, 195, 0.35);
  letter-spacing: 0.04em;
}

.mem-corner-empty {
  background: #161616;
}

/* ── Column CTA row ───────────────────────────────────────────────────────── */

.mem-row--cta .mem-cell {
  padding: 1rem;
  background: #161616;
  border-bottom: none;
}

.mem-row--cta .mem-cell:nth-child(3) {
  background: linear-gradient(180deg, rgba(40, 140, 255, 0.08) 0%, rgba(40, 140, 255, 0.03) 100%);
}

.mem-row--cta .mem-cell--pro {
  background: linear-gradient(180deg, rgba(210, 90, 195, 0.10) 0%, rgba(210, 90, 195, 0.05) 100%);
}

.mem-cell--cta-label {
  background: #161616;
}

.mem-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.6rem 0.9rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.mem-cta--ghost {
  border-color: #2a2a2a;
  color: #b8b3a8;
}

.mem-cta--ghost:hover {
  border-color: #3a3a3a;
  background: rgba(255, 255, 255, 0.03);
  color: #ebebeb;
}

.mem-cta--outline {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, rgba(28, 61, 94, 0.55) 0%, rgba(15, 40, 64, 0.48) 100%);
  color: #c8e8ff;
  border-color: rgba(100, 190, 255, 0.48);
  text-shadow:
    0 0 12px rgba(80, 170, 255, 0.4),
    0 1px 0 rgba(0, 20, 40, 0.6);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.22) inset,
    0 0 20px rgba(40, 140, 255, 0.16);
}

.mem-cta--outline:hover {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, rgba(28, 61, 94, 0.72) 0%, rgba(20, 53, 82, 0.6) 100%);
  border-color: rgba(120, 200, 255, 0.62);
  color: #dff0ff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.22) inset,
    0 0 28px rgba(40, 140, 255, 0.28);
  transform: translateY(-1px);
}

.mem-cta--filled {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, rgba(122, 29, 112, 0.52) 0%, rgba(72, 16, 74, 0.42) 100%);
  color: #f2cae8;
  border-color: rgba(210, 90, 195, 0.55);
  text-shadow: 0 0 12px rgba(210, 90, 195, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.22) inset,
    0 0 22px rgba(210, 90, 195, 0.18);
}

.mem-cta--filled:hover {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, rgba(122, 29, 112, 0.66) 0%, rgba(90, 21, 86, 0.54) 100%);
  border-color: rgba(210, 90, 195, 0.72);
  color: #ffe8f8;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.22) inset,
    0 0 30px rgba(210, 90, 195, 0.3);
  transform: translateY(-1px);
}

.mem-cta--filled[disabled] {
  cursor: default;
  background: rgba(210, 90, 195, 0.16);
  border-color: rgba(210, 90, 195, 0.4);
  color: #e6b3cf;
  box-shadow: none;
  opacity: 0.9;
}

.mem-cta--filled[disabled]:hover {
  background: rgba(210, 90, 195, 0.16);
  border-color: rgba(210, 90, 195, 0.4);
  color: #e6b3cf;
  box-shadow: none;
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */

.mem-faq {
  max-width: 720px;
  margin: 4.5rem auto 0;
}

.mem-faq-intro {
  margin-bottom: 1.75rem;
}

.mem-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mem-faq-item {
  border: 1px solid #232323;
  border-radius: 8px;
  background: #161616;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.mem-faq-item[open] {
  border-color: rgba(200, 169, 110, 0.3);
}

.mem-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e8e0d5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  letter-spacing: -0.005em;
}

.mem-faq-item summary::-webkit-details-marker {
  display: none;
}

.mem-faq-item summary::after {
  content: '+';
  color: #555;
  font-size: 1.1rem;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}

.mem-faq-item[open] summary::after {
  content: '−';
  color: #c8a96e;
}

.mem-faq-item summary:hover {
  color: #c8a96e;
}

.mem-faq-item p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #8a8a8a;
}

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

@media (max-width: 760px) {
  .membership-main {
    padding: 2rem 0.75rem 4rem;
  }

  .mem-hero {
    margin-bottom: 2.5rem;
  }

  .mem-guarantee {
    font-size: 0.72rem;
    padding: 0.5rem 0.85rem;
  }

  .mem-grid {
    grid-template-columns: 1.3fr repeat(3, 1fr);
  }

  .mem-col-head {
    padding: 1rem 0.55rem;
  }

  .mem-cell {
    padding: 0.65rem 0.55rem;
    font-size: 0.76rem;
  }

  .mem-cell--label {
    font-size: 0.74rem;
  }

  .mem-cell-sub {
    font-size: 0.58rem;
  }

  .mem-tier-name {
    font-size: 0.95rem;
  }

  .mem-tier-price {
    font-size: 0.7rem;
    line-height: 1.55;
  }

  .mem-pill-unlimited {
    font-size: 0.6rem;
    padding: 2px 6px;
  }

  .mem-cta {
    font-size: 0.68rem;
    padding: 0.5rem 0.4rem;
    letter-spacing: 0.02em;
  }

  .mem-row--cta .mem-cell {
    padding: 0.75rem 0.4rem;
  }
}
