/* ============================================================
   FutureU — pricing.css
   Styles for the dedicated pricing page
   Used by: pricing.html only
   ============================================================ */

/* ── Hero ───────────────────────────────────────────────────── */
.pricing-hero {
  padding: 56px 24px 48px;
  text-align: center;
  border-bottom: 0.5px solid var(--border-subtle);
}

.pricing-hero-title {
  font-size: 36px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 16px 0 12px;
  letter-spacing: -0.5px;
}

.pricing-hero-sub {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Plans section ──────────────────────────────────────────── */
.plans-section {
  padding: 40px 24px 32px;
  border-bottom: 0.5px solid var(--border-subtle);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto 20px;
  padding: 16px 8px 24px;
}

@media (max-width: 900px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.plan-card {
  background: var(--bg-primary);
  border: 0.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.26s ease, border-color 0.26s ease;
}

@media (hover: hover) {
  .plan-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.22);
    z-index: 2;
  }
}

.plan-card-featured {
  border: 2px solid var(--brand);
}

/* ── Single Unlock + Bundle — subtle green shimmer border on hover */
.plan-card:not(.plan-card-featured):not(.plan-card-free)::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-lg) + 1px);
  background: linear-gradient(135deg, #1D9E75, #0a4f39, #2DD4A0, #185FA5, #1D9E75);
  background-size: 300% 300%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: subtleGreenFlow 5s ease infinite paused;
}

@keyframes subtleGreenFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (hover: hover) {
  .plan-card:not(.plan-card-featured):not(.plan-card-free):hover::before {
    opacity: 0.55;
    animation-play-state: running;
  }
}

/* ── Free card — particle dots (JS-driven, see pricing.html) ─── */
.plan-card-free {
  overflow: hidden;
}

.free-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  transition: transform 0.9s ease-out, opacity 0.9s ease-out;
}

/* ── White text on hover for all non-pro cards ───────────────── */
@media (hover: hover) {
  .plan-card:not(.plan-card-featured):hover .plan-name,
  .plan-card:not(.plan-card-featured):hover .plan-price,
  .plan-card:not(.plan-card-featured):hover .plan-price span,
  .plan-card:not(.plan-card-featured):hover .plan-price-note,
  .plan-card:not(.plan-card-featured):hover .plan-desc,
  .plan-card:not(.plan-card-featured):hover .plan-feature,
  .plan-card:not(.plan-card-featured):hover .plan-feature span,
  .plan-card:not(.plan-card-featured):hover .feature-muted {
    color: rgba(255, 255, 255, 0.92) !important;
  }
}

/* ── Pro card — animated purple gradient border on hover ─────── */
.plan-card-featured::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(135deg, #8B5CF6, #EC4899, #7C3AED, #A78BFA, #8B5CF6);
  background-size: 300% 300%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: proGradientSpin 3s ease infinite paused;
}

@keyframes proGradientSpin {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (hover: hover) {
  .plan-card-featured:hover {
    border-color: transparent;
    box-shadow: 0 22px 56px rgba(139, 92, 246, 0.35);
  }

  .plan-card-featured:hover::after {
    opacity: 1;
    animation-play-state: running;
  }

  .plan-card-featured:hover .plan-name,
  .plan-card-featured:hover .plan-price,
  .plan-card-featured:hover .plan-price span,
  .plan-card-featured:hover .plan-price-note,
  .plan-card-featured:hover .plan-desc,
  .plan-card-featured:hover .plan-feature,
  .plan-card-featured:hover .plan-feature span,
  .plan-card-featured:hover .feature-muted {
    color: rgba(255, 255, 255, 0.92) !important;
  }
}

.plan-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.plan-name {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.plan-price {
  font-size: 36px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 4px;
}

.plan-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-tertiary);
  letter-spacing: 0;
}

.plan-price-note {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.plan-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 0;
}

.plan-btn {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 22px;
  transition: opacity 0.18s, transform 0.18s, box-shadow 0.18s;
  border: none;
  cursor: pointer;
}

.plan-btn:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  text-decoration: none;
}

.plan-btn-pro:hover {
  box-shadow: 0 6px 20px rgba(29, 158, 117, 0.38);
}

/* ── Gift & Schools special cards ───────────────────────────── */
.special-card {
  position: relative;
  transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.26s ease, border-color 0.26s ease;
}

.special-card::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: calc(var(--radius-lg) + 2px);
  background-size: 300% 300%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s ease;
  animation-duration: 4s;
  animation-timing-function: ease;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}

.special-card-gift::before {
  background-image: linear-gradient(135deg, #F59E0B, #FCD34D, #F97316, #FBBF24, #F59E0B);
  animation-name: giftGlow;
}

.special-card-school::before {
  background-image: linear-gradient(135deg, #185FA5, #3B82F6, #1D9E75, #0EA5E9, #185FA5);
  animation-name: schoolGlow;
}

@keyframes giftGlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes schoolGlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (hover: hover) {
  .special-card:hover {
    transform: translateY(-5px);
    border-color: transparent !important;
  }

  .special-card:hover::before {
    opacity: 0.75;
    animation-play-state: running;
  }

  .special-card-gift:hover {
    box-shadow: 0 16px 40px rgba(245, 158, 11, 0.25);
  }

  .special-card-school:hover {
    box-shadow: 0 16px 40px rgba(24, 95, 165, 0.25);
  }

  .special-card:hover .special-card-title,
  .special-card:hover .special-card-desc {
    color: rgba(255, 255, 255, 0.92) !important;
  }
}

.btn-brand {
  transition: opacity 0.18s, transform 0.18s, box-shadow 0.18s !important;
  position: relative;
  overflow: hidden;
}

.btn-brand::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}

.btn-brand:hover::after {
  animation: btnShimmer 0.55s ease forwards;
}

@keyframes btnShimmer {
  0%   { left: -80%; }
  100% { left: 160%; }
}

.btn-brand:hover {
  opacity: 0.92 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(29, 158, 117, 0.38) !important;
  text-decoration: none !important;
}

.plan-btn-free:hover,
.plan-btn-report:hover {
  box-shadow: 0 6px 20px rgba(29, 158, 117, 0.28);
}

.plan-btn-free {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 0.5px solid var(--border-mid);
}

.plan-btn-report {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 0.5px solid var(--border-mid);
}

.plan-btn-pro {
  background: var(--brand);
  color: #fff;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.plan-feature {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--text-secondary);
}

.feature-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-check-yes {
  background: var(--brand-light);
}

.feature-check-yes::after {
  content: '';
  display: block;
  width: 4px;
  height: 7px;
  border: 1.5px solid var(--brand-dark);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.feature-check-pro {
  background: var(--brand-light);
}

.feature-check-no {
  background: var(--bg-secondary);
  border: 0.5px solid var(--border-subtle);
}

.feature-check-no::after {
  content: '×';
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1;
}

.feature-muted {
  color: var(--text-tertiary);
  text-decoration: line-through;
  text-decoration-color: var(--border-subtle);
}

.plans-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
  max-width: 500px;
  margin: 0 auto;
}

/* ── Comparison table ───────────────────────────────────────── */
.compare-section {
  padding: 40px 24px;
  border-bottom: 0.5px solid var(--border-subtle);
}

.compare-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 24px;
}

.compare-table-wrap {
  overflow-x: auto;
  max-width: 1060px;
  margin: 0 auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.compare-table th {
  padding: 10px 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 0.5px solid var(--border-subtle);
  white-space: nowrap;
}

.compare-feature-col {
  text-align: left !important;
  width: 40%;
}

.compare-pro-col {
  color: var(--brand-dark) !important;
  background: var(--brand-light);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.compare-table td {
  padding: 10px 14px;
  color: var(--text-secondary);
  border-bottom: 0.5px solid var(--border-subtle);
  text-align: center;
}

.compare-table td:first-child {
  text-align: left;
  color: var(--text-primary);
}

.compare-section-row td {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  background: var(--bg-secondary);
  padding: 8px 14px;
  text-align: left !important;
}

.compare-val {
  font-weight: 500;
  color: var(--text-primary) !important;
}

.compare-val-pro {
  color: var(--brand-dark) !important;
}

.c-yes {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-light);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-yes::after {
  content: '';
  display: block;
  width: 4px;
  height: 8px;
  border: 1.5px solid var(--brand-dark);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.c-yes-pro {
  background: var(--brand-light);
}

.c-no {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 0.5px solid var(--border-subtle);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 12px;
}

.c-no::after {
  content: '×';
}

/* ── Why pay ────────────────────────────────────────────────── */
.why-section {
  padding: 40px 24px;
  border-bottom: 0.5px solid var(--border-subtle);
}

.why-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 10px;
}

.why-sub {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.why-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.why-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.why-card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.why-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ── Testimonials ───────────────────────────────────────────── */
.testimonials-section {
  padding: 40px 24px;
  border-bottom: 0.5px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.testimonials-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 24px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--bg-primary);
  border: 0.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.testimonial-stars {
  color: #EF9F27;
  font-size: 13px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.testimonial-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.testimonial-author {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-section {
  padding: 40px 24px;
  border-bottom: 0.5px solid var(--border-subtle);
}

.faq-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 24px;
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 0.5px solid var(--border-subtle);
  cursor: pointer;
}

.faq-item:first-child {
  border-top: 0.5px solid var(--border-subtle);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.faq-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  position: relative;
}

.faq-arrow::before,
.faq-arrow::after {
  content: '';
  position: absolute;
  background: var(--text-tertiary);
  border-radius: 2px;
  transition: transform 0.2s;
}

.faq-arrow::before {
  width: 10px;
  height: 1.5px;
  top: 8px;
  left: 4px;
  transform: rotate(45deg);
}

.faq-arrow::after {
  width: 10px;
  height: 1.5px;
  top: 8px;
  left: 4px;
  transform: rotate(-45deg) translateX(7px);
}

.faq-item.open .faq-arrow::before {
  transform: rotate(-45deg);
}

.faq-item.open .faq-arrow::after {
  transform: rotate(45deg) translateX(7px);
}

.faq-a {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 0 0 16px;
  display: none;
  max-width: 580px;
}

.faq-item.open .faq-a {
  display: block;
}

/* ── Bottom CTA ─────────────────────────────────────────────── */
.pricing-cta {
  padding: 56px 24px;
  text-align: center;
}

.pricing-cta-title {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.pricing-cta-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.pricing-cta-note {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 12px;
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .pricing-hero-title {
    font-size: 26px;
  }

  .compare-table {
    font-size: 12px;
  }
}