/* GreetMe home page: an Apple-style product page with one animated scene per
   area of the app. Builds on site.css (colours, form, footer).
   Motion rules:
   - Everything animates only under html.js and never with Reduce Motion;
     without them the page shows its finished state.
   - Scene loops run only while the scene is on screen (home.js adds .on). */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap.wide { max-width: 1120px; }
.home { overflow-x: clip; }
.home a.pill, .home .round { text-decoration: none; }
:root {
	--rounded: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;
	--ease-out: cubic-bezier(0.22, 0.8, 0.3, 1);
	--spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	--expo: cubic-bezier(0.16, 1, 0.3, 1);
	--glass: color-mix(in srgb, var(--raised) 72%, transparent);
}

/* ---------- Living background: three soft lights drifting ---------- */
.glow { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow span {
	position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--coral) 22%, transparent), transparent 62%);
	opacity: 0.55;
}
.glow span:nth-child(1) { left: -20vmax; top: -25vmax; }
.glow span:nth-child(2) { right: -25vmax; top: 10vmax; background: radial-gradient(circle, color-mix(in srgb, var(--sunset) 22%, transparent), transparent 62%); }
.glow span:nth-child(3) { left: 20vmax; top: 55vh; width: 45vmax; height: 45vmax; opacity: 0.35; }
@media (prefers-color-scheme: dark) { .glow span { opacity: 0.4; } }

/* ---------- Top bar: glass, sticky ---------- */
.topbar {
	position: sticky; top: 0; z-index: 20;
	background: color-mix(in srgb, var(--surface) 70%, transparent);
	backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
}
.topbar .bar { padding: 10px 20px; }
.nav { align-items: center; }
.nav-cta { padding: 6px 14px; border-radius: 999px; background: var(--coral-strong); color: var(--on-coral) !important; font-weight: 600; }
.nav-cta:hover { text-decoration: none; filter: brightness(1.06); }
@media (max-width: 720px) { .hide-sm { display: none; } }

/* ---------- Hero ---------- */
.hero-x {
	min-height: calc(100svh - 57px);
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 18px; padding: 48px 20px 88px; text-align: center; position: relative;
}
.logo-play {
	all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: clamp(10px, 2vw, 18px);
	-webkit-tap-highlight-color: transparent; border-radius: 24px;
}
.logo-play:focus-visible { outline: 3px solid color-mix(in srgb, var(--coral-strong) 45%, transparent); outline-offset: 8px; }
.logo-mark { display: block; width: clamp(96px, 16vw, 148px); aspect-ratio: 1; }
.logo-mark svg { width: 100%; height: 100%; overflow: visible; display: block; }
.logo-mark .tile, .logo-mark .ripple, .logo-mark .glow-disc, .logo-mark .overlap, .logo-mark .flash { transform-box: fill-box; transform-origin: center; }
.logo-mark .tile { filter: drop-shadow(0 1.5px 2px rgb(122 26 16 / 0.12)); }
.logo-mark .ripple { fill: none; stroke: var(--coral); stroke-width: 1.5; opacity: 0; }
.logo-mark .r2 { stroke: var(--sunset); }
.logo-mark .glow-disc { opacity: 0; }
.logo-mark .flash { opacity: 0; }
.logo-word {
	font-family: var(--rounded); font-weight: 700; letter-spacing: -0.03em;
	font-size: clamp(52px, 10vw, 104px); line-height: 1; color: var(--ink); white-space: nowrap;
}
.logo-word i { font-style: normal; display: inline-block; }
.logo-word .me { color: var(--coral-strong); }

.tagline { margin: 6px 0 0; font-size: clamp(30px, 5.4vw, 56px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.tagline .w { display: inline-block; margin: 0 0.12em; }
.live-word { position: relative; color: var(--coral-strong); }
.live-word .dot {
	display: inline-block; width: 0.22em; height: 0.22em; margin-right: 0.18em; vertical-align: 0.24em;
	border-radius: 50%; background: var(--coral-strong);
}
.eyebrow-x { margin: 4px 0 0; color: var(--coral-strong); font-weight: 600; font-size: 15px; }
.lede-x { margin: 0 auto; max-width: 36em; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.chips-x { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chips-x li {
	display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
	background: var(--glass); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
	font-size: 14px; font-weight: 500;
}
.chips-x li span { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.pill { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 26px; border-radius: 999px; font-weight: 600; transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, background 0.2s ease; }
.pill.primary { background: var(--coral-strong); color: var(--on-coral); box-shadow: 0 10px 30px color-mix(in srgb, var(--coral-strong) 32%, transparent); }
.pill.ghost { background: var(--glass); color: var(--ink); border: 1px solid var(--line); }
.pill:hover { transform: translateY(-2px); }
.pill.primary:hover { box-shadow: 0 14px 36px color-mix(in srgb, var(--coral-strong) 42%, transparent); }
.explore { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }
.explore:hover { color: var(--coral-strong); text-decoration: none; }

/* ---------- Feature sections ---------- */
.feature-x {
	display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px;
	padding: 96px 0; scroll-margin-top: 64px;
}
.feature-x.flip .copy { order: 2; }
.kicker { margin: 0; color: var(--coral-strong); font-weight: 600; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; }
.feature-x h2, .join h2 { margin: 12px 0 16px; font-size: clamp(36px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.04em; }
.feature-x .body { margin: 0; max-width: 30em; color: var(--muted); font-size: 19px; }
.points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.points li::before {
	content: "✓"; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
	display: grid; place-items: center; font-size: 12px; font-weight: 700;
	background: color-mix(in srgb, var(--coral) 14%, transparent); color: var(--coral-strong);
}
.visual { display: flex; justify-content: center; }
@media (max-width: 860px) {
	.feature-x { grid-template-columns: 1fr; gap: 40px; padding: 64px 0; }
	.feature-x.flip .copy { order: 0; }
}

/* ---------- Phone frame ---------- */
.phone {
	width: min(300px, 82vw); aspect-ratio: 300 / 620; padding: 11px; border-radius: 52px;
	background: linear-gradient(145deg, #2a2a2e, #0b0b0c);
	box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06) inset, 0 40px 80px -20px rgb(0 0 0 / 0.35), 0 12px 24px -8px rgb(0 0 0 / 0.2);
}
.screen {
	position: relative; height: 100%; border-radius: 42px; overflow: hidden;
	background: var(--surface); color: var(--ink); font-size: 13px; line-height: 1.3;
	padding: 52px 14px 14px; display: flex; flex-direction: column; gap: 10px;
	isolation: isolate;
}
.island { position: absolute; top: 11px; left: 50%; translate: -50% 0; width: 92px; height: 27px; border-radius: 999px; background: #000; z-index: 10; }
.app-head { display: flex; align-items: center; justify-content: space-between; }
.app-head b { font-size: 24px; letter-spacing: -0.02em; }
.chip-s { padding: 4px 10px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); font-size: 11px; font-weight: 600; }
.chip-s.coral { background: var(--coral-strong); border-color: transparent; color: var(--on-coral); }
.av {
	flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
	background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; font-weight: 700; font-family: var(--rounded);
}
.av.s { width: 24px; height: 24px; font-size: 11px; border: 2px solid #111; margin-left: -6px; }
.on-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--online); text-decoration: none; }

/* Nearby */
.radar { position: absolute; left: 50%; top: 56%; width: 0; height: 0; z-index: -1; }
.radar i { position: absolute; left: -150px; top: -150px; width: 300px; height: 300px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--coral) 70%, transparent); opacity: 0; }
.radar b { position: absolute; translate: -50% -50%; padding: 3px 8px; border-radius: 999px; background: var(--coral-strong); color: var(--on-coral); font-size: 10px; opacity: 0; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.t {
	position: relative; aspect-ratio: 3 / 3.4; border-radius: 16px; overflow: hidden;
	background: linear-gradient(150deg, var(--c1), var(--c2)); color: #fff;
}
.t em { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font: 700 40px/1 var(--rounded); opacity: 0.85; }
.t span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 7px; font-size: 11px; font-weight: 600; background: linear-gradient(transparent, rgb(0 0 0 / 0.38)); }
.t small { display: block; font-weight: 500; opacity: 0.85; }
.t .on-dot { position: absolute; top: 8px; right: 8px; box-shadow: 0 0 0 2px #fff; }
.active-note { display: flex; align-items: center; gap: 6px; justify-content: center; color: var(--muted); font-size: 11px; margin-top: auto; }

/* Discover */
.stack { position: relative; flex: 1; margin: 2px 4px 0; }
.card-x {
	position: absolute; inset: 0; border-radius: 22px; overflow: hidden;
	background: linear-gradient(160deg, var(--c1), var(--c2)); color: #fff;
	box-shadow: 0 10px 24px -10px rgb(0 0 0 / 0.35);
	transform-origin: 50% 100%;
}
.card-x em { position: absolute; inset: 0 0 30%; display: grid; place-items: center; font: 700 96px/1 var(--rounded); font-style: normal; opacity: 0.8; }
.card-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; background: linear-gradient(transparent, rgb(0 0 0 / 0.45)); }
.card-info b { display: block; font-size: 20px; }
.card-info small { opacity: 0.9; }
.stamp {
	position: absolute; top: 22px; left: 18px; padding: 4px 10px; border: 3px solid #fff; border-radius: 10px;
	font: 800 20px/1 var(--rounded); letter-spacing: 0.08em; rotate: -14deg; opacity: 0;
}
.deck-buttons { display: flex; justify-content: center; gap: 12px; padding: 4px 0 2px; }
.round { display: grid; place-items: center; height: 44px; border-radius: 999px; font-weight: 700; }
.round.pass { width: 44px; background: var(--raised); color: var(--muted); border: 1px solid var(--line); }
.round.greet { padding: 0 26px; background: var(--coral-strong); color: var(--on-coral); }
.match {
	position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	opacity: 0; pointer-events: none;
}
.match svg { width: 110px; overflow: visible; }
.match .ma, .match .mb { transform-box: fill-box; transform-origin: center; }
.match b { font: 700 26px/1.1 var(--rounded); letter-spacing: -0.02em; color: var(--coral-strong); }
.match small { color: var(--muted); }

/* Messages */
.chat-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.chat-head .av { width: 28px; height: 28px; font-size: 12px; }
.thread { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.thread p { margin: 0; }
.b { max-width: 78%; padding: 8px 12px; border-radius: 16px; font-size: 13px; }
.b.mine { align-self: flex-end; background: var(--coral-strong); color: var(--on-coral); border-bottom-right-radius: 6px; }
.b.theirs { align-self: flex-start; background: var(--raised); border-bottom-left-radius: 6px; }
.sys { align-self: center; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--sunset) 22%, transparent); font-size: 11px; }
.read { align-self: flex-end; color: var(--muted); font-size: 10px; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 11px 13px; border-radius: 16px; background: var(--raised); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.composer { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 6px 0 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.composer b { padding: 5px 12px; border-radius: 999px; background: var(--coral-strong); color: var(--on-coral); font-size: 12px; }
.banner {
	position: absolute; z-index: 9; left: 10px; right: 10px; top: 44px; display: flex; gap: 10px; align-items: center;
	padding: 10px 12px; border-radius: 18px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
	box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.3); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.banner b, .banner small { display: block; }
.banner small { color: var(--muted); }

/* Greets */
.greet-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.g { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: var(--raised); }
.gt { flex: 1; min-width: 0; }
.gt b, .gt small { display: block; }
.gt small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gb { flex: none; padding: 6px 10px; border-radius: 999px; background: var(--coral-strong); color: var(--on-coral); font-size: 11px; font-weight: 700; }
.gm { position: absolute; right: 10px; padding: 6px 10px; border-radius: 999px; background: var(--online); color: #fff; font-size: 11px; font-weight: 700; opacity: 0; }
.plus-card { margin-top: 4px; padding: 12px; border-radius: 16px; text-align: center; background: linear-gradient(135deg, color-mix(in srgb, var(--coral) 18%, var(--raised)), color-mix(in srgb, var(--sunset) 18%, var(--raised))); }
.plus-card b, .plus-card small { display: block; }
.plus-card small { color: var(--muted); }
.waves { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.waves i { position: absolute; bottom: -30px; font-style: normal; font-size: 22px; opacity: 0; }
.waves i:nth-child(1) { left: 14%; } .waves i:nth-child(2) { left: 42%; } .waves i:nth-child(3) { left: 68%; } .waves i:nth-child(4) { left: 86%; }
.sparkle { position: absolute; left: 76%; top: 150px; width: 0; height: 0; z-index: 6; }
.sparkle i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--sunset); opacity: 0; }

/* Live */
.dark-screen .screen { background: #000; color: #fff; }
.live-screen { padding: 0; }
.video { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #3a1c2a, #120a14); overflow: hidden; }
.video i { position: absolute; border-radius: 50%; filter: blur(30px); }
.video i:nth-child(1) { width: 260px; height: 260px; left: -60px; top: 80px; background: #ff7a59; opacity: 0.55; }
.video i:nth-child(2) { width: 220px; height: 220px; right: -70px; top: 260px; background: #ffb45c; opacity: 0.45; }
.video i:nth-child(3) { width: 160px; height: 160px; left: 60px; top: 380px; background: #c2185b; opacity: 0.5; }
.live-top { position: absolute; top: 48px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; }
.live-pill { padding: 3px 8px; border-radius: 6px; background: #ff3b30; font-weight: 800; font-size: 11px; letter-spacing: 0.06em; }
.viewers { padding: 4px 9px; border-radius: 999px; background: rgb(0 0 0 / 0.35); font-size: 11px; }
.viewers b { font-family: var(--rounded); font-variant-numeric: tabular-nums; }
.strap {
	position: absolute; left: 0; top: 46%; display: flex; flex-direction: column; padding: 8px 16px 8px 14px;
	background: linear-gradient(90deg, var(--coral-strong), #ff7a59); border-radius: 0 12px 12px 0;
	box-shadow: 0 8px 24px -8px rgb(0 0 0 / 0.5);
}
.strap b { font: 700 17px/1.1 var(--rounded); }
.strap span { font-size: 10px; opacity: 0.92; }
.gift {
	position: absolute; left: 10px; top: 58%; display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px;
	border-radius: 999px; background: linear-gradient(90deg, rgb(255 159 67 / 0.9), rgb(255 159 67 / 0.25));
}
.gift .av { width: 26px; height: 26px; font-size: 11px; }
.gift em { font: italic 800 20px/1 var(--rounded); color: #fff6c8; text-shadow: 0 2px 6px rgb(0 0 0 / 0.35); }
.live-chat { position: absolute; left: 12px; right: 60px; bottom: 16px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.live-chat li { align-self: flex-start; padding: 4px 9px; border-radius: 12px; background: rgb(0 0 0 / 0.35); font-size: 11px; }
.live-chat b { color: #ffd29a; margin-right: 4px; }
.hearts { position: absolute; right: 14px; bottom: 20px; width: 40px; height: 260px; pointer-events: none; }
.hearts i { position: absolute; bottom: 0; left: 10px; width: 18px; height: 18px; opacity: 0; }
.hearts i::before {
	content: ""; position: absolute; inset: 0;
	background: var(--h, #ff4d6d);
	clip-path: path("M9 16.2 7.7 15C3.1 10.9 0 8.1 0 4.8 0 2.1 2.1 0 4.8 0 6.3 0 7.8.7 9 1.8 10.2.7 11.7 0 13.2 0 15.9 0 18 2.1 18 4.8c0 3.3-3.1 6.1-7.7 10.2z");
}
.hearts i:nth-child(2) { --h: #ff9f43; left: 2px; } .hearts i:nth-child(3) { --h: #ff6b5e; left: 16px; } .hearts i:nth-child(4) { --h: #ffd29a; left: 6px; }
.hearts i:nth-child(5) { --h: #ff4d6d; left: 18px; } .hearts i:nth-child(6) { --h: #ffb45c; left: 0; } .hearts i:nth-child(7) { --h: #ff6b5e; left: 12px; } .hearts i:nth-child(8) { --h: #fff; left: 4px; }

/* Battles */
.battle-screen { padding: 0; }
.halves { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; z-index: -1; }
.half { position: relative; display: grid; place-items: center; }
.half em { font: 700 64px/1 var(--rounded); font-style: normal; opacity: 0.85; }
.half b { position: absolute; top: 96px; left: 10px; font-size: 13px; text-shadow: 0 1px 4px rgb(0 0 0 / 0.5); }
.h1 { background: linear-gradient(170deg, #ff9a8b, #c2185b); }
.h2 { background: linear-gradient(170deg, #8ec5fc, #3f51b5); border-left: 2px solid #000; }
.vs {
	position: absolute; left: 50%; top: 44%; translate: -50% -50%; width: 54px; height: 54px; border-radius: 50%;
	display: grid; place-items: center; background: #111; border: 3px solid #fff; font: italic 900 20px/1 var(--rounded);
	box-shadow: 0 0 30px rgb(255 159 67 / 0.6);
}
.score-bug { position: absolute; top: 46px; left: 10px; right: 10px; }
.score-bar { --a: 50%; display: flex; height: 14px; border-radius: 999px; overflow: hidden; box-shadow: 0 0 0 2px rgb(0 0 0 / 0.4); }
.score-bar .red { width: var(--a); background: linear-gradient(90deg, #ff3b30, #ff7a59); transition: width 0.5s var(--ease-out); }
.score-bar .blue { flex: 1; background: linear-gradient(90deg, #5b8def, #2f5bd8); }
.nums { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; font: 700 13px/1 var(--rounded); font-variant-numeric: tabular-nums; }
.clock { padding: 3px 8px; border-radius: 6px; background: rgb(0 0 0 / 0.55); font-size: 11px; }
.winner {
	position: absolute; left: 25%; top: 60%; translate: -50% 0; padding: 6px 12px; border-radius: 999px;
	background: linear-gradient(90deg, #ffb45c, #ff7a59); color: #1d1d1f; font: 800 13px/1 var(--rounded); white-space: nowrap; opacity: 0; scale: 0.6;
}
.gifters { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; align-items: center; justify-content: center; padding-left: 6px; }
.gifters small { margin-left: 8px; font-size: 11px; opacity: 0.85; }

/* Safety */
.safety-art { position: relative; width: min(380px, 86vw); aspect-ratio: 1; display: grid; place-items: center; }
.shield { position: absolute; width: 58%; top: 2%; left: 50%; translate: -50% 0; overflow: visible; }
.shield .sh { fill: color-mix(in srgb, var(--coral) 10%, transparent); stroke: var(--coral-strong); stroke-width: 3; stroke-linejoin: round; }
.shield .ck { fill: none; stroke: var(--online); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.scan-photo {
	position: absolute; width: 34%; aspect-ratio: 3 / 4; right: 2%; top: 40%; border-radius: 16px; overflow: hidden;
	background: linear-gradient(150deg, #84fab0, #3cb98f); color: #fff; box-shadow: 0 16px 30px -12px rgb(0 0 0 / 0.35); rotate: 6deg;
}
.scan-photo em { position: absolute; inset: 0; display: grid; place-items: center; font: 700 48px/1 var(--rounded); font-style: normal; opacity: 0.85; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 30%; background: linear-gradient(transparent, rgb(255 255 255 / 0.55), transparent); opacity: 0; }
.scan-photo .ok { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 4px 0; border-radius: 999px; text-align: center; background: var(--online); font-size: 11px; font-weight: 700; }
.badges { position: absolute; left: 0; bottom: 4%; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.badges li {
	justify-self: start; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px;
	background: var(--raised); box-shadow: 0 8px 20px -10px rgb(0 0 0 / 0.25); font-size: 14px; font-weight: 600;
}
.badges li::before { content: "✓"; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--online); color: #fff; font-size: 11px; }

/* Join */
.join { position: relative; padding: 112px 0 64px; text-align: center; scroll-margin-top: 40px; }
.join .card { margin-top: 28px; }
.join h2 { margin-top: 10px; }
.center { text-align: center; }
.join-glow {
	position: absolute; left: 50%; top: 40%; width: min(760px, 100vw); aspect-ratio: 1; translate: -50% -50%; z-index: -1;
	background: conic-gradient(from 0deg, color-mix(in srgb, var(--coral) 28%, transparent), color-mix(in srgb, var(--sunset) 24%, transparent), transparent 55%, color-mix(in srgb, var(--coral) 28%, transparent));
	filter: blur(60px); border-radius: 50%; opacity: 0.6;
}
footer.wrap { max-width: 980px; }

/* ===================================================================
   Motion: html.js and no Reduce Motion only
   =================================================================== */
@media (prefers-reduced-motion: no-preference) {
	/* Background lights drift slowly */
	.js .glow span { animation: drift 26s ease-in-out infinite alternate; }
	.js .glow span:nth-child(2) { animation-duration: 32s; animation-delay: -8s; }
	.js .glow span:nth-child(3) { animation-duration: 38s; animation-delay: -16s; }
	@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }

	/* ----- The Greeting (hero logo) -----
	   0.1s the two tiles glide in from opposite sides and settle into place;
	   1.0s where they overlap, a soft light and two ripples; once they have
	   faded (1.95s) the mark slides aside as "Greet" and then "Me" rise in; then the tagline. */
	.js .hero-x .logo-mark { transform: translateX(var(--shift, 0px)); }
	.js .hero-x .tile-a, .js .hero-x .tile-b, .js .hero-x .overlap, .js .hero-x .logo-word i { opacity: 0; }
	.js .hero-x .w, .js .hero-x .rise { opacity: 0; }
	.js .hero-x.go .logo-mark { animation: shift-left 0.9s var(--expo) 1.95s both; }
	.js .hero-x.go .tile-a { animation: arrive-a 1.1s var(--expo) 0.1s both; }
	.js .hero-x.go .tile-b { animation: arrive-b 1.1s var(--expo) 0.1s both; }
	.js .hero-x.go .overlap { animation: fade-in 0.45s ease 0.95s both; }
	.js .hero-x.go .flash { animation: flash 0.9s ease-out 0.95s both; }
	.js .hero-x.go .glow-disc { animation: glow-burst 0.9s var(--ease-out) 0.95s both; }
	.js .hero-x.go .r1 { animation: ripple 1s var(--ease-out) 1s both; }
	.js .hero-x.go .r2 { animation: ripple 1s var(--ease-out) 1.18s both; }
	.js .hero-x.go .greet i, .js .hero-x.go .me i { animation: letter-up 0.55s var(--expo) both; }
	.js .hero-x.go .greet i:nth-child(1) { animation-delay: 2.1s; } .js .hero-x.go .greet i:nth-child(2) { animation-delay: 2.14s; }
	.js .hero-x.go .greet i:nth-child(3) { animation-delay: 2.18s; } .js .hero-x.go .greet i:nth-child(4) { animation-delay: 2.22s; }
	.js .hero-x.go .greet i:nth-child(5) { animation-delay: 2.26s; }
	.js .hero-x.go .me i:nth-child(1) { animation-delay: 2.36s; } .js .hero-x.go .me i:nth-child(2) { animation-delay: 2.4s; }
	.js .hero-x.go .w { animation: word-in 0.6s var(--expo) both; animation-delay: calc(var(--d) * 1ms); }
	.js .hero-x.go .rise { animation: rise 0.7s var(--expo) both; animation-delay: calc(var(--d) * 1ms); }
	.js .hero-x.go .live-word .dot { animation: live-ping 1.8s ease-out 3.6s infinite; }
	.js .hero-x.go .explore svg { animation: bob 1.8s ease-in-out 4.6s infinite; }

	@keyframes arrive-a {
		from { opacity: 0; transform: translate(-24px, 14px) rotate(-8deg) scale(0.92); }
		40% { opacity: 1; }
		to { opacity: 1; transform: none; }
	}
	@keyframes arrive-b {
		from { opacity: 0; transform: translate(24px, -14px) rotate(8deg) scale(0.92); }
		40% { opacity: 1; }
		to { opacity: 1; transform: none; }
	}
	@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
	@keyframes flash { 0% { opacity: 0; } 25% { opacity: 0.6; } 100% { opacity: 0; } }
	@keyframes ripple { 0% { opacity: 0; transform: scale(0.9); } 8% { opacity: 0.8; } 45% { opacity: 0.35; } 85% { opacity: 0; } 100% { opacity: 0; transform: scale(4.8); } }
	@keyframes glow-burst { 0% { opacity: 0; transform: scale(0.6); } 15% { opacity: 0.7; } 100% { opacity: 0; transform: scale(4); } }
	@keyframes shift-left { from { transform: translateX(var(--shift, 0px)); } to { transform: translateX(0); } }
	@keyframes letter-up { from { opacity: 0; transform: translateY(0.25em); } to { opacity: 1; transform: none; } }
	@keyframes word-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
	@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
	@keyframes live-ping { 0% { box-shadow: 0 0 0 0 rgb(255 90 78 / 0.55); } 100% { box-shadow: 0 0 0 0.3em rgb(255 90 78 / 0); } }
	@keyframes bob { 0%, 100% { transform: none; } 50% { transform: translateY(5px); } }

	/* ----- Sections glide in as you scroll ----- */
	.js .reveal { opacity: 0; transform: translateY(40px) scale(0.98); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--rd, 0ms); }
	.js .reveal.in { opacity: 1; transform: none; }
	.js .points li { opacity: 0; transform: translateX(-12px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
	.js .reveal.in .points li { opacity: 1; transform: none; }
	.js .reveal.in .points li:nth-child(1) { transition-delay: 0.35s; } .js .reveal.in .points li:nth-child(2) { transition-delay: 0.45s; }
	.js .reveal.in .points li:nth-child(3) { transition-delay: 0.55s; } .js .reveal.in .points li:nth-child(4) { transition-delay: 0.65s; }

	/* Scene loops: paused until on screen */
	.js .scene *, .js .scene *::before { animation-play-state: paused; }
	.js .scene.on *, .js .scene.on *::before { animation-play-state: running; }

	/* Timed steps (home.js adds .show at each element's data-at) */
	.js [data-at] { opacity: 0; transform: translateY(10px) scale(0.96); transition: opacity 0.45s var(--ease-out), transform 0.45s var(--spring); }
	.js [data-at].show { opacity: 1; transform: none; }

	/* Nearby: radar sweeps, tiles pop in, active dots blink */
	.js .scene .radar i { animation: radar 3.6s ease-out infinite; }
	.js .scene .radar i:nth-child(2) { animation-delay: 1.2s; } .js .scene .radar i:nth-child(3) { animation-delay: 2.4s; }
	.js .scene .radar b { animation: fade-in 0.4s ease 0.2s both; }
	.js .scene .t { opacity: 0; transform: scale(0.82) translateY(10px); }
	.js .scene.on .t { animation: tile-pop 0.6s var(--spring) both; animation-delay: calc(0.25s + var(--i) * 0.11s); }
	.js .scene .on-dot { animation: blink 2s ease-in-out infinite; animation-delay: var(--o, 0s); }
	@keyframes radar { 0% { opacity: 0.9; transform: scale(0.15); } 100% { opacity: 0; transform: scale(1.4); } }
	@keyframes tile-pop { to { opacity: 1; transform: none; } }
	@keyframes blink { 0%, 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 2px color-mix(in srgb, var(--online) 60%, transparent); } 50% { box-shadow: 0 0 0 2px #fff, 0 0 0 6px transparent; } }

	/* Discover: a 9s stack cycle, one card flies out every 3s */
	.js .scene .card-x { animation: deck 9s var(--ease-out) infinite; }
	.js .scene .card-x .stamp { animation: stamp 9s ease infinite; animation-delay: inherit; }
	.js .scene .round.greet { animation: press 3s ease infinite; }
	.js .scene .match { animation: match 9s ease infinite; animation-delay: 0.6s; }
	.js .scene .match .ma { animation: match-a 9s var(--ease-out) infinite; animation-delay: 0.6s; }
	.js .scene .match .mb { animation: match-b 9s var(--ease-out) infinite; animation-delay: 0.6s; }
	@keyframes deck {
		0% { z-index: 1; opacity: 0; transform: translateY(26px) scale(0.88); }
		6% { z-index: 1; opacity: 1; transform: translateY(26px) scale(0.88); }
		33% { z-index: 2; opacity: 1; transform: translateY(13px) scale(0.94); }
		66% { z-index: 3; opacity: 1; transform: none; }
		88% { z-index: 3; opacity: 1; transform: rotate(3deg); }
		97% { z-index: 3; opacity: 0; transform: translateX(130%) rotate(22deg); }
		100% { z-index: 1; opacity: 0; transform: translateY(26px) scale(0.88); }
	}
	@keyframes stamp { 0%, 80% { opacity: 0; scale: 1.6; } 86%, 95% { opacity: 1; scale: 1; } 100% { opacity: 0; } }
	@keyframes press { 0%, 86% { transform: none; } 90% { transform: scale(0.9); } 95% { transform: scale(1.05); } 100% { transform: none; } }
	@keyframes match { 0%, 62% { opacity: 0; } 66%, 84% { opacity: 1; } 88%, 100% { opacity: 0; } }
	@keyframes match-a { 0%, 62% { transform: translate(-30px, 18px) rotate(-18deg); } 72%, 100% { transform: none; } }
	@keyframes match-b { 0%, 62% { transform: translate(30px, -18px) rotate(18deg); } 72%, 100% { transform: none; } }

	/* Messages */
	.js .scene .typing i { animation: dot 1s ease-in-out infinite; }
	.js .scene .typing i:nth-child(2) { animation-delay: 0.15s; } .js .scene .typing i:nth-child(3) { animation-delay: 0.3s; }
	.js .banner[data-at] { transform: translateY(-140%); }
	.js .banner[data-at].show { transform: none; }
	@keyframes dot { 0%, 100% { transform: none; opacity: 0.5; } 40% { transform: translateY(-4px); opacity: 1; } }

	/* Greets */
	.js .scene .waves i { animation: wave-up 4.5s ease-in infinite; }
	.js .scene .waves i:nth-child(2) { animation-delay: 1.1s; } .js .scene .waves i:nth-child(3) { animation-delay: 2.3s; } .js .scene .waves i:nth-child(4) { animation-delay: 3.4s; }
	.js .g.matched .gm { opacity: 1; transform: scale(1); transition: opacity 0.3s ease, transform 0.4s var(--spring); }
	.js .g .gm { transform: scale(0.6); }
	.js .g.pressing .gb { transform: scale(0.88); transition: transform 0.15s ease; }
	.js .sparkle.burst i { animation: spark 0.9s var(--ease-out) both; }
	.js .sparkle i:nth-child(1) { --x: -40px; --y: -30px; } .js .sparkle i:nth-child(2) { --x: 40px; --y: -26px; } .js .sparkle i:nth-child(3) { --x: -30px; --y: 30px; }
	.js .sparkle i:nth-child(4) { --x: 34px; --y: 28px; } .js .sparkle i:nth-child(5) { --x: 0; --y: -44px; } .js .sparkle i:nth-child(6) { --x: 4px; --y: 40px; }
	@keyframes wave-up {
		0% { opacity: 0; transform: translateY(0) rotate(0); }
		15% { opacity: 0.9; }
		30% { transform: translateY(-140px) rotate(-18deg); }
		50% { transform: translateY(-260px) rotate(16deg); }
		80% { opacity: 0.6; }
		100% { opacity: 0; transform: translateY(-470px) rotate(-10deg); }
	}
	@keyframes spark { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(0.3); } }

	/* Live */
	.js .scene .video i { animation: blob 9s ease-in-out infinite alternate; }
	.js .scene .video i:nth-child(2) { animation-duration: 11s; animation-delay: -3s; } .js .scene .video i:nth-child(3) { animation-duration: 13s; animation-delay: -6s; }
	.js .scene .live-pill { animation: live-glow 1.6s ease-in-out infinite; }
	.js .scene .hearts i { animation: heart 3.2s ease-out infinite; }
	.js .scene .hearts i:nth-child(2) { animation-delay: 0.4s; } .js .scene .hearts i:nth-child(3) { animation-delay: 0.8s; } .js .scene .hearts i:nth-child(4) { animation-delay: 1.2s; }
	.js .scene .hearts i:nth-child(5) { animation-delay: 1.6s; } .js .scene .hearts i:nth-child(6) { animation-delay: 2s; } .js .scene .hearts i:nth-child(7) { animation-delay: 2.4s; } .js .scene .hearts i:nth-child(8) { animation-delay: 2.8s; }
	.js .strap[data-at] { transform: translateX(-105%); transition: transform 0.7s var(--ease-out), opacity 0.3s ease; }
	.js .strap[data-at].show { transform: none; }
	.js .gift[data-at] { transform: translateX(-120%); transition: transform 0.6s var(--spring), opacity 0.3s ease; }
	.js .gift[data-at].show { transform: none; }
	.js .gift em.bump { animation: bump 0.35s var(--spring); }
	@keyframes blob { to { transform: translate(40px, -60px) scale(1.25); } }
	@keyframes live-glow { 0%, 100% { box-shadow: 0 0 0 0 rgb(255 59 48 / 0.6); } 50% { box-shadow: 0 0 0 5px rgb(255 59 48 / 0); } }
	@keyframes heart {
		0% { opacity: 0; transform: translate(0, 0) scale(0.4); }
		12% { opacity: 1; transform: translate(-4px, -30px) scale(1); }
		50% { transform: translate(8px, -130px) scale(1) rotate(10deg); }
		100% { opacity: 0; transform: translate(-6px, -250px) scale(0.8) rotate(-10deg); }
	}
	@keyframes bump { 0% { transform: scale(1); } 50% { transform: scale(1.6); } 100% { transform: scale(1); } }

	/* Battles */
	.js .scene .vs { animation: vs-spin 0.9s var(--spring) 0.2s both, vs-glow 2s ease-in-out 1.1s infinite; }
	.js .winner.show { opacity: 1; scale: 1; transition: opacity 0.3s ease, scale 0.5s var(--spring); }
	@keyframes vs-spin { from { transform: rotate(-200deg) scale(0); } to { transform: none; } }
	@keyframes vs-glow { 0%, 100% { box-shadow: 0 0 20px rgb(255 159 67 / 0.4); } 50% { box-shadow: 0 0 40px rgb(255 159 67 / 0.9); } }

	/* Safety: the shield draws itself, the tick follows, the photo is scanned */
	.js .scene .sh { stroke-dasharray: 400; stroke-dashoffset: 400; fill-opacity: 0; }
	.js .scene .ck { stroke-dasharray: 80; stroke-dashoffset: 80; }
	.js .scene.on .sh { animation: draw 1.4s var(--ease-out) 0.1s forwards, fill-in 0.8s ease 1.2s forwards; }
	.js .scene.on .ck { animation: draw 0.6s var(--ease-out) 1.4s forwards; }
	.js .scene .scan { animation: scan 2.4s ease-in-out infinite; }
	.js .scene .scan-photo .ok { opacity: 0; }
	.js .scene.on .scan-photo .ok { animation: fade-in 0.4s ease 2.2s both; }
	.js .scene .badges li { opacity: 0; transform: translateX(-16px); }
	.js .scene.on .badges li { animation: badge-in 0.6s var(--spring) both; animation-delay: calc(1.8s + var(--i) * 0.18s); }
	@keyframes draw { to { stroke-dashoffset: 0; } }
	@keyframes fill-in { to { fill-opacity: 1; } }
	@keyframes scan { 0% { opacity: 0; transform: translateY(-100%); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(340%); } }
	@keyframes badge-in { to { opacity: 1; transform: none; } }

	/* Join: a slow turning glow behind the form */
	.js .join-glow { animation: turn 24s linear infinite; }
	@keyframes turn { to { rotate: 360deg; } }
}
