/* Onboarding — same ink and pen as the landing, but calmer.
   A setup flow should feel like filling in a form on good paper, not like
   being sold to. The proof-mark motif appears only where a decision is made. */

.ob {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}
@media (max-width: 880px) { .ob { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- the rail --- */

.rail {
  border-right: 1px solid var(--rule);
  padding: 1.5rem var(--gutter) 2rem;
  position: sticky; top: 0; align-self: start; height: 100vh;
  display: flex; flex-direction: column;
}
@media (max-width: 880px) {
  .rail { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--rule); }
}

.rail .brand { margin-bottom: 2.5rem; }

.steps { list-style: none; margin: 0; padding: 0; flex: 1; }
.steps li {
  display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.85rem;
  padding: 0.7rem 0;
  align-items: start;
  color: var(--paper-mute);
  font-size: 0.92rem;
  transition: color 0.3s var(--ease);
}
.steps .tick {
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 0.66rem;
  transition: all 0.3s var(--ease);
}
.steps li[data-state="current"] { color: var(--paper); }
.steps li[data-state="current"] .tick { border-color: var(--paper); color: var(--paper); box-shadow: 0 0 0 4px rgba(247,242,232,0.10); }
.steps li[data-state="done"] { color: var(--paper-dim); }
.steps li[data-state="done"] .tick { border-color: var(--seal); background: var(--seal); color: var(--ink-900); }
.steps small { display: block; font-size: 0.76rem; color: var(--paper-mute); margin-top: 0.1rem; }
@media (max-width: 880px) { .steps small { display: none; } .steps { display: flex; gap: 0.5rem; overflow-x: auto; } .steps li { grid-template-columns: auto; } .steps li span:not(.tick) { display: none; } }

.rail-foot { font-family: var(--mono); font-size: 0.7rem; color: var(--paper-mute); line-height: 1.6; }

/* ------------------------------------------------------------ the stage --- */

.stage { padding: clamp(2rem, 6vw, 4.5rem) var(--gutter); max-width: 780px; }

.panel { display: none; animation: panel-in 0.5s var(--ease); }
.panel[data-active="true"] { display: block; }
@keyframes panel-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }

.panel h2 { margin-bottom: 0.8rem; }
.panel > p.lede { margin-bottom: 2.2rem; }

/* --------------------------------------------------------------- fields --- */

.field { margin-bottom: 1.4rem; }
.field label { display: block; font-size: 0.88rem; margin-bottom: 0.4rem; }
.field .hint { font-size: 0.8rem; color: var(--paper-mute); margin-top: 0.4rem; line-height: 1.5; }

.input, .select {
  width: 100%;
  font-family: var(--mono); font-size: 0.86rem;
  color: var(--paper);
  background: var(--ink-850);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.7rem 0.8rem;
  transition: border-color 0.2s;
}
.input:focus, .select:focus { border-color: var(--paper); outline: none; box-shadow: 0 0 0 3px rgba(247,242,232,0.10); }
.input::placeholder { color: var(--paper-mute); }

/* -------------------------------------------------------------- repo list --- */

.repos { border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; }
.repo {
  display: flex; align-items: center; gap: 0.9rem;
  width: 100%; text-align: left;
  padding: 0.9rem 1rem;
  background: transparent; border: 0; border-bottom: 1px solid var(--rule);
  color: var(--paper); cursor: pointer; font-family: var(--sans); font-size: 0.92rem;
  transition: background 0.16s;
}
.repo:last-child { border-bottom: 0; }
.repo:hover { background: var(--ink-850); }
.repo[aria-pressed="true"] { background: var(--seal-wash); box-shadow: inset 3px 0 0 var(--seal); }
.repo-lang { font-family: var(--mono); font-size: 0.68rem; color: var(--paper-mute); margin-left: auto; white-space: nowrap; }

/* ------------------------------------------------------------- detection --- */

.detect {
  border: 1px solid var(--rule); border-radius: 3px;
  background: var(--ink-850);
  padding: 1.2rem 1.3rem;
  margin-bottom: 1.6rem;
}
.detect-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.badge {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.2rem 0.5rem; border-radius: 2px; border: 1px solid;
}
.badge.certain { color: var(--seal); border-color: color-mix(in oklab, var(--seal) 45%, transparent); }
.badge.likely  { color: var(--pen); border-color: color-mix(in oklab, var(--pen) 50%, transparent); }
.detect-notes { list-style: none; margin: 0; padding: 0; font-size: 0.86rem; color: var(--paper-dim); }
.detect-notes li { padding: 0.32rem 0 0.32rem 1.1rem; position: relative; line-height: 1.55; }
.detect-notes li::before { content: "·"; position: absolute; left: 0.25rem; color: var(--paper-mute); }

/* ----------------------------------------------------------- share link --- */

.sharebox {
  display: flex; gap: 0.5rem; align-items: stretch;
  margin-top: 1.2rem;
}
.sharebox .input { flex: 1; }
.copied { font-family: var(--mono); font-size: 0.74rem; color: var(--seal); margin-top: 0.6rem; height: 1em; }

/* ------------------------------------------------------------ boot steps --- */

.boot { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.boot li {
  display: grid; grid-template-columns: 1.15rem 1fr auto; gap: 0.8rem; align-items: center;
  padding: 0.62rem 0; border-bottom: 1px solid var(--rule);
  font-size: 0.92rem; color: var(--paper-mute);
}
.boot li:last-child { border-bottom: 0; }
.boot li[data-state="run"]  { color: var(--paper); }
.boot li[data-state="done"] { color: var(--paper-dim); }
.boot .glyph { font-family: var(--mono); font-size: 0.8rem; color: var(--rule); }
.boot li[data-state="run"] .glyph  { color: var(--paper); animation: pulse 1.1s ease-in-out infinite; }
.boot li[data-state="done"] .glyph { color: var(--seal); }
.boot .dur { font-family: var(--mono); font-size: 0.72rem; color: var(--paper-mute); }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------------------------------------------------------------- nav'n --- */

.actions { display: flex; gap: 0.75rem; align-items: center; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); }
.actions .spacer { flex: 1; }
.link-btn { background: none; border: 0; color: var(--paper-mute); font-family: var(--sans); font-size: 0.9rem; cursor: pointer; padding: 0.5rem 0; }
.link-btn:hover { color: var(--paper); }

.note {
  border-left: 2px solid var(--pen);
  padding: 0.2rem 0 0.2rem 0.9rem;
  font-size: 0.86rem; color: var(--paper-dim);
  margin: 1.4rem 0;
  line-height: 1.6;
}

.done-mark { font-size: 3rem; color: var(--seal); font-family: var(--serif); line-height: 1; margin-bottom: 1rem; }
