/* downloads.html: the two programs side by side. The cards are content, so
   they are solid, as the home page's doors are; the header pill stays the one
   translucent surface (main.css). On a wide screen the cards share their rows
   through subgrid, so each row starts at the same height in both and the page
   reads across like a comparison. On a phone they stack, Concept Scanner
   first. */
.downloads {
  padding-top: 0;
}

.dl-hero {
  padding: var(--space-7) 0 var(--space-6);
  text-align: center;
}
.dl-hero h1 {
  font-size: var(--text-display);
  max-width: 18ch;
  margin: 0 auto var(--space-4);
}
.dl-lead {
  max-width: 40rem;
  margin: 0 auto;
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--fg-2);
}

.dl-choose {
  padding-bottom: var(--space-7);
}
.dl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.dl-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-raised);
}
/* Seven rows: audience, name, screenshot, what you get, facts, the button,
   the first thing to do. */
@media (min-width: 60rem) {
  .dl-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(7, auto);
    row-gap: 0;
  }
  .dl-card {
    display: grid;
    grid-row: span 7;
    grid-template-rows: subgrid;
    row-gap: var(--space-4);
  }
}

.dl-card > * {
  margin: 0;
}
.dl-audience {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple);
}
.dl-name h2 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xl);
}
.dl-pitch {
  margin: 0;
  font-size: var(--text-md);
  line-height: var(--leading-body);
  color: var(--fg-2);
}

/* The screenshot sits in its own area, never behind text. Both are cut to the
   same shape, from the top, so the rows below start level. A nested box takes
   the outer radius less the card's padding, floored at --radius-min. */
.dl-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 692;
  object-fit: cover;
  object-position: top left;
  border: 1px solid var(--border);
  border-radius: max(calc(var(--radius-xl) - var(--space-3)), var(--radius-min));
  background: var(--bg-subtle);
}
.dl-shot figcaption {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--fg-muted);
}

.dl-gets {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: 0;
  list-style: none;
}
.dl-gets li {
  position: relative;
  padding-left: 1.5rem;
  line-height: var(--leading-body);
  color: var(--fg-2);
}
.dl-gets li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.6em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--cyan-text);
}

.dl-facts {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}
.dl-facts div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: var(--space-3);
}
.dl-facts dt {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--fg);
}
.dl-facts dd {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  color: var(--fg-2);
}

/* The one accent-filled control in each card. Motion is feedback only, and
   only for readers who have not asked for less of it (main.css's .btn moves
   on hover; this keeps that and adds nothing on arrival). */
.dl-action {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.dl-action .btn {
  display: inline-flex;
  justify-content: center;
  text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  .dl-action .btn,
  .dl-action .btn:hover {
    transition: none;
    transform: none;
  }
}
.dl-free {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  color: var(--fg-muted);
}
.dl-free strong {
  color: var(--fg);
}
.dl-first {
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  color: var(--fg-2);
}

/* Readers who ask for more contrast get firmer edges. */
@media (prefers-contrast: more) {
  .dl-card,
  .dl-shot img,
  .dl-facts {
    border-color: var(--border-strong);
  }
}

/* How the two meet: three steps, numbered by the list itself. */
.dl-bridge {
  padding: var(--space-6) 0 var(--space-7);
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}
.dl-bridge h2 {
  margin: 0 0 var(--space-5);
  text-align: center;
  font-size: var(--text-2xl);
}
.dl-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: dl-step;
}
.dl-steps li {
  counter-increment: dl-step;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  line-height: var(--leading-body);
  color: var(--fg-2);
}
.dl-steps li::before {
  content: counter(dl-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: var(--space-3);
  border-radius: 50%;
  background: var(--purple-fill);
  color: var(--on-dark);
  font-weight: 700;
}
.dl-steps strong {
  color: var(--fg);
}
.dl-more {
  margin: var(--space-5) 0 0;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--fg-muted);
}
