/* bv07.css — Beach Insurance Pet Insurance (A3 Journey Ribbon)
   Coastal Carolinas sunlit editorial: organic rounded frames, sea-glass teal AA (#0B6B52),
   ocean navy (#0D3B6E), driftwood sand (#F5F0E8), warm sun gold (#D4A017 w/ navy ink). */

.bv07-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));
  padding: clamp(0.9rem, 2.2vw, 1.45rem);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}

.bv07-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 960 / 360;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(13, 59, 110, 0.12);
  background: #EEF4FB;
}

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

/* Progress ribbon stroke reveal tied to active step */
.bv07-ribbon-progress {
  stroke-dasharray: 100;
  stroke-dashoffset: 84;
  transition: stroke-dashoffset 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.bv07-sec[data-step="0"] .bv07-ribbon-progress { stroke-dashoffset: 82; }
.bv07-sec[data-step="1"] .bv07-ribbon-progress { stroke-dashoffset: 52; }
.bv07-sec[data-step="2"] .bv07-ribbon-progress { stroke-dashoffset: 24; }
.bv07-sec[data-step="3"] .bv07-ribbon-progress { stroke-dashoffset: 0; }

.bv07-ribbon-flow {
  animation: bv07-dash 16s linear infinite;
}

.bv07-sun-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: bv07-breathe 5.5s ease-in-out infinite;
}

.bv07-wave-1 {
  animation: bv07-drift 8s ease-in-out infinite alternate;
}

.bv07-wave-2 {
  animation: bv07-drift 10s ease-in-out infinite alternate-reverse;
}

.bv07-tail {
  transform-box: fill-box;
  transform-origin: 100% 100%;
  animation: bv07-wag 1.4s ease-in-out infinite alternate;
}

.bv07-beacon {
  transform-box: fill-box;
  transform-origin: left center;
  animation: bv07-glow 3.6s ease-in-out infinite;
}

.bv07-station {
  opacity: 0.78;
  transition: opacity 0.32s ease, transform 0.32s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.bv07-halo {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.32s ease;
}

.bv07-sec[data-step="0"] .bv07-st-0,
.bv07-sec[data-step="1"] .bv07-st-1,
.bv07-sec[data-step="2"] .bv07-st-2,
.bv07-sec[data-step="3"] .bv07-st-3 {
  opacity: 1;
}

.bv07-sec[data-step="0"] .bv07-st-0 .bv07-halo,
.bv07-sec[data-step="1"] .bv07-st-1 .bv07-halo,
.bv07-sec[data-step="2"] .bv07-st-2 .bv07-halo,
.bv07-sec[data-step="3"] .bv07-st-3 .bv07-halo {
  opacity: 0.22;
  animation: bv07-pulse 2.6s ease-in-out infinite;
}

.bv07-rate-bar {
  transition: width 0.35s ease;
}

/* Horizontal 4-milestone connected progress rail */
.bv07-rail-wrap {
  position: relative;
  min-width: 0;
}

.bv07-rail-line {
  display: none;
}

@media (min-width: 768px) {
  .bv07-rail-line {
    display: block;
    position: absolute;
    left: 12%;
    right: 12%;
    top: 26px;
    height: 4px;
    border-radius: 999px;
    background: #DCE8F4;
    z-index: 0;
    overflow: hidden;
  }
  .bv07-rail-fill {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0D3B6E 0%, #1565A8 45%, #0B6B52 100%);
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .bv07-sec[data-step="0"] .bv07-rail-fill { width: 0%; }
  .bv07-sec[data-step="1"] .bv07-rail-fill { width: 34%; }
  .bv07-sec[data-step="2"] .bv07-rail-fill { width: 68%; }
  .bv07-sec[data-step="3"] .bv07-rail-fill { width: 100%; }
}

.bv07-rail {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  min-width: 0;
}

@media (min-width: 520px) {
  .bv07-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .bv07-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
  }
}

.bv07-step-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 0.65rem 0.85rem;
  border-radius: 16px;
  border: 1.5px solid rgba(13, 59, 110, 0.16);
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFD 100%);
  color: var(--bv-navy, #0D3B6E);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.bv07-step-btn:hover {
  border-color: var(--bv-blue, #1565A8);
  background: #EEF4FB;
}

.bv07-step-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, #0D3B6E 0%, #1565A8 100%);
  border-color: #0D3B6E;
  color: #FFFFFF;
  box-shadow: 0 10px 22px -14px rgba(13, 59, 110, 0.72);
}

.bv07-step-num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  background: #E4F5F0;
  color: #0B6B52;
  border: 1px solid rgba(11, 107, 82, 0.22);
}

.bv07-step-btn[aria-pressed="true"] .bv07-step-num {
  background: #D4A017;
  color: #0D3B6E;
  border-color: #D4A017;
}

.bv07-step-meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.bv07-step-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0B6B52;
}

.bv07-step-btn[aria-pressed="true"] .bv07-step-tag {
  color: #F8DF8E;
}

.bv07-step-label {
  font-size: 0.87rem;
  font-weight: 700;
  line-height: 1.25;
  color: inherit;
}

/* Concise Narrative Strip + Illustrative Math Split */
.bv07-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: clamp(1rem, 2.2vw, 1.35rem);
  border-radius: 18px;
  background: linear-gradient(135deg, #F5F0E8 0%, #EEF4FB 100%);
  border: 1px solid rgba(13, 59, 110, 0.14);
  min-width: 0;
}

@media (min-width: 900px) {
  .bv07-story {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
    gap: 1.4rem;
  }
}

.bv07-story-main {
  min-width: 0;
}

.bv07-story-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #0B6B52;
  margin-bottom: 0.35rem;
}

.bv07-story-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--bv-navy, #0D3B6E);
}

.bv07-story-copy {
  margin: 0 0 0.75rem;
  font-size: 0.94rem;
  line-height: 1.56;
  color: var(--bv-body, #334155);
}

.bv07-story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.bv07-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid rgba(13, 59, 110, 0.16);
  color: #0D3B6E;
  font-size: 0.78rem;
  font-weight: 700;
}

.bv07-math-box {
  background: #FFFFFF;
  border: 1px solid rgba(13, 59, 110, 0.15);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  min-width: 0;
}

.bv07-math-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.bv07-math-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0D3B6E;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bv07-rate-toggle {
  display: inline-flex;
  gap: 0.35rem;
}

.bv07-rate-btn {
  min-height: 44px;
  min-width: 72px;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1.5px solid rgba(13, 59, 110, 0.25);
  background: #F5F8FC;
  color: #0D3B6E;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bv07-rate-btn:hover {
  background: #E4F5F0;
  border-color: #0B6B52;
  color: #0B6B52;
}

.bv07-rate-btn[aria-pressed="true"] {
  background: #0B6B52;
  border-color: #0B6B52;
  color: #FFFFFF;
}

.bv07-math-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

@media (max-width: 440px) {
  .bv07-math-grid {
    grid-template-columns: 1fr;
  }
}

.bv07-math-cell {
  background: #F7FAFD;
  border: 1px solid rgba(13, 59, 110, 0.12);
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
  min-width: 0;
}

.bv07-math-cell-hi {
  background: #E4F5F0;
  border-color: rgba(11, 107, 82, 0.32);
}

.bv07-math-k {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 0.18rem;
}

.bv07-math-cell-hi .bv07-math-k {
  color: #0B6B52;
}

.bv07-math-v {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0D3B6E;
}

.bv07-math-cell-hi .bv07-math-v {
  color: #0B6B52;
}

.bv07-math-note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #475569;
}

@keyframes bv07-dash {
  to { stroke-dashoffset: -120; }
}

@keyframes bv07-breathe {
  0%, 100% { transform: scale(1); opacity: 0.16; }
  50% { transform: scale(1.1); opacity: 0.28; }
}

@keyframes bv07-drift {
  0% { transform: translateX(-6px); }
  100% { transform: translateX(6px); }
}

@keyframes bv07-wag {
  0% { transform: rotate(-10deg); }
  100% { transform: rotate(12deg); }
}

@keyframes bv07-glow {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.45; }
}

@keyframes bv07-pulse {
  0%, 100% { transform: scale(0.95); opacity: 0.14; }
  50% { transform: scale(1.08); opacity: 0.28; }
}
