body:has(.pricing-layout) {
  background: var(--sl-cream);
}

.pricing-layout {
  font-family: var(--font-sans);
  min-height: 80vh;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 5vw, 5rem);
  position: relative;
  overflow: hidden;
}

.pricing-layout::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 55%;
  height: 130%;
  background: var(--sl-teal-light);
  border-radius: 0 0 0 40%;
  z-index: 0;
  opacity: 0.5;
}

/* Page shell */
.pro-page {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

/* The chip itself lives in toffee_balance.css — it is shared with the course
   pages. Here it only gets the paywall's placement: floated above .pro-card,
   which clears it. */
.pro-page .toffee-balance {
  float: right;
  margin-bottom: 1.25rem;
}

/* Single "Go Pro" card */
.pro-card {
  clear: both;
  display: flex;
  flex-direction: column;
}

.pro-card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 2.25rem);
  font-weight: 400;
  color: var(--sl-charcoal);
  margin-bottom: 0.5rem;
}

.pro-card__subtitle {
  color: var(--sl-gray);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.pro-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.pro-card__features li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--sl-charcoal);
}

.pro-card__features li i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--sl-teal-light);
  color: var(--sl-teal);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.pro-card__expiry {
  font-size: 0.8rem;
  color: var(--sl-gray);
  margin-bottom: 1.25rem;
  padding: 0.6rem 0.9rem;
  background: var(--sl-teal-light);
  border-radius: var(--radius-sm);
}

/* Plan picker */
.plan-options {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.plan-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: white;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.plan-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-option:has(input:checked) {
  border-color: var(--sl-charcoal);
  border-width: 2px;
  box-shadow: var(--shadow-sm);
}

.plan-option__radio {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.25);
  position: relative;
}

.plan-option:has(input:checked) .plan-option__radio {
  border-color: var(--sl-charcoal);
  border-width: 5px;
}

.plan-option__label {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sl-charcoal);
}

.plan-option__save {
  color: var(--sl-teal);
  margin-left: 0.4rem;
}

.plan-option__sublabel {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sl-gray);
}

.plan-options__note {
  margin: -0.75rem 0 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--sl-gray);
}

.plan-option__price {
  background: linear-gradient(135deg, var(--sl-coral) 0%, var(--sl-coral-dark) 100%);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* CTAs */
.pro-card__pay-web,
.pro-card__current {
  width: 100%;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.pro-card__pay-web {
  background: var(--sl-charcoal);
  color: white;
}

.pro-card__pay-web:hover {
  background: #000;
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.pro-card__current {
  background: var(--sl-gray-light);
  color: var(--sl-gray);
  cursor: default;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
}

/* Accepted payment methods */
.pro-card__payment-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0;
}

.payment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.4rem;
}

.payment-icon svg {
  height: 100%;
  width: auto;
}

.payment-icon--toffee {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--sl-charcoal);
  margin-right: 0.25rem;
}

.payment-icon--paypal {
  font-size: 1.1rem;
}

/* Apple IAP */
.pro-card__apple {
  display: block;
  width: 100%;
  text-align: center;
  color: var(--sl-charcoal);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.4rem;
}

.pro-card__apple:hover {
  color: var(--sl-teal);
}

.pro-card__restore {
  display: block;
  width: 100%;
  text-align: center;
  color: var(--sl-gray);
  font-size: 0.8rem;
  text-decoration: underline;
  padding: 0.2rem;
}

/* Return / processing page */
.pricing-return {
  text-align: center;
  padding: 6rem 1rem;
  position: relative;
  z-index: 1;
}

.pricing-return__icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  min-height: 4rem;
}

.pricing-return__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--sl-charcoal);
  margin-bottom: 0.75rem;
}

.pricing-return__description {
  color: var(--sl-gray);
  font-size: 1rem;
}

.pricing-return__retry {
  margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 767px) {
  .pricing-layout::before {
    display: none;
  }

  .pro-page {
    max-width: 100%;
  }
}
