/* Pricing Page Styles - ported from React pricing.css */

.pricing-page {
  background: transparent;
  min-height: 100vh;
  padding: 40px 0 60px;
}

.pricing-hero {
  text-align: center;
  margin-bottom: 40px;
}

.pricing-hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(79, 70, 229, 0.08);
  color: #4f46e5;
  margin-bottom: 12px;
}

.pricing-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing-hero p {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 640px;
  margin: 0 auto; 
}

.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  justify-content: center;
}

.pricing-card {
  border-radius: 18px;
  padding: 24px 24px 28px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
  /* Approximate original 4-column grid width while using flexbox */
  flex: 0 0 calc(25% - 18px);
}

.pricing-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.pricing-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
}

.pricing-card-plan-key {
  font-size: 0.8rem;
  color: #6b7280;
}

.pricing-card-price {
  text-align: right;
}

.pricing-amount {
  font-size: 1.9rem;
  font-weight: 700;
}

.pricing-period {
  font-size: 0.8rem;
  color: #6b7280;
}

.pricing-card-tagline {
  font-size: 0.9rem;
  color: #4b5563;
}

.pricing-meta {
  font-size: 0.9rem;
  color: #4b5563;
}

.pricing-feature-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: #4b5563;
}

.pricing-feature-list li::before {
  content: "\2022";
  color: #4f46e5;
  margin-right: 6px;
}

.pricing-footer-note {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 24px;
}

/* Featured / recommended plan */

.pricing-card.featured {
  border-width: 2px;
  border-color: #4f46e5;
  box-shadow: 0 22px 50px rgba(79, 70, 229, 0.38);
  transform: translateY(-4px);
  position: relative;
}

.pricing-card-badge {
  position: absolute;
  top: 14px;
  left: 18px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: #4f46e5;
  color: #ffffff;
}

.pricing-card:hover {
  border-color: #a855f7;
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.7),
    0 0 24px rgba(168, 85, 247, 0.8),
    0 22px 55px rgba(15, 23, 42, 0.9);
  transform: translateY(-4px);
  background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.16), rgba(255, 255, 255, 0.96));
}

.pricing-card.featured:hover {
  border-color: #22d3ee;
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.85),
    0 0 30px rgba(56, 189, 248, 0.95),
    0 26px 60px rgba(15, 23, 42, 0.95);
  transform: translateY(-6px);
}

/* Dark mode overrides */

.dark .pricing-hero h1 {
  color: #f9fafb;
}

.dark .pricing-hero p {
  color: #cbd5e1;
}

.dark .pricing-hero-kicker {
  background: rgba(129, 140, 248, 0.2);
  color: #e5e7ff;
}

.dark .pricing-card {
  background: var(--dark-surface-a20);
  border-color: var(--dark-surface-a40);
  box-shadow: var(--dark-shadow-lg);
}

.dark .pricing-card-title {
  color: #f9fafb;
}

.dark .pricing-card-plan-key,
.dark .pricing-card-tagline,
.dark .pricing-meta,
.dark .pricing-feature-list,
.dark .pricing-footer-note {
  color: #cbd5e1;
}

.dark .pricing-feature-list li::before {
  color: var(--dark-tint-primary-a20);
}

.dark .pricing-card.featured {
  border-color: var(--dark-tint-primary-a10);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.9);
}

.dark .pricing-card-badge {
  background: var(--dark-tint-primary-a10);
}

.dark .pricing-card:hover {
  border-color: var(--dark-tint-primary-a10);
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.75),
    0 0 30px rgba(56, 189, 248, 0.95),
    0 26px 60px rgba(0, 0, 0, 1);
}

.dark .pricing-card.featured:hover {
  border-color: var(--dark-tint-primary-a10);
  box-shadow:
    0 0 0 1px rgba(94, 234, 212, 0.95),
    0 0 38px rgba(129, 140, 248, 1),
    0 28px 72px rgba(0, 0, 0, 1);
}
.pricing-inworld-cta {
  text-align: center;
  margin: 44px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.pricing-inworld-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #06b6d4 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 18px rgba(79, 70, 229, 0.55),
    0 0 40px rgba(6, 182, 212, 0.18),
    0 6px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* shimmer sweep on hover */
.pricing-inworld-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 65%
  );
  transform: translateX(-100%);
  transition: transform 0.55s ease;
}

.pricing-inworld-btn:hover::before {
  transform: translateX(100%);
}

/* arrow icon via pseudo */
.pricing-inworld-btn::after {
  content: '↗';
  font-size: 1rem;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pricing-inworld-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 28px rgba(79, 70, 229, 0.8),
    0 0 60px rgba(6, 182, 212, 0.35),
    0 10px 36px rgba(0, 0, 0, 0.38);
}

.pricing-inworld-btn:hover::after {
  opacity: 1;
  transform: translate(2px, -2px);
}

.pricing-inworld-sub {
  font-size: 0.8rem;
  color: #9ca3af;
  letter-spacing: 0.02em;
}

.dark .pricing-inworld-btn {
  box-shadow:
    0 0 22px rgba(99, 102, 241, 0.65),
    0 0 50px rgba(6, 182, 212, 0.22),
    0 6px 28px rgba(0, 0, 0, 0.5);
}

.dark .pricing-inworld-btn:hover {
  box-shadow:
    0 0 36px rgba(99, 102, 241, 0.9),
    0 0 70px rgba(6, 182, 212, 0.45),
    0 10px 40px rgba(0, 0, 0, 0.65);
}

.dark .pricing-inworld-sub {
  color: #6b7280;
}

@media (max-width: 1024px) {
  /* Behave like the old 2-column grid on medium screens */
  .pricing-card {
    flex: 0 0 calc(50% - 18px);
  }
}

@media (max-width: 768px) {
  /* Single column on small screens */
  .pricing-card {
    flex: 0 0 100%;
  }

  .pricing-hero h1 {
    font-size: 2.4rem;
  }
}
