/*
  Styles for the install page (/app, /app/en), on top of /legal.css, which
  already gives the masthead, type and footer. Linked as an absolute path so
  it resolves from both depths. Light-only, like legal.css — these pages are
  read once, from an email, and the marketing landing's theme toggle does not
  reach here.
*/

.steps {
  list-style: none;
  counter-reset: step;
  margin: 28px 0 8px;
  padding: 0;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px 20px 70px;
  margin: 0 0 12px;
}
.step .num {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--on-forest);
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  font-weight: 500;
  display: grid;
  place-items: center;
}
.step h2 {
  font-size: 19px;
  margin: 2px 0 6px;
  line-height: 1.3;
}
.step p { margin: 0 0 10px; color: var(--ink-soft); font-size: 16px; }
.step p:last-child { margin-bottom: 0; }

/* Kept for a future affirmative action; the install step now leads with
   Apple's badge instead. */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 4px;
  padding: 15px 24px;
  border-radius: 999px;
  background: var(--olive-deep);
  color: var(--on-forest) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  box-shadow: 0 8px 22px -10px rgba(110, 114, 53, 0.65);
}
.cta:hover { background: var(--forest); }
.cta svg { width: 18px; height: 18px; flex: none; }

/* Apple's own badge artwork (brand/app-store-badge-*.svg). Their guidelines
   set a minimum height and forbid redrawing or recolouring it, so the only
   thing this rule does is place it and keep the aspect ratio. */
.badge {
  display: inline-block;
  margin: 10px 0 8px;
  line-height: 0;
}
.badge img { height: 48px; width: auto; display: block; }

/* The link in plain text, for whoever reads this on a laptop and finishes on
   the phone. It replaced the QR when the store listing went live: a store URL
   opens the App Store app by itself, which a TestFlight invite never did. */
.linkline {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  color: var(--ink-mute);
  word-break: break-all;
}

/* The badge and the code stand side by side: one to tap on the phone that
   is reading this, one to scan from the phone that is not. Drawn in
   `currentColor` so the code inherits the page's ink; generated offline from
   the store URL with segno, so regenerate it if the App Store id changes. */
.get {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 14px 0 10px;
  flex-wrap: wrap;
}
.get .badge { margin: 0; }
.qr {
  width: 104px;
  padding: 7px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.qr svg { width: 100%; height: auto; display: block; color: var(--ink); }
@media (max-width: 480px) {
  /* A phone does not scan a code with itself. */
  .qr { display: none; }
  .step { padding-left: 22px; padding-top: 64px; }
  .step .num { left: 22px; top: 20px; }
}

.aside {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}
.aside strong { color: var(--ink); }
