/* /download page. Extends site.css. */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
kbd { display: inline-block; font: 600 .82em/1 var(--body); padding: 3px 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px var(--line-2); color: var(--ink); }
code { font-size: .9em; background: rgba(255, 255, 255, .06); padding: 1px 6px; border-radius: 6px; }

/* Hero */
.dl-hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .dl-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; } }
.dl-hero h1 { font-size: clamp(36px, 5.4vw, 64px); margin-top: 22px; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.dl-btn svg { width: 20px; height: 20px; flex: none; }
.dl-btn[aria-disabled="true"] { opacity: .55; pointer-events: none; box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(255, 255, 255, .04); }
@media (max-width: 520px) { .dl-btn { width: 100%; } }
.dl-meta { margin-top: 16px; color: var(--muted); font-size: 15px; display: grid; gap: 4px; }
.dl-meta .ver { color: var(--ink); font-weight: 600; }
.dl-other, .dl-alt { margin-top: 14px; color: var(--muted); font-size: 15px; }
.dl-alt a, .dl-other a, .dl-notice a { color: #c4b5ff; }
.dl-notice { margin-top: 28px; padding: 16px 18px; border-radius: 14px; background: var(--amber-soft); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .35); display: grid; gap: 4px; font-size: 15.5px; color: #f3e3c6; }
.dl-notice b { color: #fff; }
.dl-notice[hidden], .dl-other[hidden], .dl-btn[hidden] { display: none; }

/* Illustration of the app's main window (decorative) */
.dl-window { border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 40px 120px -40px rgba(124, 92, 255, .55), 0 0 0 1px rgba(255, 255, 255, .03); overflow: hidden; max-width: 520px; width: 100%; justify-self: center; }
.dl-window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.dl-window-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.dl-window-bar i:first-child { background: #ff5f57; } .dl-window-bar i:nth-child(2) { background: #febc2e; } .dl-window-bar i:nth-child(3) { background: #28c840; }
.dl-window-bar span { margin-left: 10px; font: 600 13px/1 var(--body); color: var(--muted); }
.dl-window-body { padding: 20px; display: grid; gap: 16px; }
.dl-window-label, .dl-steps p { font: 600 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: #9da2c8; }
.dl-sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dl-source { border-radius: 10px; padding: 8px; background: var(--dark-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; font-size: 12px; }
.dl-source.on { box-shadow: inset 0 0 0 2px var(--accent); }
.dl-source b { font-weight: 600; color: #d4d6ee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-thumb { display: block; aspect-ratio: 16 / 10; border-radius: 6px; background: #1d2148; }
.dl-thumb-sheet { background: repeating-linear-gradient(0deg, transparent 0 9px, rgba(255, 255, 255, .1) 9px 10px), repeating-linear-gradient(90deg, transparent 0 17px, rgba(255, 255, 255, .1) 17px 18px), #1b3a2c; }
.dl-thumb-erp { background: linear-gradient(180deg, #2b3a7a 0 22%, transparent 22%), linear-gradient(90deg, rgba(255, 255, 255, .12) 0 30%, transparent 30%), #1d2148; }
.dl-thumb-screen { background: linear-gradient(135deg, #4b2c9a, #155e75); }
.dl-toggles { display: grid; gap: 8px; font-size: 13.5px; color: #c9cce6; }
.dl-toggles span { display: flex; align-items: center; gap: 10px; }
.dl-toggles i { width: 30px; height: 18px; border-radius: 999px; background: rgba(255, 255, 255, .14); position: relative; flex: none; }
.dl-toggles i.on { background: var(--accent); }
.dl-toggles i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.dl-toggles i.on::after { left: 15px; }
.dl-start { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border-radius: 999px; background: linear-gradient(100deg, #7c5cff, #5b3df5 55%, #3b82f6); font: 600 15px/1 var(--body); color: #fff; }
.dl-rec { width: 10px; height: 10px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 0 4px rgba(255, 77, 109, .25); }
.dl-steps { display: grid; gap: 8px; padding: 12px; border-radius: 10px; background: var(--dark-2); font-size: 13px; color: #d4d6ee; }
.dl-steps span { display: flex; align-items: center; gap: 10px; }
.dl-steps b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--accent-soft); color: #c4b5ff; font-size: 11px; }

/* Platform-specific text in the steps (download.js sets data-os on <html>) */
.only-mac, .only-win { display: none; }
html[data-os="mac"] .only-mac, html[data-os="windows"] .only-win { display: inline; }
html[data-os="mac"] .only-any, html[data-os="windows"] .only-any { display: none; }
.card a { color: #c4b5ff; }

/* Permissions */
.dl-perms { display: grid; gap: 16px; }
@media (min-width: 860px) { .dl-perms { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.dl-perm { background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.dl-perm-os { display: inline-block; font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.dl-perm h3 { margin-bottom: 8px; }
.dl-perm p { color: var(--muted); font-size: 16px; }
.dl-perm b { color: var(--ink); font-weight: 600; }
.dl-perm a { color: #c4b5ff; }
.dl-perm ol { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; color: #d4d6ee; font-size: 15.5px; }
.dl-perm-note { margin-top: 12px; font-size: 15px !important; }

/* Requirements */
.dl-req { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.dl-req table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15.5px; }
.dl-req th, .dl-req td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dl-req tr:last-child th, .dl-req tr:last-child td { border-bottom: 0; }
.dl-req thead th { font: 600 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dl-req tbody th { color: var(--ink); font-weight: 600; width: 22%; }
.dl-req td { color: #d4d6ee; }

/* No-install alternatives */
.dl-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .2s, transform .15s; }
.dl-card:hover { border-color: rgba(139, 108, 255, .5); transform: translateY(-2px); }
.dl-card-go { margin-top: auto; padding-top: 18px; font-weight: 600; color: #c4b5ff; }

/* Privacy */
.dl-privacy { align-items: start; }
.dl-privacy .checks { margin-top: 0; }
.dl-privacy .checks a { color: #c4b5ff; }
