/* /ar/download/ and /en/download/ -- builds on the shared tokens in style.css. */
.download { padding-block: 90px 70px; }
.download .wrap { max-width: 900px; }
.download h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.download h2 { font-size: 1.2rem; font-weight: 700; margin: 38px 0 12px; }
.dl-lead { color: var(--ink-soft); font-size: 1.05rem; max-width: 62ch; margin-bottom: 30px; }

.dl-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.dl-card--soon { display: block; text-align: start; }
.dl-card--soon p { color: var(--ink-soft); margin: 8px 0 20px; }
.dl-main { min-width: 0; }
.dl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding-inline: 28px; font-size: 1.05rem; }

.dl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 16px 24px; margin: 26px 0 22px; }
.dl-facts div { min-width: 0; }
.dl-facts dt { font-size: .8rem; color: var(--ink-faint); margin-bottom: 2px; }
.dl-facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

.dl-hash { border-top: 1px solid var(--border); padding-top: 18px; }
.dl-hash-label { font-size: .8rem; color: var(--ink-faint); margin: 12px 0 6px; }
.dl-hash-row { display: flex; gap: 10px; align-items: center; }
.dl-hash code {
  flex: 1; min-width: 0; font-size: .78rem; line-height: 1.5; padding: 9px 12px; border-radius: var(--radius-sm);
  background: var(--bg-soft); color: var(--ink-soft); overflow-wrap: anywhere; word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.dl-copy {
  flex: none; min-height: 44px; padding-inline: 14px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1.5px solid var(--border-strong); background: transparent; color: var(--ink); font: inherit; font-weight: 700; font-size: .82rem;
}
.dl-copy:hover { border-color: var(--accent-solid); color: var(--accent); }

.dl-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; max-width: 200px; }
.dl-qr img { width: 168px; height: 168px; border-radius: 14px; border: 1px solid var(--border); background: #fff; padding: 6px; }
.dl-qr strong { font-size: .95rem; }
.dl-qr span { font-size: .8rem; color: var(--ink-soft); }

.dl-steps { padding-inline-start: 1.4em; display: grid; gap: 12px; color: var(--ink-soft); }
.dl-steps strong { color: var(--ink); }
.dl-list { padding-inline-start: 1.2em; display: grid; gap: 10px; color: var(--ink-soft); }
.download p, .download li { color: var(--ink-soft); }
.download a:not(.btn):not(.legal-back) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.download code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; overflow-wrap: anywhere; }

.dl-faq { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 16px; margin-bottom: 10px; background: var(--surface); }
.dl-faq summary { cursor: pointer; font-weight: 700; padding-block: 12px; min-height: 44px; color: var(--ink); }
.dl-faq p { margin: 0 0 14px; }

@media (max-width: 720px) {
  .download { padding-block: 70px 50px; }
  .dl-card { grid-template-columns: 1fr; padding: 22px; }
  .dl-qr { display: none; }            /* the phone is already the device that needs the app */
  .dl-btn { width: 100%; }
  .dl-hash-row { flex-direction: column; align-items: stretch; }
}
