/* Services hub S15: goal chooser and the four steps (COMPONENTS 14). */

.gcs {
	padding-block: var(--sec);
	background: var(--bg-alt);
}

.gcs .lead {
	margin-block-start: var(--sp-16);
}

.gc-g {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: var(--margin);
	align-items: start;
	margin-block-start: clamp(28px, 4vw, 56px);
}

.gcl {
	display: grid;
	gap: 10px;
}

.gcb {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	min-block-size: 64px;
	padding: 14px 20px;
	background: transparent;
	color: var(--fg);
	border: var(--hairline) solid var(--ln-s);
	font: inherit;
	font-size: var(--fs-lead);
	text-align: start;
	cursor: pointer;
	transition:
		padding var(--d-fast) var(--ease),
		background var(--d-fast),
		border-color var(--d-fast),
		color var(--d-fast);
}

.gcb i {
	flex: none;
	font: 500 12px var(--font-mono);
	color: var(--hi);
	font-style: normal;
}

.gcb:hover {
	border-color: var(--hi);
	padding-inline-start: 28px;
}

.gcb[aria-pressed="true"] {
	background: var(--hi);
	border-color: var(--hi);
	color: var(--ink-900);
}

.gcb[aria-pressed="true"] i {
	color: var(--ink-900);
}

.gres {
	position: relative;
	display: grid;
	align-content: center;
	gap: 16px;
	min-block-size: 300px;
	padding: clamp(22px, 3vw, 40px);
	border: var(--hairline) solid var(--ln-s);
}

.gres::before,
.gres::after {
	content: "";
	position: absolute;
	inline-size: 20px;
	block-size: 20px;
	border: 0 solid var(--hi);
}

.gres::before {
	inset-block-start: -1px;
	inset-inline-start: -1px;
	border-block-start-width: 2px;
	border-inline-start-width: 2px;
}

.gres::after {
	inset-block-end: -1px;
	inset-inline-end: -1px;
	border-block-end-width: 2px;
	border-inline-end-width: 2px;
}

.gres .gr {
	display: grid;
	gap: 14px;
	justify-items: start;
	animation: svc-in 0.7s var(--ease) both;
}

.gres h3 {
	font-size: clamp(28px, 3.2vw, 48px);
	font-weight: 300;
	letter-spacing: -0.04em;
	line-height: 1;
}

.gres h3 strong {
	font-weight: 800;
	color: var(--pt);
}

.gres p {
	max-inline-size: 42ch;
	color: var(--fg2);
}

.gres .mono {
	color: var(--pt);
}

.gres .empty-p {
	color: var(--fg2);
}

.gnojs {
	margin: 0;
	padding-inline-start: 1.2em;
}

.gnojs a {
	color: var(--hi);
}

.js .gnojs {
	display: none;
}

/* ---------- four steps (light scene) ---------- */
.how {
	padding-block: var(--sec);
}

.how .lead {
	margin-block-start: var(--sp-16);
}

.hsteps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: clamp(32px, 5vw, 64px) 0 0;
	padding: 0;
	list-style: none;
	border-block: var(--hairline) solid var(--ln-s);
}

.hsteps li {
	position: relative;
	display: grid;
	align-content: start;
	gap: 12px;
	min-block-size: 300px;
	padding: clamp(18px, 1.6vw, 26px);
	border-inline-start: var(--hairline) solid var(--ln-s);
}

.hsteps li:last-child {
	border-inline-end: var(--hairline) solid var(--ln-s);
}

.hsteps i {
	color: var(--hi);
	font-style: normal;
}

.sdraw {
	inline-size: min(150px, 60%);
	block-size: auto;
	margin-block: 10px 14px;
	fill: none;
	stroke: var(--fg);
	stroke-width: 1.5;
}

.sdraw .gold {
	stroke: var(--hi);
}

.sdraw .d {
	stroke-dasharray: 1;
	stroke-dashoffset: 0;
	transition: stroke-dashoffset var(--d-draw) var(--ease);
}

.js:not(.rm) [data-draw]:not(.in) .sdraw .d {
	stroke-dashoffset: 1;
}

.hsteps h3 {
	font-size: clamp(20px, 1.9vw, 30px);
	font-weight: 300;
	letter-spacing: -0.035em;
	line-height: 1.05;
}

.hsteps h3 strong {
	font-weight: 800;
}

.hsteps p {
	max-inline-size: 30ch;
	color: var(--fg2);
	font-size: 15px;
}

@media (max-width: 1000px) {
	.gc-g {
		grid-template-columns: 1fr;
	}

	.hsteps {
		grid-template-columns: 1fr;
	}

	.hsteps li {
		min-block-size: 0;
		border-inline-end: var(--hairline) solid var(--ln-s);
	}

	.hsteps li + li {
		border-block-start: var(--hairline) solid var(--ln-s);
	}
}
