/*
 * Home page, one-screen minimal family (test home_minimal, variant b; template-parts/home-minimal.php).
 * Enqueued on the front page and on the preview template only (functions.php). Everything is
 * scoped to .home-min so the control keeps style.css. Same family as home v2: Founders Grotesk,
 * #0042ff, #ffd600, black on white, the hand-drawn circle mark.
 *
 * Mobile first: the base rules are the 375 px layout. Budget at 375x812 (building-landing-pages):
 * headline top under 200 px, CTA bottom under 812 px, no horizontal overflow.
 */

.home-min {
	--hm-ink: #000000;
	--hm-body: #292929;
	--hm-meta: #5f5f5f;
	--hm-rule: #d9d6d2;
	--hm-accent: #0042ff;
	--hm-accent-dark: #002ba5;
	--hm-yellow: #ffd600;
	--hm-ground: #f7f6f6;
	--hm-white: #ffffff;
	--hm-focus: 0 0 0 3px var(--hm-yellow);
	--hm-radius: 8px;
	--hm-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	font-family: "Founders Grotesk", "Founders Grotesk Fallback", "Founders Grotesk Fallback Roboto", Arial, sans-serif;
	color: var(--hm-body);
	-webkit-font-smoothing: antialiased;
}

.home-min *,
.home-min *::before,
.home-min *::after {
	box-sizing: border-box;
}

.home-min .hm-hero {
	background: var(--hm-ground);
	width: 97%;
	margin: 0 auto 24px;
	border-radius: 3px;
	padding: 26px 15px 30px;
	min-height: calc(100vh - 120px);
	display: flex;
	align-items: flex-start;
}

.home-min .hm-shell {
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
}

.home-min .hm-title {
	margin: 0 0 10px;
	font-size: clamp(38px, 3.2vw + 26px, 60px);
	line-height: 1.0;
	letter-spacing: -0.03em;
	font-weight: 600;
	color: var(--hm-ink);
	max-width: 7.35em; /* 12ch of Founders Grotesk Semibold */
	text-wrap: balance;
}

.home-min .hm-mark {
	position: relative;
	display: inline-block;
	white-space: nowrap;
	z-index: 0;
}

.home-min .hm-mark::after {
	content: "";
	position: absolute;
	z-index: -1;
	left: -6%;
	top: -16%;
	width: 110%;
	height: 132%;
	background: url("../assets/icons/home/features-circle.png") no-repeat center / 100% 100%;
	pointer-events: none;
}

.home-min .hm-sub {
	margin: 0 0 18px;
	font-size: clamp(17px, 0.6vw + 14px, 21px);
	line-height: 1.4;
	letter-spacing: -0.2px;
	color: var(--hm-body);
	max-width: 30ch;
}

/* ---- The link box ---- */

.home-min .hm-form {
	display: grid;
	gap: 10px;
	margin: 0;
}

.home-min .hm-label {
	font-size: 15px;
	font-weight: 600;
	color: var(--hm-ink);
	letter-spacing: -0.1px;
	margin-bottom: -4px;
}

.home-min .hm-field {
	position: relative;
	display: flex;
	align-items: center;
	background: var(--hm-white);
	border: 2px solid var(--hm-rule);
	border-radius: var(--hm-radius);
	transition: border-color 150ms var(--hm-ease), box-shadow 150ms var(--hm-ease);
}

.home-min .hm-field:focus-within {
	border-color: var(--hm-accent);
	box-shadow: 0 0 0 3px rgba(0, 66, 255, 0.15);
}

.home-min .hm-field.is-bad {
	border-color: #c62828;
}

.home-min .hm-field__ic {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 0 0 0 14px;
	color: var(--hm-meta);
}

.home-min .hm-field__ic svg {
	width: 22px;
	height: 22px;
	display: block;
}

.home-min .hm-input {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	height: 54px;
	padding: 2px 14px 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 17px;
	color: var(--hm-ink);
	outline: none;
	border-radius: var(--hm-radius);
}

.home-min .hm-input::placeholder {
	color: #8a8a8a;
}

.home-min .hm-hint {
	margin: -4px 0 0;
	font-size: 14px;
	line-height: 1.35;
	color: var(--hm-meta);
}

.home-min .hm-hint.is-bad {
	color: #c62828;
}

/* The video's own thumbnail inside a small in-stream ad frame. */
.home-min .hm-preview {
	margin: 2px 0 0;
	display: grid;
	gap: 6px;
}

.home-min .hm-preview[hidden] {
	display: none;
}

.home-min .hm-preview__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--hm-radius);
	overflow: hidden;
	background: #111;
	isolation: isolate;
}

.home-min .hm-preview__thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.home-min .hm-preview__ad {
	position: absolute;
	right: 10px;
	bottom: 16px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	padding: 5px 8px 4px;
	border-radius: 3px;
}

.home-min .hm-ad {
	display: inline-block;
	background: var(--hm-yellow);
	color: #1a1919;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	padding: 3px 4px 2px;
	border-radius: 2px;
	letter-spacing: 0.02em;
}

.home-min .hm-preview__bar {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 4px;
	width: 22%;
	background: var(--hm-yellow);
}

.home-min .hm-preview__bar::after {
	content: "";
	position: absolute;
	left: 0;
	right: -355%;
	bottom: 0;
	height: 4px;
	background: rgba(255, 255, 255, 0.25);
	z-index: -1;
}

.home-min .hm-preview__cap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--hm-meta);
}

.home-min .hm-preview__cap svg {
	width: 22px;
	height: 16px;
}

/* ---- CTA (the family's white card with the blue inner button, as a real button) ---- */

.home-min .hm-cta {
	display: flex;
	align-items: center;
	width: 100%;
	background: var(--hm-white);
	padding: 5px;
	border: 0;
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(188, 188, 188, 0.55);
	text-align: left;
	color: var(--hm-white);
	cursor: pointer;
	font: inherit;
	transition: transform 150ms var(--hm-ease), box-shadow 150ms var(--hm-ease);
}

.home-min .hm-cta .hm-cta__g {
	flex: none;
	width: 30px;
	height: 30px;
	margin: 0 15px;
}

.home-min .hm-cta .hm-cta__label {
	flex: 1 1 auto;
	display: block;
	background: var(--hm-accent);
	border-radius: 4px;
	padding: 17px 16px 15px;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.2px;
	text-align: center;
	transition: background 150ms var(--hm-ease);
}

.home-min .hm-cta:hover .hm-cta__label,
.home-min .hm-cta:focus-visible .hm-cta__label {
	background: var(--hm-accent-dark);
}

.home-min .hm-cta:focus-visible {
	outline: none;
	box-shadow: var(--hm-focus);
}

.home-min .hm-cta:active {
	transform: translateY(1px);
}

.home-min .hm-cta.is-busy .hm-cta__label {
	opacity: 0.7;
}

.home-min .hm-email {
	margin: -2px 0 0;
	text-align: center;
	font-size: 15px;
}

.home-min .hm-email a {
	color: var(--hm-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---- Proof ---- */

.home-min .hm-proof {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
	font-size: 15px;
	font-weight: 500;
	color: var(--hm-ink);
	letter-spacing: -0.1px;
}

.home-min .hm-proof li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	line-height: 1.2;
}

.home-min .hm-proof svg {
	width: 18px;
	height: 18px;
	flex: none;
}

.home-min .hm-proof a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.home-min .hm-stars {
	color: var(--hm-yellow);
	-webkit-text-stroke: 1px #1a1919;
	font-size: 15px;
	letter-spacing: -1px;
	line-height: 1;
}

@media (min-width: 768px) {
	.home-min .hm-hero {
		padding: 36px 24px 56px;
		min-height: 0;
		align-items: flex-start;
	}

	.home-min .hm-shell {
		max-width: 640px;
		text-align: center;
	}

	.home-min .hm-title,
	.home-min .hm-sub {
		margin-left: auto;
		margin-right: auto;
	}

	.home-min .hm-title {
		max-width: 10em;
		font-size: clamp(38px, 2.6vw + 22px, 52px);
	}

	.home-min .hm-sub {
		max-width: 40ch;
		margin-bottom: 20px;
	}

	.home-min .hm-label {
		text-align: left;
	}

	.home-min .hm-hint {
		text-align: left;
	}

	.home-min .hm-proof {
		justify-content: center;
		margin-top: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-min .hm-cta,
	.home-min .hm-field {
		transition: none;
	}
}

/* ---- Shorts-feed preview: /youtube-shorts-promotion/ (rebuilt 2026-09-23 on this family) ----
 * The pasted Short's own vertical thumbnail (oar2.jpg) inside a small 9:16 phone frame with the
 * Sponsored tag, channel row and Watch button of a Shorts-feed ad; the caption sits beside it so
 * the CTA stays inside the 375x812 first screen even with a link pasted. */

.home-min .hm-preview--shorts {
	grid-template-columns: 124px 1fr;
	align-items: center;
	gap: 14px;
}

.home-min .hm-preview--shorts .hm-preview__frame {
	width: 124px;
	aspect-ratio: 9 / 16;
	border-radius: 16px;
	border: 3px solid #1a1919;
	background: #000;
}

.home-min .hm-preview--shorts .hm-preview__ad {
	right: auto;
	bottom: auto;
	left: 8px;
	top: 8px;
	padding: 4px 6px 3px;
	font-size: 11px;
}

.home-min .hm-preview--shorts .hm-preview__bar {
	display: none;
}

.home-min .hm-shorts__meta {
	position: absolute;
	left: 9px;
	right: 9px;
	bottom: 10px;
	display: grid;
	gap: 6px;
	color: #fff;
	font-size: 11px;
	line-height: 1.2;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.home-min .hm-shorts__name {
	display: flex;
	align-items: center;
	gap: 5px;
	font-weight: 600;
}

.home-min .hm-shorts__avatar {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	flex: none;
}

.home-min .hm-shorts__btn {
	display: inline-block;
	width: max-content;
	background: #fff;
	color: #1a1919;
	font-weight: 700;
	font-size: 11px;
	line-height: 1;
	padding: 5px 9px 4px;
	border-radius: 999px;
	text-shadow: none;
}

.home-min .hm-preview--shorts .hm-preview__cap {
	display: grid;
	gap: 6px;
	align-content: center;
	font-size: 15px;
	line-height: 1.3;
	color: var(--hm-ink);
}

.home-min .hm-preview--shorts .hm-preview__cap > span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.home-min .hm-preview--shorts .hm-preview__cap small {
	font-size: 13px;
	line-height: 1.35;
	color: var(--hm-meta);
}

/* The Shorts page sits under the regular header (not the family preview's), so it needs no
 * full-height hero: the FAQ follows it. */
.home-min--shorts .hm-hero {
	min-height: 0;
	padding-bottom: 34px;
}

/* The FAQ that follows the Shorts hero (real_estate_promotion.css gives it 235px of top margin,
 * sized for a page with sections in between). */
.template-landing-shorts .content .section-faq .text_wrapper h2 {
	margin-top: 40px;
}
