/**
 * Libraire — global styles (Production v2)
 * Tailwind (CDN) handles utilities; this file adds:
 *   fonts · paper texture · focus rings · scrollbar · selection ·
 *   reduced-motion · input helpers · details accordion · print styles ·
 *   glassmorphism · 3D card utilities · scroll-reveal · premium animations
 */

/* ── Fonts ────────────────────────────────────────────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=Literata:ital,opsz,wght@0,7..72,400;0,7..72,600;0,7..72,700;1,7..72,400&family=Source+Sans+3:wght@400;500;600;700&display=swap");

/* ── Root ────────────────────────────────────────────────────────────── */
:root {
  font-family: "Source Sans 3", system-ui, sans-serif;
  color-scheme: light dark;
  --color-amber-800: #92400e;
  --color-amber-600: #d97706;
  --color-amber-400: #fbbf24;
  --color-stone-200: #e7e5e4;
  --color-stone-700: #44403c;
  --glass-blur: 18px;
  --glow-amber: rgba(217, 119, 6, 0.35);
  --glow-amber-strong: rgba(217, 119, 6, 0.55);
  --shadow-depth: 0 20px 60px -12px rgba(28,25,23,0.22), 0 8px 24px -8px rgba(28,25,23,0.12);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ── Typography ──────────────────────────────────────────────────────── */
.font-serif-display {
  font-family: Literata, Georgia, "Times New Roman", serif;
}

/* ── Paper texture ───────────────────────────────────────────────────── */
.bb-paper {
  background-color: rgb(250 250 249);
  background-image: radial-gradient(ellipse 120% 80% at 50% -20%, rgb(254 243 199 / 0.35), transparent);
}
/* ── Focus rings ─────────────────────────────────────────────────────── */
.bb-focus:focus { outline: none; }
.bb-focus:focus-visible { outline: 2px solid rgb(180 83 9); outline-offset: 2px; border-radius: 4px; }
*:focus-visible { outline: 2px solid rgb(180 83 9); outline-offset: 2px; }
/* ── Text selection ──────────────────────────────────────────────────── */
::selection { background-color: rgb(254 243 199); color: rgb(28 25 23); }
/* ── Placeholder ─────────────────────────────────────────────────────── */
::placeholder { color: rgb(168 162 158); opacity: 1; }
/* ── Scrollbar ───────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgb(214 211 208); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgb(168 162 158); background-clip: padding-box; }
/* ── Standard input ──────────────────────────────────────────────────── */
.bb-input {
  display: block; width: 100%;
  padding: 0.625rem 0.875rem; font-size: 0.875rem; line-height: 1.5;
  color: rgb(28 25 23); background-color: #fff;
  border: 1px solid rgb(214 211 208); border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none; appearance: none;
}
.bb-input:focus-visible { outline: none; border-color: rgb(180 83 9); box-shadow: 0 0 0 3px rgb(180 83 9 / 0.12); }
/* ── Standard card ───────────────────────────────────────────────────── */
.bb-card {
  background-color: #fff; border: 1px solid rgb(231 229 228); border-radius: 1rem;
  box-shadow: 0 2px 8px -2px rgb(28 25 23 / 0.06), 0 1px 3px -1px rgb(28 25 23 / 0.04);
}
/* ── Details accordion ───────────────────────────────────────────────── */
details summary { cursor: pointer; -webkit-user-select: none; user-select: none; }
details summary::-webkit-details-marker { display: none; }
details[open] > summary > span:last-child { transform: rotate(45deg); }

/* ── Tap targets ─────────────────────────────────────────────────────── */
@media (pointer: coarse) {
  button,[role="button"],a,label,input[type="checkbox"],input[type="radio"] { min-height: 44px; min-width: 44px; }
  button.bb-compact,a.bb-compact { min-height: unset; min-width: unset; }
}

/* ── Reduced motion ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration:0.01ms!important; animation-iteration-count:1!important; transition-duration:0.01ms!important; scroll-behavior:auto!important; }
}

/* ── Theme transition ────────────────────────────────────────────────── */
body { transition: background-color 0.2s ease, color 0.2s ease; }

/* ── Print styles ────────────────────────────────────────────────────── */
@media print {
  header,footer,nav,[data-no-print],#sum-actions,#sum-warn,#sum-poll-panel,.bb-no-print { display: none !important; }
  body { background: #fff !important; color: #1c1917 !important; font-size: 11pt; line-height: 1.65; }
  html#md-wrap { border: none !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; margin: 0 !important; border-radius: 0 !important; }
  #md-content { font-size: 11pt !important; line-height: 1.7 !important; color: #1c1917 !important; max-width: 100% !important; }
  #md-content h1,#md-content h2,#md-content h3 { break-after: avoid; color: #1c1917 !important; }
  #md-content p,#md-content li { orphans: 3; widows: 3; }
  #sum-title { font-size: 18pt !important; margin-bottom: 4pt !important; color: #1c1917 !important; }
  #sum-meta { font-size: 9pt !important; color: #78716c !important; margin-bottom: 20pt !important; }
  #sum-status,#processing-panel { display: none !important; }
  p,li,blockquote { break-inside: avoid; }
  a[href]::after { content: none; }
}

/* ── Utility: visually hidden ────────────────────────────────────────── */
.bb-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Skip-to-content ─────────────────────────────────────────────────── */
.bb-skip-link { position: absolute; left: 1rem; top: -10rem; z-index: 9999; padding: 0.5rem 1rem; background: rgb(180 83 9); color: #fff; border-radius: 0.5rem; font-weight: 600; transition: top 0.1s; }
.bb-skip-link:focus { top: 1rem; }


/* ══════════════════════════════════════════════════════════════════════ */
/*  PRODUCTION v2 — Premium Additions                                    */
/* ══════════════════════════════════════════════════════════════════════ */

/* ── Animation Keyframes ─────────────────────────────────────────────── */
@keyframes float-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float-gentle {
  0%,100% { transform: translateY(0px); }
  50%     { transform: translateY(-8px); }
}
@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(8px,-12px) scale(1.04); }
}
@keyframes drift2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-6px,10px) scale(0.97); }
}
@keyframes bb-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes bb-pulse {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.4; }
}
@keyframes glow-pulse {
  0%,100% { box-shadow: 0 0 20px var(--glow-amber), 0 0 40px transparent; }
  50%     { box-shadow: 0 0 35px var(--glow-amber-strong), 0 0 70px rgba(217,119,6,0.12); }
}
@keyframes gradient-shift {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes border-glow {
  0%,100% { border-color: rgba(217,119,6,0.4); }
  50%     { border-color: rgba(217,119,6,0.9); }
}
@keyframes shimmer-sweep {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ── Animate-in ──────────────────────────────────────────────────────── */
.animate-in  { animation: float-up 0.55s ease both; }
.delay-1     { animation-delay: 0.10s; }
.delay-2     { animation-delay: 0.22s; }
.delay-3     { animation-delay: 0.34s; }
.delay-4     { animation-delay: 0.46s; }
.delay-5     { animation-delay: 0.58s; }

/* ── Scroll reveal ───────────────────────────────────────────────────── */
.bb-reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.bb-reveal.bb-visible { opacity: 1; transform: translateY(0); }
.bb-reveal-left {
  opacity: 0; transform: translateX(-24px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.bb-reveal-left.bb-visible { opacity: 1; transform: translateX(0); }
.bb-reveal-scale {
  opacity: 0; transform: scale(0.94);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.bb-reveal-scale.bb-visible { opacity: 1; transform: scale(1); }

/* ── Glassmorphism ───────────────────────────────────────────────────── */
.bb-glass {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255,255,255,0.14);
}
.bb-glass-dark {
  background: rgba(12,10,9,0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.07);
}
/* ── Glow ────────────────────────────────────────────────────────────── */
.bb-glow-amber {
  box-shadow: 0 0 0 1px rgba(217,119,6,0.2), 0 4px 20px rgba(217,119,6,0.18);
  transition: box-shadow 0.3s ease;
}
.bb-glow-amber:hover {
  box-shadow: 0 0 0 1px rgba(217,119,6,0.4), 0 8px 32px rgba(217,119,6,0.35), 0 0 0 4px rgba(217,119,6,0.08);
}
.bb-glow-ring { animation: glow-pulse 3s ease-in-out infinite; }

/* ── Gradient text ───────────────────────────────────────────────────── */
.bb-gradient-text {
  background: linear-gradient(135deg, #d97706 0%, #92400e 50%, #d97706 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 4s ease infinite;
}
/* ── Premium button ──────────────────────────────────────────────────── */
.bb-btn-primary {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #92400e, #b45309);
  color: white; font-weight: 600; border-radius: 0.75rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(146,64,14,0.35), 0 1px 3px rgba(0,0,0,0.1);
}
.bb-btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
  opacity: 0; transition: opacity 0.25s ease;
}
.bb-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(146,64,14,0.45), 0 2px 6px rgba(0,0,0,0.12); }
.bb-btn-primary:hover::before { opacity: 1; }
.bb-btn-primary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(146,64,14,0.3); }

/* ── Shimmer skeleton ────────────────────────────────────────────────── */
.bb-skeleton {
  border-radius: 0.5rem;
  background: linear-gradient(90deg, #e7e5e4 25%, #d6d3d1 50%, #e7e5e4 75%);
  background-size: 400% 100%;
  animation: bb-shimmer 1.4s ease-in-out infinite;
}
/* ── Feature card ────────────────────────────────────────────────────── */
.bb-feature-card {
  position: relative; overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.bb-feature-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(217,119,6,0.05), transparent 60%);
  opacity: 0; transition: opacity 0.35s ease; pointer-events: none;
}
.bb-feature-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px -8px rgba(28,25,23,0.12), 0 6px 16px -4px rgba(28,25,23,0.08); border-color: rgba(217,119,6,0.25); }
.bb-feature-card:hover::after { opacity: 1; }
/* ── Summary card ────────────────────────────────────────────────────── */
.bb-summary-card {
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}
.bb-summary-card:hover { transform: translateY(-3px) scale(1.004); box-shadow: 0 12px 32px -8px rgba(28,25,23,0.14), 0 4px 12px -4px rgba(28,25,23,0.08); border-color: rgba(217,119,6,0.3); }
/* ── Pricing card ────────────────────────────────────────────────────── */
.bb-price-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.bb-price-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px -12px rgba(28,25,23,0.15); }
/* ── Testimonial card ────────────────────────────────────────────────── */
.bb-testimonial { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.bb-testimonial:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -6px rgba(28,25,23,0.1); }
/* ── Book spine accent ───────────────────────────────────────────────── */
.bb-book-accent { position: relative; }
.bb-book-accent::before {
  content: ''; position: absolute; left: 0; top: 12%; bottom: 12%;
  width: 3px; background: linear-gradient(to bottom, #d97706, #92400e);
  border-radius: 0 2px 2px 0;
}

/* ── Input glow ──────────────────────────────────────────────────────── */
.bb-input-glow { transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; }
.bb-input-glow:focus { border-color: #b45309; box-shadow: 0 0 0 3px rgba(180,83,9,0.12), 0 1px 3px rgba(0,0,0,0.08); outline: none; }
/* ── Tab button ──────────────────────────────────────────────────────── */
.bb-tab {
  padding: 0.4rem 0.875rem; border-radius: 0.5rem;
  font-size: 0.8125rem; font-weight: 500;
  border: 1px solid transparent; color: rgb(87 83 78);
  background: transparent; transition: all 0.2s ease; cursor: pointer;
}
.bb-tab:hover { color: rgb(28 25 23); background: rgb(231 229 228); }
.bb-tab[aria-selected="true"],.bb-tab.active { background: #fff; color: rgb(28 25 23); font-weight: 600; box-shadow: 0 1px 4px rgba(28,25,23,0.12); border-color: rgb(231 229 228); }
/* ── Blob animations ─────────────────────────────────────────────────── */
.blob   { animation: drift  8s ease-in-out infinite; }
.blob-2 { animation: drift2 11s ease-in-out infinite; }
.blob-3 { animation: drift  14s ease-in-out infinite reverse; }

/* ── Step connector ──────────────────────────────────────────────────── */
.step-connector::before {
  content: ''; position: absolute; left: 1.5rem; top: 3rem; bottom: -1.5rem;
  width: 2px; background: linear-gradient(to bottom, #d97706, transparent);
}

/* ── Pulse ───────────────────────────────────────────────────────────── */
.bb-pulse { animation: bb-pulse 1.5s ease-in-out infinite; }

/* ── Hero canvas ─────────────────────────────────────────────────────── */
.bb-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ── Markdown content ────────────────────────────────────────────────── */
.bb-md h1 { font-size:1.75rem; font-weight:700; margin:1.25rem 0 .75rem; font-family:Literata,Georgia,serif; }
.bb-md h2 { font-size:1.35rem; font-weight:600; margin:1.5rem 0 .5rem;  font-family:Literata,Georgia,serif; }
.bb-md h3 { font-size:1.1rem;  font-weight:600; margin:1rem 0 .35rem; }
.bb-md p  { margin:.65rem 0; line-height:1.7; }
.bb-md ul,.bb-md ol { margin:.5rem 0 .5rem 1.25rem; padding-left:.25rem; }
.bb-md li { margin:.3rem 0; line-height:1.6; }
.bb-md pre,.bb-md code { font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; font-size:.9em; }
.bb-md pre { overflow-x:auto; padding:.75rem 1rem; border-radius:.5rem; background:#f5f5f4; margin:.75rem 0; }
.bb-md code:not(pre code) { background:#f5f5f4; border-radius:.25rem; padding:.1em .35em; }
.bb-md blockquote { border-left:3px solid #b45309; margin:.75rem 0; padding-left:1rem; color:#57534e; }
.bb-md hr { border:none; border-top:1px solid #e7e5e4; margin:1.5rem 0; }
@keyframes bb-pulse-anim { 0%,100%{opacity:1} 50%{opacity:.4} }
.bb-pulse-anim { animation: bb-pulse-anim 1.5s ease-in-out infinite; }

/* ── Landing hero: 3D floating book covers + graffiti backdrop ─────── */
.bb-hero-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  perspective: 1600px;
  perspective-origin: 50% 40%;
}
/* Full-bleed dark hero (login left-pane palette): keep covers from clipping */
.bb-landing-hero .bb-hero-scene {
  overflow: visible;
  z-index: 2;
}
.bb-landing-hero .bb-hero-books {
  z-index: 2;
}
.bb-landing-hero .bb-float-book {
  opacity: 1;
  z-index: 2;
  box-shadow:
    -8px 16px 32px rgba(0, 0, 0, 0.45),
    0 0 0 2px rgba(255, 255, 255, 0.18) inset,
    0 0 24px rgba(251, 191, 36, 0.15);
}
.bb-landing-hero .bb-float-book img {
  opacity: 1;
}
/* Soft floating “dots” on dark hero */
.bb-landing-hero .bb-hero-orbs {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.bb-landing-hero .bb-hero-orb {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  animation: bb-hero-orb-drift 9s ease-in-out infinite;
}
.bb-landing-hero .bb-hero-orb:nth-child(odd) {
  animation-duration: 12s;
}
.bb-landing-hero .bb-hero-orb:nth-child(3n) {
  animation-duration: 7s;
}
@keyframes bb-hero-orb-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.55;
  }
  50% {
    transform: translate3d(0, -12px, 0) scale(1.08);
    opacity: 0.95;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bb-landing-hero .bb-hero-orb {
    animation: none !important;
  }
}
.bb-hero-graffiti {
  position: absolute;
  opacity: 0.11;
  mix-blend-mode: multiply;
}
/* Dark full-width hero: multiply makes strokes disappear — use normal blend */
.bb-landing-hero .bb-hero-graffiti {
  mix-blend-mode: normal;
  opacity: 0.35;
  z-index: 1;
}
.dark .bb-hero-graffiti {
  opacity: 0.16;
  mix-blend-mode: soft-light;
}
.dark .bb-landing-hero .bb-hero-graffiti {
  opacity: 0.32;
  mix-blend-mode: normal;
}
.bb-hero-graffiti--1 {
  left: -4%;
  top: 8%;
  width: min(420px, 55vw);
  height: auto;
  transform: rotate(-8deg);
  animation: bb-graffiti-drift 22s ease-in-out infinite;
}
.bb-hero-graffiti--2 {
  right: -6%;
  bottom: 18%;
  width: min(380px, 50vw);
  height: auto;
  transform: rotate(11deg);
  animation: bb-graffiti-drift-2 18s ease-in-out infinite;
}
.bb-hero-graffiti--3 {
  left: 28%;
  top: 52%;
  width: min(280px, 38vw);
  opacity: 0.08;
  transform: rotate(-4deg);
  animation: bb-graffiti-drift-3 26s ease-in-out infinite;
}
@keyframes bb-graffiti-drift-3 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-4deg);
  }
  50% {
    transform: translate3d(8px, -6px, 0) rotate(-2deg);
  }
}
@keyframes bb-graffiti-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-8deg);
  }
  50% {
    transform: translate3d(12px, -10px, 0) rotate(-5deg);
  }
}
@keyframes bb-graffiti-drift-2 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(11deg);
  }
  50% {
    transform: translate3d(-14px, 8px, 0) rotate(8deg);
  }
}
.bb-hero-books {
  position: absolute;
  inset: 0;
}
.bb-float-book {
  position: absolute;
  left: var(--bx, 10%);
  top: var(--by, 20%);
  width: clamp(90px, 13vw, 140px);
  aspect-ratio: 2 / 3;
  transform-style: preserve-3d;
  transform: rotateY(-26deg) rotateX(8deg) translateZ(0);
  border-radius: 3px 5px 5px 3px;
  box-shadow:
    -14px 22px 44px rgba(15, 12, 10, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  animation: bb-float-book 6.5s ease-in-out infinite;
  animation-delay: var(--bd, 0s);
  overflow: hidden;
}

/* ── Book size scale tokens ──────────────────────────────────────────────── */
.bb-float-book--sm { width: clamp(72px, 8vw, 100px); }
.bb-float-book--md { width: clamp(104px, 13vw, 148px); }
.bb-float-book--lg { width: clamp(136px, 16vw, 186px); }

/* ── Rotation animation variants ─────────────────────────────────────────── */
@keyframes bb-float-book-a {
  0%,100% { transform: rotateY(-28deg) rotateX(10deg) translateY(0)     rotateZ(-3deg) translateZ(0); }
  50%     { transform: rotateY(-18deg) rotateX(4deg)  translateY(-22px)  rotateZ(-1deg) translateZ(14px); }
}
@keyframes bb-float-book-b {
  0%,100% { transform: rotateY(26deg)  rotateX(-7deg)  translateY(0)    rotateZ(4deg)  translateZ(0); }
  50%     { transform: rotateY(18deg)  rotateX(-2deg)  translateY(-18px) rotateZ(2deg)  translateZ(12px); }
}
@keyframes bb-float-book-c {
  0%,100% { transform: rotateY(-12deg) rotateX(14deg) translateY(0)     rotateZ(1deg)  translateZ(0); }
  50%     { transform: rotateY(-6deg)  rotateX(6deg)  translateY(-26px)  rotateZ(-1deg) translateZ(16px); }
}
.bb-float-book--a { animation-name: bb-float-book-a; animation-duration: 7.2s; }
.bb-float-book--b { animation-name: bb-float-book-b; animation-duration: 8.0s; }
.bb-float-book--c { animation-name: bb-float-book-c; animation-duration: 6.8s; }
.dark .bb-float-book {
  box-shadow:
    -14px 26px 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.bb-float-book img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0.5px);
}
@keyframes bb-float-book {
  0%,
  100% {
    transform: rotateY(-26deg) rotateX(8deg) translateY(0) translateZ(0);
  }
  50% {
    transform: rotateY(-18deg) rotateX(4deg) translateY(-20px) translateZ(12px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .bb-float-book,
  .bb-hero-graffiti {
    animation: none !important;
  }
}
@media (max-width: 640px) {
  .bb-hero-books .bb-float-book:nth-child(n + 5) {
    display: none;
  }
  .bb-hero-graffiti--3 {
    display: none;
  }
}

/* Full-page floating covers (landing) — smaller, behind section content */
#bb-landing-book-scatter .bb-float-book--scatter {
  width: clamp(56px, 8vw, 96px);
  opacity: 0.88;
  animation-duration: 8.5s;
  filter: saturate(0.95);
}
.dark #bb-landing-book-scatter .bb-float-book--scatter {
  opacity: 0.72;
}
@media (max-width: 640px) {
  #bb-landing-book-scatter .bb-float-book--scatter:nth-child(n + 7) {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BOOK COVER GRADIENT FALLBACKS
   When OpenLibrary images are loading or unavailable, each book shows a
   unique vibrant gradient so the scene never looks broken.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Base: show the gradient behind every float-book by default */
.bb-float-book {
  background-image: linear-gradient(160deg, #e63946 0%, #9d0208 100%);
}

/* Each nth-child gets its own bright gradient */
.bb-float-book:nth-child(1)  { background-image: linear-gradient(160deg, #e63946 0%, #9d0208 100%); }
.bb-float-book:nth-child(2)  { background-image: linear-gradient(160deg, #4361ee 0%, #3a0ca3 100%); }
.bb-float-book:nth-child(3)  { background-image: linear-gradient(160deg, #06d6a0 0%, #007f5f 100%); }
.bb-float-book:nth-child(4)  { background-image: linear-gradient(160deg, #7209b7 0%, #560bad 100%); }
.bb-float-book:nth-child(5)  { background-image: linear-gradient(160deg, #ff6d00 0%, #d62828 100%); }
.bb-float-book:nth-child(6)  { background-image: linear-gradient(160deg, #f72585 0%, #b5179e 100%); }
.bb-float-book:nth-child(7)  { background-image: linear-gradient(160deg, #ffd166 0%, #e07c00 100%); }
.bb-float-book:nth-child(8)  { background-image: linear-gradient(160deg, #00b4d8 0%, #0077b6 100%); }
.bb-float-book:nth-child(9)  { background-image: linear-gradient(160deg, #55a630 0%, #1b4332 100%); }
.bb-float-book:nth-child(10) { background-image: linear-gradient(160deg, #8338ec 0%, #3a86ff 100%); }
.bb-float-book:nth-child(11) { background-image: linear-gradient(160deg, #fb5607 0%, #ffbe0b 100%); }
.bb-float-book:nth-child(12) { background-image: linear-gradient(160deg, #0f3460 0%, #533483 100%); }
.bb-float-book:nth-child(13) { background-image: linear-gradient(160deg, #e63946 0%, #4361ee 100%); }
.bb-float-book:nth-child(14) { background-image: linear-gradient(160deg, #06d6a0 0%, #0f3460 100%); }
.bb-float-book:nth-child(n+15) { background-image: linear-gradient(160deg, #6930c3 0%, #56cfe1 100%); }

/* Override: no gradient fallback — figure is hidden on load failure instead */
.bb-float-book { background-image: none !important; background-color: transparent !important; }

/* Once the image loads, it covers the gradient naturally */
.bb-float-book img {
  /* img already has object-fit: cover — no extra change needed */
}

/* If image fails (onerror hides it), the gradient shows through */
.bb-float-book img.bb-cover-error {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ADDITIONAL ANIMATIONS & EFFECTS  (v3 enhancement pass)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 3D card tilt (JS sets --rx / --ry on mousemove) ──────────────────── */
.bb-tilt {
  transition: transform 0.12s ease, box-shadow 0.2s ease;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  will-change: transform;
}
.bb-tilt:hover {
  box-shadow: 0 18px 48px -8px rgba(28,25,23,0.16), 0 6px 16px -4px rgba(28,25,23,0.09);
}

/* ── Shimmer-border highlight (animating conic-gradient border) ────────── */
@keyframes shimmer-border {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.bb-shimmer-border {
  position: relative;
}
.bb-shimmer-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(217,119,6,0.0) 0%, rgba(217,119,6,0.7) 40%, rgba(251,191,36,0.8) 50%, rgba(217,119,6,0.7) 60%, rgba(217,119,6,0.0) 100%);
  background-size: 200% 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: -1;
  animation: shimmer-border 2s linear infinite paused;
}
.bb-shimmer-border:hover::before {
  opacity: 1;
  animation-play-state: running;
}

/* ── Floating particle field (full-page ambient canvas) ───────────────── */
.bb-ambient-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  opacity: 0.4;
}
@media (max-width: 480px) { .bb-ambient-canvas { display: none; } }

/* ── Enhanced reveal — right slide variant ────────────────────────────── */
.bb-reveal-right {
  opacity: 0; transform: translateX(24px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.bb-reveal-right.bb-visible { opacity: 1; transform: translateX(0); }

/* ── Animated gradient headline ──────────────────────────────────────── */
.bb-headline-gradient {
  background: linear-gradient(135deg, #d97706 0%, #b45309 30%, #d97706 60%, #f59e0b 80%, #d97706 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 5s ease infinite;
}

/* ── Page-header fade-in for 3D canvas container ──────────────────────── */
.page-header-canvas {
  animation: bb-header-canvas-in 1.2s ease both;
}
@keyframes bb-header-canvas-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Book card 3D hover (covers on landing + how-it-works) ───────────── */
.bb-book-card {
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease;
}
.bb-book-card:hover {
  transform: translateY(-8px) rotateY(-4deg) rotateX(2deg) scale(1.02);
  box-shadow: -12px 24px 52px -8px rgba(28,25,23,0.22), 0 6px 20px -4px rgba(28,25,23,0.12);
}

/* ── Glow-button pulse on hero CTA ───────────────────────────────────── */
@keyframes cta-glow {
  0%,100% { box-shadow: 0 6px 24px rgba(255,255,255,0.18), 0 0 0 0 rgba(255,255,255,0); }
  50%     { box-shadow: 0 8px 32px rgba(255,255,255,0.28), 0 0 0 6px rgba(255,255,255,0.04); }
}
.bb-hero-cta-primary {
  animation: cta-glow 3.5s ease-in-out infinite;
}

/* ── Staggered grid fade-in ──────────────────────────────────────────── */
.bb-grid-reveal > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.bb-grid-reveal.bb-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.bb-grid-reveal.bb-visible > *:nth-child(1) { transition-delay: 0.05s; }
.bb-grid-reveal.bb-visible > *:nth-child(2) { transition-delay: 0.12s; }
.bb-grid-reveal.bb-visible > *:nth-child(3) { transition-delay: 0.19s; }
.bb-grid-reveal.bb-visible > *:nth-child(4) { transition-delay: 0.26s; }
.bb-grid-reveal.bb-visible > *:nth-child(5) { transition-delay: 0.33s; }
.bb-grid-reveal.bb-visible > *:nth-child(6) { transition-delay: 0.40s; }
.bb-grid-reveal.bb-visible > *:nth-child(n+7) { transition-delay: 0.47s; }

/* ── Stats counter shimmer ───────────────────────────────────────────── */
@keyframes stat-pop {
  0%   { transform: scale(0.85); opacity: 0; }
  70%  { transform: scale(1.06); }
  100% { transform: scale(1);    opacity: 1; }
}
.bb-stat-pop { animation: stat-pop 0.6s cubic-bezier(0.22,1,0.36,1) both; }

/* ── Floating sparkle keyframes (decorative dots) ────────────────────── */
@keyframes bb-sparkle {
  0%,100% { transform: translateY(0) scale(1);   opacity: 0.6; }
  50%     { transform: translateY(-10px) scale(1.3); opacity: 1; }
}
.bb-sparkle { animation: bb-sparkle 3.5s ease-in-out infinite; }
.bb-sparkle:nth-child(2) { animation-delay: 0.8s; animation-duration: 4.2s; }
.bb-sparkle:nth-child(3) { animation-delay: 1.6s; animation-duration: 3.0s; }

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION BACKGROUND ALTERNATION
   Subtle warm / cool tints that break up all-white sections while remaining
   clean and readable against both light and dark text.
   ═══════════════════════════════════════════════════════════════════════════ */
.bb-section-alt {
  background: linear-gradient(180deg, rgba(255,251,235,0.40) 0%, rgba(255,255,255,0.70) 100%);
  border-top: 1px solid rgba(217,119,6,0.07);
  border-bottom: 1px solid rgba(217,119,6,0.07);
}
.bb-section-warm {
  background: rgba(255,248,228,0.50);
  border-top: 1px solid rgba(217,119,6,0.09);
  border-bottom: 1px solid rgba(217,119,6,0.09);
}
.bb-section-cool {
  background: linear-gradient(180deg, rgba(238,242,255,0.35) 0%, rgba(255,255,255,0.65) 100%);
  border-top: 1px solid rgba(99,102,241,0.07);
  border-bottom: 1px solid rgba(99,102,241,0.07);
}
.dark .bb-section-alt  { background: rgba(41,37,36,0.55);  border-color: rgba(217,119,6,0.10); }
.dark .bb-section-warm { background: rgba(44,38,28,0.60);  border-color: rgba(217,119,6,0.12); }
.dark .bb-section-cool { background: rgba(30,35,55,0.50);  border-color: rgba(99,102,241,0.10); }

/* ═══════════════════════════════════════════════════════════════════════════
   INNER PAGE HEADER FLOATING BOOKS
   Position helpers for the 6–8 bb-float-book elements that appear in the
   page-header of inner pages (features, how-it-works, pricing, faq).
   Uses the same bb-float-book system — just pinned via CSS vars / classes.
   ═══════════════════════════════════════════════════════════════════════════ */
.page-header { position: relative; overflow: hidden; }

/* Inner page books sit behind the content */
.page-header .bb-hero-books { z-index: 0; }
.page-header .bb-hero-books .bb-float-book { opacity: 0.82; }
.dark .page-header .bb-hero-books .bb-float-book { opacity: 0.68; }

/* Ensure all direct text/badge children of the page-header stay above the books */
.page-header > span,
.page-header > h1,
.page-header > h2,
.page-header > p,
.page-header > .section-line,
.page-header > a,
.page-header > button {
  position: relative;
  z-index: 2;
}

/* Mobile: keep max 4 inner-page header books */
@media (max-width: 640px) {
  .page-header .bb-hero-books .bb-float-book:nth-child(n + 5) { display: none; }
}
/* Very small screens: max 3 */
@media (max-width: 420px) {
  .page-header .bb-hero-books .bb-float-book:nth-child(n + 4) { display: none; }
}

/* Reduce motion — kill all variant keyframes too */
@media (prefers-reduced-motion: reduce) {
  .bb-float-book--a,
  .bb-float-book--b,
  .bb-float-book--c { animation: none !important; }
}
.bb-sparkle:nth-child(4) { animation-delay: 0.4s; animation-duration: 5.0s; }

/* ── Hero 3D canvas fade-in ──────────────────────────────────────────── */
#hero-canvas-3d {
  animation: bb-header-canvas-in 1.5s ease both;
}

/* ── Reduce motion: stop all new animations ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .bb-tilt,
  .bb-shimmer-border::before,
  .bb-book-card,
  .bb-hero-cta-primary,
  .bb-sparkle,
  .page-header-canvas,
  #hero-canvas-3d { animation: none !important; transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BROKERBOOST-INSPIRED DESIGN SYSTEM  (v4 — full UI/UX upgrade)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Section label chips ─────────────────────────────────────────────── */
.bb-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(217,119,6,0.28);
  background: rgba(254,243,199,0.65);
  color: #92400e;
  margin-bottom: 0.75rem;
}
.bb-label--dot::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #d97706;
  animation: bb-dot-pulse 2.4s ease-in-out infinite;
}
@keyframes bb-dot-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.7); }
}
.dark .bb-label {
  border-color: rgba(217,119,6,0.22);
  background: rgba(120,53,15,0.28);
  color: #fbbf24;
}
.dark .bb-label--dot::before { background: #f59e0b; }

/* ── Headline em-italic emphasis (Literata italic) ───────────────────── */
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: inherit;
}

/* ── Section heading block ───────────────────────────────────────────── */
.bb-section-head { margin-bottom: 3rem; }
.bb-section-head--center { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; margin-bottom: 3rem; }

/* ── Bento feature cards (numbered) ─────────────────────────────────── */
.bb-bento {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
@media (min-width: 768px) { .bb-bento { grid-template-columns: repeat(3, 1fr); } }

.bb-bento-card {
  position: relative;
  border-radius: 1.25rem;
  border: 1px solid rgba(231,229,228,0.9);
  background: #fafaf9;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.bb-bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,251,235,0.6) 0%, transparent 60%);
  pointer-events: none;
}
.bb-bento-card:hover {
  box-shadow: 0 10px 40px -8px rgba(28,25,23,0.13), 0 3px 12px -3px rgba(28,25,23,0.07);
  transform: translateY(-3px);
  border-color: rgba(217,119,6,0.22);
}
.dark .bb-bento-card {
  border-color: rgba(68,64,60,0.8);
  background: rgba(41,37,36,0.7);
}
.dark .bb-bento-card::before { background: linear-gradient(135deg, rgba(120,53,15,0.12) 0%, transparent 60%); }
.dark .bb-bento-card:hover { border-color: rgba(217,119,6,0.30); box-shadow: 0 10px 40px -8px rgba(0,0,0,0.35); }

.bb-bento-num {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(217,119,6,0.12);
  line-height: 1;
  font-family: 'Source Sans 3', sans-serif;
  pointer-events: none;
  user-select: none;
}
.dark .bb-bento-num { color: rgba(217,119,6,0.10); }

.bb-bento-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(254,243,199,0.8);
  border: 1px solid rgba(217,119,6,0.14);
  font-size: 1.25rem;
  flex-shrink: 0;
  position: relative;
}
.dark .bb-bento-icon {
  background: rgba(120,53,15,0.25);
  border-color: rgba(217,119,6,0.2);
}

.bb-bento-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1c1917;
  line-height: 1.3;
  margin: 0;
}
.dark .bb-bento-card h3 { color: #f5f5f4; }

.bb-bento-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #78716c;
  margin: 0;
}
.dark .bb-bento-card p { color: #a8a29e; }

/* ── Process steps (numbered, with connector) ────────────────────────── */
.bb-process-grid {
  display: grid;
  gap: 2rem;
  overflow: visible;
}
@media (min-width: 768px) { .bb-process-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

.bb-process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: visible;
}
/* horizontal connector between steps (desktop) */
.bb-process-connector {
  display: none;
}
@media (min-width: 768px) {
  .bb-process-step:not(:last-child) .bb-process-connector {
    display: block;
    position: absolute;
    top: 22px;
    left: calc(100% + 1.25rem);
    width: calc(100% - 2.5rem);
    height: 1px;
    background: linear-gradient(90deg, rgba(217,119,6,0.4), rgba(217,119,6,0.08));
    pointer-events: none;
    z-index: 2;
  }
  .bb-process-step:nth-child(1) .bb-process-connector {
    z-index: 4;
  }
}

.bb-process-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(217,119,6,0.1);
  border: 1.5px solid rgba(217,119,6,0.25);
  font-size: 0.85rem;
  font-weight: 800;
  color: #b45309;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  font-family: 'Source Sans 3', sans-serif;
}
.dark .bb-process-num {
  background: rgba(120,53,15,0.25);
  border-color: rgba(217,119,6,0.25);
  color: #fbbf24;
}

/* ── Testimonial cards (upgraded) ────────────────────────────────────── */
.bb-testimonial-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(231,229,228,0.9);
  background: #fff;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
  overflow: hidden;
}
.bb-testimonial-card::before {
  content: '"';
  position: absolute;
  top: -0.25rem; left: 1.25rem;
  font-size: 5rem;
  font-family: Georgia, serif;
  color: rgba(217,119,6,0.1);
  line-height: 1;
  pointer-events: none;
}
.bb-testimonial-card:hover {
  box-shadow: 0 8px 32px -6px rgba(28,25,23,0.12);
  transform: translateY(-2px);
}
.dark .bb-testimonial-card {
  border-color: rgba(68,64,60,0.8);
  background: rgba(28,25,23,0.8);
}

/* ── FAQ 2-column layout ─────────────────────────────────────────────── */
.bb-faq-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 1024px) { .bb-faq-grid { grid-template-columns: 1fr 1.6fr; } }

.bb-faq-sidebar { position: sticky; top: 100px; }

/* ── FAQ accordion item ──────────────────────────────────────────────── */
.bb-faq-item {
  border-radius: 0.875rem;
  border: 1px solid rgba(231,229,228,0.9);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.bb-faq-item:hover { border-color: rgba(217,119,6,0.25); }
.dark .bb-faq-item { border-color: rgba(68,64,60,0.8); background: rgba(28,25,23,0.7); }
.dark .bb-faq-item:hover { border-color: rgba(217,119,6,0.25); }

.bb-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1c1917;
  list-none;
  user-select: none;
}
.dark .bb-faq-q { color: #f5f5f4; }
.bb-faq-q::-webkit-details-marker { display: none; }

.bb-faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(217,119,6,0.3);
  background: rgba(254,243,199,0.5);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: #b45309;
  transition: transform 0.25s ease, background 0.25s ease;
  line-height: 1;
}
details[open] .bb-faq-icon {
  transform: rotate(45deg);
  background: rgba(254,243,199,0.85);
}
.dark .bb-faq-icon {
  border-color: rgba(217,119,6,0.25);
  background: rgba(120,53,15,0.2);
  color: #fbbf24;
}

.bb-faq-body {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #78716c;
}
.dark .bb-faq-body { color: #a8a29e; }

/* ── CTA split layout ────────────────────────────────────────────────── */
.bb-cta-split {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .bb-cta-split { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.bb-cta-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
}
.bb-cta-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.bb-cta-check svg {
  width: 11px; height: 11px;
  stroke: #fff;
  stroke-width: 2;
  fill: none;
}

/* ── Pricing billing toggle ──────────────────────────────────────────── */
.bb-billing-tabs {
  display: inline-flex;
  gap: 2px;
  border-radius: 9999px;
  background: rgba(231,229,228,0.7);
  padding: 3px;
  border: 1px solid rgba(231,229,228,0.9);
}
.dark .bb-billing-tabs {
  background: rgba(41,37,36,0.8);
  border-color: rgba(68,64,60,0.8);
}
.bb-billing-tab {
  border: none;
  background: transparent;
  border-radius: 9999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #78716c;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  display: flex; align-items: center; gap: 0.4rem;
}
.bb-billing-tab.active {
  background: #fff;
  color: #1c1917;
  box-shadow: 0 1px 4px rgba(28,25,23,0.10);
}
.dark .bb-billing-tab { color: #a8a29e; }
.dark .bb-billing-tab.active {
  background: rgba(68,64,60,0.9);
  color: #f5f5f4;
}
.bb-billing-pill {
  font-size: 0.65rem;
  background: rgba(217,119,6,0.15);
  color: #b45309;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  font-weight: 700;
}
.dark .bb-billing-pill { background: rgba(120,53,15,0.3); color: #fbbf24; }

/* ── Hero floating metric cards ──────────────────────────────────────── */
.bb-metric-card {
  position: absolute;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 1rem;
  padding: 0.85rem 1.1rem;
  color: #fff;
  pointer-events: none;
  z-index: 3;
  animation: bb-metric-float 5s ease-in-out infinite;
  animation-delay: var(--mc-delay, 0s);
}
@keyframes bb-metric-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.bb-metric-card .mc-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.2rem;
}
.bb-metric-card .mc-value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  font-family: 'Source Sans 3', sans-serif;
}
.bb-metric-card .mc-sub {
  font-size: 0.7rem;
  opacity: 0.65;
  margin-top: 0.15rem;
}
.bb-metric-card .mc-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6ee7b7;
}
@media (max-width: 767px) { .bb-metric-card { display: none; } }

/* ── Section divider with label ──────────────────────────────────────── */
.bb-section-divider {
  width: 48px; height: 3px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #f59e0b, #f43f5e);
  margin: 0.75rem auto 0;
}
.bb-section-divider--left { margin-left: 0; }

/* ── Marquee trust strip ─────────────────────────────────────────────── */
.bb-trust-strip {
  border-top: 1px solid rgba(231,229,228,0.7);
  border-bottom: 1px solid rgba(231,229,228,0.7);
  padding: 1.25rem 0;
  overflow: hidden;
  background: rgba(250,250,249,0.5);
  position: relative;
}
.dark .bb-trust-strip {
  border-color: rgba(68,64,60,0.6);
  background: rgba(28,25,23,0.4);
}
.bb-trust-strip-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  animation: bb-marquee 22s linear infinite;
  width: max-content;
}
@keyframes bb-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .bb-trust-strip-inner { animation: none; }
}
.bb-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #78716c;
  letter-spacing: 0.01em;
}
.dark .bb-trust-item { color: #a8a29e; }
.bb-trust-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #d97706;
  opacity: 0.6;
}

/* ── Pricing card upgrade ─────────────────────────────────────────────── */
.bb-price-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  border: 1px solid rgba(231,229,228,0.9);
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
}
.bb-price-card:hover {
  box-shadow: 0 12px 44px -8px rgba(28,25,23,0.13);
  transform: translateY(-4px);
}
.dark .bb-price-card {
  border-color: rgba(68,64,60,0.8);
  background: rgba(28,25,23,0.8);
}

.bb-price-card--featured,
.bb-price-card--popular {
  border-color: #b45309;
  border-width: 2px;
  box-shadow: 0 8px 32px -4px rgba(180,83,9,0.16);
  overflow: visible;
  z-index: 1;
}
.dark .bb-price-card--featured,
.dark .bb-price-card--popular {
  border-color: #d97706;
  box-shadow: 0 8px 32px -4px rgba(217,119,6,0.18);
}

.bb-price-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  white-space: nowrap;
  border-radius: 9999px;
  padding: 0.35rem 1.1rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #92400e, #d97706);
  box-shadow: 0 4px 14px -2px rgba(180, 83, 9, 0.45);
}
.dark .bb-price-popular-badge {
  background: linear-gradient(135deg, #b45309, #f59e0b);
}

.bb-price-header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid rgba(231,229,228,0.7);
}
.dark .bb-price-header { border-color: rgba(68,64,60,0.7); }

.bb-price-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #b45309;
  color: #fff;
  padding: 0.2rem 0.7rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.bb-price-amount {
  display: flex;
  align-items: flex-start;
  gap: 0.2rem;
  margin-top: 0.5rem;
  line-height: 1;
}
.bb-price-currency {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1c1917;
  margin-top: 0.3rem;
  font-family: 'Source Sans 3', sans-serif;
}
.dark .bb-price-currency { color: #f5f5f4; }
.bb-price-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: #1c1917;
  font-family: 'Source Sans 3', sans-serif;
  letter-spacing: -0.02em;
}
.dark .bb-price-number { color: #f5f5f4; }
.bb-price-number[data-yearly] { display: none; }
body.bb-yearly .bb-price-number[data-monthly] { display: none; }
body.bb-yearly .bb-price-number[data-yearly]  { display: block; }
.bb-price-period {
  font-size: 0.8rem;
  color: #78716c;
  font-weight: 400;
  margin-top: 0.6rem;
  margin-left: 0.1rem;
}
.dark .bb-price-period { color: #a8a29e; }

.bb-price-body {
  padding: 1.5rem 2rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bb-price-features {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.65rem;
  flex: 1;
}
.bb-price-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #57534e;
}
.dark .bb-price-feature { color: #a8a29e; }
.bb-price-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(217,119,6,0.12);
  border: 1.5px solid rgba(217,119,6,0.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.6rem;
  color: #b45309;
  font-weight: 700;
}
.dark .bb-price-check { background: rgba(120,53,15,0.25); border-color: rgba(217,119,6,0.3); color: #fbbf24; }

.bb-price-cta {
  margin-top: 1.5rem;
}

