/* Pricing styles extracted from main.css
   Moved here to keep pricing layout isolated.
*/

/* Pricing cards layout */
.pricing-cards {
  display: flex;
  gap: 28px;
  align-items: stretch;
  justify-content: center;
  margin-top: 28px;
  align-items: flex-start;
}
.pricing-cards .card {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 30px;
  width: 380px; /* increased card width for a larger appearance */
  box-shadow: 0 8px 30px rgba(15, 23, 20, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
  position: relative;
}
.pricing-cards .card h3 {
  margin-top: 0;
  color: var(--wb-primary-dark);
  font-size: 20px;
}
.pricing-cards .card h3 {
  margin-top: 0;
  color: var(--wb-primary-dark);
  font-size: 20px;
  margin-bottom: 12px;
}
.pricing-cards .card .price {
  font-size: 28px;
  font-weight: 800;
  color: var(--wb-primary-dark);
  margin: 6px 0 16px;
  line-height: 1.15;
}
.pricing-cards .card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}
.pricing-cards .card ul li {
  padding: 8px 0 8px 0;
  color: var(--wb-muted);
  line-height: 1.5;
}

/* Inline check icon inserted into each <li> */
.pricing-cards .card ul li .check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 13px;
  background: #eaf6ed;
  margin-right: 10px;
  flex: 0 0 26px;
}
.pricing-cards .card ul li .check-icon svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: var(--wb-primary);
}
.pricing-cards .card ul li .check-icon object,
.pricing-cards .card ul li .check-icon img {
  width: 14px;
  height: 14px;
  display: block;
}
.pricing-cards .card ul li .check-icon {
  color: var(--wb-primary);
}
.pricing-cards .card.active ul li {
  color: rgba(255, 255, 255, 0.92);
}
.pricing-cards .card.active ul li .check-icon {
  background: rgba(255,255,255,0.20);
  color: #fff;
}
.pricing-cards .card.active ul li .check-icon svg {
  fill: currentColor;
}
.pricing-cards .card.active ul li .check-icon img {
  /* make raster fallback appear white */
  filter: invert(1) brightness(1.2);
}

/* Ensure <object> embedded SVGs also invert when active (some browsers render as separate document)
   applying a filter to the object element forces the rendered icon to appear white in the active card. */
.pricing-cards .card ul li .check-icon object {
  filter: none;
}
.pricing-cards .card.active ul li .check-icon object {
  filter: invert(1) brightness(1.2);
}
.pricing-cards .card .btn_wrapper {
  display: block;
  margin-top: 8px;
  text-align: center;
}

/* Add comfortable inner spacing for card content */
.pricing-cards .card {
  padding: 50px 34px;
}
.pricing-cards .card .pill {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-block;
  padding: 5px 18px;
  background: #f6f8cf; /* pale yellow */
  color: var(--brand);
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 6px 14px rgba(15, 23, 20, 0.06);
  border: 1px solid rgba(31, 64, 38, 0.06);
}

/* Style for unselected 'Choose plan' buttons inside pricing cards */
.pricing-cards .card .btn_wrapper.btn-ghost {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: #eaf7ef; /* pale green */
  color: var(--wb-primary);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(40, 86, 48, 0.06);
  box-shadow: 0 6px 18px rgba(15, 23, 20, 0.04);
  margin: 12px auto 0; /* center horizontally */
  text-align: center; /* center text inside */
}
.pricing-cards .card .btn_wrapper.btn-ghost:hover {
  background: #dff3e6;
  box-shadow: 0 10px 28px rgba(15, 23, 20, 0.06);
}

/* Ensure primary buttons in cards are centered too */
.pricing-cards .card .btn_wrapper.btn-primary {
  display: inline-block;
  margin: 12px auto 0;
  text-align: center;
}

/* Center popular card styling */
.pricing-cards .card-popular,
.pricing-cards .card-pro {
  background: linear-gradient(180deg, var(--wb-primary) 0%, #184225 100%);
  color: #fff;
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 30px 80px rgba(22, 123, 57, 0.18),
    0 8px 30px rgba(15, 23, 20, 0.06);
}
.pricing-cards .card-popular h3,
.pricing-cards .card-pro h3 {
  color: #fff;
}
.pricing-cards .card-popular .price,
.pricing-cards .card-pro .price {
  color: #fff;
}
.pricing-cards .card-popular .btn_wrapper,
.pricing-cards .card-pro .btn_wrapper {
  background: #d7efd8;
  color: var(--wb-primary-dark);
  border-radius: 12px;
  padding: 10px 18px;
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
}

/* Hover and active effects */
.pricing-cards .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(15, 23, 20, 0.09);
}
.pricing-cards .card.active {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 30px 80px rgba(34, 150, 80, 0.14);
}

/* When a card is active, apply the popular/green theme and adjust inner text/buttons */
.pricing-cards .card.active {
  background: linear-gradient(180deg, var(--wb-primary) 0%, #184225 100%);
  color: #fff;
}
.pricing-cards .card.active h3,
.pricing-cards .card.active .price {
  color: #fff;
}
.pricing-cards .card.active ul li {
  color: rgba(255, 255, 255, 0.92);
}
.pricing-cards .card.active .btn_wrapper {
  background: var(--wb-light);
  color: var(--wb-primary);
  border-radius: 12px;
  padding: 10px 18px;
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
}
/* .pricing-cards .card.active ul li::before{
  background: rgba(255,255,255,0.14);
} */
.pricing-cards .card.active ul li::after{
  background: #fff;
}

/* Make sure popular card sits on top */
.pricing-cards .card-popular {
}

/* When a side card is selected, make the middle card appear neutral/white */
.pricing-cards .card.adjacent-active {
  background: #fff;
  color: var(--wb-primary-dark);
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(15, 23, 20, 0.06);
}
.pricing-cards .card.adjacent-active h3,
.pricing-cards .card.adjacent-active .price {
  color: var(--wb-primary-dark);
}
.pricing-cards .card.adjacent-active ul li {
  color: var(--wb-muted);
}
.pricing-cards .card.adjacent-active .btn_wrapper {
  /* Unselected cards: show pale/ghost button to contrast the active card */
  background: #eaf7ef;
  color: var(--wb-primary);
  border-radius: 12px;
  padding: 10px 18px;
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .pricing-cards {
    gap: 24px;
  }
}
@media (max-width: 1200px) {
  .pricing-cards .card .price {
    font-size: 24px;
  }
}
@media (max-width: 980px) {
  .pricing-cards {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }
  .pricing-cards .card {
    width: 92%;
    max-width: 620px;
  }
  .pricing-cards .card-popular {
    transform: none;
  }

  /* Pro Plan (2nd card in HTML) */
    .pricing-cards > .card:nth-child(2) {
    order: 2 !important;
  }

  /* Base Plan (1st card in HTML) */
  .pricing-cards > .card:nth-child(1) {
    order: 1 !important;
  }

  /* Enterprise Plan (3rd card in HTML) */
  .pricing-cards > .card:nth-child(3) {
    order: 3 !important;
  }
}

/* Pricing section and alternate card rules */
.pricing {
  padding: 70px 0 80px;
  background: transparent;
}
.pricing-cards {
  display: flex;
  gap: 28px;
  justify-content: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 18px 60px rgba(15, 23, 20, 0.06);
  align-items: flex-start;
}
.card {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  width: 280px;
  box-shadow: 0 8px 30px rgba(15, 23, 20, 0.04);
  text-align: left;
}
.card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--wb-primary-dark);
}
.card .price {
  font-size: 22px;
  font-weight: 800;
  color: var(--wb-primary-dark);
  margin: 10px 0;
}
.card ul {
  padding-left: 18px;
  margin: 8px 0 14px;
  color: var(--wb-muted);
}
.card .pill {
  background: #e6f6ea;
  color: var(--wb-primary-dark);
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 12px;
  margin-left: 8px;
}

.card-pro {
  background: linear-gradient(
    180deg,
    var(--wb-primary),
    var(--wb-primary-dark)
  );
  color: #fff;
  transform: translateY(-22px);
  box-shadow: 0 28px 70px rgba(47, 122, 74, 0.18);
  width: 320px;
  padding-top: 30px;
  border-radius: 20px;
}
.card-pro h3 {
  position: relative;
  margin-top: 8px;
}
.card-pro .pill {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e5b36;
  color: #fff;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  box-shadow: 0 8px 20px rgba(36, 95, 58, 0.12);
}
.card-pro h3,
.card-pro .price {
  color: #fff;
}
.card-pro ul {
  color: rgba(255, 255, 255, 0.92);
}
.card a {
  display: inline-block;
  margin-top: 8px;
}
.card .btn-wrapper {
  text-decoration: none;
}

/* Pricing card CTA styles */
.card a.btn_wrapper.btn-primary {
  background: #fff;
  color: var(--wb-primary);
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: none;
}
.card a.btn_wrapper.btn-ghost {
  background: transparent;
  border: 1px solid rgba(15, 23, 20, 0.06);
  color: var(--wb-primary-dark);
  padding: 8px 12px;
  border-radius: 10px;
}

@media (max-width: 900px) {
  .pricing-cards {
    flex-direction: column;
    align-items: center;
    padding: 18px;
  }
  .card {
    width: 92%;
    max-width: 420px;
  }
}

@media (max-width: 720px) {
  .mobile-pricing-header{
    font-size: 35px;
  }
  .pricing-cards {
    padding: 14px;
    box-shadow: none;
    background: transparent;
  }
  .card-pro {
    transform: none;
    width: 100%;
  }
  .card {
    width: 100%;
  }
  .card-pro .pill {
    position: static;
    transform: none;
    margin-bottom: 8px;
  }
}
