/* playretap.com home page. The legal pages keep style.css. */
:root {
	--bg: #f5f0e6;
	--bg-2: #fbf8f0;
	--ink: #17232d;
	--muted: #5b6670;
	--line: rgba(23, 35, 45, 0.12);
	--coral: #f27669;
	--coral-ink: #c4574b;
	--mint: #2fa88c;
	--mint-soft: #81d6bd;
	--gold: #ffc83d;
	--card: #fffdf8;
	--shadow: 0 30px 60px -20px rgba(23, 35, 45, 0.28), 0 10px 20px -10px rgba(23, 35, 45, 0.18);
	--nav-bg: rgba(245, 240, 230, 0.72);
	--radius: 28px;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #121b22;
		--bg-2: #17232d;
		--ink: #f5f0e6;
		--muted: #a9b3bb;
		--line: rgba(245, 240, 230, 0.12);
		--coral-ink: #f27669;
		--card: #1b2832;
		--shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 10px 20px -10px rgba(0, 0, 0, 0.5);
		--nav-bg: rgba(18, 27, 34, 0.72);
	}
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 18px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* --- nav ----------------------------------------------------------------------- */
.nav {
	position: fixed; inset: 0 0 auto 0; z-index: 50;
	display: flex; align-items: center; gap: 24px;
	height: 56px; padding: 0 max(16px, calc((100vw - 1120px) / 2));
	background: var(--nav-bg);
	-webkit-backdrop-filter: saturate(180%) blur(18px);
	backdrop-filter: saturate(180%) blur(18px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: 0.04em; text-decoration: none; }
.nav-brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
	font-size: 15px; font-weight: 700; text-decoration: none;
	padding: 7px 16px; border-radius: 999px; background: var(--ink); color: var(--bg);
}

/* --- buttons ------------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 15px 28px; border-radius: 999px;
	font-weight: 800; font-size: 18px; text-decoration: none;
	transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--coral); color: #17232d; box-shadow: 0 10px 24px -10px rgba(242, 118, 105, 0.8); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(242, 118, 105, 0.9); }
.btn-quiet { color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-quiet:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn.big { padding: 18px 40px; font-size: 20px; }

/* --- hero ---------------------------------------------------------------------- */
.hero {
	display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px;
	max-width: 1120px; margin: 0 auto; min-height: 100vh; min-height: 100svh;
	padding: 96px 16px 48px;
}
.eyebrow { margin: 0 0 12px; font-weight: 800; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral-ink); }
h1 {
	margin: 0; font-weight: 900; letter-spacing: -0.035em; line-height: 0.98;
	font-size: clamp(48px, 7.6vw, 96px);
}
.ink-echo {
	background: linear-gradient(100deg, var(--mint) 0%, var(--mint-soft) 45%, var(--coral) 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 24px 0 32px; max-width: 520px; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); }
.lede strong { color: var(--mint); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.soon { margin: 20px 0 0; font-size: 14px; color: var(--muted); letter-spacing: 0.02em; }
.hero-phone { display: flex; justify-content: center; }

/* --- phone frame --------------------------------------------------------------- */
.phone {
	position: relative;
	width: min(340px, 78vw); aspect-ratio: 9 / 19;
	border-radius: 48px; padding: 12px;
	background: #0d151b;
	box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.phone::before { /* the camera cut-out */
	content: ""; position: absolute; top: 22px; left: 50%; z-index: 2;
	width: 84px; height: 24px; margin-left: -42px; border-radius: 12px; background: #0d151b;
}
.phone canvas, .phone img {
	width: 100%; height: 100%; border-radius: 37px; object-fit: cover; object-position: top;
	background: #fbf8f0; touch-action: manipulation; cursor: pointer;
}
.phone.small { width: 250px; border-radius: 38px; padding: 9px; }
.phone.small::before { top: 17px; width: 62px; height: 18px; margin-left: -31px; border-radius: 9px; }
.phone.small img { border-radius: 30px; cursor: default; }
.demo-hint {
	position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%);
	padding: 8px 16px; border-radius: 999px; white-space: nowrap;
	background: rgba(23, 35, 45, 0.86); color: #f5f0e6; font-size: 14px; font-weight: 700;
	pointer-events: none; transition: opacity 0.4s;
	animation: pulse 2.4s ease-in-out infinite;
}
.demo-hint.hidden { opacity: 0; }
@keyframes pulse { 50% { transform: translateX(-50%) scale(1.05); } }

/* --- sections ------------------------------------------------------------------ */
section { padding: 120px 16px; }
.section-title {
	max-width: 900px; margin: 0 auto; text-align: center;
	font-size: clamp(38px, 5.4vw, 68px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.02;
}
.section-lede { max-width: 620px; margin: 20px auto 0; text-align: center; color: var(--muted); font-size: clamp(18px, 1.6vw, 21px); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1120px; margin: 64px auto 0; }
.step { background: var(--card); border-radius: var(--radius); padding: 28px 28px 32px; box-shadow: 0 1px 0 var(--line); }
.step svg { width: 100%; height: auto; margin-bottom: 12px; overflow: visible; }
.step h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font-size: 24px; font-weight: 800; }
.step p { margin: 0; color: var(--muted); }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 15px; }
.s-wall { fill: var(--ink); }
.s-player { fill: var(--ink); }
.s-ghost { fill: var(--ink); opacity: 0.14; }
.s-arrow-tap, .s-arrow-echo { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 7; }
.s-arrow-tap { stroke: var(--coral); }
.s-arrow-echo { stroke: var(--mint); }
.s-ring-tap, .s-ring-echo { fill: none; stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: ring 2s ease-out infinite; }
.s-ring-tap { stroke: var(--coral); }
.s-ring-echo { stroke: var(--mint); animation-delay: 1s; }
@keyframes ring { 0% { transform: scale(0.5); opacity: 1; } 70%, 100% { transform: scale(1.4); opacity: 0; } }
.s-line { stroke: var(--line); stroke-width: 4; stroke-linecap: round; }
.s-dot-tap { fill: var(--coral); }
.s-dot-echo { fill: var(--mint); }
.s-label { fill: var(--muted); font: 700 14px "Outfit", sans-serif; letter-spacing: 0.04em; text-transform: uppercase; }
.s-label.small { font-size: 12px; text-transform: none; letter-spacing: 0; }

/* --- statement (words light up as you scroll) ---------------------------------- */
.statement { padding: 160px 16px; }
.statement-text {
	max-width: 980px; margin: 0 auto;
	font-size: clamp(34px, 5vw, 64px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12;
}
.statement-text .w { opacity: 0.16; transition: opacity 0.25s; }
.statement-text .w.on { opacity: 1; }
.statement-text .w.hot { color: var(--coral-ink); }
.statement-text .w.cool { color: var(--mint); }

/* --- gallery ------------------------------------------------------------------- */
.gallery { padding-left: 0; padding-right: 0; }
.gallery .section-title, .gallery .section-lede { padding: 0 16px; }
.shots {
	display: flex; gap: 28px; margin-top: 64px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	padding: 20px max(16px, calc((100vw - 1120px) / 2)) 40px;
}
.shots::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 auto; margin: 0; scroll-snap-align: center; width: 250px; }
.shot figcaption { margin-top: 20px; color: var(--muted); font-size: 16px; }
.shot figcaption strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 2px; }

/* --- features ------------------------------------------------------------------ */
.features { padding-top: 40px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1120px; margin: 0 auto; }
.card { background: var(--card); border-radius: var(--radius); padding: 32px; box-shadow: 0 1px 0 var(--line); transition: transform 0.3s; }
.card:hover { transform: translateY(-4px); }
.card h3 { margin: 20px 0 8px; font-size: 22px; font-weight: 800; }
.card p { margin: 0; color: var(--muted); font-size: 17px; }
.card-icon { width: 52px; height: 52px; border-radius: 16px; position: relative; }
.card-icon::after { content: ""; position: absolute; inset: 0; margin: auto; }
.i-daily { background: #b388ff; }
.i-daily::after { width: 22px; height: 22px; border: 4px solid #17232d; border-radius: 6px; box-sizing: border-box; box-shadow: inset 0 6px 0 #17232d; }
.i-cup { background: var(--gold); }
.i-cup::after { width: 22px; height: 18px; background: #17232d; border-radius: 0 0 11px 11px; top: -6px; }
.i-friend { background: var(--mint-soft); }
.i-friend::after { width: 26px; height: 14px; background: radial-gradient(circle at 7px 7px, #17232d 6px, transparent 7px), radial-gradient(circle at 19px 7px, #17232d 6px, transparent 7px); }
.i-zen { background: var(--mint); }
.i-zen::after { width: 24px; height: 24px; border-radius: 50%; border: 4px solid #f5f0e6; box-sizing: border-box; }
.i-fair { background: var(--ink); }
.i-fair::after { width: 12px; height: 22px; border: solid var(--bg); border-width: 0 5px 5px 0; transform: rotate(45deg) translate(-2px, -3px); }
.i-noads { background: var(--coral); }
.i-noads::after { width: 26px; height: 5px; background: #17232d; border-radius: 3px; transform: rotate(-45deg); box-shadow: 0 0 0 0 #17232d; }

/* --- beta ---------------------------------------------------------------------- */
.beta { padding: 140px 16px 160px; }
.beta-inner {
	max-width: 760px; margin: 0 auto; text-align: center;
	background: radial-gradient(120% 140% at 50% 0%, rgba(47, 168, 140, 0.18), transparent 60%), var(--card);
	border-radius: 40px; padding: 64px 28px;
	box-shadow: var(--shadow);
}
.beta-inner img { margin: 0 auto 24px; border-radius: 26px; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.4); }
.beta h2 { margin: 0; font-size: clamp(36px, 5vw, 56px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.beta p { max-width: 520px; margin: 16px auto 32px; color: var(--muted); }
.beta .soon { margin: 24px 0 0; }

/* --- footer -------------------------------------------------------------------- */
.foot {
	display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px;
	max-width: 1120px; margin: 0 auto; padding: 32px 16px 48px;
	border-top: 1px solid var(--line); font-size: 15px; color: var(--muted);
}
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.foot-brand img { border-radius: 6px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot-small { width: 100%; margin: 0; font-size: 13px; }

/* --- reveal on scroll ---------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.steps .reveal:nth-child(2), .grid .reveal:nth-child(3n + 2) { transition-delay: 0.1s; }
.steps .reveal:nth-child(3), .grid .reveal:nth-child(3n) { transition-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
	.s-ring-tap, .s-ring-echo, .demo-hint { animation: none; }
	.statement-text .w { opacity: 1; }
}

/* --- small screens ------------------------------------------------------------- */
@media (max-width: 900px) {
	.hero { grid-template-columns: 1fr; text-align: center; padding-top: 104px; gap: 56px; min-height: 0; }
	.lede { margin-left: auto; margin-right: auto; }
	.hero-actions { justify-content: center; }
	.steps, .grid { grid-template-columns: 1fr; max-width: 560px; }
	section { padding: 88px 16px; }
	.statement { padding: 110px 16px; }
}
@media (max-width: 640px) {
	.nav-links { display: none; }
	.nav-cta { margin-left: auto; }
	.btn { width: 100%; }
	.hero-actions { flex-direction: column; }
	.beta-inner { padding: 48px 20px; border-radius: 32px; }
	.foot nav { margin-left: 0; }
}
