/* Pricing Page Styles - v3 Design System */

/* Nav styling for pricing page - dark gradient at top, dark when scrolled */
.nav {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav:not(.scrolled) {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}

.nav.scrolled.dark-bg {
  background: rgba(5, 9, 19, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav.scrolled.light-bg {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Nav links are white by default (for dark background) */
.nav-link {
  color: #ffffff;
}

/* Nav links are dark on light background */
.nav.scrolled.light-bg .nav-link {
  color: #030712;
}

.nav.scrolled.light-bg .nav-link:hover {
  color: #030712;
  opacity: 0.7;
}

.nav.scrolled.light-bg .nav-link-dropdown {
  color: #030712;
}

.nav.scrolled.light-bg .dropdown-arrow {
  stroke: #030712;
}

.nav.scrolled.light-bg .user-icon {
  stroke: #030712;
}

.nav.scrolled.light-bg .mobile-menu-toggle .menu-icon {
  color: #030712;
}

.nav-button {
  background: linear-gradient(135deg, #c71f0d 0%, #d62916 100%);
  color: #ffffff;
  text-decoration: none;
}

/* Pricing Hero Section */
.pricing-hero {
  min-height: 100vh;
  padding: calc(5.5rem + 2rem) 1.5rem 2rem;
  text-align: center;
  background: #030712;
  background-image:
    radial-gradient(at 20% 30%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 80% 70%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(16, 185, 129, 0.08) 0px, transparent 50%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.pricing-hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.pricing-hero-title {
  font-family: 'Newsreader', serif;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  background: linear-gradient(120deg, #93c5fd 0%, #fca5a5 45%, #fde68a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-hero-subtitle {
  font-size: 1rem;
  line-height: 1.5;
  color: #d1d5db;
}

/* Pricing Plans Section */
.pricing-plans {
  position: relative;
  padding: 2rem 0 3rem;
  background: transparent;
  margin-top: -5%;
  z-index: 10;
}

.pricing-container {
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Pricing cards container - use flexbox for better control */
.pricing-plans .pricing-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pricing-column {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Pricing Cards */
.pricing-card {
  background: #ffffff;
  border: none;
  border-radius: 1rem;
  padding: 1.75rem 1.25rem;
  position: relative;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pricing-card-featured {
  transform: none;
  z-index: 5;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
}

.pricing-card-best-value {
  border: none;
  background: #ffffff;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 2rem;
  transform: none;
  background: #F2737B;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-badge-best {
  background: #FFD867;
  color: #000000;
  left: 50%;
  transform: translateX(-50%);
}

.pricing-card-header {
  margin-bottom: 0.5rem;
}

.pricing-card-title {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #1A1A1A;
  margin-bottom: 0;
  line-height: 1.3;
  text-align: left;
}

.pricing-card-subtitle {
  font-size: 1rem;
  color: #888888;
  margin: 0;
}

.pricing-card-price {
  margin-bottom: 0.75rem;
  padding-bottom: 0;
  border-bottom: none;
  position: relative;
}

.pricing-price-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.pricing-price-left {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 500;
  color: #1A1A1A;
  display: inline-block;
  line-height: 1.2;
}

.pricing-strikethrough {
  font-size: 1rem;
  color: #888888;
  text-decoration: line-through;
  margin-left: 0.5rem;
  display: inline-block;
  padding-bottom: 0.125rem;
}

.pricing-period {
  font-size: 1rem;
  color: #888888;
  padding-bottom: 0.125rem;
}

.pricing-original {
  display: block;
  font-size: 0.875rem;
  color: #888888;
  text-decoration: line-through;
  margin-top: 0.25rem;
}

.pricing-save-badge {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #000000;
  color: #ffffff;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.pricing-save-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.pricing-card-image {
  margin-bottom: 1rem;
  width: 100%;
}

.pricing-card-image img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  object-fit: contain;
}

.pricing-card-description {
  margin-bottom: 0.75rem;
  color: #1A1A1A;
  line-height: 1.6;
  font-size: 0.9375rem;
}

.pricing-card-features {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-features-title {
  font-weight: 600;
  color: #1A1A1A;
  font-size: 1rem;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #1A1A1A;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.pricing-feature svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: #1A1A1A;
  width: 20px;
  height: 20px;
}

.pricing-feature-text {
  flex: 1;
}

.pricing-feature-highlight {
  color: #7B3BEE;
  font-weight: 600;
}

.concierge-highlight {
  border-radius: 8px;
  padding: 1rem;
  margin: 0.5rem 0;
  background: linear-gradient(135deg, rgba(157, 193, 245, 0.15), rgba(207, 178, 201, 0.15));
  position: relative;
}

.concierge-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 8px;
  padding: 2px;
  background: linear-gradient(135deg, #9DC1F5, #CFB2C9);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.concierge-highlight .pricing-feature {
  margin-bottom: 0.75rem;
}

.concierge-highlight .pricing-feature:last-child {
  margin-bottom: 0;
}

/* Pay-as-you-go section */
.pricing-card-pay-as-you-go {
  border-radius: 0.5rem;
  padding: 0.25rem 0;
  margin-top: -1rem;
  margin-bottom: 2rem;
}

.pay-as-you-go-header {
  margin-bottom: 1rem;
}

.pay-as-you-go-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 0.5rem;
}

.pay-as-you-go-header p {
  font-size: 0.875rem;
  color: #888888;
  margin: 0;
}

.pay-as-you-go-table {
  display: flex;
  flex-direction: column;
}

.pay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.pay-duration {
  color: #1A1A1A;
  font-size: 0.9375rem;
}

.pay-price {
  color: #1A1A1A;
  font-weight: 500;
}

/* Pricing Card Buttons */
.pricing-card-button {
  display: block;
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--color-primary, #c71f0d) 0%, var(--color-primary-light, #d62916) 100%);
  color: var(--color-white, #ffffff);
  text-align: center;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(199, 31, 13, 0.3);
  will-change: transform, box-shadow;
  cursor: pointer;
  margin-top: auto;
}

.pricing-card-button:hover {
  background: #E6342A;
  transform: translateY(-2px);
}

.pricing-card-button-primary {
  background: linear-gradient(135deg, var(--color-primary, #c71f0d) 0%, var(--color-primary-light, #d62916) 100%);
  box-shadow: 0 4px 15px rgba(199, 31, 13, 0.3);
  will-change: transform, box-shadow;
}

.pricing-card-button-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-hover, #a01808) 0%, var(--color-primary, #c71f0d) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(199, 31, 13, 0.4);
}

/* Trust Section */
.pricing-trust {
  padding: 3rem 0;
  background: #ffffff;
  overflow: hidden;
}

.pricing-trust-logos {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3rem;
  flex-wrap: nowrap;
  animation: scroll-logos 20s linear infinite;
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.pricing-trust-logos img {
  height: 28px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(100%);
  flex-shrink: 0;
}

/* Make Mashable, Forbes, and TechCrunch smaller */
.pricing-trust-logos img:nth-child(2),
.pricing-trust-logos img:nth-child(3),
.pricing-trust-logos img:nth-child(4) {
  height: 22px;
}

/* FAQ Section */

/* Why Choose Cards - part of the 3 column layout */
.pricing-why-choose-card {
  background: transparent;
  border-radius: 0 0 0.5rem 0.5rem;
  padding: 2rem;
  box-shadow: none;
  margin-top: 0;
}

.pricing-why-choose-title {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
}

.pricing-why-choose-text {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
  margin: 0;
}

/* Desktop Styles */
@media (min-width: 768px) {
  .pricing-hero {
    padding-top: calc(5.5rem + 100px);
    padding-left: 3rem;
    padding-right: 3rem;
    padding-bottom: 4rem;
  }

  .pricing-hero {
    padding-bottom: 4rem;
  }

  .pricing-plans {
    margin-top: -4%;
    padding: 4rem 3rem;
  }

  .pricing-hero-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  .pricing-hero-subtitle {
    font-size: 1.5rem;
    line-height: 1.6;
  }

  .pricing-card {
    padding: 2.5rem 2rem;
  }

  .pricing-card-featured {
    transform: scale(1.05);
    box-shadow: 0px 40px 80px rgba(0, 0, 0, 0.75);
  }

  .pricing-plans-grid {
    gap: 2rem;
    margin-top: 3rem;
  }

  .pricing-plans .pricing-container {
    gap: 2rem;
    margin-top: 3rem;
  }

  .pricing-plans {
    margin-right: auto;
    margin-left: auto;
    padding: 6rem 3rem;
  }

  .pricing-plans .pricing-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .pricing-column {
    display: flex;
    flex-direction: column;
  }
  
  .pricing-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
  }
  
  .pricing-card-featured {
    transform: scale(1.08);
  }

  .pricing-trust {
    padding: 4rem 3rem;
    overflow: visible;
  }

  .pricing-trust-logos {
    gap: 4rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    animation: none;
  }

  .pricing-trust-logos img {
    height: 32px;
  }

  /* Make Mashable, Forbes, and TechCrunch smaller on desktop too */
  .pricing-trust-logos img:nth-child(2),
  .pricing-trust-logos img:nth-child(3),
  .pricing-trust-logos img:nth-child(4) {
    height: 25px;
  }
}
