/* ============================================================================
   /onboarding/ — step-by-step connection flow. Loaded after brand.css.
   ========================================================================== */

.page-col { gap: 28px; }

/* Three-bar progress indicator */
.progress { display: flex; flex-direction: column; gap: var(--bv-sp-3); }
.progress__label { font-size: var(--bv-fs-md); font-weight: 600; color: var(--bv-ink-mute); }
.progress__bars { display: flex; gap: var(--bv-sp-2); }
.bar {
  flex: 1;
  height: 8px;
  border-radius: var(--bv-r-pill);
  background: var(--bv-line);
  transition: background var(--bv-dur-slow) ease;
}
.bar.is-on { background: var(--bv-accent); }

/* Step card */
.step-card {
  background: var(--bv-surface);
  border: 1px solid var(--bv-line);
  border-radius: var(--bv-r-xl);
  padding: var(--bv-card-pad);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 16px + 1vw, 24px);
  animation: bv-pop 0.4s var(--bv-ease-out);
}
.step-card h1 { font-size: var(--bv-fs-h1-app); }
.step-card__lead { font-size: var(--bv-fs-xl); line-height: var(--bv-lh); color: var(--bv-ink-soft); }

/* SmartScreen hint: drawn "keycap" buttons */
.key-hint { display: flex; align-items: center; gap: var(--bv-sp-2); flex-wrap: wrap; }
.key-hint__key {
  border: 1.5px solid var(--bv-line-strong);
  background: var(--bv-surface);
  border-radius: var(--bv-r-2xs);
  padding: 6px 12px;
  color: var(--bv-ink);
  font-size: var(--bv-fs-sm);
  font-weight: 600;
}
.key-hint__sep { color: var(--bv-ink-faint); font-size: var(--bv-fs-sm); }

/* Alternative platforms */
.alt-link {
  border: 2px solid var(--bv-line);
  border-radius: var(--bv-r-md);
  padding: 16px 22px;
  text-decoration: none;
  color: var(--bv-ink);
  font-size: var(--bv-fs-lg);
  font-weight: 600;
  transition:
    border-color var(--bv-dur) var(--bv-ease-out),
    transform var(--bv-dur) var(--bv-ease-out),
    box-shadow var(--bv-dur) var(--bv-ease-out);
}
.alt-link:hover {
  border-color: var(--bv-accent);
  color: var(--bv-ink);
  transform: translateY(-2px);
  box-shadow: var(--bv-shadow-lift);
}

/* .email-box, .tg-alt and .auth-box moved to brand.css (shared with /cp/) */

/* "All done" row on step 3 */
.done-row { display: flex; align-items: center; gap: var(--bv-sp-3); }
.done-row__text { font-size: var(--bv-fs-md); font-weight: 700; color: var(--bv-ok); }

/* Post-download mini-guide (Chrome-style "few steps left" on step 1) */
.mini-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--bv-sp-3);
}
.mini-steps li {
  display: flex;
  align-items: flex-start;
  gap: var(--bv-sp-3);
  font-size: var(--bv-fs-md);
  line-height: 1.45;
  color: var(--bv-ink-soft);
}
.mini-steps__num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--bv-accent);
  color: var(--bv-accent);
  font-size: var(--bv-fs-sm);
  font-weight: 800;
}

/* Transient arrow pointing at the browser's downloads corner (top-right).
   Hidden on small screens: mobile browsers surface downloads elsewhere.
   Alignment: the downloads icon sits ~95px from the window's right edge in
   Chrome-family browsers — the arrow head (svg center) lands around there
   (right offset + label alignment tuned against a real screenshot). */
.dl-arrow {
  position: fixed;
  top: 8px;
  /* Aim at Chrome's download bubble in the toolbar: it sits ~90-120px from
     the window edge (left of the profile chip and the kebab menu) */
  right: 32px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  color: var(--bv-accent);
  pointer-events: none;
  animation: dl-arrow-nudge 0.7s var(--bv-ease-out) infinite alternate;
  filter: drop-shadow(0 4px 10px rgba(43, 32, 24, 0.3));
}
.dl-arrow svg { width: 84px; height: 84px; margin-right: 2px; }
.dl-arrow__label {
  font-size: var(--bv-fs-sm);
  font-weight: 700;
  color: var(--bv-bg);
  background: var(--bv-ink);
  border-radius: var(--bv-r-xs);
  padding: 9px 14px;
  white-space: nowrap;
}
@keyframes dl-arrow-nudge {
  from { transform: translateY(28px); }
  to { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  /* Owner's call: the arrow is a functional pointer, keep it moving even
     under reduced motion (RDP sessions report it and lost the cue).
     !important beats the global kill-switch in brand.css. */
  .dl-arrow {
    animation-duration: 0.7s !important;
    animation-iteration-count: infinite !important;
  }
}
@media (max-width: 600px) {
  .dl-arrow { display: none; }
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .page-header { padding: 16px; gap: 12px; }
  .page-header .nav-link { font-size: var(--bv-fs-xs); text-align: right; }
  .page-header .btn-dark { font-size: var(--bv-fs-sm); padding: 10px 18px; }
}

/* Action links inside step cards are slightly larger than base
   (.auth-box .link-muted is covered by brand.css) */
.step-card .link-muted { font-size: var(--bv-fs-base); }
