/* ─────────────────────────────────────────────────────────────────────────
   Football Intelligence — Plans (Pricing) page
   Faza 5.17.c-fix (§E borderless layered redesign)

   Borderless layered cards (surface + radius 18 + inner shadow), highlight
   tier with brand glow, current tier badge, big tabular-nums price, sliding
   Monthly/Yearly pill toggle, feature list with SVG check/minus icons.
   Mobile <900px: stack vertically.
   ───────────────────────────────────────────────────────────────────────── */


.plans-page {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-2) var(--space-6);
}

.plans-page__header {
  text-align: center;
  padding: var(--space-2) 0 var(--space-1);
}
.plans-page__header h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.plans-page__header p { margin: 0; font-size: 1rem; color: var(--text-secondary); }


/* === Sliding billing toggle ============================================== */

.plans-toggle {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  margin: var(--space-1) auto var(--space-2);
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  isolation: isolate;
}
.plans-toggle__indicator {
  position: absolute;
  top: 4px;
  left: 4px;       /* left + width set by JS to match the active button */
  height: calc(100% - 8px);
  width: 80px;     /* JS overrides; fallback before first paint */
  background: var(--accent);
  border-radius: 999px;
  z-index: 0;
  transition: left 280ms cubic-bezier(0.4, 0, 0.2, 1), width 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
  .plans-toggle__indicator { transition: none; }
}
.plans-toggle__btn {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  padding: 9px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 220ms ease;
  white-space: nowrap;
}
.plans-toggle__btn--active { color: #06120d; }
.plans-toggle__hint {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
}


/* === Grid =============================================================== */

.plans-page__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 900px) {
  .plans-page__grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}


/* === Plan card (borderless layered) ===================================== */

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 24px;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform var(--duration-fast) var(--easing-out);
}
@media (prefers-reduced-motion: reduce) { .plan-card { transition: none; } }

/* Highlight tier — brand glow ring + halo */
.plan-card--highlight {
  background:
    linear-gradient(180deg, rgba(0, 229, 160, 0.06) 0%, var(--surface-2) 42%);
  box-shadow:
    0 0 0 1px rgba(0, 229, 160, 0.45),
    0 0 38px rgba(0, 229, 160, 0.18),
    0 12px 34px rgba(0, 0, 0, 0.4);
}
@media (min-width: 900px) {
  .plan-card--highlight { transform: scale(1.03); z-index: 1; }
}

/* Current plan — neutral ring */
.plan-card--current {
  box-shadow:
    0 0 0 1px var(--border-strong),
    0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Corner badges (centered pill above card) */
.plan-card__badge,
.plan-card__badge--current,
.plan-card__save-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 2;
}
.plan-card__badge { background: var(--accent); color: #06120d; }
.plan-card__badge--current { background: var(--border-strong); color: var(--text-primary); }
/* When both "Most popular" and SAVE show, offset save to the right corner */
.plan-card__save-badge {
  left: auto; right: 14px; transform: none;
  background: #ffb800; color: #1a1200;
}


/* Card head */
.plan-card__head { display: flex; flex-direction: column; gap: 6px; }
.plan-card__name {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.plan-card__desc { margin: 0; font-size: 0.9rem; line-height: 1.45; }


/* Price — big tabular-nums */
.plan-card__price { display: flex; align-items: baseline; gap: 8px; padding: 4px 0 2px; }
.plan-card__price-amount {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.plan-card--highlight .plan-card__price-amount { color: var(--accent); }
.plan-card__price-cadence { font-size: 0.9rem; color: var(--text-tertiary); }
.plan-card__billed-note { margin: -6px 0 0; }


/* CTA — uses global .fi-btn */
.plan-card__cta { width: 100%; padding: 13px; font-size: 0.95rem; }


/* Features */
.plan-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.plan-card__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.35;
}
.plan-card__feature--ok { color: var(--text-primary); }
.plan-card__feature--no { color: var(--text-tertiary); }
.plan-card__feature-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.plan-card__feature-icon svg { width: 12px; height: 12px; display: block; }
.plan-card__feature--ok .plan-card__feature-icon { background: var(--accent-soft); color: var(--accent); }
.plan-card__feature--no .plan-card__feature-icon { background: rgba(255, 255, 255, 0.05); color: var(--text-tertiary); }
.plan-card__feature-text { flex: 1; min-width: 0; }


/* === YMYL footer ======================================================== */

.plans-page__ymyl {
  text-align: center;
  padding: var(--space-3) 0 var(--space-2);
  line-height: 1.6;
  max-width: 760px;
  margin: var(--space-2) auto 0;
}
.plans-page__ymyl a { color: var(--accent); text-decoration: none; }
.plans-page__ymyl a:hover { text-decoration: underline; }


/* === Mobile ============================================================= */

@media (max-width: 899px) {
  .plan-card--highlight { transform: none; }
}
@media (max-width: 600px) {
  .plans-page__header h1 { font-size: 1.6rem; }
  .plan-card { padding: 22px 18px; }
  .plan-card__price-amount { font-size: 2.8rem; }
}
