/* Pricing page — responsive button adjustments (scoped to pricing table) */
.pricing-table .pricing-signup-row td {
  vertical-align: middle;
  text-align: center;
  padding: 16px 12px;
  box-sizing: border-box;
}

/* Make the buttons layout-friendly and allow wrapping without overflow */
.pricing-table .pricing-signup-row .btn-primary,
.pricing-table .pricing-signup-row .stripe-checkout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-button);
  font-weight: var(--font-weight-semibold);
  font-size: clamp(14px, 1.6vw, 17px); /* responsive font size */
  line-height: 1.25;
  white-space: normal;        /* allow multi-line labels */
  word-break: normal;         /* prevent breaking inside words */
  overflow-wrap: break-word;  /* allow wrapping on word boundaries if needed */
  min-width: 120px;         /* keep visual weight on desktop */
  max-width: 100%;
  box-sizing: border-box;
}

/* preserve disabled styling */
.pricing-table .pricing-signup-row .btn-primary:disabled,
.pricing-table .pricing-signup-row .stripe-checkout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pricing-table .pricing-signup-row .trial-subtext {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--color-text-secondary);
}

/* ============================================================
   MOBILE PRICING CARDS
   Hidden on desktop (display:none), shown on mobile via media query.
   All structural styles live outside the media query so they are
   always parsed — the parent's display:none keeps them invisible
   on desktop regardless.
   ============================================================ */

/* Hidden by default (desktop) */
.pricing-mobile-cards {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.pricing-mobile-card {
  position: relative;
  background: #F9FAFB;
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.5rem;
  border: 1px solid #E5E7EB;
}

.pricing-mobile-card--popular {
  border: 2px solid #007A30;
  background: #fff;
}

.pricing-mobile-card-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #007A30;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.85rem;
  border-radius: 20px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pricing-mobile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.pricing-mobile-card-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1F2937;
}

.pricing-mobile-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1F2937;
}

.pricing-mobile-period {
  font-size: 0.9rem;
  font-weight: 500;
  color: #6B7280;
}

.pricing-mobile-features {
  list-style: none;
  list-style-type: none;
  margin: 0 0 1rem;
  padding: 0;
  -webkit-padding-start: 0;
  padding-inline-start: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.75rem;
}

.pricing-mobile-features li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  line-height: 1.3;
  color: #374151;
  padding: 0.2rem 0;
}

.pricing-mobile-features li.feature-no {
  color: #9CA3AF;
  text-decoration: line-through;
}

.pricing-mobile-features li.feature-lock {
  color: #9CA3AF;
}

/* Constrain SVG icons inside mobile cards — explicit dimensions + max */
.pricing-mobile-features .pricing-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  max-width: 16px;
  max-height: 16px;
  flex-shrink: 0;
}

.pricing-mobile-card .btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  box-sizing: border-box;
}

.pricing-mobile-card .trial-subtext {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--color-text-secondary);
  text-align: center;
}

/* ============================================================
   MEDIA QUERIES — toggle visibility only
   ============================================================ */

/* Mobile: hide table, show cards, remove horizontal scroll */
@media (max-width: 768px) {
  .pricing-table {
    display: none;
  }

  .pricing-mobile-cards {
    display: flex;
  }

  .pricing-table-wrapper {
    overflow-x: visible;
  }
}

/* Tablet: tighten table button sizing (table still visible) */
@media (min-width: 769px) and (max-width: 900px) {
  .pricing-table .pricing-signup-row td {
    padding: 10px 6px;
  }

  .pricing-table .pricing-signup-row .btn-primary,
  .pricing-table .pricing-signup-row .stripe-checkout-btn {
    font-size: 14px;
    padding: 0.6rem 0.8rem;
    min-width: 100px;
    white-space: nowrap;
  }
}
