/* Shared pricing treatment: framed cards, woven artwork and inset details. */
.bb-pricing-frame {
  --frame-ground: #061226;
  --frame-card: #0b192c;
  --frame-panel: #15263a;
  --frame-ink: #fff;
  --frame-muted: #c5cedb;
  --frame-line: #ffffff20;
  --frame-badge: #030c19;
  --frame-accent: #f68b20;
  --frame-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
html.light .bb-pricing-frame {
  --frame-ground: #fff;
  --frame-card: #f8fafc;
  --frame-panel: #edf1f6;
  --frame-ink: #061226;
  --frame-muted: #495569;
  --frame-line: #06122625;
  --frame-badge: #e5eaf1;
  --frame-accent: #a94a06;
}
.bb-pricing-frame.bb-pricing-dark { background: var(--frame-ground); padding-block: 96px; scroll-margin-top: 110px; }
.bb-pricing-frame.bb-pricing-dark::before { display: none; }
.bb-pricing-frame .bb-section { max-width: 1328px; padding: 0 24px; }
.bb-pricing-frame .bb-price-layout { display: block; max-width: none; }
.bb-pricing-frame .bb-price-intro { position: static; max-width: 920px; margin: 0 0 54px; }
.bb-pricing-frame .bb-price-intro .bb-title { max-width: 900px; font-size: clamp(34px, 4.5vw, 60px); font-weight: 400; letter-spacing: -.045em; }
.bb-pricing-frame .bb-price-intro .bb-sub { max-width: 740px; color: var(--frame-muted); }
.bb-pricing-frame :is(.bb-price-cards, .bb-smart-plans) {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  margin-inline: 24px;
  padding: 0;
  isolation: isolate;
  scroll-margin-top: 110px;
}
.bb-pricing-frame :is(.bb-price-cards, .bb-smart-plans)::before,
.bb-pricing-frame :is(.bb-price-cards, .bb-smart-plans)::after {
  content: '';
  position: absolute;
  inset-block: 0;
  width: 24px;
  border: 1px solid var(--frame-line);
  background: repeating-linear-gradient(135deg, transparent 0 8px, var(--frame-line) 8px 9px);
  pointer-events: none;
}
.bb-pricing-frame :is(.bb-price-cards, .bb-smart-plans)::before { right: 100%; }
.bb-pricing-frame :is(.bb-price-cards, .bb-smart-plans)::after { left: 100%; }
.bb-pricing-frame .bb-pcard,
.bb-pricing-frame.bb-smart-pricing .bb-smart-plan {
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--frame-line);
  border-radius: 0;
  color: var(--frame-ink);
  background: var(--frame-card);
  box-shadow: none;
  transform: none;
  scroll-margin-top: 110px;
}
.bb-pricing-frame .bb-pcard { min-height: 660px; }
.bb-pricing-frame:is(.bb-pricing-dark, .bb-smart-pricing) :is(.bb-pcard.is-owner, .bb-smart-plan[data-owner='true']) {
  --frame-card: #061226;
  --frame-panel: #071727ed;
  --frame-ink: #fff;
  --frame-muted: #d0d9e4;
  --frame-line: #ffffff29;
  --frame-badge: #f68b20;
  --frame-accent: #ffad61;
  background: linear-gradient(#010710e8, #01071022 62%, #01071011), url('/brand-assets/pricing-weave.svg') center / cover;
}
.bb-pricing-frame .bb-frame-card__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 44px; }
.bb-pricing-frame .bb-frame-card__icon { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; border: 1px solid var(--frame-line); color: var(--frame-ink); background: #00000025; }
.bb-pricing-frame .bb-frame-card__icon svg { display: block; width: 27px; height: 27px; }
.bb-pricing-frame :is(.is-owner, [data-owner='true']) .bb-frame-card__icon { color: #061226; background: #fff; border-color: #fff; }
.bb-pricing-frame .bb-frame-card__top :is(h2, h3) {
  margin: 0;
  padding: 10px 12px;
  border-radius: 2px;
  background: var(--frame-badge);
  color: var(--frame-ink);
  font-family: var(--frame-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.4;
  text-transform: uppercase;
}
.bb-pricing-frame :is(.bb-pcard.is-owner, .bb-smart-plan[data-owner='true']) .bb-frame-card__top :is(h2, h3) { color: #061226; }
.bb-pricing-frame .bb-pcard-price { align-items: baseline; flex-wrap: wrap; gap: 0; margin-bottom: 20px; }
.bb-pricing-frame :is(.bb-pcard-cur, .bb-pcard-amt) { color: var(--frame-ink); font-family: inherit; font-size: clamp(44px, 4.4vw, 60px); font-weight: 450; letter-spacing: -.06em; line-height: 1.05; margin: 0; }
.bb-pricing-frame .bb-pcard-per { color: var(--frame-muted); font-size: 17px; margin: 0 0 0 10px; }
.bb-pricing-frame .bb-frame-summary { color: var(--frame-muted); font-size: 20px; line-height: 1.5; margin: 0 0 54px; }
.bb-pricing-frame .bb-frame-card__details { display: flex; flex: 1; flex-direction: column; margin-top: auto; padding: 26px; border: 1px solid var(--frame-line); border-radius: 2px; background: var(--frame-panel); }
.bb-pricing-frame .bb-pcard-feats { gap: 22px; margin-bottom: 30px; }
.bb-pricing-frame .bb-pfeat { font-size: 16px; line-height: 1.5; color: var(--frame-muted); }
.bb-pricing-frame .bb-pfeat svg { color: var(--frame-muted); margin-top: 5px; }
.bb-pricing-frame .bb-pcard-cta,
.bb-pricing-frame.bb-smart-pricing .bb-frame-card__details .bb-smart-plan__cta[data-selected] {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  gap: 12px;
  min-height: 54px;
  height: auto;
  margin: auto 0 0;
  padding: 14px 16px;
  border: 1px solid #fff;
  outline: 5px solid #00000022;
  border-radius: 2px;
  background: #fff;
  color: #061226;
  font-family: var(--frame-mono);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  transform: none;
}
.bb-pricing-frame .bb-pcard-cta:hover,
.bb-pricing-frame.bb-smart-pricing .bb-frame-card__details .bb-smart-plan__cta[data-selected]:hover { color: #061226; background: #fbe9d7; border-color: #fbe9d7; transform: none; }
.bb-pricing-frame .bb-pcard-cta:focus-visible,
.bb-pricing-frame.bb-smart-pricing .bb-frame-card__details .bb-smart-plan__cta[data-selected]:focus-visible { outline: 3px solid #f68b20; outline-offset: 5px; }
.bb-pricing-frame .bb-note { max-width: 1040px; margin-inline: auto; }
.bb-pricing-frame.bb-pricing-dark .bb-note p { color: var(--frame-muted); }
@media (max-width: 900px) {
  .bb-pricing-frame :is(.bb-price-cards, .bb-smart-plans) { margin-inline: 14px; }
  .bb-pricing-frame :is(.bb-price-cards, .bb-smart-plans)::before,
  .bb-pricing-frame :is(.bb-price-cards, .bb-smart-plans)::after { width: 14px; }
  .bb-pricing-frame .bb-frame-card__details { padding: 20px; }
}
@media (max-width: 700px) {
  .bb-pricing-frame.bb-pricing-dark { padding-block: 64px; }
  .bb-pricing-frame .bb-section { padding-inline: 18px; }
  .bb-pricing-frame .bb-price-intro { margin-bottom: 36px; }
  .bb-pricing-frame :is(.bb-price-cards, .bb-smart-plans) { grid-template-columns: minmax(0, 1fr); margin-inline: 0; gap: 18px; }
  .bb-pricing-frame :is(.bb-price-cards, .bb-smart-plans)::before,
  .bb-pricing-frame :is(.bb-price-cards, .bb-smart-plans)::after { display: none; }
  .bb-pricing-frame .bb-pcard,
  .bb-pricing-frame.bb-smart-pricing .bb-smart-plan { min-height: 0; padding: 22px; }
  .bb-pricing-frame .bb-frame-card__top { margin-bottom: 32px; }
  .bb-pricing-frame .bb-frame-card__icon { flex-basis: 44px; width: 44px; height: 44px; }
  .bb-pricing-frame .bb-frame-card__top :is(h2, h3) { font-size: 13px; padding: 9px 10px; }
  .bb-pricing-frame .bb-frame-summary { font-size: 18px; margin-bottom: 36px; }
  .bb-pricing-frame .bb-frame-card__details { padding: 20px 18px; }
  .bb-pricing-frame .bb-pfeat { font-size: 15px; }
  .bb-pricing-frame .bb-pcard-cta,
  .bb-pricing-frame.bb-smart-pricing .bb-frame-card__details .bb-smart-plan__cta[data-selected] { font-size: 13px; padding-inline: 10px; }
}
