/* cv03.css — Cornerstone Insurance Auto/Car Insurance (A2 Split-Curtain Comparator)
   Inland Piedmont Architectural Blueprint aesthetic. Strict cv03- prefix scoping, WCAG 2.2 AA, zero CLS. */

.cv03-root {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
}

.cv03-frame {
  background: #FFFFFF;
  border: 2px solid #0A1A33;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(10, 26, 51, 0.06), 0 18px 36px -20px rgba(10, 26, 51, 0.24);
  overflow: hidden;
  min-width: 0;
}

.cv03-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.9rem;
  padding: 0.65rem 1rem;
  background: #EFF2F5;
  border-bottom: 1.5px solid rgba(10, 26, 51, 0.18);
}

.cv03-side-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.62rem;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cv03-side-exposed {
  background: #FEF1EA;
  color: #B5420B;
  border: 1px solid rgba(181, 66, 11, 0.34);
}

.cv03-side-shield {
  background: #0A1A33;
  color: #FFFFFF;
  border: 1px solid #0A1A33;
}

.cv03-keystone-readout {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0A1A33;
}

/* Aspect-ratio locked stage: CLS = 0.000 */
.cv03-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 960 / 420;
  background: #EFF2F5;
  overflow: hidden;
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
}

.cv03-svg {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* GPU-composited architectural blueprint motion */
@keyframes cv03-lane-flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -40; }
}

@keyframes cv03-pulse-opacity {
  0%, 100% { opacity: 0.52; }
  50% { opacity: 1; }
}

@keyframes cv03-hail-drift {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -24; }
}

.cv03-root.cv03-motion-on .cv03-lane-dash {
  animation: cv03-lane-flow 2.4s linear infinite;
}

.cv03-root.cv03-motion-on .cv03-alert-pulse {
  animation: cv03-pulse-opacity 1.8s ease-in-out infinite;
}

.cv03-root.cv03-motion-on .cv03-shield-arc {
  animation: cv03-lane-flow 3.6s linear infinite;
}

.cv03-root.cv03-motion-on .cv03-hail {
  animation: cv03-hail-drift 1.2s linear infinite;
}

/* Draggable Curtain Handle (44x44px hit target) */
.cv03-handle-track {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cv03-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: #F26822;
  color: #0A1A33;
  border: 2.5px solid #0A1A33;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(10, 26, 51, 0.38);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.cv03-handle-arrows {
  display: block;
}

/* Controls Strip: 3 Preset Buttons + Accessible Range Slider */
.cv03-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.25rem;
  padding: 0.95rem 1.1rem;
  background: #F4F7FA;
  border-top: 1.5px solid rgba(10, 26, 51, 0.16);
}

.cv03-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cv03-preset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.95rem;
  border-radius: 6px;
  border: 1.5px solid #1C4A75;
  background: #FFFFFF;
  color: #0A1A33;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.cv03-preset:hover {
  background: #E8F2FA;
}

.cv03-preset[aria-pressed="true"] {
  background: #0A1A33;
  color: #FFFFFF;
  border-color: #0A1A33;
  box-shadow: inset 0 -3px 0 #F26822;
}

.cv03-slider-wrap {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cv03-slider-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1C4A75;
}

.cv03-slider-val {
  color: #0A1A33;
  font-weight: 800;
}

/* Accessible Range Slider with >=44px Handle */
.cv03-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.cv03-range::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, #FEF1EA 0%, #CBD5E1 48%, #1C4A75 100%);
  border: 1px solid rgba(10, 26, 51, 0.28);
}

.cv03-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 44px;
  margin-top: -18px;
  border-radius: 6px;
  background: #F26822;
  border: 2.5px solid #0A1A33;
  box-shadow: 0 3px 10px rgba(10, 26, 51, 0.28);
  cursor: grab;
}

.cv03-range::-moz-range-track {
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, #FEF1EA 0%, #CBD5E1 48%, #1C4A75 100%);
  border: 1px solid rgba(10, 26, 51, 0.28);
}

.cv03-range::-moz-range-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #F26822;
  border: 2.5px solid #0A1A33;
  box-shadow: 0 3px 10px rgba(10, 26, 51, 0.28);
  cursor: grab;
}

/* Synced 5-Coverage Architectural Spec Grid */
.cv03-badges-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.cv03-badge {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: #FFFFFF;
  border: 1.5px solid rgba(10, 26, 51, 0.18);
  border-top: 4px solid #1C4A75;
  border-radius: 8px;
  padding: 0.85rem 0.9rem;
  min-width: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cv03-badge[data-state="exposed"] {
  border-top-color: #F26822;
  background: #FFFDFB;
}

.cv03-badge[data-state="shielded"] {
  border-top-color: #1C4A75;
  background: #FFFFFF;
}

.cv03-badge-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.cv03-badge-cat {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
}

.cv03-badge-status {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cv03-badge[data-state="shielded"] .cv03-badge-status {
  background: #E8F2FA;
  color: #0A1A33;
  border: 1px solid #2E72AC;
}

.cv03-badge[data-state="exposed"] .cv03-badge-status {
  background: #FEF1EA;
  color: #B5420B;
  border: 1px solid rgba(181, 66, 11, 0.36);
}

.cv03-badge-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.25;
  color: #0A1A33;
}

.cv03-badge-copy {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.48;
  color: #334155;
}

@media (max-width: 1040px) {
  .cv03-badges-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .cv03-badges-grid {
    grid-template-columns: 1fr;
  }
  .cv03-topbar {
    padding: 0.55rem 0.75rem;
  }
  .cv03-keystone-readout {
    order: 3;
    width: 100%;
    text-align: center;
  }
  .cv03-controls {
    padding: 0.8rem;
  }
  .cv03-presets {
    width: 100%;
  }
  .cv03-preset {
    flex: 1 1 auto;
    padding: 0.5rem 0.6rem;
    font-size: 0.82rem;
  }
}
