/* =================================
   PRICING PAGE STYLES
   Reset AI - Premium card layout
   ================================= */

/* Pricing Hero Section */
.pricing-hero-section {
  background: var(--primary-color);
  padding: 130px 20px 60px;
  position: relative;
  overflow: hidden;
}

.pricing-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 40%, rgba(0, 150, 100, 0.2) 42%, rgba(0, 150, 100, 0.2) 44%, transparent 46%), linear-gradient(-30deg, transparent 30%, rgba(0, 130, 85, 0.3) 32%, rgba(0, 130, 85, 0.3) 35%, transparent 37%);
  animation: flowingLines 3s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

.pricing-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.pricing-hero-content h1 {
  color: var(--secondary-color);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.1;
}

.pricing-subtitle {
  color: rgba(246, 244, 241, 0.85);
  font-size: 1.1rem;
  margin-bottom: 28px;
  font-weight: 300;
}

/* Billing Toggle */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.toggle-label {
  color: rgba(246, 244, 241, 0.6);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.toggle-label.active {
  color: var(--secondary-color);
}

.save-badge {
  background: var(--accent-yellow);
  color: var(--primary-color);
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--secondary-color);
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--accent-yellow);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
  background-color: var(--primary-color);
}

/* Pricing Cards Section */
.pricing-cards-section {
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 12%);
  padding: 0 20px 60px;
}

.pricing-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -10px;
}

/* Pricing Card */
.pricing-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 24px 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(1, 69, 49, 0.06);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
  overflow: hidden;
}

/* Subtle top accent line per tier */
.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e3f2fd, #bbdefb);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pricing-card:hover::before,
.pricing-card.featured::before {
  opacity: 1;
}
.pricing-card[data-plan="base"]::before { background: linear-gradient(90deg, #bbdefb, #64b5f6); }
.pricing-card[data-plan="pro"]::before { background: linear-gradient(90deg, #c8eb2d, #a8d600); }
.pricing-card[data-plan="ultra"]::before { background: linear-gradient(90deg, #ffe0b2, #ffb74d); }
.pricing-card[data-plan="enterprise"]::before { background: linear-gradient(90deg, #e1bee7, #ce93d8); }

.pricing-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Featured Card */
.pricing-card.featured {
  border-color: var(--primary-color);
  background: linear-gradient(180deg, #ffffff 0%, #f0fff5 100%);
  box-shadow: 0 8px 32px rgba(1, 69, 49, 0.12);
  z-index: 2;
}

.pricing-card.featured.animate-in {
  transform: translateY(0);
}

.pricing-card.featured:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(1, 69, 49, 0.18);
}

/* Interactive hover: transfer highlight to hovered card */
.pricing-container:hover .pricing-card.featured {
  border-color: rgba(1, 69, 49, 0.06);
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.pricing-container:hover .pricing-card.featured .plan-cta {
  background: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--primary-color);
  box-shadow: none;
}

.pricing-container .pricing-card:hover {
  border-color: var(--primary-color);
  background: linear-gradient(180deg, #ffffff 0%, #f0fff5 100%);
  box-shadow: 0 20px 48px rgba(1, 69, 49, 0.15);
}

.pricing-container .pricing-card:hover .plan-cta {
  background: var(--accent-yellow);
  color: var(--primary-color);
  border-color: var(--accent-yellow);
  box-shadow: 0 4px 16px rgba(200, 235, 45, 0.35);
}

.pricing-container .pricing-card:hover .plan-cta:hover {
  background: #d4f230;
  border-color: #d4f230;
  box-shadow: 0 6px 20px rgba(200, 235, 45, 0.5);
}

.pricing-container:hover .pricing-card.featured:hover {
  border-color: var(--primary-color);
  background: linear-gradient(180deg, #ffffff 0%, #f0fff5 100%);
  box-shadow: 0 20px 48px rgba(1, 69, 49, 0.18);
}

.pricing-container:hover .pricing-card.featured:hover .plan-cta {
  background: var(--accent-yellow);
  color: var(--primary-color);
  border-color: var(--accent-yellow);
  box-shadow: 0 4px 16px rgba(200, 235, 45, 0.35);
}

.featured-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 5px 18px;
  border-radius: 0 0 12px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.featured-badge i {
  color: var(--accent-yellow);
  font-size: 0.6rem;
}

/* Card Header */
.pricing-card .card-header {
  text-align: center;
  margin-bottom: 16px;
  padding-top: 4px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.plan-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 1.2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover .plan-icon {
  transform: scale(1.08);
}

.base-icon {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1565c0;
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.15);
}

.pro-icon {
  background: linear-gradient(135deg, var(--tertiary-color) 0%, var(--accent-yellow) 100%);
  color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(200, 235, 45, 0.25);
}

.ultra-icon {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #e65100;
  box-shadow: 0 4px 12px rgba(230, 81, 0, 0.15);
}

.enterprise-icon {
  background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
  color: #7b1fa2;
  box-shadow: 0 4px 12px rgba(123, 31, 162, 0.15);
}

.plan-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.plan-tagline {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.4;
}

/* Card Pricing */
.pricing-card .card-pricing {
  text-align: center;
  padding: 16px 0;
  margin-bottom: 16px;
  background: rgba(1, 69, 49, 0.02);
  border-radius: 12px;
  margin-left: -4px;
  margin-right: -4px;
  padding-left: 4px;
  padding-right: 4px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.price-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 4px;
}

.currency {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.price {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color) 0%, #027a52 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.custom-price {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color) 0%, #027a52 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.period {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
}

.price-note {
  font-size: 0.75rem;
  color: var(--text-light);
  margin: 0;
}

/* Discount Badge */
.discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(200, 235, 45, 0.2);
  color: var(--primary-color);
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 600;
  margin-right: 3px;
}

.discount-badge i {
  font-size: 0.55rem;
}

/* Plan Use Case Section */
.plan-usecase {
  padding: 10px 0;
  margin-bottom: 8px;
}

.usecase-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary-color);
  margin-bottom: 3px;
  opacity: 0.7;
}

.usecase-text {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.45;
  margin: 0;
}

/* Plan Features */
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 0;
  font-size: 0.88rem;
  color: var(--text-dark);
  line-height: 1.4;
}

.plan-features li i {
  color: #10b981;
  font-size: 0.65rem;
  margin-top: 5px;
  flex-shrink: 0;
}

/* Plan CTA Buttons */
.plan-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-top: auto;
  background: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.plan-cta:hover {
  background: #026d4a;
  border-color: #026d4a;
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(1, 69, 49, 0.3);
}

/* Featured card CTA */
.pricing-card.featured .plan-cta {
  background: var(--accent-yellow);
  color: var(--primary-color);
  border-color: var(--accent-yellow);
  box-shadow: 0 4px 16px rgba(200, 235, 45, 0.3);
}

/* Active nav link */
.nav-links a.active {
  color: var(--accent-yellow) !important;
  opacity: 1;
}

/* Responsive Styles */
@media (max-width: 1400px) {
  .pricing-container {
    max-width: 1000px;
    gap: 16px;
  }

  .pricing-card {
    padding: 24px 20px 22px;
  }

  .plan-features li {
    font-size: 0.85rem;
  }

  .plan-name {
    font-size: 1.2rem;
  }

  .price {
    font-size: 2.1rem;
  }
}

@media (max-width: 1200px) {
  .pricing-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 680px;
  }

  .pricing-card {
    padding: 28px 24px 24px;
  }

  .plan-features li {
    font-size: 0.88rem;
  }

  .plan-name {
    font-size: 1.3rem;
  }

  .price {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .pricing-hero-section {
    padding: 110px 16px 50px;
  }

  .pricing-hero-content h1 {
    font-size: 1.8rem;
  }

  .pricing-subtitle {
    font-size: 1rem;
  }

  .billing-toggle {
    padding: 8px 14px;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .toggle-label {
    font-size: 0.85rem;
  }

  .pricing-container {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: -10px auto 0;
  }

  .pricing-cards-section {
    padding-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .pricing-hero-section {
    padding: 100px 12px 40px;
  }

  .pricing-hero-content h1 {
    font-size: 1.6rem;
  }

  .price {
    font-size: 2rem;
  }

  .pricing-card {
    padding: 24px 18px 20px;
  }

  .plan-icon {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
}

/* Animation Keyframes */
@keyframes flowingLines {
  0%,
  100% {
    transform: translateX(0) translateY(0);
    background-size: 200% 200%;
  }
  50% {
    transform: translateX(30px) translateY(20px);
    background-size: 180% 220%;
  }
}

/* Staggered animation delays */
.pricing-card:nth-child(1) { transition-delay: 0.05s; }
.pricing-card:nth-child(2) { transition-delay: 0.12s; }
.pricing-card:nth-child(3) { transition-delay: 0.19s; }
.pricing-card:nth-child(4) { transition-delay: 0.26s; }
.pricing-card:nth-child(5) { transition-delay: 0.33s; }
