/* The "Add to home screen" sheet (install.js). Self-contained: it looks the same on the dark welcome page
   and on the light pages. */

.nq-install {
  border: 0;
  padding: 0;
  margin: auto auto 0;            /* a sheet rising from the bottom on phones */
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow: auto;
  background: transparent;
  color: #17231d;
}
.nq-install::backdrop { background: rgba(4, 17, 11, 0.6); }

.nq-sheet {
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 26px 22px calc(22px + env(safe-area-inset-bottom, 0px));
  font: 16px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
}

@media (min-width: 600px) {
  .nq-install { margin: auto; }
  .nq-sheet { border-radius: 22px; }
}

.nq-app { display: block; width: 64px; height: 64px; border-radius: 15px; margin-bottom: 14px; box-shadow: 0 4px 14px rgba(0, 96, 58, 0.3); }

.nq-install h2 {
  margin: 0 0 6px;
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.nq-lede { margin: 0 0 16px; color: #5d6b63; }
.nq-note { margin: 0 0 12px; }

.nq-steps { list-style: none; counter-reset: nq; margin: 0 0 4px; padding: 0; }
.nq-steps li {
  counter-increment: nq;
  position: relative;
  padding: 10px 0 10px 42px;
  border-top: 1px solid #ecefe9;
}
.nq-steps li:first-child { border-top: 0; }
.nq-steps li::before {
  content: counter(nq);
  position: absolute;
  left: 0;
  top: 9px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e4f1ea;
  color: #00603a;
  font-weight: 700;
  text-align: center;
  line-height: 28px;
}

/* A picture of the button to press, e.g. [⬆ Share] */
.nq-key {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
  padding: 2px 8px;
  border: 1px solid #d9ddd4;
  border-radius: 8px;
  background: #f5f3ec;
  color: #00603a;
  white-space: nowrap;
  font-size: 0.92em;
  line-height: 1.5;
}
.nq-key b { color: #17231d; font-weight: 600; }
.nq-key svg { flex: none; }

.nq-actions { display: grid; gap: 6px; margin-top: 18px; }
.nq-actions button { font: inherit; cursor: pointer; border-radius: 12px; padding: 13px 16px; }
.nq-go { border: 0; background: #00603a; color: #fff; font-weight: 700; }
.nq-go:hover { background: #00472b; }
.nq-later { border: 0; background: transparent; color: #5d6b63; }
.nq-later:hover { color: #17231d; }
.nq-actions button:focus-visible { outline: 3px solid #35e08a; outline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .nq-install[open] .nq-sheet { animation: nq-rise 0.28s ease-out; }
  @keyframes nq-rise { from { transform: translateY(24px); opacity: 0; } }
}
