/* ==========================================================================
   IC7 — download.css
   Page-specific layout for download.html.
   Global components live in main.css — this file only extends and positions.
   Tokens only: never a raw hex value.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */
.download-hero__actions { margin-top: var(--space-6); }

.download-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

/* --------------------------------------------------------------------------
   2. Long-form copy on this page
   -------------------------------------------------------------------------- */
.download-prose { max-width: 72ch; }

.download-prose code {
  padding: 0.1em 0.4em;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--color-red-bright);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
}

/* Comparison cards */
.download-route__badge { align-self: flex-start; }

/* --------------------------------------------------------------------------
   3. Steps used as ordered lists
   -------------------------------------------------------------------------- */
.steps { list-style: none; }

/* --------------------------------------------------------------------------
   4. Safety warning block
   -------------------------------------------------------------------------- */
.download-warning {
  position: relative;
  padding: var(--space-6);
  padding-left: var(--space-7);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.download-warning::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--gradient-button);
  border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   5. Screenshot gallery (carousel.js contract)
   -------------------------------------------------------------------------- */
.shots {
  position: relative;
  margin-top: var(--space-6);
}

.shots__track {
  display: flex;
  gap: var(--space-5);
  padding-block: var(--space-2);
  padding-inline: var(--space-1);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.shots__track::-webkit-scrollbar { display: none; }

.shots__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.shots__track:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}

.shots__slide {
  flex: 0 0 auto;
  width: clamp(200px, 58vw, 260px);
  scroll-snap-align: start;
}

.shots__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 520 / 1161;
  object-fit: cover;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  user-select: none;
  -webkit-user-drag: none;
  transition:
    transform var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.shots__slide:hover .shots__img {
  transform: translateY(-6px);
  border-color: var(--color-red);
  box-shadow: var(--shadow-card-hover), var(--shadow-red-glow);
}

/* Fade edges — hint that the rail continues */
.shots::before,
.shots::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: var(--z-content);
  width: clamp(28px, 6vw, 72px);
  pointer-events: none;
}

.shots::before {
  left: 0;
  background: var(--gradient-fade-l);
}

.shots::after {
  right: 0;
  background: var(--gradient-fade-r);
}

/* Arrows */
.shots__controls {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.shots__arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--color-text-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  transition:
    color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-spring),
    opacity var(--dur-base) var(--ease-out);
}

.shots__arrow:hover:not(:disabled) {
  color: var(--color-white);
  border-color: var(--color-red);
  box-shadow: var(--shadow-red-glow);
  transform: scale(1.06);
}

.shots__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (min-width: 1024px) {
  .shots__controls {
    justify-content: flex-end;
  }
}

