/*
 * EMTM Homepage — layout only.
 * Colors, fonts, dark mode, buttons: 100% from Foxiz theme variables.
 * Zero hardcoded colors. Zero font declarations. Zero dark-mode overrides.
 */

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hp-hero { padding: 80px 0 60px; }

.hp-hero__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: center;
}

.hp-hero__sub {
	color: var(--meta-fcolor);
	margin: 16px 0 0;
	line-height: 1.7;
}

/* ── Question form ──────────────────────────────────────────────────────── */

.hp-qform { display: flex; flex-direction: column; gap: 12px; }

.hp-qform__field-wrap {
	position: relative;
	border: 2px solid var(--flex-gray-15);
	border-radius: var(--round-7);
	overflow: hidden;
	background: var(--solid-white);
	transition: border-color 0.2s;
}

.hp-qform__field-wrap:focus-within { border-color: var(--g-color); }

.hp-qform__field {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 16px 18px;
	min-height: 108px;
	background: transparent;
	border: 0;
	outline: 0;
	resize: none;
	color: var(--body-fcolor);
	font-family: var(--body-family);
	font-size: var(--body-fsize);
	line-height: 1.6;
	position: relative;
	z-index: 2;
}

.hp-qform__field::placeholder,
.hp-qform__field::-webkit-input-placeholder { color: transparent; }

/* Animated typewriter placeholder */
.hp-qform__placeholder {
	position: absolute;
	top: 16px;
	left: 18px;
	right: 18px;
	pointer-events: none;
	z-index: 1;
	color: var(--meta-fcolor);
	font-family: var(--body-family);
	font-size: var(--body-fsize);
	line-height: 1.6;
}

.hp-cursor { animation: hp-blink 1s step-end infinite; }
@keyframes hp-blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* Submit — colors from Foxiz customizer (light: --btn-primary, dark: --g-color) */
.hp-qform__btn {
	display: flex !important;
	width: 100%;
	align-items: center;
	justify-content: center;
	gap: 8px;
	line-height: 1.2 !important;
	padding: 15px 28px !important;
	border-radius: var(--round-7) !important;
	white-space: normal;
	background: var(--btn-primary) !important;
	color: var(--btn-accent) !important;
	transition: background 0.18s, transform 0.1s, box-shadow 0.18s !important;
}
.hp-qform__btn:hover { background: var(--btn-primary-h) !important; color: var(--btn-accent-h) !important; transform: translateY(-1px); box-shadow: 0 8px 28px color-mix(in srgb, var(--btn-primary) 45%, transparent) !important; }
[data-theme='dark'] .hp-qform__btn { background: var(--g-color) !important; color: #fff !important; }
[data-theme='dark'] .hp-qform__btn:hover { background: color-mix(in srgb, var(--g-color) 80%, #000) !important; color: #fff !important; box-shadow: 0 8px 28px color-mix(in srgb, var(--g-color) 35%, transparent) !important; }

.hp-btn-spinner { display: none; animation: hp-spin 0.8s linear infinite; flex-shrink: 0; }
.hp-qform__btn--loading .hp-btn-spinner { display: block; }
@keyframes hp-spin { to { transform: rotate(360deg); } }

.hp-qform__error { display: none; font-size: 13px; color: #d94040; }
.hp-hero__note { font-size: 13px; color: var(--meta-fcolor); text-align: center; }

/* ── Proof bar (intentionally always dark) ──────────────────────────────── */

.hp-proof { background: var(--dark-accent); padding: 28px 0; }

.hp-proof__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 48px;
	flex-wrap: wrap;
}

.hp-proof__item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hp-proof__num { font-size: 34px; font-weight: 700; color: var(--g-color); font-family: var(--h1-family); line-height: 1; }
.hp-proof__label { font-size: 11px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.07em; }
.hp-proof__divider { width: 1px; height: 40px; background: rgba(255,255,255,0.1); }

/* ── Section headers (shared) ───────────────────────────────────────────── */

.hp-section-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--g-color);
	text-align: center;
	display: block;
	margin-bottom: 10px;
}

.hp-section-h2 { text-align: center; margin-bottom: 8px; }
.hp-section-sub { text-align: center; color: var(--meta-fcolor); margin-bottom: 40px; }

/* ── How it works ───────────────────────────────────────────────────────── */

.hp-how { padding: 80px 0; }

.hp-how__steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--el-spacing);
}

.hp-how__step {
	padding: 28px 24px;
	border: 1px solid var(--flex-gray-15);
	border-radius: var(--round-7);
	background: var(--solid-white);
}

.hp-how__step-num {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--g-color);
	margin-bottom: 14px;
}

.hp-how__step-h { margin: 0 0 10px; }
.hp-how__step-p { color: var(--meta-fcolor); font-size: 14px; margin: 0; line-height: 1.65; }

/* ── Testimonials ───────────────────────────────────────────────────────── */

.hp-testimonials { background: var(--solid-light); padding: 80px 0; }

.hp-test__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--el-spacing);
}

.hp-test__card {
	padding: 24px;
	border: 1px solid var(--flex-gray-15);
	border-radius: var(--round-7);
	background: var(--solid-white);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.hp-test__quote { font-style: italic; font-size: 15px; line-height: 1.7; margin: 0; flex: 1; }
.hp-test__author { display: flex; flex-direction: column; gap: 3px; }
.hp-test__name { font-weight: 700; font-size: 14px; }
.hp-test__role { font-size: 13px; color: var(--meta-fcolor); }

/* ── Final CTA (intentionally always dark) ──────────────────────────────── */

.hp-final-cta { background: var(--dark-accent); padding: 100px 0; text-align: center; }

.hp-final-cta__inner {
	max-width: 600px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.hp-final-cta h2 { color: #fff; margin: 0; }
.hp-final-cta__sub { color: rgba(255,255,255,0.6); margin: 0; }
.hp-final-cta__note { font-size: 13px; color: rgba(255,255,255,0.35); margin: 0; }

/* ── Mobile first ───────────────────────────────────────────────────────── */

@media (max-width: 768px) {
	.hp-hero { padding: 48px 0 36px; }
	.hp-hero__inner { grid-template-columns: 1fr; gap: 32px; }
	.hp-how { padding: 52px 0; }
	.hp-how__steps { grid-template-columns: 1fr; }
	.hp-testimonials { padding: 52px 0; }
	.hp-test__grid { grid-template-columns: 1fr; }
	.hp-final-cta { padding: 64px 0; }
	.hp-proof__divider { display: none; }
	.hp-proof__inner { gap: 24px; }
	.hp-proof__num { font-size: 26px; }
}
