/* The download page. Loaded after scrollcraft.css and site.css: the bar, the beta form and the footer come from there.
   A paper page of tiles: a label tile at the start of each row, then one tile per version. */
.dl-page { background: var(--paper); color: var(--paper-ink); color-scheme: light; --tile: #E8E1D6; --soft: #5F5B66; --gap: .5rem; }
.dl-page .bar { grid-template-columns: 1fr auto; }
.dl { padding: 4.1rem var(--gap) 1.5rem; display: grid; gap: var(--gap); }
.dl-tile { background: var(--tile); border-radius: 14px; }

/* ---------- top ---------- */
.dl-hero { padding: clamp(3rem, 9vw, 8.5rem) clamp(1.25rem, 4vw, 3rem) clamp(2.2rem, 5vw, 5rem); }
.dl-hero__in { max-width: 56rem; margin: 0 auto; }
.dl-hero h1 { margin: 0 0 1.1rem; font-family: var(--wide); font-stretch: 125%; font-weight: 850; letter-spacing: -0.03em; line-height: .95; font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.8rem); }
.dl-hero__sub { margin: 0; font-size: clamp(1.25rem, 1rem + 1vw, 1.9rem); line-height: 1.35; color: var(--soft); }
.dl-hero__ver { margin: 1.4rem 0 0; font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; color: var(--blue-deep); }

/* ---------- rows ---------- */
.dl-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.dl-row--two { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1.5fr); }
.dl-label, .dl-card { padding: clamp(1.4rem, 2.4vw, 2.8rem); }
.dl-label h2 { margin: 0 0 .4rem; font-family: var(--sc-font-text); font-weight: 500; font-size: 1.55rem; line-height: 1.15; color: var(--soft); }
.dl-label p { margin: 0; max-width: 24ch; font-size: .98rem; line-height: 1.4; color: var(--soft); }

.dl-card { display: flex; flex-direction: column; min-height: 19rem; }
.dl-card__icon { width: 4.5rem; height: 4.5rem; border-radius: 1rem; margin-bottom: 2.4rem; }
.dl-card__glyph { width: 2.5rem; height: 1.75rem; margin-bottom: 1.6rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dl-card__glyph .fill { fill: currentColor; }
.dl-card h3 { margin: 0 0 .35rem; display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; font-family: var(--sc-font-text); font-weight: 600; font-size: 1.6rem; line-height: 1.15; }
.dl-card__req { margin: 0 0 1.6rem; max-width: 34ch; font-size: 1.15rem; line-height: 1.35; color: var(--soft); }
.dl-card__act { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.8rem; }
.dl-card--later .dl-card__icon { filter: grayscale(1); opacity: .45; }
.dl-row:not(:first-of-type) .dl-card { min-height: 15rem; }

.dl-tag { font-family: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; line-height: 1; padding: .3rem .5rem .26rem; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--paper-ink) 30%, transparent); color: var(--soft); white-space: nowrap; }
.dl-tag--on { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); }

.dl-go { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; font-size: 1.35rem; font-weight: 500; color: var(--paper-ink); text-decoration: none; }
.dl-go:hover { text-decoration: underline; }
.dl-go--main { font-weight: 700; color: var(--blue-deep); }
.dl-go span { font-size: .9em; }
.dl-page :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; box-shadow: none; border-radius: 4px; }

.dl-more { margin: .9rem 0 0; padding: 0 clamp(1.4rem, 2.4vw, 2.8rem); font-size: 1rem; color: var(--soft); }
.dl-more a { color: var(--paper-ink); }

/* ---------- the early access form ---------- */
.dl-ask { width: min(34rem, calc(100vw - 2rem)); padding: 2.2rem 2rem 1.8rem; border: 0; border-radius: 16px; background: var(--blue); color: var(--paper); color-scheme: dark; }
.dl-ask::backdrop { background: color-mix(in oklab, var(--shell) 70%, transparent); }
.dl-ask h2 { margin: 0 2rem .4rem 0; font-family: var(--wide); font-stretch: 125%; font-weight: 850; letter-spacing: -0.02em; line-height: 1; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); text-wrap: balance; }
.dl-ask__sub { margin: 0 0 1.2rem; font-size: 1.08rem; color: #DDE1FF; }
.dl-ask__x { position: absolute; top: .7rem; right: .8rem; margin: 0; }
.dl-ask__x button { width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: transparent; color: var(--paper); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.dl-ask__x button:hover { background: var(--blue-deep); }
.dl-ask :focus-visible { outline-color: var(--paper); }

@media (max-width: 1100px) {
  .dl-row, .dl-row--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-row .dl-label { grid-column: 1 / -1; }
  .dl-row:not(.dl-row--two) .dl-card:last-child { grid-column: 1 / -1; }
  .dl-card, .dl-row:not(:first-of-type) .dl-card { min-height: 0; }
  .dl-label p { max-width: none; }
}
@media (max-width: 640px) {
  .dl-row, .dl-row--two { grid-template-columns: minmax(0, 1fr); }
  .dl-card__icon { margin-bottom: 1.4rem; }
  .dl-go { font-size: 1.2rem; }
}
