/* =============================================================
   12-month roadmap page
   Loaded only on roadmap.php.
   ============================================================= */

/* ---------- Shared section heading ---------- */
.rm-head { max-width: 44rem; margin-bottom: 3.5rem; }
.rm-eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.rm-eyebrow--light { color: #93c5fd; }
.rm-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.028em;
  margin-bottom: 1.25rem;
}
.rm-title em { font-style: normal; color: var(--primary); }
.rm-lede { font-size: 1.0625rem; line-height: 1.7; color: var(--text-muted); }

/* ---------- Hero ---------- */
.rm-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding-block: 6rem 5rem;
}
.rm-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 460px at 78% 8%, rgba(37, 99, 235, 0.5) 0%, transparent 62%),
    radial-gradient(700px 420px at 12% 92%, rgba(249, 115, 22, 0.26) 0%, transparent 60%),
    linear-gradient(150deg, #0b1220 0%, #101c33 48%, #0d1729 100%);
}
.rm-hero__inner { position: relative; z-index: 1; text-align: center; }

.rm-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.032em;
  margin-bottom: 1.5rem;
}
.rm-hero__title span { color: #fbbf24; }
.rm-hero__lede {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #c7d2e2;
  max-width: 44rem;
  margin: 0 auto 2.5rem;
}
.rm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
}
.rm-btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.rm-btn-outline:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.5); }

.rm-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 60rem;
  margin-inline: auto;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.rm-hero__stats dd {
  margin: 0 0 0.375rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
.rm-hero__stats dd span {
  font-size: 1rem;
  font-weight: 700;
  color: #60a5fa;
  margin-left: 0.1875rem;
}
.rm-hero__stats dt { font-size: 0.8125rem; color: #94a3b8; line-height: 1.5; }

/* ---------- Problems ---------- */
.rm-problem {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.3s var(--ease-std), box-shadow 0.3s ease;
}
.rm-problem:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.rm-problem--critical { border-top-color: #dc2626; }
.rm-problem--warn { border-top-color: var(--accent); }
.rm-problem--good { border-top-color: var(--primary); }
.rm-problem__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 0.625rem;
}
.rm-problem__body { font-size: 0.9375rem; line-height: 1.65; color: var(--text-soft); }

/* ---------- Approach ---------- */
.rm-approach { padding: 2rem; }
.rm-approach__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: var(--primary-soft-strong);
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.rm-approach__icon .icon { width: 22px; height: 22px; }
.rm-approach__title { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; margin-bottom: 0.5rem; }
.rm-approach__body { font-size: 0.9375rem; line-height: 1.65; color: var(--text-soft); }

/* ---------- Phases ---------- */
.rm-phases { display: flex; flex-direction: column; gap: 1.5rem; }

.rm-phase {
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.rm-phase--blue   { background: linear-gradient(140deg, #1e3a8a 0%, #1d4ed8 100%); }
.rm-phase--green  { background: linear-gradient(140deg, #14532d 0%, #15803d 100%); }
.rm-phase--violet { background: linear-gradient(140deg, #3b0764 0%, #6d28d9 100%); }
.rm-phase--dark   { background: linear-gradient(140deg, #0b1220 0%, #1e293b 100%); }

.rm-phase__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.rm-phase__n {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 0.5rem;
}
.rm-phase__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.625rem;
}
.rm-phase__lede { font-size: 0.9375rem; line-height: 1.65; color: rgba(255, 255, 255, 0.78); max-width: 42rem; }
.rm-phase__window {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

.rm-phase__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 2rem;
}
.rm-phase__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}
.rm-phase__list .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: #4ade80;
}

/* ---------- Included ---------- */
.rm-included { display: flex; align-items: flex-start; gap: 1rem; padding: 1.5rem; }
.rm-included__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-dark);
  flex-shrink: 0;
}
.rm-included__icon .icon { width: 19px; height: 19px; }
.rm-included__title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: 0.3125rem; }
.rm-included__body { font-size: 0.875rem; line-height: 1.6; color: var(--text-soft); }

/* ---------- Outcomes ---------- */
.rm-outcomes { text-align: center; }
.rm-outcomes div {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 2rem 1.25rem;
}
.rm-outcomes dd {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--primary);
}
.rm-outcomes dt { font-size: 0.875rem; line-height: 1.5; color: var(--text-soft); }

/* ---------- Differentiators ---------- */
.rm-diff { padding: 1.75rem; }
.rm-diff__stat {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.rm-diff__title { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; margin-bottom: 0.5rem; }
.rm-diff__body { font-size: 0.875rem; line-height: 1.65; color: var(--text-soft); }

/* ---------- Coverage table ---------- */
.rm-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.rm-table { width: 100%; border-collapse: collapse; min-width: 44rem; }
.rm-table th, .rm-table td { text-align: left; padding: 1.125rem 1.5rem; }
.rm-table thead th {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: #f6f8fb;
  border-bottom: 1px solid var(--line);
}
.rm-table tbody tr + tr { border-top: 1px solid var(--line-soft); }
.rm-table tbody th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--secondary);
  white-space: nowrap;
}
.rm-table td { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.55; }
.rm-table__when { white-space: nowrap; font-weight: 600; color: var(--primary); }
.rm-table tbody tr:hover { background: #fafbfd; }

/* ---------- Process ---------- */
.rm-process { position: relative; padding-left: 0; max-width: 52rem; }
.rm-process__item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
  padding-bottom: 2.25rem;
}
.rm-process__item:last-child { padding-bottom: 0; }
/* Connector down the numbers */
.rm-process__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.4375rem;
  top: 3.25rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.35), rgba(37, 99, 235, 0.08));
}
.rm-process__n {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 2px solid rgba(37, 99, 235, 0.3);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
  position: relative;
  z-index: 1;
}
.rm-process__title { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; margin-bottom: 0.375rem; padding-top: 0.5rem; }
.rm-process__body { font-size: 0.9375rem; line-height: 1.65; color: var(--text-soft); }

/* ---------- Principles ---------- */
.rm-principle {
  border-left: 2px solid rgba(37, 99, 235, 0.25);
  padding: 0.25rem 0 0.25rem 1.25rem;
}
.rm-principle__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.rm-principle__title .icon { width: 17px; height: 17px; color: var(--strong, #16a34a); flex-shrink: 0; }
.rm-principle__body { font-size: 0.9375rem; line-height: 1.65; color: var(--text-soft); }

/* ---------- Final CTA ---------- */
.rm-cta { position: relative; overflow: hidden; color: #fff; padding-block: 5.5rem; text-align: center; }
.rm-cta__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 400px at 20% 10%, rgba(249, 115, 22, 0.24) 0%, transparent 60%),
    radial-gradient(820px 420px at 82% 90%, rgba(37, 99, 235, 0.45) 0%, transparent 62%),
    linear-gradient(150deg, #0b1220 0%, #101c33 55%, #0d1729 100%);
}
.rm-cta__inner { position: relative; z-index: 1; }
.rm-cta__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.875rem, 4.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.rm-cta__title em { font-style: normal; color: #fbbf24; }
.rm-cta__lede { font-size: 1.0625rem; line-height: 1.7; color: #c7d2e2; max-width: 42rem; margin: 0 auto 2.5rem; }
.rm-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.rm-cta__note { margin-top: 1.5rem; font-size: 0.8125rem; color: #94a3b8; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .rm-hero { padding-block: 4rem 3.5rem; }
  .rm-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.5rem; }
  .rm-head { margin-bottom: 2.5rem; }
  .rm-phase { padding: 1.75rem; }
  .rm-phase__list { grid-template-columns: minmax(0, 1fr); }
  .rm-phase__head { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 639px) {
  .rm-hero__actions .btn,
  .rm-cta__actions .btn { width: 100%; }
  .rm-outcomes div { padding: 1.5rem 1rem; }
  .rm-process__item { gap: 1rem; }
  .rm-process__item:not(:last-child)::before { left: 1.1875rem; }
  .rm-process__n { width: 2.5rem; height: 2.5rem; font-size: 0.8125rem; }
}

/* ---------- Context banner (arriving from a health check result) ---------- */
.rm-context {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.375rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid;
  margin-bottom: 2rem;
}
.rm-context__score {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
.rm-context__score small { font-size: 0.875rem; font-weight: 600; opacity: 0.6; }
.rm-context__title { font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.25rem; }
.rm-context__body { font-size: 0.875rem; line-height: 1.6; color: var(--text-soft); }

.rm-context--strong   { background: rgba(22, 163, 74, 0.07); border-color: rgba(22, 163, 74, 0.28); }
.rm-context--strong .rm-context__score { color: #15803d; }
.rm-context--good     { background: rgba(37, 99, 235, 0.06); border-color: rgba(37, 99, 235, 0.26); }
.rm-context--good .rm-context__score { color: var(--primary-dark); }
.rm-context--warn     { background: #fffaf5; border-color: rgba(245, 158, 11, 0.4); }
.rm-context--warn .rm-context__score { color: var(--accent-deep); }
.rm-context--critical { background: #fff7f7; border-color: rgba(220, 38, 38, 0.32); }
.rm-context--critical .rm-context__score { color: #b91c1c; }

@media (max-width: 639px) {
  .rm-context { flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 1.25rem; }
}
