/* vigorhk.co/pricing — 方案卡片（Pricing 元件風格） */
.px-billing-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin: 28px auto 8px;
  max-width: 40rem;
}
.px-billing-hint {
  text-align: center;
  font-size: 0.78rem;
  margin: 0 auto 20px;
  max-width: 36rem;
  line-height: 1.45;
}
.px-switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: #e2e8f0;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.px-switch[aria-checked="true"] {
  background: #0f766e;
}
.px-switch-thumb {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}
.px-switch[aria-checked="true"] .px-switch-thumb {
  transform: translateX(20px);
}
.px-billing-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
}
.px-billing-label em {
  font-style: normal;
  color: #0f766e;
  font-weight: 700;
}

.px-grid {
  display: grid;
  gap: 20px;
  padding: 8px 0 72px;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 768px) {
  .px-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .px-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.px-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 24px 20px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
@media (min-width: 1100px) {
  .px-card {
    transform: translateY(0) scale(1);
  }
  .px-card.is-side {
    transform: translateY(8px) scale(0.96);
    z-index: 0;
  }
  .px-card.is-hot {
    transform: translateY(-12px) scale(1);
    z-index: 2;
    border-width: 2px;
    border-color: #0f766e;
    box-shadow: 0 16px 40px rgba(15, 118, 110, 0.18);
  }
}
.px-card.is-hot .px-popular-badge {
  display: inline-flex;
}
.px-popular-badge {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-bottom-left-radius: 12px;
  border-top-right-radius: 14px;
  background: #0f766e;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}
.px-popular-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.px-card h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.px-card .tag {
  margin: 6px 0 0;
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.4;
}
.px-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}
.px-price-row strong {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.15s;
}
.px-price-row span {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
}
.px-billed-as {
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: #94a3b8;
}
.px-card ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  flex: 1;
  text-align: left;
}
.px-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #334155;
}
.px-card li svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: #0f766e;
}
.px-card hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 18px 0;
}
.px-card .cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  width: 100%;
  font-size: 0.95rem;
  background: #fff;
  color: #0f172a;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.px-card .cta:hover {
  border-color: #0f766e;
  background: #0f766e;
  color: #fff;
  box-shadow: 0 0 0 1px #0f766e;
}
.px-card.is-hot .cta {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}
.px-card.is-hot .cta:hover {
  background: #0d6b64;
}
.px-card .cta:disabled {
  opacity: 0.55;
  cursor: wait;
}
.px-card .cta.ghost {
  background: #fff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}
.px-card-foot {
  margin-top: 14px;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #94a3b8;
}
.px-trial-chip {
  display: inline-flex;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 750;
}
.px-card.is-visible {
  animation: pxCardIn 0.7s cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes pxCardIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(var(--px-card-y, 0)) scale(var(--px-card-scale, 1));
  }
}
@media (prefers-reduced-motion: reduce) {
  .px-card.is-visible {
    animation: none;
  }
  .px-card,
  .px-card.is-hot,
  .px-card.is-side {
    transform: none !important;
  }
}
