/* How it works (Figma: section-howto 35:12380 — 1512×1112) */
.fighter-howto {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 64px;
	background: var(--fighter-black);
	overflow: hidden;
	text-align: center;
	box-sizing: border-box;
}

.fighter-howto.fighter-section {
	overflow: hidden;
}

/*
 * Ellipses on an inert layer (not block ::before/::after) so the editor
 * selection outline / clicks ignore them.
 * 35:12381 — x:622 y:-157 670×670
 * 35:12382 — x:885 y:222 670×670
 */
.fighter-howto__glow {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.fighter-howto__glow::before,
.fighter-howto__glow::after {
	content: '';
	position: absolute;
	pointer-events: none;
	width: min(670px, 44.31vw);
	height: min(670px, 44.31vw);
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.fighter-howto__glow::before {
	left: calc(622 / 1512 * 100%);
	top: -157px;
	background-image: var(--fighter-bg-ellipse);
}

.fighter-howto__glow::after {
	left: calc(885 / 1512 * 100%);
	top: 222px;
	background-image: var(--fighter-bg-ellipse);
}

.fighter-howto__header,
.fighter-howto__grid {
	position: relative;
	z-index: 1;
	width: 100%;
	box-sizing: border-box;
}

.fighter-howto__header {
	max-width: 800px;
	padding-inline: var(--fighter-section-x);
}

.fighter-howto .fighter-section-title {
	gap: 24px;
	margin-bottom: 0;
	max-width: 800px;
}

.fighter-howto .fighter-section-title__eyebrow {
	font-size: 16px;
	line-height: 16px;
	text-align: center;
	width: 100%;
}

.fighter-howto .fighter-section-title__heading {
	display: flex;
	justify-content: center;
}

.fighter-howto .fighter-section-title__deco {
	left: -23.5px;
	top: 32px;
	transform: none;
	z-index: -1;
}

.fighter-howto .fighter-section-title--center .fighter-section-title__deco {
	left: -23.5px;
	transform: none;
}

.fighter-howto .fighter-section-title__title {
	font-size: clamp(2rem, 5vw, 48px);
	line-height: 1;
	text-align: center;
}

/* card-grid — 1272 wide, gap 24; rows: 385+863 / 863+385 */
.fighter-howto__grid {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
	max-width: var(--fighter-container-max);
	margin-inline: auto;
	box-sizing: border-box;
}

@media (max-width: 1336px) {
	.fighter-howto__grid {
		padding-inline: var(--fighter-section-x);
	}
}

.fighter-howto__row {
	display: grid;
	grid-template-columns: minmax(0, 385px) minmax(0, 1fr);
	gap: 24px;
	align-items: stretch;
	width: 100%;
}

.fighter-howto__row--wide-first {
	grid-template-columns: minmax(0, 1fr) minmax(0, 385px);
}

.fighter-step-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 24px;
	min-height: 348px;
	padding: 32px;
	background: var(--fighter-gray-50);
	border: 1px solid var(--fighter-white-7);
	border-radius: var(--fighter-radius-lg);
	box-sizing: border-box;
	text-align: left;
}

.fighter-step-card--highlight {
	position: relative;
	border: 2px solid transparent;
	background: var(--fighter-gray-50);
	isolation: isolate;
}

.fighter-step-card--highlight::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: inherit;
	padding: 2px;
	background: linear-gradient(
		133deg,
		var(--fighter-brand) -11.54%,
		var(--fighter-brand-yellow) 121.27%
	);
	pointer-events: none;
	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	mask-composite: exclude;
}

.fighter-step-card--highlight > * {
	position: relative;
	z-index: 1;
}

.fighter-step-card--wide {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 0;
	padding: 0;
	overflow: hidden;
}

.fighter-step-card__media {
	position: relative;
	flex: 0 0 348px;
	width: 348px;
	max-width: 40%;
	min-height: 348px;
	overflow: hidden;
	background: var(--fighter-white-7);
}

.fighter-step-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fighter-step-card__media-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 348px;
	padding: 16px;
	box-sizing: border-box;
	color: var(--fighter-white-50, rgba(245, 245, 245, 0.5));
	font-size: 13px;
	line-height: 1.3;
	text-align: center;
}

.fighter-step-card__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 24px;
	min-width: 0;
	padding: 32px;
	box-sizing: border-box;
}

.fighter-step-card--wide .fighter-step-card__content {
	border-left: 1px solid var(--fighter-white-7);
}

.fighter-step-card:not(.fighter-step-card--wide) .fighter-step-card__content {
	width: 100%;
	padding: 0;
	gap: 16px;
}

.fighter-step-card__top {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
	text-transform: uppercase;
}

.fighter-step-card__num {
	margin: 0;
	font-family: var(--fighter-font-heading);
	font-weight: 800;
	font-size: 16px;
	line-height: 16px;
	color: var(--fighter-brand);
}

.fighter-step-card__title {
	margin: 0;
	font-family: var(--fighter-font-heading);
	font-weight: 800;
	font-size: clamp(1.5rem, 3vw, 30px);
	line-height: 1.13;
	color: var(--fighter-white);
	text-transform: uppercase;
}

.fighter-step-card__desc {
	margin: 0;
	font-family: var(--fighter-font-body);
	font-weight: 400;
	font-size: 16px;
	line-height: 26px;
	color: var(--fighter-white);
}

/* Figma 2080:2987 — btn-md outline, only when text is set */
.fighter-step-card__btn {
	flex-shrink: 0;
	align-self: flex-start;
}

@media (max-width: 1100px) {
	.fighter-howto__row,
	.fighter-howto__row--wide-first {
		grid-template-columns: 1fr;
	}

	.fighter-step-card--wide {
		flex-direction: column;
	}

	.fighter-step-card__media {
		flex: 0 0 auto;
		width: 100%;
		max-width: none;
		min-height: 240px;
		aspect-ratio: 1;
	}

	.fighter-step-card--wide .fighter-step-card__content {
		border-left: 0;
		border-top: 1px solid var(--fighter-white-7);
	}
}

@media (max-width: 767px) {
	.fighter-howto {
		gap: 36px;
	}

	.fighter-howto__glow::before {
		left: 50%;
		top: -80px;
		transform: translateX(-50%);
	}

	.fighter-howto__glow::after {
		left: 40%;
		top: 50%;
	}

	.fighter-howto .fighter-section-title__deco {
		left: 0;
		top: 20px;
	}

	.fighter-step-card {
		min-height: 0;
		padding: 20px;
	}

	/* Wide cards: padding on text only — image stays edge-to-edge */
	.fighter-step-card--wide {
		padding: 0;
	}

	.fighter-step-card--wide .fighter-step-card__content {
		padding: 20px;
	}

	.fighter-step-card:not(.fighter-step-card--wide) .fighter-step-card__content {
		padding: 0;
	}
}

