/* 5 · PLANS — cards are generated from PLANS in js/content.js. A plan with featured: true gets
   the ivory card. Logic: js/sections/plans.js */

.plan-grid { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 36px 36px 32px; border-radius: 32px;
  background: linear-gradient(170deg, rgba(243, 238, 227, .085), rgba(243, 238, 227, .025)); box-shadow: 0 0 0 1px var(--hair) inset; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.plan.is-featured { background: var(--ivory); color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .7) inset, 0 60px 110px -40px rgba(0, 0, 0, .8); }
.plan.is-featured::before { content: ""; position: absolute; left: 36px; right: 36px; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--volt), transparent); }
.plan.is-featured :focus-visible { outline-color: var(--emerald); }
.plan-name { margin: 0; display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--tx-2); }
.is-featured .plan-name { color: var(--emerald-deep); }
.plan-badge { font-size: 11px; letter-spacing: .14em; padding: 5px 10px; border-radius: 999px; background: var(--soft-mint); color: var(--emerald); }
.plan-price { display: flex; align-items: baseline; gap: 10px; margin-top: 26px; }
.plan-price b { font-family: var(--display); font-weight: 330; font-variation-settings: "opsz" 72; font-size: clamp(60px, 6vw, 84px); line-height: .9; letter-spacing: -0.04em; }
.plan-price span { font-size: 15px; color: var(--tx-3); }
.is-featured .plan-price span { color: var(--ink-web); }
.plan-blurb { margin: 14px 0 0; font-size: 16px; line-height: 1.5; color: var(--tx-2); }
.is-featured .plan-blurb { color: var(--ink-web); }
.plan ul { list-style: none; margin: 26px 0 32px; padding: 22px 0 0; display: grid; gap: 13px; border-top: 1px solid var(--hair); }
.is-featured ul { border-top-color: var(--border); }
.plan li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.4; color: var(--tx-2); }
.is-featured li { color: inherit; }
.plan li svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--mint); }
.is-featured li svg { color: var(--emerald); }
.plan li b { font-weight: 600; }
.plan .btn { margin-top: auto; width: 100%; }
.plans-note { max-width: 1040px; margin: 28px auto 0; text-align: center; font-size: 13px; color: var(--tx-3); }
.plan { opacity: 0; transform: translateY(40px); transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-out); transition-delay: var(--d, 0ms); }
.plan.in { opacity: 1; transform: none; }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .plan-grid { grid-template-columns: 1fr; }
  .plan { padding: 30px 26px 26px; }
}

/* ---------- reduced motion ---------- */
.rm .plan { transform: none !important; translate: none !important; transition-property: opacity; transition-duration: 400ms; }
