/* Bespoke Books — /pricing (always dark marketing page; pinned hex — not theme-dependent) */

.page-pricing {
  background: #1a1714 !important;
  color: #F7F4EF !important;
}

.page-pricing main {
  padding: 0;
  background: #1a1714 !important;
  color: #F7F4EF !important;
}

.page-pricing .bb-topnav {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ── Shared marketing patterns (aligned with home.css) ── */

.pricing-label {
  font-family: var(--bb-font-ui);
  font-size: var(--bb-text-xs-size);
  font-weight: var(--bb-font-weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bb-color-accent);
  margin: 0 0 var(--bb-space-3);
  text-align: center;
}

.pricing-headline {
  font-family: var(--bb-font-display);
  font-size: 40px;
  font-weight: var(--bb-font-weight-regular);
  line-height: 1.2;
  color: #F7F4EF;
  margin: 0 0 var(--bb-space-4);
  text-align: center;
}

.pricing-subhead {
  font-family: var(--bb-font-body);
  font-size: var(--bb-text-lg-size);
  line-height: 1.55;
  color: rgba(247, 244, 239, 0.72);
  margin: 0 auto;
  max-width: 640px;
  text-align: center;
}

.pricing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--bb-radius-md);
  font-family: var(--bb-font-ui);
  font-size: var(--bb-text-base-size);
  font-weight: var(--bb-font-weight-medium);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.pricing-btn--primary {
  background: var(--bb-color-accent);
  color: #fff;
}

.pricing-btn--primary:hover:not(:disabled) {
  background: var(--bb-color-accent-hover);
  color: #fff;
  text-decoration: none;
}

.pricing-btn--outline {
  background: transparent;
  color: #F7F4EF;
  border: 1px solid rgba(247, 244, 239, 0.28);
}

.pricing-btn--outline:hover:not(:disabled) {
  border-color: rgba(247, 244, 239, 0.5);
  color: #F7F4EF;
}

.pricing-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── Header ── */

.pricing-header {
  padding: calc(var(--bb-nav-height) + var(--bb-space-8)) var(--bb-space-6) 0;
  text-align: center;
}

/* ── Billing toggle ── */

.pricing-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--bb-space-3);
  margin: var(--bb-space-6) auto var(--bb-space-10);
}

.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--bb-space-1);
  padding: var(--bb-space-1);
  border-radius: var(--bb-radius-full);
  background: rgba(247, 244, 239, 0.06);
  border: 1px solid rgba(247, 244, 239, 0.1);
}

.pricing-toggle__btn {
  padding: var(--bb-space-2) var(--bb-space-5);
  border: none;
  border-radius: var(--bb-radius-full);
  background: transparent;
  color: rgba(247, 244, 239, 0.6);
  font-family: var(--bb-font-ui);
  font-size: var(--bb-text-sm-size);
  font-weight: var(--bb-font-weight-medium);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.pricing-toggle__btn.is-active {
  background: var(--bb-color-accent);
  color: #fff;
}

.pricing-toggle__save {
  font-family: var(--bb-font-ui);
  font-size: var(--bb-text-xs-size);
  font-weight: var(--bb-font-weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bb-color-success);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.pricing-toggle__save.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ── Tier cards ── */

.pricing-cards {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--bb-space-6) var(--bb-space-12);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--bb-space-6);
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(247, 244, 239, 0.04);
  border: 1px solid rgba(247, 244, 239, 0.12);
  border-radius: var(--bb-radius-lg);
  padding: var(--bb-space-8) var(--bb-space-6);
}

.pricing-card--featured {
  background: rgba(247, 244, 239, 0.07);
  border-color: #C0542A;
  box-shadow: 0 12px 40px rgba(192, 84, 42, 0.12);
  transform: translateY(-6px);
}

.pricing-card__badge {
  position: absolute;
  top: calc(-1 * var(--bb-space-3));
  left: 50%;
  transform: translateX(-50%);
  background: var(--bb-color-accent);
  color: #fff;
  font-family: var(--bb-font-ui);
  font-size: 10px;
  font-weight: var(--bb-font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--bb-space-1) var(--bb-space-3);
  border-radius: var(--bb-radius-full);
  white-space: nowrap;
}

.pricing-card__tier {
  font-family: var(--bb-font-display);
  font-size: var(--bb-text-xl-size);
  color: #F7F4EF;
  margin: 0 0 var(--bb-space-4);
}

.pricing-card__price-row {
  margin-bottom: var(--bb-space-1);
}

.pricing-card__price {
  font-family: var(--bb-font-ui);
  font-size: 48px;
  font-weight: var(--bb-font-weight-bold);
  line-height: 1;
  color: #F7F4EF;
}

.pricing-card__price-suffix {
  font-size: var(--bb-text-md-size);
  font-weight: var(--bb-font-weight-regular);
  color: rgba(247, 244, 239, 0.6);
}

.pricing-card__annual-equiv {
  font-family: var(--bb-font-ui);
  font-size: var(--bb-text-sm-size);
  color: rgba(247, 244, 239, 0.6);
  min-height: 1.25em;
  margin: 0 0 var(--bb-space-4);
}

.pricing-card__limit {
  font-family: var(--bb-font-ui);
  font-size: var(--bb-text-sm-size);
  font-weight: var(--bb-font-weight-semibold);
  color: rgba(247, 244, 239, 0.85);
  margin: 0 0 var(--bb-space-6);
  padding-bottom: var(--bb-space-4);
  border-bottom: 1px solid rgba(247, 244, 239, 0.1);
}

.pricing-card__features {
  list-style: none;
  margin: 0 0 var(--bb-space-8);
  padding: 0;
  flex: 1 1 auto;
}

.pricing-card__features li {
  position: relative;
  padding: var(--bb-space-2) 0 var(--bb-space-2) var(--bb-space-6);
  font-family: var(--bb-font-body);
  font-size: var(--bb-text-base-size);
  line-height: 1.5;
  color: rgba(247, 244, 239, 0.78);
  border-bottom: 1px solid rgba(247, 244, 239, 0.1);
}

.pricing-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: var(--bb-space-2);
  color: var(--bb-color-accent);
  font-family: var(--bb-font-ui);
  font-size: var(--bb-text-sm-size);
  font-weight: var(--bb-font-weight-semibold);
}

.pricing-card__cta {
  width: 100%;
}

.pricing-card--featured .pricing-card__cta {
  background: var(--bb-color-accent);
  color: #fff;
  border: none;
}

.pricing-card--featured .pricing-card__cta:hover:not(:disabled) {
  background: var(--bb-color-accent-hover);
}

.pricing-note {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--bb-space-6) var(--bb-space-6) var(--bb-space-8);
  text-align: center;
  font-family: var(--bb-font-ui);
  font-size: var(--bb-text-sm-size);
  color: rgba(247, 244, 239, 0.65);
  border-top: 1px solid rgba(247, 244, 239, 0.08);
}

/* ── Product showcase ── */

.pricing-showcase {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--bb-space-16) var(--bb-space-6);
  border-top: 1px solid rgba(247, 244, 239, 0.1);
}

.pricing-showcase__headline {
  font-family: var(--bb-font-display);
  font-size: 36px;
  font-weight: var(--bb-font-weight-regular);
  line-height: 1.2;
  color: #F7F4EF;
  margin: 0 0 var(--bb-space-4);
  text-align: center;
}

.pricing-showcase__subhead {
  font-family: var(--bb-font-body);
  font-size: var(--bb-text-lg-size);
  line-height: 1.55;
  color: rgba(247, 244, 239, 0.72);
  margin: 0 auto var(--bb-space-10);
  max-width: 680px;
  text-align: center;
}

.pricing-showcase__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--bb-space-8);
}

.pricing-showcase__figure {
  margin: 0;
}

.pricing-showcase__frame {
  border-radius: 8px;
  border: 1px solid rgba(247, 244, 239, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  line-height: 0;
}

.pricing-showcase__frame img {
  display: block;
  width: 100%;
  height: auto;
}

.pricing-showcase__caption {
  font-family: var(--bb-font-ui);
  font-size: var(--bb-text-sm-size);
  line-height: 1.5;
  color: rgba(247, 244, 239, 0.6);
  margin: var(--bb-space-3) 0 0;
  text-align: center;
}

/* ── FAQ ── */

.pricing-faq {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--bb-space-16) var(--bb-space-6);
  border-top: 1px solid rgba(247, 244, 239, 0.1);
}

.pricing-faq__title {
  font-family: var(--bb-font-display);
  font-size: var(--bb-text-2xl-size);
  font-weight: var(--bb-font-weight-regular);
  color: #F7F4EF;
  margin: 0 0 var(--bb-space-8);
  text-align: center;
}

.pricing-faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--bb-space-6);
}

.pricing-faq__item {
  padding-bottom: var(--bb-space-6);
  border-bottom: 1px solid rgba(247, 244, 239, 0.1);
}

.pricing-faq__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pricing-faq__q {
  font-family: var(--bb-font-ui);
  font-size: var(--bb-text-md-size);
  font-weight: var(--bb-font-weight-semibold);
  color: #F7F4EF;
  margin: 0 0 var(--bb-space-2);
}

.pricing-faq__a {
  font-family: var(--bb-font-body);
  font-size: var(--bb-text-base-size);
  line-height: 1.6;
  color: rgba(247, 244, 239, 0.72);
  margin: 0;
}

/* ── Bottom CTA ── */

.pricing-cta {
  background: rgba(247, 244, 239, 0.04);
  border-top: 1px solid rgba(247, 244, 239, 0.1);
  padding: var(--bb-space-20) var(--bb-space-6);
  text-align: center;
}

.pricing-cta__headline {
  font-family: var(--bb-font-display);
  font-size: 36px;
  font-weight: var(--bb-font-weight-regular);
  color: #F7F4EF;
  margin: 0 0 var(--bb-space-3);
}

.pricing-cta__subhead {
  font-family: var(--bb-font-body);
  font-size: var(--bb-text-lg-size);
  line-height: 1.55;
  color: rgba(247, 244, 239, 0.72);
  margin: 0 auto var(--bb-space-8);
  max-width: 480px;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .pricing-showcase__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .pricing-card--featured {
    transform: none;
    order: -1;
  }
}

@media (max-width: 768px) {
  .pricing-header {
    padding-top: calc(var(--bb-nav-height) + var(--bb-space-6));
  }

  .pricing-headline {
    font-size: 32px;
  }

  .pricing-subhead {
    font-size: var(--bb-text-md-size);
  }

  .pricing-showcase__headline {
    font-size: 28px;
  }

  .pricing-cta__headline {
    font-size: 28px;
  }
}
