/* home-process: section styles, split from the prototype CSS (Code/frontend/assets/css) by bin/import/css_split.py. */

.journey {
	--node: 2.5rem;
	--p: 0;
	max-width: 68rem;
	margin: clamp(2rem, 1.5rem + 2vw, 3rem) auto 0;
}
.journey__rail {
	position: relative;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));

	
	&::before,
	&::after {
		content: "";
		position: absolute;
		inset-block-start: calc(var(--node) / 2 - 1px);
		inset-inline: calc(100% / 12);
		height: 2px;
		border-radius: 2px;
	}

	&::before {
		background: var(--color-lavender-line);
	}

	&::after {
		background: linear-gradient(90deg, var(--color-accent), var(--color-accent-pink));
		transform: scaleX(var(--p));
		transform-origin: left;
		transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
	}
}
.journey__step {
	position: relative;
	z-index: 1;
	display: grid;
	justify-items: center;
	align-content: start;
	gap: 0.3rem;
	padding: 0 0.25rem 0.75rem;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: center;
	cursor: pointer;

	&:focus-visible {
		outline: none;

		& .journey__node {
			outline: 2px solid var(--color-accent);
			outline-offset: 3px;
		}
	}
}
.journey__node {
	display: grid;
	place-items: center;
	width: var(--node);
	height: var(--node);
	margin-block-end: 0.35rem;
	border-radius: 50%;
	background: var(--color-paper);
	box-shadow: inset 0 0 0 2px var(--color-lavender-line);
	color: var(--color-plum);
	font-family: var(--font-heading);
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	transition: background 400ms ease, color 400ms ease, box-shadow 400ms ease, transform 300ms ease;
}
.journey__step:hover .journey__node {
	transform: scale(1.08);
}
.journey__step.is-reached .journey__node {
	background: var(--gradient-accent);
	box-shadow: none;
	color: var(--color-on-dark);
}
.journey__step[aria-selected="true"] .journey__node {
	box-shadow: 0 0 0 6px rgb(143 44 244 / 0.16);
	transform: scale(1.1);
}
.journey__when, .journey__step-title {
	display: none;
}
.journey__panels {
	display: grid;
	margin-block-start: 0.75rem;
}
.journey__card {
	display: grid;
	gap: 1.25rem;
	padding: 1.4rem;
	border-radius: var(--radius-xl);
	background: var(--color-paper);
	box-shadow: 0 0 0 1px var(--color-line), 0 24px 44px -34px rgb(42 12 61 / 0.45);
	grid-area: 1 / 1;

	
	&:not(.is-current) {
		visibility: hidden;
	}

	&.is-current {
		animation: journey-in 450ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}
}
.journey__main {
	display: grid;
	align-content: start;
	gap: 0.6rem;
}
.journey__meta {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--color-accent);
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
}
.journey__icon {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.7rem;
	background: var(--color-lavender);
	color: var(--color-accent);

	& svg {
		width: 1.1rem;
		height: 1.1rem;
	}
}
.journey__title {
	color: var(--color-ink);
	font-family: var(--font-heading);
	font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
	font-weight: var(--weight-semibold);
	line-height: 1.2;
}
.journey__text {
	color: var(--color-text);
	line-height: 1.6;
}
.journey__lists {
	display: grid;
	gap: 1rem;
	padding: 1.1rem 1.2rem;
	border-radius: var(--radius-lg);
	background: var(--color-cream);
}
.journey__label {
	margin-block-end: 0.45rem;
	color: var(--color-muted);
	font-size: var(--text-xs);
	font-weight: var(--weight-semibold);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.journey__get, .journey__yours {
	display: grid;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--color-ink);
	font-size: var(--text-sm);
	line-height: 1.45;
}
.journey__get li {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;

	& svg {
		flex: none;
		width: 1rem;
		height: 1rem;
		margin-block-start: 0.15rem;
		color: var(--color-success);
	}
}
.journey__yours li {
	position: relative;
	padding-inline-start: 1.5rem;

	&::before {
		content: "";
		position: absolute;
		inset-inline-start: 0.3rem;
		inset-block-start: 0.5rem;
		width: 0.45rem;
		height: 0.45rem;
		border-radius: 50%;
		background: var(--color-accent-pink);
	}
}
.journey__end {
	display: grid;
	justify-items: center;
	gap: 1rem;
	margin-block-start: clamp(2rem, 1.5rem + 2vw, 3rem);
	text-align: center;
}
.journey__end-text {
	color: var(--color-ink);
	font-family: var(--font-heading);
	font-size: var(--text-md);
	font-weight: var(--weight-semibold);
}
@media (min-width: 48rem) {
	.journey {
		--node: 3rem;
	}
	.journey__when {
		display: block;
		color: var(--color-accent);
		font-size: var(--text-xs);
		font-weight: var(--weight-semibold);
		letter-spacing: 0.04em;
	}
	.journey__step-title {
		display: block;
		color: var(--color-text);
		font-size: var(--text-sm);
		font-weight: var(--weight-medium);
		line-height: 1.3;
		transition: color 200ms ease;
	}
	.journey__step[aria-selected="true"] .journey__step-title, .journey__step:hover .journey__step-title {
		color: var(--color-ink);
	}
	.journey__card {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
		align-items: start;
		gap: 2rem;
		padding: 2rem;
	}
	.journey__lists {
		grid-template-columns: 1fr;
	}
}
@media (prefers-reduced-motion: reduce) {
	.journey__rail::after, .journey__node {
		transition: none;
	}
	.journey__card {
		animation: none;
	}
}
.section--dark {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 12% 0%, rgb(143 44 244 / 0.32), transparent 45%),
		radial-gradient(circle at 92% 100%, rgb(196 58 166 / 0.24), transparent 45%),
		var(--gradient-plum);
	color: var(--color-on-dark-muted);

	& .section-title {
		color: var(--color-on-dark);
	}

	& .section-lead {
		color: var(--color-on-dark-muted);
	}
}
.section--dark .journey__rail::before {
	background: rgb(255 255 255 / 0.16);
}
.section--dark .journey__rail::after {
	background: var(--gradient-accent-dark);
}
.section--dark .journey__node {
	background: rgb(255 255 255 / 0.06);
	box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.22);
	color: var(--color-on-dark);
}
.section--dark .journey__step.is-reached .journey__node {
	background: var(--gradient-accent);
	box-shadow: none;
}
.section--dark .journey__step[aria-selected="true"] .journey__node {
	box-shadow: 0 0 0 6px rgb(217 182 255 / 0.22);
}
.section--dark .journey__card {
	box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.55);
}
.section--dark .journey__end-text {
	color: var(--color-on-dark);
}
.section--dark .button--light {
	color: var(--color-plum);
}
@media (min-width: 48rem) {
	.section--dark .journey__when {
		color: var(--color-highlight-light);
	}
	.section--dark .journey__step-title {
		color: var(--color-on-dark-muted);
	}
	.section--dark .journey__step[aria-selected="true"] .journey__step-title, .section--dark .journey__step:hover .journey__step-title {
		color: var(--color-on-dark);
	}
}
.section--dark.process {
	background:
		radial-gradient(circle at 8% 4%, rgb(45 212 191 / 0.22), transparent 42%),
		radial-gradient(circle at 50% 120%, rgb(143 44 244 / 0.3), transparent 50%),
		radial-gradient(circle at 96% 10%, rgb(255 122 89 / 0.2), transparent 40%),
		linear-gradient(160deg, #0d1330 0%, #161a44 55%, #1c1240 100%);

	& .accent--light {
		background: linear-gradient(90deg, #5eead4 0%, #a5b4fc 50%, #fda4af 100%);
		-webkit-background-clip: text;
		background-clip: text;
	}
}
.journey__step:nth-child(1), .journey__card:nth-child(1) { --c: #a78bfa; --c-deep: #7c3aed; }
.journey__step:nth-child(2), .journey__card:nth-child(2) { --c: #f472b6; --c-deep: #db2777; }
.journey__step:nth-child(3), .journey__card:nth-child(3) { --c: #fb923c; --c-deep: #ea580c; }
.journey__step:nth-child(4), .journey__card:nth-child(4) { --c: #facc15; --c-deep: #b45309; }
.journey__step:nth-child(5), .journey__card:nth-child(5) { --c: #2dd4bf; --c-deep: #0f766e; }
.journey__step:nth-child(6), .journey__card:nth-child(6) { --c: #60a5fa; --c-deep: #2563eb; }
.section--dark .journey__rail::after {
	background: linear-gradient(90deg, #a78bfa, #f472b6 20%, #fb923c 40%, #facc15 60%, #2dd4bf 80%, #60a5fa);
	transform: none;
	clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0);
	transition: clip-path 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.section--dark .journey__step.is-reached .journey__node {
	background: var(--c);
	color: #0d1330;
}
.section--dark .journey__step[aria-selected="true"] .journey__node {
	box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 28%, transparent), 0 0 28px color-mix(in srgb, var(--c) 55%, transparent);
}
.section--dark .journey__step:focus-visible .journey__node {
	outline-color: var(--c);
}
.section--dark .journey__card {
	position: relative;
	overflow: hidden;

	&::before {
		content: "";
		position: absolute;
		inset: 0 0 auto;
		height: 4px;
		background: linear-gradient(90deg, var(--c-deep), var(--c));
	}
}
.journey__meta:has(.journey__icon:only-child) {
	gap: 0;
}
.section--dark .journey__icon {
	background: color-mix(in srgb, var(--c) 20%, white);
	color: var(--c-deep);
}
.section--dark .journey__lists {
	background: color-mix(in srgb, var(--c) 9%, var(--color-cream));
}
.section--dark .journey__yours li::before {
	background: var(--c-deep);
}
.section--dark .button--light {
	color: #161a44;
}
@media (min-width: 48rem) {
	.section--dark .journey__when {
		color: var(--c);
	}
}
@media (prefers-reduced-motion: reduce) {
	.section--dark .journey__rail::after {
		transition: none;
	}
}
@keyframes journey-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
}
