/* "Color-Matched Tracks" (index.html) — a dark panel that pairs a roofline
   preview with a swatch palette. --track on .lux-match is set by color-match.js. */
.lux-match {
  --lux-gold: #c9a96e;
  --track: #c9a96e;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
  padding: clamp(14px, 2vw, 28px);
  border-radius: 28px;
  background:
    radial-gradient(90% 70% at 30% 40%, color-mix(in srgb, var(--track) 12%, transparent), transparent 65%),
    linear-gradient(180deg, #121212 0%, #0a0a0a 100%);
  box-shadow:
    0 40px 80px -40px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: #f4f1ea;
  transition: background 0.6s ease;
}

/* Preview */
.lux-match__preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 24px 16px 72px;
  border-radius: 20px;
  background: linear-gradient(180deg, #1b2230 0%, #0c0f15 100%);
  overflow: hidden;
}
.lux-match__roof { width: 100%; max-width: 560px; height: auto; }
.lux-match__wall { fill: #d9d4ca; opacity: 0.12; }
.lux-match__fascia { fill: var(--track); filter: brightness(0.85); transition: fill 0.4s ease; }
.lux-match__track { fill: var(--track); transition: fill 0.4s ease; }
.lux-match__pucks circle {
  fill: #fff1d6;
  filter: drop-shadow(0 0 6px rgba(255, 241, 214, 0.9));
}
.lux-match__caption {
  position: absolute;
  left: 20px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lux-match__eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lux-gold);
}
.lux-match__name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  color: #fff;
}

/* Swatches */
.lux-match__side { display: flex; flex-direction: column; gap: 28px; }
.lux-match__swatches {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.lux-match__swatch {
  position: relative;
  aspect-ratio: 1;
  border: 0;
  border-radius: 8px;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lux-match__swatch:hover { transform: translateY(-2px); }
.lux-match__swatch:focus-visible { outline: 2px solid var(--lux-gold); outline-offset: 2px; }
.lux-match__swatch[aria-checked="true"] {
  box-shadow:
    inset 0 0 0 2px var(--lux-gold),
    0 0 24px color-mix(in srgb, var(--sw) 60%, transparent);
}
.lux-match__swatch[aria-checked="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 34%;
  height: 18%;
  border-left: 2px solid var(--ink, #000);
  border-bottom: 2px solid var(--ink, #000);
  transform: translateY(-15%) rotate(-45deg);
}

/* Steps */
.lux-match__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.lux-match__steps li { display: flex; gap: 16px; }
.lux-match__steps span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--lux-gold);
  font-size: 14px;
  padding-top: 3px;
}
.lux-match__steps h3 { font-size: 18px; margin: 0 0 4px; color: #fff; }
.lux-match__steps p { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(244, 241, 234, 0.68); }

@media (max-width: 991.98px) {
  .lux-match { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .lux-match__preview { min-height: 220px; }
  .lux-match__swatches { gap: 6px; }
}
