/* ==========================================================================
   How It Works Section
   ========================================================================== */

.howitworks-section {
	background-color: var(--color-contrast);
	padding: var(--spacing-x-large) 0;
}

.howitworks-inner {
	max-width: var(--wide-width);
	margin: 0 auto;
	padding: 0 var(--spacing-gap);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 64px;
}

/* How It Works Header */
.howitworks-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	max-width: 700px;
	text-align: center;
}

.howitworks-title {
	font-family: var(--font-heading);
	font-size: clamp(24px, 4vw, 44px);
	font-weight: var(--font-weight-bold);
	color: var(--color-base);
	margin: 0;
	line-height: var(--line-height-medium);
}

.howitworks-subtitle {
	font-family: var(--font-primary);
	font-size: var(--font-size-medium);
	font-weight: var(--font-weight-regular);
	color: var(--color-base);
	opacity: 0.7;
	margin: 0;
}

/* Steps */
.howitworks-split {
	max-width: var(--content-width);
	margin: 0 auto;
}

.howitworks-figure {
	margin: 0;
}

.howitworks-figure img {
	width: 100%;
	height: auto;
	display: block;
}

.howitworks-accordions {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
}

.step-accordion {
	background-color: transparent;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.step-accordion summary {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 4px;
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.step-accordion summary::-webkit-details-marker {
	display: none;
}

.step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 100px;
	background-color: var(--color-primary);
	font-family: var(--font-heading);
	font-size: 13px;
	font-weight: var(--font-weight-bold);
	color: var(--color-contrast);
	flex-shrink: 0;
}

.step-title {
	flex: 1;
	font-family: var(--font-heading);
	font-size: 15px;
	font-weight: var(--font-weight-semi-bold);
	color: var(--color-base);
	line-height: 1.3;
}

.step-chevron {
	width: 9px;
	height: 9px;
	border-right: 2px solid rgba(255, 255, 255, 0.5);
	border-bottom: 2px solid rgba(255, 255, 255, 0.5);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	flex-shrink: 0;
	margin-right: 4px;
}

.step-accordion[open] .step-chevron {
	transform: rotate(-135deg);
}

.step-content {
	padding: 0 4px 16px 46px;
	font-family: var(--font-primary);
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
	line-height: var(--line-height-body);
}

/* ==========================================================================
   Stats Section
   ========================================================================== */

.stats-section {
	background-color: var(--color-base);
	padding: var(--spacing-large) 0;
}

.stats-inner {
	max-width: var(--wide-width);
	margin: 0 auto;
	padding: 0 var(--spacing-gap);
	display: flex;
	justify-content: center;
	gap: 48px;
}

.stat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 220px;
	text-align: center;
}

.stat-num {
	font-family: var(--font-heading);
	font-size: clamp(32px, 5vw, 56px);
	font-weight: var(--font-weight-bold);
	line-height: 1;
}

.stat-num--primary {
	color: var(--color-secondary);
}

.stat-num--secondary {
	color: var(--color-primary);
}

.stat-label {
	font-family: var(--font-primary);
	font-size: var(--font-size-small);
	font-weight: var(--font-weight-medium);
	color: var(--color-gris);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.stats-inner {
		gap: 32px;
	}

	.stat-item {
		width: auto;
		flex: 1;
	}
}

@media (max-width: 768px) {
	.howitworks-section {
		padding: var(--spacing-medium) 0;
	}

	.howitworks-inner {
		gap: 40px;
	}

	.step-accordion summary {
		padding: 12px 4px;
		gap: 12px;
	}

	.step-content {
		padding: 0 4px 14px 44px;
	}

	.stats-section {
		padding: var(--spacing-medium) 0;
	}

	.stats-inner {
		flex-wrap: wrap;
		gap: 32px 24px;
	}

	.stat-item {
		width: calc(50% - 12px);
	}
}
