.jk-workflow {
	--workflow-accent: #bba7ff;
	margin-top: 28px;
	padding: 42px 36px 44px;
	border: 1px solid rgba(124, 92, 255, .24);
	border-radius: 22px;
	background: radial-gradient(600px 300px at 95% 0, rgba(124, 92, 255, .09), transparent 75%), #121522;
	color: #e8eaf2;
	scroll-margin-top: 90px;
}

.jk-workflow__eyebrow {
	margin: 0 0 10px;
	color: #53d9ed;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.jk-workflow h2 {
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	color: #fff;
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 700;
	letter-spacing: -.025em;
}

.jk-workflow__intro {
	max-width: 660px;
	margin: 0;
	color: #b9bed0;
	font-size: 15px;
	line-height: 1.75;
}

.jk-workflow__steps {
	position: relative;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
	isolation: isolate;
}

/* One continuous connection, with a moving light behind the opaque nodes. */
.jk-workflow__steps::before,
.jk-workflow__steps::after {
	position: absolute;
	z-index: -1;
	top: 27px;
	left: 10%;
	right: 10%;
	height: 1px;
	content: "";
	pointer-events: none;
}

.jk-workflow__steps::before { background: #3f3b58; }
.jk-workflow__steps::after {
	height: 2px;
	opacity: 0;
	background: linear-gradient(90deg, transparent, var(--workflow-accent), transparent) -60% 0 / 38% 100% no-repeat;
}

.jk-workflow__step {
	min-width: 0;
	text-align: center;
}

.jk-workflow__number {
	display: grid;
	position: relative;
	width: 56px;
	height: 56px;
	place-items: center;
	margin: 0 auto 16px;
	border: 1px solid #514766;
	border-radius: 50%;
	background: #1d2034;
	color: #c9c3df;
	font-size: 14px;
	font-weight: 600;
}

.jk-workflow .jk-workflow__content h3 {
	margin: 0 0 9px;
	padding: 0;
	color: #e8eaf2;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.jk-workflow__content p {
	margin: 0;
	color: #b0b6c9;
	font-size: 14px;
	line-height: 1.75;
}

@media (prefers-reduced-motion: no-preference) {
	.jk-workflow.has-motion .jk-workflow__number {
		animation: jk-workflow-pulse 8s ease-in-out infinite;
		animation-play-state: paused;
	}
	.jk-workflow.has-motion .jk-workflow__step:nth-child(2) .jk-workflow__number { animation-delay: .96s; }
	.jk-workflow.has-motion .jk-workflow__step:nth-child(3) .jk-workflow__number { animation-delay: 1.92s; }
	.jk-workflow.has-motion .jk-workflow__step:nth-child(4) .jk-workflow__number { animation-delay: 2.88s; }
	.jk-workflow.has-motion .jk-workflow__step:nth-child(5) .jk-workflow__number { animation-delay: 3.84s; }
	.jk-workflow.has-motion .jk-workflow__steps::after {
		animation: jk-workflow-travel 8s linear infinite;
		animation-play-state: paused;
	}
	.jk-workflow.is-running .jk-workflow__number,
	.jk-workflow.is-running .jk-workflow__steps::after { animation-play-state: running; }
}

@keyframes jk-workflow-pulse {
	0%, 34%, 100% { border-color: #514766; color: #c9c3df; box-shadow: 0 0 0 0 rgba(166, 137, 255, 0), 0 0 0 rgba(166, 137, 255, 0); }
	12% { border-color: #bba7ff; color: #e3d9ff; box-shadow: 0 0 0 5px rgba(166, 137, 255, .07), 0 0 24px rgba(166, 137, 255, .33); }
}

@keyframes jk-workflow-travel {
	0% { background-position: -60% 0; opacity: 0; }
	8% { opacity: .85; }
	74% { background-position: 160% 0; opacity: .85; }
	84%, 100% { background-position: 160% 0; opacity: 0; }
}

/* As in the reference: stacked rows with the number beside its description. */
@media (max-width: 991px) {
	.jk-workflow__steps { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
	.jk-workflow__steps::before,
	.jk-workflow__steps::after { display: none; }
	.jk-workflow__step { display: flex; align-items: flex-start; gap: 20px; text-align: left; }
	.jk-workflow__number { flex: 0 0 56px; margin: 0; }
	.jk-workflow__content { padding-top: 3px; }
}

@media (max-width: 599px) {
	.jk-workflow { padding: 30px 22px 34px; }
	.jk-workflow__step { gap: 16px; }
	.jk-workflow__number { width: 48px; height: 48px; flex-basis: 48px; }
}

@media print {
	.jk-workflow .jk-workflow__number,
	.jk-workflow .jk-workflow__steps::after { animation: none !important; }
}
