.roadmap-page-body {
  background: linear-gradient(165deg, #f4f0ff 0%, #fafafa 38%, #fff 100%);
  color: #0f172a;
}

.roadmap-page {
  padding: 32px 0 80px;
}

.roadmap-page__wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.roadmap-page__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}

.roadmap-page__kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(134, 98, 246, .12);
  color: #6d28d9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.roadmap-page__head h1 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.roadmap-page__head p {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
}

.roadmap-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 20px;
  align-items: start;
}

.roadmap-wizard,
.roadmap-dopi {
  background: #fff;
  border: 1px solid #e8eaef;
  border-radius: 22px;
  box-shadow: 0 24px 60px -32px rgba(79, 70, 229, .22);
}

.roadmap-wizard {
  overflow: hidden;
}

.roadmap-wizard__top {
  padding: 18px 22px 0;
}

.roadmap-wizard__step-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #64748b;
}

.roadmap-wizard__step-label {
  font-weight: 700;
  color: #334155;
}

.roadmap-wizard__progress {
  height: 6px;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
}

.roadmap-wizard__progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #8662f6, #22c55e);
  transition: width .35s ease;
}

.roadmap-wizard__body {
  padding: 22px;
  min-height: 340px;
}

.roadmap-step h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.roadmap-step__lead {
  margin: 0 0 20px;
  color: #64748b;
  line-height: 1.6;
}

.roadmap-fields {
  display: grid;
  gap: 14px;
}

.roadmap-field {
  display: grid;
  gap: 6px;
}

.roadmap-field span {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

.roadmap-field input,
.roadmap-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  font: inherit;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.roadmap-field input:focus,
.roadmap-field select:focus {
  outline: none;
  border-color: #8662f6;
  box-shadow: 0 0 0 3px rgba(134, 98, 246, .15);
}

.roadmap-field.is-error input,
.roadmap-field.is-error select {
  border-color: #ef4444;
}

.roadmap-choice-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.roadmap-choice {
  padding: 14px 12px;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  background: #fafafa;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}

.roadmap-choice.is-selected {
  border-color: #8662f6;
  background: rgba(134, 98, 246, .08);
  color: #5b21b6;
}

.roadmap-field--conditional[hidden] {
  display: none !important;
}

.roadmap-wizard__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px 22px;
  border-top: 1px solid #f1f5f9;
}

.roadmap-btn {
  padding: 12px 20px;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border: none;
}

.roadmap-btn--ghost {
  background: #f1f5f9;
  color: #334155;
}

.roadmap-btn--ghost:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.roadmap-btn--primary {
  background: #100029;
  color: #fff;
  margin-left: auto;
}

.roadmap-btn--primary:disabled {
  opacity: .55;
  cursor: wait;
}

.roadmap-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  text-align: center;
  color: #64748b;
}

.roadmap-loading__orb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8662f6, #22c55e);
  margin-bottom: 16px;
  animation: roadmapPulse 1.2s ease-in-out infinite;
}

@keyframes roadmapPulse {
  0%, 100% { transform: scale(.92); opacity: .75; }
  50% { transform: scale(1.05); opacity: 1; }
}

.roadmap-result__saved {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(34, 197, 94, .1);
  color: #166534;
  font-size: 14px;
}

.roadmap-result__headline {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 800;
}

.roadmap-result__priority {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.roadmap-result__summary {
  margin: 0 0 18px;
  line-height: 1.65;
  color: #475569;
}

.roadmap-result__block {
  margin-bottom: 18px;
}

.roadmap-result__block h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
}

.roadmap-phase {
  padding: 14px;
  border: 1px solid #e8eaef;
  border-radius: 14px;
  margin-bottom: 10px;
}

.roadmap-phase h4 {
  margin: 0 0 4px;
  font-size: 15px;
}

.roadmap-phase time {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #8662f6;
  font-weight: 700;
}

.roadmap-phase ul {
  margin: 0;
  padding-left: 18px;
  color: #475569;
  line-height: 1.55;
}

.roadmap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.roadmap-tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(134, 98, 246, .1);
  color: #5b21b6;
  font-size: 13px;
  font-weight: 600;
}

.roadmap-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.roadmap-dopi {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  max-height: calc(100vh - 110px);
}

.roadmap-dopi__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid #f1f5f9;
}

.roadmap-dopi__badge {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #16a34a;
}

.roadmap-dopi__head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.roadmap-dopi__avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;
}

.roadmap-dopi__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.roadmap-dopi__stream {
  flex: 1;
  overflow: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.roadmap-dopi__bubble {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
}

.roadmap-dopi__bubble--bot {
  align-self: flex-start;
  background: #f8fafc;
  border: 1px solid #e8eaef;
}

.roadmap-dopi__bubble--user {
  align-self: flex-end;
  background: #100029;
  color: #fff;
}

.roadmap-dopi__composer {
  padding: 12px 14px 16px;
  border-top: 1px solid #f1f5f9;
  display: grid;
  gap: 10px;
}

.roadmap-dopi__upload span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.roadmap-dopi__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.roadmap-dopi__form input {
  padding: 11px 12px;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  font: inherit;
}

.roadmap-dopi__form button {
  width: 42px;
  border: none;
  border-radius: 12px;
  background: var(--brand-lime, #adf44d);
  color: #0a141e;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease;
}

.roadmap-dopi__form button:hover {
  background: var(--brand-lime, #adf44d);
  color: #0a141e;
}

@media (max-width: 960px) {
  .roadmap-shell {
    grid-template-columns: 1fr;
  }

  .roadmap-dopi {
    position: static;
    max-height: none;
    min-height: 420px;
  }
}

@media (max-width: 560px) {
  .roadmap-choice-group {
    grid-template-columns: 1fr;
  }

  .roadmap-wizard__footer {
    flex-direction: column-reverse;
  }

  .roadmap-btn--primary {
    margin-left: 0;
    width: 100%;
  }
}
