/**
 * Marketing surface primitives for public-facing product pages.
 * Theme-aware and intended for landing pages, docs entry points, and waitlists.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.bb-marketing-page {
  margin: 0;
  min-height: 100vh;
  background: var(--bb-marketing-page-canvas);
  color: var(--bb-v2-color-content-primary);
  font-family: var(--bb-font-family-body);
  line-height: var(--bb-font-line-height-normal);
}

.bb-marketing-page :where(main a:not(.bb-btn)) {
  color: inherit;
}

.bb-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.bb-eyebrow {
  color: var(--bb-v2-identity-primary);
  font-size: var(--bb-font-size-xs);
  font-weight: var(--bb-font-weight-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bb-section__head .bb-eyebrow {
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  letter-spacing: 0.1em;
}

.bb-hero {
  padding: var(--bb-spacing-16) 0 calc(var(--bb-spacing-12) + 18px);
}

.bb-hero--centered {
  text-align: center;
}

.bb-hero--centered .bb-hero__grid {
  grid-template-columns: 1fr;
  justify-items: center;
}

.bb-hero--centered .bb-hero__copy {
  max-width: 760px;
}

.bb-hero--centered .bb-hero__copy h1 {
  max-width: none;
}

.bb-hero__icon {
  width: 108px;
  height: 108px;
  object-fit: contain;
  margin: 0 auto 10px;
  filter:
    drop-shadow(0 0 16px color-mix(in srgb, var(--bb-marketing-hero-icon-glow) 42%, transparent))
    drop-shadow(0 0 34px color-mix(in srgb, var(--bb-marketing-hero-icon-glow) 26%, transparent));
}

.bb-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.bb-hero__copy h1,
.bb-section h2,
.bb-card h3,
.bb-price-card h3,
.bb-download-card h3,
.bb-proof-card h3,
.bb-step h3,
.bb-faq-item h3 {
  margin: 0;
  font-family: var(--bb-font-family-display);
  font-weight: var(--bb-font-weight-bold);
  letter-spacing: -0.04em;
}

.bb-marketing-page strong {
  font-weight: var(--bb-font-weight-bold);
}

.bb-hero__copy h1 {
  font-size: clamp(2.6rem, 4.2vw, 4rem);
  line-height: 0.96;
  max-width: 10ch;
}

.bb-lead {
  margin: 10px 0 0;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  color: var(--bb-v2-identity-primary);
  max-width: 56ch;
}

.bb-hero--centered .bb-lead {
  margin-left: auto;
  margin-right: auto;
}

.bb-hero__support {
  margin: 10px auto 0;
  max-width: 34ch;
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.45;
  color: var(--bb-v2-color-content-secondary);
}

.bb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bb-spacing-3);
  margin-top: 18px;
  align-items: center;
}

.bb-hero--centered .bb-actions,
.bb-hero--centered .bb-meta {
  justify-content: center;
}

.bb-btn.bb-btn-inline {
  width: 188px;
  min-width: 188px;
  height: 46px;
  min-height: 46px;
  padding: 0 16px;
  box-sizing: border-box;
}

.bb-store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 188px;
  min-width: 188px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  background: var(--bb-marketing-store-badge-surface);
  border-radius: var(--bb-radius-md);
  overflow: hidden;
  box-shadow: var(--bb-shadow-md);
  border: 1px solid color-mix(in srgb, var(--bb-marketing-highlight) 82%, transparent);
}

.bb-store-badge img {
  display: block;
  width: 100%;
  height: auto;
}

.bb-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.bb-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--bb-radius-full);
  background: color-mix(in srgb, var(--bb-v2-identity-secondary) 72%, transparent);
  color: var(--bb-v2-identity-secondary-foreground);
  font-size: var(--bb-font-size-sm);
  font-weight: var(--bb-font-weight-medium);
}

.bb-platform-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--bb-radius-full);
  background: color-mix(in srgb, var(--bb-marketing-highlight) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--bb-marketing-highlight) 14%, transparent);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.bb-platform-pill:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--bb-marketing-highlight) 10%, transparent);
  border-color: color-mix(in srgb, var(--bb-marketing-hero-icon-glow) 28%, transparent);
}

.bb-platform-pill__icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.bb-chip--neutral {
  background: color-mix(in srgb, var(--bb-v2-color-surface-subtle) 86%, transparent);
  color: var(--bb-v2-color-content-secondary);
}

.bb-proof-card {
  position: relative;
  padding: clamp(22px, 3vw, 30px);
  border-radius: 28px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bb-v2-color-surface-surface) 90%, var(--bb-marketing-highlight) 10%) 0%, var(--bb-v2-color-surface-surface) 100%);
  border: 1px solid color-mix(in srgb, var(--bb-v2-color-border-subtle) 90%, transparent);
  box-shadow: var(--bb-shadow-xl);
  overflow: hidden;
}

.bb-proof-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -25% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bb-v2-color-interaction-selection) 76%, transparent);
  filter: blur(42px);
  opacity: 0.8;
}

.bb-proof-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: var(--bb-spacing-5);
}

.bb-proof-card__icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--bb-v2-identity-secondary) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--bb-v2-identity-primary) 18%, transparent);
}

.bb-proof-card__icon-wrap img {
  width: 38px;
  height: 38px;
}

.bb-proof-card__head p,
.bb-card p,
.bb-step p,
.bb-download-card p,
.bb-price-card p,
.bb-faq-item p,
.bb-note,
.bb-terminal pre {
  margin: 0;
  color: var(--bb-v2-color-content-secondary);
}

.bb-workflow {
  display: grid;
  gap: var(--bb-spacing-3);
}

.bb-workflow__lane {
  display: grid;
  grid-template-columns: 114px 1fr;
  gap: var(--bb-spacing-3);
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--bb-v2-color-surface-subtle) 42%, transparent);
}

.bb-workflow__lane strong {
  font-family: var(--bb-font-family-display);
  font-size: var(--bb-font-size-sm);
  color: var(--bb-v2-color-content-primary);
}

.bb-workflow__clip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bb-token {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--bb-v2-color-surface-canvas);
  border: 1px solid var(--bb-v2-color-border-subtle);
  color: var(--bb-v2-color-content-primary);
  font-size: var(--bb-font-size-xs);
  font-family: var(--bb-font-family-mono);
}

.bb-proof-card__foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--bb-spacing-3);
  margin-top: var(--bb-spacing-5);
}

.bb-proof-stat {
  padding: 14px 16px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--bb-v2-color-surface-canvas) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--bb-v2-color-border-subtle) 72%, transparent);
}

.bb-proof-stat strong {
  display: block;
  font-family: var(--bb-font-family-display);
  font-size: var(--bb-font-size-lg);
  color: var(--bb-v2-color-content-primary);
}

.bb-proof-stat span {
  display: block;
  margin-top: 4px;
  font-size: var(--bb-font-size-xs);
  color: var(--bb-v2-color-content-secondary);
}

.bb-section {
  padding: var(--bb-spacing-10) 0;
}

.bb-section__head {
  display: grid;
  gap: var(--bb-spacing-3);
  margin-bottom: var(--bb-spacing-6);
  max-width: 72ch;
}

.bb-section__head :is(h1, h2) {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.02;
}

.bb-grid-3,
.bb-grid-2,
.bb-platform-grid,
.bb-pricing-grid,
.bb-faq-grid {
  display: grid;
  gap: var(--bb-spacing-4);
}

.bb-grid-3,
.bb-platform-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bb-pricing-grid {
  --bb-pricing-card-width: 16rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--bb-pricing-card-width)), var(--bb-pricing-card-width)));
  justify-content: center;
}

.bb-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bb-faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bb-card,
.bb-step,
.bb-download-card,
.bb-price-card,
.bb-faq-item,
.bb-banner,
.bb-terminal {
  background: color-mix(in srgb, var(--bb-v2-color-surface-surface) 92%, var(--bb-marketing-highlight) 8%);
  border: 1px solid color-mix(in srgb, var(--bb-v2-color-border-subtle) 86%, transparent);
  border-radius: var(--bb-radius-2xl);
}

.bb-card,
.bb-step,
.bb-download-card,
.bb-price-card,
.bb-faq-item {
  padding: 22px;
}

.bb-step--linklike {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.bb-step--linklike:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--bb-v2-identity-primary) 34%, var(--bb-v2-color-border-subtle));
  box-shadow: 0 14px 32px color-mix(in srgb, var(--bb-v2-identity-secondary) 22%, transparent);
}

.bb-card h3,
.bb-step h3,
.bb-download-card h3,
.bb-price-card h3,
.bb-faq-item h3 {
  font-size: 1.2rem;
  line-height: 1.05;
  margin-bottom: 10px;
}

.bb-card__eyebrow,
.bb-price-card__eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: var(--bb-radius-full);
  background: color-mix(in srgb, var(--bb-v2-color-interaction-selection) 78%, transparent);
  color: var(--bb-v2-color-interaction-on-selection);
  font-size: var(--bb-font-size-xs);
  font-weight: var(--bb-font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bb-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--bb-spacing-4);
}

.bb-step__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--bb-v2-identity-secondary);
  color: var(--bb-v2-identity-secondary-foreground);
  font-family: var(--bb-font-family-display);
  font-size: var(--bb-font-size-lg);
  font-weight: var(--bb-font-weight-bold);
  margin-bottom: 14px;
}

.bb-step__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  position: relative;
}

.bb-step__icon-wrap--dual {
  gap: 6px;
  width: auto;
}

.bb-step__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.bb-step__icon--os {
  width: 24px;
  height: 24px;
}


.bb-platform-card__head,
.bb-download-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.bb-platform-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.bb-platform-badge {
  margin-left: auto;
  display: none;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--bb-v2-identity-secondary);
  color: var(--bb-v2-identity-secondary-foreground);
  font-size: 11px;
  font-weight: var(--bb-font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bb-download-card.is-detected .bb-platform-badge,
.bb-banner.is-visible {
  display: inline-flex;
}

.bb-download-card.is-detected {
  border-color: color-mix(in srgb, var(--bb-v2-identity-primary) 36%, var(--bb-v2-color-border-subtle));
  box-shadow: 0 20px 48px color-mix(in srgb, var(--bb-v2-identity-secondary) 56%, transparent);
}

.bb-download-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  justify-items: stretch;
}

.bb-download-actions .bb-btn {
  width: 100%;
}

.bb-download-actions .bb-btn-filled {
  color: var(--bb-marketing-store-badge-content);
}

.bb-download-actions .bb-btn-outline {
  color: var(--bb-marketing-store-badge-content);
  border-color: color-mix(in srgb, var(--bb-marketing-store-badge-content) 22%, transparent);
}

.bb-download-actions .bb-btn-outline[href$=".deb"] {
  color: var(--bb-v2-identity-primary);
  border-color: var(--bb-v2-color-border-default);
}

.bb-terminal {
  margin-top: 14px;
  overflow: hidden;
}

.bb-terminal summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 16px;
  font-size: var(--bb-font-size-sm);
  font-weight: var(--bb-font-weight-semibold);
  color: var(--bb-v2-color-content-primary);
}

.bb-terminal summary::-webkit-details-marker {
  display: none;
}

.bb-terminal__body {
  margin: 0 16px 16px;
  padding: 1px;
  border: 1px solid color-mix(in srgb, var(--bb-v2-color-border-subtle) 88%, var(--bb-marketing-highlight) 12%);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bb-marketing-page-canvas);
}

.bb-terminal pre {
  margin: 0;
  padding: 16px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--bb-font-family-mono);
  font-size: var(--bb-font-size-xs);
  line-height: 1.7;
  color: var(--bb-v2-color-content-inverse);
  background: color-mix(in srgb, var(--bb-v2-color-surface-inverse) 84%, var(--bb-marketing-terminal-blend) 16%);
}

.bb-banner {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: var(--bb-spacing-4);
  color: var(--bb-v2-identity-secondary-foreground);
  background: color-mix(in srgb, var(--bb-v2-identity-secondary) 86%, transparent);
}

.bb-pricing-grid {
  align-items: stretch;
}

.bb-pricing-intro {
  margin: 0 0 18px;
  max-width: 64ch;
  color: var(--bb-v2-color-content-secondary);
  font-size: var(--bb-font-size-md);
  line-height: 1.6;
}

.bb-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bb-price-card--coal,
.bb-price-card--silver,
.bb-price-card--gold {
  color: var(--bb-marketing-plan-content);
}

.bb-price-card--coal {
  background: var(--bb-marketing-plan-free-surface);
  border-color: var(--bb-marketing-plan-free-border);
}

.bb-price-card--silver {
  background: linear-gradient(180deg, var(--bb-marketing-plan-monthly-surface-start) 0%, var(--bb-marketing-plan-monthly-surface-end) 100%);
  border-color: var(--bb-marketing-plan-monthly-border);
}

.bb-price-card--gold {
  background: var(--bb-marketing-plan-yearly-surface);
  border-color: var(--bb-marketing-plan-yearly-border);
  box-shadow: 0 24px 56px color-mix(in srgb, var(--bb-marketing-plan-yearly-border) 18%, transparent);
}

.bb-price-card--coal .bb-price-card__eyebrow {
  background: color-mix(in srgb, var(--bb-marketing-plan-content) 12%, transparent);
  color: var(--bb-marketing-plan-free-label);
}

.bb-price-card--silver .bb-price-card__eyebrow {
  background: color-mix(in srgb, var(--bb-marketing-highlight) 12%, transparent);
  color: var(--bb-marketing-plan-monthly-label);
}

.bb-price-card--gold .bb-price-card__eyebrow {
  background: color-mix(in srgb, var(--bb-marketing-plan-yearly-label) 14%, transparent);
  color: var(--bb-marketing-plan-yearly-label);
}

.bb-price-card__body,
.bb-price-card__support,
.bb-price-card__annual {
  color: inherit;
  opacity: 0.88;
}

.bb-price-card__headline {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.bb-price-card__headline h3 {
  margin-bottom: 0;
}

.bb-price-card__body {
  line-height: 1.55;
}

.bb-price-card__support,
.bb-price-card__annual {
  font-size: var(--bb-font-size-sm);
  font-weight: var(--bb-font-weight-medium);
}

.bb-price-card__tradeoff {
  margin-top: auto;
}

.bb-price {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.bb-price--inline {
  gap: 6px;
}

.bb-price strong {
  font-family: var(--bb-font-family-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 0.9;
}

.bb-price span {
  color: inherit;
  opacity: 0.88;
  font-size: var(--bb-font-size-sm);
}

.bb-price-list,
.bb-icon-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bb-icon-list {
  display: grid;
  gap: 10px;
}

.bb-icon-list li {
  position: relative;
  padding-left: 34px;
  color: inherit;
  opacity: 0.94;
  line-height: 1.45;
  min-height: 22px;
  display: flex;
  align-items: center;
}

.bb-icon-list li::before,
.bb-icon-list li::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
}

.bb-icon-list--check li::after {
  left: 2px;
  width: 11px;
  height: 6px;
  border-left: 3px solid var(--bb-marketing-plan-positive);
  border-bottom: 3px solid var(--bb-marketing-plan-positive);
  transform: translateY(-50%) rotate(-45deg);
}

.bb-icon-list--cross li::after {
  left: 1px;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--bb-marketing-plan-negative), var(--bb-marketing-plan-negative)) center / 3px 14px no-repeat,
    linear-gradient(var(--bb-marketing-plan-negative), var(--bb-marketing-plan-negative)) center / 14px 3px no-repeat;
  transform: translateY(-50%) rotate(45deg);
}

.bb-icon-list--mixed li::before,
.bb-icon-list--mixed li::after {
  content: none;
}

.bb-icon-list--mixed li.is-positive::before,
.bb-icon-list--mixed li.is-negative::before {
  content: "";
  position: absolute;
  left: 0;
}

.bb-icon-list--mixed li.is-positive::before {
  width: 11px;
  height: 6px;
  border-left: 3px solid var(--bb-marketing-plan-positive);
  border-bottom: 3px solid var(--bb-marketing-plan-positive);
  transform: translateY(-50%) rotate(-45deg);
}

.bb-icon-list--mixed li.is-negative::before {
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--bb-marketing-plan-negative), var(--bb-marketing-plan-negative)) center / 3px 14px no-repeat,
    linear-gradient(var(--bb-marketing-plan-negative), var(--bb-marketing-plan-negative)) center / 14px 3px no-repeat;
  transform: translateY(-50%) rotate(45deg);
}

.bb-price-list li + li,
.bb-faq-list li + li {
  margin-top: 8px;
}

.bb-note {
  font-size: var(--bb-font-size-sm);
}

.bb-mt-4 {
  margin-top: 16px;
}

.bb-faq-item p + p {
  margin-top: 10px;
}

.bb-cta-band {
  padding: var(--bb-spacing-10) 0 var(--bb-spacing-16);
}

body:has(> .bb-navbar[data-placement="sticky"]) :is(.bb-section, .bb-cta-band) {
  scroll-margin-top: 96px;
}

.bb-cta-band__panel {
  padding: clamp(24px, 4vw, 38px);
  border-radius: 28px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--bb-v2-identity-secondary) 78%, var(--bb-marketing-highlight) 22%) 0%, color-mix(in srgb, var(--bb-v2-color-interaction-selection) 82%, var(--bb-marketing-highlight) 18%) 100%);
  border: 1px solid color-mix(in srgb, var(--bb-v2-identity-primary) 18%, transparent);
  display: grid;
  gap: var(--bb-spacing-3);
}

.bb-cta-band__panel h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
  margin: 0;
}

/* Secondary managed pages ------------------------------------------------- */

.bb-content-page {
  padding: var(--bb-spacing-8) 0 var(--bb-spacing-10);
}

.bb-content-shell {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
}

.bb-content-hero {
  display: grid;
  gap: var(--bb-spacing-2);
  margin-bottom: var(--bb-spacing-5);
}

.bb-content-hero h1,
.bb-content-card h2,
.bb-auth-card h1,
.bb-auth-card h2,
.bb-auth-action__brand strong {
  margin: 0;
  font-family: var(--bb-font-family-display);
  font-weight: var(--bb-font-weight-bold);
  letter-spacing: -0.03em;
}

.bb-content-hero h1 {
  /* A constrained host supplies inline-size containment; otherwise cqw uses
     the viewport fallback. Keep the shared type scale in this recipe. */
  font-size: clamp(2rem, 4cqw, 3rem);
  line-height: 1;
}

.bb-content-hero__meta,
.bb-content-hero__lead,
.bb-content-card p,
.bb-content-card li,
.bb-managed-form__hint,
.bb-managed-status,
.bb-auth-card__head p,
.bb-auth-card__body > p,
.bb-auth-card__support,
.bb-auth-action__brand span {
  color: var(--bb-v2-color-content-secondary);
  line-height: 1.7;
}

.bb-content-hero__meta,
.bb-content-hero__lead {
  margin: 0;
}

.bb-content-grid {
  display: grid;
  gap: 14px;
}

.bb-content-card {
  padding: 22px;
  background: color-mix(in srgb, var(--bb-v2-color-surface-surface) 92%, var(--bb-marketing-highlight) 8%);
  border: 1px solid color-mix(in srgb, var(--bb-v2-color-border-subtle) 86%, transparent);
  border-radius: var(--bb-radius-2xl);
}

.bb-content-grid--prose {
  gap: var(--bb-spacing-8);
}

.bb-content-grid--prose .bb-content-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.bb-content-card h2 {
  margin-bottom: 10px;
  color: var(--bb-v2-identity-primary);
  font-size: 1.1rem;
}

.bb-content-card p {
  margin: 0;
}

.bb-content-card p + p {
  margin-top: 10px;
}

.bb-content-card ul {
  margin: 10px 0 0 18px;
  padding: 0;
}

.bb-content-card li + li {
  margin-top: 8px;
}

.bb-content-card a {
  color: var(--bb-v2-identity-primary);
}

.bb-managed-form {
  display: grid;
  gap: var(--bb-spacing-4);
  margin-top: var(--bb-spacing-4);
}

.bb-managed-form .bb-field {
  margin: 0;
}

.bb-managed-form textarea.bb-field__input {
  min-height: 116px;
  resize: vertical;
}

.bb-form-confirmation {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--bb-v2-color-content-primary);
  font-weight: var(--bb-font-weight-semibold);
  line-height: 1.5;
}

.bb-form-confirmation input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--bb-v2-identity-primary);
}

.bb-managed-form__hint,
.bb-managed-status {
  margin: 0;
  font-size: var(--bb-font-size-sm);
}

.bb-managed-form__submit {
  justify-self: start;
  min-width: 210px;
}

.bb-managed-status {
  margin-top: var(--bb-spacing-3);
  padding: 10px 12px;
  border-radius: var(--bb-radius-md);
  border: 1px solid var(--bb-v2-color-border-subtle);
  background: color-mix(in srgb, var(--bb-v2-color-surface-subtle) 80%, transparent);
}

.bb-managed-status--success {
  color: var(--bb-v2-color-status-success-content);
  border-color: var(--bb-v2-color-status-success-border);
  background: var(--bb-v2-color-status-success-surface);
}

.bb-managed-status--danger {
  color: var(--bb-v2-color-status-danger-content);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* Hosted auth action ------------------------------------------------------ */

.bb-marketing-page:has(.bb-auth-action) {
  background:
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--bb-v2-identity-secondary) 28%, transparent) 0%, transparent 52%),
    var(--bb-marketing-page-canvas);
}

.bb-auth-action {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--bb-spacing-6);
}

.bb-auth-action__shell {
  width: min(100%, 520px);
}

.bb-auth-action__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 auto var(--bb-spacing-5);
  color: var(--bb-v2-color-content-primary);
  text-align: center;
  text-decoration: none;
}

.bb-auth-action__brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px color-mix(in srgb, var(--bb-marketing-hero-icon-glow) 28%, transparent));
}

.bb-auth-action__brand-copy {
  display: grid;
  gap: 3px;
  line-height: 1.1;
}

.bb-auth-action__brand strong {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.bb-auth-action__brand span {
  font-size: 0.78rem;
}

.bb-auth-card {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--bb-v2-color-border-default) 55%, transparent);
  border-radius: var(--bb-radius-2xl);
  background: linear-gradient(180deg, color-mix(in srgb, var(--bb-v2-color-surface-subtle) 94%, var(--bb-marketing-highlight) 6%) 0%, var(--bb-v2-color-surface-surface) 100%);
  box-shadow: var(--bb-shadow-xl);
}

.bb-auth-card__head {
  padding: 28px 28px 18px;
  text-align: center;
  border-bottom: 1px solid color-mix(in srgb, var(--bb-v2-color-border-default) 30%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--bb-v2-color-surface-canvas) 20%, transparent) 0%, transparent 100%);
}

.bb-auth-card__eyebrow {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 6px 10px;
  color: var(--bb-v2-identity-primary);
  font-size: var(--bb-font-size-xs);
  font-weight: var(--bb-font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--bb-v2-identity-primary) 35%, transparent);
  border-radius: var(--bb-radius-full);
  background: color-mix(in srgb, var(--bb-v2-identity-primary) 8%, transparent);
}

.bb-auth-card__head h1 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 4vw, 2.35rem);
}

.bb-auth-card__head p,
.bb-auth-card__body > p,
.bb-auth-card__support {
  margin: 0;
}

.bb-auth-card__body {
  padding: 28px;
  text-align: center;
}

.bb-auth-card__icon {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto var(--bb-spacing-4);
  object-fit: contain;
  filter: drop-shadow(0 0 24px color-mix(in srgb, var(--bb-marketing-hero-icon-glow) 24%, transparent));
}

.bb-auth-card__status {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  border: 1px solid var(--bb-v2-color-border-default);
  border-radius: var(--bb-radius-full);
  color: var(--bb-v2-identity-primary);
  background: var(--bb-v2-identity-secondary);
}

.bb-auth-card__status::before {
  content: "…";
  font-weight: var(--bb-font-weight-bold);
}

.bb-auth-card--success .bb-auth-card__status {
  color: var(--bb-v2-color-status-success-content);
  border-color: var(--bb-v2-color-status-success-border);
  background: var(--bb-v2-color-status-success-surface);
}

.bb-auth-card--success .bb-auth-card__status::before {
  content: "✓";
}

.bb-auth-card--danger .bb-auth-card__status {
  color: var(--bb-v2-color-status-danger-content);
  border-color: var(--bb-v2-color-status-danger-border);
  background: var(--bb-v2-color-status-danger-surface);
}

.bb-auth-card--danger .bb-auth-card__status::before {
  content: "!";
}

.bb-auth-card__body h2 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.bb-auth-card__body .bb-managed-form {
  margin-top: var(--bb-spacing-5);
  text-align: left;
}

.bb-auth-card__body .bb-managed-form__submit {
  width: 100%;
}

.bb-auth-card__actions {
  display: grid;
  gap: var(--bb-spacing-3);
  margin-top: var(--bb-spacing-5);
}

.bb-auth-card__actions .bb-btn {
  width: 100%;
}

.bb-auth-card__support {
  margin-top: var(--bb-spacing-4);
  font-size: var(--bb-font-size-sm);
}

@media (max-width: 980px) {
  .bb-hero__grid,
  .bb-proof-card__foot,
  .bb-grid-3,
  .bb-grid-2,
  .bb-platform-grid,
  .bb-faq-grid,
  .bb-steps {
    grid-template-columns: 1fr;
  }

  .bb-download-actions {
    justify-items: center;
  }

  .bb-download-actions .bb-btn {
    width: min(100%, 280px);
  }

  .bb-hero--centered .bb-hero__copy {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .bb-workflow__lane {
    grid-template-columns: 1fr;
  }

  .bb-pricing-intro {
    font-size: var(--bb-font-size-sm);
  }

  .bb-download-actions .bb-btn {
    width: min(100%, 240px);
  }

  .bb-managed-form__submit {
    width: 100%;
  }

  .bb-auth-action {
    padding: 18px;
  }

  .bb-auth-action__brand img {
    width: 44px;
    height: 44px;
  }

  .bb-auth-card__head,
  .bb-auth-card__body {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
