/* bv06.css — Beach Insurance LLC: Generations Horizon Life & LTC Ribbon (Archetype A3)
   Strictly scoped to .bv06-* | Coastal Carolinas sunlit editorial | WCAG 2.2 AA | Zero CLS */

.bv06-shell {
  background: var(--bv-paper, #FFFFFF);
  border: 1px solid var(--bv-line, rgba(13, 59, 110, 0.14));
  border-radius: 22px;
  box-shadow: var(--bv-shadow, 0 18px 40px -18px rgba(13, 59, 110, 0.18));
  overflow: hidden;
  box-sizing: border-box;
}

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

/* Locked aspect-ratio stage container prevents CLS = 0.000 */
.bv06-stage-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 960 / 360;
  background: linear-gradient(180deg, #DCEBF8 0%, #F5F0E8 64%, #0D3B6E 100%);
  overflow: hidden;
}

.bv06-svg {
  display: block;
  width: 100%;
  height: auto;
}

.bv06-stage-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.95rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(13, 59, 110, 0.18);
  color: #0D3B6E;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px -6px rgba(13, 59, 110, 0.3);
  pointer-events: none;
}

.bv06-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0B6B52;
  flex: 0 0 auto;
}

/* Stage-driven SVG visual transitions (GPU-composited opacity & transform) */
.bv06-sky-squall,
.bv06-sky-golden,
.bv06-squall-layer,
.bv06-light-beam,
.bv06-shield-dome,
.bv06-payout-streams,
.bv06-legacy-emblem {
  transition: opacity 0.45s ease, transform 0.55s ease;
}

.bv06-ribbon-progress {
  transition: stroke-dashoffset 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.bv06-sun-group,
.bv06-sailboat {
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

/* Default Stage 0: Setup — Calm Coastal Morning */
.bv06-shell[data-stage="0"] .bv06-sky-squall,
.bv06-shell[data-stage="0"] .bv06-sky-golden,
.bv06-shell[data-stage="0"] .bv06-squall-layer,
.bv06-shell[data-stage="0"] .bv06-light-beam,
.bv06-shell[data-stage="0"] .bv06-payout-streams,
.bv06-shell[data-stage="0"] .bv06-legacy-emblem {
  opacity: 0;
}
.bv06-shell[data-stage="0"] .bv06-shield-dome {
  opacity: 0.25;
}
.bv06-shell[data-stage="0"] .bv06-sailboat {
  opacity: 0.78;
  transform: translateX(-18px);
}
.bv06-shell[data-stage="0"] .bv06-node-0 .bv06-node-ring {
  opacity: 0.55;
  animation: bv06-pulse 2.6s ease-in-out infinite;
}

/* Stage 1: Incident — Unexpected Squall */
.bv06-shell[data-stage="1"] .bv06-sky-squall {
  opacity: 0.88;
}
.bv06-shell[data-stage="1"] .bv06-sky-golden,
.bv06-shell[data-stage="1"] .bv06-light-beam,
.bv06-shell[data-stage="1"] .bv06-payout-streams,
.bv06-shell[data-stage="1"] .bv06-legacy-emblem {
  opacity: 0;
}
.bv06-shell[data-stage="1"] .bv06-sun-group {
  opacity: 0.28;
  transform: translateY(14px);
}
.bv06-shell[data-stage="1"] .bv06-squall-layer {
  opacity: 1;
}
.bv06-shell[data-stage="1"] .bv06-shield-dome {
  opacity: 0.14;
}
.bv06-shell[data-stage="1"] .bv06-badge-dot {
  background: #D4A017;
}
.bv06-shell[data-stage="1"] .bv06-node-1 .bv06-node-ring {
  opacity: 0.6;
  animation: bv06-pulse 2.2s ease-in-out infinite;
}

/* Stage 2: Policy Trigger — Lighthouse Beam & Living Benefits Activate */
.bv06-shell[data-stage="2"] .bv06-sky-squall {
  opacity: 0.36;
}
.bv06-shell[data-stage="2"] .bv06-sky-golden,
.bv06-shell[data-stage="2"] .bv06-squall-layer,
.bv06-shell[data-stage="2"] .bv06-legacy-emblem {
  opacity: 0;
}
.bv06-shell[data-stage="2"] .bv06-light-beam,
.bv06-shell[data-stage="2"] .bv06-shield-dome,
.bv06-shell[data-stage="2"] .bv06-payout-streams {
  opacity: 1;
}
.bv06-shell[data-stage="2"] .bv06-lantern-core {
  animation: bv06-lantern 2s ease-in-out infinite;
}
.bv06-shell[data-stage="2"] .bv06-flow-line {
  animation: bv06-dash 1.8s linear infinite;
}
.bv06-shell[data-stage="2"] .bv06-node-2 .bv06-node-ring {
  opacity: 0.6;
  animation: bv06-pulse 2.2s ease-in-out infinite;
}

/* Stage 3: Recovery — Golden Horizon & Steady Shores */
.bv06-shell[data-stage="3"] .bv06-sky-squall,
.bv06-shell[data-stage="3"] .bv06-squall-layer,
.bv06-shell[data-stage="3"] .bv06-light-beam {
  opacity: 0;
}
.bv06-shell[data-stage="3"] .bv06-sky-golden,
.bv06-shell[data-stage="3"] .bv06-shield-dome,
.bv06-shell[data-stage="3"] .bv06-legacy-emblem {
  opacity: 1;
}
.bv06-shell[data-stage="3"] .bv06-payout-streams {
  opacity: 0.85;
}
.bv06-shell[data-stage="3"] .bv06-sun-group {
  transform: translateY(-6px);
}
.bv06-shell[data-stage="3"] .bv06-sailboat {
  opacity: 1;
  transform: translateX(22px);
}
.bv06-shell[data-stage="3"] .bv06-node-3 .bv06-node-ring {
  opacity: 0.65;
  animation: bv06-pulse 2.4s ease-in-out infinite;
}

/* Subtle ambient coastal motion */
.bv06-wave-a {
  animation: bv06-drift-x 7s ease-in-out infinite alternate;
}
.bv06-wave-b {
  animation: bv06-drift-x 9s ease-in-out infinite alternate-reverse;
}
.bv06-rain-lines {
  animation: bv06-rain 1.1s linear infinite;
}

@keyframes bv06-drift-x {
  from { transform: translateX(-12px); }
  to { transform: translateX(12px); }
}

@keyframes bv06-rain {
  0% { transform: translate(0, -4px); opacity: 0.35; }
  50% { opacity: 0.95; }
  100% { transform: translate(-6px, 8px); opacity: 0.35; }
}

@keyframes bv06-dash {
  from { stroke-dashoffset: 28; }
  to { stroke-dashoffset: 0; }
}

@keyframes bv06-pulse {
  0%, 100% { transform: scale(1); transform-box: fill-box; transform-origin: center; }
  50% { transform: scale(1.26); transform-box: fill-box; transform-origin: center; }
}

@keyframes bv06-lantern {
  0%, 100% { opacity: 0.78; }
  50% { opacity: 1; }
}

/* Connected 4-Milestone Progress Rail */
.bv06-rail-wrap {
  position: relative;
  padding: 1.2rem 1.25rem 1.05rem;
  background: linear-gradient(180deg, #F5F0E8 0%, #EEF4FB 100%);
  border-top: 1px solid rgba(13, 59, 110, 0.12);
  border-bottom: 1px solid rgba(13, 59, 110, 0.12);
}

.bv06-rail-track {
  position: absolute;
  top: 2.55rem;
  left: 3rem;
  right: 3rem;
  height: 4px;
  border-radius: 999px;
  background: rgba(13, 59, 110, 0.14);
  overflow: hidden;
  pointer-events: none;
}

.bv06-rail-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #1565A8 0%, #0B6B52 60%, #D4A017 100%);
  transform-origin: left center;
  transform: scaleX(0.12);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.bv06-rail {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.bv06-step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 44px;
  min-height: 56px;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 2px solid rgba(13, 59, 110, 0.18);
  border-radius: 16px;
  background: #FFFFFF;
  color: #0D3B6E;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.bv06-step:hover {
  border-color: #1565A8;
  background: #F9FCFF;
  transform: translateY(-1px);
}

.bv06-step.bv06-is-active {
  background: #0D3B6E;
  border-color: #0D3B6E;
  color: #FFFFFF;
  box-shadow: 0 10px 22px -12px rgba(13, 59, 110, 0.55);
}

.bv06-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: #EEF4FB;
  color: #0D3B6E;
  font-size: 0.78rem;
  font-weight: 800;
}

.bv06-step.bv06-is-active .bv06-step-num {
  background: #D4A017;
  color: #0D3B6E;
}

.bv06-step-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bv06-step-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0B6B52;
  line-height: 1.2;
}

.bv06-step.bv06-is-active .bv06-step-kicker {
  color: #F6CE5B;
}

.bv06-step-label {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

/* Concise Narrative Strip */
.bv06-narrative {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1.3rem 1.4rem 1.45rem;
  background: #FFFFFF;
}

.bv06-narr-main {
  min-width: 0;
}

.bv06-narr-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.bv06-narr-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: #0B6B52;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bv06-narr-focus {
  font-size: 0.8rem;
  font-weight: 700;
  color: #664904;
  background: #FDF6E3;
  border: 1px solid rgba(212, 160, 23, 0.42);
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
}

.bv06-narr-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.06rem, 1.8vw, 1.28rem);
  font-weight: 800;
  line-height: 1.26;
  color: #0D3B6E;
}

.bv06-narr-body {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: #334155;
}

.bv06-narr-chips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  min-width: 0;
}

.bv06-chip {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.62rem 0.85rem;
  border-radius: 14px;
  background: #F5F0E8;
  border: 1px solid rgba(13, 59, 110, 0.12);
}

.bv06-chip-k {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0D3B6E;
}

.bv06-chip-v {
  font-size: 0.85rem;
  line-height: 1.38;
  color: #334155;
}

/* Responsive stacking — zero horizontal overflow down to 390px */
@media (max-width: 860px) {
  .bv06-rail-track {
    display: none;
  }
  .bv06-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bv06-narrative {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .bv06-rail-wrap {
    padding: 0.9rem 0.85rem;
  }
  .bv06-rail {
    gap: 0.55rem;
  }
  .bv06-step {
    padding: 0.5rem 0.6rem;
    gap: 0.5rem;
  }
  .bv06-step-num {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }
  .bv06-step-label {
    font-size: 0.82rem;
  }
  .bv06-narrative {
    padding: 1rem 0.95rem 1.15rem;
  }
  .bv06-stage-badge {
    top: 0.55rem;
    left: 0.55rem;
    font-size: 0.68rem;
    padding: 0.26rem 0.6rem;
  }
}
