/* ============================================================================
   beatvest slides
   The component layer for presentations.

   No colour, no font size and no spacing value is written here. Everything
   comes from dist/beatvest-tokens.css, generated from DESIGN.md.

   The two exceptions are the motion constants below. The DESIGN.md linter
   rejects custom top-level keys, so durations and the easing curve cannot live
   in the token file. They are declared once, here, and never repeated.

   Load order matters:
     dist/beatvest-fonts.css
     dist/beatvest-tokens.css
     dist/beatvest-type.css
     css/beatvest-slides.css   <- this file
     dist/beatvest-utils.css   <- last, so spacing utilities win
   ========================================================================= */

:root {
  --bv-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bv-dur-slide: 500ms;
  --bv-dur-quick: 200ms;
}

/* --- reset ---------------------------------------------------------------- */

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

html,
body {
  width: 100%;
  height: 100%;
}

/* Clipping lives on body only. The html root must stay scrollable, because
   wheel and trackpad input will not scroll an overflow-hidden root even when
   a child allows it. Deck pages clip here; docs pages re-open body via
   body.bv-docs and the root scrolls normally. */
body {
  overflow: hidden;
  background: var(--bv-color-bg);
  color: var(--bv-color-ink);
  font-family: var(--bv-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* ============================================================================
   NAV · fixed above every slide, never moves
   ========================================================================= */

.bv-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--bv-nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--bv-space-xl);
  z-index: 200;
}

.bv-nav__brand {
  display: flex;
  align-items: center;
  gap: var(--bv-space-sm);
}

.bv-nav__logo {
  height: 20px;
  width: auto;
}

/* A partner logo sits smaller than ours, so the lockup reads as ours first. */
.bv-nav__logo--partner {
  height: 15px;
}

.bv-nav__x {
  color: var(--bv-color-muted);
  font-size: var(--bv-text-small-size);
  font-weight: 300;
}

.bv-nav__meta {
  display: flex;
  align-items: center;
  gap: var(--bv-space-sm);
  font-size: var(--bv-text-small-size);
  color: var(--bv-color-reading);
}

.bv-nav__count {
  font-feature-settings: 'tnum' 1;
  color: var(--bv-color-muted);
}

/* ============================================================================
   SLIDES
   ========================================================================= */

.bv-viewport {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.bv-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  padding: calc(var(--bv-nav-height) + var(--bv-space-lg)) 0 var(--bv-space-4xl);
  overflow-x: hidden;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateX(40px);
  transition:
    opacity var(--bv-dur-slide) var(--bv-ease),
    transform var(--bv-dur-slide) var(--bv-ease);
}

.bv-slide.is-active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

/* The content column. Everything on a slide lives inside one of these. */
.bv-stack {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--bv-slide-width);
  margin: 0 auto;
  padding: 0 var(--bv-space-2xl);
}

.bv-stack--wide {
  max-width: var(--bv-slide-wide-width);
}

.bv-stack--center {
  align-items: center;
  text-align: center;
}

/* ============================================================================
   TYPOGRAPHY
   ========================================================================= */

.bv-eyebrow {
  font-size: var(--bv-text-label-size);
  line-height: var(--bv-text-label-leading);
  font-weight: var(--bv-text-label-weight);
  letter-spacing: var(--bv-text-label-tracking);
  text-transform: uppercase;
  color: var(--bv-color-muted);
  margin-bottom: var(--bv-space-sm);
}

.bv-headline {
  font-size: var(--bv-text-headline-size);
  line-height: var(--bv-text-headline-leading);
  font-weight: var(--bv-text-headline-weight);
  letter-spacing: var(--bv-text-headline-tracking);
  color: var(--bv-color-ink);
  margin-bottom: var(--bv-space-lg);
}

/* The signature move: the two or three words the sentence is about.
   Weight only, never colour, never size. */
.bv-headline .em,
.bv-display .em,
.bv-title .em,
.bv-panel__title .em,
.bv-em {
  font-weight: var(--bv-text-subtitle-weight);
}

/* The alternative move: a qualifier in grey at the same size. */
.bv-headline .trail,
.bv-display .trail,
.bv-title .trail,
.bv-trail {
  color: var(--bv-color-muted);
}

/* Cover only. One per deck. */
.bv-display {
  font-size: var(--bv-text-display-size);
  line-height: var(--bv-text-display-leading);
  font-weight: var(--bv-text-display-weight);
  letter-spacing: var(--bv-text-display-tracking);
  color: var(--bv-color-ink);
  margin-bottom: var(--bv-space-md);
}

.bv-title {
  font-size: var(--bv-text-title-size);
  line-height: var(--bv-text-title-leading);
  font-weight: var(--bv-text-title-weight);
  letter-spacing: var(--bv-text-title-tracking);
  color: var(--bv-color-ink);
}

.bv-subtitle {
  font-size: var(--bv-text-subtitle-size);
  line-height: var(--bv-text-subtitle-leading);
  font-weight: var(--bv-text-subtitle-weight);
  letter-spacing: var(--bv-text-subtitle-tracking);
  color: var(--bv-color-ink);
}

.bv-lead {
  font-size: var(--bv-text-lead-size);
  line-height: var(--bv-text-lead-leading);
  color: var(--bv-color-reading);
  max-width: var(--bv-measure-width);
}

.bv-body {
  font-size: var(--bv-text-body-size);
  line-height: var(--bv-text-body-leading);
  color: var(--bv-color-reading);
  max-width: var(--bv-measure-width);
}

.bv-small {
  font-size: var(--bv-text-small-size);
  line-height: var(--bv-text-small-leading);
  color: var(--bv-color-reading);
}

.bv-micro {
  font-size: var(--bv-text-micro-size);
  line-height: var(--bv-text-micro-leading);
  font-weight: var(--bv-text-micro-weight);
  letter-spacing: var(--bv-text-micro-tracking);
  text-transform: uppercase;
  color: var(--bv-color-muted);
}

/* Every slide carrying a number needs one of these. */
.bv-source {
  font-size: var(--bv-text-small-size);
  line-height: var(--bv-text-small-leading);
  color: var(--bv-color-faint);
  margin-top: var(--bv-space-md);
}

.bv-muted {
  color: var(--bv-color-muted);
}
.bv-reading {
  color: var(--bv-color-reading);
}
.bv-accent {
  color: var(--bv-color-primary-deep);
}
.bv-ink {
  color: var(--bv-color-ink);
}

.bv-rule {
  width: 40px;
  height: var(--bv-rule-height);
  background: var(--bv-color-line);
  border: 0;
  margin: var(--bv-space-lg) 0;
}

.bv-rule--full {
  width: 100%;
}

/* ============================================================================
   LAYOUT
   ========================================================================= */

.bv-cols {
  display: grid;
  gap: var(--bv-space-sm);
  align-items: start;
}
.bv-cols--2 {
  grid-template-columns: repeat(2, 1fr);
}
.bv-cols--3 {
  grid-template-columns: repeat(3, 1fr);
}
.bv-cols--4 {
  grid-template-columns: repeat(4, 1fr);
}
.bv-cols--split {
  grid-template-columns: 1.08fr 0.92fr;
  gap: var(--bv-space-3xl);
  align-items: center;
}
.bv-cols--sidebar {
  grid-template-columns: 320px 1fr;
  gap: var(--bv-space-2xl);
}

.bv-row {
  display: flex;
  align-items: center;
  gap: var(--bv-space-xs);
}
.bv-row--between {
  justify-content: space-between;
}
.bv-row--wrap {
  flex-wrap: wrap;
}
.bv-row--top {
  align-items: flex-start;
}

.bv-vstack {
  display: flex;
  flex-direction: column;
  gap: var(--bv-space-sm);
}

.bv-spacer {
  flex: 1;
}

/* ============================================================================
   BADGE · CHIP · PILL
   ========================================================================= */

.bv-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--bv-space-2xs);
  font-size: var(--bv-text-label-size);
  line-height: 1;
  font-weight: var(--bv-text-label-weight);
  letter-spacing: var(--bv-text-label-tracking);
  text-transform: uppercase;
  color: var(--bv-color-muted);
  border: 1px solid var(--bv-color-line);
  border-radius: var(--bv-radius-full);
  padding: var(--bv-badge-padding);
  width: fit-content;
}

.bv-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: var(--bv-radius-full);
  background: var(--bv-color-muted);
}

/* A credential. Bold fact, muted qualifier, in one pill. */
.bv-chip {
  font-size: var(--bv-text-small-size);
  line-height: 1;
  color: var(--bv-color-muted);
  border: 1px solid var(--bv-color-line);
  border-radius: var(--bv-radius-full);
  padding: var(--bv-chip-padding);
  background: color-mix(in srgb, var(--bv-color-surface) 40%, transparent);
}

.bv-chip b {
  color: var(--bv-color-ink);
  font-weight: var(--bv-text-subtitle-weight);
}

.bv-pill {
  display: inline-flex;
  align-items: center;
  font-size: var(--bv-text-micro-size);
  line-height: var(--bv-text-micro-leading);
  font-weight: var(--bv-text-micro-weight);
  letter-spacing: var(--bv-text-micro-tracking);
  text-transform: uppercase;
  border-radius: var(--bv-radius-full);
  padding: var(--bv-pill-green-padding);
  background: var(--bv-color-primary-bg);
  color: var(--bv-color-primary-deep);
}

.bv-pill--blue {
  background: var(--bv-color-blue-bg);
  color: var(--bv-color-blue);
}
.bv-pill--gold {
  background: var(--bv-color-gold-bg);
  color: var(--bv-color-gold);
  border: 1px solid var(--bv-color-gold-border);
}
.bv-pill--quiet {
  background: transparent;
  color: var(--bv-color-muted);
  border: 1px solid var(--bv-color-line);
}

.bv-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--bv-space-2xs);
  font-family: var(--bv-font-sans);
  font-size: var(--bv-text-small-size);
  font-weight: var(--bv-text-subtitle-weight);
  line-height: 1;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--bv-radius-full);
  padding: var(--bv-button-padding);
  background: var(--bv-color-primary-deep);
  color: var(--bv-color-on-primary);
}

/* ============================================================================
   CARD
   ========================================================================= */

.bv-card {
  background: var(--bv-color-surface);
  border: 1px solid var(--bv-color-line-soft);
  border-radius: var(--bv-radius-lg);
  padding: var(--bv-card-padding);
  display: flex;
  flex-direction: column;
}

/* A footnote or caveat inside a slide. Recessed, not raised. */
.bv-card--sunk {
  background: var(--bv-color-surface-sunk);
  border-color: var(--bv-color-line);
  border-radius: var(--bv-radius-md);
  padding: var(--bv-card-sunk-padding);
  color: var(--bv-color-reading);
  font-size: var(--bv-text-body-size);
  line-height: var(--bv-text-body-leading);
}

.bv-card--flush {
  padding: 0;
  overflow: hidden;
}

.bv-card--gold {
  border-color: var(--bv-color-gold-border);
}

.bv-card__num {
  font-size: var(--bv-text-micro-size);
  line-height: var(--bv-text-micro-leading);
  font-weight: var(--bv-text-micro-weight);
  letter-spacing: var(--bv-text-micro-tracking);
  text-transform: uppercase;
  color: var(--bv-color-muted);
  margin-bottom: var(--bv-space-xs);
}

.bv-card__title {
  font-size: var(--bv-text-subtitle-size);
  line-height: var(--bv-text-subtitle-leading);
  font-weight: var(--bv-text-subtitle-weight);
  letter-spacing: var(--bv-text-subtitle-tracking);
  color: var(--bv-color-ink);
  margin-bottom: var(--bv-space-2xs);
}

.bv-card__body {
  font-size: var(--bv-text-body-size);
  line-height: var(--bv-text-body-leading);
  color: var(--bv-color-reading);
}

/* Pinned to the bottom of a card, above a hairline. */
.bv-card__foot {
  margin-top: auto;
  padding-top: var(--bv-space-sm);
  border-top: 1px solid var(--bv-color-line-soft);
  font-size: var(--bv-text-body-size);
  line-height: var(--bv-text-body-leading);
  color: var(--bv-color-reading);
}

.bv-card__foot b,
.bv-card__body b {
  color: var(--bv-color-ink);
  font-weight: var(--bv-text-subtitle-weight);
}

.bv-card__more {
  margin-top: auto;
  padding-top: var(--bv-space-sm);
  display: flex;
  align-items: center;
  gap: var(--bv-space-2xs);
  font-size: var(--bv-text-micro-size);
  font-weight: var(--bv-text-micro-weight);
  letter-spacing: var(--bv-text-micro-tracking);
  text-transform: uppercase;
  color: var(--bv-color-gold);
}

/* ============================================================================
   PANELS · the saturated gradients. One per slide.
   ========================================================================= */

.bv-panel {
  position: relative;
  border-radius: var(--bv-radius-2xl);
  padding: var(--bv-panel-forest-padding);
  overflow: hidden;
  color: var(--bv-color-on-panel);
  background: var(--bv-gradient-panel-forest);
  box-shadow: 0 14px 40px rgb(0 0 0 / 0.07);
}

.bv-panel--petrol {
  background: var(--bv-gradient-panel-petrol);
}
.bv-panel--clay {
  background: var(--bv-gradient-panel-clay);
}
.bv-panel--dusk {
  background: var(--bv-gradient-panel-dusk);
}

/* The highlight that stops a large gradient looking flat. */
.bv-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 78% 6%, rgb(255 255 255 / 0.22), transparent 58%);
}

.bv-panel > * {
  position: relative;
  z-index: 1;
}

.bv-panel__title {
  font-size: var(--bv-text-title-size);
  line-height: var(--bv-text-title-leading);
  font-weight: var(--bv-text-headline-weight);
  letter-spacing: var(--bv-text-title-tracking);
  color: var(--bv-color-on-panel);
}

.bv-panel__body {
  font-size: var(--bv-text-body-size);
  line-height: var(--bv-text-body-leading);
  color: color-mix(in srgb, var(--bv-color-on-panel) 80%, transparent);
  max-width: var(--bv-measure-width);
}

/* ============================================================================
   TINTS · the soft gradients. Backdrop for glass, header for a tile.
   ========================================================================= */

.bv-tint {
  position: relative;
  overflow: hidden;
  border-radius: var(--bv-radius-xl);
  background: var(--bv-gradient-tint-sand);
}

.bv-tint--sage {
  background: var(--bv-gradient-tint-sage);
}
.bv-tint--stone {
  background: var(--bv-gradient-tint-stone);
}
.bv-tint--dusk {
  background: var(--bv-gradient-tint-dusk);
}
.bv-tint--amber {
  background: var(--bv-gradient-tint-amber);
}
/* The cool one, from sierra.ai. Use it when the mock-up inside is software. */
.bv-tint--sky {
  background: var(--bv-gradient-tint-sky);
}

.bv-tint::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 78% 6%, rgb(255 255 255 / 0.55), transparent 58%);
}

/* A tall tint that holds a product mock-up. */
.bv-tint--stage {
  height: 400px;
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.08);
}

/* A tint used as a full panel with content inside it, for a campaign track. */
.bv-tint--pad {
  padding: var(--bv-space-lg);
  box-shadow: 0 14px 40px rgb(0 0 0 / 0.07);
}

.bv-tint--pad > * {
  position: relative;
  z-index: 1;
}

/* The short header strip on a tile. */
.bv-tint--strip {
  height: 86px;
  border-radius: 0;
}

/* ============================================================================
   GLASS · only ever on a tint or a panel, never on the flat canvas
   ========================================================================= */

.bv-glass {
  background: rgb(255 255 255 / 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgb(255 255 255 / 0.75);
  border-radius: var(--bv-radius-lg);
  padding: var(--bv-glass-padding);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.07);
}

/* On a saturated panel the glass inverts: white text, darker fill. */
.bv-panel .bv-glass {
  background: rgb(255 255 255 / 0.14);
  border-color: rgb(255 255 255 / 0.28);
  color: var(--bv-color-on-panel);
  box-shadow: none;
}

/* Named slots inside a stage, so a deck never writes coordinates. Three cards
   overlapping at slightly different insets is what makes a mock-up read as a
   real interface rather than a stack of boxes. */
.bv-glass--slot-a,
.bv-glass--slot-b,
.bv-glass--slot-c {
  position: absolute;
}

.bv-glass--slot-a {
  top: 42px;
  left: 40px;
  right: 32px;
}

.bv-glass--slot-b {
  top: 190px;
  left: 24px;
  right: 56px;
}

.bv-glass--slot-c {
  bottom: 36px;
  left: 52px;
  right: 36px;
}

/* Slots for the short mode strip. The stage slots are sized for a 400px tall
   tint and would fall outside a 132px one, so the strip has its own pair. */
.bv-mock--strip-a {
  position: absolute;
  top: 18px;
  left: 22px;
  right: 46px;
}

.bv-mock--strip-b {
  position: absolute;
  bottom: 16px;
  left: 52px;
  right: 20px;
}

/* Mirrored, so two mode cards side by side do not look copy-pasted. */
.bv-mock--strip-a-alt {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 52px;
}

.bv-mock--strip-b-alt {
  position: absolute;
  bottom: 18px;
  left: 48px;
  right: 22px;
}

/* The drawn marks inside a tile header strip. */
.bv-tint--strip > .bv-funnel,
.bv-tint--strip > .bv-path,
.bv-tint--strip > .bv-steps {
  position: absolute;
  left: 15px;
  top: 16px;
}

.bv-tint--strip > .bv-path {
  top: 38px;
}

.bv-glass__key {
  font-size: var(--bv-text-micro-size);
  line-height: var(--bv-text-micro-leading);
  font-weight: var(--bv-text-micro-weight);
  letter-spacing: var(--bv-text-micro-tracking);
  text-transform: uppercase;
  color: var(--bv-color-muted);
}

.bv-glass__title {
  font-size: var(--bv-text-subtitle-size);
  font-weight: var(--bv-text-subtitle-weight);
  letter-spacing: var(--bv-text-subtitle-tracking);
  color: var(--bv-color-ink);
}

.bv-glass__line {
  font-size: var(--bv-text-body-size);
  line-height: var(--bv-text-body-leading);
  color: var(--bv-color-reading);
}

.bv-panel .bv-glass__title,
.bv-panel .bv-glass__line,
.bv-panel .bv-glass__key {
  color: var(--bv-color-on-panel);
}

/* The small filled dot that stands in for an app icon. */
.bv-dot {
  width: 15px;
  height: 15px;
  border-radius: var(--bv-radius-full);
  background: var(--bv-color-ink);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bv-dot::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: var(--bv-radius-full);
  background: var(--bv-color-surface);
}

/* ============================================================================
   PRODUCT MARKS · drawn from divs and tokens, never images
   ========================================================================= */

/* Progress bar */
.bv-bar {
  height: var(--bv-progress-fill-height);
  border-radius: var(--bv-radius-full);
  background: rgb(0 0 0 / 0.09);
  overflow: hidden;
  margin-top: var(--bv-space-xs);
}

.bv-bar > i {
  display: block;
  height: 100%;
  border-radius: var(--bv-radius-full);
  background: var(--bv-color-primary);
  width: var(--bv-fill, 50%);
}

/* Points earned */
.bv-points {
  font-size: var(--bv-text-small-size);
  font-weight: var(--bv-text-micro-weight);
  color: var(--bv-color-primary-deep);
  background: var(--bv-color-primary-bg);
  border-radius: var(--bv-radius-full);
  padding: 3px 9px;
  margin-left: auto;
}

/* Streak of days */
.bv-streak {
  display: flex;
  gap: var(--bv-space-3xs);
  margin-top: var(--bv-space-xs);
}

.bv-streak > i {
  width: 17px;
  height: var(--bv-progress-fill-height);
  border-radius: var(--bv-radius-full);
  background: rgb(0 0 0 / 0.12);
}

.bv-streak > i.on {
  background: var(--bv-color-ink);
}

/* Sparkline */
.bv-spark {
  display: flex;
  align-items: flex-end;
  gap: var(--bv-space-3xs);
  height: 32px;
  margin-top: var(--bv-space-xs);
}

/* Capped so the bars stay slim in a wide card and still read as a chart
   rather than as a row of blocks. */
.bv-spark > i {
  flex: 1;
  max-width: 14px;
  border-radius: var(--bv-radius-xs) var(--bv-radius-xs) 0 0;
  background: rgb(0 0 0 / 0.13);
  height: var(--bv-h, 50%);
}

.bv-spark > i.hi {
  background: var(--bv-color-primary);
}

/* Funnel */
.bv-funnel {
  display: flex;
  flex-direction: column;
  gap: var(--bv-space-2xs);
}

.bv-funnel > i {
  display: block;
  height: 9px;
  border-radius: var(--bv-radius-xs);
  background: rgb(0 0 0 / 0.13);
}

.bv-funnel > i:nth-child(1) {
  width: 104px;
}
.bv-funnel > i:nth-child(2) {
  width: 78px;
}
.bv-funnel > i:nth-child(3) {
  width: 52px;
  background: var(--bv-color-primary);
}

/* Step path */
.bv-path {
  display: flex;
  align-items: center;
}

.bv-path .node {
  width: 11px;
  height: 11px;
  border-radius: var(--bv-radius-full);
  border: 1.5px solid rgb(0 0 0 / 0.28);
  background: rgb(255 255 255 / 0.7);
  flex: none;
}

.bv-path .node.on {
  background: var(--bv-color-primary);
  border-color: var(--bv-color-primary);
}

.bv-path .seg {
  width: 26px;
  height: 1.5px;
  background: rgb(0 0 0 / 0.18);
}

/* Checklist */
.bv-steps {
  display: flex;
  flex-direction: column;
  gap: var(--bv-space-2xs);
}

.bv-steps .st {
  display: flex;
  align-items: center;
  gap: var(--bv-space-2xs);
}

.bv-steps .tick {
  width: 11px;
  height: 11px;
  border-radius: var(--bv-radius-full);
  flex: none;
  border: 1.5px solid rgb(0 0 0 / 0.22);
  background: rgb(255 255 255 / 0.65);
}

.bv-steps .tick.on {
  background: var(--bv-color-primary);
  border-color: var(--bv-color-primary);
}

.bv-steps .lbl {
  height: var(--bv-progress-fill-height);
  border-radius: var(--bv-radius-full);
  background: rgb(0 0 0 / 0.13);
  width: var(--bv-w, 56px);
}

/* Split bar. Set --bv-fill on the first child. */
.bv-split {
  display: flex;
  height: 9px;
  border-radius: var(--bv-radius-full);
  overflow: hidden;
}

.bv-split > i:first-child {
  background: var(--bv-color-primary);
  width: var(--bv-fill, 50%);
}
.bv-split > i:last-child {
  background: rgb(0 0 0 / 0.16);
  flex: 1;
}

/* ============================================================================
   TILE · four-up grid, gradient header strip over a white body
   ========================================================================= */

.bv-tile {
  background: var(--bv-color-surface);
  border: 1px solid var(--bv-color-line-soft);
  border-radius: var(--bv-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bv-tile--featured {
  border-color: var(--bv-color-gold-border);
  box-shadow: 0 0 0 3px var(--bv-color-gold-bg);
}

.bv-tile__body {
  padding: var(--bv-space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bv-tile__for {
  font-size: var(--bv-text-micro-size);
  line-height: var(--bv-text-micro-leading);
  font-weight: var(--bv-text-micro-weight);
  letter-spacing: var(--bv-text-micro-tracking);
  text-transform: uppercase;
  color: var(--bv-color-blue);
  margin-bottom: var(--bv-space-2xs);
}

.bv-tile__title {
  font-size: var(--bv-text-body-size);
  line-height: var(--bv-text-body-leading);
  font-weight: var(--bv-text-subtitle-weight);
  letter-spacing: var(--bv-text-subtitle-tracking);
  color: var(--bv-color-ink);
  margin-bottom: var(--bv-space-2xs);
}

.bv-tile__text {
  font-size: var(--bv-text-small-size);
  line-height: var(--bv-text-small-leading);
  color: var(--bv-color-reading);
}

/* ============================================================================
   STATS
   ========================================================================= */

.bv-stat__value {
  font-size: var(--bv-text-stat-size);
  line-height: var(--bv-text-stat-leading);
  font-weight: var(--bv-text-stat-weight);
  letter-spacing: var(--bv-text-stat-tracking);
  font-feature-settings: 'tnum' 1;
  color: var(--bv-color-ink);
  display: block;
}

.bv-stat__label {
  font-size: var(--bv-text-small-size);
  line-height: var(--bv-text-small-leading);
  color: var(--bv-color-reading);
  display: block;
  margin-top: var(--bv-space-3xs);
}

/* ============================================================================
   LIST · bold lead-in, muted explanation
   ========================================================================= */

.bv-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--bv-space-2xs);
}

.bv-list li {
  position: relative;
  padding-left: var(--bv-space-sm);
  font-size: var(--bv-text-body-size);
  line-height: var(--bv-text-body-leading);
  color: var(--bv-color-reading);
}

.bv-list li::before {
  content: '';
  position: absolute;
  left: 0;
  /* Centered on the first text line: (line-height - dot) / 2. The divided
     variant adds padding-top, which shifts the text but not an absolutely
     positioned dot, so it adds the same padding here. */
  top: calc((var(--bv-text-body-leading) - 4px) / 2);
  width: 4px;
  height: 4px;
  border-radius: var(--bv-radius-full);
  background: rgb(0 0 0 / 0.25);
}

.bv-list--divided li::before {
  top: calc(var(--bv-space-xs) + (var(--bv-text-body-leading) - 4px) / 2);
}

.bv-list li b {
  color: var(--bv-color-ink);
  font-weight: var(--bv-text-subtitle-weight);
}

.bv-list--divided {
  gap: 0;
}

.bv-list--divided li {
  padding-top: var(--bv-space-xs);
  padding-bottom: var(--bv-space-xs);
  border-bottom: 1px solid var(--bv-color-line-soft);
}

/* ============================================================================
   TABLE
   ========================================================================= */

.bv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--bv-text-body-size);
  line-height: var(--bv-text-body-leading);
}

.bv-table th {
  text-align: left;
  font-size: var(--bv-text-micro-size);
  line-height: var(--bv-text-micro-leading);
  font-weight: var(--bv-text-micro-weight);
  letter-spacing: var(--bv-text-micro-tracking);
  text-transform: uppercase;
  color: var(--bv-color-muted);
  padding: 0 var(--bv-space-sm) var(--bv-space-2xs) 0;
  border-bottom: 1px solid var(--bv-color-line);
}

.bv-table td {
  padding: var(--bv-space-xs) var(--bv-space-sm) var(--bv-space-xs) 0;
  border-bottom: 1px solid var(--bv-color-line-soft);
  color: var(--bv-color-reading);
  vertical-align: top;
}

.bv-table td b {
  color: var(--bv-color-ink);
  font-weight: var(--bv-text-subtitle-weight);
}

.bv-table .num {
  text-align: right;
  font-feature-settings: 'tnum' 1;
}

.bv-table th:last-child,
.bv-table td:last-child {
  padding-right: 0;
}

/* ============================================================================
   DAY TRACK · a campaign or programme laid out as cells
   ========================================================================= */

.bv-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: var(--bv-space-2xs);
}

.bv-day {
  background: rgb(255 255 255 / 0.5);
  border: 1px solid rgb(255 255 255 / 0.7);
  border-radius: var(--bv-radius-md);
  padding: var(--bv-space-xs);
  min-height: 82px;
  display: flex;
  flex-direction: column;
}

.bv-day__n {
  font-size: var(--bv-text-micro-size);
  line-height: var(--bv-text-micro-leading);
  font-weight: var(--bv-text-micro-weight);
  letter-spacing: var(--bv-text-micro-tracking);
  text-transform: uppercase;
  color: var(--bv-color-muted);
  margin-bottom: var(--bv-space-2xs);
}

.bv-day__t {
  font-size: var(--bv-text-small-size);
  line-height: var(--bv-text-small-leading);
  font-weight: var(--bv-text-subtitle-weight);
  letter-spacing: var(--bv-text-subtitle-tracking);
  color: var(--bv-color-ink);
}

.bv-day__f {
  margin-top: auto;
  padding-top: var(--bv-space-2xs);
  display: flex;
  align-items: center;
  gap: var(--bv-space-3xs);
  font-size: var(--bv-text-micro-size);
  font-weight: var(--bv-text-micro-weight);
  color: var(--bv-color-primary-deep);
}

.bv-day--done {
  background: rgb(255 255 255 / 0.68);
}

.bv-day--now {
  background: var(--bv-color-ink);
  border-color: var(--bv-color-ink);
  box-shadow: 0 0 0 3px rgb(15 15 14 / 0.13);
  animation: bv-pulse 2.6s var(--bv-ease) infinite;
}

.bv-day--now .bv-day__n {
  color: rgb(255 255 255 / 0.5);
}
.bv-day--now .bv-day__t,
.bv-day--now .bv-day__f {
  color: var(--bv-color-surface);
}

.bv-day--locked {
  background: rgb(255 255 255 / 0.26);
  border-color: rgb(255 255 255 / 0.45);
}

.bv-day--locked .bv-day__t,
.bv-day--locked .bv-day__n {
  color: var(--bv-color-faint);
}

.bv-day--reward {
  background: rgb(255 255 255 / 0.62);
  border-color: var(--bv-color-gold-border);
  position: relative;
  overflow: hidden;
}

.bv-day--reward .bv-day__n {
  color: var(--bv-color-gold);
}

.bv-day--reward::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.75), transparent);
  animation: bv-shimmer 4.2s ease-in-out infinite;
}

.bv-check {
  width: 13px;
  height: 13px;
  border-radius: var(--bv-radius-full);
  background: var(--bv-color-primary);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bv-check svg {
  width: 7px;
  height: 7px;
  stroke: var(--bv-color-surface);
  stroke-width: 2.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes bv-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgb(15 15 14 / 0.13);
  }
  50% {
    box-shadow: 0 0 0 7px rgb(15 15 14 / 0.06);
  }
}

@keyframes bv-shimmer {
  0%,
  65%,
  100% {
    left: -60%;
  }
  85% {
    left: 115%;
  }
}

/* ============================================================================
   BOTTOM NAV
   ========================================================================= */

.bv-controls {
  position: fixed;
  bottom: var(--bv-space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--bv-space-xs);
  z-index: 200;
}

.bv-arrow {
  width: 30px;
  height: 30px;
  border-radius: var(--bv-radius-full);
  border: 1px solid var(--bv-color-line);
  background: rgb(255 255 255 / 0.55);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--bv-dur-quick) var(--bv-ease);
  color: var(--bv-color-reading);
}

.bv-arrow:hover:not(:disabled) {
  background: var(--bv-color-surface);
  color: var(--bv-color-ink);
}

.bv-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.bv-arrow svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bv-dots {
  display: flex;
  align-items: center;
  gap: var(--bv-space-2xs);
  padding: 0 var(--bv-space-2xs);
}

.bv-dots > button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: var(--bv-radius-full);
  background: var(--bv-color-line);
  cursor: pointer;
  transition: all var(--bv-dur-quick) var(--bv-ease);
}

.bv-dots > button.is-active {
  width: 22px;
  background: var(--bv-color-ink);
}

.bv-confidential {
  position: fixed;
  bottom: var(--bv-space-xl);
  left: var(--bv-space-xl);
  font-size: var(--bv-text-micro-size);
  letter-spacing: var(--bv-text-micro-tracking);
  text-transform: uppercase;
  color: var(--bv-color-faint);
  z-index: 10;
}

/* ============================================================================
   RESPONSIVE · the -sm scales, so nothing is invented here
   ========================================================================= */

@media (max-width: 900px) {
  .bv-display {
    font-size: var(--bv-text-display-sm-size);
    line-height: var(--bv-text-display-sm-leading);
    letter-spacing: var(--bv-text-display-sm-tracking);
  }

  .bv-headline {
    font-size: var(--bv-text-headline-sm-size);
    line-height: var(--bv-text-headline-sm-leading);
    letter-spacing: var(--bv-text-headline-sm-tracking);
  }

  .bv-cols--split,
  .bv-cols--sidebar,
  .bv-cols--4,
  .bv-cols--3,
  .bv-cols--2 {
    grid-template-columns: 1fr;
  }

  .bv-stack {
    padding: 0 var(--bv-space-lg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bv-slide {
    transition: none;
    transform: none;
  }
  .bv-day--now {
    animation: none;
  }
  .bv-day--reward::before {
    display: none;
  }
}

/* ============================================================================
   PRINT
   ========================================================================= */

@media print {
  html,
  body {
    overflow: visible;
    height: auto;
  }

  .bv-viewport {
    position: static;
    overflow: visible;
  }

  .bv-slide {
    position: relative;
    inset: auto;
    opacity: 1;
    transform: none;
    transition: none;
    min-height: 100vh;
    break-after: page;
    page-break-after: always;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .bv-controls,
  .bv-nav__count {
    display: none;
  }
}

/* ============================================================================
   MODE · the two-up card from the Xtrackers deck: a gradient header carrying
   a product mock-up, then a white body with number, title, goal and examples.
   This is the highest-value layout in the system. Use it when there are two
   routes, two audiences or two products to compare side by side.
   ========================================================================= */

.bv-mode {
  background: var(--bv-color-surface);
  border: 1px solid var(--bv-color-line-soft);
  border-radius: var(--bv-radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* The gradient strip at the top. Put bv-mock cards inside it. */
.bv-mode__viz {
  height: var(--bv-mode-viz-height);
  position: relative;
  overflow: hidden;
}

.bv-mode__body {
  padding: var(--bv-mode-padding);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bv-mode__num {
  font-size: var(--bv-text-micro-size);
  line-height: var(--bv-text-micro-leading);
  font-weight: var(--bv-text-micro-weight);
  letter-spacing: var(--bv-text-micro-tracking);
  text-transform: uppercase;
  color: var(--bv-color-muted);
  margin-bottom: var(--bv-space-xs);
}

.bv-mode__title {
  font-size: var(--bv-text-title-size);
  line-height: var(--bv-text-title-leading);
  font-weight: var(--bv-text-title-weight);
  letter-spacing: var(--bv-text-title-tracking);
  color: var(--bv-color-ink);
  margin-bottom: var(--bv-space-3xs);
}

/* One line saying what this route is for. */
.bv-mode__goal {
  font-size: var(--bv-text-body-size);
  line-height: var(--bv-text-body-leading);
  color: var(--bv-color-reading);
  margin-bottom: var(--bv-space-md);
}

/* The small label above the examples, e.g. "Das Ziel, und ein Beispiel". */
.bv-mode__eg {
  font-size: var(--bv-text-micro-size);
  line-height: var(--bv-text-micro-leading);
  font-weight: var(--bv-text-micro-weight);
  letter-spacing: var(--bv-text-micro-tracking);
  text-transform: uppercase;
  color: var(--bv-color-faint);
  margin-bottom: var(--bv-space-xs);
}

/* The outcome line, pinned to the bottom above a hairline. */
.bv-mode__out {
  margin-top: auto;
  padding-top: var(--bv-space-sm);
  border-top: 1px solid var(--bv-color-line-soft);
  font-size: var(--bv-text-body-size);
  line-height: var(--bv-text-body-leading);
  color: var(--bv-color-reading);
}

.bv-mode__out b {
  color: var(--bv-color-ink);
  font-weight: var(--bv-text-subtitle-weight);
}

/* ============================================================================
   MOCK · the small cards that live inside a viz strip or a stage.
   They imitate a real interface: a row, a title, a sub-line, a tag.
   ========================================================================= */

/* In flow a mock stacks like any card. The placement classes below switch it
   to absolute positioning inside a stage or strip. */
.bv-mock {
  position: relative;
  padding: var(--bv-mock-padding);
  background: rgb(255 255 255 / 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgb(255 255 255 / 0.75);
  border-radius: var(--bv-radius-lg);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.07);
}

/* Solid variant, for a card that should read as the foreground element. */
.bv-mock--solid {
  background: var(--bv-color-surface);
  border-color: var(--bv-color-line-soft);
}

.bv-mock__row {
  display: flex;
  align-items: center;
  gap: var(--bv-space-2xs);
}

/* A pill in a mock row always sits against the right edge, which is what makes
   the card read as a real piece of interface rather than a sentence. */
.bv-mock__row > .bv-pill {
  margin-left: auto;
}

.bv-mock__title {
  display: block;
  font-size: var(--bv-text-mock-size);
  line-height: var(--bv-text-mock-leading);
  font-weight: var(--bv-text-mock-weight);
  letter-spacing: var(--bv-text-mock-tracking);
  color: var(--bv-color-ink);
}

.bv-mock__sub {
  display: block;
  font-size: var(--bv-text-mock-sub-size);
  line-height: var(--bv-text-mock-sub-leading);
  font-weight: var(--bv-text-mock-sub-weight);
  color: var(--bv-color-muted);
}

/* Title over sub-line. Wrap the pair so the avatar stays vertically centred
   against both lines rather than against the first one. */
.bv-mock__lines {
  display: flex;
  flex-direction: column;
}

.bv-mock__key {
  font-size: var(--bv-text-micro-size);
  line-height: var(--bv-text-micro-leading);
  font-weight: var(--bv-text-micro-weight);
  letter-spacing: var(--bv-text-micro-tracking);
  text-transform: uppercase;
  color: var(--bv-color-muted);
}

.bv-mock__value {
  font-size: var(--bv-text-mock-size);
  line-height: var(--bv-text-mock-leading);
  font-weight: var(--bv-text-mock-weight);
  letter-spacing: var(--bv-text-mock-tracking);
  color: var(--bv-color-ink);
  margin-top: var(--bv-space-3xs);
}

.bv-mock__value.is-good {
  color: var(--bv-color-primary-deep);
}

/* A person inside a mock-up. Desaturated so it never competes. */
.bv-avatar {
  width: var(--bv-avatar-a-size);
  height: var(--bv-avatar-a-size);
  border-radius: var(--bv-radius-full);
  flex: none;
  background: linear-gradient(
    140deg,
    color-mix(in srgb, var(--bv-color-avatar-a) 62%, white),
    var(--bv-color-avatar-a)
  );
}

.bv-avatar--b {
  background: linear-gradient(
    140deg,
    color-mix(in srgb, var(--bv-color-avatar-b) 62%, white),
    var(--bv-color-avatar-b)
  );
}

.bv-avatar--c {
  background: linear-gradient(
    140deg,
    color-mix(in srgb, var(--bv-color-avatar-c) 62%, white),
    var(--bv-color-avatar-c)
  );
}

/* An information marker inside a mock-up. */
.bv-info {
  width: 14px;
  height: 14px;
  border-radius: var(--bv-radius-full);
  flex: none;
  margin-left: auto;
  background: var(--bv-color-blue);
  color: var(--bv-color-surface);
  font-size: var(--bv-text-micro-size);
  font-weight: var(--bv-text-micro-weight);
  line-height: 14px;
  text-align: center;
  font-style: italic;
}

/* Ghosted cards stacked behind the front one, to suggest a list. */
.bv-stackcards {
  position: absolute;
  inset: 0;
}

.bv-stackcards > i {
  position: absolute;
  height: 24px;
  border-radius: var(--bv-radius-sm);
  background: rgb(255 255 255 / 0.45);
  border: 1px solid rgb(255 255 255 / 0.6);
}

.bv-stackcards > i:nth-child(1) {
  top: 12px;
  left: 30px;
  right: 30px;
  opacity: 0.6;
}

.bv-stackcards > i:nth-child(2) {
  top: 22px;
  left: 25px;
  right: 25px;
  opacity: 0.8;
}

/* Small floating pills in the corner of a viz, for add-ons or integrations. */
.bv-addons {
  position: absolute;
  top: var(--bv-space-sm);
  right: var(--bv-space-sm);
  width: 152px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--bv-space-3xs);
  justify-content: flex-end;
}

.bv-addon {
  font-size: var(--bv-text-micro-size);
  font-weight: var(--bv-text-label-weight);
  line-height: 1;
  color: var(--bv-color-reading);
  background: rgb(255 255 255 / 0.66);
  border: 1px solid rgb(255 255 255 / 0.85);
  border-radius: var(--bv-radius-full);
  padding: var(--bv-space-3xs) var(--bv-space-2xs);
  box-shadow: 0 3px 10px rgb(0 0 0 / 0.05);
}

.bv-addon--plus {
  color: var(--bv-color-primary-deep);
  background: var(--bv-color-primary-bg);
  border-color: var(--bv-color-primary-border);
}

/* ============================================================================
   FLOW · stacked cards joined by dashed connectors, the sierra.ai pattern for
   showing a sequence of steps a system takes.
   ========================================================================= */

.bv-flow {
  display: flex;
  flex-direction: column;
  gap: var(--bv-space-md);
  position: relative;
}

.bv-flow__item {
  position: relative;
}

/* The dashed line joining one step to the next. */
.bv-flow__item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: var(--bv-space-lg);
  top: 100%;
  height: var(--bv-space-md);
  border-left: 1px dashed var(--bv-color-line);
}

.bv-flow--horizontal {
  flex-direction: row;
  align-items: center;
}

.bv-flow--horizontal .bv-flow__item:not(:last-child)::after {
  left: 100%;
  top: 50%;
  height: 0;
  width: var(--bv-space-md);
  border-left: 0;
  border-top: 1px dashed var(--bv-color-line);
}

/* ============================================================================
   CHECKROW · a labelled decision with a green tick, the Observability pattern
   ========================================================================= */

.bv-checkrow {
  display: flex;
  align-items: flex-start;
  gap: var(--bv-space-2xs);
  padding: var(--bv-space-2xs) 0;
}

.bv-checkrow__label {
  font-size: var(--bv-text-small-size);
  line-height: var(--bv-text-small-leading);
  color: var(--bv-color-ink);
}

.bv-checkrow__sub {
  font-size: var(--bv-text-small-size);
  line-height: var(--bv-text-small-leading);
  color: var(--bv-color-muted);
}

.bv-checkrow__tick {
  margin-left: auto;
  flex: none;
  width: 13px;
  height: 13px;
  border-radius: var(--bv-radius-full);
  border: 1.5px solid var(--bv-color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bv-checkrow__tick svg {
  width: 7px;
  height: 7px;
  stroke: var(--bv-color-primary);
  stroke-width: 2.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* A blue section heading inside a mock-up. */
.bv-mock__heading {
  font-size: var(--bv-text-subtitle-size);
  font-weight: var(--bv-text-subtitle-weight);
  color: var(--bv-color-blue);
  margin-bottom: var(--bv-space-xs);
}

/* ============================================================================
   FEATURE · the sierra.ai four-up. A tinted box holds the illustration, the
   caption sits underneath it, outside the box.
   ========================================================================= */

.bv-feature__viz {
  height: var(--bv-feature-height);
  position: relative;
  overflow: hidden;
  border-radius: var(--bv-radius-xl);
  margin-bottom: var(--bv-space-md);
}

.bv-feature__title {
  font-size: var(--bv-text-subtitle-size);
  line-height: var(--bv-text-subtitle-leading);
  font-weight: var(--bv-text-headline-weight);
  color: var(--bv-color-ink);
  margin-bottom: var(--bv-space-3xs);
}

.bv-feature__text {
  font-size: var(--bv-text-body-size);
  line-height: var(--bv-text-body-leading);
  color: var(--bv-color-reading);
}

/* ============================================================================
   CAMPAIGN · the amber programme panel with its progress foot
   ========================================================================= */

.bv-camp__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--bv-space-lg);
  margin-bottom: var(--bv-space-sm);
}

.bv-camp__eyebrow {
  font-size: var(--bv-text-micro-size);
  line-height: var(--bv-text-micro-leading);
  font-weight: var(--bv-text-micro-weight);
  letter-spacing: var(--bv-text-micro-tracking);
  text-transform: uppercase;
  color: var(--bv-color-gold);
  margin-bottom: var(--bv-space-3xs);
}

/* The "powered by" lockup that names the partner on their own campaign. */
.bv-powered {
  display: inline-flex;
  align-items: center;
  gap: var(--bv-space-2xs);
  flex: none;
  font-size: var(--bv-text-small-size);
  color: var(--bv-color-reading);
  background: rgb(255 255 255 / 0.55);
  border: 1px solid rgb(255 255 255 / 0.8);
  border-radius: var(--bv-radius-full);
  padding: var(--bv-space-2xs) var(--bv-space-sm);
}

.bv-powered b {
  color: var(--bv-color-ink);
  font-weight: var(--bv-text-subtitle-weight);
}

.bv-camp__foot {
  display: flex;
  align-items: center;
  gap: var(--bv-space-sm);
  margin-top: var(--bv-space-sm);
}

/* Overall progress through a programme. Darker than a lesson bar on purpose. */
.bv-prog {
  flex: 1;
  height: 6px;
  border-radius: var(--bv-radius-full);
  background: rgb(0 0 0 / 0.1);
  overflow: hidden;
}

.bv-prog > i {
  display: block;
  height: 100%;
  border-radius: var(--bv-radius-full);
  background: var(--bv-color-ink);
  width: var(--bv-fill, 50%);
}

.bv-prog__label {
  font-size: var(--bv-text-small-size);
  color: var(--bv-color-reading);
  flex: none;
}

.bv-prog__label b {
  color: var(--bv-color-ink);
  font-weight: var(--bv-text-micro-weight);
}

/* ============================================================================
   COLUMN · a compact three-up list card with a coloured key
   ========================================================================= */

.bv-col {
  background: var(--bv-color-surface);
  border: 1px solid var(--bv-color-line-soft);
  border-radius: var(--bv-radius-lg);
  padding: var(--bv-space-md);
}

.bv-col__key {
  font-size: var(--bv-text-micro-size);
  line-height: var(--bv-text-micro-leading);
  font-weight: var(--bv-text-micro-weight);
  letter-spacing: var(--bv-text-micro-tracking);
  text-transform: uppercase;
  color: var(--bv-color-blue);
  margin-bottom: var(--bv-space-sm);
}

.bv-col__key--gold {
  color: var(--bv-color-gold);
}
.bv-col__key--green {
  color: var(--bv-color-primary-deep);
}

/* ============================================================================
   STATBOX · a bordered number tile, for the slide that is only numbers
   ========================================================================= */

.bv-statbox {
  background: var(--bv-color-surface-sunk);
  border: 1px solid var(--bv-color-line);
  border-radius: var(--bv-radius-md);
  padding: var(--bv-space-lg) var(--bv-space-md);
}

.bv-statbox--good {
  border-color: var(--bv-color-primary-border);
  background: var(--bv-color-primary-bg);
}

.bv-statbox__num {
  font-size: var(--bv-text-headline-size);
  line-height: var(--bv-text-headline-leading);
  font-weight: var(--bv-text-subtitle-weight);
  letter-spacing: var(--bv-text-headline-tracking);
  font-feature-settings: 'tnum' 1;
  color: var(--bv-color-ink);
  margin-bottom: var(--bv-space-3xs);
}

.bv-statbox--good .bv-statbox__num {
  color: var(--bv-color-primary-deep);
}

.bv-statbox__text {
  font-size: var(--bv-text-body-size);
  line-height: var(--bv-text-body-leading);
  color: var(--bv-color-reading);
}

/* An estimate rather than a measurement. Dashed, so nobody mistakes the two. */
.bv-statbox--estimate {
  border-style: dashed;
  border-color: var(--bv-color-line);
  background: rgb(255 255 255 / 0.4);
}

.bv-flag {
  display: inline-block;
  font-size: var(--bv-text-micro-size);
  font-weight: var(--bv-text-micro-weight);
  letter-spacing: var(--bv-text-micro-tracking);
  text-transform: uppercase;
  color: var(--bv-color-muted);
  border: 1px solid var(--bv-color-line);
  border-radius: var(--bv-radius-full);
  padding: 2px var(--bv-space-2xs);
  margin-bottom: var(--bv-space-xs);
}

/* ============================================================================
   PROOF STRIP · a single row of evidence cells, divided by hairlines
   ========================================================================= */

.bv-proof {
  display: flex;
  align-items: stretch;
  background: var(--bv-color-surface);
  border: 1px solid var(--bv-color-line-soft);
  border-radius: var(--bv-radius-md);
  overflow: hidden;
}

.bv-proof__cell {
  flex: 1;
  padding: var(--bv-space-md);
}

.bv-proof__cell + .bv-proof__cell {
  border-left: 1px solid var(--bv-color-line-soft);
}

.bv-proof__key {
  font-size: var(--bv-text-micro-size);
  line-height: var(--bv-text-micro-leading);
  font-weight: var(--bv-text-micro-weight);
  letter-spacing: var(--bv-text-micro-tracking);
  text-transform: uppercase;
  color: var(--bv-color-muted);
  margin-bottom: var(--bv-space-3xs);
}

.bv-proof__value {
  font-size: var(--bv-text-body-size);
  line-height: var(--bv-text-body-leading);
  color: var(--bv-color-ink);
}

/* ============================================================================
   NOTE · a recessed caveat bar, and the dark closing bar
   ========================================================================= */

.bv-note {
  background: var(--bv-color-surface-sunk);
  border: 1px solid var(--bv-color-line);
  border-radius: var(--bv-radius-md);
  padding: var(--bv-space-sm) var(--bv-space-md);
  font-size: var(--bv-text-body-size);
  line-height: var(--bv-text-body-leading);
  color: var(--bv-color-reading);
}

.bv-note b {
  color: var(--bv-color-ink);
  font-weight: var(--bv-text-subtitle-weight);
}

/* The dark bar that states the ask. One per deck, on the last content slide. */
.bv-next {
  background: var(--bv-color-ink);
  color: var(--bv-color-surface);
  border-radius: var(--bv-radius-md);
  padding: var(--bv-next-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bv-space-lg);
}

.bv-next__key {
  font-size: var(--bv-text-micro-size);
  line-height: var(--bv-text-micro-leading);
  font-weight: var(--bv-text-micro-weight);
  letter-spacing: var(--bv-text-micro-tracking);
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.5);
  margin-bottom: var(--bv-space-3xs);
}

.bv-next__value {
  font-size: var(--bv-text-subtitle-size);
  line-height: var(--bv-text-lead-leading);
  font-weight: var(--bv-text-lead-weight);
}

/* ============================================================================
   SECTION HEAD · title left, a pill on the right, the sierra.ai pattern
   ========================================================================= */

.bv-sectionhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--bv-space-lg);
  margin-bottom: var(--bv-space-lg);
}

/* A big number on a saturated panel, for a case study slide. */
.bv-panel__stat {
  font-size: var(--bv-text-stat-size);
  line-height: var(--bv-text-stat-leading);
  font-weight: var(--bv-text-stat-weight);
  letter-spacing: var(--bv-text-stat-tracking);
  font-feature-settings: 'tnum' 1;
  color: var(--bv-color-on-panel);
}

.bv-panel__stat-label {
  font-size: var(--bv-text-body-size);
  color: color-mix(in srgb, var(--bv-color-on-panel) 75%, transparent);
  margin-top: var(--bv-space-3xs);
}

/* A white pill button, for use on a panel or a photo. */
.bv-btn--light {
  background: var(--bv-color-surface);
  color: var(--bv-color-ink);
}

@media (max-width: 900px) {
  .bv-proof {
    flex-direction: column;
  }
  .bv-proof__cell + .bv-proof__cell {
    border-left: 0;
    border-top: 1px solid var(--bv-color-line-soft);
  }
  .bv-next {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================================
   CATEGORY TAG · an outlined pill naming the actor or system in a step.
   Each actor keeps its colour for the whole journey, which is what lets a
   reader follow a handover without a legend.
   ========================================================================= */

.bv-tag {
  display: inline-flex;
  align-items: center;
  font-size: var(--bv-text-micro-size);
  line-height: var(--bv-text-micro-leading);
  font-weight: var(--bv-text-label-weight);
  letter-spacing: 0.02em;
  text-transform: none;
  border-radius: var(--bv-radius-full);
  padding: 2px var(--bv-space-2xs);
  background: var(--bv-color-surface);
  color: var(--bv-color-blue);
  border: 1px solid color-mix(in srgb, var(--bv-color-blue) 30%, transparent);
}

.bv-tag--violet {
  color: var(--bv-color-violet);
  border-color: color-mix(in srgb, var(--bv-color-violet) 30%, transparent);
}
.bv-tag--green {
  color: var(--bv-color-primary-deep);
  border-color: var(--bv-color-primary-border);
}
.bv-tag--gold {
  color: var(--bv-color-gold);
  border-color: var(--bv-color-gold-border);
}

/* The channel or tool the step ran through, next to the tag. */
.bv-tag__via {
  font-size: var(--bv-text-small-size);
  color: var(--bv-color-reading);
  margin-left: var(--bv-space-2xs);
}

/* ============================================================================
   STEP · one action in a journey, tinted with its actor's colour
   ========================================================================= */

.bv-step {
  background: color-mix(in srgb, var(--bv-color-blue) 7%, var(--bv-color-surface));
  border-radius: var(--bv-radius-md);
  padding: var(--bv-space-sm);
}

.bv-step__text {
  font-size: var(--bv-text-body-size);
  line-height: var(--bv-text-body-leading);
  color: var(--bv-color-blue);
  margin-top: var(--bv-space-2xs);
}

.bv-step--violet {
  background: color-mix(in srgb, var(--bv-color-violet) 7%, var(--bv-color-surface));
}
.bv-step--violet .bv-step__text {
  color: var(--bv-color-violet);
}

.bv-step--green {
  background: color-mix(in srgb, var(--bv-color-primary) 8%, var(--bv-color-surface));
}
.bv-step--green .bv-step__text {
  color: var(--bv-color-primary-deep);
}

/* The last step. Solid, because an outcome is not another step. */
.bv-step--outcome {
  background: var(--bv-color-primary-deep);
}
.bv-step--outcome .bv-step__text,
.bv-step--outcome .bv-tag__via {
  color: var(--bv-color-on-primary);
}
.bv-step--outcome .bv-tag {
  background: transparent;
  color: var(--bv-color-on-primary);
  border-color: rgb(255 255 255 / 0.4);
}

/* ============================================================================
   JOURNEY · the Horizon pattern: a white frame on the canvas, a continuous
   timeline with sparkle marks, one live column, the rest ghosted.
   ========================================================================= */

/* The white frame the whole journey sits in. */
.bv-frame {
  background: var(--bv-color-surface);
  border: 1px solid var(--bv-color-line-soft);
  border-radius: var(--bv-radius-2xl);
  padding: var(--bv-frame-padding);
}

.bv-frame__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--bv-space-lg);
  margin-bottom: var(--bv-space-md);
}

.bv-frame__controls {
  display: flex;
  align-items: center;
  gap: var(--bv-space-2xs);
  flex: none;
}

/* The filled control in the middle of prev / pause / next. */
.bv-arrow--solid {
  background: var(--bv-color-primary-deep);
  border-color: var(--bv-color-primary-deep);
  color: var(--bv-color-on-primary);
}

.bv-journey {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: var(--bv-space-sm);
}

.bv-journey__col {
  display: flex;
  flex-direction: column;
  gap: var(--bv-space-2xs);
  min-width: 0;
}

/* The label row. Each column draws its slice of the line half a gutter past
   its own edges, so the slices join into one continuous line. */
.bv-journey__when {
  font-size: var(--bv-text-small-size);
  line-height: var(--bv-text-small-leading);
  color: var(--bv-color-reading);
  text-align: center;
  position: relative;
  padding-bottom: var(--bv-space-lg);
  margin-bottom: var(--bv-space-xs);
}

.bv-journey__when::before {
  content: '';
  position: absolute;
  left: calc(var(--bv-space-sm) * -0.5);
  right: calc(var(--bv-space-sm) * -0.5);
  bottom: 9px;
  height: 1px;
  background: var(--bv-color-line);
}

.bv-journey__col:first-child .bv-journey__when::before {
  left: 0;
}

.bv-journey__col:last-child .bv-journey__when::before {
  right: 0;
}

/* The four-point sparkle sitting on the line. */
.bv-journey__when::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 11px;
  height: 11px;
  transform: translateX(-50%);
  background: var(--bv-color-line);
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
}

.bv-journey__when.is-active {
  color: var(--bv-color-blue);
}

.bv-journey__when.is-active::after {
  background: var(--bv-color-blue);
  width: 14px;
  height: 14px;
  bottom: 2px;
}

/* --- signal card ---------------------------------------------------------- */

.bv-journey__signal {
  background: var(--bv-color-surface);
  border: 1px solid var(--bv-color-line-soft);
  border-radius: var(--bv-radius-md);
  padding: var(--bv-space-md);
}

/* The live column's card lifts off the frame with a soft blue halo. */
.bv-journey__signal--active {
  border-color: transparent;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--bv-color-blue) 14%, transparent),
    0 10px 34px color-mix(in srgb, var(--bv-color-blue) 16%, transparent);
}

.bv-journey__signal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bv-space-xs);
  margin-bottom: var(--bv-space-xs);
}

.bv-journey__signal-key {
  font-size: var(--bv-text-small-size);
  color: var(--bv-color-reading);
}

/* The system tag in the card corner, e.g. the ledger the signal came from. */
.bv-journey__signal-tag {
  font-size: var(--bv-text-mock-sub-size);
  line-height: 1;
  font-weight: var(--bv-text-mock-weight);
  color: var(--bv-color-ink);
  background: var(--bv-color-surface);
  border: 1px solid var(--bv-color-line);
  border-radius: var(--bv-radius-full);
  padding: var(--bv-space-3xs) var(--bv-space-2xs);
}

.bv-journey__signal-title {
  font-size: var(--bv-text-lead-size);
  line-height: var(--bv-text-body-leading);
  color: var(--bv-color-ink);
}

/* The memory block under its hairline: what the agent keeps connected. */
.bv-journey__memory {
  border-top: 1px solid var(--bv-color-line-soft);
  margin-top: var(--bv-space-sm);
  padding-top: var(--bv-space-sm);
}

.bv-journey__memory-title {
  display: flex;
  align-items: center;
  gap: var(--bv-space-2xs);
  font-size: var(--bv-text-body-size);
  font-weight: var(--bv-text-subtitle-weight);
  color: var(--bv-color-ink);
  margin-bottom: var(--bv-space-2xs);
}

.bv-journey__memory-text {
  font-size: var(--bv-text-small-size);
  line-height: var(--bv-text-small-leading);
  color: var(--bv-color-reading);
}

/* A small ink sparkle, used before memory titles and agent names. */
.bv-sparkle {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: none;
  background: var(--bv-color-ink);
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
}

/* --- steps ---------------------------------------------------------------- */

/* Steps hang under the signal, indented, joined by a faint connector. */
.bv-journey__steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--bv-space-2xs);
  margin-left: var(--bv-space-lg);
  padding-top: var(--bv-space-2xs);
}

.bv-journey__steps::before {
  content: '';
  position: absolute;
  left: calc(var(--bv-space-sm) * -1);
  top: calc(var(--bv-space-2xs) * -1);
  bottom: var(--bv-space-md);
  width: 1px;
  background: var(--bv-color-line-soft);
}

/* --- ghosts --------------------------------------------------------------- */

/* A card whose time has not come. Deliberately empty of content: showing a
   journey honestly as unfinished beats inventing copy someone might read as
   a commitment. */
.bv-ghost {
  display: flex;
  flex-direction: column;
  gap: var(--bv-space-2xs);
  background: var(--bv-color-surface-sunk);
  border-radius: var(--bv-radius-md);
  padding: var(--bv-space-sm);
}

.bv-ghost > i {
  display: block;
  height: var(--bv-ghost-block-height);
  border-radius: var(--bv-radius-xs);
  background: var(--bv-color-ghost);
  width: var(--bv-w, 100%);
}

/* One tall block, then row pairs. */
.bv-ghost--tall {
  min-height: 200px;
  justify-content: flex-start;
}

.bv-ghost--row {
  padding: var(--bv-space-xs) var(--bv-space-sm);
}

.bv-ghost > i.dark {
  background: color-mix(in srgb, var(--bv-color-reading) 30%, var(--bv-color-ghost));
}

/* --- nested conversation -------------------------------------------------- */

.bv-chat {
  background: color-mix(in srgb, var(--bv-color-blue) 8%, var(--bv-color-surface));
  border-radius: var(--bv-radius-sm);
  padding: var(--bv-space-xs) var(--bv-space-sm);
  font-size: var(--bv-text-mock-sub-size);
  line-height: var(--bv-text-mock-leading);
  color: var(--bv-color-reading);
  margin-top: var(--bv-space-2xs);
}

.bv-chat--reply {
  background: var(--bv-color-surface);
  margin-left: var(--bv-space-md);
}

.bv-chat__who {
  display: flex;
  align-items: center;
  gap: var(--bv-space-3xs);
  font-weight: var(--bv-text-mock-weight);
  color: var(--bv-color-ink);
  margin-bottom: var(--bv-space-3xs);
}

.bv-chat__who .bv-sparkle {
  width: 8px;
  height: 8px;
}

/* ============================================================================
   META ROW · the channels and systems a journey touches
   ========================================================================= */

.bv-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--bv-space-sm);
  padding: var(--bv-space-sm) 0;
  border-top: 1px solid var(--bv-color-line-soft);
  border-bottom: 1px solid var(--bv-color-line-soft);
  font-size: var(--bv-text-small-size);
  color: var(--bv-color-reading);
  margin-bottom: var(--bv-space-lg);
}

.bv-meta__key {
  font-weight: var(--bv-text-subtitle-weight);
  color: var(--bv-color-ink);
}

.bv-meta__sep {
  width: 1px;
  height: 14px;
  background: var(--bv-color-line);
}

/* ============================================================================
   FEATURE LIST · label and description pairs down the side of an illustration
   ========================================================================= */

.bv-featurelist {
  display: flex;
  flex-direction: column;
  gap: var(--bv-space-lg);
}

.bv-featurelist__label {
  font-size: var(--bv-text-subtitle-size);
  line-height: var(--bv-text-subtitle-leading);
  font-weight: var(--bv-text-headline-weight);
  color: var(--bv-color-ink);
  margin-bottom: var(--bv-space-3xs);
}

.bv-featurelist__text {
  font-size: var(--bv-text-body-size);
  line-height: var(--bv-text-body-leading);
  color: var(--bv-color-reading);
  max-width: 42ch;
}

/* ============================================================================
   SPOTLIGHT · a dark panel introducing one thing, with a gradient tile
   ========================================================================= */

.bv-spotlight {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--bv-space-xl);
  align-items: center;
  background: var(--bv-gradient-panel-forest);
  border-radius: var(--bv-radius-2xl);
  padding: var(--bv-space-lg);
  color: var(--bv-color-on-panel);
}

.bv-spotlight__tile {
  aspect-ratio: 1 / 1;
  border-radius: var(--bv-radius-xl);
  background: var(--bv-gradient-panel-petrol);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bv-spotlight__title {
  font-size: var(--bv-text-headline-size);
  line-height: var(--bv-text-headline-leading);
  font-weight: var(--bv-text-headline-weight);
  letter-spacing: var(--bv-text-headline-tracking);
  color: var(--bv-color-on-panel);
  margin-bottom: var(--bv-space-sm);
}

.bv-spotlight__text {
  font-size: var(--bv-text-body-size);
  line-height: var(--bv-text-body-leading);
  color: color-mix(in srgb, var(--bv-color-on-panel) 82%, transparent);
  margin-bottom: var(--bv-space-md);
  max-width: 60ch;
}

/* A button that sits on a dark panel. */
.bv-btn--onpanel {
  background: rgb(255 255 255 / 0.14);
  color: var(--bv-color-on-panel);
  border: 1px solid rgb(255 255 255 / 0.22);
}

/* ============================================================================
   HIGHLIGHT · one card in a stack picked out in solid blue
   ========================================================================= */

.bv-highlight {
  background: var(--bv-color-blue);
  color: var(--bv-color-surface);
  border-radius: var(--bv-radius-md);
  padding: var(--bv-space-sm);
}

.bv-highlight__title {
  font-size: var(--bv-text-subtitle-size);
  font-weight: var(--bv-text-subtitle-weight);
  color: var(--bv-color-surface);
  margin-bottom: var(--bv-space-2xs);
}

.bv-highlight__line {
  font-size: var(--bv-text-small-size);
  line-height: var(--bv-text-small-leading);
  color: rgb(255 255 255 / 0.75);
}

@media (max-width: 900px) {
  .bv-journey,
  .bv-spotlight {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
  }
}

/* ============================================================================
   CENTERED SECTION HEAD · headline centred with a labelled pill under it.
   The reference sets the pill 40px tall with a hairline border and an icon;
   ours reuses the badge primitives with the section's key inside.
   ========================================================================= */

.bv-sectionhead--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--bv-space-md);
  margin-bottom: var(--bv-space-2xl);
}

.bv-sectionhead--center .bv-headline {
  margin-bottom: 0;
}

/* The labelled pill. Height comes from padding, not a fixed box, so a longer
   German label cannot clip. */
.bv-keypill {
  display: inline-flex;
  align-items: center;
  gap: var(--bv-space-2xs);
  font-size: var(--bv-text-small-size);
  line-height: 1;
  color: var(--bv-color-reading);
  border: 1px solid var(--bv-color-line);
  background: var(--bv-color-surface);
  border-radius: var(--bv-radius-full);
  padding: var(--bv-space-xs) var(--bv-space-md);
}

.bv-keypill .bv-dot {
  width: 13px;
  height: 13px;
}

/* ============================================================================
   WINDOW · an application window mock: header bar, then content. Lives on a
   tint, like every other mock. The reference nests it in a square panel.
   ========================================================================= */

.bv-window {
  background: var(--bv-color-surface);
  border: 1px solid var(--bv-color-line-soft);
  border-radius: var(--bv-radius-xl);
  overflow: hidden;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.07);
}

.bv-window__bar {
  display: flex;
  align-items: center;
  gap: var(--bv-space-2xs);
  padding: var(--bv-window-padding);
  border-bottom: 1px solid var(--bv-color-line-soft);
}

.bv-window__title {
  font-size: var(--bv-text-subtitle-size);
  font-weight: var(--bv-text-subtitle-weight);
  color: var(--bv-color-ink);
}

.bv-window__action {
  margin-left: auto;
  font-size: var(--bv-text-mock-size);
  font-weight: var(--bv-text-mock-weight);
  color: var(--bv-color-reading);
  border: 1px solid var(--bv-color-line);
  border-radius: var(--bv-radius-sm);
  padding: var(--bv-space-3xs) var(--bv-space-xs);
  background: var(--bv-color-surface);
}

.bv-window__body {
  padding: var(--bv-window-padding);
  display: flex;
  flex-direction: column;
  gap: var(--bv-space-xs);
}

/* A prompt bubble inside a window, tinted like a selected message. */
.bv-window__prompt {
  background: var(--bv-color-blue-bg);
  border: 1px solid color-mix(in srgb, var(--bv-color-blue) 20%, transparent);
  border-radius: var(--bv-radius-md);
  padding: var(--bv-space-sm);
  font-size: var(--bv-text-mock-size);
  line-height: var(--bv-text-mock-leading);
  color: var(--bv-color-blue);
}

/* Ghosted content lines inside a prompt or a list row. */
.bv-window__lines {
  display: flex;
  flex-direction: column;
  gap: var(--bv-space-3xs);
  margin-top: var(--bv-space-2xs);
}

.bv-window__lines > i {
  display: block;
  height: var(--bv-ghost-block-height);
  border-radius: var(--bv-radius-xs);
  background: color-mix(in srgb, var(--bv-color-blue) 22%, var(--bv-color-surface));
  width: var(--bv-w, 100%);
}

/* An input row pinned at the bottom of a window. */
.bv-window__input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bv-space-xs);
  border: 1px solid var(--bv-color-line);
  border-radius: var(--bv-radius-full);
  padding: var(--bv-space-xs) var(--bv-space-sm);
  font-size: var(--bv-text-mock-size);
  color: var(--bv-color-faint);
}

.bv-window__send {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: var(--bv-radius-sm);
  background: var(--bv-color-blue);
}

/* Square stage variant, matching the reference's 1:1 illustration panels. */
.bv-tint--square {
  aspect-ratio: 1 / 1;
}

.bv-feature__viz--square {
  height: auto;
  aspect-ratio: 1 / 1;
}

/* Inside a square feature box the mock sits centred. Add --crop to run it
   off the right edge, the way the reference crops its illustrations: a
   cropped card reads as a window onto something bigger. Never crop a card
   whose right edge carries meaning, a points pill or a day label. */
.bv-feature__viz--square > .bv-mock {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: var(--bv-space-md);
  right: var(--bv-space-md);
  bottom: auto;
}

.bv-feature__viz--square > .bv-mock--crop {
  right: calc(-1 * var(--bv-space-2xl));
}

/* ============================================================================
   PHOTO · photography panels. A photo never carries UI directly; interface
   sits on glass on top of it, and text always stands on a scrim.
   ========================================================================= */

.bv-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--bv-radius-2xl);
  background: var(--bv-color-surface-sunk);
}

.bv-photo > img,
.bv-photo > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Aspect variants. A banner spans the slide, a split sits in a half column. */
.bv-photo--banner {
  aspect-ratio: 21 / 9;
}
.bv-photo--banner > img,
.bv-photo--banner > video {
  position: absolute;
  inset: 0;
}
.bv-photo--split {
  aspect-ratio: 4 / 3;
}
.bv-photo--case {
  aspect-ratio: 2 / 1;
}
.bv-photo--case > img,
.bv-photo--case > video,
.bv-photo--split > img,
.bv-photo--split > video {
  position: absolute;
  inset: 0;
}

/* Scrims. Text on a photo is only legible over one of these. */
.bv-photo__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 0) 35%, rgb(0 0 0 / 0.55) 100%);
}

.bv-photo__scrim--left {
  background: linear-gradient(90deg, rgb(0 0 0 / 0.55) 0%, rgb(0 0 0 / 0.25) 45%, rgb(0 0 0 / 0) 70%);
}

.bv-photo__scrim--full {
  background: linear-gradient(180deg, rgb(0 0 0 / 0.35) 0%, rgb(0 0 0 / 0.55) 100%);
}

.bv-photo__content {
  position: absolute;
  inset: 0;
  padding: var(--bv-space-xl);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--bv-color-surface);
}

.bv-photo__content .bv-headline {
  max-width: 24ch;
}

/* A display headline on a photo wraps early, so it never runs under the
   glass card in the opposite corner. */
.bv-photo__content .bv-display {
  max-width: 18ch;
}

/* When the panel carries a pause control, the content clears it. */
.bv-photo:has(.bv-media-toggle) .bv-photo__content {
  padding-bottom: calc(var(--bv-space-xl) + 34px + var(--bv-space-sm));
}

.bv-photo__content .bv-display,
.bv-photo__content .bv-headline,
.bv-photo__content .bv-title {
  color: var(--bv-color-surface);
}

.bv-photo__content .bv-display .trail,
.bv-photo__content .bv-headline .trail {
  color: rgb(255 255 255 / 0.72);
}

/* The wordmark line at the top of a case panel. */
.bv-photo__brand {
  font-size: var(--bv-text-subtitle-size);
  font-weight: var(--bv-text-subtitle-weight);
  letter-spacing: var(--bv-text-subtitle-tracking);
}

/* A big number on a photo, the "time to live" moment. */
.bv-photo__stat {
  font-size: var(--bv-text-stat-size);
  line-height: var(--bv-text-stat-leading);
  font-weight: var(--bv-text-stat-weight);
  letter-spacing: var(--bv-text-stat-tracking);
  font-feature-settings: 'tnum' 1;
}

.bv-photo__stat-label {
  font-size: var(--bv-text-small-size);
  color: rgb(255 255 255 / 0.75);
  margin-top: var(--bv-space-3xs);
}

/* A glass card anchored to a photo corner, for the chat-over-photo moment. */
.bv-photo__glass {
  position: absolute;
  right: var(--bv-space-xl);
  bottom: var(--bv-space-xl);
  width: min(340px, 42%);
  display: flex;
  flex-direction: column;
  gap: var(--bv-space-2xs);
}

/* Dark glass, for cards standing on photographs. */
.bv-glass--dark {
  background: rgb(0 0 0 / 0.35);
  border-color: rgb(255 255 255 / 0.25);
  color: var(--bv-color-surface);
}

.bv-glass--dark .bv-glass__title,
.bv-glass--dark .bv-glass__line,
.bv-glass--dark .bv-glass__key {
  color: var(--bv-color-surface);
}

.bv-glass--dark .bv-glass__line {
  color: rgb(255 255 255 / 0.85);
}

.bv-glass--dark .bv-chat__who {
  color: var(--bv-color-surface);
}

.bv-glass--dark .bv-sparkle {
  background: var(--bv-color-surface);
}

/* Inline pagination dots for a case carousel. */
.bv-pagedots {
  display: flex;
  gap: var(--bv-space-2xs);
  margin-top: var(--bv-space-md);
}

.bv-pagedots > i {
  width: 6px;
  height: 6px;
  border-radius: var(--bv-radius-full);
  background: rgb(255 255 255 / 0.4);
}

.bv-pagedots > i.is-active {
  background: var(--bv-color-surface);
}

/* --- case cards ----------------------------------------------------------- */

/* A customer card: photo, light scrim, the partner's wordmark centred. */
.bv-casecard {
  position: relative;
  overflow: hidden;
  border-radius: var(--bv-radius-xl);
  aspect-ratio: 4 / 5;
}

.bv-casecard > img,
.bv-casecard > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bv-casecard::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.28);
}

.bv-casecard__logo {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bv-color-surface);
  font-size: var(--bv-text-title-size);
  font-weight: var(--bv-text-title-weight);
  letter-spacing: var(--bv-text-title-tracking);
}

.bv-casecard__label {
  position: absolute;
  left: var(--bv-space-md);
  bottom: var(--bv-space-md);
  z-index: 1;
  font-size: var(--bv-text-micro-size);
  font-weight: var(--bv-text-micro-weight);
  letter-spacing: var(--bv-text-micro-tracking);
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.85);
}

/* ============================================================================
   DASHBOARD · the analytics-window mock: sidebar, headline number, table
   ========================================================================= */

/* Dotted grid behind a window, so the stage reads as a canvas. */
.bv-dotgrid {
  background-image: radial-gradient(circle at 1px 1px, var(--bv-color-line) 1px, transparent 0);
  background-size: 22px 22px;
}

.bv-window__split {
  display: grid;
  grid-template-columns: 150px 1fr;
}

.bv-dashnav {
  border-right: 1px solid var(--bv-color-line-soft);
  padding: var(--bv-space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--bv-space-3xs);
}

.bv-dashnav__group {
  font-size: var(--bv-text-micro-size);
  font-weight: var(--bv-text-micro-weight);
  letter-spacing: var(--bv-text-micro-tracking);
  text-transform: uppercase;
  color: var(--bv-color-faint);
  margin: var(--bv-space-xs) 0 var(--bv-space-3xs);
}

.bv-dashnav__group:first-child {
  margin-top: 0;
}

.bv-dashnav__item {
  font-size: var(--bv-text-mock-size);
  font-weight: var(--bv-text-mock-sub-weight);
  color: var(--bv-color-reading);
  padding: var(--bv-space-3xs) var(--bv-space-2xs);
  border-radius: var(--bv-radius-sm);
}

.bv-dashnav__item.is-active {
  background: var(--bv-color-surface-sunk);
  color: var(--bv-color-ink);
  font-weight: var(--bv-text-mock-weight);
}

.bv-dashmain {
  padding: var(--bv-space-sm) var(--bv-space-md);
}

/* Next to the headline number the delta pill sits beside it, not pushed to
   the edge the way it is in a mock row. */
.bv-dashmain .bv-points {
  margin-left: 0;
}

/* Table deltas: growth in deep green, decline stays quiet grey. */
.bv-delta-up {
  color: var(--bv-color-primary-deep);
  font-feature-settings: 'tnum' 1;
}

.bv-delta-down {
  color: var(--bv-color-reading);
  font-feature-settings: 'tnum' 1;
}

/* ============================================================================
   DASHBOARD, PART 2 · the analytics window: question row, summary, chart
   card and topics card, follow-up input. Chart geometry is data and lives in
   the SVG path, colours come from tokens.
   ========================================================================= */

/* The question the window is answering, as its own row under the bar. */
.bv-window__query {
  padding: var(--bv-window-padding);
  border-bottom: 1px solid var(--bv-color-line-soft);
  font-size: var(--bv-text-body-size);
  color: var(--bv-color-ink);
}

.bv-window__summary-key {
  font-size: var(--bv-text-mock-sub-size);
  color: var(--bv-color-reading);
  margin-bottom: var(--bv-space-3xs);
}

.bv-window__summary {
  font-size: var(--bv-text-mock-size);
  font-weight: var(--bv-text-mock-sub-weight);
  line-height: var(--bv-text-mock-leading);
  color: var(--bv-color-faint);
}

/* The line chart. Stretchy SVG, stroke and fill from tokens. */
.bv-linechart {
  width: 100%;
  height: 88px;
  display: block;
}

.bv-linechart .line {
  fill: none;
  stroke: var(--bv-color-primary);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.bv-linechart .fill {
  fill: color-mix(in srgb, var(--bv-color-primary) 13%, transparent);
  stroke: none;
}

/* Tiny per-row trend, same marks at sparkline size. */
.bv-linechart--row {
  width: 44px;
  height: 14px;
  flex: none;
}

.bv-linechart--row.is-down .line {
  stroke: var(--bv-color-faint);
}

/* A topics list: divided rows of label, count, delta, trend. */
.bv-topics {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.bv-topics > li {
  display: flex;
  align-items: center;
  gap: var(--bv-space-sm);
  padding: var(--bv-space-xs) 0;
  border-bottom: 1px solid var(--bv-color-line-soft);
  font-size: var(--bv-text-mock-size);
  font-weight: var(--bv-text-mock-sub-weight);
  color: var(--bv-color-ink);
}

.bv-topics > li:last-child {
  border-bottom: 0;
}

.bv-topics .t-label {
  flex: 1;
}

.bv-topics .t-num {
  font-feature-settings: 'tnum' 1;
  color: var(--bv-color-primary-deep);
}

/* The follow-up row at the window's foot: input left, actions right. */
.bv-window__foot {
  display: flex;
  align-items: center;
  gap: var(--bv-space-xs);
  padding: var(--bv-window-padding);
  border-top: 1px solid var(--bv-color-line-soft);
}

.bv-window__foot .bv-window__input {
  flex: 1;
}

.bv-window__ask {
  flex: none;
  font-size: var(--bv-text-mock-size);
  font-weight: var(--bv-text-mock-weight);
  color: var(--bv-color-on-primary);
  background: var(--bv-color-blue);
  border: 0;
  border-radius: var(--bv-radius-sm);
  padding: var(--bv-space-2xs) var(--bv-space-sm);
}


/* ============================================================================
   VIDEO · moving image follows every photography rule, plus three of its own:
   silent, looping, and always carrying a pause affordance.
   ========================================================================= */

/* The pause control in a video panel's corner. Functional: the deck and docs
   scripts toggle the nearest video. */
.bv-media-toggle {
  position: absolute;
  left: var(--bv-space-xl);
  bottom: var(--bv-space-xl);
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: var(--bv-radius-full);
  background: var(--bv-color-surface);
  color: var(--bv-color-ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bv-media-toggle svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.bv-media-toggle .icon-play {
  display: none;
  fill: currentColor;
  stroke: none;
}

.bv-media-toggle.is-paused .icon-pause {
  display: none;
}

.bv-media-toggle.is-paused .icon-play {
  display: block;
}

/* --- story cards ---------------------------------------------------------- */

/* A testimonial as a portrait video card: wordmark up top, a play mark in
   the middle, the person underneath. */
.bv-storycard {
  position: relative;
  overflow: hidden;
  border-radius: var(--bv-radius-xl);
  aspect-ratio: 3 / 4;
}

.bv-storycard > video,
.bv-storycard > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bv-storycard::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.25) 0%, rgb(0 0 0 / 0) 30%, rgb(0 0 0 / 0) 55%, rgb(0 0 0 / 0.45) 100%);
}

.bv-storycard__brand {
  position: absolute;
  top: var(--bv-space-sm);
  left: var(--bv-space-sm);
  z-index: 1;
  color: var(--bv-color-surface);
  font-size: var(--bv-text-small-size);
  font-weight: var(--bv-text-subtitle-weight);
}

.bv-storycard__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: var(--bv-radius-full);
  background: rgb(255 255 255 / 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bv-storycard__play::after {
  content: '';
  width: 12px;
  height: 14px;
  margin-left: 3px;
  background: var(--bv-color-surface);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.bv-storycard__who {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--bv-space-sm);
  z-index: 1;
  text-align: center;
  color: var(--bv-color-surface);
}

.bv-storycard__name {
  font-size: var(--bv-text-body-size);
  font-weight: var(--bv-text-subtitle-weight);
}

.bv-storycard__role {
  font-size: var(--bv-text-small-size);
  color: rgb(255 255 255 / 0.8);
}

/* ============================================================================
   PHONE · a frosted phone frame standing on a photo or video panel. The
   panel stays a photograph; the interface lives on this glass.
   ========================================================================= */

.bv-phone {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 8%;
  bottom: -6%;
  width: var(--bv-phone-width);
  background: rgb(255 255 255 / 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: var(--bv-radius-3xl) var(--bv-radius-3xl) 0 0;
  border-bottom: 0;
  padding: var(--bv-space-md) var(--bv-space-md) 0;
  color: var(--bv-color-surface);
  overflow: hidden;
}

.bv-phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--bv-text-mock-size);
  font-weight: var(--bv-text-mock-weight);
  margin-bottom: var(--bv-space-lg);
}

.bv-phone__status-marks {
  display: flex;
  align-items: center;
  gap: var(--bv-space-3xs);
}

.bv-phone__status-marks > i {
  display: block;
  width: 12px;
  height: 5px;
  border-radius: var(--bv-radius-xs);
  background: rgb(255 255 255 / 0.85);
}

.bv-phone__status-marks > i:last-child {
  width: 18px;
  border: 1px solid rgb(255 255 255 / 0.85);
  background: rgb(255 255 255 / 0.55);
}

.bv-phone__msg {
  margin-bottom: var(--bv-space-md);
}

.bv-phone__who {
  display: flex;
  align-items: center;
  gap: var(--bv-space-2xs);
  font-size: var(--bv-text-small-size);
  color: rgb(255 255 255 / 0.85);
  margin-bottom: var(--bv-space-2xs);
}

/* The partner's mark in the conversation: a small solid rounded square. */
.bv-phone__logo {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: var(--bv-radius-sm);
  background: var(--bv-color-primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bv-phone__logo::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--bv-radius-full);
  background: var(--bv-color-surface);
}

.bv-phone__text {
  font-size: var(--bv-text-subtitle-size);
  font-weight: var(--bv-text-lead-weight);
  line-height: var(--bv-text-subtitle-leading);
  color: var(--bv-color-surface);
}

/* The solid detail card at the foot of the conversation. */
.bv-phone__card {
  background: var(--bv-color-surface);
  border-radius: var(--bv-radius-lg);
  padding: var(--bv-space-md);
  color: var(--bv-color-ink);
}

.bv-phone__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bv-space-xs);
  padding-bottom: var(--bv-space-sm);
  border-bottom: 1px solid var(--bv-color-line-soft);
  margin-bottom: var(--bv-space-sm);
}

.bv-phone__card-title {
  font-size: var(--bv-text-mock-size);
  font-weight: var(--bv-text-mock-weight);
  color: var(--bv-color-ink);
}

.bv-phone__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--bv-space-sm);
  font-size: var(--bv-text-mock-size);
  margin-bottom: var(--bv-space-2xs);
}

.bv-phone__row .k {
  color: var(--bv-color-reading);
  font-weight: var(--bv-text-mock-sub-weight);
}

.bv-phone__row .v {
  color: var(--bv-color-ink);
  font-weight: var(--bv-text-mock-weight);
  font-feature-settings: 'tnum' 1;
}

/* Strip mocks inside a mode viz stack below each other instead of
   overlapping. The staggered left/right rhythm is kept with margins. */
.bv-mode__viz {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--bv-space-xs);
  padding: var(--bv-space-md);
  height: auto;
  min-height: var(--bv-mode-viz-height);
}

.bv-mode__viz > .bv-mock--strip-a,
.bv-mode__viz > .bv-mock--strip-b,
.bv-mode__viz > .bv-mock--strip-a-alt,
.bv-mode__viz > .bv-mock--strip-b-alt {
  position: static;
}

.bv-mode__viz > .bv-mock--strip-a,
.bv-mode__viz > .bv-mock--strip-a-alt { margin-right: var(--bv-space-2xl); }

.bv-mode__viz > .bv-mock--strip-b,
.bv-mode__viz > .bv-mock--strip-b-alt { margin-left: var(--bv-space-2xl); }
