/* Download page. Loaded after /styles.css and uses its tokens. */

/* The install command: the one thing on the page that should be impossible to miss. */
.install { position: relative; border: 1px solid rgba(255, 122, 26, .4); border-radius: 20px; background: radial-gradient(90% 120% at 0 0, rgba(255, 110, 20, .16), transparent 55%), var(--bg-1); box-shadow: 0 50px 140px -70px rgba(255, 110, 20, .6); overflow: hidden; }
.install-tabs { display: flex; gap: .25rem; padding: .6rem .6rem 0; border-bottom: 1px solid var(--line); }
.install-tab { position: relative; padding: .7rem 1.1rem .85rem; border: 0; background: none; color: var(--mute); font: 500 .95rem var(--sans); cursor: pointer; border-radius: 10px 10px 0 0; }
.install-tab:hover { color: var(--text); }
.install-tab.is-on { color: var(--text); }
.install-tab.is-on::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--acc-2), var(--acc)); }
.install-panel { padding: clamp(1.25rem, 3vw, 2.25rem); }
.install-foot { margin-top: 1.1rem; max-width: 50rem; color: var(--mute); font-size: .95rem; }
.install-foot a, .files-lede a, .after a, .dl-note a { color: var(--acc-2); text-underline-offset: 3px; }
.install-foot code, .files-lede code, .after code { font: 500 .88em var(--mono); color: var(--text); padding: .1em .4em; border-radius: 6px; background: rgba(255, 255, 255, .07); }

.cmd { display: flex; align-items: center; gap: .9rem; padding: .85rem .85rem .85rem 1.1rem; border: 1px solid var(--line-2); border-radius: 12px; background: #050506; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 500 .95rem var(--mono); color: var(--text); scrollbar-width: none; }
.cmd code::-webkit-scrollbar { display: none; }
.cmd-prompt { flex: none; font: 500 1rem var(--mono); color: var(--acc); user-select: none; }
.cmd-big { padding: 1.15rem 1.15rem 1.15rem 1.4rem; border-radius: 14px; }
.cmd-big code { font-size: clamp(.95rem, 1.9vw, 1.3rem); letter-spacing: -.01em; }
.cmd-copy { flex: none; min-width: 5.2rem; height: 2.4rem; padding: 0 1rem; border: 1px solid var(--line-2); border-radius: 9px; background: rgba(255, 255, 255, .05); color: var(--text); font: 500 .88rem var(--sans); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.cmd-copy:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
.cmd-copy.is-done { border-color: rgba(74, 222, 128, .5); color: var(--good); }

/* What happens after the install: a real sequence, so it is numbered. */
.after { counter-reset: step; list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.after li { counter-increment: step; position: relative; padding: 1.4rem 1.5rem 1.5rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-1); }
.after li::before { content: counter(step); display: grid; place-items: center; width: 1.9rem; height: 1.9rem; margin-bottom: 1rem; border-radius: 50%; border: 1px solid rgba(255, 122, 26, .5); color: var(--acc-2); font: 500 .85rem var(--mono); }
.after h3 { font-size: 1.1rem; letter-spacing: -.02em; }
.after p { margin-top: .5rem; color: var(--mute); font-size: .95rem; }

/* Hero buttons */
.dl-hero { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.dl-hero-btn { height: 3.25rem; padding: 0 1.5rem; font-size: 1rem; gap: .65rem; border-radius: 12px; }
.dl-hero-btn svg { width: 1.05rem; height: 1.05rem; }
.dl-hero .btn-line { height: 3.25rem; border-radius: 12px; }

/* Desktop downloads: one card per operating system, one row per build */
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.dl-card { position: relative; display: flex; flex-direction: column; padding: 1.6rem; border: 1px solid var(--line-2); border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 45%), var(--bg-1); transition: border-color .25s, transform .25s; }
.dl-card:hover { border-color: rgba(255, 255, 255, .24); }
.dl-card.is-yours { border-color: rgba(255, 122, 26, .55); background: radial-gradient(120% 70% at 100% 0, rgba(255, 110, 20, .16), transparent 60%), var(--bg-1); box-shadow: 0 40px 120px -70px rgba(255, 110, 20, .7); }
.dl-card header { display: flex; align-items: center; gap: 1rem; }
.dl-card header h3 { font-size: 1.45rem; letter-spacing: -.03em; }
.dl-card header p { margin-top: .1rem; color: var(--mute); font-size: .9rem; }
.dl-icon { flex: none; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border: 1px solid var(--line-2); border-radius: 14px; background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02)); }
.dl-icon svg { width: 1.7rem; height: 1.7rem; fill: var(--text); }
.dl-card.is-yours .dl-icon { border-color: rgba(255, 122, 26, .5); background: linear-gradient(160deg, rgba(255, 122, 26, .28), rgba(255, 122, 26, .05)); }
.dl-tag { position: absolute; top: 1.1rem; right: 1.1rem; padding: .2rem .6rem; border-radius: 999px; background: rgba(255, 122, 26, .16); color: var(--acc-2); font-size: .76rem; font-weight: 500; }
.dl-rows { display: grid; gap: .6rem; margin-top: 1.6rem; }
.dl-row { display: flex; align-items: center; gap: .9rem; padding: .85rem .85rem .85rem 1.1rem; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255, 255, 255, .03); color: var(--text); text-decoration: none; transition: background .2s, border-color .2s; }
.dl-row:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }
.dl-row-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dl-row-name strong { font-weight: 500; font-size: 1rem; }
.dl-row-name small { color: var(--mute); font-size: .82rem; }
.dl-row-size { color: var(--dim); font: 500 .8rem var(--mono); }
.dl-row-go { flex: none; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 9px; background: rgba(255, 255, 255, .07); transition: background .2s, color .2s; }
.dl-row-go svg { width: 1rem; height: 1rem; }
.dl-row:hover .dl-row-go, .dl-row.is-yours .dl-row-go { background: var(--text); color: #0a0a0b; }
.dl-row.is-yours { border-color: rgba(255, 122, 26, .5); background: rgba(255, 122, 26, .08); }
.dl-kind { margin-top: auto; padding-top: 1.25rem; color: var(--dim); font-size: .85rem; }

/* First launch, for every system */
.first { margin-top: 1.25rem; padding: clamp(1.4rem, 3vw, 2.25rem); border: 1px solid var(--line); border-radius: 20px; background: var(--bg-1); }
.first h3 { font-size: 1.3rem; letter-spacing: -.025em; }
.first-lede { margin-top: .6rem; max-width: 50rem; color: var(--mute); font-size: .95rem; }
.first-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.first-grid article { min-width: 0; }
.first-grid h4 { font-size: 1rem; font-weight: 500; }
.first-grid p { margin-top: .5rem; color: var(--mute); font-size: .93rem; line-height: 1.6; }
.first-grid strong { color: var(--text); font-weight: 500; }
.first-grid code, .first-foot code { font: 500 .88em var(--mono); color: var(--text); }
.first-grid p code { padding: .1em .4em; border-radius: 6px; background: rgba(255, 255, 255, .07); }
.first-grid .cmd { margin-top: .9rem; padding: .6rem .6rem .6rem .9rem; }
.first-grid .cmd code { font-size: .8rem; }
.first-grid .cmd-copy { min-width: 4rem; height: 2.1rem; padding: 0 .7rem; }
.first-foot { margin-top: 1.75rem; color: var(--mute); font-size: .95rem; }
.first a { color: var(--acc-2); text-underline-offset: 3px; }

/* Every file */
.files-lede { margin-top: 1rem; max-width: 46rem; color: var(--mute); }
.table-scroll { margin-top: 2rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.files { width: 100%; min-width: 44rem; margin: 0; border-collapse: collapse; font-size: .92rem; }
.files th, .files td { padding: .8rem 1.1rem; text-align: left; border-top: 1px solid var(--line); white-space: nowrap; }
.files thead th { border-top: 0; color: var(--mute); font-weight: 500; font-size: .85rem; }
.files tbody th { font-weight: 500; }
.files td a { color: var(--acc-2); font-family: var(--mono); font-size: .86rem; text-underline-offset: 3px; }
.files .num { text-align: right; font-family: var(--mono); color: var(--mute); }
.files .sum { font: 400 .82rem var(--mono); color: var(--dim); }

@media (max-width: 60rem) {
  .dl-grid, .first-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 52rem) {
  .after { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 34rem) {
  .cmd-big { flex-wrap: wrap; padding: 1rem; }
  .cmd-big code { flex-basis: calc(100% - 2rem); order: 1; }
  .cmd-big .cmd-prompt { order: 0; }
  .cmd-big .cmd-copy { order: 2; width: 100%; }
  .install-tab { padding-inline: .8rem; }
}

#terminal .install { margin-top: 2.5rem; }
