@charset "utf-8";
/* CSS Document */

/* =========================
   Comparison Chart Styles
   (Standalone CSS file)
   ========================= */

#comparison-chart {
  background: #f3f4f6;
  padding: 2rem;
  color: #000;
}

.comparison-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Strip wrapper should never horizontally scroll */
#comparison-chart .comparison-wrapper.sps-wrapper {
  overflow-x: hidden; /* removes the scrollbar under the strip */
  display: block;     /* ensure visible by default */
}

/* Desktop Table */
#comparison-chart table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 1rem;
}

#comparison-chart th,
#comparison-chart td {
  padding: 1rem;
  border: 1px solid #ddd;
  vertical-align: middle;
}

/* All header cells */
#comparison-chart th {
  background: #6b21a8;
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  text-align: left;
  vertical-align: top;
}

/* First header (Benefits) */
#comparison-chart th:first-child {
  width: 25%;
  text-align: left;
  font-weight: bold;
  background: #6b21a8;
  color: #fff;
}

/* First column body cells */
#comparison-chart td:first-child {
  width: 25%;
  text-align: left;
  font-weight: 600;
  background: #fafafa;
}

/* Column widths + alignment */
#comparison-chart th:not(:first-child) {
  width: 18.75%;
  text-align: left;
}
#comparison-chart td:not(:first-child) {
  width: 18.75%;
  text-align: center;
}

.plan-desc {
  font-size: 1rem;
  font-weight: normal;
  color: #ffffff;
  display: block;
  margin-top: 0.25rem;
  padding-left: 0.25rem;
}

.check { color: green; font-weight: bold; font-size: 1.2rem; }
.xmark { color: red; font-weight: bold; font-size: 1.2rem; }

/* =========================
   Single Plan Strip
   ========================= */

.single-plan-strip {
  background: #f3f4f6;
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
  flex-wrap: nowrap;
  min-width: 0;
}

/* Pull pricing/toggle LEFT by limiting the left block width */
#comparison-chart .sps-left {
  flex: 0 1 560px; /* was 680px — reduce further (520px) to pull more left */
  min-width: 0;
}

.sps-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.sps-features {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.sps-features ul { list-style: none; padding: 0; margin: 0; }
.sps-features li { margin: 0.15rem 0; font-size: 1rem; }

/* Keep price/toggle tight, allow CTA to pin right */
#comparison-chart .sps-right {
  flex: 1 1 auto;              /* allows CTA to push to far right */
  display: flex;
  align-items: center;         /* base */
  gap: 1rem;
  min-width: 0;
  flex-wrap: nowrap;           /* tighter desktop layout */
}

.sps-price {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  max-width: 100%;
}

.sps-per { font-size: 1.4rem; font-weight: 700; }

.sps-billing-label {
  font-size: 0.95rem;
  color: #111;
  max-width: 140px;
  white-space: normal;
  line-height: 1.1;
}

.sps-divider {
  border: 0;
  height: 6px;
  background: #000;
  margin: 0.75rem 0 1.25rem;
}

/* Purple Toggle Switch */
.sps-billing {
  display: inline-flex;
  align-items: center; /* base */
  gap: 0.6rem;
  user-select: none;
}

.sps-switch {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.sps-slider {
  position: relative;
  width: 46px;
  height: 26px;
  background: #d1d5db;
  border-radius: 999px;
  display: inline-block;
  transition: background 0.2s ease;
  flex: 0 0 auto;
}

.sps-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 999px;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.sps-switch:checked + .sps-slider { background: #6b21a8; }
.sps-switch:checked + .sps-slider::after { transform: translateX(20px); }

.sps-switch:focus-visible + .sps-slider {
  outline: 3px solid rgba(107, 33, 168, 0.35);
  outline-offset: 3px;
}

/* Pin CTA to the right */
#comparison-chart .sps-cta {
  margin-left: auto;     /* pushes CTA to far right */
  white-space: nowrap;
  align-self: center;    /* vertically centered in strip */
}

/* =========================
   Mobile Stacked Version
   ========================= */

.plan-price {
  background-color: #280d3f;
  color: #fff;
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 0.75rem;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease;
}

.plan-price:hover { background-color: #e742c1; }

@media (max-width: 768px) {
  #comparison-chart .comparison-wrapper { display: none; }
  #comparison-chart .comparison-wrapper.sps-wrapper { display: block; }
  #comparison-chart .mobile-comparison { display: block; }

  .single-plan-strip {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
  }

  #comparison-chart .sps-left { flex-basis: auto; width: 100%; }

  /* keep right area stacked nicely on mobile */
  #comparison-chart .sps-right {
    width: 100%;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
  }

  /* CTA: full width on mobile (optional). Remove if you want it inline. */
  #comparison-chart .sps-cta {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

  .sps-price { font-size: 3.25rem; }
  .sps-features { gap: 1.5rem; }
}

@media (min-width: 769px) {
  #comparison-chart .mobile-comparison { display: none; }
}

.mobile-comparison .plan-block {
  margin-bottom: 2rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mobile-comparison .plan-header {
  background: #6b21a8;
  color: #fff;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
}

.mobile-comparison .plan-header span {
  display: block;
  font-size: 0.9rem;
  font-weight: normal;
  color: #ddd;
}

.mobile-comparison table { width: 100%; border-collapse: collapse; }

.mobile-comparison td {
  padding: 0.8rem;
  border: 1px solid #ddd;
}

.mobile-comparison td:first-child {
  font-weight: 600;
  background: #fafafa;
  width: 70%;
}

.mobile-comparison td:last-child {
  text-align: center;
  width: 30%;
}

/* =========================================================
   ALIGNMENT FIX (matches screenshot)
   - /mo aligns to TOP of price
   - Billing label + toggle align with BOTTOM of price
   ========================================================= */

/* Right side: treat price + billing as a single bottom-aligned row */
#comparison-chart .sps-right {
  align-items: flex-end !important;   /* bottom-align the groups */
}

/* Price: lay out "$ 15 /mo" with TOP alignment so /mo doesn't drop */
#comparison-chart .sps-price {
  display: inline-flex !important;
  align-items: flex-start !important;  /* top-align /mo with the big number */
  line-height: 1 !important;
}

/* Ensure /mo doesn't introduce extra line box spacing + nudge it down */
#comparison-chart .sps-per {
  line-height: 1 !important;
  align-self: flex-start !important;
  position: relative;
  top: 10px;
}

/* Billing group: keep label and toggle aligned together and sitting at price bottom */
#comparison-chart .sps-billing {
  display: inline-flex;
  align-items: flex-end !important;
  gap: 0.6rem;
}

/* Nudge the billing label/toggle UP slightly so it doesn't sit below the price bottom */
#comparison-chart .sps-billing-label {
  line-height: 1.1 !important;
  margin-bottom: 0.4rem !important;
}

/* Match the same nudge for the toggle so it lines up with the label */
#comparison-chart .sps-slider {
  margin-bottom: 0.4rem !important;
}

/* Keep CTA from drifting too far right on very wide screens */
@media (min-width: 1600px) {
  #comparison-chart .sps-cta {
    margin-right: 120px; /* tweak: try 80px–160px */
  }
}