/* ============================================================
   SOLUA — Plans & Pricing
   Extends styles.css (header, footer, buttons, .wrap, .reveal).
   Anima design system: warm cream, soft charcoal, Plus Jakarta
   Sans, rotating liturgical accents.
   ============================================================ */

/* ---------- pricing hero ---------- */
.price-hero {
  position: relative; overflow: hidden;
  background: var(--hero-ink); color: var(--color-cream);
  padding: 168px 0 80px; text-align: center;
}
.price-hero .hero-glow { top: -16%; right: -6%; }
.price-hero .hero-glow.two { left: -10%; bottom: auto; top: 30%; width: 480px; height: 480px; }
.price-hero .wrap { position: relative; z-index: 2; }
.price-hero .eyebrow {
  color: rgba(250,247,242,0.62); display: inline-flex; align-items: center; gap: 10px;
}
.price-hero .eyebrow::before,
.price-hero .eyebrow::after { content: ""; width: 22px; height: 1px; background: rgba(250,247,242,0.4); }
.price-hero h1 {
  font-weight: 300; font-size: clamp(40px, 5.4vw, 66px); line-height: 1.05;
  letter-spacing: -0.025em; margin: 0 auto 22px; max-width: 14em; text-wrap: balance;
}
.price-hero h1 b { font-weight: 700; }
.price-hero h1 i { font-style: italic; font-weight: 300; }
.price-hero .price-sub {
  font-size: 20px; line-height: 1.55; color: rgba(250,247,242,0.74);
  max-width: 32em; margin: 0 auto;
}

/* ---------- billing toggle ---------- */
.billing-toggle {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 40px;
  background: rgba(250,247,242,0.08); border: 1px solid rgba(250,247,242,0.16);
  border-radius: var(--radius-pill); padding: 5px;
  position: relative;
}
.billing-toggle button {
  position: relative; z-index: 2; padding: 11px 24px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 600; color: rgba(250,247,242,0.66);
  transition: color var(--duration-base) var(--ease-calm);
  display: inline-flex; align-items: center; gap: 9px;
}
.billing-toggle button.active { color: var(--hero-ink); }
.billing-toggle .pill {
  position: absolute; z-index: 1; top: 5px; bottom: 5px; left: 5px;
  background: var(--color-cream); border-radius: var(--radius-pill);
  transition: transform var(--duration-base) var(--ease-calm), width var(--duration-base) var(--ease-calm);
}
.billing-toggle .save {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  background: var(--sage); color: var(--color-cream);
  padding: 3px 9px; border-radius: var(--radius-pill);
}
.billing-toggle button.active .save { background: var(--sage-deep); }

/* ---------- pricing cards ---------- */
.pricing { padding: 0 0 96px; margin-top: -56px; position: relative; z-index: 5; }
.tier-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; align-items: stretch;
  max-width: 800px; margin: 0 auto;
}
.tier {
  background: var(--color-cream); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); padding: 34px 30px 32px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-base) var(--ease-calm), box-shadow var(--duration-base) var(--ease-calm);
}
.tier:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tier-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.tier-badge {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; color: var(--color-cream);
}
.tier-badge svg { width: 21px; height: 21px; }
.tier-name { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.tier-tagline { font-size: 14.5px; line-height: 1.5; color: var(--color-text-secondary); margin: 4px 0 24px; min-height: 3em; }

.tier-price { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 4px; }
.tier-price .amount { font-size: 52px; font-weight: 700; line-height: 0.9; letter-spacing: -0.03em; }
.tier-price .per { font-size: 15px; font-weight: 500; color: var(--color-text-secondary); padding-bottom: 6px; }
.tier-billed { font-size: 13px; color: var(--color-text-muted); margin: 0 0 26px; min-height: 1.2em; }

.tier .btn { width: 100%; margin-bottom: 28px; }
.tier-feature-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-text-muted); margin: 0 0 16px;
}
.tier-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 13px; }
.tier-features li { display: flex; gap: 11px; font-size: 14.5px; line-height: 1.45; color: var(--color-text-primary); }
.tier-features .tick {
  width: 19px; height: 19px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  display: grid; place-items: center; background: rgba(123,146,121,0.16); color: var(--sage-deep);
}
.tier-features .tick svg { width: 11px; height: 11px; }

/* featured tier — deep sage, cream text */
.tier.featured {
  background: var(--sage-deep); color: var(--color-cream); border-color: var(--sage-deep);
  box-shadow: 0 24px 50px rgba(94,116,89,0.36);
  position: relative;
}
.tier.featured:hover { box-shadow: 0 30px 60px rgba(94,116,89,0.44); }
.tier.featured .tier-tagline { color: rgba(250,247,242,0.78); }
.tier.featured .tier-price .per { color: rgba(250,247,242,0.72); }
.tier.featured .tier-billed { color: rgba(250,247,242,0.6); }
.tier.featured .tier-feature-label { color: rgba(250,247,242,0.6); }
.tier.featured .tier-features li { color: var(--color-cream); }
.tier.featured .tier-features .tick { background: rgba(250,247,242,0.2); color: var(--color-cream); }
.tier.featured .tier-badge { background: rgba(250,247,242,0.2); }
.tier.featured .btn-primary { background: var(--color-cream); color: var(--sage-deep); }
.tier.featured .btn-primary:hover { background: #fff; opacity: 1; }
.tier-ribbon {
  position: absolute; top: 22px; right: 22px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--color-christmas); color: var(--hero-ink);
  padding: 6px 13px; border-radius: var(--radius-pill);
}

/* ---------- comparison table ---------- */
.compare { background: var(--color-surface-1); }
.compare-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.compare-table th, .compare-table td { text-align: center; padding: 18px 16px; }
.compare-table thead th { vertical-align: bottom; border-bottom: 1px solid var(--color-border-dark); }
.compare-table tbody td, .compare-table tbody th { border-bottom: 1px solid var(--color-border); }
.compare-table th.feat-col, .compare-table td.feat-col {
  text-align: left; width: 38%; font-weight: 500; font-size: 15.5px; color: var(--color-text-primary);
}
.compare-col-name { font-size: 17px; font-weight: 700; margin: 0; }
.compare-col-price { font-size: 13px; color: var(--color-text-secondary); margin: 4px 0 0; font-weight: 500; }
.compare-table thead th.is-featured .compare-col-name { color: var(--sage-deep); }
.compare-table col.is-featured { background: rgba(123,146,121,0.10); }
.compare-table tbody td.is-featured { background: rgba(123,146,121,0.07); }
.compare-cat td {
  text-align: left !important; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-text-muted);
  padding-top: 30px; padding-bottom: 10px; border-bottom: none !important;
}
.compare-yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(123,146,121,0.18); color: var(--sage-deep); }
.compare-yes svg { width: 13px; height: 13px; }
.compare-no { color: var(--color-text-muted); font-size: 18px; line-height: 1; opacity: 0.5; }
.compare-val { font-size: 14.5px; font-weight: 600; color: var(--color-text-primary); }
.compare-table td.is-featured .compare-val { color: var(--sage-deep); }

/* ---------- parish band ---------- */
.parish { background: var(--hero-ink); color: var(--color-cream); position: relative; overflow: hidden; }
.parish .hero-glow { top: -30%; left: -8%; right: auto; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(212,183,133,0.34) 0%, transparent 66%); }
.parish .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.parish .eyebrow { color: var(--color-christmas); }
.parish h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 300; line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 18px; text-wrap: balance; }
.parish h2 b { font-weight: 700; }
.parish p { font-size: 18px; line-height: 1.6; color: rgba(250,247,242,0.74); margin: 0 0 30px; max-width: 30em; }
.parish-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.parish-stats { display: flex; flex-direction: column; gap: 18px; }
.parish-stat {
  background: rgba(250,247,242,0.06); border: 1px solid rgba(250,247,242,0.14);
  border-radius: var(--radius-lg); padding: 22px 24px;
}
.parish-stat .num { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; line-height: 1; margin: 0 0 9px; }
.parish-stat .lbl { font-size: 14.5px; color: rgba(250,247,242,0.7); margin: 0; line-height: 1.45; }

/* ---------- FAQ ---------- */
.faq { background: var(--color-cream); }
.faq .wrap { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 0; margin-top: 8px; border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-q {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 4px; font-size: 19px; font-weight: 600; color: var(--color-text-primary);
  letter-spacing: -0.01em;
}
.faq-q .pm { width: 26px; height: 26px; flex-shrink: 0; position: relative; color: var(--sage); }
.faq-q .pm::before, .faq-q .pm::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: currentColor;
  transition: transform var(--duration-base) var(--ease-calm);
}
.faq-q .pm::before { width: 15px; height: 2px; transform: translate(-50%, -50%); border-radius: 2px; }
.faq-q .pm::after { width: 2px; height: 15px; transform: translate(-50%, -50%); border-radius: 2px; }
.faq-item.open .faq-q .pm::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--duration-slow) var(--ease-calm); }
.faq-a-inner { padding: 0 4px 28px; font-size: 16.5px; line-height: 1.6; color: var(--color-text-secondary); max-width: 60ch; text-wrap: pretty; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .parish .wrap { grid-template-columns: 1fr; gap: 40px; }
  .parish-stats { flex-direction: row; }
  .parish-stat { flex: 1; }
  .compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-table { min-width: 560px; }
}
@media (max-width: 680px) {
  .tier-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .tier.featured { order: -1; }
  .pricing { margin-top: -48px; }
}
@media (max-width: 560px) {
  .price-hero { padding: 132px 0 64px; }
  .parish-stats { flex-direction: column; }
  .billing-toggle button { padding: 10px 16px; font-size: 14px; }
  .faq-q { font-size: 17px; }
}
