[x-cloak] { display: none !important; }

.pricing-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* ── Go back button ── */
.cp-go-back-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  width: fit-content;
  position: relative;
}

.cp-go-back-wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background-color: currentColor;

  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms ease;
}

.cp-go-back-wrapper:hover::after,
.cp-go-back-wrapper:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.cp-go-back-button {
  text-decoration: none;
  color: var(--text-primary);
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
  opacity: 0;
  animation: pricingFadeIn 0.5s ease forwards;
}

.pricing-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 2.6rem;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.pricing-header p {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  color: var(--text-secondary);
  font-size: 1.02rem;
  margin: 0;
}

.pricing-toggle-row {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  opacity: 0;
  animation: pricingFadeIn 0.5s ease 0.1s forwards;
}

.pricing-toggle-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 999px;
  padding: 4px;
}

.pricing-toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: linear-gradient(135deg, var(--green-400), var(--green-500));
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(61, 138, 95, 0.3);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.pricing-toggle-track.is-year .pricing-toggle-thumb {
  transform: translateX(100%);
}

.pricing-toggle-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  border: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.pricing-toggle-btn.is-active {
  color: #ffffff;
}

.pricing-save-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--green-600);
  transition: background 0.25s ease, color 0.25s ease;
}

.pricing-toggle-btn.is-active .pricing-save-chip {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.pricing-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(45, 110, 73, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: pricingSlideUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.pricing-card::before {
  content: '';
  display: block;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--green-300), var(--green-400), var(--green-300));
}

.pricing-card:nth-child(1) { animation-delay: 0.05s; }
.pricing-card:nth-child(2) { animation-delay: 0.1s; }
.pricing-card:nth-child(3) { animation-delay: 0.15s; }
.pricing-card:nth-child(4) { animation-delay: 0.2s; }

.pricing-card-header {
  padding: 1.75rem 1.75rem 1.5rem;
  background: linear-gradient(135deg, var(--green-50), #ffffff);
  border-bottom: 1px solid var(--green-100);
  min-height: 132px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pricing-card-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 0 0 0.4rem;
  line-height: 1.2;
}

.pricing-card-header p {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.pricing-card-body {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.price-option {
  padding-bottom: 1.1rem;
  margin-bottom: 1.1rem;
}

.price-option-top {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.price-option .amount {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 2rem;
  color: var(--green-600);
}

.price-option .interval {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pricing-savings {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
}

.pricing-savings-strike {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--text-muted);
  /* text-decoration: line-through; */
  text-decoration-color: var(--green-300);
}

.pricing-savings-strike p {
  margin: 0;
  font-size: 1.2rem;
}

.pricing-savings-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--green-600);
  background: var(--green-100);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
}

.pricing-btn {
  width: 100%;
  padding: 0.72rem 1rem;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-align: center;
}

.pricing-btn--select {
  border: none;
  background: linear-gradient(135deg, var(--green-400), var(--green-500));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(61, 138, 95, 0.25);
}

.pricing-btn--select:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(61, 138, 95, 0.32);
}

.pricing-btn--current {
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: default;
}

.pricing-divider {
  border: none;
  border-top: 1px solid var(--green-100);
  margin: 0.4rem 0 1.1rem;
}

.pricing-includes-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin: 0 0 0.8rem;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.pricing-feature-icon {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.pricing-feature-icon svg {
  width: 11px;
  height: 11px;
  stroke: var(--green-600);
  stroke-width: 3;
  fill: none;
}

.pricing-feature p {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
}

@keyframes pricingFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pricingSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.pricing-promo-text {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #5d5d5d;
}

#pricing-promo-terms-link {
  color: #5d5d5d;
}