/* Download page: a hero with a copy of the Atlas Mind window (drawn by the HTML prototype, app-frame/),
 * then the platforms as ruled rows (Oliver, 29 Oct 2026: no rows of cards). Every status is stated in
 * words. The macOS row holds the release list that download.js fills. */
.download-hero { position: relative; overflow: hidden; padding: clamp(72px, 10vw, 128px) 0 clamp(48px, 6vw, 80px); }
.download-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.download-copy { display: grid; gap: 18px; justify-items: start; }
.download-copy .page-title { font-size: clamp(40px, 5vw, 76px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.download-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.download-small { font-size: 13px; color: var(--text-dim); }
.download-shot { margin: 0; }
.download-shot figcaption { margin-top: 14px; font-size: 12px; color: var(--text-dim); }

.platform-grid { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--border-strong); }
.platform { display: grid; grid-template-columns: minmax(180px, 3fr) minmax(0, 7fr); gap: 8px 40px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.platform-body { display: contents; }
.platform-body > :not(.platform-head) { grid-column: 2; }
.platform-head { grid-column: 1; grid-row: 1 / span 6; display: grid; gap: 10px; align-content: start; justify-items: start; }
.platform-head h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: -0.02em; }
.platform-primary .platform-head h3 { font-size: clamp(28px, 3vw, 40px); }
.platform-body > p { max-width: 60ch; font-size: 16px; color: var(--text-body); line-height: 1.6; }
.platform .release-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.platform .release { min-width: 0; overflow-wrap: anywhere; background: transparent; border: 1px solid var(--border-strong); border-radius: 0; }
.platform .release > .button { min-width: 0; max-width: 100%; white-space: normal; text-align: center; line-height: 1.4; padding-block: 10px; }
.platform .release[data-state="unavailable"] { border-style: dashed; background: transparent; }
.state-pill[data-state="ok"]::before { background: var(--green); }
.state-pill[data-state="off"]::before { background: var(--text-dim); }
.state-pill { border: 0; background: #1e1e1e; }
@media (max-width: 960px) {
  .download-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .platform { grid-template-columns: minmax(0, 1fr); }
  .platform-head { grid-row: auto; grid-auto-flow: column; align-items: center; justify-content: space-between; justify-items: stretch; }
  .platform-body > :not(.platform-head) { grid-column: 1; }
  .platform .release-cards { grid-template-columns: minmax(0, 1fr); }
}
.state-pill[data-state="soon"]::before { background: var(--amber); }
.download-actions .button[aria-disabled="true"] { opacity: 1; cursor: default; background: #d9d9d9; border-color: #d9d9d9; }
.download-copy:has(> .crumbs) { position: relative; }
.download-copy > .crumbs { position: absolute; left: 0; right: 0; bottom: calc(100% + 18px); } /* one copy gap above the heading */
