.memberships {
  grid-column: 1 / -1;
  min-width: 0;
  scroll-margin-top: 110px;
  padding-top: clamp(40px, 4vw, 56px);
  border-top: 1px solid #34462c;
}

.membership-heading {
  max-width: 820px;
  margin-bottom: 40px;
}

.membership-heading h3 {
  max-width: 28ch;
  margin: 16px 0 20px;
  font: 600 clamp(36px, 4vw, 56px) / 1.08 var(--display);
  letter-spacing: -.02em;
  text-wrap: balance;
}

.support-section .membership-heading > p:not(.eyebrow) {
  max-width: 72ch;
  margin: 0;
  color: #bdcbb4;
  font-size: 1rem;
  line-height: 1.85;
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 28px);
  align-items: stretch;
}

.membership-tier {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(28px, 2.4vw, 36px);
  border: 1px solid #405238;
  border-radius: 18px;
  background: #0e160f;
  overflow-wrap: anywhere;
}

.membership-tier-beta {
  border-color: #91bf62;
  background: linear-gradient(155deg, #1b2a17, #0e160f 65%);
}

.tier-kicker {
  color: #b7d29f;
  font-size: .6875rem;
  font-weight: 800;
  line-height: 1.65;
  letter-spacing: .09em;
}

.membership-tier h4 {
  margin: 14px 0 0;
  color: var(--ink);
  font: 600 clamp(38px, 3.4vw, 46px) / 1.1 var(--display);
  letter-spacing: -.01em;
}

/* Override the broader support-section paragraph rule for both tier labels. */
.support-section .membership-tier > .tier-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  max-width: none;
  margin: 22px 0 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid #b6fb6929;
  color: #b8c6ae;
  font-size: .875rem;
  line-height: 1.5;
}

.tier-price strong {
  color: var(--ink);
  font: 600 clamp(58px, 5vw, 70px) / 1 var(--display);
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.membership-tier-beta .tier-price strong {
  color: var(--lime);
}

.support-section .membership-tier > .tier-includes {
  max-width: none;
  margin: 0 0 18px;
  color: #d8eacb;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.65;
}

.membership-tier ul {
  display: grid;
  gap: 18px;
  margin: 0 0 34px;
  padding-left: 19px;
  color: #bcc9b3;
  font-size: .9375rem;
  line-height: 1.8;
}

.membership-tier li {
  min-width: 0;
  margin: 0;
  padding-left: 4px;
}

.membership-tier li::marker {
  color: #95c473;
}

.membership-tier .tier-join {
  align-self: stretch;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  margin-top: auto;
  padding: 14px 18px;
  border: 1px solid #78945d;
  border-radius: 8px;
  background: #172311;
  color: var(--ink);
  font-size: .875rem;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  transform: none;
  transition: none;
}

.membership-tier-beta .tier-join {
  border-color: var(--lime);
  background: var(--lime);
  color: #10180c;
}

.memberships .tier-join:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 5px;
}

.membership-notes {
  max-width: 94ch;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.support-section .membership-notes > p {
  max-width: none;
  margin: 0 0 12px;
  font-size: .8125rem;
  line-height: 1.8;
}

.support-section .membership-notes > .membership-status {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.7;
}

.footer-membership {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  text-underline-offset: 4px;
}

.footer-membership:hover {
  color: var(--lime);
}

@media (max-width: 1099px) {
  .membership-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .membership-tier {
    padding: 32px;
  }

  .membership-tier ul {
    max-width: 72ch;
  }
}

@media (max-width: 600px) {
  .membership-heading {
    margin-bottom: 30px;
  }

  .membership-heading h3 {
    font-size: clamp(34px, 9vw, 44px);
  }

  .membership-tier {
    padding: 26px 22px;
    border-radius: 14px;
  }

  .membership-tier ul {
    gap: 16px;
  }

  .membership-notes {
    margin-top: 28px;
  }
}

@media (hover: hover) {
  .membership-tier:hover {
    border-color: #93b773;
  }

  .membership-tier .tier-join:hover {
    border-color: var(--lime);
    background: #22351a;
    color: var(--ink);
    transform: none;
  }

  .membership-tier-beta .tier-join:hover {
    background: #c8ff8b;
    color: #10180c;
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .membership-tier {
    transition: border-color .18s;
  }

  .membership-tier .tier-join {
    transition: background-color .18s, border-color .18s, color .18s;
  }
}
