/* ==========================================================================
   howitworks.css — "How it works" section (Figma-matched)
   ========================================================================== */

.ada-hiw {
	background: var(--ada-bg);
	padding: clamp( 48px, 8vw, 96px ) clamp( 16px, 8vw, 120px );
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.ada-hiw__inner {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	gap: 48px;
}

/* ---- Header ------------------------------------------------------------- */
.ada-hiw__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}

.ada-hiw__title {
	margin: 0;
	max-width: 720px;
	font-family: var(--ada-font-display);
	font-weight: 550;
	font-size: clamp( 30px, 4.4vw, 48px );
	line-height: 1.17;
	letter-spacing: -0.01em;
	color: var(--ada-hero-title);
	text-wrap: balance;
}

.ada-hiw__title .ada-grad {
	background: linear-gradient( 90deg, var(--ada-announce-from) 0%, var(--ada-announce-to) 60% );
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.ada-hiw__sub {
	margin: 0;
	max-width: 754px;
	font-family: var(--ada-font);
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: -0.011em;
	color: var(--ada-footer-ink);
}

/* ---- Body: steps + media ------------------------------------------------ */
.ada-hiw__body {
	display: flex;
	align-items: stretch;
	gap: 48px;
}

/* Steps (left) */
.ada-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 0 0 416px;
	max-width: 416px;
	display: flex;
	flex-direction: column;
}

/* Each step is a tab button */
.ada-step {
	display: flex;
	gap: 24px;
	width: 100%;
	padding: 24px 0;
	border: 0;
	border-bottom: 1px solid var(--ada-divider);
	background: transparent;
	text-align: left;
	font: inherit;
	color: inherit;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.ada-step:first-child { padding-top: 0; }
.ada-step:last-child { border-bottom: 0; padding-bottom: 0; }
.ada-step:focus-visible { outline: 2px solid var(--ada-step-active); outline-offset: 4px; border-radius: 14px; }

.ada-step__num {
	position: relative;
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 96px;
	background: var(--ada-card-bg);
	transition: background-color 0.2s ease;
}

.ada-step__digit {
	position: relative;
	z-index: 1;
	font-family: var(--ada-font);
	font-weight: 500;
	font-size: 20px;
	line-height: 28px;
	color: var(--ada-footer-ink);
	transition: color 0.2s ease;
}

/* Circular progress ring (shown on the active step) */
.ada-step__ring {
	position: absolute;
	inset: 0;
	width: 56px;
	height: 56px;
	transform: rotate( -90deg );
	opacity: 0;
	transition: opacity 0.2s ease;
}
.ada-step__ring circle {
	fill: none;
	stroke: var(--ada-step-active);
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-dasharray: 163.36;
	stroke-dashoffset: 163.36;
}

.ada-step.is-active .ada-step__num { background: var(--ada-bg); }
.ada-step.is-active .ada-step__digit { color: var(--ada-step-active); }
.ada-step.is-active .ada-step__ring { opacity: 1; }

.ada-step__text { display: flex; flex-direction: column; gap: 8px; }

.ada-step__title {
	display: block;
	font-family: var(--ada-font);
	font-weight: 500;
	font-size: 18px;
	line-height: 24px;
	letter-spacing: -0.015em;
	color: var(--ada-footer-ink);
	transition: color 0.2s ease;
}
.ada-step.is-active .ada-step__title { color: var(--ada-hero-title); }

.ada-step__desc {
	display: block;
	font-family: var(--ada-font);
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: -0.011em;
	color: var(--ada-footer-ink);
}

/* Media (right): illustration + feature row */
.ada-hiw__media {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding-left: 48px;
	border-left: 1px solid var(--ada-divider);
}

.ada-hiw__illustration {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 32px;
}

.ada-hiw__features {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 32px;
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 980px) {
	.ada-hiw__body { flex-direction: column; }
	.ada-steps { flex-basis: auto; max-width: none; }
	.ada-hiw__media { padding-left: 0; border-left: 0; }
}
