/* ShowingSmart home page – hero section (pairs with .hss_nav--dark) */

.hss_hero {
	position: relative; overflow: hidden; isolation: isolate; color: #fff;
	padding: 150px 0 90px; background: #0f1530; font-family: 'Montserrat', sans-serif;
}
/* soft drifting colour glows behind the content */
.hss_hero::before, .hss_hero::after {
	content: ''; position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.hss_hero::before {
	width: 620px; height: 620px; right: -120px; top: -80px;
	background: radial-gradient(circle, rgba(37, 99, 255, .45), transparent 65%);
	animation: hssHeroDrift 14s ease-in-out infinite alternate;
}
.hss_hero::after {
	width: 460px; height: 460px; left: -160px; bottom: -180px;
	background: radial-gradient(circle, rgba(79, 70, 229, .3), transparent 65%);
	animation: hssHeroDrift 18s ease-in-out infinite alternate-reverse;
}
@keyframes hssHeroDrift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-50px, 40px, 0) scale(1.12); } }

.hss_hero .container { max-width: 1320px !important; padding-left: 24px; padding-right: 24px; }

.hss_hero__title {
	margin: 0 0 28px; font-size: clamp(36px, 5vw, 64px); line-height: 1.12; font-weight: 700;
	letter-spacing: -.02em !important; color: #fff;
}
.hss_hero__title em {
	font-style: normal; background: linear-gradient(90deg, #fff, #9bbcff 60%, #fff); background-size: 200% 100%;
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
	transition: background-position .8s ease;
}
.hss_hero__title:hover em { background-position: 100% 0; }
.hss_hero__lead { max-width: 560px; margin: 0 0 40px; font-size: 18px; line-height: 1.75; color: rgba(255, 255, 255, .72); }
.hss_hero__apptitle { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, .88); }

.hss_hero__stores { display: flex; flex-wrap: wrap; gap: 16px; }
/* badge SVGs have their own rounded rect (rx=8 on a 64px-tall image => ~5.75px at 46px tall), so the wrapper just
   mirrors that radius and adds a hairline ring via box-shadow (follows the radius exactly, no black padding/box behind) */
.hss_hero__store {
	display: inline-block; line-height: 0; border-radius: 6px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .24), 0 10px 24px -12px rgba(0, 0, 0, .8);
	transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease;
}
.hss_hero__store img { display: block; height: 46px; width: auto; border-radius: 6px; }
.hss_hero__store:hover, .hss_hero__store:focus-visible {
	transform: translateY(-4px) scale(1.03);
	box-shadow: 0 0 0 1px rgba(120, 165, 255, .9), 0 18px 32px -12px rgba(37, 99, 255, .6); outline: none;
}
.hss_hero__store:active { transform: translateY(-1px) scale(.99); }

/* ---- device: two separately animated layers (phone + "showing confirmed" toast) ----
   Box is 585x677 (the original composite); layers are positioned in % so it scales. */
.hss_hero__device { position: relative; max-width: 560px; margin: 0 auto; aspect-ratio: 585 / 677; perspective: 1100px; }
.hss_hero__device::before { /* glow under the phone, follows the pointer a little */
	content: ''; position: absolute; inset: 10% 8%; z-index: -1; border-radius: 50%; filter: blur(60px);
	background: radial-gradient(circle at calc(50% + var(--mx, 0) * 30%) calc(50% + var(--my, 0) * 30%), rgba(47, 107, 255, .55), transparent 70%);
}
.hss_hero__layer { position: absolute; }
.hss_hero__layer--phone { left: 13%; top: 0; width: 87%; z-index: 1; }
.hss_hero__layer--toast { left: 0; top: 61%; width: 56.4%; z-index: 2; }
.hss_hero__layer img { display: block; width: 100%; height: auto; }
.hss_hero__layer--phone img { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }

/* each layer floats on its own rhythm. Floats start only after the entrance finishes (phone ~1.25s, toast ~1.65s)
   and both begin from rest in OPPOSITE directions (phone up, toast down), so they never start in step. */
.hss_hero__layer--phone .hss_hero__float { animation: hssHeroFloat 6s ease-in-out 1.25s infinite; }
.hss_hero__layer--toast .hss_hero__float { animation: hssHeroFloatToast 4.6s ease-in-out 1.65s infinite; }
@keyframes hssHeroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes hssHeroFloatToast { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(12px) rotate(-1.2deg); } }

/* pointer depth: phone tilts, toast sits closer to the viewer so it moves further the opposite way */
.hss_hero__tilt { transition: transform .25s ease-out; will-change: transform; }
.hss_hero__layer--phone .hss_hero__tilt { transform: rotateY(calc(var(--mx, 0) * 9deg)) rotateX(calc(var(--my, 0) * -7deg)); }
.hss_hero__layer--toast .hss_hero__tilt { transform: translate3d(calc(var(--mx, 0) * -26px), calc(var(--my, 0) * -18px), 0) rotateY(calc(var(--mx, 0) * 14deg)); }
.hss_hero__device.is-leaving .hss_hero__tilt { transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
/* hovering the toast itself: small pop */
.hss_hero__layer--toast img { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), filter .3s ease; }
.hss_hero__layer--toast:hover img { transform: scale(1.06); filter: drop-shadow(0 10px 20px rgba(47, 107, 255, .45)); }

/* ---- entrance (staggered fade-up) ---- */
.hss_hero [data-rise] { opacity: 0; animation: hssHeroRise .8s cubic-bezier(.22, 1, .36, 1) forwards; }
.hss_hero [data-rise="1"] { animation-delay: .05s; }
.hss_hero [data-rise="2"] { animation-delay: .18s; }
.hss_hero [data-rise="3"] { animation-delay: .3s; }
.hss_hero [data-rise="4"] { animation-delay: .42s; }
.hss_hero [data-rise="5"] { animation-delay: .25s; animation-name: hssHeroPop; animation-duration: 1s; }
.hss_hero [data-rise="6"] { animation-delay: .75s; animation-name: hssHeroToastIn; animation-duration: .9s; animation-timing-function: cubic-bezier(.34, 1.4, .64, 1); }
@keyframes hssHeroRise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes hssHeroToastIn { from { opacity: 0; transform: translateX(-36px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes hssHeroPop { from { opacity: 0; transform: translateY(40px) scale(.94); } to { opacity: 1; transform: none; } }

/* ---- features intro (centered heading + lead) ---- */
.hss_intro { padding: 96px 0; background: #fff; text-align: center; font-family: 'Montserrat', sans-serif; }
.hss_intro__title {
	max-width: 760px; margin: 0 auto 20px; font-size: clamp(30px, 4vw, 48px); line-height: 1.17; font-weight: 700;
	letter-spacing: -.02em !important; color: #0b1437;
}
.hss_intro .hss_intro__title { text-align: center !important; } /* base css forces h2 left with !important */
.hss_intro__lead { text-align: center; max-width: 620px; margin: 0 auto; font-size: 18px; line-height: 1.75; color: #5b6685; }
/* only hidden when JS is able to reveal them */
.hss-reveal-on [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s ease var(--d, 0s), transform .8s cubic-bezier(.22, 1, .36, 1) var(--d, 0s); }
.hss-reveal-on [data-reveal].is-in { opacity: 1; transform: none; }
@media (max-width: 991.98px) { .hss_intro { padding: 64px 0; } .hss_intro__lead { font-size: 16px; } }

@media (max-width: 991.98px) {
	.hss_hero { padding: 112px 0 64px; }
	.hss_hero .container { padding-left: 16px; padding-right: 16px; }
	.hss_hero__lead { font-size: 16px; margin-bottom: 32px; }
	.hss_hero__device { max-width: 300px; margin-top: 32px; }
}

@media (max-width: 575.98px) {
	.hss_hero { padding-bottom: 40px; }
	.hss_hero__device { max-width: 240px; margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.hss_hero *, .hss_hero::before, .hss_hero::after { animation: none !important; transition: none !important; }
	.hss_hero [data-rise] { opacity: 1; }
}
