/* The customer-facing download page.
 *
 * Different audience from the viewer, and styled differently on purpose. The
 * viewer is a tool used daily by someone who knows what it does, so it recedes.
 * This is read once, by someone who is already having a bad day, possibly on a
 * phone, and who is being asked to run an unfamiliar program on their computer.
 * So: generous type, one obvious action per step, and nothing clever.
 *
 * Inherits the colour tokens from viewer.css, which is loaded first.
 */

/* viewer.css pins body to height:100% for the session layout, which would clip
 * this page instead of letting it scroll. */
.download-page {
  height: auto;
  min-height: 100%;
  overflow-y: auto;
  padding: 32px 16px 64px;
}

.sheet {
  max-width: 620px;
  margin: 0 auto;
}

.download-page h1 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.download-page .lede {
  margin: 0 0 36px;
  font-size: 16px;
  color: var(--muted);
}

/* ---- the steps ---------------------------------------------------------- */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  position: relative;
  counter-increment: step;
  padding: 0 0 28px 52px;
  /* The line connecting the numbers. Drawn on the list item rather than as a
   * separate element so it cannot fall out of step with the content height. */
  border-left: 2px solid var(--line);
  margin-left: 15px;
}

.steps > li:last-child { border-left-color: transparent; padding-bottom: 8px; }

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: -17px;
  top: -2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.steps h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 650;
}

.steps p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 15px;
}

.aside {
  padding: 12px 14px;
  border-left: 3px solid var(--warn);
  background: #241f11;
  border-radius: 0 8px 8px 0;
  font-size: 14px !important;
  color: #f0d79a !important;
}

/* ---- the button --------------------------------------------------------- */

.download-btn {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: 6px 0 4px;
  padding: 15px 28px;
  background: var(--accent);
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
}

.download-btn:hover { background: #3a8bef; }

.download-meta {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.75;
}

.notice {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted) !important;
}

/* ---- the mock window ---------------------------------------------------- */

/* Shows what they are looking for before they see it. Someone reading a screen
 * they have never seen, over the phone, finds the right two fields much faster
 * having already been shown their shape. */
.mock {
  margin: 12px 0 0;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 5px 0;
}

.mock-row span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.mock-row b {
  font: 700 22px ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.06em;
}

/* ---- reassurance -------------------------------------------------------- */

.reassure {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.reassure h2 { margin: 0 0 12px; font-size: 16px; }
.reassure ul { margin: 0; padding-left: 20px; }

.reassure li {
  margin-bottom: 9px;
  font-size: 14.5px;
  color: var(--muted);
}

.reassure li:last-child { margin-bottom: 0; }

.foot {
  margin: 24px 0 0;
  text-align: center;
  font-size: 13px;
  color: #5f6a7c;
}

@media (max-width: 480px) {
  .download-page h1 { font-size: 24px; }
  .steps > li { padding-left: 42px; }
  .download-btn { width: 100%; justify-content: center; }
}

/* ---- support team's download ------------------------------------------- */

/* Folded away and deliberately quieter than the customer's button above: this
 * page is read by customers, and they must not end up running the wrong
 * program. */
.staff {
  margin-top: 40px;
  padding: 14px 18px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
}

.staff summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}

.staff p { margin: 12px 0; }

.staff-btn {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.staff-btn:hover { background: #232a36; }
