.tint-viz {
  width: min(100%, 62rem);
  margin: 0 auto 3.75rem;
  text-align: center;
}

.tint-viz__title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.tint-viz__title span {
  color: #7bbb27;
}

.tint-viz__lead {
  max-width: 40rem;
  margin: 1rem auto 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.8;
  text-wrap: pretty;
}

.tint-viz__stage {
  position: relative;
  isolation: isolate;
  width: min(100%, 56rem);
  aspect-ratio: 2 / 1;
  margin: 2.25rem auto 0;
}

.tint-viz__stage::before {
  content: '';
  position: absolute;
  inset: -12% -6% -6%;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 55%, rgba(123, 187, 39, 0.17) 0%, rgba(123, 187, 39, 0) 62%);
  pointer-events: none;
}

.tint-viz__stage::after {
  content: '';
  position: absolute;
  right: 3%;
  bottom: -1%;
  left: 5%;
  z-index: 0;
  height: 10%;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(5px);
  pointer-events: none;
}

.tint-viz__car,
.tint-viz__glass {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tint-viz__car {
  z-index: 1;
  object-fit: contain;
}

.tint-viz__glass {
  z-index: 2;
  pointer-events: none;
}

.tint-viz__glass-tint {
  fill: #000000;
  opacity: var(--tint, 0);
  transition: opacity 480ms ease;
}

.tint-viz__glass-gloss {
  opacity: calc(var(--tint, 0) * 0.9);
  transition: opacity 480ms ease;
}

.tint-viz__options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  min-width: 0;
  margin: 2.25rem 0 0;
  padding: 0;
  border: 0;
}

.tint-viz__legend {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.tint-viz__option {
  position: relative;
  display: block;
}

.tint-viz__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.tint-viz__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.6rem;
  min-height: 2.9rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.tint-viz__option:hover .tint-viz__pill {
  border-color: rgba(123, 187, 39, 0.65);
  transform: translateY(-2px);
}

.tint-viz__option input:checked + .tint-viz__pill {
  border-color: rgba(123, 187, 39, 0.6);
  background: linear-gradient(135deg, rgba(123, 187, 39, 0.95) 0%, rgba(148, 211, 59, 0.98) 100%);
  color: #111111;
}

.tint-viz__option input:focus-visible + .tint-viz__pill {
  outline: 2px solid #8ac926;
  outline-offset: 3px;
}

.tint-viz__readout {
  min-height: 3.4rem;
  max-width: 40rem;
  margin: 1.5rem auto 0;
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.6;
}

.tint-viz__readout strong {
  color: #9bd63b;
  font-weight: 700;
}

.tint-viz__note {
  max-width: 40rem;
  margin: 0.75rem auto 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .tint-viz {
    margin-bottom: 3rem;
  }

  .tint-viz__options {
    gap: 0.5rem;
  }

  .tint-viz__pill {
    min-width: 3.7rem;
    padding-inline: 0.8rem;
  }

  .tint-viz__readout {
    min-height: 5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tint-viz__glass-tint,
  .tint-viz__glass-gloss,
  .tint-viz__pill {
    transition: none;
  }

  .tint-viz__option:hover .tint-viz__pill {
    transform: none;
  }
}
