/* ==========================================================================
   Plans Section — BnBuddy Landing Pages
   Closely matches the Stitch "Home Page - Plans without Prices" design.
   Uses existing design tokens: Plus Jakarta Sans, Inter, #6661e7 primary.
   ========================================================================== */

/* ---------- Google Material Symbols (check/close icons) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@400,0&display=swap');

/* ---------- Property Card Image Badge ---------- */
.property-img-wrap {
  position: relative;
  display: block;
}
.property-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: #6661E7;
  color: #fff;
  padding: 6px 14px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 12px rgba(102, 97, 231, 0.35);
}
.property-badge .material-symbols-outlined {
  font-size: 16px;
  font-variation-settings: 'FILL' 1;
}

/* ---------- Section Wrapper ---------- */
.plans-section {
  padding: 24px 24px 64px;
  background-color: #f8f9fb;
}

.plans-container {
  max-width: 1024px;
  margin: 0 auto;
}

/* ---------- Header ---------- */
.plans-header {
  text-align: center;
  margin-bottom: 40px;
}

.plans-heading {
  font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: #191c1e;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.plans-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #464554;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ---------- Grid ---------- */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

/* ---------- Card Base ---------- */
.plan-card {
  background: #ffffff;
  padding: 28px 32px;
  border-radius: 1.5rem;
  box-shadow: 0px 10px 40px rgba(77, 70, 205, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(199, 196, 214, 0.3);
  position: relative;
}

/* ---------- Premium Card Override ---------- */
.plan-card--premium {
  background: #6661e7;
  color: #ffffff;
  border: none;
}

/* ---------- Recommended Badge ---------- */
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #c8a917;
  color: #221b00;
  padding: 4px 16px;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* ---------- Card Icon Container ---------- */
.plan-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.plan-icon-wrap--light {
  background: rgba(77, 70, 205, 0.1);
}

.plan-icon-wrap--dark {
  background: rgba(255, 255, 255, 0.2);
}

.plan-icon-wrap .material-symbols-outlined {
  font-size: 24px;
}

.plan-icon-wrap--light .material-symbols-outlined {
  color: #4d46cd;
}

.plan-icon-wrap--dark .material-symbols-outlined {
  color: #ffffff;
}

/* ---------- Card Title ---------- */
.plan-title {
  font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #191c1e;
  margin-bottom: 20px;
  line-height: 1.2;
}

.plan-card--premium .plan-title {
  color: #ffffff;
}

/* ---------- Tagline Banner ---------- */
.plan-tagline {
  padding: 8px 16px;
  border-radius: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.4;
}

.plan-tagline--light {
  background: #FFF4E5;
  color: #855B1B;
}

.plan-tagline--dark {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* ---------- Feature List ---------- */
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.plan-feature .material-symbols-outlined {
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Check icon — standard card */
.plan-feature--enabled .material-symbols-outlined {
  color: #191c1e;
}

.plan-feature--enabled .plan-feature__text {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #191c1e;
}

/* Close icon — disabled feature */
.plan-feature--disabled {
  opacity: 0.5;
}

.plan-feature--disabled .material-symbols-outlined {
  color: #ba1a1a;
}

.plan-feature--disabled .plan-feature__text {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #464554;
}

/* Check icon — premium card */
.plan-card--premium .plan-feature--enabled .material-symbols-outlined {
  color: #ffffff;
}

.plan-card--premium .plan-feature--enabled .plan-feature__text {
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- CTA Button ---------- */
.plan-cta {
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 14px rgba(77, 70, 205, 0.15);
}

.plan-cta:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(77, 70, 205, 0.25);
}

.plan-cta:active {
  transform: scale(0.98);
}

/* Standard card — primary filled button */
.plan-cta--primary {
  background: #4d46cd;
  color: #ffffff;
}

/* Premium card — white button */
.plan-cta--white {
  background: #ffffff;
  color: #4d46cd;
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .plans-heading {
    font-size: 2.25rem;
  }
}

@media (max-width: 767px) {
  .plans-section {
    padding: 64px 20px;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    gap: 48px; /* extra gap for the badge overhang */
  }

  .plans-heading {
    font-size: 1.875rem;
  }

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

  .plan-card {
    padding: 32px 24px;
  }

  .plan-title {
    font-size: 1.5rem;
  }
}
