/* Three numbered steps as cards, joined by arrows: "How it works" on the sign-in page (each card with a picture,
   account.css) and "What happens with your data" on home before anything is set up (words only). */
.step-cards {
	display: grid;
	gap: 1.75rem;
}
.eyebrow {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center;
	color: var(--text-secondary);
}
.steps {
	display: grid;
	gap: 2.25rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}
.step {
	position: relative;
	display: grid;
	gap: 0.6rem;
	align-content: start;
	padding: 0.9rem 0.9rem 1.25rem;
	background: var(--surface-1);
	border: 1px solid var(--border);
	border-radius: 22px;
	box-shadow: var(--shadow);
	counter-increment: step;
	transition:
		transform 0.2s,
		box-shadow 0.2s;
}
.step:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lift);
}
/* The step's number: an ink disc sitting on the card's top edge. */
.step::before {
	content: counter(step);
	position: absolute;
	top: -1.1rem;
	left: 1.1rem;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 2.6rem;
	height: 2.6rem;
	border: 3px solid var(--surface-0);
	border-radius: 50%;
	background: var(--ink);
	color: var(--on-ink);
	font-size: 1.2rem;
	font-weight: 700;
}
/* An arrow from each step to the next: down while the cards are stacked, across once they sit side by side. */
.step + .step::after {
	content: "↓";
	position: absolute;
	top: -1.125rem;
	left: 50%;
	translate: -50% -50%;
	color: var(--text-secondary);
	font-size: 1.2rem;
	font-weight: 600;
}
.step h3 {
	margin-top: 0.4rem;
	padding: 0 0.35rem;
	font-size: 1.25rem;
	letter-spacing: -0.02em;
}
.step p {
	padding: 0 0.35rem;
	color: var(--text-secondary);
}
/* A card without a picture: room for the number above the words. */
.step.bare {
	padding-top: 1.7rem;
}
.steps {
	text-align: left;
}

@media (min-width: 820px) {
	.steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.step + .step::after {
		content: "→";
		top: 5.9rem;
		left: -0.75rem;
	}
	.step.bare + .step.bare::after {
		top: 50%;
	}
}
/* The steps arrive in order, one after another. */
@media (prefers-reduced-motion: no-preference) {
	.step {
		animation: rise 0.5s ease-out backwards;
	}
	.step:nth-child(2) {
		animation-delay: 0.12s;
	}
	.step:nth-child(3) {
		animation-delay: 0.24s;
	}
}
@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
}
