/* The download page: the launcher files, the client note, the steps and a few technical facts. */

.dl { display: grid; gap: var(--s-8); }
.dl__head { display: grid; gap: var(--s-3); max-width: 44em; }
.dl__head h1 { font-size: var(--t-3xl); }

.dl__cards { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); align-items: stretch; }
.dlcard { display: grid; gap: var(--s-4); align-content: start; padding: var(--s-6); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow-2); }
.dlcard h2 { font-size: var(--t-lg); font-family: var(--font-display); line-height: 1.2; }
.dlcard--client { background: linear-gradient(150deg, var(--violet-soft), var(--card)); }
.dlcard--server { background: linear-gradient(150deg, #0f3a33, var(--card)); }
.dlcard--server .btn { justify-self: start; }
.dlcard--server > * { min-width: 0; }
/* The address and its copy button are one field: the button sits at the end of it and shares its rounded corners. */
.dlcard__ip { display: flex; align-items: stretch; min-width: 0; max-width: 100%; overflow: hidden; border-radius: var(--r-md); background: var(--mist-1); }
.dlcard__ip code { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; padding: var(--s-3) var(--s-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-base); font-weight: 600; direction: ltr; }
.dlcard__ip button { flex: none; min-height: 48px; padding: 0 var(--s-5); border: 0; border-radius: 0; background: var(--violet-soft); color: var(--violet-deep); font-size: var(--t-sm); font-weight: 600; transition: background-color var(--d-1) var(--ease), color var(--d-1) var(--ease); }
.dlcard__ip button:hover { background: var(--mist-3); color: var(--ink); }
.dlcard__files { display: grid; gap: var(--s-3); }
.file { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--mist-1); }
.file__meta { display: grid; gap: 0; min-width: 0; }
.file__hash { font-size: var(--t-xs); color: var(--ink-3); overflow-wrap: anywhere; }
.soon { padding: var(--s-4); border-radius: var(--r-md); background: var(--violet-soft); color: var(--violet-deep); font-size: var(--t-sm); line-height: 2; }

.dl__steps { display: grid; gap: var(--s-5); max-width: 50em; }
.dl__steps h2 { font-size: var(--t-2xl); }
.timeline { display: grid; gap: var(--s-5); counter-reset: step; position: relative; }
.timeline li { counter-increment: step; position: relative; padding-inline-start: 4rem; line-height: 2; }
.timeline li::before { content: counter(step, persian); position: absolute; inset-inline-start: 0; inset-block-start: 0; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--violet-soft); color: var(--violet-deep); font-weight: 700; line-height: 1; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 1.35rem; inset-block-start: 3rem; bottom: calc(-1 * var(--s-5) - 0.2rem); width: 2px; background: var(--mist-3); }

.dl__facts { display: grid; gap: var(--s-3); max-width: 46em; }
.dl__facts ul { display: grid; gap: var(--s-2); }
.dl__facts li { position: relative; padding-inline-start: 1.6rem; color: var(--ink-2); }
.dl__facts li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0.85em; width: 0.55rem; height: 0.55rem; border-radius: 2px; background: var(--violet); transform: rotate(45deg); }

@media (max-width: 1000px) { .dl__cards { grid-template-columns: 1fr; } .dl__head h1 { font-size: var(--t-2xl); } }
