/* ==========================================================================
   Roadmap — Figma 7:2 › 19:5718 (1440×902, bg rgba(235,235,235,.15))
   label 19:5823 (top 59) · title 19:5715 (top 93) · cards 19:5797 (top 222)
   label + chips 19:5800 (top 755, 672 wide)
   ========================================================================== */

.rm {
  background: rgba(235, 235, 235, 0.15);
  padding-top: 48px;
  padding-bottom: 32px;
}
@media (min-width: 768px) { .rm { padding-top: 59px; padding-bottom: 33px; } }

/* "On the Roadmap" — Inter 11 / 16.5, slate-600 */
.rm-label {
  font-size: 11px;
  line-height: 16.5px;
  color: #475569;
}
/* Title 19:5715 — STIX Regular 40/40, −0.9 */
.rm-title {
  margin-top: 17.5px;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 34px;
  letter-spacing: -0.9px;
  color: #0f172a;
}
@media (min-width: 768px) { .rm-title { font-size: 40px; line-height: 40px; } }
/* Figma places the top label 7.5px left of centre and the title 1px right of it */
@media (min-width: 1024px) {
  .rm-label--top { transform: translateX(-7.5px); }
  .rm-title { transform: translateX(1px); }
}

/* ---------- Marquee ------------------------------------------------------
   One copy = the 9 cards twice (18 → the up/down stagger stays continuous across the
   seam); the track holds two copies and slides by exactly one (−50%) every 140s.
   js/roadmap.js builds the copies and adds .is-running. Without JS or with reduced
   motion it is a plain horizontally scrollable row of the 9 cards. */
.rm-marquee {
  position: relative;
  width: 100%;
  margin-top: 40px;
  overflow-x: auto;
  scrollbar-width: none;
}
.rm-marquee::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .rm-marquee { margin-top: 49px; } }

.rm-marquee__track {
  display: flex;
  width: max-content;
  padding-inline: 24px;
}
.rm-marquee__list {
  display: flex;
  flex-shrink: 0;
  align-items: flex-start;
  gap: 11px;
}

.rm-marquee.is-running { overflow: hidden; }
.rm-marquee.is-running .rm-marquee__track {
  padding-inline: 0;
  will-change: transform;
  animation: rm-marquee 140s linear infinite;
}
.rm-marquee.is-running .rm-marquee__list { padding-right: 11px; }
.rm-marquee.is-running:hover .rm-marquee__track,
.rm-marquee.is-running:focus-within .rm-marquee__track { animation-play-state: paused; }
/* Desktop: first card (Greece) starts at x = 50% − 899px (−179 at 1440) */
@media (min-width: 768px) {
  .rm-marquee.is-running .rm-marquee__track { margin-left: calc(50% - 899px); }
}
@keyframes rm-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* Card — photo 277×354 (border 2 #e3e3e3, r 14, inset shadow) + 54 flag at its
   bottom-right; every second card sits 112 lower. Mobile: 200×255 + 40 flag, 80 lower. */
.rm-card {
  position: relative;
  flex-shrink: 0;
  width: 218px;
  height: 268px;
}
.rm-card:nth-child(even) { margin-top: 80px; }
@media (min-width: 768px) {
  .rm-card { width: 301px; height: 372px; }
  .rm-card:nth-child(even) { margin-top: 112px; }
}
.rm-card__photo {
  position: relative;
  width: 200px;
  height: 255px;
  overflow: hidden;
  border: 2px solid #e3e3e3;
  border-radius: 14px;
  background: #d9d9d9;
}
@media (min-width: 768px) { .rm-card__photo { width: 277px; height: 354px; } }
.rm-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rm-card__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 6px 4px 43.5px rgba(0, 0, 0, 0.22);
}
.rm-card__flag {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
}
@media (min-width: 768px) { .rm-card__flag { width: 54px; height: 54px; } }

/* ---------- Label + chips 19:5800 (gap 20, chips gap 10, 672 wide) ------- */
.rm-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}
@media (min-width: 768px) { .rm-bottom { margin-top: 49px; } }
.rm-chips {
  display: flex;
  max-width: 672px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
/* Chip 19:5592 — border inside: 6/20 padding incl. the 1px border; Inter 15.223 / 21.748 */
.rm-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 15px;
  border: 1px solid #e6ebf6;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  line-height: 21.748px;
  letter-spacing: -0.5437px;
  color: #757779;
  white-space: nowrap;
}
@media (min-width: 640px) { .rm-chip { padding-inline: 19px; font-size: 15.223px; } }
