/* roadmapper.io marketing page — the gantt visual language: browser frame,
   wireframe roadmap (screenshot placeholder) and the how-it-works step bars.
   Loads after styles.css. */

/* browser frame around the (placeholder) screenshot */
.hero-frame {
  width: min(920px, 100%);
  margin-top: clamp(3rem, 6vh, 4.5rem);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: var(--ink-raised);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.5), 0 0 0 1px rgb(238 242 255 / 0.02);
  overflow: hidden;
  text-align: left;
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ink-line);
}

.frame-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-line);
}

.frame-url {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-low);
  background: rgb(238 242 255 / 0.04);
  border-radius: 6px;
  padding: 3px 12px;
  margin-left: 10px;
}

/* wireframe roadmap standing in for the screenshot */
.app-shot {
  padding: 1.4rem 1.6rem 1.8rem;
}

.shot-weeks,
.steps-weeks {
  display: grid;
  grid-template-columns: repeat(var(--week-cols), 1fr);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-low);
  margin-bottom: 0.9rem;
}

.shot-weeks {
  padding-left: 108px;
}

.shot-rows {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.shot-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  align-items: center;
  gap: 0;
}

.shot-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--text-low);
}

.shot-lane,
.step-lane {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--week-cols), 1fr);
  align-items: center;
  min-height: 34px;
  background-image: repeating-linear-gradient(
    90deg,
    rgb(238 242 255 / 0.05) 0,
    rgb(238 242 255 / 0.05) 1px,
    transparent 1px,
    transparent calc(100% / var(--week-cols))
  );
}

.shot-bar,
.step-bar {
  grid-row: 1;
  grid-column: var(--s) / var(--e);
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--near-white);
  white-space: nowrap;
  overflow: hidden;
  transform-origin: left center;
}

.c-indigo {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.c-purple {
  background: linear-gradient(135deg, #818cf8, #6366f1);
}

.c-teal {
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  color: #062a33;
}

.c-coral {
  background: linear-gradient(135deg, #fb923c, #f97316);
  color: #331302;
}

.c-lavender {
  background: rgb(238 242 255 / 0.14);
  border: 1px solid rgb(238 242 255 / 0.25);
}

.shot-milestone {
  grid-row: 1;
  grid-column: var(--at);
  justify-self: start;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: var(--near-white);
  transform: rotate(45deg);
  border-radius: 2px;
}

.m-teal {
  background: var(--teal);
}

/* ---------- How it works: steps as gantt rows ---------- */

.steps {
  margin-top: 3.25rem;
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.steps-weeks {
  margin-bottom: -1.25rem;
  padding-left: calc(min(320px, 34%) + 3rem);
}

.step {
  display: grid;
  grid-template-columns: min(320px, 34%) 1fr;
  gap: 3rem;
  align-items: center;
}

.step-no {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bright);
  margin-bottom: 0.4rem;
}

.step-info h3 {
  margin-bottom: 0.45rem;
}

.step-info p {
  font-size: 0.9688rem;
}

.step-lane {
  min-height: 44px;
  align-self: stretch;
}

.step-bar {
  height: 38px;
  font-size: 0.85rem;
}

.reveal.in .step-bar {
  animation: bar-grow 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes bar-grow {
  from {
    transform: scaleX(0.15);
    opacity: 0;
  }

  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* ---------- Responsive & reduced motion (gantt layer) ---------- */

@media (max-width: 880px) {
  .steps-weeks {
    padding-left: 0;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .step-lane {
    min-height: 40px;
  }
}

@media (max-width: 560px) {
  .shot-weeks {
    padding-left: 72px;
  }

  .shot-row {
    grid-template-columns: 72px 1fr;
  }

  .shot-label {
    font-size: 0.7rem;
  }

  .shot-bar {
    font-size: 0;
    padding: 0;
  } /* bars stay, labels drop */

  .app-shot {
    padding: 1rem 1rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal.in .step-bar {
    animation: none;
  }
}
