/* /join/style.css
   Page-specific styles for the /join landing page.
   Scoped to .join-page to avoid impacting the rest of the site.
*/

.join-page {
  /* Wider content on desktop/laptop */
  /* Match main site container width */
  --join-max: 1400px;
  /* More vertical whitespace between sections */
  --join-section-pad-y: 3.25rem;
  --join-section-pad-y-lg:5rem;
  /* More horizontal whitespace inside containers */
  --join-pad-x: clamp(1.5rem, 4.5vw, 3rem);
  /* Consistent spacing after H2 headings */
  --join-h2-gap: 3.25rem;
  /* Consistent gap between 2-column layouts */
  --join-two-col-gap: 4.25rem;
  --join-radius-lg: 28px;
  --join-radius-md: 18px;
  --join-radius-sm: 12px;
  --join-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  --join-shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.08);
  --join-ink: #17301a;
  --join-muted: rgba(23, 48, 26, 0.72);
  --join-cream: #f7f2e8;
  --join-mint: #cfe6d7;
  --join-mint-2: #bfe0cc;
  --join-border: rgba(0, 0, 0, 0.10);
  --join-border-strong: rgba(0, 0, 0, 0.14);
  color: var(--join-ink);
  background: #fff;
}

@media (min-width: 1440px) {
  .join-page {
    --join-max: 1520px;
  }
}

/* Accessibility utility (scoped) */
.join-page .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.join-page .container {
  max-width: var(--join-max);
  padding-left: var(--join-pad-x);
  padding-right: var(--join-pad-x);
}

.join-page a {
  color: inherit;
}

.join-page .skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  color: #000;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  z-index: 9999;
  border: 2px solid rgba(0, 0, 0, 0.2);
}

.join-page .skip-link:focus {
  left: 10px;
}

/* Buttons (scoped) */
.join-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.9rem 1.15rem;
  border-radius: 16px;
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--join-border-strong);
  background: #fff;
  color: var(--join-ink);
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease,
    box-shadow 140ms ease;
  will-change: transform;
}

.join-page .btn:focus-visible {
  outline: 3px solid rgba(52, 169, 16, 0.35);
  outline-offset: 2px;
}

.join-page .btn--primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: none;
}

.join-page .btn--primary:hover {
  transform: translateY(-1px);
  background: #21401f;
  border-color: #21401f;
  color: #fff;
}

.join-page .center {
  margin-top: 1.25rem;
  text-align: center;
}

/* Header */
.join-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.join-header .logo-horizontal {
  /* 1.5x the main site header logo */
  width: 300px;
  height: auto;
}

.join-header__inner {
  /* Header should span wider than page containers (match main site header behaviour) */
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.join-header__cta {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .join-header .logo-horizontal {
    width: min(200px, 45vw);
  }
  .join-header__inner {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }
  .join-header__cta {
    min-height: 40px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
}

/* Shared typography */
.join-page .section-title {
  font-size: clamp(1.45rem, 2.5vw, 2.35rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--primary-color);
  margin: 0 0 var(--join-h2-gap) 0;
}

.join-page .section-title--center {
  text-align: center;
}

.join-page .section-subtitle {
  margin: 0 0 1.5rem 0;
  font-size: 1.05rem;
  color: rgba(23, 48, 26, 0.78);
}

.join-page .section-subtitle--center {
  text-align: center;
}

@media (max-width: 767px) {
  .join-page .section-title,
  .join-page .breaker__title,
  .join-page .final-cta__title,
  .join-page .downsell__title,
  .join-page .readmore-card__title,
  .join-page .model__title,
  .join-page .transparency__title {
    text-align: center;
  }
}

/* Subscription tier note pill (matches hero trust pills) */
.tier-note {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 3.25rem;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.tier-note__text {
  margin: 0;
  color: rgba(23, 48, 26, 0.78);
  font-size: 1.05rem;
}

/* HERO */
.join-page .hero {
  padding: clamp(4.5rem, 5.5vw, 5.5rem) 0 2.5rem;
  background: #C4E5D1;
  /* Override global homepage .hero styles from /style.css */
  background-image: none !important;
  min-height: auto;
  margin-top: 0;
  display: block;
  text-align: left;
  color: var(--join-ink);
  position: relative;
}

.join-page .hero::before {
  /* Remove global homepage hero shading overlay */
  content: none !important;
  display: none !important;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Allow hero grid items to shrink without forcing overflow */
.hero__grid > * {
  min-width: 0;
}

.hero__title {
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem 0;
  color: var(--primary-color);
}

.join-page .hero .hero__title {
  text-align: center;
}

.hero__subhead {
  margin: 0 0 1.2rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(62, 62, 62, 0.85);
  max-width: 58ch;
}

@media (max-width: 520px) {
  /* Hero: allow wrapping on narrow screens (avoid overflow) */
  .hero__subhead {
    max-width: none;
  }

  .hero .trust-strip li,
  .hero .status-pill {
    width: 100%;
    max-width: 100%;
  }

  /* Trust pills: use a 2-col grid so text can wrap cleanly */
  .hero .trust-strip li {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    column-gap: 0.5rem;
  }

  .hero .trust-strip li::before {
    justify-self: center;
  }

  /* Status pill: allow the text to shrink/wrap inside a flex row */
  .hero .status-pill {
    flex-wrap: wrap;
  }

  .hero .status-pill__text {
    min-width: 0;
    flex: 1 1 0%;
  }

  .hero .status-pill__text {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

.hero__cta {
  margin-top: 2.5rem;
  width: 100%;
  display: flex;
}

.trust-strip {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 1rem 0;
  display: grid;
  gap: 0.5rem;
  color: rgba(23, 48, 26, 0.86);
  font-weight: 600;
}

.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(43, 83, 41, 0.16);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.trust-strip li::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background-image: url("/join/assets/icons/Check.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(43, 83, 41, 0.16);
  background: #8BD973;
  box-shadow: none;
  font-weight: 700;
  color: rgba(23, 48, 26, 0.92);
}

.status-pill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.status-pill__icon img {
  width: 22px;
  height: 22px;
  display: block;
}

.hero-media {
  position: relative;
  border-radius: var(--join-radius-lg);
  overflow: hidden;
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: #0f1a12;
  /* Match the actual video format */
  aspect-ratio: 16 / 9;
}

.hero-media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  transition: transform 0.3s ease;
}

.hero-media:hover .hero-media__img {
  transform: scale(1.01);
}

.hero-media__play {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.hero-media__play:focus-visible {
  outline: 3px solid rgba(52, 169, 16, 0.55);
  outline-offset: -6px;
}

.hero-media__play-icon {
  /* Match the main site's circular play button */
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
  position: relative;
}

.hero-media__play-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-35%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 18px;
  border-color: transparent transparent transparent #000;
}

@media (max-width: 768px) {
  .hero-media__play-icon {
    width: 60px;
    height: 60px;
  }
  .hero-media__play-icon::before {
    border-width: 10px 0 10px 15px;
  }
}

@media (max-width: 480px) {
  .hero-media__play-icon {
    width: 48px;
    height: 48px;
  }
  .hero-media__play-icon::before {
    border-width: 8px 0 8px 12px;
  }
}

@media (min-width: 900px) {
  .hero {
    padding-bottom: 3rem;
  }
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: var(--join-two-col-gap);
  }
  /* Explicit placement: heading full-width row 1, then copy left / media right in row 2 */
  .hero__title {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  /* Keep "exclusive savings and prizes" on one line (typically the last line) on desktop */
  .hero__title .hero__title-phrase {
    white-space: nowrap;
  }
  .hero__copy {
    grid-column: 1;
    grid-row: 2;
  }
  .hero__media {
    grid-column: 2;
    grid-row: 2;
  }
}

/* PARTNERS */
.partners {
  padding: var(--join-section-pad-y) 0;
  background: #F6F2EA;
}

.partners .section-title {
  text-align: center;
}

.partner-carousel {
  margin-top: 3.25rem;
  /* Full-bleed carousel (break out of .container) */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  --carousel-arrow-inset: clamp(1.25rem, 2.4vw, 2.25rem);
  --carousel-edge-shade: calc(var(--carousel-arrow-inset) + 84px);
}

.partner-carousel::before,
.partner-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--carousel-edge-shade);
  z-index: 2; /* below arrows (3), above cards (default) */
  pointer-events: none;
}

.partner-carousel::before {
  left: 0;
  background: linear-gradient(90deg, rgba(15, 36, 19, 0.12) 0%, rgba(15, 36, 19, 0) 72%);
}

.partner-carousel::after {
  right: 0;
  background: linear-gradient(270deg, rgba(15, 36, 19, 0.12) 0%, rgba(15, 36, 19, 0) 72%);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(43, 83, 41, 0.18);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  color: var(--primary-color);
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
}

.carousel-arrow span {
  font-size: 1.9rem;
  line-height: 1;
  transform: translateY(-1px);
}

.carousel-arrow:hover {
  background: #fff;
}

.carousel-arrow:focus-visible {
  outline: 3px solid rgba(52, 169, 16, 0.35);
  outline-offset: 2px;
}

.carousel-arrow--left {
  left: var(--carousel-arrow-inset);
}

.carousel-arrow--right {
  right: var(--carousel-arrow-inset);
}

.partner-carousel__viewport {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  /* Add edge gutters so cards can "peek" */
  padding: 0.6rem clamp(1rem, 4vw, 2.5rem);
  scroll-snap-type: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

@media (max-width: 520px) {
  .carousel-arrow {
    width: 42px;
    height: 42px;
  }
}

.partner-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.partner-carousel__viewport.is-dragging {
  cursor: grabbing;
}

.partner-card {
  scroll-snap-align: center;
  flex: 0 0 auto;
  /* Wider cards so it's obvious this is scrollable */
  width: clamp(180px, 42vw, 230px);
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: var(--join-radius-md);
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow: none;
  padding: 1.25rem 1rem 1.15rem;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 0.85rem;
}

.partner-card img {
  width: 100%;
  max-width: 92%;
  height: auto;
  max-height: 78px;
  object-fit: contain;
  display: block;
  /* Prevent native image dragging from blocking carousel drag */
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.partner-card__offer {
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--primary-color);
  text-align: center;
  line-height: 1.15;
}

@media (max-width: 520px) {
  /* Mobile: show multiple cards at once (4+ visible) */
  .partner-carousel__viewport {
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
  }

  .partner-card {
    width: clamp(78px, 20vw, 104px);
    padding: 0.8rem 0.6rem 0.7rem;
  }

  .partner-card img {
    max-height: 56px;
  }

  .partner-card__offer {
    font-size: 0.65rem;
    line-height: 1.05;
  }
}

/* (No desktop override needed; clamp handles sizing) */

/* BENEFITS */
.benefits {
  padding: var(--join-section-pad-y-lg) 0 1.25rem;
  background: #FFFFFF;
}

.benefits .section-title {
  color: var(--primary-color);
  text-align: center;
}

.benefit-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.benefit-card {
  background: #F6F2EA;
  border-radius: var(--join-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: none;
  padding: 1.35rem 1.25rem;
  text-align: center;
}

.benefit-card__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: transparent;
  margin: 0 auto 0.9rem;
}

.benefit-card__icon img {
  width: 40px;
  height: 40px;
  display: block;
}

.benefit-card__title {
  margin: 0 0 0.4rem 0;
  color: var(--primary-color);
  font-size: 1.2rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  /* Make titles consistently 2 lines tall */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.3em; /* ~2 lines at 1.15 line-height */
}

.benefit-card__text {
  margin: 0;
  color: rgba(23, 48, 26, 0.78);
  text-align: center;
}

@media (min-width: 768px) {
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1100px) {
  .benefit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* TESTIMONIALS (Lite) */
.testimonials-lite {
  padding: var(--join-section-pad-y-lg) 0 2rem;
  background: #fff;
}

.testimonials-lite .section-title {
  text-align: center;
}

/* Ensure CTA has 3.25rem space above it in Lite testimonials section */
.testimonials-lite .center {
  margin-top: 3.25rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.testimonial-grid--lite {
  /* Inset cards without affecting the heading */
  padding: 0 clamp(0.75rem, 3.5vw, 2.25rem);
}

.testimonial-card {
  margin: 0;
  background: #fff;
  border-radius: var(--join-radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow: none;
  padding: 1.25rem 1.15rem;
  text-align: center;
}

/* Lite testimonials: align names consistently */
.testimonial-grid--lite .testimonial-card {
  display: flex;
  flex-direction: column;
}

.testimonial-grid--lite .testimonial-card__quote {
  flex: 1 1 auto;
}

.testimonial-grid--lite .testimonial-card__name {
  margin-top: auto;
}

.testimonial-card__photo {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.85rem;
  border: 2px solid #fff;
  box-shadow: none;
}

.testimonial-card__quote {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(23, 48, 26, 0.9);
}

.testimonial-card__name {
  font-weight: 800;
  color: rgba(23, 48, 26, 0.72);
}

@media (min-width: 900px) {
  .testimonial-grid--lite {
    /* 3 slimmer cards, centered */
    grid-template-columns: repeat(3, minmax(0, 280px));
    gap: 1.25rem;
    justify-content: center;
    padding: 0;
  }
}

/* NEXT 100 */
.next100 {
  padding: var(--join-section-pad-y-lg) 0;
  background: #fff;
}

.next100__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.next100__media {
  border-radius: var(--join-radius-lg);
  overflow: hidden;
  border: 0;
  box-shadow: none;
  background: #000;
  position: relative;
}

.next100__img {
  width: 100%;
  height: auto;
  display: block;
}

.next100__main {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--join-radius-lg);
  border: 0;
  box-shadow: none;
  padding: 1.5rem 1.25rem;
}

.next100__main > .btn {
  width: 100%;
  display: flex;
  background: #34A910;
  border: 1px solid #34A910;
  color: #fff;
}

.next100__main > .btn:hover {
  transform: translateY(-1px);
  background: #21401f;
  border-color: #21401f;
  color: #fff;
}

.next100__copy p {
  margin: 0 0 0.65rem 0;
  color: rgba(23, 48, 26, 0.86);
}

.next100__copy {
  margin-bottom: 3.25rem;
}

.next100__aside {
  background: #BFE0CC;
  border-radius: var(--join-radius-lg);
  border: 0;
  box-shadow: none;
  padding: 1.25rem 1.15rem;
  margin-top: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.card-title {
  margin: 0 0 0.75rem 0;
  color: var(--primary-color);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.next100__aside p {
  margin: 0 0 0.75rem 0;
  color: rgba(23, 48, 26, 0.85);
}

@media (min-width: 1024px) {
  .next100__grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: var(--join-two-col-gap);
  }
  .next100__media {
    grid-column: 1;
    grid-row: 1;
  }
  .next100__main {
    grid-column: 2;
    grid-row: 1;
  }
}

/* WHY THIS MODEL WORKS */
.why-model {
  padding: var(--join-section-pad-y-lg) 0;
  background: #fff;
}

.next100:has(+ .why-model) {
  padding-bottom: 2.5rem;
}

.next100 + .why-model {
  padding-top: 2.5rem;
}

.why-model__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  display: grid;
  gap: 0.65rem;
}

/* Ensure CTA has 3.25rem space above it in Why-model section */
.why-model__copy {
  display: flex;
  flex-direction: column;
}

.why-model__copy > .checklist {
  margin-bottom: 0;
}

.why-model__copy > .btn {
  margin-top: 3.25rem;
  width: auto;
  align-self: center;
}

.checklist li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: rgba(23, 48, 26, 0.86);
  font-weight: 600;
  /* Pill style (match hero trust pills) */
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  border: 0;
  background: #F6F2EA;
}

.checklist li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  background-image: url("/join/assets/icons/Check.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.why-model__media {
  border-radius: var(--join-radius-lg);
  overflow: hidden;
  border: 0;
  box-shadow: none;
  background: #000;
}

.why-model__img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 1024px) {
  .why-model__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5.25rem;
  }
}

/* Hero lead (thin section below hero, above partners) */
.hero-lead {
  padding: 2rem var(--join-pad-x) 2.5rem;
  text-align: center;
}

.hero-lead__text {
  margin: 0;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: rgba(23, 48, 26, 0.88);
}

/* Impact intro (lead-in to membership) */
.why-model:has(+ .impact-intro) {
  padding-bottom: 2rem;
}

.impact-intro {
  padding: 2rem var(--join-pad-x) 4rem;
  text-align: center;
}

.impact-intro__text {
  margin: 0;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: rgba(23, 48, 26, 0.88);
}

/* MEMBERSHIP TIERS */
.join-membership {
  /* Wider tier cards + slightly reduced side padding vs other sections */
  --join-max: 1720px;
  --join-pad-x: clamp(0.75rem, 2.2vw, 1.5rem);
  padding: calc(var(--join-section-pad-y-lg) + 0.25rem) 0;
  background: var(--join-mint);
}

.subscription-tiers {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Mobile stacked tiers: add breathing room for the badge */
@media (max-width: 899px) {
  .subscription-tiers {
    gap: 1.9rem;
  }
}

.tier {
  position: relative;
  background: #fff;
  border-radius: var(--join-radius-lg);
  border: 2px solid rgba(43, 83, 41, 0.18);
  box-shadow: none;
  padding: 1.35rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
}

.tier.most-popular {
  border-color: rgba(52, 169, 16, 0.65);
}

.most-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-color);
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
  box-shadow: none;
}

.tier h3 {
  margin: 0.25rem 0 0.65rem 0;
  color: var(--primary-color);
  font-size: 1.15rem;
  text-align: center;
}

.price-block {
  text-align: center;
  margin-bottom: 0.9rem;
}

.price {
  margin: 0;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: #111;
}

.price span {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.55);
  margin-left: 0.25rem;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1 1 auto;
  margin: 0;
}

.join-page .whats-included {
  /* Override global /style.css divider + fixed height */
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  height: auto;
  display: flex;
  flex-direction: column;
}

.whats-included h4,
.early-bird-perks h4,
.next100-bonus__title {
  margin: 0 0 0.65rem 0;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(23, 48, 26, 0.72);
  text-align: center;
}

.tier-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

/* Early-Bird alignment is handled via JS to match the tallest card reliably. */

.tier-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: rgba(23, 48, 26, 0.85);
}

.early-bird-perks .tier-list .tier-item:first-child {
  white-space: nowrap;
}

.tier-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  opacity: 0.92;
  margin-top: 2px;
}

.tier-icon-wrap {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: inline-block;
  margin-top: 2px; /* match previous .tier-icon vertical alignment */
}

.tier-icon-wrap .tier-icon {
  width: 100%;
  height: 100%;
  margin-top: 0; /* wrapper now controls the vertical offset */
  display: block;
}

/* Little green plus overlay (for loyalty ticket icon) */
.tier-icon-wrap--plus::before {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #34A910;
  box-shadow: 0 0 0 2px #fff; /* crisp edge on light/green backgrounds */
  pointer-events: none;
}

.tier-icon-wrap--plus::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background:
    linear-gradient(#fff, #fff) center / 6px 2px no-repeat,
    linear-gradient(#fff, #fff) center / 2px 6px no-repeat;
  pointer-events: none;
}

.early-bird-perks {
  margin-top: 0;
  background: rgba(224, 232, 223, 0.55);
  border-radius: var(--join-radius-md);
  padding: 0.95rem 0.95rem;
  border: 0;
}

.next100-bonus {
  margin-top: 0;
  background: #F6F2EA;
  border-radius: var(--join-radius-md);
  padding: 0.95rem 0.95rem;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
  color: rgba(23, 48, 26, 0.85);
  font-size: 1rem;
  font-weight: 400;
}

.next100-bonus__row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  justify-content: flex-start;
}

.next100-bonus__title {
  text-align: center;
  margin-bottom: 0.25rem;
}

.next100-bonus__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: block;
}

.next100-bonus__text {
  min-width: 0;
}

.join-page .subscribe-button {
  margin-top: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: #fff;
  text-decoration: none;
  transition: transform 140ms ease, background-color 140ms ease;
}


.join-page .subscribe-button:hover {
  transform: translateY(-1px);
  background: #21401f;
  color: #fff;
}

.subscription-note {
  margin: 1rem auto 0;
  text-align: center;
  color: rgba(23, 48, 26, 0.72);
  max-width: 80ch;
}

@media (min-width: 900px) {
  .subscription-tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1280px) {
  .subscription-tiers {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* MAIN TESTIMONIALS */
.testimonials {
  padding: var(--join-section-pad-y-lg) 0 3rem;
  background: #fff;
}

/* Ensure CTA has 3.25rem space above it in Testimonials section */
.testimonials .center {
  margin-top: 3.25rem;
}

.testimonial-scroller {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.35rem 0.25rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.testimonial-scroller::-webkit-scrollbar {
  display: none;
}

.testimonial-scroller.is-dragging {
  cursor: grabbing;
}

.testimonial-card--wide {
  flex: 0 0 auto;
  width: min(320px, 82vw);
}

.testimonial-mobile-carousel {
  position: relative;
}

.testimonial-arrow {
  display: none;
}

/* Mobile: 2-row horizontal carousel + peek + arrow */
@media (max-width: 767px) {
  .testimonial-scroller {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    column-gap: 0.95rem;
    row-gap: 0.95rem;
    align-items: stretch;
    overflow-x: auto;
    padding: 0.25rem 0.75rem 0.25rem;
    cursor: grab;
    touch-action: pan-x pan-y; /* allow both: horizontal carousel + vertical page scroll */
  }

  .testimonial-card--wide {
    width: min(260px, 74vw); /* narrow enough to show next column peeking */
  }

  .testimonial-arrow {
    display: inline-flex;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-color);
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    line-height: 1;
    box-shadow: none;
    z-index: 3;
    cursor: pointer;
  }

  .testimonial-arrow::before {
    content: "";
    position: absolute;
    inset: -12px -10px -12px -40px;
    background: linear-gradient(270deg, rgba(15, 36, 19, 0.10) 0%, rgba(15, 36, 19, 0) 70%);
    pointer-events: none;
    z-index: -1;
  }

  .testimonial-arrow[disabled] {
    opacity: 0.35;
    cursor: default;
  }
}

/* Mobile: thinner testimonial cards in the scroller */
@media (max-width: 520px) {
  .testimonial-card--wide {
    width: min(260px, 74vw);
  }
}

/* Desktop: static grid (no carousel) */
@media (min-width: 900px) {
  .testimonial-scroller {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 280px));
    justify-content: center;
    gap: 1.25rem;
    overflow: visible;
    padding: 0;
    cursor: default;
    user-select: auto;
    -webkit-user-select: auto;
    touch-action: auto;
  }

  .testimonial-scroller.is-dragging {
    cursor: default;
  }

  .testimonial-scroller .testimonial-card--wide {
    flex: initial;
    width: auto;
  }
}

/* Larger screens: show all 6 testimonials on one row */
@media (min-width: 1400px) {
  .testimonial-scroller {
    grid-template-columns: repeat(6, minmax(0, 220px));
    gap: 1rem;
  }
}

@media (min-width: 1200px) {
  .testimonial-card--wide {
    width: 232px; /* 5-up visual on large desktops */
  }
}

/* BREAKER */
.breaker {
  padding: 3rem 0;
  background: #fff;
}

.breaker__banner-wrap {
  position: relative;
  border-radius: var(--join-radius-lg);
  overflow: hidden;
  /* Desktop: let image define height (no fixed crop box) */
  height: auto;
}

.breaker__banner {
  width: 100%;
  height: auto;
  display: block;
}

.breaker__banner-wrap picture {
  display: block;
}

.breaker__overlay {
  display: none;
}

.breaker__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(1.25rem, 3.2vw, 2.25rem);
  color: #fff;
  z-index: 1;
}

@media (max-width: 710px) {
  /* Mobile: ensure banner is tall enough for overlay text */
  .breaker__banner-wrap {
    height: clamp(380px, 95vw, 560px);
    background: #274A33; /* match banner fill so corners look consistent */
  }
  .breaker__banner-wrap picture {
    position: absolute;
    inset: 0;
  }
  .breaker__banner {
    position: absolute;
    left: 0;
    bottom: 0; /* anchor to bottom so plants always show */
    background: transparent;
  }

  .breaker__content {
    padding: 1rem;
  }

  .breaker__title {
    font-size: clamp(1.5rem, 5.2vw, 2.15rem);
    line-height: 1.05;
    margin-bottom: 0.8rem;
  }

  .breaker__text {
    font-size: 0.95rem;
    line-height: 1.35;
    margin-bottom: 0.95rem;
    max-width: 46ch;
  }

  .breaker__link {
    font-size: 0.95rem;
  }
}

/* Re-style these for the banner overlay */
.breaker__title {
  /* Match H1 sizing */
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #8BD973;
  margin: 0 0 1.1rem 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.breaker__text {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.3rem 0;
  max-width: 70ch;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.breaker__link {
  color: #fff;
  font-weight: 800;
  text-underline-offset: 5px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.breaker__link:focus-visible {
  outline: 3px solid rgba(52, 169, 16, 0.35);
  outline-offset: 4px;
}

.breaker__inner {
  display: none;
}

/* STORY / READMORE */
.story {
  padding: 3rem 0 var(--join-section-pad-y-lg);
  background: #fff;
  --longform-pad-y: 1.35rem;
  --longform-pad-x: 1.25rem;
}

.story .section-title {
  /* Match H1 sizing for "Our Story" */
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.readmore-card {
  margin: 1.25rem 0 0;
  background: #fff;
  border-radius: var(--join-radius-lg);
  border: 0;
  box-shadow: none;
  overflow: hidden;
}

.story .readmore-card + .readmore-card {
  margin-top: 6rem;
}

@media (max-width: 767px) {
  .story .readmore-card + .readmore-card {
    margin-top: 1.5rem;
  }
}

.readmore-card__grid {
  display: grid;
  grid-template-columns: 1fr;
}

.readmore-card__media {
  overflow: hidden;
  max-height: 360px; /* keep current mobile feel */
  transition: max-height 240ms ease;
  border-radius: var(--join-radius-lg); /* ensure all image corners are rounded */
}

.readmore-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0; /* wrapper controls the rounding (prevents square inner corners) */
}

.readmore-card__content {
  padding: var(--longform-pad-y) var(--longform-pad-x);
}

.readmore-card__title {
  margin: 0 0 2.5rem 0;
  color: var(--primary-color);
  /* Match join-page H2 sizing */
  font-size: clamp(1.45rem, 2.5vw, 2.35rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.readmore-card__subtitle {
  margin: 0 0 2rem 0;
  color: rgba(23, 48, 26, 0.78);
  font-weight: 600;
  font-size: 1.2rem; /* match .benefit-card__title */
  line-height: 1.5;
}

.readmore-card__excerpt p,
.readmore-card__more p {
  margin: 0 0 1rem 0;
  color: rgba(23, 48, 26, 0.86);
}

/* Collapsed read-more: show trailing ellipsis after the excerpt */
.readmore-card:not(.is-expanded) .readmore-card__excerpt p:last-child::after {
  content: "...";
}

.readmore-card__toggle {
  border: 0;
  background: transparent;
  color: var(--primary-color);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  padding: 0.25rem 0;
}

.readmore-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 0.25rem;
}

@media (min-width: 1024px) {
  .readmore-card.is-expanded .readmore-card__grid {
    column-gap: 3rem;
    align-items: stretch; /* allow image to match expanded text height */
  }

  .readmore-card__grid {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    column-gap: 2rem;
  }
  .readmore-card__grid--reverse {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .readmore-card__grid--reverse .readmore-card__media {
    order: 2;
  }

  /* Desktop: collapsed image is smaller; expanded grows smoothly */
  .readmore-card__media {
    /* Collapsed: start taller than the excerpt text */
    max-height: clamp(360px, 32vw, 440px);
  }
  .readmore-card:not(.is-expanded) .readmore-card__media {
    /* Explicit height forces cropping so object-position can anchor to centre */
    height: clamp(360px, 32vw, 440px);
    min-height: clamp(360px, 32vw, 440px);
  }
  .readmore-card.is-expanded .readmore-card__media {
    /* Use a large cap (instead of 'none') so the max-height transition still works */
    max-height: 2000px;
    height: auto;
    min-height: 0;
  }

  /* Collapsed: crop to fill, anchored to centre so we see the middle of the image */
  .readmore-card:not(.is-expanded) .readmore-card__media img {
    object-fit: cover;
    object-position: 50% 50% !important;
  }

  /* Expanded: fill the column height (matches the text column) */
  .readmore-card.is-expanded .readmore-card__media img {
    object-fit: cover;
  }
}

/* MODEL GRID */
.model {
  margin-top: 2.25rem;
  padding: var(--join-section-pad-y) 0 0;
  margin-bottom: 4rem; /* space before next read-more card (Why incentives matter) */
}

.model .container {
  /* Slightly closer to edges than global join padding */
  --join-pad-x: clamp(1.0rem, 3.4vw, 2.25rem);
}

.model__title {
  margin: 0;
  text-align: center;
  color: var(--primary-color);
  /* Match long-form read-more title sizing so this h3 aligns with "Why the current system falls short" */
  font-size: clamp(1.45rem, 2.5vw, 2.35rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.model__subtitle {
  margin: 0.75rem auto 1.5rem;
  text-align: center;
  max-width: 80ch;
  color: rgba(23, 48, 26, 0.78);
}

.model-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.model-card {
  background: var(--join-cream);
  border-radius: var(--join-radius-lg);
  border: 0;
  overflow: hidden;
  box-shadow: none;
}

.model-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  border-radius: var(--join-radius-lg) var(--join-radius-lg) 0 0;
}

.model-card h4 {
  margin: 0;
  padding: 1.75rem 3rem 1rem;
  color: var(--primary-color);
  text-align: center;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.model-card p {
  margin: 0;
  padding: 0 2rem 1.75rem;
  text-align: center;
  color: rgba(23, 48, 26, 0.82);
}

@media (min-width: 768px) {
  .model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem; /* equal row/column gap */
  }
}

@media (min-width: 1200px) {
  .model-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem; /* equal row/column gap */
  }
}

.model__in-short {
  max-width: 92ch;
  margin: 1.6rem auto 0;
  color: rgba(23, 48, 26, 0.86);
  text-align: center;
}

/* Ensure CTA has 3.25rem space above it in Model section */
.model .center {
  margin-top: 3.25rem;
}

/* TRANSPARENCY */
.transparency {
  margin-top: 2.25rem;
}

.transparency__inner {
  border-radius: var(--join-radius-lg);
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: 1fr;
}

.transparency__copy {
  padding: var(--longform-pad-y) var(--longform-pad-x);
}

.transparency__title {
  margin: 0 0 2.5rem 0;
  color: var(--primary-color);
  /* Match long-form read-more title sizing */
  font-size: clamp(1.45rem, 2.5vw, 2.35rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.transparency__subtitle {
  margin: 0 0 2rem 0;
  color: rgba(23, 48, 26, 0.78);
  font-weight: 600;
  /* Match long-form read-more subtitle sizing */
  font-size: 1.2rem;
  line-height: 1.5;
}

.transparency__copy p {
  color: rgba(23, 48, 26, 0.86);
  margin: 0 0 1rem 0;
}

.transparency__copy p:last-child {
  margin-bottom: 0;
}

.transparency__media {
  border-radius: var(--join-radius-lg);
  overflow: hidden;
}

.transparency__media img {
  width: 100%;
  height: auto; /* show full (cropped) image */
  max-height: none;
  display: block;
}

@media (min-width: 1024px) {
  .transparency__inner {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 2rem; /* match long-form read-more column gap */
  }
  .transparency__media {
    border-radius: var(--join-radius-lg);
    overflow: hidden;
  }
  .transparency__media img {
    /* Reduce displayed size but keep aspect ratio (no cropping) */
    width: 100%;
    height: auto;
    max-height: clamp(360px, 32vw, 440px); /* match collapsed read-more image size */
    object-fit: contain;
  }
}

/* FAQ */
.faq {
  padding: var(--join-section-pad-y-lg) 0;
  background: transparent;
  position: relative;
}

/* Full-bleed FAQ background (edge-to-edge) */
.faq::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--join-cream);
  z-index: -1;
}

.faq__list {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--join-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.75);
}

.faq__q {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 1.15rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.3;
  color: rgba(23, 48, 26, 0.95);
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.faq__q:focus-visible {
  outline: 3px solid rgba(52, 169, 16, 0.35);
  outline-offset: -3px;
}

.faq__icon {
  font-size: 1.3rem;
  color: var(--primary-color);
  transition: transform 160ms ease;
}

.faq__q[aria-expanded="true"] .faq__icon {
  transform: rotate(45deg);
}

.faq__a {
  padding: 0.9rem 1.15rem 1.15rem;
  background: rgba(224, 232, 223, 0.45);
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.faq__a p {
  margin: 0 0 0.8rem 0;
  color: rgba(23, 48, 26, 0.86);
}

.faq__a p:last-child {
  margin-bottom: 0;
}

.faq__a ul {
  margin: 0 0 0.9rem 0;
  padding-left: 1.25rem; /* indent bullets */
  list-style-position: outside;
}

.faq__a li {
  margin: 0.35rem 0;
  color: rgba(23, 48, 26, 0.86);
}

.faq__a ul:last-child {
  margin-bottom: 0;
}

/* FINAL CTA */
.final-cta {
  padding: calc(var(--join-section-pad-y-lg) + 0.25rem) 0;
  background: #0f2413 url("/join/assets/images/bottom_banner.png") center / cover no-repeat;
}

.final-cta__inner {
  text-align: center;
}

.final-cta__title {
  margin: 0 0 2.75rem 0;
  color: #8BD973;
  font-size: clamp(5rem, 5vw, 3.85rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.final-cta__title span,
.final-cta__subtitle span {
  display: block;
  white-space: nowrap;
}

.final-cta__subtitle {
  margin: 0 0 3rem 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.5rem;
  line-height: 1.45;
}

@media (max-width: 520px) {
  .final-cta__title {
    font-size: clamp(1.75rem, 8.2vw, 2.35rem);
  }
  .final-cta__subtitle {
    font-size: clamp(0.85rem, 3.9vw, 1.05rem);
    line-height: 1.35;
  }
}

.final-cta .btn--primary {
  background: #fff;
  border-color: #fff;
  color: var(--primary-color);
  min-width: min(420px, 100%);
  padding-left: 2rem;
  padding-right: 2rem;
}

.final-cta .btn--primary:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.92);
  color: var(--primary-color);
}

/* DOWNSELL */
.downsell {
  padding: 3.75rem 0 0;
  background: transparent;
}

.downsell__grid {
  border-radius: var(--join-radius-lg);
  background: #2F5539;
  border: 0;
  box-shadow: none;
  padding: 0.5rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
  text-align: left; /* don't inherit centered alignment */
}

.downsell__copy {
  padding-left: 3.75rem;
}

@media (max-width: 1023px) {
  .downsell__copy {
    padding-left: 0;
    text-align: center;
  }
  .downsell__grid {
    padding: 1rem 1rem 0.5rem;
  }
}

.downsell__title {
  margin: 0 0 0.5rem 0;
  color: #8BD973;
  font-size: clamp(1.55rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
}

.downsell__subtitle {
  margin: 0 0 0.2rem 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 1rem;
}

.downsell__subtitle em {
  font-style: italic !important;
  color: #8BD973;
  font-size: 1.2em;
}

.downsell__form {
  position: relative;
  background: #2F5539;
  border: 0;
  border-radius: var(--join-radius-lg);
  padding: 0.35rem 0.75rem;
}

/* Klaviyo embedded form theming (inside downsell) */
.downsell__form :is(input, select, textarea) {
  background: #254632;
  color: #fff;
  border: 0;
  -webkit-text-fill-color: #fff; /* override injected autofill/text styling */
}

.downsell__form :is(input, select, textarea)::placeholder {
  color: rgba(255, 255, 255, 0.9);
}

.downsell__form :is(input, select, textarea)[style],
.downsell__form :is(input, select, textarea)[class] {
  background-color: #254632 !important;
  color: #fff !important;
}

.downsell__form :is(input, select, textarea):focus {
  outline: 3px solid rgba(139, 217, 115, 0.35);
  outline-offset: 2px;
}

/* WebKit autofill can force its own colors */
.downsell__form input:-webkit-autofill,
.downsell__form textarea:-webkit-autofill,
.downsell__form select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #254632 inset !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff !important;
}

.downsell__form button,
.downsell__form [type="submit"] {
  background: #fff !important;
  color: var(--primary-color) !important;
  border: 0 !important;
}

.downsell__form button:hover,
.downsell__form [type="submit"]:hover {
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--primary-color) !important;
}

.downsell__klaviyo-note {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e69500;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
  z-index: 1;
  transform: rotate(-28deg);
  white-space: nowrap;
}

.downsell__form {
  text-align: center;
}

/* Temporarily hide Klaviyo form intro copy (title/description) */
.downsell__form .klaviyo-form-RL2xER :is(h1, h2, h3) {
  display: none !important;
}

.downsell__form .klaviyo-form-RL2xER p:nth-of-type(-n + 2) {
  display: none !important;
}

/* Fallback link when Klaviyo form doesn't load (e.g. VPN/blocker) */
.downsell__form-fallback {
  display: none;
  margin: 0;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
}

.downsell__form-fallback a {
  color: #8BD973;
  text-decoration: underline;
}

.downsell__form-fallback a:hover {
  color: #a8e88a;
}

.downsell__form--show-fallback .klaviyo-form-RL2xER {
  display: none !important;
}

.downsell__form--show-fallback .downsell__form-fallback {
  display: block;
}

/* Success message after Klaviyo form submit */
.downsell__form-success {
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.downsell__form-success[hidden] {
  display: none !important;
}

.downsell__form-success__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #8BD973;
}

#downsell-form-inner[hidden] {
  display: none !important;
}

@media (min-width: 1024px) {
  .downsell__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--join-two-col-gap);
  }
}

/* Sticky CTA (mobile-only) - disabled */
.sticky-cta {
  display: none !important;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  transform: translateY(120%);
  transition: transform 160ms ease;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
}

.sticky-cta__inner {
  max-width: var(--join-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.sticky-cta__text {
  font-size: 0.92rem;
  color: rgba(23, 48, 26, 0.92);
  line-height: 1.2;
}

.sticky-cta__btn {
  border-radius: 14px;
  min-height: 44px;
  padding: 0.75rem 0.95rem;
  white-space: nowrap;
}

.sticky-cta--show {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .sticky-cta {
    display: none;
  }
}

/* Video modal (no-exit) */
.video-modal[hidden] {
  display: none !important;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.video-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
}

.video-modal__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1000px, calc(100vw - 2rem));
  border-radius: var(--join-radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: none;
}

.video-modal__close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.video-modal__close:focus-visible {
  outline: 3px solid rgba(52, 169, 16, 0.55);
  outline-offset: 2px;
}

.video-modal__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-modal__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Blocks top-right YouTube branding click-out area (best-effort; iframe is cross-origin) */
.video-modal__noexit {
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 72px;
  z-index: 2;
  pointer-events: auto;
  background: transparent;
}

.join-page.modal-open {
  overflow: hidden;
}

/* JOIN FOOTER (reused; scoped) */
body.join-page .footer.join-footer {
  background: var(--primary-color);
  color: rgba(255, 255, 255, 0.72);
  padding: var(--join-section-pad-y) 0 1.5rem;
}

body.join-page .footer.join-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

body.join-page .footer.join-footer a:hover {
  text-decoration: underline;
  color: rgba(255, 255, 255, 0.95);
}

.join-footer-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.join-footer-row--top {
  margin-bottom: 1.5rem;
}

.join-footer-col--left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.join-footer-contact {
  font-size: 0.92rem;
  margin: 0;
}

.join-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.92rem;
  justify-content: flex-start;
}

.join-footer-col--right {
  max-width: 72ch;
}

.join-footer-ack {
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}

.join-footer-row--bottom {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.join-footer-legal {
  margin: 0;
  max-width: 70ch;
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.9;
}

.social-traders-mark {
  flex: 0 0 auto;
  width: 88px;
  height: auto;
  opacity: 0.92;
}

@media (min-width: 768px) {
  .join-footer-row--top {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
    gap: 2.5rem;
  }
  .join-footer-col--right {
    justify-self: end;
  }
}

@media (max-width: 767px) {
  .join-footer-links {
    justify-content: center;
    text-align: center;
  }
  .join-footer-row--bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  body.join-page .footer.join-footer {
    padding-bottom: calc(1.5rem + 80px + env(safe-area-inset-bottom));
  }
}

