/* Home Journey ScrollyTelling — path overview + optional chapters + kanban */

.home-journey-scrolly {
  display: grid;
  gap: 0;
  margin-bottom: 8px;
}

/* ── Sticky path overview (title + short desc per step) ───────────────── */
.home-journey-path {
  position: sticky;
  top: 72px;
  z-index: 36;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
  padding: 10px 0 14px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.home-journey-path-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--s1);
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-journey-path-card:hover {
  background: var(--s2);
  border-color: var(--border-md);
}

.home-journey-path-card.is-active {
  border-color: var(--brand-primary);
  background: var(--brand-primary-dim);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-primary) 25%, transparent);
}

.home-journey-path-card.is-suggested {
  box-shadow: 0 0 0 2px var(--brand-primary-dim);
}

.home-journey-path-card.is-done .home-journey-path-dot {
  background: var(--teal-dim);
  border-color: var(--teal);
  color: var(--teal);
}

.home-journey-path-dot {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border-md);
  background: var(--s2);
  margin-top: 2px;
}

.home-journey-path-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-journey-path-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.3;
}

.home-journey-path-desc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-2);
}

.home-journey-path-eta {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-top: 4px;
}

.home-journey-path-card.is-suggested .home-journey-path-eta {
  color: var(--brand-primary);
}

/* ── Chapters (content sections, not full-viewport) ───────────────────── */
.home-journey-chapters {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.home-journey-chapter {
  position: relative;
  min-height: auto;
  scroll-snap-align: start;
  scroll-margin-top: 240px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.home-journey-chapter:first-child {
  border-top: none;
  padding-top: 8px;
}

.home-journey-chapter.is-visible,
.home-journey-chapter.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.home-journey-chapter-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-journey-chapter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-journey-chapter-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-primary);
}

.home-journey-chapter-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.home-journey-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.home-journey-badge--suggested {
  background: var(--brand-primary-dim);
  color: var(--brand-primary);
}

.home-journey-badge--done {
  background: var(--teal-dim);
  color: var(--teal);
}

.home-journey-chapter-title {
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  font-weight: 700;
  color: var(--text-1);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.home-journey-chapter-story {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
  max-width: 42ch;
}

.home-journey-chapter-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.home-journey-chapter-panel .micro-action-card {
  margin-bottom: 0;
}

.home-journey-chapter.is-suggested .home-journey-chapter-panel .micro-action-card {
  border-color: color-mix(in srgb, var(--brand-primary) 35%, var(--border-md));
}

.home-journey-chapter.is-done::after {
  content: '✓';
  position: absolute;
  top: 20px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--teal-dim);
  color: var(--teal);
  border: 1px solid var(--teal);
  pointer-events: none;
}

/* Reflect bento card */
.home-journey-reflect-bento {
  padding: 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(123, 97, 255, 0.08), rgba(15, 212, 160, 0.05));
  border: 1px solid rgba(123, 97, 255, 0.2);
  text-align: center;
}

.home-journey-reflect-bento-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 10px;
}

.home-journey-reflect-bento h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0 0 8px;
}

.home-journey-reflect-bento p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0 0 16px;
}

.home-journey-locked-card {
  border-style: dashed;
  border-color: var(--border-md);
  background: var(--s1);
}

/* VELA chapter embed */
.home-journey-chapter--vela .vela-embed-wrap {
  min-height: 220px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.home-journey-epilogue {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* ── Today Kanban ─────────────────────────────────────────────────────── */
.home-journey-kanban {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.home-kanban-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--s1);
  border: 1px solid var(--border);
}

.home-kanban-col--done {
  border-color: color-mix(in srgb, var(--teal) 30%, var(--border));
}

.home-kanban-col--today {
  border-color: color-mix(in srgb, var(--brand-primary) 35%, var(--border));
  background: color-mix(in srgb, var(--brand-primary-dim) 40%, var(--s1));
}

.home-kanban-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0;
}

.home-kanban-col--done .home-kanban-col-title { color: var(--teal); }
.home-kanban-col--today .home-kanban-col-title { color: var(--brand-primary); }

.home-kanban-col-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-kanban-empty {
  font-size: 13px;
  color: var(--text-3);
  margin: 4px 0;
  opacity: 0.7;
}

.home-kanban-card {
  display: block;
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--s2);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.home-kanban-card:hover {
  border-color: var(--border-md);
  background: var(--bg);
}

.home-kanban-card-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}

.home-kanban-card-desc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-2);
  margin: 0 0 8px;
}

.home-kanban-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.home-kanban-card-eta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}

.home-kanban-card-cta {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-primary);
}

@media (min-width: 640px) {
  .home-journey-kanban {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

@media (min-width: 768px) {
  .home-journey-path {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (min-width: 1024px) {
  .home-journey-path {
    grid-template-columns: repeat(4, 1fr);
  }

  .home-journey-chapter {
    scroll-margin-top: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-journey-chapter {
    opacity: 1;
    transform: none;
    transition: none;
    padding-bottom: 20px;
  }
}
