/**
 * Dashboard “How it works” journey — interactive steps.
 */

.joc-blockora-morph-app .bm-journey {
	position: relative;
	overflow: visible;
	margin-top: 3.75rem;
	margin-bottom: 2rem;
	padding: 1.15rem 1rem 1.25rem;
	border-radius: 1.25rem;
	border: 1px solid color-mix(in srgb, var(--bm-color-outline-variant) 40%, transparent);
	background:
		radial-gradient(ellipse 70% 80% at 0% 0%, rgba(121, 187, 255, 0.16), transparent 55%),
		radial-gradient(ellipse 60% 70% at 100% 100%, rgba(53, 37, 205, 0.08), transparent 50%),
		linear-gradient(165deg, #ffffff 0%, #f4f8fc 100%);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.9) inset,
		0 14px 36px -24px rgba(53, 37, 205, 0.28);
}

@media (min-width: 640px) {
	.joc-blockora-morph-app .bm-journey {
		margin-top: 4.5rem;
		padding: 1.35rem 1.35rem 1.45rem;
	}
}

.joc-blockora-morph-app .bm-journey__avatar {
	position: absolute;
	top: 0;
	right: 0.75rem;
	z-index: 2;
	width: 5.75rem;
	height: auto;
	margin: 0;
	pointer-events: none;
	transform: translateY(-88%);
	user-select: none;
}

@media (min-width: 640px) {
	.joc-blockora-morph-app .bm-journey__avatar {
		right: 0.75rem;
		width: 14rem;
		top: 1rem;
	}
}

.joc-blockora-morph-app .bm-journey__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.75rem 1.25rem;
	margin-bottom: 1.15rem;
}

.joc-blockora-morph-app .bm-journey__eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bm-color-primary);
}

.joc-blockora-morph-app .bm-journey__title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 750;
	letter-spacing: -0.02em;
	color: var(--bm-color-on-background);
}

.joc-blockora-morph-app .bm-journey__hint {
	margin: 0;
	max-width: 18rem;
	font-size: 0.8rem;
	line-height: 1.45;
	color: var(--bm-color-outline);
	text-align: right;
}

.joc-blockora-morph-app .bm-journey__steps {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: bm-journey;
}

@media (min-width: 768px) {
	.joc-blockora-morph-app .bm-journey__steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.9rem;
	}
}

.joc-blockora-morph-app .bm-journey__step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
	width: 100%;
	min-height: 100%;
	margin: 0;
	padding: 1.1rem 1.1rem 1.15rem;
	border: 1px solid color-mix(in srgb, var(--bm-color-outline-variant) 45%, transparent);
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 1px 2px rgba(53, 37, 205, 0.04);
	text-align: left;
	cursor: pointer;
	transition:
		transform 0.28s cubic-bezier(0.2, 0, 0, 1),
		border-color 0.28s ease,
		box-shadow 0.28s ease,
		background 0.28s ease;
	animation: bm-journey-in 0.55s cubic-bezier(0.2, 0, 0, 1) both;
}

.joc-blockora-morph-app .bm-journey__step:nth-child(1) {
	animation-delay: 0.05s;
}

.joc-blockora-morph-app .bm-journey__step:nth-child(2) {
	animation-delay: 0.14s;
}

.joc-blockora-morph-app .bm-journey__step:nth-child(3) {
	animation-delay: 0.23s;
}

.joc-blockora-morph-app .bm-journey__step:hover {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--bm-color-primary) 32%, transparent);
	background: #fff;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.9) inset,
		0 16px 32px -18px rgba(53, 37, 205, 0.28);
}

.joc-blockora-morph-app .bm-journey__step:focus-visible {
	outline: 2px solid var(--bm-color-primary-interactive);
	outline-offset: 2px;
}

.joc-blockora-morph-app .bm-journey__step:active {
	transform: translateY(-1px) scale(0.99);
}

.joc-blockora-morph-app .bm-journey__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 0.75rem;
}

.joc-blockora-morph-app .bm-journey__icon {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.75rem;
	color: #fff;
	background: linear-gradient(145deg, #4f46e5 0%, #3525cd 100%);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.22) inset,
		0 10px 20px -12px rgba(53, 37, 205, 0.65);
	transition: transform 0.28s cubic-bezier(0.2, 0, 0, 1);
}

.joc-blockora-morph-app .bm-journey__step:hover .bm-journey__icon {
	transform: scale(1.06);
}

.joc-blockora-morph-app .bm-journey__icon .dashicons {
	font-size: 1.15rem;
	width: 1.15rem;
	height: 1.15rem;
}

.joc-blockora-morph-app .bm-journey__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.65rem;
	height: 1.65rem;
	padding: 0 0.4rem;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: var(--bm-color-primary);
	background: rgba(53, 37, 205, 0.1);
}

.joc-blockora-morph-app .bm-journey__name {
	display: block;
	margin: 0 0 0.35rem;
	font-size: 0.98rem;
	font-weight: 750;
	letter-spacing: -0.015em;
	color: var(--bm-color-on-background);
}

.joc-blockora-morph-app .bm-journey__copy {
	margin: 0 0 0.85rem;
	font-size: 0.84rem;
	line-height: 1.5;
	color: var(--bm-color-on-surface-variant);
}

.joc-blockora-morph-app .bm-journey__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	margin-top: auto;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bm-color-primary);
	opacity: 0.85;
	transition: opacity 0.2s ease, gap 0.2s ease;
}

.joc-blockora-morph-app .bm-journey__step:hover .bm-journey__cta {
	opacity: 1;
	gap: 0.4rem;
}

.joc-blockora-morph-app .bm-journey__cta .dashicons {
	font-size: 0.9rem;
	width: 0.9rem;
	height: 0.9rem;
}

@media (min-width: 768px) {
	.joc-blockora-morph-app .bm-journey__step:not(:last-child)::after {
		content: "";
		position: absolute;
		top: 2.15rem;
		right: -0.55rem;
		width: 0.7rem;
		height: 2px;
		border-radius: 999px;
		background: linear-gradient(
			90deg,
			rgba(53, 37, 205, 0.28),
			rgba(70, 72, 212, 0.08)
		);
		pointer-events: none;
		z-index: 1;
	}
}

@keyframes bm-journey-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.joc-blockora-morph-app .bm-journey__step {
		animation: none;
	}

	.joc-blockora-morph-app .bm-journey__step:hover {
		transform: none;
	}

	.joc-blockora-morph-app .bm-journey__step:hover .bm-journey__icon {
		transform: none;
	}
}
