/* Homepage video hero: "Repair your phone yourself" (inc/hero-video.php).
 * Light theme. Scroll animation is driven by two custom properties set in hero-video.js:
 *   --enter 0 -> 1 while the section scrolls into view, --exit 0 -> 1 while it scrolls out.
 * Copy reveals with .is-in (staggered by --d). Reduced motion: everything static and visible. */
.vhero-sec { --enter: 1; --exit: 0; padding-block: 12px 32px; overflow: clip; }

.vhero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
	min-height: clamp(480px, 40vw, 680px); margin-inline: auto; max-width: calc(var(--container) + 2 * var(--gutter));
	background: var(--c-brand-50) center right / cover no-repeat; color: var(--c-ink-900);
	border-radius: calc(var(--r-lg) * 2.4 * (1 - var(--enter)) + var(--r-lg) * var(--enter));
	transform: translateZ(0) scale(calc(.92 + .08 * var(--enter)));
	box-shadow: 0 30px 80px -40px rgba(19, 56, 135, calc(.15 + .25 * var(--enter)));
	will-change: transform; }
.vhero-video { position: absolute; inset: -4% 0; z-index: -2; width: 100%; height: 108%; object-fit: cover; object-position: 72% 50%;
	transform: translate3d(0, calc(var(--exit) * 6%), 0) scale(calc(1.06 - .06 * var(--enter))); }
.vhero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .9) 30%, rgba(255, 255, 255, .45) 46%, rgba(255, 255, 255, 0) 60%); }

.vhero-inner { position: relative; width: 100%; }
.vhero-copy { max-width: 600px; padding-block: clamp(40px, 5vw, 80px);
	transform: translate3d(0, calc(var(--exit) * -48px), 0); opacity: calc(1 - var(--exit) * .8); }

.vhero-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px;
	background: #fff; border: 1px solid var(--c-brand-100); box-shadow: 0 6px 18px -10px rgba(30, 86, 207, .45);
	color: var(--c-brand-700); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.vhero-kicker .ic { color: var(--c-brand-600); }
.vhero-h { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 4.2vw, 68px);
	line-height: 1.02; letter-spacing: -.035em; color: var(--c-ink-900); text-wrap: balance; }
.vhero-h em { font-style: normal; background: linear-gradient(95deg, var(--c-brand-600), #36A3FF);
	-webkit-background-clip: text; background-clip: text; color: transparent; }
.vhero-h em .w { background: inherit; -webkit-background-clip: text; background-clip: text; }
.vhero-h .w { display: inline-block; }
.vhero-p { margin: 18px 0 0; max-width: 46ch; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.6; color: var(--c-ink-600); }
.vhero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.vhero-cta .btn { --bh: 52px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.vhero-cta .btn-primary { box-shadow: 0 14px 30px -14px rgba(30, 86, 207, .8); }
.vhero-cta .btn-primary:hover { transform: translateY(-1px); }
.vhero-cta .btn-ghost { background: rgba(255, 255, 255, .85); }
.vhero-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--c-brand-700); }
.vhero-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.vhero-steps { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.vhero-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 999px;
	background: rgba(255, 255, 255, .9); border: 1px solid var(--c-silver-200); font-size: 13px; font-weight: 500; color: var(--c-ink-700); }
.vhero-steps .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
	background: var(--c-brand-600); font-size: 12px; font-weight: 700; color: #fff; }
.vhero-steps .ic { color: var(--c-brand-600); }

/* staggered reveal */
.vhero-sec.js .rv, .vhero-sec.js .vhero-h .w { opacity: 0; transform: translate3d(0, 22px, 0); filter: blur(6px);
	transition: opacity .7s var(--ease), transform .8s var(--ease), filter .7s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.vhero-sec.js.is-in .rv, .vhero-sec.js.is-in .vhero-h .w { opacity: 1; transform: none; filter: none; }

.vhero-toggle { position: absolute; right: 18px; bottom: 18px; display: grid; place-items: center; width: 42px; height: 42px;
	border-radius: 50%; border: 1px solid var(--c-silver-300); background: rgba(255, 255, 255, .85); color: var(--c-ink-900);
	backdrop-filter: blur(8px); cursor: pointer; box-shadow: var(--shadow-soft); transition: background-color var(--t-fast), border-color var(--t-fast); }
.vhero-toggle:hover { background: #fff; border-color: var(--c-ink-900); }
.vhero-toggle:focus-visible { outline: 2px solid var(--c-brand-600); outline-offset: 2px; }
.vhero-toggle .i-play { display: none; }
.vhero.is-paused .vhero-toggle .i-play { display: inline; }
.vhero.is-paused .vhero-toggle .i-pause { display: none; }
.vhero-toggle .i-pause, .vhero-toggle .i-play { line-height: 0; }

@media (max-width: 900px) {
	.vhero-sec { padding-inline: 12px; }
	.vhero { flex-direction: column; align-items: stretch; min-height: 0; background: #fff; transform: none; border-radius: 20px; }
	.vhero-video { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 11; object-position: 70% 50%; transform: none;
		border-radius: 20px 20px 0 0; }
	.vhero-shade { display: none; }
	.vhero-copy { padding: 22px 6px 28px; transform: none; opacity: 1; }
	.vhero-cta .btn { flex: 1 1 100%; }
	.vhero-steps { display: none; }
	.vhero-toggle { top: 12px; right: 12px; bottom: auto; }
}

@media (prefers-reduced-motion: reduce) {
	.vhero, .vhero-video, .vhero-copy { transform: none; }
	.vhero-sec .rv, .vhero-sec .vhero-h .w { opacity: 1; transform: none; filter: none; transition: none; }
	.vhero-toggle { display: none; }
}
