/* Сторінка «UX/UI Next Level»: те, чого немає в site.css і first-step.css */

/* «Next Level» синьо-фіолетовою пігулкою, на відміну від зеленої у First Step */
.pill--nl {
  color: #fff;
  background: linear-gradient(100deg, #5cc8ff 0%, var(--blue) 35%, var(--purple) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 18px 50px -12px rgba(13, 153, 255, 0.6);
}

.nl-hero .hero__lead em {
  color: #7cc4ff;
}

.nl-hero::before {
  background:
    radial-gradient(45% 55% at 30% 50%, rgba(13, 153, 255, 0.22), transparent 75%),
    radial-gradient(40% 50% at 75% 40%, rgba(162, 89, 255, 0.24), transparent 75%);
}

/* ---------- Програма: пункти уроку ---------- */

.lesson__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 16px;
}

.lesson__list li {
  position: relative;
  padding-left: 20px;
}

.lesson__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--blue);
  rotate: 45deg;
}

.lesson--practice .lesson__list li::before {
  background: var(--purple);
}

/* зідзвон з Андрієм: фінальна точка стрічки */
.lesson--call {
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(13, 153, 255, 0.16), transparent 70%),
    var(--panel);
  border-color: rgba(13, 153, 255, 0.4);
}

.lesson--call.is-past::before {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(61, 255, 143, 0.18);
}

/* ---------- Результат: телефон з відео ---------- */

.nl-phones {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(100%, 260px);
  justify-self: center;
}

.nl-phone {
  margin: 0;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

.nl-phone.is-dragging {
  cursor: grabbing;
  position: relative;
  z-index: 3;
}

.nl-phone [data-drag-layer] {
  will-change: transform;
}

.nl-phone .frame-label {
  margin: 0 0 10px 6px;
}

.nl-phone .device {
  rotate: 3deg;
}

.nl-phones .device video {
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.85), 0 0 50px -10px rgba(13, 153, 255, 0.25);
}

.nl-phones__cap {
  grid-column: 1 / -1;
  margin: 32px 0 0;
  text-align: center;
}

.result .outcome h3 {
  margin-top: 4px;
}

.result .outcome p {
  color: var(--purple);
  font: 500 13px/1.3 var(--font-mono);
}

.qa__a ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 6px;
}

/* ---------- Адаптивність ---------- */

@media (max-width: 1024px) {
  .nl-phones {
    width: min(100%, 240px);
  }
}

@media (max-width: 640px) {
  .nl-phones {
    width: min(100%, 220px);
  }

  .nl-phone .frame-label {
    display: none;
  }

  .nl-phones__cap {
    margin-top: 28px;
  }
}
