/* Download page: current version, installers, beta key request form and release notes. */
.download-hero { padding: 92px 0 48px; text-align: center; }
.download-hero h1 { font-size: clamp(48px, 6.4vw, 92px); }
.download-hero > p:last-child { max-width: 560px; margin: 22px auto 0; font-size: 18px; line-height: 1.55; color: #a1a1a8; }
.download-eyebrow { display: inline-block; margin: 0 0 22px; padding: 5px 13px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .06em; line-height: 1.5; text-transform: uppercase; }

.download-release, .download-notes { max-width: 880px; }
.download-release { padding: 34px; border: 1px solid #2c2c2f; border-radius: 24px; background: #1f1f1f; }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin-bottom: 28px; }
.release-head h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(30px, 3.4vw, 44px); }
.release-badge { padding: 4px 11px; border: 1px solid #3a3a3e; border-radius: 999px; color: #d6d6db; font-size: 12px; letter-spacing: .04em; line-height: 1.4; text-transform: uppercase; }
.release-date { margin: 0; color: var(--muted); font-size: 14px; }

.release-files { display: grid; gap: 12px; }
.release-file { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 16px; padding: 18px 18px 18px 20px; border: 1px solid #2c2c2f; border-radius: 16px; background: #191919; }
.release-file.is-suggested { border-color: rgba(179, 24, 255, .55); }
.release-os { justify-self: center; filter: brightness(0) invert(1); }
.release-os-name h3 { font-size: 18px; }
.release-os-name p { margin: 2px 0 0; font-size: 13px; line-height: 1.4; }
.release-button { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 18px; border-radius: 999px; background: #f5f5f7; color: #111113; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .2s, transform .2s; }
.release-button:hover { background: #fff; transform: translateY(-1px); }
.release-button small { color: #6b6b72; font-size: 12px; }
.release-button.is-pending { background: #2b2b2e; color: #a1a1a8; cursor: default; }
.release-button.is-pending:hover { transform: none; }

.release-key { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 28px; margin-top: 28px; padding-top: 26px; border-top: 1px solid #2c2c2f; }
.release-key h3 { font-size: 18px; }
.release-key p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; }
.release-key > div:first-child { flex: 1 1 260px; }
.key-form { flex: 1 1 360px; display: grid; gap: 12px; }
.key-row { display: flex; gap: 8px; padding: 6px; border: 1px solid #3a3a3e; border-radius: 999px; background: #151515; transition: border-color .2s; }
.key-row:focus-within { border-color: #6b6b72; }
.key-row input { flex: 1; min-width: 0; padding: 0 14px; border: 0; background: transparent; color: var(--text); font-size: 15px; outline: none; }
.key-row input::placeholder { color: #6b6b72; }
.key-submit { flex-shrink: 0; min-height: 42px; padding: 0 18px; border-radius: 999px; background: #f5f5f7; color: #111113; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .2s; }
.key-submit:hover { background: #fff; }
.key-submit:disabled { opacity: .6; }
.key-submit:focus-visible, .key-news input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.key-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.key-news { display: flex; align-items: center; gap: 10px; color: #a1a1a8; font-size: 13px; cursor: pointer; }
.key-news input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.release-key .key-legal { margin: 0; color: #7c7c84; font-size: 12px; line-height: 1.5; }
.key-legal a { color: #a1a1a8; text-decoration: underline; text-underline-offset: 2px; }
.release-key .key-message { margin: 0; color: #a1a1a8; font-size: 13px; }
.key-form.is-sent .key-message { color: #f5f5f7; }

.download-notes { padding: 96px 0 110px; }
.download-notes > h2 { margin-bottom: 30px; font-size: clamp(30px, 3.4vw, 44px); }
.release-note { padding: 28px 0; border-top: 1px solid var(--line); }
.release-note-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.release-note-head h3 { font-size: 20px; }
.release-tag { padding: 3px 10px; border-radius: 999px; background: rgba(179, 24, 255, .16); color: #d79bff; font-size: 12px; line-height: 1.5; }
.release-note p { max-width: 680px; }

@media (max-width: 700px) {
  .download-hero { padding: 64px 0 36px; }
  .download-release { padding: 22px 18px; border-radius: 20px; }
  .release-file { grid-template-columns: 32px 1fr; padding: 16px; }
  .release-button { grid-column: 1 / -1; justify-content: center; }
  .key-submit { padding: 0 14px; }
  .download-notes { padding: 70px 0 80px; }
}

/* Key by Instagram direct message (KEY_BY = 'instagram' in releases.py). */
.key-dm { flex: 1 1 340px; display: grid; justify-items: start; gap: 14px; }
.release-key .key-steps { margin: 0; color: #d6d6db; font-size: 15px; line-height: 1.55; }
.key-instagram { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 999px; background: #f5f5f7; color: #111113; font-size: 15px; font-weight: 500; white-space: nowrap; transition: background .2s, transform .2s; }
.key-instagram:hover { background: #fff; transform: translateY(-1px); }
.key-instagram:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.key-instagram.is-pending { background: #2b2b2e; color: #a1a1a8; cursor: default; }
.key-instagram.is-pending:hover { transform: none; }
.key-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: key-step; }
.key-list li { display: flex; gap: 10px; color: #d6d6db; font-size: 15px; line-height: 1.5; counter-increment: key-step; }
.key-list li::before { content: counter(key-step); flex-shrink: 0; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: rgba(179, 24, 255, .18); color: #d79bff; font-size: 12px; font-weight: 600; }
.key-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.key-instagram.is-secondary { border: 1px solid #3a3a3e; background: transparent; color: #f5f5f7; }
.key-instagram.is-secondary:hover { background: #2b2b2e; }
