/* =========================================================
   TypingSpeed.in - Modern SaaS Subscription & Pricing Styles
   Dark & Light Theme Compatible • Responsive • Micro-Interactions
   ========================================================= */

.pricing-page-wrapper {
  padding: 3rem 0 5rem 0;
  position: relative;
  overflow: hidden;
}

/* Background Ambient Glows */
.pricing-ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}
.pricing-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
}
.pricing-glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
  top: 400px;
  right: -100px;
}

/* Hero Section */
.pricing-hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem auto;
  position: relative;
  z-index: 1;
}

.pricing-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.pricing-hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.pricing-hero-title .text-gradient {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-hero-desc {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2rem auto;
}

/* Billing Toggle Switch */
.billing-toggle-container {
  display: inline-flex;
  align-items: center;
  background: var(--bg-hover, #f1f5f9);
  padding: 0.35rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color, #e2e8f0);
  gap: 0.35rem;
  margin-bottom: 1rem;
  position: relative;
}

.billing-toggle-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.billing-toggle-btn.active {
  background: var(--bg-card, #ffffff);
  color: var(--text-main);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.save-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Pricing Cards */
.pricing-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  border-color: rgba(99, 102, 241, 0.35);
}

.pricing-card.featured {
  border: 2px solid #6366f1;
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.16);
  background: linear-gradient(180deg, var(--bg-card, #ffffff) 0%, rgba(99, 102, 241, 0.02) 100%);
  transform: scale(1.03);
  z-index: 2;
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-6px);
  box-shadow: 0 20px 45px rgba(99, 102, 241, 0.24);
}

@media (max-width: 1024px) {
  .pricing-card.featured {
    transform: none;
  }
  .pricing-card.featured:hover {
    transform: translateY(-6px);
  }
}

/* Card Header */
.card-floating-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.35rem 1.15rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  white-space: nowrap;
}

.card-top {
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
}

.plan-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  background: rgba(99, 102, 241, 0.08);
}

.plan-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.plan-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
  min-height: 38px;
}

.plan-trial-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.28rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-top: 0.75rem;
}

/* Price Box */
.price-container {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.price-currency {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
}

.price-amount {
  font-size: 3.25rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-period {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.price-terms-note {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  min-height: 42px;
}

/* Feature List */
.features-container {
  flex-grow: 1;
  margin-bottom: 2rem;
}

.features-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.93rem;
  color: var(--text-main);
  line-height: 1.4;
}

.feature-icon-check {
  color: #10b981;
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.feature-icon-cross {
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
  opacity: 0.6;
}

.feature-item.disabled {
  color: var(--text-muted);
  opacity: 0.65;
}

/* CTA Buttons */
.btn-cta {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.btn-cta-featured {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
}

.btn-cta-featured:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

.btn-cta-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.btn-cta-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  transform: translateY(-2px);
}

.btn-cta-outline {
  background: var(--bg-hover, transparent);
  color: var(--text-main) !important;
  border: 1.5px solid var(--border-color, #cbd5e1);
}

.btn-cta-outline:hover {
  border-color: #6366f1;
  color: #6366f1 !important;
  background: rgba(99, 102, 241, 0.05);
}

/* Coupon & Promo Card */
.promo-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 20px;
  padding: 2rem;
  max-width: 620px;
  margin: 0 auto 4.5rem auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  text-align: center;
  position: relative;
  z-index: 1;
}

.promo-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.promo-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.promo-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.promo-input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: 1.5px solid var(--border-color, #cbd5e1);
  background: var(--bg-input, #ffffff);
  color: var(--text-main);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color 0.2s ease;
}

.promo-input:focus {
  border-color: #6366f1;
}

.btn-apply-coupon {
  padding: 0.85rem 1.75rem;
  background: #6366f1;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.btn-apply-coupon:hover {
  background: #4f46e5;
}

/* Trust & Guarantee Banner */
.guarantee-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.07) 0%, rgba(168, 85, 247, 0.07) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 20px;
  padding: 2.25rem;
  max-width: 960px;
  margin: 0 auto 5rem auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .guarantee-banner {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
    padding: 1.75rem;
  }
}

.guarantee-icon {
  font-size: 3rem;
  background: var(--bg-card, #ffffff);
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.guarantee-content h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 0.4rem 0;
}

.guarantee-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Feature Comparison Table */
.comparison-section {
  max-width: 980px;
  margin: 0 auto 5rem auto;
  position: relative;
  z-index: 1;
}

.comparison-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.comparison-subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.comparison-table-wrapper {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th {
  padding: 1.25rem 1.5rem;
  background: var(--bg-hover, #f8fafc);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.comparison-table th:first-child {
  width: 46%;
}

.comparison-table td {
  padding: 1.1rem 1.5rem;
  font-size: 0.92rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: rgba(99, 102, 241, 0.02);
}

.col-center {
  text-align: center;
}

/* FAQ Accordion Section */
.faq-section {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.faq-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.faq-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  gap: 1rem;
}

.faq-arrow {
  font-size: 0.85rem;
  transition: transform 0.25s ease;
  color: #6366f1;
}

.faq-card.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-card.open .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

