/* ═══════════════════════════════════════════
   VITANTRA — pricing.css
═══════════════════════════════════════════ */

/* ── BILLING TOGGLE ── */
.pricing-section {
  background: var(--bg);
  padding: 120px 0;
}

.billing-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 64px;
  position: relative;
  z-index: 10;
  opacity: 1 !important;
  pointer-events: all !important;
}
.bl-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--tx-faint);
  cursor: pointer;
  transition: color 150ms;
  user-select: none;
  pointer-events: all !important;
}
.bl-label.active { color: var(--tx); font-weight: 600; }
.bl-track {
  width: 52px; height: 28px;
  background: var(--ivory-mid);
  border: 1.5px solid var(--border-md);
  border-radius: var(--r-full);
  position: relative;
  cursor: pointer;
  transition: background 200ms, border-color 200ms;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  pointer-events: all !important;
  z-index: 10;
}
.bl-track.on { background: var(--forest); border-color: var(--forest); }
.bl-knob {
  width: 22px; height: 22px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px; left: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  transition: transform 220ms cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.bl-track.on .bl-knob { transform: translateX(24px); }
.bl-save {
  background: var(--gold-pale);
  border: 1px solid rgba(184,146,74,0.25);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  padding: 5px 14px;
  border-radius: var(--r-full);
  font-family: 'Outfit', sans-serif;
}

/* ── PRICING GRID ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

.p-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  position: relative;
  transition: transform 220ms var(--ease-expo), box-shadow 220ms ease;
}
.p-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}

/* Featured card */
.p-card.featured {
  background: var(--forest);
  border-color: var(--forest);
}
.p-card.featured:hover {
  box-shadow: 0 20px 64px rgba(26,58,53,0.3);
}

/* Coming soon */
.p-card.later { opacity: 0.7; }
.p-card.later:hover { opacity: 0.95; transform: translateY(-2px); }

/* Badge */
.p-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: var(--r-full);
  white-space: nowrap;
  font-family: 'Outfit', sans-serif;
}
.p-badge.b-gold { background: var(--gold); color: white; }
.p-badge.b-dim  { background: var(--ivory-mid); border: 1px solid var(--border-md); color: var(--tx-faint); }

/* Card content */
.p-phase { font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; font-family: 'Outfit', sans-serif; }
.p-card.featured .p-phase { color: #A8CEBC; font-weight: 800; }
.p-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--tx);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.p-card.featured .p-name { color: var(--ivory); }
.p-tag { font-size: 13px; color: var(--tx-sub); margin-bottom: 24px; font-weight: 300; line-height: 1.5; }
.p-card.featured .p-tag { color: var(--tx-inv-sub); }

/* Price */
.p-price-block { margin-bottom: 24px; }
.p-price-row { display:flex; align-items:flex-start; gap:2px; line-height:1; }
.p-sym { font-family:'Cormorant Garamond',serif; font-size:20px; font-weight:600; color:var(--tx); margin-top:5px; }
.p-card.featured .p-sym { color:var(--ivory); }
.p-amt {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 600;
  color: var(--tx);
  letter-spacing: -0.04em;
}
.p-card.featured .p-amt { color: var(--ivory); }
.p-per { font-size:13px; color:var(--tx-faint); align-self:flex-end; padding-bottom:8px; }
.p-card.featured .p-per { color: var(--tx-inv-faint); }
.p-free-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 46px;
  font-weight: 600;
  color: var(--tx);
  letter-spacing: -0.04em;
  line-height: 1;
}
.p-note { font-size: 12px; color: var(--tx-faint); margin-top: 8px; min-height: 16px; }
.p-card.featured .p-note { color: var(--tx-inv-faint); }

/* Divider */
.p-div { height:1px; background: var(--border); margin: 22px 0; }
.p-card.featured .p-div { background: var(--border-dark); }

/* Features list */
.p-features { display:flex; flex-direction:column; gap:10px; margin-bottom:28px; }
.p-feature {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13px;
  color: var(--tx-sub);
  line-height: 1.5;
}
.p-card.featured .p-feature { color: var(--tx-inv-sub); }
.pf-mark {
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--forest-pale);
  color: var(--forest);
  font-size: 8px;
  font-weight: 700;
  display: flex; align-items:center; justify-content:center;
  flex-shrink: 0;
  margin-top: 1px;
}
.p-card.featured .pf-mark { background: rgba(125,181,160,0.2); color: var(--sage-light); }

/* CTA */
.p-cta {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--r-lg);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 150ms ease;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.cta-forest { background: var(--forest); color: var(--ivory); }
.cta-forest:hover { background: var(--forest-light); }
.cta-inv { background: var(--ivory); color: var(--forest); }
.cta-inv:hover { background: white; }
.cta-outline { background: transparent; border: 1.5px solid var(--border-md); color: var(--tx-mid); }
.cta-outline:hover { border-color: var(--forest); color: var(--forest); background: var(--forest-pale); }
.cta-dim { background: transparent; border: 1.5px solid var(--border); color: var(--tx-faint); cursor: not-allowed; opacity: 0.6; }

/* Footnote */
.pricing-footnote {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: var(--tx-faint);
  font-weight: 300;
  line-height: 1.8;
}
.pricing-footnote a { color: var(--forest); font-weight: 500; }

/* ── SPECIAL PLANS ── */
.special-section {
  background: var(--ivory-deep);
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.sp-header { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:56px; gap: 40px; }
.sp-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 300;
  font-style: italic;
  color: var(--tx);
  line-height: 1.1;
}
.sp-title strong { font-style: normal; font-weight: 600; color: var(--forest); }
.sp-sub { max-width: 360px; font-size: 16px; font-weight: 300; line-height: 1.72; color: var(--tx-sub); }
.sp-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; max-width:100%; }
.sp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 32px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.sp-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.sp-icon { font-size: 36px; margin-bottom: 18px; }
.sp-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--tx);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.sp-desc { font-size: 14px; font-weight: 300; line-height: 1.72; color: var(--tx-sub); margin-bottom: 18px; }
.sp-price { font-family:'Cormorant Garamond',serif; font-size:26px; font-weight:600; color:var(--forest); letter-spacing:-0.02em; }
.sp-note { font-size:12px; color:var(--tx-faint); margin-top:3px; }

/* ── FAQ ── */
.faq-section {
  background: var(--bg);
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.faq-header { margin-bottom: 60px; }
.faq-header-inner { display:flex; align-items:flex-end; justify-content:space-between; gap:48px; }
.faq-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 300;
  font-style: italic;
  color: var(--tx);
}
.faq-title strong { font-style:normal; font-weight:600; color:var(--forest); }
.faq-sub { max-width: 340px; font-size: 15px; font-weight: 300; line-height: 1.72; color: var(--tx-sub); }
.faq-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 150ms;
}
.faq-item:hover { border-color: var(--border-md); }
.faq-item.open { border-color: rgba(26,58,53,0.2); }
.faq-btn {
  width:100%; background:none; border:none;
  padding: 22px 26px;
  display: flex; justify-content:space-between; align-items:center; gap:16px;
  cursor: pointer;
}
.faq-q-text { font-size:15px; font-weight:600; color:var(--tx); text-align:left; line-height:1.4; }
.faq-plus {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ivory-deep);
  border: 1px solid var(--border);
  color: var(--tx-sub);
  font-size: 16px;
  display: flex; align-items:center; justify-content:center;
  flex-shrink: 0;
  transition: transform 260ms ease, background 150ms;
  font-family: 'Outfit', sans-serif;
}
.faq-item.open .faq-plus { transform: rotate(45deg); background: var(--forest-pale); color: var(--forest); }
.faq-ans { max-height: 0; overflow: hidden; transition: max-height 360ms ease; }
.faq-item.open .faq-ans { max-height: 200px; }
.faq-ans-inner { padding: 0 26px 22px; font-size: 14px; font-weight: 300; line-height: 1.78; color: var(--tx-sub); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr; max-width:420px; margin:0 auto; }
  .sp-grid { grid-template-columns: 1fr; max-width:420px; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-header-inner, .sp-header { flex-direction:column; align-items:flex-start; gap:20px; }
}

/* ── STUDENT + FAMILY SUB-BOXES INSIDE CARDS ── */
.p-sub-plans {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border-md);
  padding-top: 18px;
}
.p-sub-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--ivory-deep);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  transition: border-color 200ms;
}
.p-card.featured .p-sub-card {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}
.p-card.featured .p-sub-card:hover { border-color: rgba(255,255,255,0.25); }
.p-sub-card:hover { border-color: var(--gold); }
.p-sub-icon { font-size: 22px; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.p-sub-info { flex: 1; min-width: 0; }
.p-sub-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--tx);
  letter-spacing: 0.01em;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.p-card.featured .p-sub-title { color: var(--ivory); }
.p-sub-members {
  font-size: 10px;
  font-weight: 600;
  background: rgba(184,146,74,0.15);
  color: var(--gold-light);
  padding: 1px 7px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.p-sub-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -0.01em;
}
.p-sub-price span { font-size: 11px; font-weight: 400; color: var(--tx-faint); }
.p-card.featured .p-sub-price { color: var(--sage-light); }
.p-sub-saving {
  font-size: 10.5px;
  font-weight: 400;
  color: var(--tx-faint);
  line-height: 1.4;
  margin-top: 2px;
}
.p-card.featured .p-sub-saving { color: rgba(248,244,238,0.45); }

/* Core free note */
.p-sub-note {
  font-size: 11px;
  color: var(--tx-faint);
  text-align: center;
  padding-top: 16px;
  letter-spacing: 0.02em;
}
