/* ============================================================================
   DOWNLOAD - /download, the Android APK handed out from our own site.

   Anonymous, static, and read on a phone more often than anywhere else: the
   usual arrival is a link opened on the device the app is about to be installed
   on. Everything below is sized for 375px first.

   The fingerprint is the load-bearing element. 64 hex characters do not fit a
   phone line, and a digest that scrolls sideways is a digest nobody compares -
   so it wraps, in a monospace face, at a size that stays legible while wrapped.
   ============================================================================ */

.download-page {
    display: flex;
    justify-content: center;
    padding: 24px 16px 48px;
}

/* Capped like every other reading surface in the app: a 2000px line of
   instructions is not more readable for being wider. */
.download-card {
    width: 100%;
    max-width: 560px;
    min-width: 0;
    padding: 24px 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.download-card h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.download-card h2 {
    margin: 10px 0 0;
    font-size: 15px;
    font-weight: 600;
}

.download-lead {
    margin: 0;
    color: var(--chronos-fg-muted);
    line-height: 1.5;
}

.download-empty {
    margin: 0;
    padding: 14px 16px;
    border: 1px dashed var(--chronos-outline);
    border-radius: 10px;
    color: var(--chronos-fg-muted);
    line-height: 1.5;
}

/* Version / size / date. A two-column grid rather than a table so it reflows to
   one column on a narrow screen without an overflow container. */
.download-facts {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    margin: 0;
    font-size: 14px;
}

.download-facts dt {
    color: var(--chronos-fg-muted);
}

.download-facts dd {
    margin: 0;
    font-weight: 600;
}

.download-btn {
    align-self: flex-start;
    text-decoration: none;
    padding: 11px 22px;
}

.download-hint {
    margin: 0;
    font-size: 13px;
    color: var(--chronos-fg-muted);
    line-height: 1.5;
}

/* overflow-wrap rather than a scroll container: the reader is comparing this
   against a value in a terminal, character by character, and cannot compare
   what is off screen. break-all keeps the wrap points inside the hex run. */
.download-digest,
.download-command {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid var(--chronos-outline);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: var(--text-sm);
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-all;
    user-select: all;
}

.download-command {
    background: transparent;
    color: var(--chronos-fg-muted);
    word-break: normal;
}

.download-steps {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    line-height: 1.5;
}

.download-note {
    margin: 0;
    font-size: 13px;
    color: var(--chronos-fg-muted);
    line-height: 1.5;
}
