/* ============================================================================
   onboarding.css — additions on top of styles.css for the country-onboarding
   page. Inherits all Sovereign Night tokens + components; adds the gate
   timeline and the commitments split.
   ========================================================================== */

/* ---- Five-gate timeline ------------------------------------------------- */
.gates { list-style: none; padding: 0; margin: 3.4rem 0 0; }
.gate {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.6rem;
  padding-bottom: 2.6rem;
  position: relative;
}
.gate:last-child { padding-bottom: 0; }
/* the connecting rail */
.gate__rail { position: relative; display: flex; justify-content: center; }
.gate__rail::before {
  content: "";
  position: absolute; top: 3.4rem; bottom: -2.6rem; left: 50%;
  width: 1px; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--hair-strong), var(--hair));
}
.gate:last-child .gate__rail::before { display: none; }
.gate__dot {
  width: 3.1rem; height: 3.1rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.92rem; font-weight: 500;
  color: var(--ember);
  background: radial-gradient(circle at 30% 30%, rgba(232,145,91,0.18), var(--bg-2));
  border: 1px solid rgba(232, 145, 91, 0.4);
  box-shadow: 0 0 0 5px rgba(10, 14, 26, 1), 0 0 24px rgba(232, 145, 91, 0.18);
  position: relative; z-index: 1; flex: none;
}
.gate--federation .gate__dot { color: var(--gold); border-color: rgba(242, 200, 121, 0.45); }
.gate--federation .gate__dot { background: radial-gradient(circle at 30% 30%, rgba(242,200,121,0.2), var(--bg-2)); }

.gate__body { padding-top: 0.3rem; }
.gate__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 1rem;
  margin-bottom: 0.7rem;
}
.gate__head h3 {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em;
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.85rem); line-height: 1.1; color: var(--fg);
}
.gate__dur {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--teal); padding: 0.25rem 0.65rem; border: 1px solid rgba(61, 216, 196, 0.25);
  border-radius: 100px; white-space: nowrap;
}
.gate__req { color: var(--fg-muted); max-width: 56ch; margin-bottom: 0.6rem; }
.gate__meta {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.02em;
  color: var(--fg-faint, rgba(230,234,244,0.5));
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.gate__meta::before { content: ""; width: 14px; height: 1px; background: var(--ember); opacity: 0.6; }

@media (max-width: 560px) {
  .gate { grid-template-columns: 3.4rem 1fr; gap: 1rem; }
  .gate__dot { width: 2.6rem; height: 2.6rem; font-size: 0.8rem; }
  .gate__rail::before { top: 2.9rem; }
}

/* ---- Commitments split (provide ↔ commit) ------------------------------ */
.commitments {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  margin-top: 3.2rem; background: var(--hair);
  border: 1px solid var(--hair); border-radius: 14px; overflow: hidden;
}
.commit { background: var(--bg); padding: 2rem 1.9rem; }
.commit__role {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 1.3rem; display: inline-flex; align-items: center; gap: 0.5rem;
}
.commit--provide .commit__role { color: var(--teal); }
.commit--commit .commit__role { color: var(--ember); }
.commit__list { list-style: none; padding: 0; display: grid; gap: 0.9rem; }
.commit__list li {
  position: relative; padding-left: 1.5rem; color: var(--fg-muted); line-height: 1.5; font-size: 0.98rem;
}
.commit__list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%;
}
.commit--provide .commit__list li::before { background: var(--teal); box-shadow: 0 0 8px rgba(61,216,196,0.5); }
.commit--commit .commit__list li::before { background: var(--ember); box-shadow: 0 0 8px rgba(232,145,91,0.5); }
.commit__list strong { color: var(--fg); font-weight: 600; }

@media (max-width: 720px) { .commitments { grid-template-columns: 1fr; } }

/* small overrides so the inherited sections read as a calmer process page */
.section--journey .wrap { max-width: 1000px; }
