/* Copyright Ayers Electronics Inc. All rights reserved. */

/* ---- welcome (js/welcome.js, pages/first-start.html) ----
   The same gate-card grammar the wizard wears, widened for the three feature tiles side by side.
   The step tracker (js/first-steps.js) is shared with the wizard's own card (pages/first-run.html),
   so its rules live here rather than in first-run.css. */
#firstStart {
  z-index: 46;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--page-margin-vertical) var(--page-margin);
  background: var(--bg);
}
#firstStart[hidden] {
  display: none;
}
/* A phone keeps 16 at its sides, so the invite code's seven keys stay wider than 24 at 320. */
@media (max-width: 767px) {
  #firstStart {
    padding-left: max(16px, var(--safe-left));
    padding-right: max(16px, var(--safe-right));
  }
}
.first-start-card {
  width: 620px;
  padding: 20px 28px 24px;
  text-align: center;
}
.first-start-wordmark {
  height: 34px;
  margin-bottom: 8px;
}
.first-start-title {
  margin: 0 0 8px;
  font-size: var(--type-title);
  font-weight: 600;
  color: var(--text);
}
.first-start-lead {
  margin: 0 0 20px;
  font-size: var(--type-body);
  line-height: 1.4;
  color: var(--muted);
}
.first-start-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.first-start-tile {
  padding: 12px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.first-start-tile-title {
  margin: 0 0 4px;
  font-size: var(--type-body);
  font-weight: 600;
  color: var(--accent-text);
}
.first-start-tile-body {
  margin: 0;
  font-size: var(--type-label);
  line-height: 1.35;
  color: var(--muted);
}
.first-start-note {
  margin: 16px 0 0;
  font-size: var(--type-label);
  color: var(--muted);
}

/* ---- the three-step tracker, shared by the welcome screen, the wizard's own card and the networks
   step (js/network-setup.js) ----
   Its spacing is margins, not flex gaps: the television WebViews' floor (Chromium 83) draws no flex gap. */
.first-start-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.first-start-steps.hidden {
  display: none;
}
.first-start-steps > * + * {
  margin-left: 20px;
}
.first-start-step {
  display: flex;
  align-items: center;
  font-size: var(--type-label);
  color: var(--muted);
}
.first-start-step-number {
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 20px;
  font-size: var(--type-micro);
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-round);
}
.first-start-step.is-active {
  font-weight: 600;
  color: var(--text);
}
.first-start-step.is-active .first-start-step-number {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}
