/* Market selector, geo-pricing, SaaS plan cards */
.pp-market-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.pp-market-btn {
  appearance: none;
  border: 1px solid var(--pp-border);
  background: var(--pp-card);
  color: inherit;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pp-market-btn:hover,
.pp-market-btn[aria-expanded="true"] {
  border-color: var(--pp-primary);
}
.pp-market-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  min-width: 260px;
  max-height: 360px;
  overflow: auto;
  background: var(--pp-card);
  border: 1px solid var(--pp-border);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  padding: 6px;
}
.pp-market-option {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.88rem;
  cursor: pointer;
}
.pp-market-option:hover {
  background: rgba(0, 196, 180, 0.12);
}
.pp-market-switcher-footer .pp-market-btn {
  margin-top: 8px;
}

.billing-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--pp-border);
  border-radius: 999px;
  margin: 0 auto 28px;
}
.billing-toggle button {
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
}
.billing-toggle button.active {
  background: var(--pp-primary);
  color: #042f2e;
}

.saas-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}
.saas-plan {
  background: var(--pp-card);
  border: 1px solid var(--pp-border);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.saas-plan.popular {
  border-color: var(--pp-primary);
  box-shadow: 0 16px 40px rgba(0, 196, 180, 0.14);
}
.saas-plan .badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--pp-primary);
  color: #042f2e;
  border-radius: 999px;
  padding: 4px 8px;
}
.saas-plan h3 { margin: 0 0 6px; font-size: 1.35rem; }
.saas-plan .price {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 8px 0 4px;
}
.saas-plan .price-note { color: var(--pp-muted); font-size: 0.85rem; margin-bottom: 14px; }
.saas-plan ul {
  margin: 0 0 20px;
  padding: 0 0 0 18px;
  color: var(--pp-muted);
  line-height: 1.7;
  flex: 1;
}
.pp-payment-note {
  max-width: 720px;
  margin: 0 auto 24px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
  font-size: 0.92rem;
}
.addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 48px;
}
.addon-card {
  border: 1px solid var(--pp-border);
  border-radius: 16px;
  padding: 16px;
  background: var(--pp-card);
}
.addon-card h4 { margin: 0 0 6px; font-size: 1rem; }
.addon-card .price { font-weight: 700; margin: 8px 0; }
.core-product-grid,
.role-entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.core-product-card,
.role-entry-card {
  border: 1px solid var(--pp-border);
  border-radius: 16px;
  padding: 18px;
  background: var(--pp-card);
  text-decoration: none;
  color: inherit;
  display: block;
}
.core-product-card h3,
.role-entry-card h3 { margin: 8px 0 6px; font-size: 1.05rem; }
.core-product-card p,
.role-entry-card p { margin: 0; color: var(--pp-muted); font-size: 0.9rem; }
.split-audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.quote-box {
  border: 1px solid var(--pp-border);
  border-radius: 16px;
  padding: 16px;
  background: var(--pp-card);
}
.quote-box .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}
.quote-box .total { font-weight: 800; font-size: 1.1rem; border-top: 1px solid var(--pp-border); margin-top: 8px; padding-top: 10px; }

@media (max-width: 900px) {
  .saas-plans,
  .split-audience,
  .pricing-philosophy { grid-template-columns: 1fr; }
  .pp-market-btn { max-width: 160px; font-size: 0.75rem; }
}
