/* partners.beatvest.com — website layout on top of the beatvest design tokens.
 * Colors, type and spacing come from css/beatvest-tokens.css (generated from
 * beatvest-design/DESIGN.md). This file only arranges them for the web. */

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

/* beatvest-slides.css is built for decks: it clips body and fixes the height.
   A website scrolls, so both are re-opened here. */
html { scroll-behavior: smooth; height: auto; }

body {
  overflow: visible;
  height: auto;
  background: var(--bv-color-bg);
  color: var(--bv-color-ink);
  font-family: var(--bv-font-sans);
  font-size: 15px;
  line-height: 25px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--bv-space-lg);
}

/* --- nav ------------------------------------------------------ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--bv-color-line-soft);
}

.nav:not(.scrolled):not(.menu-open) .nav-logo img { filter: brightness(0) invert(1); }
.nav:not(.scrolled):not(.menu-open) .nav-links a:not(.btn) { color: rgba(255, 255, 255, 0.85); }
.nav:not(.scrolled):not(.menu-open) .nav-links a:not(.btn):hover { color: #ffffff; }
.nav:not(.scrolled):not(.menu-open) .nav-links a.btn-primary {
  background: var(--bv-color-surface);
  color: var(--bv-color-ink);
}

.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  gap: var(--bv-space-xl);
}

.nav-logo img { height: 22px; width: auto; }

.nav-links {
  display: flex;
  gap: var(--bv-space-lg);
  margin-left: auto;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  color: var(--bv-color-reading);
}

.nav-links a:hover { color: var(--bv-color-ink); }

.nav-links a.btn-primary { color: var(--bv-color-on-primary); }

/* --- buttons -------------------------------------------------- */

.btn {
  display: inline-block;
  border-radius: var(--bv-radius-full);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  cursor: pointer;
}

.btn-primary {
  background: var(--bv-color-primary-deep);
  color: var(--bv-color-on-primary);
}

.btn-primary:hover { background: var(--bv-color-primary); }

.btn-ghost {
  border: 1px solid var(--bv-color-line);
  color: var(--bv-color-ink);
}

.btn-ghost:hover { border-color: var(--bv-color-ink); }

.btn-lg { padding: 13px 26px; font-size: 15px; line-height: 20px; }

/* --- hero ----------------------------------------------------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-vid { opacity: 0; transition: opacity 0.8s ease; }
.hero-vid.on { opacity: 1; }

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15, 15, 14, 0.55) 0%, rgba(15, 15, 14, 0.28) 55%, rgba(15, 15, 14, 0.08) 100%);
}

.hero-content {
  position: relative;
  width: 100%;
}

.hero-copy { color: var(--bv-color-surface); max-width: 640px; }

.hero-cards {
  position: absolute;
  right: var(--bv-space-2xl);
  bottom: var(--bv-space-2xl);
  width: min(440px, 40vw);
  display: flex;
  flex-direction: column;
  gap: var(--bv-space-sm);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 30%);
}

.hero-card {
  background: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--bv-radius-xl);
  padding: 16px 20px 17px;
  color: var(--bv-color-surface);
  animation: card-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: opacity 0.7s ease;
}

.hero-card.right { margin-left: var(--bv-space-2xl); }
.hero-card:not(.right) { margin-right: var(--bv-space-2xl); }

.hero-card[data-age="1"] { opacity: 0.55; }
.hero-card[data-age="2"] { opacity: 0.22; }
.hero-card[data-age="3"] { opacity: 0; }

.hero-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 6px;
}

.hero-avatar {
  width: 22px;
  height: 22px;
  border-radius: var(--bv-radius-full);
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  color: #ffffff;
}

.av-mark {
  width: 17px;
  height: 17px;
  border-radius: 0;
  background: transparent url('../assets/logo/beatvest-mark-white.svg') center / contain no-repeat;
}

.av-user { background: var(--bv-color-avatar-a); }

.hero-card-body {
  font-size: 17px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.012em;
  color: #ffffff;
}

.hero-card .progress { margin-top: 12px; }
.hero-card .progress { background: rgba(255, 255, 255, 0.25); }
.hero-card .streak-days { margin-top: 12px; }
.hero-card .streak-days i { background: rgba(255, 255, 255, 0.28); }
.hero-card .streak-days i.on { background: var(--bv-color-primary); }

@keyframes card-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card { animation: none; }
  .hero-vid { transition: none; }
}

.btn-light { background: var(--bv-color-surface); color: var(--bv-color-ink); }
.btn-light:hover { background: rgba(255, 255, 255, 0.88); }

.btn-ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--bv-color-surface);
}

.btn-ghost-light:hover { border-color: var(--bv-color-surface); }

.video-pause {
  position: absolute;
  right: var(--bv-space-md);
  bottom: var(--bv-space-md);
  width: 36px;
  height: 36px;
  border-radius: var(--bv-radius-full);
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--bv-color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.video-pause:hover { background: var(--bv-color-surface); }

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

.hero-headline {
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.08;
  font-weight: 300;
  letter-spacing: -0.028em;
  margin-bottom: var(--bv-space-lg);
}

.hero-headline strong { font-weight: 500; }

.hero-sub {
  color: var(--bv-color-reading);
  max-width: 480px;
  margin-bottom: var(--bv-space-xl);
}

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

/* --- gradient panel + glass ----------------------------------- */

.panel {
  border-radius: var(--bv-radius-2xl);
  padding: var(--bv-space-xl);
  color: var(--bv-color-on-panel);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.07);
  position: relative;
}

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

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

.glass-dark {
  background: rgba(15, 15, 14, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--bv-color-surface);
}

.glass-dark .mark-label { color: rgba(255, 255, 255, 0.65); }
.glass-dark .mark-sub { color: rgba(255, 255, 255, 0.8); }
.glass-dark .progress { background: rgba(255, 255, 255, 0.25); }
.glass-dark .streak-days i { background: rgba(255, 255, 255, 0.28); }
.glass-dark .streak-days i.on { background: var(--bv-color-primary); }

/* --- product marks -------------------------------------------- */

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

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

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

.progress {
  height: 5px;
  border-radius: var(--bv-radius-full);
  background: rgba(15, 15, 14, 0.1);
  margin-top: 9px;
  overflow: hidden;
}

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

.streak-days { display: flex; gap: 4px; margin-top: 9px; }

.streak-days i {
  height: 8px;
  flex: 1;
  border-radius: var(--bv-radius-xs);
  background: rgba(15, 15, 14, 0.12);
}

.streak-days i.on { background: var(--bv-color-primary); }

.pill {
  display: inline-block;
  border-radius: var(--bv-radius-full);
  padding: 3px 9px;
  font-size: var(--bv-text-micro-size);
  font-weight: var(--bv-text-micro-weight);
  letter-spacing: var(--bv-text-micro-tracking);
  line-height: var(--bv-text-micro-leading);
  text-transform: uppercase;
}

.pill-green { background: var(--bv-color-primary-bg); color: var(--bv-color-primary-deep); }
.pill-gold { background: var(--bv-color-gold-bg); color: var(--bv-color-gold); }
.pill-blue { background: var(--bv-color-blue-bg); color: var(--bv-color-blue); }
.pill-violet { background: var(--bv-color-violet-bg); color: var(--bv-color-violet); }

/* --- trust bar ------------------------------------------------- */

.trust { padding: var(--bv-space-2xl) 0 var(--bv-space-3xl); }

.trust-label {
  text-align: center;
  font-size: var(--bv-text-label-size);
  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-lg);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bv-space-xs);
  justify-content: center;
}

.chip {
  border: 1px solid var(--bv-color-line-soft);
  border-radius: var(--bv-radius-full);
  padding: 7px 14px;
  font-size: 12px;
  line-height: 18px;
  color: var(--bv-color-reading);
  white-space: nowrap;
}

.chip strong { font-weight: 500; color: var(--bv-color-ink); }

/* --- shared section scaffolding -------------------------------- */

.section { padding: var(--bv-space-3xl) 0; }

.section-eyebrow {
  font-size: var(--bv-text-label-size);
  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);
}

.section-headline {
  font-size: clamp(28px, 3.2vw, 34px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.025em;
  max-width: 640px;
  margin-bottom: var(--bv-space-sm);
}

.section-headline strong { font-weight: 500; }

.section-sub {
  color: var(--bv-color-reading);
  max-width: 560px;
  margin-bottom: var(--bv-space-xl);
}

.hairline { border: 0; border-top: 1px solid var(--bv-color-line-soft); }

.section-alt { border-top: 1px solid var(--bv-color-line-soft); border-bottom: 1px solid var(--bv-color-line-soft); }

/* --- products (layout only; components come from beatvest-slides.css) --- */

.prod-grid { margin-top: var(--bv-space-xl); row-gap: var(--bv-space-2xl); }

.prod-panel {
  padding: var(--bv-space-2xl);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prod-window { width: min(400px, 100%); }

.prod-caption { margin-top: var(--bv-space-md); }

.product-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }

.product-mark { width: 14px; height: 14px; filter: brightness(0); }

.product-name {
  font-size: var(--bv-text-subtitle-size);
  font-weight: var(--bv-text-subtitle-weight);
  letter-spacing: var(--bv-text-subtitle-tracking);
}

.product-stage { color: var(--bv-color-muted); font-size: var(--bv-text-small-size); }

.tile-grid { margin-top: var(--bv-space-xl); }

/* --- results ---------------------------------------------------- */

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--bv-space-lg);
  margin: var(--bv-space-xl) 0;
}

.bench { margin-top: var(--bv-space-lg); display: grid; gap: var(--bv-space-md); max-width: 640px; }

.bench-label { font-size: 13px; font-weight: 500; margin-bottom: 6px; }

.bench-bar { display: flex; align-items: center; gap: 10px; margin-top: 4px; }

.bench-bar i {
  display: block;
  height: 8px;
  width: calc(var(--bv-fill) * 0.6);
  min-width: 8px;
  border-radius: var(--bv-radius-xs);
  background: var(--bv-color-primary);
}

.bench-bar.ghost i { background: var(--bv-color-ghost); }

.bench-bar span { font-size: var(--bv-text-small-size); color: var(--bv-color-reading); white-space: nowrap; }

.source {
  color: var(--bv-color-faint);
  font-size: var(--bv-text-small-size);
  line-height: var(--bv-text-small-leading);
  margin-top: var(--bv-space-xl);
}

/* --- cta + footer ---------------------------------------------------- */

.cta-panel { text-align: center; padding: var(--bv-space-4xl) var(--bv-space-2xl); }

.cta-headline {
  font-size: var(--bv-text-display-sm-size);
  line-height: var(--bv-text-display-sm-leading);
  font-weight: var(--bv-text-display-sm-weight);
  letter-spacing: var(--bv-text-display-sm-tracking);
  max-width: 560px;
  margin: 0 auto var(--bv-space-sm);
}

.cta-sub { color: rgba(255, 255, 255, 0.8); margin-bottom: var(--bv-space-xl); }

.footer { border-top: 1px solid var(--bv-color-line-soft); padding: var(--bv-space-2xl) 0 var(--bv-space-lg); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--bv-space-xl);
}

.footer-tag { color: var(--bv-color-muted); font-size: 13px; line-height: 20px; margin-top: 12px; max-width: 260px; }

.footer-head {
  font-size: var(--bv-text-label-size);
  font-weight: var(--bv-text-label-weight);
  letter-spacing: var(--bv-text-label-tracking);
  text-transform: uppercase;
  color: var(--bv-color-muted);
  margin-bottom: 10px;
}

.footer-grid a { display: block; font-size: 13px; color: var(--bv-color-reading); padding: 4px 0; }
.footer-grid a:hover { color: var(--bv-color-ink); }

.footer-bottom {
  border-top: 1px solid var(--bv-color-line-soft);
  margin-top: var(--bv-space-xl);
  padding-top: var(--bv-space-md);
  color: var(--bv-color-faint);
  font-size: var(--bv-text-small-size);
}

/* --- responsive ------------------------------------------------ */

@media (max-width: 900px) {
  .hero-cards {
    right: var(--bv-space-lg);
    left: var(--bv-space-lg);
    bottom: var(--bv-space-lg);
    width: auto;
  }
  .hero-cards .glass:last-child { margin-left: 0; }
  .nav-links a:not(.btn) { display: none; }
  .product { grid-template-columns: 1fr; gap: var(--bv-space-lg); }
  .product.rev .product-copy { order: 1; }
  .product.rev .product-viz { order: 2; }
  .stats-row { grid-template-columns: 1fr; gap: var(--bv-space-md); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bv-cols--2, .bv-cols--3, .bv-cols--4 { grid-template-columns: 1fr; }
}

/* --- customers page: user stories -------------------------------- */

.stats-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stories { overflow: hidden; }

.stories-head { text-align: center; }
.stories-headline { max-width: none; }
.stories-sub { margin-left: auto; margin-right: auto; }

.stories-track {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: var(--bv-space-md) max(calc((100vw - 1120px) / 2), var(--bv-space-lg)) var(--bv-space-sm);
  scrollbar-width: none;
}

.stories-track::-webkit-scrollbar { display: none; }

.story-card {
  position: relative;
  flex: none;
  width: clamp(260px, 26vw, 350px);
  aspect-ratio: 3 / 4;
  border-radius: var(--bv-radius-xl);
  overflow: hidden;
  background: var(--bv-color-ink);
  scroll-snap-align: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
}

.story-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-brand {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 3;
}

.story-brand img {
  height: 15px;
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 1px 6px rgba(0, 0, 0, 0.35));
}

.story-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(15, 15, 14, 0.12) 0%, rgba(15, 15, 14, 0) 30%, rgba(15, 15, 14, 0) 55%, rgba(15, 15, 14, 0.62) 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.story-play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: var(--bv-radius-full);
  background: rgba(15, 15, 14, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.25s ease;
}

.story-play svg { width: 22px; height: 22px; margin-left: 2px; }

.story-card:hover .story-play { background: rgba(15, 15, 14, 0.65); transform: translate(-50%, -50%) scale(1.06); }

/* The centered card is the featured one: larger, autoplaying muted. */
.story-card { transition: width 0.35s ease, box-shadow 0.35s ease; }

.story-card.is-center {
  width: clamp(320px, 33vw, 440px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

.story-meta {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  color: #ffffff;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.story-name { font-size: 17px; font-weight: 500; line-height: 24px; }

.story-role { font-size: 12px; line-height: 18px; color: rgba(255, 255, 255, 0.75); }

.story-card.playing .story-play,
.story-card.playing .story-meta,
.story-card.playing .story-scrim { opacity: 0; }

.story-card.playing .story-play { pointer-events: none; }

.stories-nav {
  display: flex;
  justify-content: flex-end;
  gap: var(--bv-space-xs);
  margin-top: var(--bv-space-lg);
}

.stories-arrow {
  width: 40px;
  height: 40px;
  border-radius: var(--bv-radius-full);
  border: 1px solid var(--bv-color-line);
  background: var(--bv-color-surface);
  color: var(--bv-color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.stories-arrow:hover { border-color: var(--bv-color-ink); }

.stories-arrow svg { width: 18px; height: 18px; }

.story-quote { text-align: center; max-width: 720px; margin: 0 auto; }

.story-quote blockquote {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.3;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.story-quote em { font-style: italic; }

.story-quote figcaption {
  margin-top: var(--bv-space-md);
  color: var(--bv-color-muted);
  font-size: 13px;
}

video::cue {
  background: rgba(15, 15, 14, 0.72);
  color: #ffffff;
  font-family: var(--bv-font-sans);
  font-size: 15px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .stats-row--4 { grid-template-columns: 1fr 1fr; }
  .story-card { width: 76vw; }
}

/* --- subpage heroes (product and case study detail pages) ------------- */

.page-hero { padding: calc(64px + var(--bv-space-3xl)) 0 var(--bv-space-2xl); }

.page-headline {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: -0.026em;
  max-width: 720px;
  margin-bottom: var(--bv-space-md);
}

.page-headline strong { font-weight: 500; }

.page-sub { color: var(--bv-color-reading); max-width: 560px; margin-bottom: var(--bv-space-lg); }

.prod-window--wide { width: min(480px, 100%); }

.crumb {
  font-size: var(--bv-text-small-size);
  color: var(--bv-color-muted);
  margin-bottom: var(--bv-space-md);
}

.crumb a:hover { color: var(--bv-color-ink); }

/* --- nav dropdowns (Sierra-style) -------------------------------------- */

.nav-item { position: relative; display: flex; align-items: center; height: 64px; }

.nav-drop {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bv-color-surface);
  border: 1px solid var(--bv-color-line-soft);
  border-radius: var(--bv-radius-xl);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
  padding: var(--bv-space-md);
  width: 560px;
  grid-template-columns: 1fr 1fr;
  gap: var(--bv-space-3xs);
}

.nav-item:hover .nav-drop,
.nav-item:focus-within .nav-drop { display: grid; }

.nav-drop__item {
  display: block;
  padding: var(--bv-space-sm) var(--bv-space-md);
  border-radius: var(--bv-radius-md);
}

.nav-drop__item:hover { background: var(--bv-color-surface-sunk); }

.nav-drop__item span {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 21px;
  color: var(--bv-color-ink);
  margin-bottom: 2px;
}

.nav-drop__item small {
  display: block;
  font-size: 12.5px;
  line-height: 18px;
  color: var(--bv-color-reading);
}

.nav:not(.scrolled) .nav-drop .nav-drop__item span { color: var(--bv-color-ink); }
.nav:not(.scrolled) .nav-drop .nav-drop__item small { color: var(--bv-color-reading); }

@media (max-width: 900px) {
  .nav-item { display: none; }
}

/* --- demo / contact form ------------------------------------------------ */

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--bv-space-3xl);
  align-items: start;
}

.form-card {
  background: var(--bv-color-surface);
  border: 1px solid var(--bv-color-line-soft);
  border-radius: var(--bv-radius-xl);
  padding: var(--bv-space-2xl);
}

.form-card__head {
  text-align: center;
  font-size: var(--bv-text-headline-sm-size);
  line-height: var(--bv-text-headline-sm-leading);
  font-weight: var(--bv-text-headline-sm-weight);
  letter-spacing: var(--bv-text-headline-sm-tracking);
  max-width: 22ch;
  margin: 0 auto var(--bv-space-xl);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--bv-space-sm); }

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

.form-field label {
  display: block;
  font-size: var(--bv-text-small-size);
  color: var(--bv-color-reading);
  margin-bottom: 5px;
}

.form-field input,
.form-field select {
  width: 100%;
  font-family: var(--bv-font-sans);
  font-size: 14px;
  line-height: 20px;
  color: var(--bv-color-ink);
  background: var(--bv-color-surface);
  border: 1px solid var(--bv-color-line);
  border-radius: var(--bv-radius-sm);
  padding: 11px 14px;
  appearance: none;
  -webkit-appearance: none;
}

.form-field input::placeholder { color: var(--bv-color-faint); }

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--bv-color-primary-deep);
  box-shadow: 0 0 0 3px var(--bv-color-primary-bg);
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238A8886' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-note {
  text-align: center;
  font-size: var(--bv-text-small-size);
  line-height: var(--bv-text-small-leading);
  color: var(--bv-color-muted);
  margin: var(--bv-space-lg) auto;
  max-width: 40ch;
}

.form-note a { text-decoration: underline; }

.form-submit { display: block; margin: 0 auto; border: 0; min-width: 160px; text-align: center; }

@media (max-width: 900px) {
  .demo-grid { grid-template-columns: 1fr; gap: var(--bv-space-xl); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* --- case study facts band ---------------------------------------------- */

.facts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--bv-space-lg);
  border-top: 1px solid var(--bv-color-line-soft);
  border-bottom: 1px solid var(--bv-color-line-soft);
  padding: var(--bv-space-lg) 0;
  margin: var(--bv-space-xl) 0;
}

.facts-row .fact-label {
  font-size: var(--bv-text-micro-size);
  font-weight: var(--bv-text-micro-weight);
  letter-spacing: var(--bv-text-micro-tracking);
  line-height: var(--bv-text-micro-leading);
  text-transform: uppercase;
  color: var(--bv-color-muted);
  margin-bottom: 5px;
}

.facts-row .fact-value {
  font-size: var(--bv-text-subtitle-size);
  font-weight: var(--bv-text-subtitle-weight);
  letter-spacing: var(--bv-text-subtitle-tracking);
  line-height: 21px;
}

.facts-row .fact-value a:hover { color: var(--bv-color-primary-deep); }

/* --- compact feature viz for case pages --------------------------------- */

.viz-short { height: 260px; }

.viz-short > .bv-mock {
  position: absolute;
  left: var(--bv-space-lg);
  right: var(--bv-space-lg);
  top: 50%;
  transform: translateY(-50%);
}

.viz-short > .bv-mock--crop { right: calc(-1 * var(--bv-space-xl)); }

/* --- mobile navigation --------------------------------------------------- */

.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex: none;
}

.nav-burger i {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--bv-color-ink);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav:not(.scrolled):not(.menu-open) .nav-burger i { background: #ffffff; }

.nav.menu-open .nav-burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.menu-open .nav-burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.nav.menu-open {
  background: var(--bv-color-bg);
  border-bottom-color: var(--bv-color-line-soft);
}

.mobile-menu {
  position: fixed;
  inset: 64px 0 0 0;
  z-index: 49;
  background: var(--bv-color-bg);
  overflow-y: auto;
  padding: var(--bv-space-lg) var(--bv-space-lg) var(--bv-space-3xl);
  display: none;
}

.mobile-menu.open { display: block; }

.mobile-menu h3 {
  font-size: var(--bv-text-label-size);
  font-weight: var(--bv-text-label-weight);
  letter-spacing: var(--bv-text-label-tracking);
  text-transform: uppercase;
  color: var(--bv-color-muted);
  margin: var(--bv-space-lg) 0 var(--bv-space-2xs);
}

.mobile-menu a {
  display: block;
  padding: 11px 0;
  font-size: 16px;
  line-height: 22px;
  color: var(--bv-color-ink);
  border-bottom: 1px solid var(--bv-color-line-soft);
}

.mobile-menu .btn { border-bottom: 0; text-align: center; margin-top: var(--bv-space-lg); }

@media (max-width: 900px) {
  .nav-burger { display: block; }
  .nav-links a:not(.btn) { display: none; }

  /* spacing on small screens */
  .section { padding: var(--bv-space-2xl) 0; }
  .page-hero { padding: calc(64px + var(--bv-space-2xl)) 0 var(--bv-space-xl); }
  .cta-panel { padding: var(--bv-space-2xl) var(--bv-space-lg); }
  .prod-panel { padding: var(--bv-space-lg); min-height: 0; }
  .form-card { padding: var(--bv-space-lg); }
  .facts-row { gap: var(--bv-space-md); }
  .bv-photo--banner { aspect-ratio: 16 / 10; }
  .footer-brand { grid-column: 1 / -1; }
  .viz-short { height: 230px; }
  .hero-cards { width: auto; }
}

@media (max-width: 900px) {
  .nav-links { gap: var(--bv-space-sm); }
  .nav-links .btn { white-space: nowrap; padding: 8px 14px; font-size: 12px; }
}

/* --- industry photo cards (Sierra customer-grid style) ------------------ */

.ind-photo { aspect-ratio: 4 / 3; display: block; }

.ind-photo .bv-photo__content {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.ind-photo .ind-name {
  font-size: 23px;
  line-height: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #ffffff;
  max-width: 16ch;
}

.ind-photo .ind-help {
  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: rgba(255, 255, 255, 0.85);
  margin-top: 9px;
}

@media (max-width: 900px) {
  .bv-feature__viz--square { aspect-ratio: auto; height: 240px; }
}

/* --- legal pages --------------------------------------------------------- */

.legal-prose .container { max-width: 760px; }

.legal-prose h2 {
  font-size: var(--bv-text-headline-sm-size);
  line-height: var(--bv-text-headline-sm-leading);
  font-weight: var(--bv-text-headline-sm-weight);
  letter-spacing: var(--bv-text-headline-sm-tracking);
  margin: var(--bv-space-xl) 0 var(--bv-space-xs);
}

.legal-prose h3 {
  font-size: var(--bv-text-title-size);
  line-height: var(--bv-text-title-leading);
  font-weight: var(--bv-text-title-weight);
  margin: var(--bv-space-lg) 0 var(--bv-space-2xs);
}

.legal-prose p {
  color: var(--bv-color-reading);
  font-size: 14px;
  line-height: 23px;
  margin-bottom: var(--bv-space-sm);
  overflow-wrap: break-word;
}

.legal-prose a { text-decoration: underline; }
.legal-prose a:hover { color: var(--bv-color-primary-deep); }

/* --- cookie banner -------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  left: var(--bv-space-md);
  right: var(--bv-space-md);
  bottom: var(--bv-space-md);
  z-index: 60;
  margin: 0 auto;
  max-width: 680px;
  background: var(--bv-color-surface);
  border: 1px solid var(--bv-color-line-soft);
  border-radius: var(--bv-radius-xl);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
  padding: var(--bv-space-md) var(--bv-space-lg);
  display: flex;
  align-items: center;
  gap: var(--bv-space-lg);
}

.cookie-banner p {
  font-size: 13px;
  line-height: 19px;
  color: var(--bv-color-reading);
  margin: 0;
  flex: 1;
}

.cookie-banner p a { text-decoration: underline; }

.cookie-banner .cookie-actions { display: flex; gap: var(--bv-space-xs); flex: none; }

@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner .cookie-actions { justify-content: center; }
}
