/* =============================================================
   Caribbean Social Studies — Membership page (custom-membership.hbs)
   Premium tier · editorial rhythm · conversion-focused
   ============================================================= */

.page-template-custom-membership,
body.membership-custom-page,
.membership-page {
  --mem-bg: #0e0c23;
  --mem-ink: #070612;
  --mem-border: rgba(255, 255, 255, 0.12);
  --mem-text: rgba(255, 255, 255, 0.92);
  --mem-muted: rgba(255, 255, 255, 0.62);
  --mem-dim: rgba(255, 255, 255, 0.48);
  --mem-green: #00f060;
  --mem-pink: #ff0090;
  --mem-gold: #ffd047;
  --mem-teal: #36e3ff;
  --mem-violet: #6b4bff;
  --mem-pad: clamp(28px, 5vw, 88px);
  --mem-section-y: clamp(72px, 11vw, 120px);
  --mem-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --mem-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  --mem-shadow-hover: 0 32px 80px rgba(0, 0, 0, 0.45);
  --mem-shadow-paid: 0 24px 64px rgba(0, 0, 0, 0.38);
  background: var(--mem-bg);
  color: var(--mem-text);
  position: relative;
}

/* Atmospheric page layer (aligns with about / home) */
.membership-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background:
    radial-gradient(900px 560px at 12% -8%, rgba(255, 0, 144, 0.09) 0%, transparent 55%),
    radial-gradient(820px 520px at 88% 12%, rgba(0, 240, 96, 0.07) 0%, transparent 58%),
    radial-gradient(700px 480px at 50% 92%, rgba(107, 75, 255, 0.06) 0%, transparent 55%);
}

.page-template-custom-membership .gh-viewport,
body.membership-custom-page .gh-viewport {
  background: var(--mem-bg);
  position: relative;
  z-index: 0;
}

.page-template-custom-membership .gh-footer,
body.membership-custom-page .gh-footer {
  display: none;
}

/* Nav — match dark landing / about */
.page-template-custom-membership .css-nav,
body.membership-custom-page .css-nav {
  background: rgba(14, 12, 35, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  padding: 0 var(--mem-pad);
  height: 80px;
}

.page-template-custom-membership .css-nav-name,
.page-template-custom-membership .css-nl,
.page-template-custom-membership .css-n-si,
body.membership-custom-page .css-nav-name,
body.membership-custom-page .css-nl,
body.membership-custom-page .css-n-si {
  color: rgba(255, 255, 255, 0.9);
}

.page-template-custom-membership .css-nav-name,
body.membership-custom-page .css-nav-name {
  color: rgba(255, 255, 255, 0.4);
}

.page-template-custom-membership .css-nl:hover,
.page-template-custom-membership .css-n-si:hover,
.page-template-custom-membership .css-nl-active,
body.membership-custom-page .css-nl:hover,
body.membership-custom-page .css-n-si:hover,
body.membership-custom-page .css-nl-active {
  color: #fff;
}

.page-template-custom-membership .css-n-member,
body.membership-custom-page .css-n-member {
  color: #0a1628;
  background: #00f060;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
  border-color: transparent;
}

.page-template-custom-membership .css-n-member:hover,
body.membership-custom-page .css-n-member:hover {
  color: #080c14;
  background: #00e058;
  border-color: transparent;
}

.page-template-custom-membership .css-n-sub,
body.membership-custom-page .css-n-sub {
  background: var(--mem-pink);
  color: #fff;
  border: none;
  padding: 6px 20px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.22s var(--mem-ease);
}

.page-template-custom-membership .css-n-sub:hover,
body.membership-custom-page .css-n-sub:hover {
  transform: scale(1.05);
  color: #fff;
}

.page-template-custom-membership .css-nav-burger span,
body.membership-custom-page .css-nav-burger span {
  background: rgba(255, 255, 255, 0.86);
}

@media (max-width: 900px) {
  .page-template-custom-membership .css-nav,
  body.membership-custom-page .css-nav {
    grid-template-columns: 1fr auto;
  }

  .page-template-custom-membership .css-nav-links,
  body.membership-custom-page .css-nav-links {
    background: rgba(255, 255, 255, 0.98);
    top: 80px;
  }

  /* Light drawer: override dark-bar link colors above (was white-on-white / unreadable) */
  .page-template-custom-membership .css-nav-links .css-nl,
  body.membership-custom-page .css-nav-links .css-nl {
    color: #080c14;
  }

  .page-template-custom-membership .css-nav-links .css-nl:hover,
  .page-template-custom-membership .css-nav-links .css-nl-active,
  body.membership-custom-page .css-nav-links .css-nl:hover,
  body.membership-custom-page .css-nav-links .css-nl-active {
    color: #080c14;
  }

  .page-template-custom-membership .css-nav-links .css-nl-dim,
  body.membership-custom-page .css-nav-links .css-nl-dim {
    color: rgba(8, 12, 20, 0.55);
  }

  .page-template-custom-membership .css-nav-links .css-nav-dd-trigger,
  body.membership-custom-page .css-nav-links .css-nav-dd-trigger {
    color: #080c14;
  }

  .page-template-custom-membership .css-nav-drawer-head,
  body.membership-custom-page .css-nav-drawer-head {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.98);
  }
}

/* Footer partial — full parity with landing (custom-home.css); default.hbs does not load custom-home.css */
.page-template-custom-membership .footer,
body.membership-custom-page .footer {
  background: #0b091d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(52px, 6vw, 88px) var(--mem-pad);
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: clamp(28px, 3.2vw, 44px);
  align-items: start;
  position: relative;
  z-index: 1;
}

.page-template-custom-membership .footer > .fc,
body.membership-custom-page .footer > .fc {
  min-width: 0;
}

.page-template-custom-membership .footer .flogo-area > a,
body.membership-custom-page .footer .flogo-area > a {
  display: inline-block;
  line-height: 0;
  max-width: 100%;
}

.page-template-custom-membership div.flogo-img,
body.membership-custom-page div.flogo-img {
  width: 48px;
  height: 48px;
  background: var(--mem-green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #0e0c22;
  margin-bottom: 12px;
}

.page-template-custom-membership .footer .flogo-area img,
body.membership-custom-page .footer .flogo-area img {
  width: auto;
  max-width: min(160px, 100%);
  height: auto;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.page-template-custom-membership .fsite,
body.membership-custom-page .fsite {
  font-size: clamp(15px, 1.12vw, 16px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 8px;
}

.page-template-custom-membership .fdesc,
body.membership-custom-page .fdesc {
  font-size: clamp(14px, 1.08vw, 16px);
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: clamp(18px, 2.2vw, 22px);
}

.page-template-custom-membership .fnl-lbl,
body.membership-custom-page .fnl-lbl {
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(13px, 1.02vw, 14px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 12px;
  line-height: 1.35;
}

.page-template-custom-membership .fnl-note,
body.membership-custom-page .fnl-note {
  font-size: clamp(12px, 1.05vw, 13px);
  color: rgba(255, 255, 255, 0.38);
  margin-top: 10px;
  line-height: 1.5;
}

.page-template-custom-membership .fc,
body.membership-custom-page .fc {
  display: block;
}

.page-template-custom-membership .fc h5,
body.membership-custom-page .fc h5 {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
  line-height: 1.35;
}

.page-template-custom-membership .fc a,
body.membership-custom-page .fc a {
  color: rgba(255, 255, 255, 0.58) !important;
  display: block !important;
  font-size: clamp(15px, 1.05vw, 17px) !important;
  line-height: 1.55;
  margin-bottom: 10px;
  text-decoration: none;
  overflow-wrap: break-word;
  word-break: normal;
}

.page-template-custom-membership .fc a:last-child,
body.membership-custom-page .fc a:last-child {
  margin-bottom: 0;
}

.page-template-custom-membership .fc a:hover,
body.membership-custom-page .fc a:hover {
  color: #fff !important;
}

.page-template-custom-membership .fsocials,
body.membership-custom-page .fsocials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.page-template-custom-membership .fsoc,
body.membership-custom-page .fsoc {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.45);
}

.page-template-custom-membership .fsoc:hover,
body.membership-custom-page .fsoc:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.page-template-custom-membership .fsoc svg,
body.membership-custom-page .fsoc svg {
  width: 15px;
  height: 15px;
}

.page-template-custom-membership .gh-signup-form-embed,
body.membership-custom-page .gh-signup-form-embed {
  max-width: 300px;
  margin-left: 0;
  margin-right: 0;
}

.page-template-custom-membership .fbtm,
body.membership-custom-page .fbtm {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.48);
  padding: clamp(16px, 2.2vw, 24px) var(--mem-pad);
  font-size: clamp(12px, 1.15vw, 14px);
  line-height: 1.55;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px 20px;
  position: relative;
  z-index: 1;
}

.page-template-custom-membership .fbtm a,
body.membership-custom-page .fbtm a {
  color: rgba(255, 255, 255, 0.28);
  text-decoration: none;
  transition: color 0.2s;
}

.page-template-custom-membership .fbtm a:hover,
body.membership-custom-page .fbtm a:hover {
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 900px) {
  .page-template-custom-membership .footer,
  body.membership-custom-page .footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .page-template-custom-membership .footer,
  body.membership-custom-page .footer {
    grid-template-columns: 1fr;
    padding: clamp(32px, 7vw, 44px) clamp(18px, 4vw, 24px);
    gap: clamp(28px, 6vw, 36px);
  }

  .page-template-custom-membership .fbtm,
  body.membership-custom-page .fbtm {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: clamp(12px, 3.2vw, 13px);
    padding: clamp(18px, 4vw, 22px) clamp(18px, 4vw, 24px);
  }
}

/* ---- Layout ---- */
.mem-wrap {
  width: min(1120px, calc(100% - 2 * clamp(22px, 5vw, 74px)));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.mem-section-header {
  margin-bottom: clamp(36px, 4.5vw, 52px);
}

.mem-section-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.mem-section-kicker--paid {
  color: var(--mem-gold);
}

/* ---- Hero ---- */
.mem-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(104px, 15vw, 168px) 0 clamp(64px, 9vw, 100px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  z-index: 1;
}

.mem-hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  opacity: 0.32;
  transform: scale(1.05);
}

.mem-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 6, 18, 0.9) 0%, rgba(14, 12, 34, 0.75) 42%, rgba(7, 6, 18, 0.96) 100%),
    radial-gradient(900px 520px at 16% 18%, rgba(255, 0, 144, 0.15) 0%, transparent 55%),
    radial-gradient(780px 480px at 84% 55%, rgba(0, 240, 96, 0.11) 0%, transparent 58%);
  pointer-events: none;
}

.mem-hero-atmo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mix-blend-mode: overlay;
}

.mem-hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.mem-hero-inner {
  max-width: 70ch;
}

.mem-eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mem-teal);
}

.mem-hero-title {
  margin: 0 0 clamp(22px, 3vw, 32px);
  font-size: clamp(36px, 5.8vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.038em;
  font-weight: 700;
  color: #fff;
  text-wrap: balance;
}

.mem-hero-sub {
  margin: 0 0 18px;
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.8);
}

.mem-hero-lead {
  margin: 0 0 18px;
  font-size: clamp(17px, 1.2vw, 19px);
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.58);
}

.mem-hero-note {
  margin: 0;
  font-size: clamp(15px, 1.08vw, 17px);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.72);
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 58ch;
}

/* ---- Sections rhythm ---- */
.mem-section {
  position: relative;
  padding: var(--mem-section-y) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1;
}

.mem-section-title {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #fff;
  text-wrap: balance;
}

.mem-section-title--free {
  font-size: clamp(26px, 3.2vw, 36px);
  color: rgba(255, 255, 255, 0.92);
}

.mem-section-deck {
  margin: 0;
  max-width: 58ch;
  font-size: clamp(17px, 1.22vw, 19px);
  line-height: 1.75;
  color: var(--mem-muted);
}

.mem-section-header--paid .mem-section-deck {
  max-width: 62ch;
}

/* ---- Choose your path (differentiated) ---- */
.mem-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 32px);
}

.mem-path-card {
  position: relative;
  padding: clamp(26px, 2.8vw, 34px) clamp(22px, 2.4vw, 28px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.26);
  transition: border-color 0.35s var(--mem-ease), transform 0.35s var(--mem-ease), box-shadow 0.35s var(--mem-ease);
  overflow: hidden;
}

.mem-path-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 20px 0 0 20px;
}

.mem-path-card--pro .mem-path-accent {
  background: linear-gradient(180deg, var(--mem-teal), rgba(54, 227, 255, 0.35));
  box-shadow: 0 0 24px rgba(54, 227, 255, 0.25);
}

.mem-path-card--org .mem-path-accent {
  background: linear-gradient(180deg, var(--mem-violet), rgba(107, 75, 255, 0.4));
  box-shadow: 0 0 24px rgba(107, 75, 255, 0.22);
}

.mem-path-card--biz .mem-path-accent {
  background: linear-gradient(180deg, var(--mem-gold), rgba(255, 208, 71, 0.45));
  box-shadow: 0 0 24px rgba(255, 208, 71, 0.18);
}

.mem-path-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  pointer-events: none;
  opacity: 0.45;
  background: radial-gradient(420px 200px at 80% -10%, rgba(255, 255, 255, 0.08) 0%, transparent 65%);
}

.mem-path-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-5px);
  box-shadow: var(--mem-shadow-hover);
}

.mem-path-label {
  display: block;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.mem-path-card--pro .mem-path-label {
  color: rgba(54, 227, 255, 0.85);
}

.mem-path-card--org .mem-path-label {
  color: rgba(180, 160, 255, 0.95);
}

.mem-path-card--biz .mem-path-label {
  color: rgba(255, 208, 71, 0.9);
}

.mem-path-title {
  margin: 0 0 12px;
  font-size: clamp(21px, 1.75vw, 26px);
  font-weight: 700;
  letter-spacing: -0.022em;
  color: #fff;
}

.mem-path-text {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.74;
  color: rgba(255, 255, 255, 0.58);
}

.mem-path-match {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.45);
}

.mem-path-match-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.35);
}

.mem-path-match-tier {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: #fff;
}

.mem-path-card--pro .mem-path-match-tier {
  color: var(--mem-teal);
}

.mem-path-card--org .mem-path-match-tier {
  color: #c4b5ff;
}

.mem-path-card--biz .mem-path-match-tier {
  color: var(--mem-gold);
}

/* ---- Free tier band (subordinate, clear “entry”) ---- */
.mem-free-band {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
  padding: var(--mem-section-y) 0;
}

.mem-free-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

.mem-free-header {
  padding-top: 8px;
}

.mem-free-deck {
  margin: 0;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  max-width: 42ch;
}

.mem-card--subscriber {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  box-shadow: none;
  opacity: 1;
}

.mem-card--subscriber:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.mem-benefits--simple {
  color: rgba(255, 255, 255, 0.52);
}

/* ---- Transition strip (free → paid hierarchy) ---- */
.mem-tier-transition {
  padding: clamp(28px, 4vw, 44px) 0;
  position: relative;
  z-index: 1;
}

.mem-tier-transition-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 28px);
}

.mem-tier-transition-line {
  flex: 1;
  height: 1px;
  max-width: 160px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.mem-tier-transition-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
}

/* ---- Paid band ---- */
.mem-paid-band {
  padding-top: clamp(48px, 7vw, 80px);
  background:
    radial-gradient(900px 480px at 50% 0%, rgba(255, 0, 144, 0.06) 0%, transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 45%);
}

.mem-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.8vw, 32px);
  align-items: stretch;
}

.mem-card {
  position: relative;
  border-radius: 22px;
  padding: clamp(28px, 3vw, 38px) clamp(24px, 2.6vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  transition: border-color 0.35s var(--mem-ease), box-shadow 0.35s var(--mem-ease), transform 0.35s var(--mem-ease);
}

.mem-card--paid {
  display: flex;
  flex-direction: column;
  padding-top: clamp(32px, 3.2vw, 42px);
  box-shadow: var(--mem-shadow-paid);
}

.mem-card-rail {
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 3px;
  border-radius: 0 0 4px 4px;
}

.mem-card-rail--teal {
  background: linear-gradient(90deg, var(--mem-teal), rgba(54, 227, 255, 0.4));
}

.mem-card-rail--violet {
  background: linear-gradient(90deg, var(--mem-violet), rgba(107, 75, 255, 0.45));
}

.mem-card-rail--catalyst {
  background: linear-gradient(90deg, var(--mem-pink), var(--mem-gold), var(--mem-green));
}

.mem-card--paid:hover {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: var(--mem-shadow-hover);
  transform: translateY(-4px);
}

.mem-card--paid .mem-benefits {
  flex: 1;
}

.mem-tier-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 0 0 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mem-btn--observer {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.mem-btn--observer:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.mem-tier-bridge {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.mem-card--collective .mem-tier-bridge {
  color: rgba(54, 227, 255, 0.75);
}

.mem-card--village .mem-tier-bridge {
  color: rgba(180, 160, 255, 0.85);
}

.mem-card--catalyst .mem-tier-bridge {
  color: rgba(255, 208, 71, 0.88);
}

.mem-tier-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.mem-tier-badge--free {
  background: rgba(255, 255, 255, 0.04);
  color: var(--mem-dim);
  border-style: dashed;
}

.mem-tier-badge--accent {
  background: linear-gradient(100deg, rgba(255, 0, 144, 0.3), rgba(255, 208, 71, 0.15));
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.mem-card-name {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
}

.mem-card-for {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.48);
}

.mem-price {
  margin: 0 0 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.mem-price-main {
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.035em;
}

.mem-price-unit {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
}

.mem-price-or {
  margin: 0 8px;
  font-size: 12px;
  color: var(--mem-dim);
}

.mem-price-alt {
  font-weight: 700;
  color: var(--mem-gold);
}

.mem-benefits {
  margin: 0 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.mem-benefits li {
  position: relative;
  margin-bottom: 11px;
  padding-left: 22px;
}

.mem-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mem-pink), var(--mem-green));
  box-shadow: 0 0 10px rgba(0, 240, 96, 0.35);
}

.mem-benefits li:last-child {
  margin-bottom: 0;
}

.mem-card--catalyst {
  border-color: rgba(255, 0, 144, 0.42);
  background: linear-gradient(168deg, rgba(255, 0, 144, 0.12) 0%, rgba(255, 255, 255, 0.05) 38%, rgba(0, 240, 96, 0.07) 100%);
  box-shadow: 0 28px 80px rgba(255, 0, 144, 0.14), var(--mem-shadow-paid);
}

.mem-card-glow {
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  pointer-events: none;
  background: radial-gradient(560px 300px at 50% -15%, rgba(255, 209, 71, 0.2) 0%, transparent 58%);
  opacity: 0.85;
}

.mem-card--catalyst:hover {
  border-color: rgba(255, 0, 144, 0.55);
  box-shadow: 0 36px 96px rgba(255, 0, 144, 0.2), var(--mem-shadow-hover);
}

/* ---- Buttons ---- */
.mem-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.22s var(--mem-ease), box-shadow 0.22s var(--mem-ease), border-color 0.22s var(--mem-ease), background 0.22s var(--mem-ease);
}

.mem-btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.mem-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
}

.mem-btn--subscriber-cta {
  width: 100%;
  margin-top: 4px;
  padding: 12px 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.mem-btn--subscriber-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  transform: translateY(-1px);
}

.mem-btn--primary {
  background: var(--mem-pink);
  color: #fff;
  border-color: var(--mem-pink);
  box-shadow: 0 12px 32px rgba(255, 0, 144, 0.32);
}

.mem-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255, 0, 144, 0.45);
  color: #fff;
}

.mem-btn--tier {
  width: 100%;
  padding: 14px 22px;
  font-size: 13px;
}

.mem-btn--catalyst {
  background: linear-gradient(115deg, #ff0090 0%, #a855f7 48%, #00c853 100%);
  background-size: 160% 100%;
  color: #fff;
  border: none;
  box-shadow: 0 14px 40px rgba(168, 85, 247, 0.28);
}

.mem-btn--catalyst:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(255, 0, 144, 0.38);
  color: #fff;
}

.mem-btn--prominent {
  padding: 15px 28px;
  font-size: 14px;
  border-width: 1.5px;
}

.mem-btn--apply {
  width: 100%;
  max-width: none;
  padding: 14px 22px;
}

/* ---- Why join ---- */
.mem-why {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, transparent 100%);
}

.mem-why-intro {
  margin: 0 0 clamp(28px, 3.5vw, 40px);
  max-width: 54ch;
  font-size: clamp(17px, 1.22vw, 19px);
  line-height: 1.75;
  color: var(--mem-muted);
}

.mem-why-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 18px);
}

.mem-why-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.74);
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.25s var(--mem-ease), background 0.25s var(--mem-ease);
}

.mem-why-item:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.mem-why-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mem-pink), var(--mem-green));
  box-shadow: 0 0 14px rgba(0, 240, 96, 0.4);
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .mem-free-layout {
    grid-template-columns: 1fr;
  }

  .mem-path-grid {
    grid-template-columns: 1fr;
  }

  .mem-tier-grid {
    grid-template-columns: 1fr;
  }

  .mem-why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .mem-hero {
    padding-top: 88px;
  }

  .membership-page {
    --mem-section-y: clamp(56px, 12vw, 88px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mem-path-card,
  .mem-card--paid,
  .mem-btn,
  .mem-why-item {
    transition: none;
  }

  .mem-path-card:hover,
  .mem-card--paid:hover,
  .mem-btn:hover {
    transform: none;
  }
}
