/* ==========================================================
   Pricing
   ========================================================== */

.pricing-wrap {
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  padding: clamp(28px, 6vw, 64px) 16px;
  background: #ffffff;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-header {
  text-align: center;
  margin: 0 auto clamp(16px, 3vw, 28px);
  max-width: 900px;
}

.pricing-title {
  font-weight: 800;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.1;
  color: #111827;
  margin: 0 0 6px;
}

.pricing-sub {
  color: #4b5563;
  font-weight: 700;
  font-size: clamp(14px, 2.6vw, 18px);
  margin: 0 0 12px;
}

.pricing-chips {
  justify-content: center;
  margin-bottom: 14px;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.toggle-label {
  font-weight: 700;
  color: #6b7280;
  font-size: 14px;
  transition: color 0.2s ease;
}

.toggle-label.is-active {
  color: #111827;
}

.switch {
  position: relative;
  width: 64px;
  height: 32px;
  padding: 0;
  border: 0;
  background: linear-gradient(180deg, #cfc9ff 0%, #a99fff 100%);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(125, 101, 253, 0.35);
  cursor: pointer;
}

.switch:focus-visible {
  outline: 3px solid rgba(125, 101, 253, 0.35);
  outline-offset: 3px;
}

.switch .knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  transform: translateX(0);
  transition: transform 0.22s ease;
  pointer-events: none;
}

.switch[aria-checked="true"] .knob {
  transform: translateX(33px);
}

.save-note {
  font-size: 12px;
  font-weight: 800;
  color: #7d65fd;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.6vw, 24px);
  margin-top: clamp(18px, 3vw, 26px);
}

.plan-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 16px 26px rgba(45, 34, 40, 0.22),
              0 5px 12px rgba(45, 34, 40, 0.12);
}

.plan-title {
  font-weight: 800;
  color: #171116;
  font-size: 20px !important;
  line-height: 1.2;
  margin: 0 0 4px;
}

.plan-sub {
  color: #765cff;
  font-size: 14px !important;
  font-weight: 400;
  line-height: 1.35;
  margin: 0 0 16px;
}

.price {
  font-weight: 900;
  color: #2b1821;
  font-size: 36px !important;
  line-height: 1.1;
  margin: 0 0 14px;
}

.price small {
  font-weight: 900;
  color: inherit;
  font-size: 1em !important;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 12px;
}

.features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #40343a;
  font-size: 14px !important;
  font-weight: 400;
  line-height: 1.35;
}

.icon-check {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #d9d3ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.icon-check svg {
  width: 9px;
  height: 9px;
  color: #fff;
}

.plan-cta {
  margin-top: auto;
  display: flex;
  justify-content: center;
}

.btn-plan {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(180deg, #8f94fb 0%, #7d65fd 100%);
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(125, 101, 253, 0.35);
}

/* Sign-ups paused while the new pricing structure is finalised (Sep 2026) */
.btn-plan.is-disabled {
  pointer-events: none;
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-plan:hover {
  filter: brightness(0.98);
}

.pricing-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
  justify-items: center;
}

.btn-plan-outline {
  background: transparent;
  color: #7d65fd;
  border: 2px solid #7d65fd;
  box-shadow: none;
}

.btn-plan-outline:hover {
  background: rgba(125, 101, 253, 0.08);
}

/* Mobile-only in-card CTA: hidden by default so desktop keeps the
   aligned button row below the grid. */
.plan-cta-mobile {
  display: none;
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .plan-card {
    padding: 24px;
  }

  /* Once the cards stack, the detached button row loses its connection
     to the plans — show each plan's button inside its own card instead. */
  .plan-cta-mobile {
    display: flex;
    margin-top: 20px;
  }

  .pricing-buttons {
    display: none;
  }
}
