/* ========================================
   TIMELINE — Horizontal scroll-on-scroll
   ======================================== */
.tl-section {
  min-height: auto !important;
  padding-bottom: 20px !important;
  overflow: visible !important;
  position: relative;
  z-index: 1;
}
.tl-section > .inner {
  padding-bottom: 0;
  margin-bottom: 0;
}
.tl-track {
  position: relative;
  overflow: hidden;
  padding: 10px 0 40px;
  width: 100%;
  background: var(--dark);
}
.tl-rail {
  display: flex;
  gap: 48px;
  padding: 20px 80px 40px;
  width: max-content;
  will-change: transform;
  position: relative;
}
/* Line and dots removed */
.tl-rail::before { display: none; }
.tl-card {
  flex-shrink: 0;
  width: 300px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: 20px;
  padding: 28px 28px 28px;
  position: relative;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.tl-card:hover {
  transform: translateY(-4px);
  border-color: rgba(157, 212, 207, 0.25);
  background: rgba(255, 255, 255, 0.05);
}
/* Accent top bar */
.tl-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; border-radius: 20px 20px 0 0;
}
.tl-card--1::before { background: var(--mint); }
.tl-card--2::before { background: var(--lavender); }
.tl-card--3::before { background: var(--gold-accent); }
.tl-card--4::before { background: var(--mint); }
.tl-card--5::before { background: var(--lavender); }

/* Connection dots — hidden */
.tl-card-dot { display: none; }

.tl-card-period {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mint); margin-bottom: 10px;
}
.tl-card--2 .tl-card-period,
.tl-card--5 .tl-card-period { color: var(--lavender); }
.tl-card--3 .tl-card-period { color: var(--gold-accent); }

.tl-card-title {
  font-family: 'Newsreader', serif;
  font-size: 20px; font-weight: 500;
  color: white; margin-bottom: 12px;
  line-height: 1.3;
}
.tl-card-desc {
  font-size: 14px;
  color: var(--text-on-dark-muted);
  line-height: 1.7;
}
.tl-card-bullets {
  list-style: none;
  padding: 0;
  margin: 14px 0 0 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 14px;
}
.tl-card-bullets li {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  padding: 4px 0 4px 18px;
  position: relative;
  line-height: 1.5;
}
.tl-card-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(157, 212, 207, 0.4);
}
.tl-card--2 .tl-card-bullets li::before,
.tl-card--5 .tl-card-bullets li::before { background: rgba(167, 160, 210, 0.4); }
.tl-card--3 .tl-card-bullets li::before { background: rgba(206, 232, 235, 0.35); }

/* Old vertical timeline (kept for fallback / unused) */
.tl-wrap { position: relative; padding-left: 40px; max-width: 800px; margin: 0 auto; }
.tl-wrap::before {
  content: ''; position: absolute; left: 14px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--mint), var(--lavender), var(--mint));
}
.ti { position: relative; margin-bottom: 48px; }
.ti:last-child { margin-bottom: 0; }
.tdot { position: absolute; left: -34px; top: 6px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--dark); }
.ti:nth-child(1) .tdot { background: var(--mint); }
.ti:nth-child(2) .tdot { background: var(--lavender); }
.ti:nth-child(3) .tdot { background: var(--gold-accent); }
.ti:nth-child(4) .tdot { background: var(--mint); }
.ti:nth-child(5) .tdot { background: var(--lavender); }
.tper { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint); margin-bottom: 8px; }
.ttl { font-family: 'Newsreader', serif; font-size: 22px; font-weight: 500; color: white; margin-bottom: 10px; }
.tds { font-size: 14px; color: var(--text-on-dark-muted); line-height: 1.7; }

/* Next Steps section must sit above the pinned timeline */
#next {
  position: relative;
  z-index: 2;
  background: var(--dark);
}

/* ========================================
   ROADMAP — Card Grid (replaces table)
   ======================================== */
.rm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.rm-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.rm-card:hover {
  transform: translateY(-3px);
  border-color: rgba(157, 212, 207, 0.2);
  background: rgba(157, 212, 207, 0.04);
}
.rm-phase {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 12px;
}
.rm-phase-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.rm-dot-b { background: var(--mint); }
.rm-dot-l { background: var(--lavender); }
.rm-dot-r { background: var(--gold-accent); }
.rm-phase:has(.rm-dot-b) { color: var(--mint); }
.rm-phase:has(.rm-dot-l) { color: var(--lavender); }
.rm-phase:has(.rm-dot-r) { color: var(--gold-accent); }

.rm-name {
  font-family: 'Newsreader', serif;
  font-size: 18px; font-weight: 600;
  color: white; margin-bottom: 8px;
}
.rm-desc {
  font-size: 13px;
  color: var(--text-on-dark-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}
.rm-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
}

/* Phase & User Badges */
.pb { display: inline-block; padding: 4px 12px; border-radius: 100px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.pb-b { background: rgba(157, 212, 207, 0.15); color: var(--mint); }
.pb-l { background: rgba(167, 160, 210, 0.15); color: var(--lavender); }
.pb-r { background: rgba(206, 232, 235, 0.1); color: var(--gold-accent); }

.ub { display: inline-block; padding: 4px 12px; border-radius: 100px; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; margin: 0; }
.ub-t { background: rgba(157, 212, 207, 0.12); color: var(--mint); }
.ub-o { background: rgba(167, 160, 210, 0.12); color: var(--lavender); }
.ub-a { background: rgba(206, 232, 235, 0.1); color: #CEE8EB; }

/* ========================================
   NEXT STEPS — Card Grid
   ======================================== */
.ns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ns-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.ns-card:hover {
  transform: translateY(-3px);
  border-color: rgba(157, 212, 207, 0.2);
  background: rgba(255, 255, 255, 0.05);
}
.ns-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  border: 1px solid;
}
.ns-label {
  font-family: 'Newsreader', serif;
  font-size: 17px; font-weight: 600;
  color: white; margin-bottom: 8px;
}
.ns-text {
  font-size: 13px;
  color: var(--text-on-dark-muted);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .ns-grid { grid-template-columns: 1fr 1fr; }
  .rm-grid { grid-template-columns: 1fr 1fr; }
  .tl-card { width: 260px; }
  .tl-rail { padding: 20px 40px 40px; gap: 32px; }
}
@media (max-width: 600px) {
  .ns-grid { grid-template-columns: 1fr; }
  .rm-grid { grid-template-columns: 1fr; }
  .tl-card { width: 240px; padding: 24px 24px 24px; }
  .tl-rail { padding: 20px 20px 40px; gap: 24px; }
}
