/* Start, V9: what AMPROTEQ does, the tour, saved projects and how the studio
 * works. Loaded after components.css, whose V7 Start rules it extends.
 *
 * The V7 Start was locked to the viewport with nothing to scroll. It now
 * carries more than one screen's worth (projects, how it works), so it
 * scrolls like every other screen, and the head keeps its first-paint place. */

:root[data-route='start'] .app-center { overflow: auto; }
:root[data-route='start'] .stage { height: auto; min-height: 100%; }
.start { height: auto; min-height: 100%; overflow: visible; }
.start-inner { height: auto; justify-content: flex-start; padding-bottom: 72px; margin: 0 auto; }

.start-kicker {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font: 600 12.5px/1.2 var(--font-body);
  letter-spacing: 0.04em;
  color: var(--cyan);
}
.start-kicker span {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--v7-line-strong, rgba(150, 190, 255, 0.18));
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-secondary);
}

.start-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.start-tour { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; font-size: 15px; }
.start-tour-len {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(3, 16, 25, 0.22);
  font-size: 12.5px;
  font-weight: 500;
}

.start-sub {
  margin: 0;
  font: 500 14px/1.3 var(--font-body);
  color: var(--text-secondary);
}

/* ── Pick up where you left off ─────────────────────────────────────────── */

.start-projects { display: flex; flex-direction: column; gap: 12px; }
.start-projects[hidden] { display: none; }
.start-projects-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sp-row { position: relative; display: flex; flex-direction: column; min-width: 0; }
.sp-open {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 14px 52px 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--v7-line, rgba(150, 190, 255, 0.09));
  background: var(--v7-surface);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 120ms ease;
}
.sp-open:hover { border-color: rgba(60, 204, 252, 0.45); }
.sp-open:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.sp-open.is-busy { opacity: 0.75; cursor: progress; border-color: rgba(60, 204, 252, 0.6); }
.sp-who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sp-name { font: 500 15.5px/1.3 var(--font-heading); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-meta { font-size: 13px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-figs { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.sp-fig { font-size: 13.5px; color: var(--cyan-lt); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-fig.is-dim { color: var(--text-secondary); }
.sp-forget {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: none;
  color: var(--text-secondary);
  font: 400 18px/1 var(--font-body);
  cursor: pointer;
}
.sp-forget:hover, .sp-forget:focus-visible { color: var(--text); border-color: var(--v7-line-strong, rgba(150, 190, 255, 0.18)); }
.sp-err:empty { display: none; }
.sp-err { margin-top: 6px; font-size: 12.5px; color: var(--loss); }
.sp-note { grid-column: 1 / -1; margin: 2px 0 0; font-size: 12.5px; color: var(--text-faint, var(--text-secondary)); }

/* ── How the studio works ───────────────────────────────────────────────── */

.start-how {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--v7-line, rgba(150, 190, 255, 0.09));
}
.start-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.start-steps li {
  counter-increment: step;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 18px 18px;
  border-radius: 14px;
  border: 1px solid var(--v7-line, rgba(150, 190, 255, 0.09));
  background: rgba(11, 17, 27, 0.55);
}
.start-steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  border-radius: 50%;
  border: 1px solid rgba(60, 204, 252, 0.45);
  color: var(--cyan);
  font: 500 13.5px/1 var(--font-body);
}
/* The thread between the steps, on wide screens only. */
.start-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 32px;
  left: 54px;
  right: -16px;
  height: 1px;
  background: linear-gradient(90deg, rgba(60, 204, 252, 0.4), rgba(60, 204, 252, 0.05));
}
.start-steps b { font: 500 16px/1.3 var(--font-heading); color: var(--text); }
.start-steps span { font-size: 14px; line-height: 1.55; color: var(--text-secondary); }

.start-marks {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13px;
  color: var(--text-secondary);
}
.start-marks i { font-style: normal; color: var(--cyan); margin-right: 4px; }

@media (max-width: 1000px) {
  .start-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start-steps li::after { display: none; }
}
@media (max-width: 760px) {
  .start-projects-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .start-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .start-tour { width: 100%; justify-content: center; }
  .sp-open { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sp-figs { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 4px 12px; }
}
