/*
  landing_roadmap.css — Dark "developer" theme for the dedicated /roadmap page.
  ============================================================================
  Everything is scoped under .roadmap-page so this stylesheet never leaks onto
  the rest of the (warm sandstone) public surface. Turbo prunes it on navigation
  (untracked extra_css). Fonts (Space Grotesk, IBM Plex Mono, General Sans) are
  already loaded by public_base.html. Status colours mirror the landing roadmap:
  green = shipped, amber = building now, blue/grey = up next.
*/

.roadmap-page {
  --rm-bg:        #0d1117;
  --rm-surface:   #161b22;
  --rm-surface-2: #1c2330;
  --rm-border:    #30363d;
  --rm-text:      #c9d1d9;
  --rm-heading:   #f0f6fc;
  --rm-muted:     #8b949e;
  --rm-green:     #3fb950;
  --rm-amber:     #d29922;
  --rm-blue:      #58a6ff;
  --rm-orange:    #e85d1f;

  background-color: var(--rm-bg);
  /* Faint blueprint grid + a warm glow behind the hero. */
  background-image:
    radial-gradient(900px 380px at 50% -120px, rgba(232, 93, 31, 0.10), transparent 70%),
    linear-gradient(rgba(48, 54, 61, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 54, 61, 0.35) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  color: var(--rm-text);
  font-family: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.rm-wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px 90px; }

/* ===================== HERO ===================== */
.rm-hero { padding: 64px 0 18px; }

.rm-terminal {
  max-width: 460px; border: 1px solid var(--rm-border); border-radius: 10px;
  background: var(--rm-surface); overflow: hidden; margin-bottom: 34px;
  box-shadow: 0 18px 50px -28px rgba(0, 0, 0, 0.9);
}
.rm-terminal-bar {
  display: flex; align-items: center; gap: 8px; padding: 9px 13px;
  background: #0f141b; border-bottom: 1px solid var(--rm-border);
}
.rm-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.rm-dot--r { background: #ff5f57; }
.rm-dot--y { background: #febc2e; }
.rm-dot--g { background: #28c840; }
.rm-terminal-title {
  margin-left: 6px; font-family: "IBM Plex Mono", monospace; font-size: 12px;
  color: var(--rm-muted);
}
.rm-terminal-body {
  padding: 14px 16px; font-family: "IBM Plex Mono", monospace; font-size: 13px;
  color: var(--rm-text);
}
.rm-prompt { color: var(--rm-green); margin-right: 8px; font-weight: 600; }

.rm-eyebrow {
  font-family: "IBM Plex Mono", monospace; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--rm-orange); margin-bottom: 14px;
}
.rm-title {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(30px, 5vw, 48px); line-height: 1.08; color: var(--rm-heading);
  margin: 0 0 16px; max-width: 18ch;
}
.rm-lead { color: var(--rm-muted); font-size: 17px; line-height: 1.55; max-width: 60ch; margin: 0; }

/* ===================== STATS ===================== */
.rm-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.rm-stat {
  position: relative; display: flex; align-items: baseline; gap: 9px; padding: 13px 18px 13px 20px;
  border: 1px solid var(--rm-border); border-radius: 9px; background: var(--rm-surface);
}
/* INSET spine bar (matches the feature cards) — not a full-height border. */
.rm-stat::after {
  content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px;
  border-radius: 0 2px 2px 0; background: var(--rm-border);
}
.rm-stat b {
  font-family: "IBM Plex Mono", monospace; font-size: 26px; font-weight: 600;
  color: var(--rm-heading); line-height: 1;
}
.rm-stat span {
  font-family: "IBM Plex Mono", monospace; font-size: 12.5px; color: var(--rm-muted);
}
.rm-stat--done::after { background: var(--rm-green); }
.rm-stat--now::after  { background: var(--rm-amber); }
.rm-stat--next::after { background: var(--rm-blue); }

/* ===================== STATUS SECTIONS ===================== */
.rm-status { margin-top: 56px; }
.rm-status-head { display: flex; align-items: center; gap: 11px; margin-bottom: 6px; }
.rm-status-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.rm-status-title {
  font-family: "IBM Plex Mono", monospace; font-size: 14px; font-weight: 600;
  letter-spacing: 0.06em; color: var(--rm-heading); margin: 0;
}
.rm-status-count {
  font-family: "IBM Plex Mono", monospace; font-size: 12.5px; color: var(--rm-muted);
  margin-left: 2px;
}
.rm-status::after {
  content: ""; display: block; height: 1px; margin-top: 12px;
  background: linear-gradient(90deg, var(--rm-border), transparent);
}

/* Per-status accents. */
.rm-lane-done .rm-status-dot { background: var(--rm-green); box-shadow: 0 0 0 4px rgba(63, 185, 80, 0.16); }
.rm-lane-now  .rm-status-dot { background: var(--rm-amber); box-shadow: 0 0 0 4px rgba(210, 153, 34, 0.16); animation: rm-pulse 1.8s ease-in-out infinite; }
.rm-lane-next .rm-status-dot { background: var(--rm-blue);  box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.16); }

/* ===================== FEATURE CARDS ===================== */
.rm-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 13px; margin-top: 20px;
}
.rm-card {
  position: relative; border: 1px solid var(--rm-border);
  border-radius: 9px; background: var(--rm-surface); padding: 15px 17px 16px 19px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.rm-card:hover { transform: translateY(-3px); background: var(--rm-surface-2); }
/* Status spine — an INSET vertical bar (like the landing feat-chip), not a
   full-height border-left, so it never bleeds into the rounded corners. */
.rm-card::after {
  content: ""; position: absolute; left: 0; top: 13px; bottom: 13px; width: 3px;
  border-radius: 0 2px 2px 0; background: var(--rm-border);
  transition: width 0.18s ease;
}
.rm-card:hover::after { width: 4px; }
.rm-name {
  display: flex; align-items: center; gap: 9px; margin: 0;
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 16px;
  color: var(--rm-heading);
}
.rm-name::before { content: ""; flex: none; width: 15px; height: 15px; }
.rm-desc { margin: 7px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--rm-muted); }

/* Status glyph + inset-spine colour per lane. */
.rm-lane-done .rm-card::after { background: var(--rm-green); }
.rm-lane-done .rm-name::before {
  content: "\2713"; display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; font-size: 11px; color: var(--rm-green);
}
.rm-lane-now .rm-card::after { background: var(--rm-amber); }
.rm-lane-now .rm-name::before { border-radius: 50%; background: var(--rm-amber); animation: rm-pulse 1.8s ease-in-out infinite; }
.rm-lane-next .rm-card::after { background: var(--rm-blue); }
.rm-lane-next .rm-name::before { border-radius: 50%; border: 2px solid var(--rm-blue); box-sizing: border-box; }

.rm-lane-done .rm-card:hover { border-color: var(--rm-green); }
.rm-lane-now  .rm-card:hover { border-color: var(--rm-amber); }
.rm-lane-next .rm-card:hover { border-color: var(--rm-blue); }

/* ===================== CTA ===================== */
.rm-cta {
  margin-top: 64px; padding-top: 44px; border-top: 1px solid var(--rm-border);
  text-align: center;
}
.rm-cta h2 {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 28px;
  color: var(--rm-heading); margin: 0 0 8px;
}
.rm-cta p { color: var(--rm-muted); font-size: 15.5px; margin: 0 0 22px; }
.rm-back {
  display: inline-block; margin-top: 20px; font-family: "IBM Plex Mono", monospace;
  font-size: 13px; color: var(--rm-muted); text-decoration: none;
}
.rm-back:hover { color: var(--rm-text); }

@keyframes rm-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
  .rm-card { transition: none; }
  .rm-lane-now .rm-status-dot, .rm-lane-now .rm-name::before { animation: none; }
}

@media (max-width: 640px) {
  .rm-hero { padding: 40px 0 12px; }
  .rm-grid { grid-template-columns: 1fr; }
  .rm-stats { gap: 10px; }
  .rm-stat { flex: 1 1 auto; }
}
