/* ==========================================================================
   Home: roadmap (partials/home-roadmap.html)
   Recently shipped beside coming next, on one liquid-glass board, then a
   "Suggest a feature" strip. Uses site.css tokens, .section, .section-head,
   .eyebrow, .h2, .lede, .pill and .btn; everything here is prefixed rm-.
   ========================================================================== */

.rm { isolation: isolate; }
/* soft lamplight behind the board, cooler toward "coming next" */
.rm::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 22% 62%, rgba(240, 180, 106, .08), transparent 70%),
    radial-gradient(38% 42% at 80% 58%, rgba(154, 216, 255, .07), transparent 70%);
}

/* ---------- the board: large liquid glass (same recipe as site.css panels) ---------- */
.rm-board {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(560px circle at 50% -60%, rgba(255, 255, 255, .08), transparent 45%),
    var(--lg-fill);
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  box-shadow: var(--lg-shadow);
}
.rm-board::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 1px;
  border-radius: inherit;
  background: var(--lg-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
/* the seam between past and future */
.rm-board::after {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .16) 18%, rgba(255, 255, 255, .16) 82%, transparent);
  pointer-events: none;
}

.rm-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(28px, 3.4vw, 48px);
}

.rm-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-2);
}
.rm-col--next .rm-col-title { color: var(--text); }

/* ---------- the timeline: a line down the left, a dot per item ---------- */
.rm-list {
  position: relative;
  display: grid;
  gap: 26px;
  padding: 0 0 0 30px;
  list-style: none;
}
.rm-list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
}
.rm-col--shipped .rm-list::before {
  background: linear-gradient(180deg, rgba(255, 217, 163, .55), rgba(255, 217, 163, .18));
}
/* the future is still being drawn: a dashed line */
.rm-col--next .rm-list::before {
  background: repeating-linear-gradient(180deg, rgba(154, 216, 255, .45) 0 6px, transparent 6px 12px);
}

.rm-item { position: relative; min-width: 0; }

.rm-dot {
  position: absolute;
  left: -30px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.rm-col--shipped .rm-dot {
  background: var(--amber-2);
  box-shadow: 0 0 0 4px rgba(255, 217, 163, .12);
}
.rm-item--now .rm-dot {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(240, 180, 106, .16), 0 0 14px rgba(240, 180, 106, .7);
}
.rm-col--next .rm-item:not(.rm-item--now) .rm-dot {
  background: var(--night-2);
  border: 2px solid var(--ice);
  box-shadow: 0 0 10px rgba(154, 216, 255, .35);
}

.rm-status { margin-bottom: 10px; }
.rm-name {
  margin-bottom: 6px;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.005em;
  color: var(--text);
}
.rm-desc {
  max-width: 44ch;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}

.rm-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 30px;
  padding: 4px 0;
  font-size: .88rem;
  font-weight: 600;
  color: var(--amber-2);
  text-decoration: none;
  transition: color .3s var(--ease);
}
.rm-more .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.rm-more:hover { color: var(--text); }
.rm-more:hover .icon { transform: translateX(3px); }
.rm-more:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 6px; }

/* ---------- the ask: a small glass strip under the board ---------- */
.rm-ask {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  padding: 16px 16px 16px 20px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(255, 255, 255, .04), 0 14px 34px -18px rgba(0, 0, 0, .75);
}
.rm-ask-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(240, 180, 106, .14);
  border: 1px solid rgba(240, 180, 106, .32);
  color: var(--amber-2);
}
.rm-ask-text {
  flex: 1;
  min-width: 0;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}
.rm-ask-text b { color: var(--text); font-weight: 600; }
.rm-ask-btn { flex: none; }

/* ---------- smaller screens ---------- */
/* two columns hold down to tablet portrait; below that they stack */
@media (max-width: 719px) {
  .rm-board { grid-template-columns: 1fr; }
  /* stacked: the seam becomes a line above "Coming next" */
  .rm-board::after { display: none; }
  .rm-col--next { border-top: 1px solid rgba(255, 255, 255, .1); }
}
@media (max-width: 599px) {
  .rm-ask { flex-wrap: wrap; align-items: flex-start; padding: 18px; }
  .rm-ask-text { flex-basis: calc(100% - 62px); }
  .rm-ask-btn { width: 100%; justify-content: center; }
}

/* ---------- motion: the work in progress breathes ---------- */
@keyframes rm-breathe {
  0%, 100% { box-shadow: 0 0 0 4px rgba(240, 180, 106, .16), 0 0 14px rgba(240, 180, 106, .7); }
  50%      { box-shadow: 0 0 0 7px rgba(240, 180, 106, .06), 0 0 22px rgba(240, 180, 106, .9); }
}
@media (prefers-reduced-motion: no-preference) {
  .rm-item--now .rm-dot { animation: rm-breathe 2.8s var(--ease) infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .rm-item--now .rm-dot { animation: none; }
  .rm-more .icon, .rm-more { transition: none; }
}
