/* Scoped under .hb-pricing — never overrides global body/a/button globally */
.hb-pricing {
  --hb-p: #7C3AED;
  --hb-p2: #6366F1;
  --hb-dark: #0F172A;
  --hb-muted: #64748B;
  --hb-border: #E2E8F0;
  --hb-bg: #F8FAFC;
}
.hb-pricing * { box-sizing: border-box; }
.hb-pricing .sr-only { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0); }

.hb-pricing-hero { text-align: center; padding: 1.5rem 0 1rem; }
.hb-pricing-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.35rem); margin: .5rem 0 .75rem; line-height: 1.25; color: var(--hb-dark);
}
.hb-pricing-hero .sub { max-width: 560px; margin: 0 auto 1.25rem; color: var(--hb-muted); font-size: 1rem; }
.hb-pricing-badge {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .05em;
  padding: .3rem .7rem; border-radius: 6px; background: #EDE9FE; color: #5B21B6;
}

/* Product switcher */
.hb-p-switch {
  display: inline-flex; background: #F1F5F9; border-radius: 12px; padding: 4px; margin: 0 auto 1rem;
}
.hb-p-switch button {
  border: none; background: transparent; padding: .55rem 1.2rem; border-radius: 10px;
  font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--hb-muted);
}
.hb-p-switch button.is-on {
  background: #fff; color: var(--hb-dark); box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.hb-p-controls {
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; justify-content: center; align-items: center; margin-bottom: 1.5rem;
}
.hb-p-billing {
  display: inline-flex; background: #F1F5F9; border-radius: 12px; padding: 4px;
}
.hb-p-billing button {
  border: none; background: transparent; padding: .5rem 1rem; border-radius: 10px;
  font-weight: 600; font-size: .85rem; cursor: pointer; color: var(--hb-muted);
}
.hb-p-billing button.is-on {
  background: #fff; color: var(--hb-dark); box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.hb-p-save {
  font-size: .65rem; background: #DCFCE7; color: #166534; padding: .12rem .4rem; border-radius: 4px; margin-left: .25rem; font-weight: 700;
}
.hb-p-currency select {
  padding: .5rem .85rem; border-radius: 10px; border: 1px solid var(--hb-border);
  font-size: .875rem; background: #fff; color: var(--hb-dark); min-width: 110px;
}

/* Cards */
.hb-p-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch;
}
.hb-p-card {
  background: #fff; border: 1px solid var(--hb-border); border-radius: 16px; padding: 1.4rem 1.25rem;
  display: flex; flex-direction: column; position: relative;
  transition: transform .22s ease, box-shadow .22s ease;
}
.hb-p-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(15,23,42,.1); }
.hb-p-card.is-popular {
  border-color: var(--hb-p);
  box-shadow: 0 0 0 2px rgba(124,58,237,.2);
}
.hb-p-card-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--hb-p), var(--hb-p2)); color: #fff !important;
  font-size: .68rem; font-weight: 700; padding: .28rem .75rem; border-radius: 999px; white-space: nowrap;
}
.hb-p-card h2 { font-size: 1.2rem; margin: .2rem 0 .35rem; color: var(--hb-dark); }
.hb-p-card .desc { font-size: .875rem; color: var(--hb-muted); margin: 0 0 1rem; }
.hb-p-price { display: flex; align-items: baseline; gap: .3rem; margin-bottom: .2rem; }
.hb-p-price .amt { font-size: 1.85rem; font-weight: 700; color: var(--hb-dark); }
.hb-p-price .per { font-size: .875rem; color: var(--hb-muted); }
.hb-p-equiv { font-size: .8rem; color: #94A3B8; min-height: 1.2em; margin: 0 0 .85rem; }
.hb-p-list { list-style: none; padding: 0; margin: 0 0 1.15rem; flex: 1; }
.hb-p-list li { font-size: .875rem; padding: .28rem 0; color: #334155; }
.hb-p-list .tick { color: #059669; font-weight: 700; margin-right: .3rem; }

/* Explicit button styles — never inherit white-on-white */
.hb-p-btn {
  display: block; width: 100%; text-align: center; padding: .72rem 1rem; border-radius: 10px;
  font-weight: 600; font-size: .9rem; cursor: pointer; text-decoration: none; border: none;
  transition: filter .15s, background .15s, color .15s;
}
.hb-p-btn-primary {
  background: linear-gradient(90deg, #7C3AED, #6366F1) !important;
  color: #ffffff !important;
}
.hb-p-btn-primary:hover { filter: brightness(1.06); color: #ffffff !important; }
.hb-p-btn-secondary {
  background: #ffffff !important;
  color: #5B21B6 !important;
  border: 1.5px solid #C4B5FD !important;
  margin-top: .5rem;
}
.hb-p-btn-secondary:hover {
  background: #F5F3FF !important;
  color: #5B21B6 !important;
  border-color: #7C3AED !important;
}
.hb-p-actions { margin-top: auto; }

/* Add-ons */
.hb-p-section { padding: 2.5rem 0; }
.hb-p-section.alt { background: var(--hb-bg); }
.hb-p-section h2 { text-align: center; font-size: 1.45rem; margin: 0 0 .4rem; color: var(--hb-dark); }
.hb-p-section .lead { text-align: center; color: var(--hb-muted); margin: 0 0 1.5rem; }
.hb-p-addons {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem;
}
.hb-p-addon {
  background: #fff; border: 1px solid var(--hb-border); border-radius: 14px; padding: 1.15rem;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.hb-p-addon:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.hb-p-addon .ico { font-size: 1.6rem; margin-bottom: .4rem; }
.hb-p-addon h3 { font-size: .98rem; margin: 0 0 .35rem; color: var(--hb-dark); }
.hb-p-addon p { font-size: .84rem; color: var(--hb-muted); flex: 1; margin: 0 0 .65rem; line-height: 1.45; }
.hb-p-addon .price { font-weight: 700; font-size: .95rem; color: var(--hb-dark); margin-bottom: .65rem; }

/* FAQ */
.hb-p-faq { max-width: 720px; margin: 0 auto; }
.hb-p-faq details {
  border: 1px solid var(--hb-border); border-radius: 10px; margin-bottom: .55rem;
  padding: .85rem 1rem; background: #fff;
}
.hb-p-faq summary { font-weight: 600; cursor: pointer; list-style: none; color: var(--hb-dark); }
.hb-p-faq summary::-webkit-details-marker { display: none; }
.hb-p-faq details[open] summary { color: var(--hb-p); margin-bottom: .35rem; }
.hb-p-faq p { margin: 0; font-size: .9rem; color: #475569; line-height: 1.55; }

/* Final CTA */
.hb-p-final {
  background: linear-gradient(135deg, #1E1B4B, #4C1D95); color: #fff; text-align: center;
  padding: 2.75rem 1.25rem; border-radius: 0;
}
.hb-p-final h2 { margin: 0 0 .4rem; font-size: 1.4rem; color: #fff; }
.hb-p-final p { opacity: .88; margin: 0 0 1.15rem; color: #E2E8F0; }
.hb-p-final-btns { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; }
.hb-p-final .hb-p-btn-primary {
  background: #ffffff !important; color: #4C1D95 !important; width: auto; min-width: 140px;
}
.hb-p-final .hb-p-btn-secondary {
  background: transparent !important; color: #fff !important; border: 1.5px solid rgba(255,255,255,.55) !important;
  width: auto; min-width: 140px; margin-top: 0;
}
.hb-p-final .hb-p-btn-secondary:hover { background: rgba(255,255,255,.1) !important; color: #fff !important; }

/* Modal */
.hb-p-modal {
  position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center;
  padding: 12px;
}
.hb-p-modal[hidden] { display: none !important; }
.hb-p-modal-bg {
  position: absolute; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(4px);
}
.hb-p-modal-box {
  position: relative; background: #fff; border-radius: 16px; width: 100%;
  max-width: 920px; max-height: 90vh; display: flex; flex-direction: column;
  box-shadow: 0 24px 48px rgba(0,0,0,.22); overflow: hidden;
}
.hb-p-modal-box.sm { max-width: 440px; }
.hb-p-modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.15rem; border-bottom: 1px solid var(--hb-border); flex-shrink: 0; background: #fff;
}
.hb-p-modal-head h2 { margin: 0; font-size: 1.1rem; color: var(--hb-dark); }
.hb-p-modal-x {
  border: none; background: #F1F5F9; width: 36px; height: 36px; border-radius: 8px;
  font-size: 1.35rem; cursor: pointer; color: #475569; line-height: 1;
}
.hb-p-modal-body { overflow-y: auto; padding: 1rem 1.15rem 1.35rem; -webkit-overflow-scrolling: touch; flex: 1; }

.hb-p-table-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.hb-p-table { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 480px; }
.hb-p-table th, .hb-p-table td { padding: .5rem .6rem; border-bottom: 1px solid #F1F5F9; text-align: left; color: #334155; }
.hb-p-table th { position: sticky; top: 0; background: #F8FAFC; font-weight: 600; color: var(--hb-dark); z-index: 1; }
.hb-p-table .cat td { background: #F1F5F9; font-weight: 700; font-size: .78rem; color: var(--hb-muted); }
.hb-p-table .yes { color: #059669; font-weight: 700; text-align: center; }
.hb-p-table .no { color: #94A3B8; text-align: center; }

.hb-p-form .g { margin-bottom: .8rem; }
.hb-p-form label { display: block; font-size: .8rem; margin-bottom: .28rem; color: #334155; font-weight: 500; }
.hb-p-form input, .hb-p-form select, .hb-p-form textarea {
  width: 100%; padding: .6rem .75rem; border: 1px solid var(--hb-border); border-radius: 8px;
  font-size: .9rem; color: var(--hb-dark); background: #fff;
}
.hb-p-form input:focus, .hb-p-form select:focus, .hb-p-form textarea:focus {
  outline: none; border-color: var(--hb-p); box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}

@media (max-width: 900px) {
  .hb-p-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hb-p-cards { grid-template-columns: 1fr; }
  .hb-p-addons { grid-template-columns: 1fr; }
  .hb-p-modal { align-items: flex-end; padding: 0; }
  .hb-p-modal-box {
    max-width: 100%; width: 100%; max-height: 92vh;
    border-radius: 16px 16px 0 0;
  }
  .hb-p-btn { width: 100%; }
  .hb-p-final-btns .hb-p-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hb-p-card, .hb-p-addon { transition: none; }
}
