.join-page {
  background: var(--paper);
}

.join-hero {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #eee7df;
  border-radius: 32px;
  background: var(--cream);
}

.join-header {
  grid-template-columns: auto 1fr;
}

.join-back {
  justify-self: end;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.join-back:hover {
  color: var(--green-dark);
}

.join-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 84px;
  align-items: end;
  padding: 78px 64px 72px;
}

.join-intro h1,
.join-section-heading h2,
.before-payment h2 {
  margin: 14px 0 0;
  font-weight: 480;
  letter-spacing: 0;
  line-height: 1.14;
}

.join-intro h1 {
  font-size: clamp(52px, 5.1vw, 68px);
}

.join-intro h1 em,
.join-section-heading h2 em,
.before-payment h2 em {
  position: relative;
  z-index: 0;
  display: inline-block;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 600;
}

.join-intro h1 em::after,
.join-section-heading h2 em::after,
.before-payment h2 em::after {
  position: absolute;
  right: -2px;
  bottom: 3px;
  left: -2px;
  z-index: -1;
  height: 6px;
  border-radius: 999px;
  background: var(--coral);
  content: "";
  transform: rotate(-1deg);
}

.join-intro-copy {
  max-width: 490px;
  padding-bottom: 5px;
}

.join-intro-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.82;
}

.join-intro-copy p + p {
  margin-top: 14px;
}

.join-intro-copy strong {
  color: var(--ink);
}

.join-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-top: 26px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}

.join-controls > div:first-child > p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.market-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
}

.market-switch button {
  min-width: 122px;
  min-height: 42px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 700 12px/1.2 var(--sans);
  letter-spacing: 0;
  cursor: pointer;
}

.market-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 5px 16px rgba(27, 22, 36, 0.14);
}

.checkout-readiness {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 12px;
  padding: 16px 22px;
  border-radius: 16px;
  background: #fff2ce;
}

.checkout-readiness[hidden] {
  display: none;
}

.checkout-readiness p {
  margin: 0;
  color: #554621;
  font-size: 12px;
}

.checkout-readiness a {
  flex: 0 0 auto;
  color: #554621;
  font-size: 11px;
  font-weight: 760;
  text-underline-offset: 3px;
}

.shared-access {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: 58px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 38px;
}

.shared-access h2 {
  max-width: 320px;
  margin: 13px 0 0;
  font-size: 36px;
  font-weight: 520;
  line-height: 1.28;
}

.shared-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.shared-access-grid article {
  min-height: 126px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.shared-access-grid strong,
.shared-access-grid span {
  display: block;
}

.shared-access-grid strong {
  font-size: 15px;
}

.shared-access-grid span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.join-plans {
  padding: 54px 0 84px;
}

.join-section-heading {
  max-width: 820px;
  margin-bottom: 38px;
}

.join-section-heading h2 {
  font-size: 52px;
}

.join-section-heading h2 em {
  margin-left: 0.18em;
}

.join-plan-featured {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  padding: 56px;
  border-radius: 30px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 24px 60px rgba(27, 22, 36, 0.15);
}

.join-plan-featured .plan-label {
  color: var(--green);
}

.offer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.offer-heading > span {
  padding: 7px 11px;
  border: 1px solid #4a4550;
  border-radius: 999px;
  color: #d8d3dc;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.featured-anchor {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 24px;
  color: #aaa4af;
  line-height: 1;
}

.featured-anchor span {
  font-size: 10px;
}

.featured-anchor s {
  color: #ddd7e0;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 600;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 3px;
}

.featured-price {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 5px 0 0;
}

.featured-price strong {
  font-family: var(--serif);
  font-size: 78px;
  line-height: 1;
}

.featured-price span {
  color: #c7c1cb;
  font-size: 14px;
}

.featured-copy {
  margin: 25px 0 0;
  color: #d6d1d9;
  font-size: 13px;
  line-height: 1.7;
}

.checkout-button {
  width: 100%;
  margin-top: 28px;
  cursor: pointer;
}

.checkout-button:disabled {
  background: #ddd8df;
  color: #817a86;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.featured-offer > small,
.join-plan > small {
  display: block;
  margin-top: 11px;
  color: #aaa4af;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.featured-extra {
  padding-left: 50px;
  border-left: 1px solid #45404b;
}

.featured-extra h3 {
  max-width: 520px;
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.52;
}

.featured-extra ul {
  display: grid;
  gap: 17px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.featured-extra li {
  position: relative;
  padding-left: 26px;
  color: #eeeaf0;
  font-size: 13px;
}

.featured-extra li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--green);
  font-weight: 900;
  content: "✓";
}

.join-secondary-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.join-plan {
  min-height: 404px;
  display: flex;
  flex-direction: column;
  padding: 34px;
  border-radius: 22px;
}

.join-plan-quarterly {
  background: var(--blue);
}

.join-plan-trial {
  background: var(--purple);
}

.join-plan > div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.join-secondary-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
}

.join-secondary-price strong {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
}

.join-secondary-price span {
  color: #4d4752;
  font-size: 11px;
}

.join-plan > p {
  margin: 30px 0 0;
  color: #332e37;
  font-size: 13px;
  line-height: 1.72;
}

.join-plan > p.plan-boundary {
  margin-top: 12px;
  color: #514a56;
  font-size: 11px;
}

.join-plan .checkout-button {
  margin-top: auto;
  border-color: rgba(27, 22, 36, 0.16);
  background: var(--paper);
  color: var(--ink);
}

.join-plan .checkout-button:disabled {
  background: rgba(255, 255, 255, 0.5);
  color: rgba(27, 22, 36, 0.5);
}

.join-plan > small {
  color: #554e59;
}

.before-payment {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 72px;
  margin-bottom: 76px;
  padding: 58px;
  border-radius: 30px;
  background: var(--green-soft);
}

.before-payment h2 {
  font-size: 40px;
}

.before-payment-list {
  border-top: 1px solid rgba(20, 108, 59, 0.18);
}

.before-payment-list p {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid rgba(20, 108, 59, 0.18);
}

.before-payment-list strong,
.before-payment-list span {
  font-size: 12px;
  line-height: 1.62;
}

.before-payment-list span {
  color: var(--muted);
}

.before-payment-list a {
  text-underline-offset: 3px;
}

.join-footer {
  margin-top: 0;
}

.join-result-page {
  min-height: 100vh;
}

.member-start {
  margin-top: 18px;
  margin-bottom: 18px;
  border: 1px solid #eee7df;
  border-radius: 32px;
  background: var(--cream);
  overflow: hidden;
}

.result-status {
  justify-self: end;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 760;
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
  gap: 78px;
  align-items: end;
  padding: 88px 64px 74px;
}

.result-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(48px, 5vw, 68px);
  font-weight: 480;
  line-height: 1.14;
}

.result-hero h1 em {
  position: relative;
  z-index: 0;
  display: inline-block;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 600;
}

.result-hero h1 em::after {
  position: absolute;
  right: -2px;
  bottom: 3px;
  left: -2px;
  z-index: -1;
  height: 6px;
  border-radius: 999px;
  background: var(--coral);
  content: "";
  transform: rotate(-1deg);
}

.result-hero-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.82;
}

.join-result-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.purchase-note {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1.65fr);
  gap: 30px;
  margin: 0 64px;
  padding: 20px 24px;
  border: 1px solid rgba(20, 108, 59, 0.16);
  border-radius: 16px;
  background: var(--green-soft);
}

.purchase-note strong,
.purchase-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.purchase-note p {
  color: var(--muted);
}

.start-steps {
  padding: 76px 64px 82px;
}

.start-steps > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.start-steps h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 600;
}

.start-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.start-step-grid article {
  min-height: 220px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.start-step-grid article > span {
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
}

.start-step-grid h3 {
  max-width: 250px;
  margin: 38px 0 0;
  font-size: 18px;
  line-height: 1.45;
}

.start-step-grid p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.68;
}

.result-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 64px;
  background: var(--ink);
  color: #d9d4dc;
}

.result-support p {
  margin: 0;
  font-size: 11px;
}

.result-support a {
  color: inherit;
  font-size: 11px;
  text-underline-offset: 3px;
}

.trial-result-page .member-start {
  background: #f6f0ff;
}

.trial-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 64px 16px;
  border-top: 1px solid rgba(27, 22, 36, 0.14);
  border-left: 1px solid rgba(27, 22, 36, 0.14);
}

.trial-facts article {
  padding: 24px;
  border-right: 1px solid rgba(27, 22, 36, 0.14);
  border-bottom: 1px solid rgba(27, 22, 36, 0.14);
  background: rgba(255, 255, 255, 0.46);
}

.trial-facts strong,
.trial-facts span {
  display: block;
}

.trial-facts strong {
  font-family: var(--serif);
  font-size: 28px;
}

.trial-facts span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.trial-renewal-note {
  border-color: rgba(118, 76, 181, 0.18);
  background: rgba(206, 180, 255, 0.36);
}

@media (max-width: 820px) {
  .join-intro,
  .shared-access,
  .join-plan-featured,
  .before-payment,
  .result-hero {
    grid-template-columns: 1fr;
  }

  .join-intro {
    gap: 28px;
    padding: 58px 42px;
  }

  .shared-access {
    gap: 30px;
  }

  .shared-access h2 {
    max-width: none;
  }

  .join-plan-featured {
    gap: 38px;
    padding: 44px;
  }

  .featured-extra {
    padding: 34px 0 0;
    border-top: 1px solid #45404b;
    border-left: 0;
  }

  .before-payment {
    gap: 34px;
  }

  .result-hero {
    gap: 32px;
    padding: 68px 44px 52px;
  }

  .purchase-note,
  .trial-facts {
    margin-right: 44px;
    margin-left: 44px;
  }

  .start-steps {
    padding-right: 44px;
    padding-left: 44px;
  }
}

@media (max-width: 680px) {
  .join-hero {
    width: calc(100% - 24px);
    margin-top: 12px;
    border-radius: 24px;
  }

  .join-header {
    min-height: 66px;
    padding-inline: 14px;
  }

  .join-back {
    font-size: 10px;
  }

  .join-intro {
    gap: 24px;
    padding: 46px 22px 44px;
  }

  .join-intro h1 {
    font-size: 40px;
    line-height: 1.2;
  }

  .join-intro-copy p {
    font-size: 14px;
    line-height: 1.76;
  }

  .join-controls {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
    margin-top: 12px;
    padding: 20px;
    border-radius: 18px;
  }

  .market-switch {
    width: 100%;
  }

  .market-switch button {
    min-width: 0;
  }

  .checkout-readiness {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .shared-access {
    gap: 24px;
    padding-top: 52px;
    padding-bottom: 26px;
  }

  .shared-access h2 {
    font-size: 29px;
  }

  .shared-access-grid {
    grid-template-columns: 1fr;
  }

  .shared-access-grid article {
    min-height: 0;
    padding: 20px;
  }

  .join-plans {
    padding: 40px 0 60px;
  }

  .join-section-heading {
    margin-bottom: 26px;
  }

  .join-section-heading h2 {
    font-size: 36px;
    line-height: 1.24;
  }

  .join-section-heading h2 em {
    display: block;
    width: fit-content;
    margin: 4px 0 0;
  }

  .join-plan-featured {
    gap: 32px;
    padding: 31px 22px;
    border-radius: 24px;
  }

  .offer-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .featured-price strong {
    font-size: 64px;
  }

  .featured-copy {
    font-size: 12px;
  }

  .featured-extra h3 {
    font-size: 22px;
  }

  .join-secondary-plans {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
  }

  .join-plan {
    min-height: 0;
    padding: 27px 22px;
    border-radius: 18px;
  }

  .join-plan > div:first-child {
    align-items: flex-end;
  }

  .join-plan > p {
    margin-top: 24px;
  }

  .join-plan .checkout-button {
    margin-top: 28px;
  }

  .before-payment {
    width: calc(100% - 24px);
    gap: 28px;
    margin-bottom: 58px;
    padding: 38px 22px;
    border-radius: 24px;
  }

  .before-payment h2 {
    font-size: 32px;
    line-height: 1.26;
  }

  .before-payment-list p {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 17px 0;
  }

  .member-start {
    width: calc(100% - 24px);
    margin-top: 12px;
    margin-bottom: 12px;
    border-radius: 24px;
  }

  .member-start .join-header {
    padding-right: 14px;
    padding-left: 14px;
  }

  .result-hero {
    gap: 26px;
    padding: 50px 22px 42px;
  }

  .result-hero h1 {
    font-size: 40px;
    line-height: 1.2;
  }

  .result-hero-copy > p {
    font-size: 14px;
  }

  .join-result-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .purchase-note {
    grid-template-columns: 1fr;
    gap: 5px;
    margin: 0 22px;
    padding: 17px 18px;
  }

  .start-steps {
    padding: 56px 22px 60px;
  }

  .start-steps > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
  }

  .start-steps h2 {
    font-size: 34px;
  }

  .start-step-grid {
    grid-template-columns: 1fr;
  }

  .start-step-grid article {
    min-height: 0;
    padding: 22px;
  }

  .start-step-grid h3 {
    margin-top: 25px;
  }

  .result-support {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 24px 22px;
  }

  .trial-facts {
    grid-template-columns: 1fr;
    margin: 0 22px 12px;
  }

  .trial-facts article {
    display: grid;
    grid-template-columns: minmax(100px, 0.5fr) minmax(0, 1.5fr);
    align-items: baseline;
    gap: 18px;
    padding: 17px 18px;
  }

  .trial-facts strong {
    font-size: 23px;
  }
}

@media (max-width: 360px) {
  .join-back span {
    display: none;
  }

  .join-intro h1 {
    font-size: 36px;
  }

  .join-plan > div:first-child {
    align-items: flex-start;
    flex-direction: column;
  }
}
