/* Wiserlytics unified pricing board — 4 columns, slider tiers inside each card */

.pricing-unified {
  background: linear-gradient(165deg, #0f172a 0%, #1e3a8a 38%, #312e81 100%);
  color: #fff;
  padding: clamp(48px, 5vw, 72px) clamp(12px, 2vw, 24px) clamp(56px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.pricing-unified .pricing-intro-wrap {
  text-align: center;
  max-width: 760px;
  width: 100%;
  margin: 0 auto 36px;
  padding: 0 8px;
  box-sizing: border-box;
}

.pricing-unified .pricing-intro-wrap h2,
.pricing-unified h2 {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  text-align: center !important;
  width: 100%;
}

.pricing-unified .pricing-page-subhead {
  font-size: 0.98rem;
  line-height: 1.55;
  opacity: 0.88;
  margin: 0 auto;
  text-align: center;
  max-width: 52ch;
}

.pricing-unified .pricing-token-disclaimer,
.pricing-unified .pricing-marketplace-note {
  margin-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.78;
  max-width: 720px;
}

.pricing-unified .pricing-marketplace-note a {
  color: #a5f3fc;
  font-weight: 700;
}

/* Visitor mode — show/hide pricing copy */
.consumer-only,
.merchant-only {
  display: none;
}
body.visitor-consumer .consumer-only {
  display: block;
}
body.visitor-merchant .merchant-only {
  display: block;
}

[data-pricing-board] {
  width: 100%;
  max-width: min(1320px, 98vw);
  margin: 0 auto;
  box-sizing: border-box;
}

/* 4-column board */
.pb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  max-width: min(1320px, 98vw);
  width: 100%;
  margin: 0 auto;
  align-items: stretch;
}

.pb-grid.pb-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: min(1180px, 98vw);
}

.pb-col {
  background: #fff;
  color: #0f172a;
  border-radius: 16px;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.18);
  min-width: 0;
}

.pb-col--featured {
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 16px 48px rgba(79, 70, 229, 0.35);
  transform: translateY(-4px);
}

.pb-col--locked {
  opacity: 0.94;
}

.pb-popular {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.pb-soon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.62rem;
  font-weight: 800;
  color: #92400e;
  background: #fef3c7;
  padding: 3px 8px;
  border-radius: 999px;
}

.pb-phase {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
}

.pb-title {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  line-height: 1.2;
}

.pb-sub {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0 0 12px;
  line-height: 1.35;
}

/* Credit slider box — inspired by tier slider UI */
.pb-credit-box {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 12px 10px;
  margin-bottom: 12px;
}

.pb-col--teal .pb-credit-box { border-color: #99f6e4; }
.pb-col--indigo .pb-credit-box { border-color: #c7d2fe; }
.pb-col--violet .pb-credit-box { border-color: #ddd6fe; }
.pb-col--consult .pb-credit-box { border-color: #fde68a; background: #fffbeb; }

.pb-credit-head {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.3;
}

.pb-spark {
  color: #0d9488;
}
.pb-col--indigo .pb-spark { color: #4f46e5; }
.pb-col--violet .pb-spark { color: #7c3aed; }

.pb-credit-val {
  font-size: 1.05rem;
  font-weight: 900;
}

.pb-equiv {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0 0 12px;
}

/* Range slider */
.pb-slider-wrap {
  position: relative;
  margin-bottom: 8px;
}

.pb-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  margin: 0;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.pb-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #0d9488;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
  cursor: grab;
}

.pb-col--indigo .pb-slider::-webkit-slider-thumb { border-color: #4f46e5; }
.pb-col--violet .pb-slider::-webkit-slider-thumb { border-color: #7c3aed; }

.pb-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #0d9488;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
  cursor: grab;
}

.pb-slider-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: #cbd5e1;
  border-radius: 4px;
  pointer-events: none;
  z-index: 1;
}

.pb-slider-fill {
  height: 100%;
  background: #0d9488;
  border-radius: 4px;
  transition: width 0.15s ease;
}

.pb-col--indigo .pb-slider-fill { background: #4f46e5; }
.pb-col--violet .pb-slider-fill { background: #7c3aed; }

.pb-ticks {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-top: 2px;
}

.pb-tick {
  flex: 1;
  background: none;
  border: none;
  padding: 4px 0 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.pb-tick-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: background 0.15s, transform 0.15s;
}

.pb-tick.is-active .pb-tick-dot {
  background: #0d9488;
  transform: scale(1.25);
}

.pb-col--indigo .pb-tick.is-active .pb-tick-dot { background: #4f46e5; }
.pb-col--violet .pb-tick.is-active .pb-tick-dot { background: #7c3aed; }

.pb-tick-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: #94a3b8;
  line-height: 1.1;
  word-break: break-word;
  text-align: center;
}

.pb-tick.is-active .pb-tick-label {
  color: #0f172a;
  font-weight: 800;
}

/* Price */
.pb-price-row {
  text-align: center;
  margin-bottom: 12px;
}

.pb-price {
  display: block;
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f766e;
  line-height: 1.1;
}

.pb-col--indigo .pb-price { color: #4338ca; }
.pb-col--violet .pb-price { color: #6d28d9; }
.pb-col--consult .pb-price--custom { color: #0f172a; font-size: 2rem; }

.pb-currency {
  font-size: 1.1rem;
  font-weight: 800;
}

.pb-price-note {
  display: block;
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 4px;
}

/* CTA */
.pb-cta {
  width: 100%;
  padding: 11px 12px !important;
  font-size: 0.82rem !important;
  border-radius: 10px !important;
  margin-bottom: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-align: center;
}

.pb-col--featured .pb-cta:not(.pb-cta--locked) {
  background: linear-gradient(135deg, #4338ca, #6366f1) !important;
}

.pb-cta--locked {
  opacity: 0.65;
  cursor: not-allowed !important;
  background: #94a3b8 !important;
}

/* Features inside card */
.pb-features {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  flex: 1;
}

.pb-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
  padding: 5px 0;
  border-bottom: none;
  line-height: 1.35;
}

.pb-features li:last-child {
  border-bottom: none;
}

.pb-check {
  color: #0d9488;
  font-weight: 900;
  flex-shrink: 0;
  font-size: 0.7rem;
  margin-top: 1px;
}

.pb-col--indigo .pb-check { color: #4f46e5; }
.pb-col--violet .pb-check { color: #7c3aed; }
.pb-col--consult .pb-check { color: #d97706; }

.pb-platform-note {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: #475569;
}

.pb-col--indigo .pb-platform-note {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
}

.pb-col--teal .pb-platform-note {
  background: #f0fdfa;
  border-color: #99f6e4;
  color: #0f766e;
}

.pb-link {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
  margin-top: auto;
  text-align: center;
}

.pb-link:hover {
  color: #0f172a;
  text-decoration: underline;
}

.pb-col--consult .pb-cta {
  background: linear-gradient(135deg, #d97706, #f59e0b) !important;
}

/* How credits — footer panel on pricing page */
.pricing-unified .oi-token-section {
  margin-top: 36px;
  max-width: 640px;
  width: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 20px 22px;
}

.pricing-unified .oi-token-section h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.pricing-unified .oi-token-section p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  opacity: 0.88;
}

.pricing-unified .pricing-upload-banner {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.92rem;
  line-height: 1.5;
}

.pricing-unified .pricing-toggle-wrap {
  margin-top: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pricing-unified .pb-billing-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 4px;
  min-width: 240px;
  isolation: isolate;
}

.pricing-unified .pb-billing-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
  transition: transform 0.22s ease;
  z-index: 0;
  pointer-events: none;
}

.pricing-unified .pb-billing-toggle.is-annual .pb-billing-indicator {
  transform: translateX(100%);
}

.pricing-unified .pb-billing-btn {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.pricing-unified .pb-billing-btn.is-active {
  color: #0f172a;
}

.pricing-unified .pricing-save-note,
.pricing-unified .pb-billing-note {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.pricing-unified .pb-column--highlight {
  outline: 2px solid rgba(129, 140, 248, 0.95);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.25);
}

/* Responsive */
@media (max-width: 1100px) {
  .pb-grid,
  .pb-grid.pb-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: min(720px, 96vw);
  }
  .pb-col--featured {
    transform: none;
  }
}

@media (max-width: 600px) {
  .pb-grid,
  .pb-grid.pb-grid--3 {
    grid-template-columns: 1fr;
    max-width: min(400px, 94vw);
  }
}
