/* ============================================
   Subscribe page — two plan cards with scale
   contrast (chosen, not cloned), a warm scripture
   moment, the form shell, and the payment modal.
   The plan-select + payment-modal inline JS is
   untouched; we style around its hooks/IDs.
   Extends style.css (tokens never redefined).
   ============================================ */

/* ── Plans section ── */
.plans-section {
  background: var(--cream);
  padding: var(--space-section) var(--space-4);
}
.plans-inner {
  max-width: 920px;
  margin: 0 auto;
}
.plans-intro p {
  font-size: var(--text-base);
  line-height: 1.7;
}

/* ── Warm scripture moment (line reveal) ── */
.subscribe-scripture {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.25rem, 1rem + 1.4vw, 1.9rem);
  line-height: 1.4;
  color: var(--charcoal);
  text-align: center;
  max-width: 30ch;
  margin: var(--space-5) auto;
}
.subscribe-scripture cite {
  display: block;
  font-family: 'Lato', sans-serif;
  font-style: normal;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: var(--space-2);
}

/* ── Plans grid: two cards, deliberate scale contrast ── */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: stretch;
}

.plan-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  background: var(--white);
  border: 1.5px solid var(--blush);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-3);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform var(--dur-fast) var(--ease-soft),
              box-shadow var(--dur-fast) var(--ease-soft);
}
.plan-card:hover,
.plan-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* the popular plan reads as chosen: raised, deeper surface, heavier frame */
.plan-card.is-popular {
  background: var(--surface-2);
  border: 2px solid var(--sage);
  box-shadow: var(--shadow-md);
  transform: translateY(-12px);
  padding-top: var(--space-5);
}
.plan-card.is-popular:hover,
.plan-card.is-popular:focus-within {
  transform: translateY(-18px);
  box-shadow: var(--shadow-lg);
}

.plan-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sage-dark);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
}

.plan-mark { font-size: 2rem; color: var(--sage-dark); margin-bottom: var(--space-1); }

.plan-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--text-h3);
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}
.plan-card.is-popular .plan-name { font-size: var(--text-h2); }

.plan-tagline {
  color: var(--gray);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.plan-price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 1.5rem + 1.4vw, 2.6rem);
  color: var(--sage-dark);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.plan-card.is-popular .plan-price { color: var(--plum); }
.plan-price-note {
  color: var(--gray);
  font-size: var(--text-xs);
  margin-bottom: var(--space-4);
}

.plan-features {
  list-style: none;
  text-align: left;
  font-size: var(--text-sm);
  color: var(--gray);
  line-height: 2;
  margin: 0 0 var(--space-4);
  padding: 0;
}
.plan-features li::first-letter { color: var(--sage-dark); }

/* push the CTA to the bottom so unequal cards still align their buttons */
.plan-cta { width: 100%; justify-content: center; margin-top: auto; }

/* ── Subscription form section (revealed by JS, never .reveal) ── */
.subscribe-form-section {
  display: none;            /* showPlan() flips this to block; do not animate-hide */
  background: var(--light-gray);
  padding: var(--space-section) var(--space-4);
}
.subscribe-form-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  box-shadow: var(--shadow-md);
}
.subscribe-form-head { margin-bottom: var(--space-4); }
.subscribe-form-head h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  margin-top: var(--space-1);
}
.subscribe-form-head p { color: var(--gray); font-size: var(--text-sm); }

/* ── Vase toggle: rest state only; inline JS writes the active state ── */
.sub-vase-toggle {
  display: flex;
  gap: var(--space-1);
  margin-top: 0.25rem;
}
.sub-vase-btn {
  flex: 1;
  min-height: 44px;
  padding: 0.65rem;
  border-radius: var(--radius);
  border: 2px solid var(--blush);
  background: var(--white);
  color: var(--charcoal);
  font-family: 'Lato', sans-serif;
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-soft),
              box-shadow var(--dur-fast) var(--ease-soft);
}
.sub-vase-btn:hover { transform: translateY(-1px); }
.sub-vase-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}
.sub-vase-mark { color: var(--sage-dark); }

.sub-submit { width: 100%; justify-content: center; }

/* ── Payment modal (was inline; moved here) ── */
/* JS toggles display:flex / none — no display rule here so JS wins. */
.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(44, 24, 80, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}
.pay-modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  max-width: 480px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn var(--dur-normal) var(--ease-out-expo);
}
.pay-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--sage);
  cursor: pointer;
  line-height: 1;
  transition: color var(--dur-fast) var(--ease-soft);
}
.pay-modal-close:hover { color: var(--plum); }
.pay-modal-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
  border-radius: var(--radius);
}
.pay-modal-icon { margin-bottom: var(--space-2); }
.pay-modal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.pay-modal-text {
  color: var(--gray);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}

.pay-venmo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #3D95CE;
  color: var(--white);
  border-radius: 12px;
  padding: 0.85rem 1.5rem;
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: transform var(--dur-fast) var(--ease-soft),
              box-shadow var(--dur-fast) var(--ease-soft);
}
.pay-venmo:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pay-venmo:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }

.pay-zelle {
  background: var(--light-gray);
  border-radius: 12px;
  padding: 0.85rem 1.5rem;
  font-size: var(--text-sm);
  color: var(--charcoal);
  font-weight: 700;
}
.pay-zelle-mark { color: #6D1ED4; }

.pay-modal-note {
  color: var(--ink-soft);
  font-size: var(--text-xs);
  margin-top: 1rem;
  line-height: 1.6;
}

.pay-modal-done {
  margin-top: 1.25rem;
  background: var(--sage-dark);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.75rem 2rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--text-base);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-soft),
              background var(--dur-fast) var(--ease-soft),
              box-shadow var(--dur-fast) var(--ease-soft);
}
.pay-modal-done:hover { background: var(--plum); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pay-modal-done:active { transform: translateY(0); }
.pay-modal-done:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .plans-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  /* on one column the popular lift would crowd the next card — flatten it */
  .plan-card.is-popular,
  .plan-card.is-popular:hover,
  .plan-card.is-popular:focus-within { transform: none; }
  .plan-card:hover,
  .plan-card:focus-within { transform: translateY(-4px); }
}

/* ── Reduced motion: collapse to opacity only, no scale/lift ── */
@media (prefers-reduced-motion: reduce) {
  .pay-modal-card { animation: none; }
  .plan-card,
  .plan-card:hover,
  .plan-card:focus-within,
  .plan-card.is-popular,
  .plan-card.is-popular:hover,
  .plan-card.is-popular:focus-within,
  .sub-vase-btn:hover,
  .pay-venmo:hover,
  .pay-modal-done:hover { transform: none !important; }
}
