/* FINIT — Planner Discovery Layer (game feel)
   1. Discovery toast — an insight "unlocks" while typing.
   2. Picture-building segment strip inside the sticky summary.
   3. Step 1 merged to a single flowing page (no empty second screen). */

/* ── Discovery toast ─────────────────────────────────────────────────────── */
.discovery-toast {
  position: fixed;
  bottom: 150px; /* clears the mobile bottom nav and the cookie-consent bar */
  inset-inline-start: 16px;
  max-width: min(340px, calc(100vw - 32px));
  z-index: 9000;
  background: linear-gradient(135deg, #0b6b63, #0a5750);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 8px 28px rgba(11, 107, 99, 0.35);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.discovery-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.discovery-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.discovery-spark {
  font-size: 1.1rem;
  animation: discovery-spark-pulse 1.6s ease-in-out 2;
}
@keyframes discovery-spark-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35) rotate(-8deg); }
}
.discovery-title {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}
.discovery-count {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 1px 8px;
  white-space: nowrap;
}
.discovery-close {
  margin-inline-start: auto;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}
.discovery-close:hover { color: #fff; }
.discovery-text {
  font-size: 0.86rem;
  line-height: 1.5;
  font-weight: 500;
}

@media (min-width: 900px) {
  .discovery-toast { bottom: 96px; }
}

/* ── Picture-building segment strip (below the step progress bar) ───────── */
.picture-progress-inline {
  max-width: 420px;
  margin: 0.5rem auto 0;
}
.picture-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pp-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted, #6b7280);
  white-space: nowrap;
}
.pp-segments {
  display: flex;
  gap: 5px;
  flex: 1;
}
.pp-seg {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.05);
  filter: grayscale(1);
  opacity: 0.45;
  transition: filter 0.5s ease, opacity 0.5s ease, background 0.5s ease;
}
.pp-seg--done {
  background: rgba(14, 207, 188, 0.14);
  filter: none;
  opacity: 1;
}
.pp-seg--pop {
  animation: pp-seg-pop 0.6s cubic-bezier(0.22, 1.6, 0.36, 1);
}
@keyframes pp-seg-pop {
  0% { transform: scale(0.7); }
  60% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.pp-seg-icon { font-size: 0.85rem; line-height: 1; }

/* ── Step 1 as one flowing page (kills the near-empty second screen) ────── */
.step1-phase { display: block !important; }
#step1-sub-progress,
#step1-personal-nav,
#step1-back-to-personal { display: none !important; }
.step1-phase--professional {
  border-top: 1px dashed var(--border, #d8d8d8);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

/* ── Life Road — the "you can see your life" moment (step 6, Your Story screen) ── */
.nrs-life-road {
  margin: 2rem 0 0.5rem;
  padding: 1.5rem 1.25rem 1.25rem;
  background: linear-gradient(160deg, rgba(14, 207, 188, 0.05), rgba(11, 107, 99, 0.02));
  border: 1px solid rgba(14, 207, 188, 0.14);
  border-radius: 20px;
}
.life-road-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 3px;
  color: var(--text-primary, #1f2937);
}
.life-road-sub {
  font-size: 0.82rem;
  color: var(--text-muted, #6b7280);
  margin: 0 0 16px;
  line-height: 1.5;
}
.life-road-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 20px 4px 18px;
  margin: 0 -4px;
  position: relative;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(to left, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
/* The road itself — a line running behind the cards */
.life-road-track::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: max(100%, 1200px);
  height: 3px;
  background: repeating-linear-gradient(90deg,
    rgba(14, 207, 188, 0.5) 0 14px, transparent 14px 24px);
  pointer-events: none;
}
.life-road-card {
  position: relative;
  flex: 0 0 auto;
  width: 168px;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  padding: 12px 12px 14px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-top: 4px solid #9ca3af;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  scroll-snap-align: start;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.life-road-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.life-road-card--positive { border-top-color: #0ecfbc; }
.life-road-card--negative { border-top-color: #f59e0b; }
.life-road-card--now {
  border-top-color: #0b6b63;
  background: linear-gradient(160deg, rgba(14, 207, 188, 0.12), transparent 70%);
  box-shadow: 0 0 0 3px rgba(14, 207, 188, 0.16), 0 3px 10px rgba(0, 0, 0, 0.06);
}
.life-road-card--now .lr-icon {
  animation: life-road-now-pulse 2.2s ease-in-out infinite;
}
@keyframes life-road-now-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}
.life-road-card--horizon { border-top-color: #d4af37; opacity: 0.92; }
.lr-year {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--brand-teal, #0b6b63);
  font-variant-numeric: tabular-nums;
}
.lr-icon { font-size: 1.7rem; line-height: 1.2; }
.lr-label {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary, #1f2937);
}
.lr-age {
  margin-top: auto;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted, #6b7280);
  background: rgba(0, 0, 0, 0.05);
  border-radius: 999px;
  padding: 2px 9px;
}

@media (max-width: 600px) {
  .nrs-life-road { padding: 1.25rem 1rem 1rem; border-radius: 16px; }
  .life-road-card { width: 148px; min-height: 138px; }
}

/* ── "Go deeper" collapsed tail (step 6) ─────────────────────────────────
   Wraps the brain-insights (connections/what-ifs) and client-profile/DNA
   card — content that mostly restates the hero + consultant cards above
   in different words. Collapsed by default so the default scroll stays
   short; still one click away. */
.nrs-deep-dive-wrap {
  margin: 1.5rem 0;
}
.nrs-deep-dive-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  background: rgba(11, 107, 99, 0.06);
  border: 1px dashed rgba(11, 107, 99, 0.35);
  border-radius: 12px;
  color: var(--brand-teal, #0b6b63);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  text-align: start;
}
.nrs-deep-dive-toggle:hover { background: rgba(11, 107, 99, 0.1); }
.nrs-deep-dive-caret {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.nrs-deep-dive-toggle.is-open .nrs-deep-dive-caret {
  transform: rotate(180deg);
}
.nrs-deep-dive-body {
  margin-top: 1rem;
}
.nrs-deep-dive-body[hidden] { display: none; }

/* Advisor mode: toast appears instantly, no springy entry */
.advisor-mode .discovery-toast { transition-duration: 0.01ms; }
