/* ── Lesson path — mobile-first, L→R wraps from left ── */
#path {
  scroll-margin-top: 5rem;
}

.path {
  position: relative;
  padding: 3.25rem 1.15rem 4rem;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(252, 122, 34, 0.1), transparent 55%),
    linear-gradient(180deg, #fffaf6 0%, var(--color-white) 40%, #f7fffc 100%);
  border-top: 1px solid var(--color-gray-100);
  overflow: hidden;
}

.path__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.path__header {
  text-align: center;
  margin-bottom: 2rem;
}

.path__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-teal);
  margin-bottom: 0.65rem;
}

.path__title {
  font-size: clamp(1.55rem, 6.5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.path__title .accent {
  color: var(--color-orange);
}

.path__subtitle {
  color: var(--color-gray-500);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 36ch;
  margin: 0 auto;
}

.path__map {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 0.5rem;
  margin: 0 auto 1.5rem;
  padding: 0.25rem 0 0;
  max-width: 420px;
  justify-items: center;
}

.path__node {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.path__bubble {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  margin-bottom: 0.7rem;
  border: 4px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 5px 0 rgba(0, 0, 0, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.08);
}

.path__node--1 .path__bubble { background: var(--color-orange); }
.path__node--2 .path__bubble { background: #f59e0b; }
.path__node--3 .path__bubble { background: var(--color-teal); }
.path__node--4 .path__bubble { background: #0d9488; }
.path__node--5 .path__bubble {
  background: linear-gradient(145deg, var(--color-orange), #e85d04);
  width: 70px;
  height: 70px;
}

.path__icon {
  display: block;
  width: 24px;
  height: 24px;
}

.path__node--5 .path__icon {
  width: 28px;
  height: 28px;
}

.path__stage {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  margin-bottom: 0.35rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-gray-100);
  color: var(--color-gray-500);
}

.path__node--1 .path__stage { background: rgba(252, 122, 34, 0.14); color: var(--color-orange); }
.path__node--2 .path__stage { background: rgba(245, 158, 11, 0.16); color: #b45309; }
.path__node--3 .path__stage { background: rgba(20, 184, 166, 0.14); color: var(--color-teal-dark); }
.path__node--4 .path__stage { background: rgba(13, 148, 136, 0.14); color: #0f766e; }
.path__node--5 .path__stage { background: rgba(252, 122, 34, 0.16); color: var(--color-orange); }

.path__node-title {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  max-width: 12ch;
  line-height: 1.25;
}

.path__node-text {
  font-size: 0.78rem;
  color: var(--color-gray-500);
  line-height: 1.45;
  max-width: 16ch;
}

.path__finish {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
  color: var(--color-gray-500);
  font-size: 0.85rem;
  font-weight: 500;
}

.path__finish-flag {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-black);
  color: var(--color-white);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.path__cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
}

.path__cta .btn {
  width: 100%;
}

@media (min-width: 480px) {
  .path__map {
    max-width: 480px;
    gap: 2rem 0.75rem;
  }

  .path__node {
    max-width: 180px;
  }

  .path__node-title {
    font-size: 1.02rem;
  }

  .path__node-text {
    font-size: 0.85rem;
  }
}

@media (min-width: 700px) {
  .path {
    padding: 4.5rem 1.5rem 5rem;
  }

  .path__header {
    margin-bottom: 2.75rem;
  }

  .path__subtitle {
    font-size: 1.05rem;
  }

  .path__map {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 880px;
    gap: 2.5rem 1rem;
  }

  .path__node {
    max-width: 200px;
  }

  .path__bubble {
    width: 72px;
    height: 72px;
  }

  .path__node--5 .path__bubble {
    width: 80px;
    height: 80px;
  }

  .path__icon {
    width: 28px;
    height: 28px;
  }

  .path__node-title {
    font-size: 1.05rem;
    max-width: 14ch;
  }

  .path__node-text {
    font-size: 0.85rem;
    max-width: 18ch;
  }

  .path__cta {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .path__cta .btn {
    width: auto;
  }
}

@media (min-width: 1024px) {
  .path__map {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: none;
    gap: 1.25rem 0.5rem;
  }

  .path__node-title {
    font-size: 1.1rem;
  }
}
