/* ==========================================================================
   Affirmations - site styles
   Palette is taken from the app itself: blush paper, mint accent, navy ink.
   Shape rule: cards 28px, media 20px, phones 44px, all interactive = pill.
   ========================================================================== */

:root {
	--bg: #fdf7f9;
	--bg-2: #f9eef2;
	--surface: #fffcfd;
	--blush: #fbe3eb;
	--blush-2: #f5c8d7;
	--blush-3: #ee9fba;
	--ink: #18213f;
	--ink-soft: #444d6c;
	--muted: #646b88;
	--line: rgb(24 33 63 / .1);
	--accent: #5cc79f;
	--accent-soft: #dff4ea;
	--accent-text: #1f7f60;
	--night: #1b2246;
	--on-night: #f6eff3;
	--shadow: 0 1px 2px rgb(120 60 90 / .06), 0 12px 32px -8px rgb(120 60 90 / .16);
	--shadow-lg: 0 2px 4px rgb(120 60 90 / .06), 0 40px 80px -24px rgb(120 60 90 / .32);

	--r-card: 28px;
	--r-media: 20px;
	--r-phone: 44px;

	--font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
	--font-body: "Figtree", ui-sans-serif, system-ui, sans-serif;

	--ease-out: cubic-bezier(.16, 1, .3, 1);
	--container: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--nav-h: 72px;

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0f1224;
		--bg-2: #141832;
		--surface: #181c38;
		--blush: #2a2140;
		--blush-2: #3a2a4d;
		--blush-3: #8f5a7c;
		--ink: #f6eff3;
		--ink-soft: #cdc8d8;
		--muted: #a3a3bb;
		--line: rgb(246 239 243 / .1);
		--accent: #74d6b0;
		--accent-soft: #183a35;
		--accent-text: #86e0bd;
		--night: #222a55;
		--shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -8px rgb(0 0 0 / .5);
		--shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 40px 80px -24px rgb(0 0 0 / .7);
		color-scheme: dark;
	}
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

/* Film grain, fixed and non-interactive so it never repaints on scroll */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 100;
	pointer-events: none;
	opacity: .05;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -.03em;
	line-height: 1.05;
	text-wrap: balance;
}

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
	border-radius: 8px;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.sr-only {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

#top-sentinel {
	position: absolute;
	top: 0; left: 0;
	width: 1px; height: 48px;
	pointer-events: none;
}

.skip-link {
	position: absolute;
	left: 16px; top: -60px;
	z-index: 60;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--ink);
	color: var(--bg);
	text-decoration: none;
	font-weight: 600;
}
.skip-link:focus { top: 12px; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 20px;
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--accent-text);
}

.section { padding-block: clamp(80px, 11vw, 150px); }

.section-title {
	font-size: clamp(2.25rem, 4.6vw, 3.75rem);
	max-width: 16ch;
}

.section-lead {
	margin-top: 20px;
	max-width: 52ch;
	color: var(--muted);
	font-size: 1.125rem;
}

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

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: 999px;
	border: 1px solid transparent;
	font: 600 1rem/1 var(--font-body);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: transform .4s var(--ease-out), background-color .3s, box-shadow .4s var(--ease-out), border-color .3s;
}
.btn:active { transform: scale(.97); }
.btn i { font-size: 1.25em; }

.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { box-shadow: 0 10px 24px -10px rgb(24 33 63 / .55); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }

.store-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 60px;
	padding: 10px 26px 10px 20px;
	border-radius: 999px;
	border: 1px solid var(--ink);
	text-decoration: none;
	white-space: nowrap;
	transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background-color .3s, color .3s;
}
.store-btn i { font-size: 1.85rem; }
.store-btn span { display: flex; flex-direction: column; font: 700 1.125rem/1.1 var(--font-display); letter-spacing: -.01em; }
.store-btn small { font: 500 .75rem/1.2 var(--font-body); letter-spacing: .01em; opacity: .75; }
.store-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -14px rgb(24 33 63 / .5); }
.store-btn:active { transform: translateY(0) scale(.98); }
.store-btn--solid { background: var(--ink); color: var(--bg); }
.store-btn--line { background: transparent; color: var(--ink); }
.store-btn--line:hover { background: var(--ink); color: var(--bg); }

/* ---------- Navigation ---------- */

.nav {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	padding-top: 12px;
	transition: padding .4s var(--ease-out);
}
.nav__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: var(--nav-h);
	padding-inline: 14px 10px;
	border-radius: 999px;
	border: 1px solid transparent;
	transition: background-color .4s, border-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.nav.is-scrolled .nav__bar {
	background: color-mix(in srgb, var(--surface) 78%, transparent);
	border-color: var(--line);
	box-shadow: var(--shadow);
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	backdrop-filter: blur(18px) saturate(160%);
}
@media (prefers-reduced-transparency: reduce) {
	.nav.is-scrolled .nav__bar { background: var(--surface); }
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	font: 700 1.25rem/1 var(--font-display);
	letter-spacing: -.02em;
}
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__links a:not(.btn) {
	display: block;
	padding: 10px 16px;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 500;
	color: var(--ink-soft);
	transition: color .2s, background-color .2s;
}
.nav__links a:not(.btn):hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav__links .btn { margin-left: 8px; }

.nav__toggle {
	display: none;
	width: 48px; height: 48px;
	border: 0;
	border-radius: 999px;
	background: var(--ink);
	color: var(--bg);
	cursor: pointer;
}
.nav__burger,
.nav__burger::before,
.nav__burger::after {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .4s var(--ease-out), background-color .2s;
}
.nav__burger { position: relative; }
.nav__burger::before,
.nav__burger::after { content: ""; position: absolute; left: 0; }
.nav__burger::before { transform: translateY(-6px); }
.nav__burger::after { transform: translateY(6px); }
.nav.is-open .nav__burger { background-color: transparent; }
.nav.is-open .nav__burger::before { transform: rotate(45deg); }
.nav.is-open .nav__burger::after { transform: rotate(-45deg); }

@media (max-width: 860px) {
	.nav__toggle { display: grid; place-items: center; }
	.nav__links {
		position: absolute;
		top: calc(100% + 8px);
		left: var(--gutter); right: var(--gutter);
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
		padding: 12px;
		border-radius: var(--r-card);
		background: var(--surface);
		border: 1px solid var(--line);
		box-shadow: var(--shadow-lg);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px) scale(.98);
		transform-origin: top center;
		transition: opacity .3s, transform .4s var(--ease-out), visibility .3s;
	}
	.nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
	.nav__links a:not(.btn) { padding: 14px 16px; font-size: 1.0625rem; }
	.nav__links .btn { margin: 8px 0 0; }
	.nav.is-open .nav__bar { background: var(--surface); border-color: var(--line); }
}

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

.hero {
	position: relative;
	isolation: isolate;
	min-height: 100dvh;
	display: flex;
	align-items: center;
	padding: calc(var(--nav-h) + 56px) 0 72px;
	overflow: hidden;
}
.hero::before,
.hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	filter: blur(60px);
	pointer-events: none;
}
.hero::before {
	width: 62vw; height: 62vw;
	right: -14vw; top: -18vw;
	background: radial-gradient(circle, var(--blush-2) 0%, transparent 65%);
	opacity: .9;
}
.hero::after {
	width: 40vw; height: 40vw;
	left: -12vw; bottom: -18vw;
	background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
}

.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	align-items: center;
	gap: clamp(40px, 6vw, 96px);
}

.hero h1 {
	font-size: clamp(3rem, 7.4vw, 6rem);
	line-height: 1.02;
	letter-spacing: -.045em;
	max-width: 11ch;
}
.hero h1 .accent-word {
	color: var(--accent-text);
	display: inline-block;
	padding-bottom: .06em;
}
.hero__lead {
	margin: 28px 0 40px;
	max-width: 40ch;
	font-size: clamp(1.125rem, 1.5vw, 1.3rem);
	color: var(--ink-soft);
}

.hero__visual {
	position: relative;
	display: grid;
	place-items: center;
	perspective: 1400px;
}

.tilt {
	transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg));
	transform-style: preserve-3d;
	transition: transform .9s var(--ease-out);
}

/* ---------- Phone frame ---------- */

.phone {
	position: relative;
	width: min(300px, 72vw);
	padding: 10px;
	border-radius: var(--r-phone);
	background: linear-gradient(145deg, #2a2f48, #10131f);
	box-shadow:
		inset 0 0 0 1.5px rgb(255 255 255 / .12),
		inset 0 2px 0 rgb(255 255 255 / .1),
		var(--shadow-lg);
}
.phone__screen {
	position: relative;
	overflow: hidden;
	border-radius: calc(var(--r-phone) - 10px);
	background: #fff;
}
.phone__screen img { width: 100%; aspect-ratio: 298 / 529; object-fit: cover; }

/* Live app screen in the hero */
.app-screen {
	position: relative;
	aspect-ratio: 9 / 19;
	display: grid;
	grid-template-rows: auto auto 1fr auto;
	padding: 14px 18px 22px;
	background: #fbe6ec;
	color: #1b2a52;
	isolation: isolate;
}
.app-screen__paint {
	position: absolute;
	inset: -20%;
	z-index: -1;
	background:
		linear-gradient(118deg, transparent 8%, rgb(243 167 192 / .55) 12%, rgb(246 186 205 / .25) 20%, transparent 26%),
		linear-gradient(126deg, transparent 30%, rgb(240 150 180 / .35) 34%, rgb(248 200 215 / .5) 40%, transparent 47%),
		linear-gradient(112deg, transparent 52%, rgb(244 170 195 / .45) 57%, rgb(250 212 224 / .3) 64%, transparent 70%),
		linear-gradient(130deg, transparent 72%, rgb(239 145 177 / .3) 77%, transparent 84%),
		radial-gradient(120% 60% at 80% 10%, rgb(255 255 255 / .55), transparent 60%),
		#fbe4eb;
	filter: blur(3px);
	animation: paint-drift 18s ease-in-out infinite alternate;
}
.app-screen__paint::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: .35;
	mix-blend-mode: soft-light;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .09' numOctaves='3' seed='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E");
}
@keyframes paint-drift {
	to { transform: translate3d(-4%, 3%, 0) rotate(2deg); }
}

.app-screen__status {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font: 600 .75rem/1 var(--font-body);
	color: #1b2a52;
}
.app-screen__status span:last-child { display: inline-flex; gap: 4px; font-size: .85rem; }
.app-screen__crown {
	justify-self: end;
	margin-top: 10px;
	width: 34px; height: 34px;
	display: grid; place-items: center;
	border-radius: 10px;
	background: #fff6ef;
	color: #f0a43a;
	box-shadow: 0 0 0 1.5px #f4a978;
	font-size: 1.1rem;
}
.app-screen__text {
	align-self: center;
	margin: 0;
	text-align: center;
	font: 600 clamp(1.1rem, 1.6vw, 1.32rem)/1.35 var(--font-body);
	letter-spacing: -.01em;
	min-height: 5.4em;
	display: flex;
	flex-wrap: wrap;
	align-content: center;
	justify-content: center;
	column-gap: .28em;
	transition: opacity .5s var(--ease-out), filter .5s var(--ease-out), transform .5s var(--ease-out);
}
.app-screen__text.is-out { opacity: 0; filter: blur(6px); transform: translateY(-6px); }
.app-screen__text .w {
	display: inline-block;
	animation: word-in .9s var(--ease-out) both;
	animation-delay: calc(var(--i) * 70ms + 80ms);
}
@keyframes word-in {
	from { opacity: 0; filter: blur(8px); transform: translateY(10px); }
}
.app-screen__bar { display: flex; align-items: center; gap: 10px; }
.app-screen__pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	border-radius: 999px;
	background: #6fcfa8;
	color: #fff;
	font: 600 .82rem/1 var(--font-body);
}
.app-screen__circle {
	width: 36px; height: 36px;
	display: grid; place-items: center;
	border-radius: 50%;
	border: 1.5px solid #6fcfa8;
	color: #3fae86;
}
.app-screen__icons { margin-left: auto; display: flex; gap: 14px; font-size: 1.3rem; color: #1b2a52; }

/* Floating cards around the hero phone */
.float-card {
	position: absolute;
	z-index: 2;
	display: flex;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 22px;
	background: color-mix(in srgb, var(--surface) 86%, transparent);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-lg);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	font-size: .875rem;
	line-height: 1.35;
	transform: translateZ(60px);
	animation: float 7s ease-in-out infinite;
}
.float-card img { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.float-card strong { display: block; font-weight: 600; }
.float-card small { color: var(--muted); font-size: .75rem; }
.float-card--notif { left: -16%; bottom: 17%; width: 250px; }
.float-card--remind { right: -8%; top: 24%; align-items: center; animation-delay: -3.5s; }
.float-card__badge {
	display: grid; place-items: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--accent);
	color: #0f2a20;
	font: 700 .95rem/1 var(--font-display);
}
@keyframes float {
	50% { translate: 0 -10px; }
}

/* ---------- Categories marquee ---------- */

.marquee {
	padding-block: 28px;
	border-block: 1px solid var(--line);
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
	display: flex;
	width: max-content;
	animation: marquee 48s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; list-style: none; }
.marquee__group li {
	display: flex;
	align-items: center;
	gap: 36px;
	padding-right: 36px;
	font: 600 clamp(1.5rem, 3vw, 2.25rem)/1 var(--font-display);
	letter-spacing: -.02em;
	white-space: nowrap;
}
.marquee__group li:nth-child(even) { color: var(--blush-3); }
.marquee__group i { color: var(--accent); font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Statement (words light up on scroll) ---------- */

.statement h2 {
	font-size: 1.125rem;
	letter-spacing: 0;
	font-family: var(--font-body);
	font-weight: 600;
	color: var(--accent-text);
	margin-bottom: 28px;
}
.statement__text {
	margin: 0;
	max-width: 24ch;
	font: 600 clamp(2rem, 4.6vw, 4rem)/1.12 var(--font-display);
	letter-spacing: -.035em;
	view-timeline-name: --statement;
}
.statement__text .w { transition: opacity .3s; }
.statement__text em { font-style: normal; color: var(--accent-text); }

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.statement__text .w {
			opacity: .16;
			animation: lit linear both;
			animation-timeline: --statement;
			animation-range-start: cover calc(22% + var(--i) / var(--n) * 34%);
			animation-range-end: cover calc(25% + var(--i) / var(--n) * 34%);
		}
	}
}
@keyframes lit { to { opacity: 1; } }

/* ---------- Bento features ---------- */

.bento {
	margin-top: 56px;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-auto-rows: minmax(260px, auto);
	gap: 16px;
}
.tile {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: clamp(24px, 3vw, 36px);
	border-radius: var(--r-card);
	background: var(--surface);
	border: 1px solid var(--line);
	transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); letter-spacing: -.025em; margin-bottom: 10px; }
.tile p { color: var(--muted); max-width: 36ch; margin: 0; }
.tile__icon {
	width: 52px; height: 52px;
	display: grid; place-items: center;
	margin-bottom: auto;
	border-radius: 16px;
	background: var(--accent-soft);
	color: var(--accent-text);
	font-size: 1.6rem;
}
.tile__icon + h3 { margin-top: 28px; }

.tile--library {
	grid-column: 1 / 8;
	grid-row: span 2;
	background:
		radial-gradient(90% 70% at 100% 100%, var(--blush-2), transparent 70%),
		linear-gradient(160deg, var(--blush), var(--surface));
	padding-bottom: 0;
}
.tile--library .big-num {
	display: block;
	font: 800 clamp(3.5rem, 8vw, 6.5rem)/.9 var(--font-display);
	letter-spacing: -.05em;
	margin-bottom: 16px;
}
.tile--library .phone {
	width: min(270px, 62%);
	margin: 36px auto -90px;
	transform: rotate(-4deg);
	transition: transform .8s var(--ease-out);
}
.tile--library:hover .phone { transform: rotate(-1deg) translateY(-12px); }

.tile--remind { grid-column: 8 / 13; background: linear-gradient(170deg, var(--accent-soft), var(--surface) 75%); }
.tile--remind .shot {
	margin: 0 -8px 24px;
	height: 160px;
	border-radius: var(--r-media);
	overflow: hidden;
	box-shadow: var(--shadow);
}
.tile--remind .shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 37%; }

.tile--widget {
	grid-column: 8 / 13;
	background: var(--night);
	color: var(--on-night);
	border-color: transparent;
}
.tile--widget p { color: rgb(246 239 243 / .72); }
.widget-demo {
	align-self: flex-start;
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: auto;
	padding: 14px 18px 14px 14px;
	border-radius: 22px;
	background: #fbe3eb;
	color: #1b2a52;
	font: 600 1rem/1.3 var(--font-body);
	box-shadow: 0 18px 40px -16px rgb(0 0 0 / .6);
	transform: rotate(-2deg);
}
.widget-demo img { width: 40px; height: 40px; border-radius: 12px; }
.widget-demo + h3 { margin-top: 28px; }

.tile--share { grid-column: 1 / 6; }
.tile--free {
	grid-column: 6 / 13;
	flex-direction: row;
	align-items: flex-end;
	gap: 24px;
	background:
		radial-gradient(80% 120% at 0% 0%, var(--accent-soft), transparent 60%),
		linear-gradient(120deg, var(--surface), var(--blush));
}
.tile--free > div { flex: 1; }
.tile--free img {
	width: clamp(110px, 14vw, 160px);
	border-radius: 34px;
	box-shadow: var(--shadow-lg);
	transform: rotate(6deg);
	transition: transform .8s var(--ease-out);
}
.tile--free:hover img { transform: rotate(0deg) scale(1.04); }

/* ---------- Screens gallery (horizontal pan on desktop) ---------- */

.gallery { position: relative; }
.gallery__sticky { padding-block: clamp(80px, 10vw, 130px); }
.gallery__track {
	display: flex;
	align-items: center;
	gap: clamp(24px, 3vw, 48px);
	padding-inline: var(--gutter);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 8px;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__intro {
	flex: none;
	width: min(420px, 82vw);
	scroll-snap-align: start;
}
.gallery__item {
	flex: none;
	margin: 0;
	scroll-snap-align: center;
}
.gallery__item .phone { width: clamp(230px, 22vw, 290px); }
.gallery__item:nth-child(odd) .phone { transform: translateY(28px); }
.gallery__item figcaption {
	margin-top: 22px;
	text-align: center;
	font-weight: 600;
	color: var(--ink-soft);
}
.gallery__item:nth-child(odd) figcaption { transform: translateY(28px); }

@supports (animation-timeline: view()) {
	@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
		.gallery {
			height: 320vh;
			view-timeline-name: --gallery;
		}
		.gallery__sticky {
			position: sticky;
			top: 0;
			height: 100dvh;
			display: flex;
			align-items: center;
			overflow: hidden;
			padding-block: 0;
		}
		.gallery__track {
			width: max-content;
			overflow: visible;
			padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
			animation: pan linear both;
			animation-timeline: --gallery;
			animation-range: contain 0% contain 100%;
		}
	}
}
@keyframes pan { to { transform: translateX(calc(100vw - 100%)); } }

/* ---------- Reviews ---------- */

.reviews { background: var(--bg-2); }
.reviews__grid {
	margin-top: 56px;
	columns: 3 300px;
	column-gap: 16px;
}
.review {
	break-inside: avoid;
	margin: 0 0 16px;
	padding: 28px;
	border-radius: var(--r-card);
	background: var(--surface);
	border: 1px solid var(--line);
}
.review--feature {
	background: var(--night);
	color: var(--on-night);
	border-color: transparent;
}
.review--feature blockquote { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.review--feature figcaption div span { color: rgb(246 239 243 / .7); }
.review__stars { display: flex; gap: 2px; color: #f2a93b; margin-bottom: 16px; }
.review blockquote {
	margin: 0 0 20px;
	font: 500 1.125rem/1.45 var(--font-display);
	letter-spacing: -.01em;
}
.review figcaption { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.review figcaption div span { display: block; font-weight: 400; font-size: .875rem; color: var(--muted); }
.avatar {
	width: 40px; height: 40px;
	flex: none;
	display: grid; place-items: center;
	border-radius: 50%;
	background: var(--blush-2);
	color: var(--ink);
	font: 700 .95rem/1 var(--font-display);
}
.review:nth-child(3n) .avatar { background: var(--accent); color: #0f2a20; }

/* ---------- FAQ ---------- */

.faq__grid {
	display: grid;
	grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
	gap: clamp(40px, 6vw, 96px);
	align-items: start;
}
.faq__aside { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq__aside .btn { margin-top: 32px; }

.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 26px 0;
	list-style: none;
	cursor: pointer;
	font: 600 clamp(1.125rem, 1.6vw, 1.3rem)/1.3 var(--font-display);
	letter-spacing: -.015em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i {
	flex: none;
	width: 40px; height: 40px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: var(--blush);
	font-size: 1.1rem;
	transition: transform .5s var(--ease-out), background-color .3s;
}
.faq__item[open] summary i { transform: rotate(45deg); background: var(--accent); color: #0f2a20; }
.faq__item summary:hover i { background: var(--blush-2); }
.faq__body { padding: 0 64px 28px 0; color: var(--ink-soft); }
.faq__body ol,
.faq__body ul { margin: 0 0 1em; padding-left: 1.3em; }
.faq__body li { margin-bottom: .4em; padding-left: .2em; }
.faq__body li::marker { color: var(--accent-text); font-weight: 600; }
.faq__body a { color: var(--accent-text); }

@supports (interpolate-size: allow-keywords) {
	.faq__item { interpolate-size: allow-keywords; }
	.faq__item::details-content {
		height: 0;
		overflow: clip;
		transition: height .5s var(--ease-out), content-visibility .5s allow-discrete;
	}
	.faq__item[open]::details-content { height: auto; }
}

/* ---------- Download CTA ---------- */

.cta__panel {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
	align-items: center;
	gap: 40px;
	padding: clamp(40px, 7vw, 96px);
	border-radius: calc(var(--r-card) + 12px);
	background:
		radial-gradient(70% 90% at 100% 0%, var(--blush-2), transparent 70%),
		radial-gradient(60% 80% at 0% 100%, var(--accent-soft), transparent 70%),
		var(--blush);
}
.cta__panel h2 {
	font-size: clamp(2.5rem, 6vw, 5rem);
	letter-spacing: -.045em;
	max-width: 12ch;
	margin-bottom: 36px;
}
.cta__icon {
	justify-self: center;
	width: min(260px, 60vw);
	border-radius: 58px;
	box-shadow: var(--shadow-lg);
	transform: rotate(-8deg);
}

/* ---------- Footer ---------- */

.footer { padding: 64px 0 40px; }
.footer__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 28px; list-style: none; }
.footer__links a { text-decoration: none; color: var(--ink-soft); font-weight: 500; }
.footer__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer__copy { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }

/* ---------- Legal pages ---------- */

.legal { padding: calc(var(--nav-h) + 80px) 0 40px; }
.legal__head { max-width: 760px; margin-bottom: 48px; }
.legal__head h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); letter-spacing: -.045em; margin-bottom: 16px; }
.legal__date { color: var(--muted); }
.legal__body { max-width: 72ch; }
.legal__body h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); letter-spacing: -.02em; margin: 48px 0 16px; }
.legal__body p,
.legal__body li { color: var(--ink-soft); }
.legal__body ul { padding-left: 1.3em; margin-bottom: 1em; }
.legal__body li { margin-bottom: .4em; }
.legal__body a { color: var(--accent-text); }
.legal__notice {
	padding: 24px 28px;
	border-radius: var(--r-media);
	background: var(--blush);
	color: var(--ink) !important;
	font-weight: 500;
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
	transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.float-card--notif { left: -4%; }
	.float-card--remind { right: -2%; }
}

@media (max-width: 860px) {
	.hero { min-height: auto; padding-top: calc(var(--nav-h) + 48px); }
	.hero__grid { grid-template-columns: 1fr; }
	.hero h1 { max-width: 12ch; }
	.hero__visual { margin-top: 16px; }
	.float-card--remind { display: none; }
	.float-card--notif { left: 0; bottom: 22%; width: 230px; }

	.bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
	.bento > .tile { grid-column: 1 / -1; grid-row: auto; }
	.tile--free { flex-direction: column; align-items: flex-start; }
	.tile--library .phone { margin-bottom: -120px; }

	.faq__grid { grid-template-columns: 1fr; }
	.faq__aside { position: static; }
	.faq__body { padding-right: 0; }

	.cta__panel { grid-template-columns: 1fr; text-align: left; }
	.cta__icon { width: 140px; border-radius: 32px; justify-self: start; grid-row: 1; }
}

@media (max-width: 480px) {
	.store-btn { flex: 1 1 100%; justify-content: center; }
	.float-card--notif { width: 210px; padding: 12px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
	.marquee__track { animation: none; flex-wrap: wrap; width: auto; }
	.marquee__group[aria-hidden="true"] { display: none; }
	.marquee__group { flex-wrap: wrap; row-gap: 16px; }
	.tilt { transform: none; }
}
