/* /download — the page a tester is sent to install the app.
 *
 * Read once, on a phone, probably outdoors, by someone deciding whether this is
 * worth their afternoon. So: one column, generous type, and the download itself
 * the only thing wearing `signal`. Everything below it is instructions, and
 * instructions that shout are instructions nobody finishes.
 */

.dl {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 56px) 20px 80px;
}

.dl h1 {
  font-size: clamp(30px, 8vw, 44px);
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.dl-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--k-granite);
  margin: 0 0 28px;
  max-width: 34rem;
}

/* The one thing on the page that is allowed to be yellow. */
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--k-radius);
  background: var(--k-signal);
  color: var(--k-night);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
}

.dl-btn:hover { filter: brightness(1.05); }
.dl-btn:active { transform: translateY(1px); }

.dl-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dl-meta {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--k-granite);
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}

/* No build uploaded. Deliberately not an error colour: nothing is broken. */
.dl-empty {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--k-rule);
  border-radius: var(--k-radius);
  color: var(--k-granite);
}

.dl-note {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--k-granite);
}

.dl section { margin-top: 48px; }

.dl h2 {
  font-size: 22px;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.dl h3 {
  font-size: 16px;
  margin: 0 0 5px;
}

.dl p {
  line-height: 1.6;
  margin: 0 0 12px;
}

.dl section p { color: var(--k-granite); }
.dl section p:last-child { margin-bottom: 0; }

.dl-steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 26px;
}

.dl-steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
}

/* A numbered step, not a bullet: the order is the point — the location prompt
   only appears after the app is installed and signed in. */
.dl-steps .n {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--k-rule);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--k-granite);
}

.dl-steps b { color: var(--k-night); font-weight: 600; }
.dl-steps i { font-style: italic; }

/* The battery section is the one most likely to be skipped and the one most
   likely to cost a run, so it gets an edge — a rule, not a colour. */
.dl-warn,
.dl-report {
  padding: 22px;
  border: 1px solid var(--k-rule);
  border-radius: var(--k-radius);
}

.dl-warn b,
.dl-report b { color: var(--k-night); font-weight: 600; }

@media (prefers-color-scheme: dark) {
  .dl-steps b,
  .dl-warn b,
  .dl-report b { color: var(--k-snow); }
}
