/* ==========================================================================
   Signature element — the live-slot grid. See
   docs/design/01-marketing-site-visual-identity.md §3-4 for rationale: this
   is the product's own schedule-slot concept (open / booked / near-full)
   turned into brand art, replacing generic stock photography. The ONLY
   ambient/looping animation on the page (design doc §3, motion restraint) —
   everything else on the page responds to user action, this alone breathes.
   ========================================================================== */

.slot-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.4rem;
  width: min(85vw, 420px);
}

.slot-grid--ambient {
  width: min(85vw, 520px);
  grid-template-columns: repeat(12, 1fr);
  opacity: 0.85;
}

.slot-grid__cell {
  aspect-ratio: 1;
  border-radius: 4px;
  border: 1px solid var(--ink-800);
  background: transparent;
  opacity: 0;
  animation: slot-cell-in 0.5s var(--ease-standard) forwards;
  animation-delay: calc(var(--i) * 25ms);
  transition: background 0.8s var(--ease-standard), border-color 0.8s var(--ease-standard), box-shadow 0.8s var(--ease-standard);
}

@keyframes slot-cell-in {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

.slot-grid__cell--open {
  border-color: var(--signal-cyan-dim);
  background: rgba(34, 211, 238, 0.15);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}

.slot-grid__cell--booked {
  border-color: var(--brand-magenta);
  background: rgba(217, 70, 239, 0.18);
}

.slot-grid__cell--urgent {
  border-color: var(--urgency-amber);
  background: rgba(251, 191, 36, 0.2);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .slot-grid__cell {
    opacity: 1;
    animation: none;
    transform: none;
  }
}

@media (max-width: 640px) {
  .slot-grid--ambient {
    grid-template-columns: repeat(8, 1fr);
  }
}
