/*
 * Membership page built in the manager (components/MembershipPage.tsx). The hero comes from programs.css (its
 * overlay is the Elementor one: black fading out at 176°, 0.59); the rest is new: price cards per category with a
 * individual / organisation switch, a benefits box and a "how to join" box. Accent: the membership purple.
 */

.acm-mp {
  --mp-soft: var(--accent-soft);
  --mp-line: var(--accent-line);
}
/* the hero's own overlay (PageHero overlay="custom"): black fading out at 176°, as the Elementor page had */
.acm-mp-hero__overlay {
  background-image: linear-gradient(176deg, #000 32%, rgba(149, 69, 254, 0) 50%);
  opacity: 0.59;
}
.acm-mp-in {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}
.acm-mp-title {
  text-align: center;
}
.acm-mp-text {
  font-family: var(--font-body);
  font-size: 16.2px;
  line-height: 1.45;
  color: var(--acm-text);
}
.acm-mp-text p {
  margin: 0 0 1em;
}
.acm-mp-text a {
  color: var(--accent);
}

/* ───────── intro ───────── */

.acm-mp-intro {
  padding: 20px 0 10px;
}
.acm-mp-intro__in {
  display: flex;
  align-items: center;
  gap: 48px;
}
.acm-mp-intro__logo {
  flex: 0 0 min(32%, 400px);
}
.acm-mp-intro__logo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.acm-mp-intro .acm-mp-text {
  flex: 1 1 0;
  min-width: 0;
}

/* ───────── categories ───────── */

.acm-mp-tiers {
  margin-top: 50px;
  padding: 50px 0 60px;
  background: linear-gradient(180deg, #fff 0%, var(--mp-soft) 100%);
}
.acm-mp-switch {
  display: flex;
  justify-content: center;
  gap: 4px;
  width: max-content;
  margin: 0 auto 32px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: 0 2px 12px rgba(80, 30, 160, 0.12);
}
.acm-mp-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.acm-mp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 24px 28px;
  border: 1px solid var(--mp-line);
  border-radius: var(--r-lg);
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 30px -18px rgba(60, 20, 130, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}
.acm-mp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(60, 20, 130, 0.45);
}
.acm-mp-card--featured {
  border-color: transparent;
  background: linear-gradient(160deg, var(--acm-purple) 0%, #a700ce 100%);
  color: #fff;
}
.acm-mp-card__badge {
  position: absolute;
  top: -12px;
  padding: 4px 14px;
  border-radius: var(--r-pill);
  background: #ffd84d;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #3b2a00;
}
.acm-mp .acm-mp-card__name {
  margin: 0;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: inherit;
}
.acm-mp-card__price {
  margin: 18px 0 0;
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--accent);
}
.acm-mp-card--featured .acm-mp-card__price {
  color: #fff;
}
.acm-mp-card__per {
  margin: 4px 0 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: #8a7fa0;
}
.acm-mp-card--featured .acm-mp-card__per {
  color: rgba(255, 255, 255, 0.8);
}
.acm-mp-card__note {
  margin: 20px 0 24px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: #6b6380;
}
.acm-mp-card__note--perks {
  font-weight: 700;
  color: #2b8a3e;
}
.acm-mp-card--featured .acm-mp-card__note,
.acm-mp-card--featured .acm-mp-card__note--perks {
  color: #fff;
}
.acm-mp .acm-mp-card__cta {
  margin-top: auto;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--accent);
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
  transition: background-color 0.2s, color 0.2s;
}
.acm-mp .acm-mp-card__cta:hover {
  background: var(--accent);
  color: #fff;
}
.acm-mp .acm-mp-card--featured .acm-mp-card__cta {
  border-color: #fff;
  background: #fff;
  color: var(--acm-purple);
}
.acm-mp .acm-mp-card--featured .acm-mp-card__cta:hover {
  background: rgba(255, 255, 255, 0.85);
}

/* ───────── benefits ───────── */

.acm-mp-benefits {
  padding: 50px 0 10px;
}
.acm-mp-benefits__box {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 36px;
  border-radius: var(--r-lg);
  background: var(--mp-soft);
}
.acm-mp-benefits__title {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
  color: #2c1b4a;
}
.acm-mp-benefits__list ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.acm-mp-benefits__list li {
  position: relative;
  padding-left: 30px;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--acm-text);
}
.acm-mp-benefits__list li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ───────── how to join ───────── */

.acm-mp-join {
  padding: 50px 0 10px;
  scroll-margin-top: 90px;
}
.acm-mp-join__box {
  max-width: 1000px;
  margin: 0 auto;
}
.acm-mp-join__box p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .acm-mp-cards {
    gap: 16px;
  }
  .acm-mp-card__price {
    font-size: 26px;
  }
}

@media (max-width: 767px) {
  .acm-mp-intro__in {
    flex-direction: column;
    gap: 24px;
  }
  .acm-mp-intro__logo {
    flex-basis: auto;
    width: 80%;
  }
  .acm-mp-cards {
    grid-template-columns: minmax(0, 1fr);
    max-width: 360px;
  }
  .acm-mp-benefits__box,
  .acm-mp-benefits__list ul {
    grid-template-columns: minmax(0, 1fr);
  }
}
