/* Pricing Section */
.pricing-section {
  padding: 6rem 2rem;
  background: linear-gradient(
    135deg,
    var(--surface-variant) 0%,
    var(--surface) 100%
  );
  position: relative;
}

.pricing-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 40%,
    rgba(33, 150, 243, 0.03) 0%,
    transparent 50%
  );
}

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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: start; /* Allow cards to have different heights */
}

.pricing-card {
  background: rgba(14, 17, 23, 0.85);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(33, 150, 243, 0.12);
  border-radius: 32px;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2),
    0 8px 32px rgba(33, 150, 243, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  align-self: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: auto; /* Allow natural height */
  min-height: auto; /* Remove minimum height constraint */
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--seed-color) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pricing-card:hover::before {
  opacity: 1;
}

.pricing-card.recommended {
  border-color: rgba(33, 150, 243, 0.25);
  box-shadow: 0 25px 80px rgba(33, 150, 243, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: scale(1.03);
}

.pricing-card.recommended::after {
  content: "Empfohlen";
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--seed-color), var(--seed-variant));
  color: white;
  padding: 0.7rem 2rem;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(33, 150, 243, 0.25), 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.pricing-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.25),
    0 15px 50px rgba(33, 150, 243, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(33, 150, 243, 0.2);
}

.pricing-card.recommended:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 40px 120px rgba(33, 150, 243, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.plan-tier {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--on-surface-variant);
  margin-bottom: 0.5rem;
  opacity: 0.8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--on-surface);
}

.plan-price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--seed-color);
  margin-bottom: 2rem;
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
  flex-grow: 1; /* Allow features to expand and push button to bottom */
}

.plan-features li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--on-surface-variant);
  font-family: "Inter", sans-serif;
  font-weight: 400;
}

.plan-features li::before {
  content: "✅";
  font-size: 1rem;
}

.plan-features li.unavailable::before {
  content: "❌";
}

.plan-button {
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(135deg, var(--seed-color), var(--seed-variant));
  color: white;
  border: none;
  border-radius: 16px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
  position: relative;
  overflow: hidden;
  margin-top: auto; /* Push button to bottom */
}

.plan-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.plan-button:hover::before {
  left: 100%;
}

.plan-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
}

.plan-button.secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--on-surface);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.plan-button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

p.pricing-note {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--on-surface-variant);
  text-align: center;
  margin-top: 2rem;
  opacity: 0.8;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
