/* Membership uses the approved landing palette; scene canvases remain untouched. */
.membership-section,
.compliance-footer,
.checkout-modal {
  --membership-ink: #34291e;
  --membership-muted: #695b4c;
  color: var(--membership-ink);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
}
.membership-section {
  background:
    radial-gradient(ellipse at 50% 0, #fff9eb, transparent 65%), #fdf4ed;
  padding: 88px clamp(20px, 5vw, 80px) 54px;
  scroll-margin-top: 90px;
}
.membership-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 58px;
}
.membership-eyebrow,
.plan-kicker,
.payment-caption {
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 900;
}
.membership-eyebrow {
  color: #8e4b16;
}
.membership-heading h1 {
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 12px 0 16px;
}
.membership-intro {
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 800;
  margin-bottom: 8px;
}
.membership-heading > p:last-of-type {
  color: var(--membership-muted);
}
.membership-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #dfd1bd;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 800;
}
.membership-status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #99601b;
  flex: 0 0 auto;
}
.membership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
}
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px;
  border: 1px solid #dfd1bd;
  border-radius: 22px;
  background: #fffdf8;
  box-shadow: 0 12px 28px #67401608;
}
.plan-card-featured {
  border: 2px solid #c47d17;
  padding: 29px 25px 25px;
  background: linear-gradient(150deg, #fff1cc, #fffbef 60%);
  box-shadow: 0 14px 38px #92612418;
}
.plan-best {
  position: absolute;
  top: -17px;
  left: 24px;
  padding: 5px 17px;
  border-radius: 99px;
  background: #78410f;
  color: #fff8ec;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.plan-kicker {
  color: #796246;
  min-height: 46px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
  letter-spacing: 0.06em;
}
.plan-saving {
  display: inline-block;
  white-space: nowrap;
  color: #554216;
  background: #f2e3b5;
  border-radius: 20px;
  padding: 1px 8px;
  letter-spacing: 0;
  font-size: 11px;
}
.plan-card h2 {
  font-size: 24px;
  font-weight: 900;
  margin: 5px 0 10px;
}
.plan-price {
  font-size: clamp(35px, 3.2vw, 46px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.plan-price span {
  font-size: 16px;
  letter-spacing: 0;
  font-weight: 700;
  color: var(--membership-muted);
}
.plan-billing {
  font-size: 13px;
  color: var(--membership-muted);
  margin-top: 8px;
}
.plan-description {
  font-size: 15px;
  margin: 22px 0;
  min-height: 48px;
  color: var(--membership-muted);
}
.plan-features {
  list-style: none;
  border-top: 1px solid #e8dece;
  padding-top: 20px;
  margin-bottom: 25px;
  font-size: 14px;
}
.plan-features li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.plan-features li::before {
  content: "✓";
  font-weight: 900;
  color: #536e3c;
}
.subscribe-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 24px;
  margin-top: auto;
  width: 100%;
  min-height: 52px;
  border: 1.8px solid rgba(255, 255, 255, 0.75);
  border-radius: 9999px;
  background: radial-gradient(circle at 50% 25%, rgba(255, 215, 80, 0.52) 0%, rgba(255, 145, 10, 0.38) 65%, rgba(210, 85, 0, 0.26) 100%), #FF9E2C;
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  color: #FFFFFF;
  font: inherit;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 24px rgba(255, 165, 45, 0.5), inset 0 1.5px 6px rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8), 0 0 12px rgba(255, 200, 60, 0.7);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.plan-card-featured .subscribe-button {
  background: radial-gradient(circle at 50% 25%, rgba(255, 225, 100, 0.65) 0%, rgba(255, 155, 20, 0.48) 65%, rgba(220, 90, 0, 0.35) 100%), #FF9015;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 32px rgba(255, 185, 65, 0.75), inset 0 2px 8px rgba(255, 255, 255, 0.95);
}

.subscribe-button:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4), 0 0 36px rgba(255, 195, 75, 0.9);
  border-color: rgba(255, 255, 255, 0.95);
}

.subscribe-button:disabled {
  cursor: not-allowed;
  opacity: 0.88;
}
.membership-fineprint {
  max-width: 830px;
  margin: 30px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--membership-muted);
}
.membership-fineprint p + p {
  margin-top: 10px;
}
.membership-fineprint a,
.checkout-terms a {
  color: #78410f;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.compliance-footer {
  background: #f8eee4;
  border-top: 1px solid #e5d4c0;
  padding: 54px clamp(20px, 5vw, 80px) 25px;
}
.compliance-top {
  display: grid;
  grid-template-columns: 0.85fr 1.1fr 1fr;
  gap: 48px;
  max-width: 1120px;
  margin: 0 auto;
}
.compliance-logo {
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #a95013;
  text-decoration: none;
}
.compliance-brand p {
  font-size: 14px;
  margin-top: 12px;
  color: var(--membership-muted);
}
.compliance-mascot {
  display: block;
  object-fit: contain;
  width: 110px;
  height: auto;
  margin: 12px 0 0;
}
.compliance-top h2 {
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 19px;
}
.compliance-company,
.compliance-policies {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 14px;
  gap: 9px;
}
.compliance-company h2,
.compliance-policies h2 {
  margin-bottom: 6px;
}
.company-name {
  font-weight: 800;
}
.compliance-company address {
  font-style: normal;
  color: var(--membership-muted);
  margin-bottom: 5px;
}
.compliance-footer a:not(.compliance-logo) {
  color: #5f431f;
  text-decoration: underline;
  text-decoration-color: #b4a087;
  text-underline-offset: 4px;
}
.compliance-footer a:hover {
  color: #843e0f;
}
.compliance-policies a {
  padding: 3px 0;
}
.compliance-policies a span {
  display: block;
  font-size: 12px;
  color: var(--membership-muted);
}
.compliance-payments {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  max-width: 1120px;
  margin: 32px auto 0;
  padding: 28px 0;
  border-top: 1px solid #deceb8;
}
.payment-caption {
  color: #6f5a41;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.payment-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.payment-badges li {
  width: 64px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7c8b4;
  border-radius: 6px;
  background: #fffdf8;
}
.payment-badges img {
  display: block;
  object-fit: contain;
}
.payment-note {
  max-width: 430px;
  font-size: 12px;
  color: var(--membership-muted);
}
.security-target {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 800;
  margin: 18px 0 12px;
}
.security-target svg {
  flex: 0 0 auto;
}
.compliance-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  border-top: 1px solid #deceb8;
  padding-top: 20px;
  margin: 0 auto;
  font-size: 12px;
  color: var(--membership-muted);
}
.membership-section :focus-visible,
.compliance-footer :focus-visible,
.checkout-modal :focus-visible {
  outline: 3px solid #2054a0;
  outline-offset: 4px;
}
.checkout-modal {
  background: #fffaf1;
  border: 1px solid #e0cba7;
  border-radius: 24px;
  padding: 0;
  margin: auto;
  width: min(600px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 30px 100px #0006;
}
.checkout-modal::backdrop {
  background: #101a23b8;
  backdrop-filter: blur(6px);
}
.checkout-content {
  position: relative;
  padding: 36px;
}
.checkout-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid #d9cbb6;
  border-radius: 50%;
  background: #fff;
  color: #513b26;
  font-size: 26px;
  cursor: pointer;
}
.checkout-content > .membership-eyebrow {
  margin-right: 20px;
}
.checkout-modal h2 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 12px 0 8px;
}
.checkout-preview-label {
  font-size: 13px;
  color: var(--membership-muted);
}
.checkout-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid #e0d0b9;
  padding-top: 20px;
  margin-top: 22px;
}
#checkout-plan {
  font-weight: 900;
  font-size: 19px;
}
#checkout-price {
  font-size: 22px;
  white-space: nowrap;
}
.checkout-summary p,
.checkout-billing {
  font-size: 13px;
  color: var(--membership-muted);
}
.checkout-billing {
  margin-top: 8px;
}
.checkout-notice {
  padding: 15px 17px;
  border-left: 3px solid #a56a19;
  background: #f7ecd4;
  border-radius: 4px 10px 10px 4px;
  margin: 22px 0 18px;
  font-size: 14px;
}
.checkout-data-note {
  color: var(--membership-muted);
  font-size: 12px;
}
.checkout-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.checkout-fields label {
  display: block;
  font-size: 13px;
  font-weight: 800;
}
.checkout-fields label span {
  font-weight: 400;
  color: var(--membership-muted);
}
.checkout-fields input {
  display: block;
  width: 100%;
  border: 1px solid #bca98b;
  background: #fff;
  color: #34291e;
  border-radius: 9px;
  min-height: 46px;
  padding: 10px;
  margin-top: 6px;
  font: inherit;
  font-size: 16px;
}
.checkout-payment {
  width: 100%;
  min-height: 48px;
  padding: 10px;
  border: 1px solid #c6b59d;
  border-radius: 10px;
  margin-top: 20px;
  background: #e8dece;
  color: #665944;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: not-allowed;
}
.checkout-terms {
  margin-top: 16px;
  color: var(--membership-muted);
  font-size: 12px;
}
.checkout-support {
  display: inline-block;
  margin-top: 16px;
  color: #78410f;
  font-size: 13px;
  font-weight: 800;
  text-underline-offset: 3px;
}
@media (max-width: 1000px) {
  .membership-grid {
    gap: 14px;
  }
  .plan-card {
    padding: 26px 18px 22px;
  }
  .plan-card-featured {
    padding: 25px 17px 21px;
  }
  .compliance-top {
    gap: 24px;
  }
}
@media (max-width: 800px) {
  .membership-section {
    padding-top: 54px;
    scroll-margin-top: 16px;
  }
  .membership-heading {
    margin-bottom: 36px;
  }
  .membership-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 460px;
  }
  .plan-card {
    padding: 27px;
  }
  .plan-card-featured {
    padding: 26px;
  }
  .plan-kicker {
    min-height: 0;
    justify-content: space-between;
  }
  .plan-card h2 {
    margin-top: 18px;
  }
  .plan-price {
    font-size: 42px;
  }
  .plan-description {
    min-height: 0;
    margin: 18px 0;
  }
  .compliance-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .compliance-brand {
    grid-column: 1 / -1;
    position: relative;
    padding-right: 120px;
    min-height: 125px;
  }
  .compliance-mascot {
    position: absolute;
    right: 0;
    top: 0;
    margin: 0;
  }
}
@media (max-width: 520px) {
  .membership-status {
    font-size: 11px;
    padding: 8px 10px;
  }
  .compliance-top {
    grid-template-columns: 1fr;
  }
  .compliance-policies {
    gap: 10px;
  }
  .compliance-policies a {
    min-height: 32px;
  }
  .payment-badges {
    gap: 6px;
  }
  .payment-badges li {
    width: 56px;
  }
  .payment-badges img {
    width: 45px;
  }
  .checkout-content {
    padding: 30px 22px 24px;
  }
  .checkout-modal h2 {
    font-size: 26px;
  }
  .checkout-fields {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .subscribe-button {
    transition: none;
  }
  html,
  body {
    scroll-behavior: auto;
  }
}
