/* JOIN US tiers: shared by the desktop page and the phone section */

/* Desktop page (sits in the same shell as THE CITADEL) */

/* Centre the tiers on the screen, not in the space to the right of the left buttons */
#joinPage.jn-page {
  left: 0 !important;
  right: 0 !important;
}

#joinPage .jn-inner {
  width: min(1600px, calc(100vw - 330px)) !important;
  margin: 0 0 0 280px !important;
}

.jn-inner {
  width: min(1600px, calc(100vw - 330px));
  margin-left: 280px;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  justify-items: stretch;
  gap: 30px;
  padding-bottom: 12px;
}

.jn-header {
  text-align: center;
}

.jn-kicker {
  margin-bottom: 8px;
  color: rgba(240, 230, 200, 0.72);
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
}

.jn-title {
  margin: 0;
  color: rgba(240, 230, 200, 0.96);
  font-family: "Cormorant Garamond", "Cinzel", Arial, serif;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.jn-sub {
  margin: 12px 0 0;
  color: rgba(240, 230, 200, 0.7);
  font-family: Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.jn-grid {
  display: grid;
  width: 100%;
  margin-top: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.jn-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  padding: 30px 22px 24px;
  background: rgba(11, 11, 14, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.34);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6);
}

.jn-tier::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 2px;
  background: #00b5ff;
  box-shadow: 0 0 8px rgba(0, 181, 255, 0.7);
}

.jn-tier-name {
  margin: 0;
  color: #d4af37;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.jn-price {
  margin: 18px 0 20px;
  text-align: center;
  color: rgba(240, 230, 200, 0.96);
  font-family: "Cinzel", Arial, serif;
}

.jn-price span {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.jn-price small {
  margin-left: 4px;
  color: rgba(240, 230, 200, 0.6);
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  text-transform: uppercase;
}

.jn-billing {
  display: flex;
  margin: -6px 0 20px;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.jn-bill {
  flex: 1;
  padding: 9px 6px;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: rgba(240, 230, 200, 0.6);
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.jn-bill + .jn-bill {
  border-left: 1px solid rgba(212, 175, 55, 0.4);
}

.jn-bill:hover,
.jn-bill:focus-visible {
  outline: none;
  color: #f0e6c8;
}

.jn-bill.is-active {
  background: linear-gradient(180deg, rgba(0, 181, 255, 0.45), rgba(0, 181, 255, 0.18));
  color: #f0e6c8;
}

.jn-perks {
  margin: 0 0 22px;
  padding: 16px 0 0;
  flex: 1;
  list-style: none;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.jn-perks[hidden] {
  display: none;
}

.jn-perks li {
  margin-bottom: 6px;
  color: rgba(240, 230, 200, 0.74);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 15px;
  line-height: 1.3;
}

.jn-cta {
  display: block;
  width: 100%;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(0, 181, 255, 0.28), rgba(0, 181, 255, 0.1));
  border: 1px solid rgba(0, 181, 255, 0.7);
  border-radius: 0;
  color: #f0e6c8;
  font-family: "Cinzel", Arial, serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 200ms ease, box-shadow 200ms ease;
}

.jn-cta:hover,
.jn-cta:focus-visible {
  outline: none;
  background: linear-gradient(180deg, rgba(0, 181, 255, 0.45), rgba(0, 181, 255, 0.2));
  box-shadow: 0 0 18px rgba(0, 181, 255, 0.35);
}

/* Free tier button: JOIN FREE for visitors, a disabled "signed in" button for members */
.jn-free-cta {
  display: block;
  width: 100%;
}

.jn-cta:disabled {
  background: rgba(11, 11, 14, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: rgba(240, 230, 200, 0.5);
  cursor: not-allowed;
  box-shadow: none;
}

/* Tablet: two columns, with the last tier taking the full row */
@media (max-width: 1100px) {
  .jn-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jn-grid .jn-tier:last-child {
    grid-column: 1 / -1;
    min-height: 0;
    height: auto;
    align-self: start;
    width: min(calc(50% - 7px), 100%);
    justify-self: center;
  }
}

@media (max-width: 600px) {
  .jn-title {
    font-size: 32px;
  }

  .jn-grid {
    grid-template-columns: 1fr;
  }

  .jn-tier {
    min-height: 0;
    padding: 24px 20px 22px;
  }
}

/* Left-hand section buttons on the desktop Join page (same look as the EXPLORE buttons) */
.jn-tabs {
  z-index: 40;
}

.jn-classes {
  display: flex;
  justify-content: center;
}

.jn-classes[hidden],
.jn-grid[hidden],
.m-tiers[hidden] {
  display: none;
}

.jn-class-card {
  width: min(440px, 100%);
}

.jn-class-copy {
  margin: 0 0 26px;
  color: rgba(240, 230, 200, 0.78);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 19px;
  line-height: 1.4;
}

/* Phone section: the same tiers, stacked */
.m-tiers {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.m-tiers .jn-tier {
  min-height: 0;
  padding: 24px 20px 22px;
}

.m-tiers .jn-perks li {
  font-size: 18px;
}

/* Tier 3 and Tier 4 perks: an underlined heading, then bullet points */
.jn-perks-head {
  margin: 14px 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
  line-height: 1.35;
  color: rgba(240, 230, 200, 0.9);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.jn-perks-list {
  list-style: disc;
  padding-left: 1.3em;
}

.jn-perks-list li {
  margin-bottom: 5px;
}
