/* Plans V2 - Pixel Perfect Design */

.plans-v2 {
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Desktop Layout - 3 columns */
@media screen and (min-width: 641px) {
  .plans-v2 {
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
    padding: 0;
  }
}

/* Mobile Layout - Stack vertically */
@media screen and (max-width: 640px) {
  .plans-v2 {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
  }
}

/* Plan Card Container */
.plan-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #D9D9D9;
  border-radius: 20px;
  padding: 48px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Most Popular Plan - Special Styling */
.plan-card.plan-popular {
  border: 1.5px solid transparent;
  background-image: linear-gradient(white, white),
                    linear-gradient(0deg, rgba(217, 217, 217, 1) 0%, rgba(172, 109, 74, 1) 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

@media screen and (max-width: 640px) {
  .plan-card {
    padding: 40px 20px 20px;
  }

  .plan-card.plan-popular {
    margin-top: 20px;
  }
}

/* Popular Badge */
.popular-badge {
  position: absolute;
  top: -23px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(0deg, rgba(60, 149, 94, 1) 0%, rgba(99, 237, 104, 1) 100%);
  border-radius: 101.53px;
  padding: 8px 32px;
  font-family: 'Cabinet Grotesk', 'CabinetGrotesk-Bold', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 39px;
  letter-spacing: 0.027em;
  color: #FFFFFF;
  text-align: center;
  white-space: nowrap;
  z-index: 1;
}

@media screen and (max-width: 640px) {
  .popular-badge {
    font-size: 16px;
    line-height: 28px;
    padding: 6px 24px;
  }
}

/* Plan Header */
.plan-header {
  margin-bottom: 6px;
}

.plan-title {
  font-family: 'Cabinet Grotesk', 'CabinetGrotesk-Bold', sans-serif;
  font-weight: 500;
  font-size: 33px;
  line-height: 1.24;
  color: #251B16;
  margin: 0 0 12px 0;
}

.plan-description {
  font-family: 'Cabinet Grotesk', 'CabinetGrotesk-Regular', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: 0.03em;
  color: #817872;
  margin: 0;
}

@media screen and (max-width: 640px) {
  .plan-title {
    font-size: 24px;
    line-height: 1.3;
  }

  .plan-description {
    font-size: 15px;
    line-height: 1.5;
  }
}

/* Pricing Section */
.plan-pricing {
  margin: 8px 0;
}

.price-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-main {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 33px;
  line-height: 1.221;
  color: #AC6D4A;
}

.price-compare {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.221;
  color: #817872;
  text-decoration: line-through;
}

.tax-text {
  font-family: 'Cabinet Grotesk', 'CabinetGrotesk-Regular', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
  color: #817872;
  margin: 4px 0;
}

@media screen and (max-width: 640px) {
  .plan-pricing {
    margin: 4px 0;
  }

  .price-main {
    font-size: 28px;
  }

  .price-compare {
    font-size: 20px;
  }

  .tax-text {
    font-size: 13px;
  }
}

/* Divider Line */
.plan-divider {
  width: 100%;
  height: 1px;
  background: #D9D9D9;
  margin: 10px 0 20px;
}

/* Features List */
.plan-features {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 9px;
}

.feature-item:last-child {
  margin-bottom: 0;
}

/* Calculator Link Styling */
.calculator-box a {
  color: #AC6D4A;
  text-decoration: underline;
  font-weight: 500;
}

/* Custom Bullet Points */
.bullet {
  width: 5.36px;
  height: 6px;
  min-width: 5.36px;
  background: #AC6D4A;
  border-radius: 50%;
  margin-top: 16px;
  display: inline-block;
}

.feature-item p {
  font-family: 'Cabinet Grotesk', 'CabinetGrotesk-Regular', sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.773;
  letter-spacing: 0.027em;
  color: #404040;
  margin: 0;
  flex: 1;
}

@media screen and (max-width: 640px) {
  .feature-item p {
    font-size: 15px;
    line-height: 1.6;
  }

  .bullet {
    margin-top: 10px;
  }
}

/* CTA Button Section */
.plan-cta {
  margin: 12px 0;
}

.plan-card .np-sec__btn {
  width: 100%;
  margin: 0;
}

.plan-card .np-sec__btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 61px;
  background: #AC6D4A;
  border: 1px solid #FFFFFF;
  border-radius: 53.81px;
  font-family: "CabinetGrotesk-Regular", sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.24;
  letter-spacing: 0.02em;
  text-align: center;
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.plan-card .np-sec__btn a span {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 15px;
  margin-left: 18px;
}

.plan-card .np-sec__btn a:hover {
  background: #8E5A3E;
  transform: scale(1.02);
}

.plan-card .np-sec__btn a:active {
  transform: scale(0.98);
}

@media screen and (max-width: 640px) {
  .plan-card .np-sec__btn a {
    height: 55px;
    font-family: "CabinetGrotesk-Regular", sans-serif;
    font-size: 18px;
    font-weight: 500;
  }
}

/* Calculator Info Box */
.calculator-box {
  background: #CFF7D3;
  border-radius: 10px;
  padding: 15px 23px;
  margin-top: 18px;
}

.calculator-box p {
  font-family: 'Cabinet Grotesk', 'CabinetGrotesk-Regular', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: #605E5D;
  margin: 0;
}

@media screen and (max-width: 640px) {
  .calculator-box {
    padding: 12px 18px;
  }

  .calculator-box p {
    font-size: 12px;
    line-height: 1.3;
  }
}

/* Responsive Adjustments for Very Small Screens */
@media screen and (max-width: 480px) {
  .plans-v2 {
    padding: 0;
  }

  .plan-card {
    padding: 35px 18px 18px;
  }

  .plan-title {
    font-size: 22px;
  }

  .plan-description {
    font-size: 14px;
  }

  .price-main {
    font-size: 26px;
  }

  .price-compare {
    font-size: 18px;
  }

  .feature-item p {
    font-size: 14px;
  }

  .plan-card .np-sec__btn a {
    height: 50px;
    font-family: "CabinetGrotesk-Regular", sans-serif;
    font-size: 16px;
    font-weight: 500;
  }
}

/* Animation for Plan Cards on Load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.plan-card {
  animation: fadeInUp 0.4s ease-out backwards;
}

.plan-card:nth-child(1) {
  animation-delay: 0.1s;
}

.plan-card:nth-child(2) {
  animation-delay: 0.2s;
}

.plan-card:nth-child(3) {
  animation-delay: 0.3s;
}

/* Ensure proper spacing in parent container */
.home-section5 .plans-v2 {
  margin: 30px 0;
}

@media screen and (max-width: 640px) {
  .home-section5 .plans-v2 {
    margin: 20px 0;
  }
}
