/* ============================================
   TAKE THE STAIRS — paywall.css
   Subscription paywall plan cards
   ============================================ */

/* === PAYWALL HERO === */
.paywall-hero {
  background: var(--black);
  padding: 72px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.paywall-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0,123,255,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.paywall-hero h1 {
  margin-bottom: 16px;
}

.paywall-hero .lead {
  max-width: 440px;
  margin: 0 auto 12px;
}

.paywall-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  margin-bottom: 40px;
  transition: color 0.15s;
}

.paywall-back:hover {
  color: var(--white);
  text-decoration: none;
}

/* === PLAN SECTION === */
.paywall-section {
  background: var(--black);
  padding: 56px 0 72px;
  border-bottom: 1px solid var(--border);
}

/* === SINGLE-PLAN CARD === */
.plan-card--single {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--blue);
  box-shadow: 0 0 40px rgba(0,123,255,0.15), inset 0 0 0 1px rgba(0,123,255,0.08);
  padding: 44px 36px 48px;
  max-width: 480px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
}

/* === PRICE BLOCK === */
.plan-price-block {
  text-align: center;
  margin-bottom: 28px;
}

.plan-trial-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--black);
  background: var(--blue);
  display: inline-block;
  padding: 5px 14px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.plan-price-main {
  font-family: var(--font-display);
  font-size: clamp(64px, 16vw, 96px);
  letter-spacing: 1px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}

.plan-dollar {
  font-size: 0.5em;
  vertical-align: top;
  margin-top: 0.15em;
  color: var(--lgray);
}

.plan-price-period {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--gray);
  display: block;
}

/* Fine print below CTA */
.plan-fine-print {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--gray);
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
}

/* === PLAN FEATURES === */
.plan-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.plan-features li {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3px;
  color: var(--lgray);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}

.plan-features li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 16px;
  line-height: 1.1;
  font-weight: 700;
}

/* === CTA BUTTON === */
.plan-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--tap-target);
  padding: 0 20px;
  margin-top: 32px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: var(--white);
  color: var(--black);
  transition: opacity 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  min-height: 56px; /* senior / Parkinson's tap target */
}

.plan-cta:hover {
  text-decoration: none;
  opacity: 0.88;
}

.plan-cta:active {
  transform: scale(0.97);
}

/* === TRUST STRIP === */
.paywall-trust {
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.trust-strip li {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-strip li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

/* === LEGAL FOOTER === */
.paywall-legal {
  text-align: center;
  padding: 32px 20px;
  border-top: 1px solid var(--border);
  background: var(--black);
}

.paywall-legal p {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.2);
  margin-bottom: 12px;
  line-height: 1.6;
}

.paywall-legal-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.paywall-legal-links a {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.15s;
}

.paywall-legal-links a:hover {
  color: var(--white);
  text-decoration: none;
}

/* === RESTORE PURCHASES BUTTON === */
.paywall__restore {
  display: block;
  width: 100%;
  margin: 12px 0 0;
  padding: 12px 16px;
  min-height: 44px;
  background: transparent;
  border: none;
  color: var(--lgray);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: color 0.15s;
}

.paywall__restore:hover,
.paywall__restore:focus-visible {
  color: var(--white);
  text-decoration: underline;
  outline: none;
}

/* === PURCHASE ERROR BANNER === */
.paywall__error {
  background: rgba(255, 69, 0, 0.08);
  border-left: 3px solid var(--orange);
  padding: 14px;
  margin: 16px 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--white);
}

.paywall__error[hidden] {
  display: none;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  .plan-cta,
  .plan-card {
    transition: none !important;
  }
}
