/* Mixed Reality Sinus Trainer landing (page-mixed-reality-trainer.php).
 *
 * Motion: js/mr-landing.js writes scroll progress into two custom properties
 * (--hero, --wipe) once per frame and toggles classes; everything visual is
 * here. CSS animation-timeline would be lighter still, but Firefox lacks it.
 * No JS or reduced motion: the same page, static. */

.mr {
	--mr-ink: #07111c;
	--mr-ink-2: #0e1b29;
	--mr-text: #1d1d1f;
	--mr-muted: #6e6e73;
	--mr-soft: #f5f5f7;
	--mr-line: #e5e5ea;
	--mr-accent: #f97316;
	--mr-accent-dark: #ea580c;
	--mr-cyan: #5ee1ff;
	--mr-navy: #00416a;
	--mr-head: 150px;   /* site header height, refined by js/mr-landing.js */
	--mr-top: 0px;      /* sticky offset: the header is fixed only >= 1181px */
	--mr-nav: 52px;
	margin-top: -25px;  /* main.page padding */
	color: var(--mr-text);
	font-weight: 400;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

@media (min-width: 1181px) {
	.mr { --mr-head: 195px; --mr-top: 195px; margin-top: -5px; }
}

/* :where() keeps the resets at zero specificity, below every component rule. */
:where(.mr) *, :where(.mr) *::before, :where(.mr) *::after { box-sizing: border-box; }
:where(.mr) img { display: block; max-width: 100%; height: auto; }
:where(.mr) :is(h1, h2, h3, p, figure, ol, ul, dl, dd) { margin: 0; }
.mr [id] { scroll-margin-top: calc(var(--mr-top) + var(--mr-nav)); }

.mr .screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

.mr-wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }

.mr-eyebrow {
	margin-bottom: 14px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .01em;
	color: var(--mr-accent);
}

.mr-h2 {
	margin-bottom: clamp(40px, 6vw, 72px);
	font-size: clamp(2.1rem, 5vw, 3.9rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -.035em;
	color: inherit;
}

.mr-sub {
	max-width: 640px;
	margin: calc(-1 * clamp(24px, 4vw, 48px)) 0 clamp(40px, 5vw, 56px);
	font-size: clamp(1.1rem, 1.6vw, 1.3rem);
	color: var(--mr-muted);
}

.mr-section { padding: clamp(88px, 12vw, 168px) 0; background: #fff; }
.mr-section--soft { background: var(--mr-soft); }
.mr-section--dark { background: var(--mr-ink); color: #fff; }
.mr-section--dark .mr-sub { color: rgba(255, 255, 255, .62); }


/* ---------- Buttons ---------- */

.mr-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mr-actions--center { justify-content: center; }

.mr .mr-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--mr-accent);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s, transform .2s;
}
.mr .mr-btn:hover { background: var(--mr-accent-dark); color: #fff; }
.mr .mr-btn:active { transform: scale(.97); }
.mr .mr-btn:focus-visible, .mr-play:focus-visible { outline: 3px solid var(--mr-cyan); outline-offset: 3px; }

.mr .mr-btn--ghost {
	background: rgba(255, 255, 255, .1);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.mr .mr-btn--ghost:hover { background: rgba(255, 255, 255, .2); }

.mr .mr-btn--sm { padding: 7px 15px; font-size: 13px; }


/* ---------- Sticky product bar ---------- */

.mr-subnav {
	position: sticky;
	top: var(--mr-top);
	z-index: 50;
	height: var(--mr-nav);
	background: rgba(255, 255, 255, .78);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.mr-subnav__inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.mr .mr-subnav__title { margin-right: auto; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--mr-text); white-space: nowrap; }
.mr-subnav__links { display: none; gap: 24px; padding: 0; list-style: none; }
.mr .mr-subnav__links a { font-size: 13px; color: var(--mr-muted); transition: color .2s; }
.mr .mr-subnav__links a:hover { color: var(--mr-text); }

@media (min-width: 900px) {
	.mr-subnav__links { display: flex; }
}
@media (max-width: 420px) {
	.mr .mr-subnav__title { font-size: 15px; }
}


/* ---------- Hero ---------- */

.mr-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	height: max(540px, calc(100svh - var(--mr-head) - var(--mr-nav)));
	max-height: 1000px;
	overflow: hidden;
	background: var(--mr-ink);
	color: #fff;
	container-type: size;
}

.mr-hero__media { position: absolute; inset: 0; }
.mr-hero__poster { width: 100%; height: 100% !important; object-fit: cover; }

/* Own MP4 loop over the poster; fades in once it actually plays. */
.mr-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1s ease;
}
.mr-hero.is-playing .mr-hero__video { opacity: 1; }

.mr-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to top, rgba(7, 17, 28, .94) 0%, rgba(7, 17, 28, .55) 38%, rgba(7, 17, 28, .08) 72%),
		linear-gradient(to right, rgba(7, 17, 28, .8) 0%, rgba(7, 17, 28, .35) 45%, rgba(7, 17, 28, 0) 75%);
}

.mr-hero__content { position: relative; padding-bottom: clamp(56px, 10cqh, 120px); }

.mr-hero__title {
	margin-bottom: 22px;
	font-size: clamp(2.9rem, 7.2vw, 6.25rem);
	font-weight: 700;
	line-height: .98;
	letter-spacing: -.045em;
	background: linear-gradient(100deg, #fff 30%, #c9f3ff 70%, var(--mr-cyan));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.mr-hero__lead {
	max-width: 580px;
	margin-bottom: 32px;
	font-size: clamp(1.05rem, 1.55vw, 1.3rem);
	line-height: 1.5;
	color: rgba(255, 255, 255, .84);
}

.mr-hero__cue {
	position: absolute;
	left: 50%;
	bottom: 22px;
	width: 26px;
	height: 42px;
	margin-left: -13px;
	border-radius: 13px;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5);
}
.mr-hero__cue span {
	position: absolute;
	left: 50%;
	top: 9px;
	width: 4px;
	height: 8px;
	margin-left: -2px;
	border-radius: 2px;
	background: #fff;
}
@media (max-width: 899px) {
	.mr-hero__cue { display: none; }
}


/* ---------- Statement ---------- */

.mr-statement { padding: clamp(100px, 16vw, 220px) 0; background: #fff; }
.mr-statement__text {
	max-width: 1080px;
	font-size: clamp(1.7rem, 3.7vw, 3.3rem);
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -.028em;
	color: var(--mr-text);
}


/* ---------- Physical / digital wipe ---------- */

.mr-wipe { background: var(--mr-ink); color: #fff; padding: clamp(80px, 10vw, 140px) 0; }
.mr-wipe__head { text-align: center; }
.mr-wipe__head .mr-h2 { margin-bottom: clamp(28px, 4vh, 48px); }

.mr-wipe__frame {
	display: grid;
	gap: 16px;
	width: min(1200px, calc(100% - 48px));
	margin-inline: auto;
}
.mr-wipe figure { position: relative; overflow: hidden; border-radius: 24px; aspect-ratio: 16 / 9; }
.mr-wipe figure img { width: 100%; height: 100%; object-fit: cover; }
.mr-wipe figcaption {
	position: absolute;
	left: 16px;
	bottom: 16px;
	max-width: calc(100% - 32px);
	padding: 10px 16px;
	border-radius: 14px;
	background: rgba(7, 17, 28, .6);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	font-size: 14px;
	color: rgba(255, 255, 255, .8);
}
.mr-wipe figcaption strong { display: block; font-size: 15px; color: #fff; }
.mr-wipe__line { display: none; }

@media (min-width: 900px) {
	.mr-wipe__frame { grid-template-columns: 1fr 1fr; }
}


/* ---------- How it works ---------- */

.mr-steps { display: grid; gap: 48px 24px; padding: 0; list-style: none; }
.mr-step__img { overflow: hidden; border-radius: 20px; aspect-ratio: 4 / 3; background: var(--mr-soft); }
.mr-step__img img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.mr-step:hover .mr-step__img img { transform: scale(1.04); }
.mr-step__n { display: block; margin: 22px 0 6px; font-size: 14px; font-weight: 700; color: var(--mr-accent); }
.mr-step h3 { margin-bottom: 8px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.mr-step p { font-size: 16px; color: var(--mr-muted); }

@media (min-width: 900px) {
	.mr-steps { grid-template-columns: repeat(3, 1fr); }
}


/* ---------- Features bento ---------- */

.mr-bento { display: grid; gap: 16px; }

.mr-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .07);
	border-radius: 24px;
	background: var(--mr-ink-2);
}
.mr-card__img { height: clamp(220px, 24vw, 320px); overflow: hidden; }
/* One screenshot, several cards: --pos/--zoom frame a different detail each. */
.mr-card__img img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: var(--pos, 50% 50%);
	transform: scale(var(--zoom, 1));
	transform-origin: var(--pos, 50% 50%);
}
.mr-card__body { padding: 26px 28px 30px; }
.mr-card h3 { margin-bottom: 8px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.mr-card p { font-size: 16px; color: rgba(255, 255, 255, .62); }
.mr-card--stat { padding: 32px 28px; }
.mr .mr-stat {
	margin-bottom: 14px;
	font-size: clamp(2.4rem, 4vw, 3.4rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -.04em;
	background: linear-gradient(100deg, #fff, var(--mr-cyan));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

@media (min-width: 900px) {
	.mr-bento { grid-template-columns: repeat(3, 1fr); }
	.mr-card--wide { grid-column: span 2; }
}


/* ---------- Video ---------- */

.mr-video { padding-top: 0; }
.mr-video__grid { display: grid; gap: 16px; }

.mr-play {
	position: relative;
	display: block;
	width: 100%;
	min-height: 220px;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 24px;
	background: #000;
	aspect-ratio: 16 / 9;
	color: #fff;
	text-align: left;
	cursor: pointer;
}
.mr-play img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	opacity: .62;
	transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .3s;
}
.mr-play:hover img { transform: scale(1.04); opacity: .78; }
.mr-play__icon {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 76px;
	height: 76px;
	margin: -38px 0 0 -38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .16);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
	transition: transform .3s;
}
.mr-play__icon::after {
	content: "";
	position: absolute;
	left: 31px;
	top: 25px;
	border-style: solid;
	border-width: 13px 0 13px 21px;
	border-color: transparent transparent transparent #fff;
}
.mr-play:hover .mr-play__icon { transform: scale(1.08); }
.mr-play__label { position: absolute; left: 22px; bottom: 18px; font-size: 14px; color: rgba(255, 255, 255, .78); }
.mr-play__label strong { display: block; font-size: 17px; color: #fff; }

@media (min-width: 900px) {
	.mr-video__grid { grid-template-columns: 2fr 1fr; }
	.mr-play:not(.mr-play--main) { aspect-ratio: auto; }
}


/* ---------- In the box ---------- */

.mr-box__grid { display: grid; gap: 40px; align-items: center; }
.mr-box__img { position: relative; }
.mr-box__img img { border-radius: 24px; }

.mr-dot {
	position: absolute;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	margin: -14px 0 0 -14px;
	border-radius: 50%;
	background: var(--mr-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.mr-dot::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--mr-accent);
	opacity: .5;
	z-index: -1;
}

.mr-box__list { padding: 0; list-style: none; counter-reset: mr-box; }
.mr-box__list li {
	position: relative;
	padding: 15px 0 15px 46px;
	border-bottom: 1px solid var(--mr-line);
	font-size: 17px;
	font-weight: 500;
	counter-increment: mr-box;
}
.mr-box__list li::before {
	content: counter(mr-box);
	position: absolute;
	left: 0;
	top: 13px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1.5px var(--mr-accent);
	color: var(--mr-accent);
	font-size: 13px;
	font-weight: 700;
}
.mr-box__list small { font-size: 13px; color: var(--mr-muted); }

@media (min-width: 900px) {
	.mr-box__grid { grid-template-columns: 3fr 2fr; gap: 64px; }
}


/* ---------- Specs ---------- */

.mr-specs__grid { display: grid; gap: 48px; }
.mr-specs h3 {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--mr-muted);
}
.mr-specs h3:not(:first-child) { margin-top: 40px; }
.mr-specs ul { padding: 0; list-style: none; }
.mr-specs li { padding: 11px 0; border-bottom: 1px solid #dcdce1; font-size: 16px; }
.mr-specs dt { font-size: 13px; font-weight: 500; color: var(--mr-muted); }
.mr-specs dd { margin-bottom: 16px; font-size: 16px; }
.mr .mr-docs a { color: var(--mr-navy); font-weight: 600; }
.mr .mr-docs a:hover { text-decoration: underline; }

@media (min-width: 900px) {
	.mr-specs__grid { grid-template-columns: repeat(3, 1fr); gap: 56px; }
}


/* ---------- Buy ---------- */

.mr-buy { text-align: center; background: radial-gradient(120% 80% at 50% 0%, #0f2a40 0%, var(--mr-ink) 60%); }
.mr-buy .mr-h2 { margin-bottom: 18px; font-size: clamp(2.6rem, 7vw, 5.5rem); }
.mr-buy .mr-sub { margin: 0 auto 36px; }
.mr-buy__price { margin-bottom: 32px; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; }
.mr-buy__price del { margin-right: 6px; font-size: .6em; font-weight: 500; opacity: .5; }
.mr-buy__price ins { text-decoration: none; }
.mr-buy__tag { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--mr-accent); }
.mr-buy__price .woocommerce-price-suffix { font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .55); }
.mr-buy__more { margin-top: 28px; }
.mr .mr-buy__more a { font-size: 17px; color: var(--mr-cyan); }
.mr .mr-buy__more a:hover { text-decoration: underline; }
.mr-buy__note { margin-top: 64px; font-size: 12px; color: rgba(255, 255, 255, .42); }


/* ---------- Video dialog ---------- */

.mr-dialog { width: min(1120px, 92vw); max-width: none; padding: 0; overflow: visible; border: 0; background: transparent; }
.mr-dialog::backdrop { background: rgba(0, 0, 0, .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mr-dialog__frame { overflow: hidden; border-radius: 18px; background: #000; aspect-ratio: 16 / 9; }
.mr-dialog__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.mr-dialog__close {
	position: absolute;
	right: 0;
	top: -52px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .16);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.mr-dialog__close:hover { background: rgba(255, 255, 255, .3); }


/* ---------- Scroll-driven motion ---------- */

@media (prefers-reduced-motion: no-preference) {
	html:has(.mr) { scroll-behavior: smooth; }

	.mr-hero__cue span { animation: mr-cue 1.8s ease-in-out infinite; }
	.mr-dot::before { animation: mr-pulse 2.4s ease-out infinite; }
}

@keyframes mr-cue { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: 0; } }
@keyframes mr-pulse { from { transform: scale(1); opacity: .5; } to { transform: scale(2.2); opacity: 0; } }

/* .mr-js is set by js/mr-landing.js only when motion is welcome; it feeds
   --hero and --wipe (0..1 scroll progress) and toggles .is-in / .is-on.
   Without it (no JS, reduced motion) the page is the static layout above. */

/* Hero: copy drifts up and fades, the film pushes in. */
.mr-js .mr-hero__content { opacity: calc(1 - var(--hero, 0) * 1.8); transform: translateY(calc(var(--hero, 0) * -80px)); }
.mr-js .mr-hero__media { opacity: calc(1 - var(--hero, 0) * .55); transform: scale(calc(1 + var(--hero, 0) * .06)); }

/* Statement: each word lights up once it rises past ~60% of the screen. */
.mr-js .mr-w { color: #c8c8cd; transition: color .6s ease; }
.mr-js .mr-w.is-on { color: var(--mr-text); }

/* Everything else: a quiet rise into place on entry. */
.mr-js .mr-reveal { opacity: 0; transform: translateY(48px); transition: opacity .9s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.mr-js .mr-reveal.is-in { opacity: 1; transform: none; }

/* Wipe: a pinned frame; scrolling sweeps from what you do to what you see. */
.mr-js .mr-wipe { height: 280vh; padding: 0; }
.mr-js .mr-wipe__stage {
	position: sticky;
	top: calc(var(--mr-top) + var(--mr-nav));
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: calc(100svh - var(--mr-top) - var(--mr-nav));
	padding: 24px 0;
}
.mr-js .mr-wipe__frame {
	display: block;
	position: relative;
	width: min(1200px, calc(100% - 48px), calc((100svh - var(--mr-top) - var(--mr-nav) - 260px) * 16 / 9));
	overflow: hidden;
	border-radius: 24px;
	aspect-ratio: 16 / 9;
}
.mr-js .mr-wipe figure { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
.mr-js .mr-wipe__virtual { clip-path: inset(0 0 0 calc((1 - var(--wipe, 0)) * 100%)); }
.mr-js .mr-wipe__virtual figcaption { left: auto; right: 16px; text-align: right; }
.mr-js .mr-wipe__line {
	display: block;
	position: absolute;
	inset: 0;
	pointer-events: none;
	transform: translateX(calc((1 - var(--wipe, 0)) * 100%));
	opacity: calc(min(var(--wipe, 0), 1 - var(--wipe, 0)) * 16); /* fades at both ends */
}
.mr-js .mr-wipe__line span {
	position: absolute;
	left: -1px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: #fff;
	box-shadow: 0 0 18px 3px rgba(94, 225, 255, .85);
}

@media (max-width: 899px) {
	.mr-js .mr-wipe__frame {
		width: calc(100% - 32px);
		aspect-ratio: 4 / 5;
		max-height: calc(100svh - var(--mr-top) - var(--mr-nav) - 230px);
	}
}
