/* Roadmap: a board of three columns (in development, planned, shipped), from the Featurebase product board. */

/* the board sits close under the hero text */
.rm-section {
  padding-top: clamp(0.5rem, 1.5vw, 1rem);
}

.rm-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.rm-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 24px;
  background: rgb(12 21 34 / 0.035);
  box-shadow: inset 0 0 0 1px rgb(12 21 34 / 0.05);
}
.rm-col-head {
  padding: 0.35rem 0.4rem 0.25rem;
}
.rm-col-head h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font: 700 1.2rem/1.2 var(--display);
}
/* column icon: white tile, orange glyph, like the menu's icon tiles */
.rm-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(12 21 34 / 0.08), 0 3px 8px -4px rgb(12 21 34 / 0.2);
  color: var(--orange-hover);
}
.rm-ico .i {
  width: 1.05rem;
  height: 1.05rem;
}
.rm-col--shipped .rm-ico .i {
  color: #1e8449;
}
.rm-count {
  margin-left: auto;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--navy-2);
  font: 600 0.78rem/1.4 var(--body);
}
.rm-col-head p {
  margin: 0.3rem 0 0;
  color: var(--navy-2);
  font-size: 0.85rem;
}

.rm-cards {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rm-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.95rem 1.05rem 1.05rem;
  border-radius: 16px;
  background: var(--surface);
  box-shadow:
    0 1px 2px rgb(12 21 34 / 0.08),
    0 4px 10px -6px rgb(12 21 34 / 0.18);
}
.rm-card h3 {
  margin: 0;
  font: 700 1rem/1.3 var(--display);
}
.rm-card p {
  margin: 0;
  color: var(--navy-2);
  font-size: 0.86rem;
  line-height: 1.5;
}
.rm-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy-2);
  font-size: 0.75rem;
  font-weight: 600;
}
.rm-tag {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--sand);
  color: var(--navy-2);
  font-size: 0.7rem;
}
.rm-card .btn-text {
  align-self: flex-start;
  margin-top: 0.15rem;
  font-size: 0.85rem;
}

/* long columns: capped once JS runs; the button only appears with JS */
.js .rm-col:not(.is-open) [data-more] {
  display: none;
}
.rm-show {
  display: none;
}
.js .rm-show {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(12 21 34 / 0.08);
  color: var(--navy);
  font: 600 0.88rem/1.2 var(--body);
  cursor: pointer;
  transition: box-shadow 0.2s var(--ease-out), color 0.2s;
}
.js .rm-show:hover {
  color: var(--orange-hover);
  box-shadow: 0 1px 2px rgb(12 21 34 / 0.08), 0 6px 14px -8px rgb(12 21 34 / 0.3);
}
.rm-show:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.rm-also {
  margin-top: 2.5rem;
}
.rm-also > h3 {
  margin: 0;
  font: 700 1.5rem/1.2 var(--display);
}
.rm-also > p {
  margin: 0.35rem 0 1.1rem;
  color: var(--navy-2);
  font-size: 0.95rem;
}
.rm-live-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rm-live {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(12 21 34 / 0.08), 0 4px 10px -6px rgb(12 21 34 / 0.18);
}
.rm-live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.2rem;
}
.rm-tick {
  display: grid;
  place-items: center;
  color: #1e8449;
}
.rm-tick .i {
  color: #1e8449;
  width: 1.15rem;
  height: 1.15rem;
}
.rm-live h4 {
  margin: 0;
  font: 700 1rem/1.3 var(--display);
}
.rm-live p {
  margin: 0;
  color: var(--navy-2);
  font-size: 0.85rem;
  line-height: 1.5;
}

.rm-feedback {
  margin: 1.5rem 0 0;
  color: var(--navy-2);
  font-size: 0.92rem;
}

/* tablets and phones: columns stack, each still capped by "Show all" */
@media (max-width: 900px) {
  .rm-board {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1100px) {
  .rm-live-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .rm-live-grid {
    grid-template-columns: 1fr;
  }
}
