/* plans.css */
body {
  background-color: var(--bg-color);
  font-family: 'Segoe UI', sans-serif;
  color: var(--text-color);
  margin: 0;
  padding: 0;
}

.pricing-intro {
  text-align: center;
  padding: 40px 20px 20px;

}
.pricing-intro p{
  font-size: 1.5rem;
  margin: 12px 0 20px;

}


.pricing-cards {
  display: flex;
  justify-content: center;   /* centers the row */
  gap: 20px;                 /* space between cards */
  flex-wrap: wrap;           /* allow wrap on smaller screens */
  padding: 20px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* pushes button to bottom */
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  border-radius: 12px;
  padding: 30px;
  width: 320px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
  transition: transform 0.25s ease;
}

.plans-group {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}


.plan:hover {
  transform: translateY(-5px);
}

.plan-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
/* Price row: keep amount + /month on one line */
.price {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  font-size: 2.5rem;
  margin: 0.5rem 0;
  white-space: nowrap;       /* ✅ prevents ugly wrapping */
}

.price strong {
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1;
  font-weight: 700;
}

.price .per {
  font-size: clamp(12px, 3.5vw, 16px);
  font-weight: normal;
  opacity: 0.85;
}
.plan.highlighted {
  padding-top: 46px; /* reserve vertical space so ribbon doesn't overlap */
}
/* Existing style (desktop) */
.plan.highlighted .most-popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background-color: #00cfff;
  color: #000;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.85rem;
}

/* 🔽 Shrink for mobile */
@media (max-width: 600px) {
  .plan.highlighted .most-popular-tag {
    font-size: 0.7rem;   /* smaller text */
    padding: 4px 8px;    /* tighter pill */
    top: -8px;           /* raise a bit */
  }
}

.badge {
  background-color: #00cfff;
  color: #000;
  padding: 6px 12px;         /* more padding for size */
  border-radius: 12px;
  font-size: 0.95rem;        /* bumped up from 0.75rem */
  font-weight: 600;
}

.badge.savings {
  background-color: #00ff99;
}

.most-popular-tag {
    background-color: #00cfff;
    color: #000;
    padding: 6px 12px;
    font-weight: bold;
    font-size: 0.85rem;
    border-radius: 20px;
    position: absolute;
    top: 12px;
    right: -12px;
    transform: rotate(15deg);
    box-shadow: 0 0 5px rgba(0,0,0,0.4);
}
/* Billing cycle stays underneath, smaller */
.billing-cycle {
  margin: 6px 0 14px;
  font-size: 0.95rem;
  color: var(--subtle-text);
  text-align: center;
  white-space: normal; /* allow multi-line if long */
}
.plan ul {
  list-style: none;         /* remove default bullets */
  padding: 0;
  margin: 0;
  text-align: left;         /* ensures clean alignment */
}

.plan ul li {
  display: flex;
  align-items: flex-start;  /* align dot with top of text */
  margin-bottom: 10px;
  line-height: 1.4;
}

.plan ul li .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--text-color);
  border-radius: 50%;
  margin-right: 10px;       /* spacing between dot and text */
  margin-top: 6px;          /* keeps dot aligned with multi-line text */
  flex-shrink: 0;           /* prevents dot from shrinking */
}

.btn {
  margin-top: auto;
  background-color: var(--accent-color); /* or a new --button-bg */
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s ease;
}
.btn:hover {
  background-color: #2563eb; /* slightly darker than your blue */
}

/* Toggle container */
.toggle-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 1.0rem 0;
  flex-direction: row;   /* ✅ always horizontal */
  flex-wrap: wrap;       /* ✅ wrap if too narrow */
}

/* Toggle button base */
.toggle {
  flex: 0 1 auto;
  padding: 10px 20px;
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 999px;  /* pill shape */
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  white-space: nowrap;
}

/* Hover */
.toggle:hover {
  background-color: var(--disabled-bg);
}

/* Active (selected) state */
.toggle.active {
  background-color: var(--accent-color);
  color: #000;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .toggle-buttons {
    gap: 6px;
  }

  .toggle {
    padding: 8px 14px;
    font-size: 0.9rem;
    flex: 1 1 auto;   /* ✅ makes all buttons equal width */
    max-width: 33%;   /* three buttons side by side */
  }
}

/* Mobile: keep one row, shrink a bit so all 3 fit */
@media (max-width: 480px) {
  .toggle-buttons {
    gap: 6px;
    flex-wrap: nowrap;     /* ✅ never stack */
  }
  .toggle {
    padding: 8px 12px;     /* tighter pill */
    font-size: 0.9rem;
    white-space: nowrap;   /* keep label on one line */
  }
}
.hidden {
  display: none;
}

.currency-disclaimer {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 2rem;
  color: var(--text-muted, #aaa);
}

 /*
.comparison-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}
.comparison-table {
  overflow-x: auto;
  width: 100%;
  padding: 0 20px 40px;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
}

.comparison-table th {
  background-color: var(--card-bg);
  color: var(--text-color);
  font-weight: 600;
  padding: 16px;
  text-align: center;
  font-size: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.comparison-table td {
  background-color: var(--disabled-bg); 
  color: var(--text-color);
  padding: 16px;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
}



.comparison-table td:first-child {
  text-align: left;
}

.comparison-table tr:nth-child(even) {
  background-color: var(--disabled-bg);
}

.comparison-table tr:hover {
  background-color: #e5e7eb;
}

.dash {
  font-size: 1.25rem;  
  font-weight: bold;
  color: var(--subtle-text);  
  text-align: center;
}



.checkmark {
  font-weight: bold;
  color: #000;
}

*/
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  background-color: #bbb;
  border-radius: 50%;
  vertical-align: middle;
}

@media (max-width: 960px) {
  .plans-group {
    flex-direction: column;
    align-items: row;
  }
  .plan {
    width: 90%;
    max-width: 350px;
  }
  .toggle-buttons {
    flex-direction: row;
  }
}

@media (max-width: 768px) {
     .comparison-toggle-wrapper,
 #comparison-table {
        display: none !important;
  }
  #toggle-label::after {
    content: ' (Tap to expand)';
    color: #aaa;
    font-size: 0.85rem;
  }
  .pricing-intro {
    padding: 2rem 1rem;
  }
}

@media (max-width: 600px) {
  .currency-disclaimer {
    font-size: 1.5rem;   /* bigger text */
    line-height: 1.1;    /* nicer spacing */
    margin-top: 1.0rem;  /* slightly tighter gap */
  }
}




@media (min-width: 1440px) {
  .plans-group {
    justify-content: space-between;
  }
}