/* bv16.css — Beach Insurance Auto Service Repair (A4 Radial Coverage Compass Dial)
   Scoped strictly to .bv16-sec. WCAG 2.2 AA contrast, zero CLS, zero horizontal overflow at 390px. */

.bv16-sec .bv16-shell {
  background: linear-gradient(160deg, #FFFFFF 0%, #FBF8F3 52%, #EEF4FB 100%);
  border: 1px solid var(--bv-line);
  border-radius: 22px;
  box-shadow: var(--bv-shadow);
  padding: clamp(1rem, 2.4vw, 1.65rem);
  box-sizing: border-box;
}

.bv16-sec .bv16-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--bv-line);
}

.bv16-sec .bv16-lens-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  min-width: 0;
}

.bv16-sec .bv16-lens-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--bv-line-strong);
  background: #FFFFFF;
  color: var(--bv-navy);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.18s ease;
}

.bv16-sec .bv16-lens-btn:hover {
  border-color: var(--bv-blue);
  background: var(--bv-mist);
}

.bv16-sec .bv16-lens-btn[aria-pressed="true"][data-bv16-lens="steady"] {
  background: var(--bv-navy);
  border-color: var(--bv-navy);
  color: #FFFFFF;
}

.bv16-sec .bv16-lens-btn[aria-pressed="true"][data-bv16-lens="claim"] {
  background: var(--bv-gold);
  border-color: var(--bv-navy);
  color: var(--bv-navy);
}

.bv16-sec .bv16-lens-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.bv16-sec .bv16-lens-dot--steady {
  background: var(--bv-teal);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75);
}

.bv16-sec .bv16-lens-dot--claim {
  background: var(--bv-gold);
  border: 2px solid var(--bv-navy);
  box-sizing: border-box;
}

.bv16-sec .bv16-toolbar-note {
  min-width: 0;
}

.bv16-sec .bv16-compass-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--bv-sand);
  border: 1px solid var(--bv-line-strong);
  color: var(--bv-navy);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Main two-column grid */
.bv16-sec .bv16-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.95fr);
  gap: clamp(1rem, 2.5vw, 1.8rem);
  align-items: start;
}

.bv16-sec .bv16-stage-wrap {
  min-width: 0;
}

/* Locked aspect ratio prevents CLS */
.bv16-sec .bv16-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 560 / 440;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--bv-line);
  background: var(--bv-sand);
}

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

/* Wedge styling */
.bv16-sec .bv16-wedge {
  cursor: pointer;
}

.bv16-sec .bv16-wedge-arc {
  fill: #FFFFFF;
  fill-opacity: 0.88;
  stroke: #0D3B6E;
  stroke-opacity: 0.22;
  stroke-width: 1.5;
  transition: fill 0.25s ease, fill-opacity 0.25s ease, stroke 0.25s ease;
}

.bv16-sec .bv16-wedge:hover .bv16-wedge-arc {
  fill: #E4F5F0;
  fill-opacity: 0.98;
  stroke: #0B6B52;
  stroke-opacity: 0.6;
}

.bv16-sec .bv16-wedge-rim {
  stroke: #2E90D1;
  stroke-opacity: 0.35;
  transition: stroke 0.25s ease, stroke-opacity 0.25s ease;
}

.bv16-sec .bv16-wedge-tag {
  font-family: var(--bv-font);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  fill: #0D3B6E;
  pointer-events: none;
  transition: fill 0.25s ease;
}

/* Active wedge states via root data-active */
.bv16-sec[data-active="garagekeepers"] [data-bv16-wedge="garagekeepers"] .bv16-wedge-arc,
.bv16-sec[data-active="general"] [data-bv16-wedge="general"] .bv16-wedge-arc,
.bv16-sec[data-active="property"] [data-bv16-wedge="property"] .bv16-wedge-arc,
.bv16-sec[data-active="building"] [data-bv16-wedge="building"] .bv16-wedge-arc,
.bv16-sec[data-active="umbrella"] [data-bv16-wedge="umbrella"] .bv16-wedge-arc {
  fill: url(#bv16-navy-grad);
  fill-opacity: 1;
  stroke: #0D3B6E;
  stroke-opacity: 1;
}

.bv16-sec[data-active="garagekeepers"] [data-bv16-wedge="garagekeepers"] .bv16-wedge-rim,
.bv16-sec[data-active="general"] [data-bv16-wedge="general"] .bv16-wedge-rim,
.bv16-sec[data-active="property"] [data-bv16-wedge="property"] .bv16-wedge-rim,
.bv16-sec[data-active="building"] [data-bv16-wedge="building"] .bv16-wedge-rim,
.bv16-sec[data-active="umbrella"] [data-bv16-wedge="umbrella"] .bv16-wedge-rim {
  stroke: #D4A017;
  stroke-opacity: 1;
}

.bv16-sec[data-active="garagekeepers"] [data-bv16-wedge="garagekeepers"] .bv16-wedge-tag,
.bv16-sec[data-active="general"] [data-bv16-wedge="general"] .bv16-wedge-tag,
.bv16-sec[data-active="property"] [data-bv16-wedge="property"] .bv16-wedge-tag,
.bv16-sec[data-active="building"] [data-bv16-wedge="building"] .bv16-wedge-tag,
.bv16-sec[data-active="umbrella"] [data-bv16-wedge="umbrella"] .bv16-wedge-tag {
  fill: #0D3B6E;
}

/* Claim lens visual shift on SVG */
.bv16-sec .bv16-claim-pulse {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bv16-sec[data-lens="claim"] .bv16-claim-pulse {
  opacity: 1;
  animation: bv16-pulse 2.4s ease-in-out infinite;
}

.bv16-sec[data-lens="claim"] .bv16-spill-cue {
  fill: #D4A017;
  fill-opacity: 0.85;
}

/* Subtle GPU-composited living animations */
.bv16-sec .bv16-needle {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.bv16-sec .bv16-orbit-ring {
  transform-origin: 280px 220px;
  animation: bv16-spin 42s linear infinite;
}

.bv16-sec .bv16-lift-group {
  animation: bv16-lift 4.4s ease-in-out infinite;
}

.bv16-sec .bv16-wave--a {
  animation: bv16-drift 7s ease-in-out infinite;
}

.bv16-sec .bv16-wave--b {
  animation: bv16-drift 9s ease-in-out infinite reverse;
}

@keyframes bv16-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bv16-lift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}

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

@keyframes bv16-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

/* Accessible 44x44px overlay pins centered on wedge midpoints */
.bv16-sec .bv16-pin {
  position: absolute;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 2px solid var(--bv-navy);
  background: #FFFFFF;
  color: var(--bv-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px -6px rgba(13, 59, 110, 0.42);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.bv16-sec .bv16-pin:hover {
  background: var(--bv-teal-soft);
  border-color: var(--bv-teal-safe);
  transform: translate(-50%, -50%) scale(1.06);
}

.bv16-sec .bv16-pin[aria-pressed="true"] {
  background: var(--bv-gold);
  border-color: #FFFFFF;
  color: var(--bv-navy);
  box-shadow: 0 0 0 3px var(--bv-navy), 0 8px 18px -6px rgba(13, 59, 110, 0.48);
}

.bv16-sec .bv16-pin-num {
  line-height: 1;
}

/* Quick-select chips */
.bv16-sec .bv16-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.bv16-sec .bv16-chip {
  min-height: 44px;
  min-width: 44px;
  padding: 0.45rem 0.85rem;
  border-radius: 12px;
  border: 1.5px solid var(--bv-line-strong);
  background: #FFFFFF;
  color: var(--bv-navy);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bv16-sec .bv16-chip:hover {
  background: var(--bv-mist);
  border-color: var(--bv-blue);
}

.bv16-sec .bv16-chip[aria-pressed="true"] {
  background: var(--bv-teal-safe);
  border-color: var(--bv-teal-safe);
  color: #FFFFFF;
}

/* Editorial Readout Card */
.bv16-sec .bv16-readout {
  min-width: 0;
  background: #FFFFFF;
  border: 1px solid var(--bv-line);
  border-radius: 18px;
  padding: clamp(1rem, 2.2vw, 1.45rem);
  box-shadow: 0 8px 26px -18px rgba(13, 59, 110, 0.24);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.bv16-sec .bv16-readout-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.bv16-sec .bv16-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  background: var(--bv-teal-soft);
  color: var(--bv-teal-safe);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bv16-sec .bv16-lens-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.68rem;
  border-radius: 999px;
  background: var(--bv-mist);
  color: var(--bv-navy);
  font-size: 0.75rem;
  font-weight: 700;
}

.bv16-sec[data-lens="claim"] .bv16-lens-tag {
  background: var(--bv-gold-soft);
  color: var(--bv-gold-ink);
  border: 1px solid rgba(212, 160, 23, 0.45);
}

.bv16-sec .bv16-card-title {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--bv-navy);
}

.bv16-sec .bv16-card-lead {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--bv-body);
}

.bv16-sec .bv16-block {
  background: var(--bv-mist);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(21, 101, 168, 0.14);
}

.bv16-sec .bv16-block-label {
  margin: 0 0 0.45rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bv-navy);
}

.bv16-sec .bv16-list {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  font-size: 0.9rem;
  line-height: 1.48;
  color: var(--bv-body);
}

.bv16-sec .bv16-scenario-box {
  background: var(--bv-sand);
  border-left: 4px solid var(--bv-teal-safe);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.bv16-sec[data-lens="claim"] .bv16-scenario-box {
  background: var(--bv-gold-soft);
  border-left-color: var(--bv-gold);
}

.bv16-sec .bv16-scenario-label {
  margin: 0 0 0.3rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bv-teal-safe);
}

.bv16-sec[data-lens="claim"] .bv16-scenario-label {
  color: var(--bv-gold-ink);
}

.bv16-sec .bv16-scenario-copy {
  margin: 0;
  font-size: 0.91rem;
  line-height: 1.5;
  color: var(--bv-navy);
}

.bv16-sec .bv16-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.2rem;
}

.bv16-sec .bv16-nav-btn {
  flex: 1 1 130px;
  min-height: 44px;
  min-width: 44px;
  padding: 0.55rem 0.95rem;
  border-radius: 12px;
  border: 2px solid var(--bv-navy);
  background: #FFFFFF;
  color: var(--bv-navy);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.bv16-sec .bv16-nav-btn:hover {
  background: var(--bv-mist);
}

.bv16-sec .bv16-nav-btn--next {
  background: var(--bv-navy);
  color: #FFFFFF;
}

.bv16-sec .bv16-nav-btn--next:hover {
  background: var(--bv-blue);
  border-color: var(--bv-blue);
}

/* Responsive stacking — zero horizontal overflow at 390px */
@media (max-width: 920px) {
  .bv16-sec .bv16-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .bv16-sec .bv16-shell {
    padding: 0.85rem;
    border-radius: 18px;
  }
  .bv16-sec .bv16-chip {
    flex: 1 1 calc(50% - 0.5rem);
    text-align: center;
  }
}
