/* How It Works — Autonemo VMS Pro narrative landing */

:root {
	--autonemo-hiw-radius: 20px;
	--autonemo-hiw-shell: clamp(292px, 92vw, 1180px);
}

body.autonemo-how-it-works-active .page-content-wrapper {
	padding-top: 32px;
}

.autonemo-how-it-works-page {
	max-width: none;
	padding: 0 0 64px;
	margin: 0;
	background: transparent !important;
}

.autonemo-hiw__shell {
	width: min(100%, var(--autonemo-hiw-shell));
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 28px);
}

/* Hero band */
.autonemo-hiw__hero {
	position: relative;
	margin: 0 0 clamp(32px, 6vw, 56px);
	padding: clamp(24px, 4vw, 36px);
	border-radius: var(--autonemo-hiw-radius);
	background:
		linear-gradient(125deg, rgba(226, 35, 26, 0.09) 0%, rgba(255, 255, 255, 0) 45%),
		#fdfefe;
	border: 1px solid #e8edf5;
	box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
	overflow: hidden;
}

.autonemo-hiw__hero::after {
	content: "";
	position: absolute;
	bottom: -60px;
	left: -40px;
	width: 210px;
	height: 210px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(226, 35, 26, 0.1) 0%, transparent 70%);
	pointer-events: none;
}

.autonemo-hiw__hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
	gap: clamp(18px, 3vw, 36px);
	align-items: start;
	position: relative;
	z-index: 1;
}

.autonemo-hiw__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	background: rgba(226, 35, 26, 0.1);
	color: var(--autonemo-red);
}

.autonemo-hiw__display {
	margin: 0 0 clamp(14px, 3vw, 18px);
	font-size: clamp(1.82rem, 4.2vw, 2.7rem);
	line-height: 1.12;
	max-width: 22ch;
	color: var(--autonemo-black);
}

.autonemo-hiw__dek {
	margin: 0 0 18px;
	font-size: clamp(0.96rem, 1.95vw, 1.07rem);
	line-height: 1.65;
	max-width: 58ch;
	color: var(--autonemo-ash-text);
}

.autonemo-hiw__cta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 14px;
	margin-bottom: 18px;
}

.autonemo-hiw__cta-row .primary-btn1 {
	flex: 0 0 auto;
}

.autonemo-hiw__btn-primary span,
.autonemo-hiw__btn-primary::after {
	text-transform: none;
}

.autonemo-hiw__btn-muted.primary-btn1 {
	box-shadow: none;
	background: #fff !important;
	color: var(--autonemo-black) !important;
	border: 1px solid rgba(15, 23, 42, 0.12);
}

.autonemo-hiw__bullets {
	margin: 0;
	padding-left: 1.2rem;
	color: var(--autonemo-ash-text);
	font-size: 0.93rem;
	line-height: 1.55;
	display: grid;
	gap: 8px;
}

.autonemo-hiw__hero-shot {
	margin: 0;
	align-self: center;
	justify-self: end;
	position: relative;
	border-radius: 18px;
	padding: clamp(10px, 2vw, 14px);
	background: linear-gradient(160deg, #fff 45%, rgba(242, 242, 243, 0.8));
	border: 1px solid #e8edf5;
	box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
}

.autonemo-hiw__hero-shot img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

/* Section head */
.autonemo-hiw__timeline {
	position: relative;
	margin-bottom: clamp(40px, 7vw, 72px);
}

.autonemo-hiw__section-head {
	text-align: center;
	max-width: 780px;
	margin: 0 auto clamp(36px, 6vw, 52px);
}

.autonemo-hiw__section-kicker {
	display: inline-block;
	margin: 0 0 10px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--autonemo-red);
}

.autonemo-hiw__section-title {
	margin: 0 0 12px;
	font-size: clamp(1.42rem, 3.6vw, 2.08rem);
	line-height: 1.14;
	color: var(--autonemo-black);
}

.autonemo-hiw__section-lead {
	margin: 0;
	font-size: clamp(0.93rem, 1.95vw, 1.06rem);
	line-height: 1.62;
	color: var(--autonemo-ash-text);
}

.autonemo-hiw__section-lead a {
	color: var(--autonemo-red);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Timeline steps — alternating mosaic */
.autonemo-hiw__step {
	position: relative;
	margin-bottom: clamp(28px, 5vw, 44px);
}

.autonemo-hiw__step-inner {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(18px, 3vw, 36px);
	align-items: center;
	padding: clamp(18px, 3vw, 28px);
	border-radius: calc(var(--autonemo-hiw-radius) - 2px);
	background: linear-gradient(160deg, #fff 0%, #f7fafc 100%);
	border: 1px solid #e9eef6;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
	box-sizing: border-box;
	width: min(100%, calc(var(--autonemo-hiw-shell) + clamp(28px, 6vw, 56px)));
	margin-inline: auto;
}

.autonemo-hiw__figure {
	position: relative;
	margin: 0;
	border-radius: 16px;
	padding: clamp(8px, 1.8vw, 12px);
	background: #fdfefe;
	border: 1px solid #e9eef6;
	overflow: hidden;
}

.autonemo-hiw__figure::after {
	content: "";
	position: absolute;
	inset: 0;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
	border-radius: 16px;
	pointer-events: none;
}

.autonemo-hiw__figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.autonemo-hiw__copy {
	display: grid;
	align-content: center;
	gap: 12px;
}

.autonemo-hiw__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 16px;
	font-size: 1.06rem;
	font-weight: 800;
	background: rgba(226, 35, 26, 0.1);
	color: var(--autonemo-red);
	letter-spacing: 0.04em;
	margin-bottom: 4px;
}

.autonemo-hiw__lead {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #9ca3af;
}

.autonemo-hiw__title {
	margin: 0;
	font-size: clamp(1.24rem, 2.85vw, 1.74rem);
	line-height: 1.22;
	color: var(--autonemo-black);
}

.autonemo-hiw__body p {
	margin: 0;
	font-size: clamp(0.93rem, 1.72vw, 1.03rem);
	line-height: 1.72;
	color: var(--autonemo-ash-text);
}

/* Mobile single column ordering: copy first always for readability */
@media (max-width: 891px) {
	.autonemo-hiw__hero-grid {
		grid-template-columns: 1fr;
	}

	.autonemo-hiw__hero-shot {
		justify-self: stretch;
	}

	.autonemo-hiw__step-inner {
		grid-template-columns: 1fr;
		max-width: 100%;
	}

	.autonemo-hiw__step-inner .autonemo-hiw__copy {
		order: 1;
	}

	.autonemo-hiw__step-inner .autonemo-hiw__figure {
		order: 2;
	}
}

/* Closing CTA */
.autonemo-hiw__cta-band {
	position: relative;
	margin-top: clamp(32px, 6vw, 56px);
	border-radius: var(--autonemo-hiw-radius);
	padding: clamp(22px, 4vw, 32px);
	background: linear-gradient(110deg, #0f1114 12%, #1f2329 92%);
	color: #f5f8ff;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 26px 60px rgba(8, 9, 12, 0.45);
	overflow: hidden;
}

.autonemo-hiw__cta-band::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 80% -20%, rgba(226, 35, 26, 0.35), transparent 55%);
	pointer-events: none;
}

.autonemo-hiw__cta-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 18px 28px;
	align-items: center;
	justify-content: space-between;
	max-width: 1080px;
	margin: 0 auto;
}

.autonemo-hiw__cta-overline {
	margin: 0 0 6px;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.1em;
	font-size: 0.73rem;
	color: rgba(255, 255, 255, 0.74);
}

.autonemo-hiw__cta-strong {
	margin: 0;
	font-size: clamp(1rem, 2.35vw, 1.26rem);
	line-height: 1.52;
	max-width: 640px;
	color: #fdfefe !important;
	-webkit-text-fill-color: #fdfefe !important;
}

.autonemo-hiw__cta-band .primary-btn1 {
	flex-shrink: 0;
	box-shadow: 0 14px 32px rgba(226, 35, 26, 0.35);
}

/* Dark scheme compatibility */
body.dark.autonemo-how-it-works-active {
	background-color: var(--background-color, #0b0c0c) !important;
}

body.dark.autonemo-how-it-works-active .autonemo-hiw__hero {
	background:
		linear-gradient(125deg, rgba(226, 35, 26, 0.18) 0%, transparent 52%),
		#17181f;
	border-color: rgba(255, 255, 255, 0.1);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

body.dark.autonemo-how-it-works-active .autonemo-hiw__display,
body.dark.autonemo-how-it-works-active .autonemo-hiw__section-title,
body.dark.autonemo-how-it-works-active .autonemo-hiw__title {
	color: #fdfefe !important;
	-webkit-text-fill-color: #fdfefe !important;
}

body.dark.autonemo-how-it-works-active .autonemo-hiw__dek,
body.dark.autonemo-how-it-works-active .autonemo-hiw__section-lead,
body.dark.autonemo-how-it-works-active .autonemo-hiw__body p {
	color: #c8ccd8 !important;
	-webkit-text-fill-color: #c8ccd8 !important;
}

body.dark.autonemo-how-it-works-active .autonemo-hiw__bullets {
	color: #b6bac7;
}

body.dark.autonemo-how-it-works-active .autonemo-hiw__step-inner {
	background: linear-gradient(170deg, #181c24 0%, #15171d 96%);
	border-color: rgba(255, 255, 255, 0.07);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

body.dark.autonemo-how-it-works-active .autonemo-hiw__figure {
	background: #101218;
	border-color: rgba(255, 255, 255, 0.06);
}

body.dark.autonemo-how-it-works-active .autonemo-hiw__hero-shot {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.1);
}

body.dark.autonemo-how-it-works-active .autonemo-hiw__btn-muted.primary-btn1 {
	background: rgba(255, 255, 255, 0.08) !important;
	color: #fdfefe !important;
	border-color: rgba(255, 255, 255, 0.16);
}

body.dark.autonemo-how-it-works-active .autonemo-hiw__lead {
	color: #848b9f;
}
