/* SpinCreatePlay marketing site - shared styles
 * Visual language taken from the mobile app's hero wallpapers: vibrant rainbow
 * palette, playful rounded type, lots of motion and sparkle on hero areas,
 * calm legible white cards for long-form content.
 */

:root {
	--pink: #ff3f8e;
	--cyan: #00d4ff;
	--yellow: #ffd93d;
	--purple: #b026ff;
	--lime: #7cff5e;
	--ink: #1a1b3a;
	--ink-soft: #2c2d52;
	--muted: #6e7088;
	--card: #ffffff;
	--page: #f7f4ff;
	--page-soft: #ffffff;
	--border: #ece8f6;
	--shadow-strong: 0 24px 60px -28px rgba(26, 27, 58, 0.45);
	--shadow-soft: 0 6px 24px -16px rgba(26, 27, 58, 0.25);
	--radius-lg: 28px;
	--radius-md: 18px;
	--radius-sm: 12px;
	--max-content: 880px;
	--max-wide: 1120px;
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* Avoid a brief white flash between full-page navigations before body paints */
	background: var(--page);
}

body {
	margin: 0;
	font-family:
		"Quicksand",
		system-ui,
		-apple-system,
		"Segoe UI",
		Roboto,
		"Helvetica Neue",
		Arial,
		sans-serif;
	color: var(--ink);
	background: var(--page);
	line-height: 1.6;
	font-size: 17px;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: var(--purple);
	text-decoration: none;
	font-weight: 600;
}

a:hover,
a:focus-visible {
	text-decoration: underline;
}

button,
.button {
	font: inherit;
	cursor: pointer;
}

/* Coming-soon ribbon (full-width top bar) -------------------------------- */

.coming-soon-banner {
	margin: 0;
	padding: 0.7rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	text-align: center;
	/* Inherit Quicksand from body — avoids a visible Fredoka swap on this first paint stripe */
	font-family: inherit;
	font-weight: 700;
	font-size: clamp(0.78rem, 2.1vw, 0.92rem);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(
		100deg,
		var(--ink) 0%,
		#352060 18%,
		var(--purple) 38%,
		var(--pink) 52%,
		var(--cyan) 68%,
		#143d48 88%,
		var(--ink) 100%
	);
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
	text-shadow:
		0 1px 2px rgba(0, 0, 0, 0.35),
		0 0 12px rgba(255, 255, 255, 0.25);
}

.coming-soon-banner__spark {
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--yellow);
	box-shadow:
		0 0 0 2px rgba(255, 255, 255, 0.35),
		0 0 10px var(--lime);
	/* No transform — keeps compositing simpler next to the sticky nav */
	opacity: 0.95;
}

.coming-soon-badge {
	display: inline-block;
	font-size: 0.68em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(255, 217, 61, 0.42);
	color: var(--ink);
	vertical-align: middle;
	margin-left: 0.4em;
	white-space: nowrap;
}

.coming-soon-note {
	margin: 0 0 1.25rem;
	padding: 14px 18px;
	border-radius: var(--radius-md);
	background: rgba(255, 217, 61, 0.18);
	border: 1px solid rgba(255, 217, 61, 0.45);
	font-size: 0.95rem;
	line-height: 1.55;
}

.gallery-playback-reveal__note {
	margin: 12px 0 0;
	max-width: 36em;
	font-size: 0.92rem;
	text-align: center;
	color: rgba(26, 27, 58, 0.72);
}

/* Top navigation -------------------------------------------------------- */

.site-nav {
	position: sticky;
	top: 0;
	z-index: 20;
	/* Solid bar: backdrop-filter behind sticky headers often flickers on full-page loads,
	   especially with a high-contrast ribbon above the nav */
	background: var(--card);
	border-bottom: 1px solid var(--border);
}

.site-nav__inner {
	max-width: var(--max-wide);
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 20px;
}

.site-nav__brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
	letter-spacing: -0.01em;
}

.site-nav__brand:hover {
	text-decoration: none;
}

.site-nav__brand-mark-frame {
	flex-shrink: 0;
	position: relative;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: var(--shadow-soft);
}

.site-nav__brand-mark-frame::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 2px #fff;
	pointer-events: none;
}

.site-nav__brand-mark {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

.site-nav__actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 2px;
}

.site-nav__links {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

/* Social icon row (nav + elsewhere) --------------------------------------- */

.social-links {
	display: flex;
	align-items: center;
	gap: 2px;
}

/* Duplicate icon row inside the mobile menu; hidden on desktop */
.social-links--menu {
	display: none;
}

.social-links__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	color: var(--ink-soft);
	text-decoration: none;
	transition:
		background 120ms ease,
		color 120ms ease;
}

.social-links__link:hover,
.social-links__link:focus-visible {
	background: rgba(176, 38, 255, 0.08);
	color: var(--purple);
	text-decoration: none;
	outline: none;
}

.social-links__link:focus-visible {
	box-shadow:
		0 0 0 2px var(--card),
		0 0 0 4px var(--purple);
}

.social-links__icon {
	display: block;
	width: 22px;
	height: 22px;
}

.site-nav__link {
	color: var(--ink-soft);
	padding: 8px 14px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	transition:
		background 120ms ease,
		color 120ms ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
	background: rgba(176, 38, 255, 0.08);
	color: var(--purple);
	text-decoration: none;
}

.site-nav__link[aria-current="page"] {
	background: var(--ink);
	color: #fff;
}

.site-nav__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	margin: -8px -10px -8px 0;
	padding: 8px 10px;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.site-nav__toggle:hover,
.site-nav__toggle:focus-visible {
	background: rgba(176, 38, 255, 0.08);
	outline: none;
}

.site-nav__toggle:focus-visible {
	box-shadow:
		0 0 0 2px var(--card),
		0 0 0 4px var(--purple);
}

.site-nav__toggle-icon {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 22px;
	pointer-events: none;
}

.site-nav__toggle-icon span {
	display: block;
	height: 2px;
	width: 100%;
	border-radius: 2px;
	background: var(--ink);
	transition:
		transform 160ms ease,
		opacity 160ms ease;
}

.site-nav.is-open .site-nav__toggle-icon span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.site-nav.is-open .site-nav__toggle-icon span:nth-child(2) {
	opacity: 0;
}

.site-nav.is-open .site-nav__toggle-icon span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
	.site-nav__toggle-icon span {
		transition: none;
	}
}

@media (max-width: 720px) {
	body.site-nav-open {
		overflow: hidden;
	}

	.site-nav__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		row-gap: 0;
	}

	/* Truncate rather than overlap the actions column if space runs out */
	.site-nav__brand {
		min-width: 0;
	}

	.site-nav__brand > span:last-child {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.site-nav__actions {
		grid-column: 2;
		grid-row: 1;
		margin-left: 0;
		justify-self: end;
	}

	/* The icon row doesn't fit next to the brand on narrow screens,
	   so it moves into the collapsible menu instead */
	.site-nav__actions .social-links {
		display: none;
	}

	.social-links--menu {
		display: flex;
		justify-content: center;
		gap: 10px;
		padding-top: 10px;
		margin-top: 4px;
		border-top: 1px solid var(--border);
	}

	.site-nav__toggle {
		display: inline-flex;
	}

	.site-nav__links {
		grid-column: 1 / -1;
		display: none;
		flex-direction: column;
		align-items: stretch;
		margin-left: 0;
		padding: 8px 0 18px;
		gap: 6px;
		border-top: 1px solid var(--border);
		box-shadow: 0 14px 28px -22px rgba(26, 27, 58, 0.45);
	}

	.site-nav.is-open .site-nav__links {
		display: flex;
	}

	.site-nav__link {
		padding: 14px 14px;
		border-radius: var(--radius-md);
		font-size: 1rem;
		text-align: center;
	}
}

/* Hero ------------------------------------------------------------------ */

.hero {
	position: relative;
	/* Avoid overflow:hidden here — it clips the #features heading pulled up via .section--hero-overlap on narrow screens */
	overflow: visible;
	isolation: isolate;
	color: var(--ink);
	text-align: center;
	padding: clamp(28px, 5vw, 52px) 20px clamp(96px, 16vw, 180px);
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	/* Solid bottom layer: until bg_homepage.png decodes, gradient sits on this instead of body lavender */
	background:
		linear-gradient(
			160deg,
			rgba(176, 38, 255, 0.6),
			rgba(255, 63, 142, 0.55) 40%,
			rgba(0, 212, 255, 0.55)
		),
		url("../assets/bg_homepage.png") center/cover no-repeat,
		linear-gradient(145deg, #3a2868 0%, #502070 45%, #284878 100%);
	z-index: -2;
}

.hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: clamp(72px, 10vw, 120px);
	background: linear-gradient(to bottom, transparent, var(--page));
	z-index: -1;
}

.hero__inner {
	max-width: var(--max-wide);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

/* Hero: App Store | logo+eyebrow | Google Play. Logo width still matches the eyebrow pill. */
.hero__brand {
	display: inline-grid;
	grid-template-columns: auto auto auto;
	justify-items: center;
	align-items: start;
	column-gap: clamp(10px, 2.8vw, 28px);
	row-gap: 16px;
	max-width: 100%;
	vertical-align: top;
}

.hero__brand .hero__store--apple {
	grid-column: 1;
	grid-row: 1;
	align-self: center;
}

.hero__brand-core {
	grid-column: 2;
	grid-row: 1;
	display: inline-grid;
	grid-template-columns: minmax(0, max-content);
	justify-items: stretch;
	gap: 16px;
}

.hero__brand .hero__store--play {
	grid-column: 3;
	grid-row: 1;
	align-self: center;
}

.hero__brand-core .hero__mark-frame {
	grid-column: 1;
	grid-row: 1;
	position: relative;
	width: 0;
	min-width: 100%;
	aspect-ratio: 1;
	border-radius: 28px;
	overflow: hidden;
	box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.5);
}

.hero__brand-core .hero__mark-frame::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 4px #fff;
	pointer-events: none;
}

.hero__brand-core .hero__mark {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

.hero__brand-core .hero__eyebrow {
	grid-column: 1;
	grid-row: 2;
	justify-self: center;
}

.hero__store {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	max-width: 9.5rem;
	min-width: 0;
}

.hero__store-badge-link {
	display: block;
	line-height: 0;
	text-decoration: none;
	transition: transform 0.18s ease;
}

.hero__store-badge-link:hover,
.hero__store-badge-link:focus-visible {
	text-decoration: none;
	transform: translateY(-2px);
}

.hero__store-badge {
	width: auto;
	max-width: 100%;
	height: auto;
}

.hero__store-badge--apple {
	height: 40px;
}

/* Official Play badge PNG includes transparent padding — optically match App Store height. */
.hero__store-badge--play {
	height: 58px;
	margin-block: -9px;
}

/* Hidden by default — only useful when someone can scan with a second device. */
.hero__store-qr {
	display: none;
	width: min(7.5rem, 100%);
	height: auto;
	aspect-ratio: 1;
	padding: 8px;
	border-radius: 12px;
	background: #fff;
	box-shadow:
		0 8px 24px -12px rgba(26, 27, 58, 0.45),
		inset 0 0 0 1px rgba(26, 27, 58, 0.08);
}

/* Desktop / trackpad mice only — stays off in Instagram / phone WebViews even if width is misreported. */
@media (hover: hover) and (pointer: fine) and (min-width: 721px) {
	.hero__store-qr {
		display: block;
	}
}

@media (max-width: 720px) {
	/* Logo on top, store badges side-by-side underneath — safer for narrow / in-app browsers. */
	.hero__brand {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		width: min(100%, 22rem);
		column-gap: 10px;
	}

	.hero__brand-core {
		grid-column: 1 / -1;
		grid-row: 1;
		justify-self: center;
	}

	.hero__brand .hero__store--apple {
		grid-column: 1;
		grid-row: 2;
		justify-self: end;
	}

	.hero__brand .hero__store--play {
		grid-column: 2;
		grid-row: 2;
		justify-self: start;
	}

	.hero__store {
		max-width: 7.25rem;
	}

	.hero__store-badge--apple {
		height: 34px;
	}

	.hero__store-badge--play {
		height: 50px;
		margin-block: -8px;
	}
}

.hero__eyebrow {
	display: inline-block;
	padding: 6px 14px;
	white-space: nowrap;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: rgba(255, 255, 255);
	color: var(--purple);
	border: 1px solid rgba(26, 27, 58, 0.12);
	box-shadow: 0 4px 20px -8px rgba(26, 27, 58, 0.35);
}

.hero h1 {
	font-family: "Fredoka", "Quicksand", sans-serif;
	font-size: clamp(2.15rem, 5.8vw, 4rem);
	line-height: 1.05;
	margin: 0;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--ink);
	text-shadow:
		0 1px 0 rgba(255, 255, 255, 0.95),
		0 0 16px rgba(255, 255, 255, 0.9),
		0 0 32px rgba(255, 255, 255, 0.55),
		0 2px 8px rgba(26, 27, 58, 0.22);
}

.hero p.lead {
	font-family: "Fredoka", "Quicksand", sans-serif;
	font-size: clamp(1.2rem, 3vw, 1.55rem);
	line-height: 1.35;
	max-width: 800px;
	margin: 0;
	font-weight: 700;
	color: var(--ink);
	text-shadow:
		0 1px 0 rgba(255, 255, 255, 0.95),
		0 0 16px rgba(255, 255, 255, 0.9),
		0 0 32px rgba(255, 255, 255, 0.55),
		0 2px 8px rgba(26, 27, 58, 0.22);
}

.hero-meta {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	list-style: none;
	padding: 0;
	margin: 0;
	width: 100%;
	max-width: 720px;
}

.hero-meta li {
	margin: 0;
	padding: 0;
	min-width: 0;
	display: flex;
}

.hero-meta__pill {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	background: rgba(255, 255, 255, 0.92);
	color: var(--ink);
	border: 1px solid rgba(26, 27, 58, 0.1);
	box-shadow: 0 4px 16px -8px rgba(26, 27, 58, 0.25);
	text-shadow: none;
	text-decoration: none;
}

@media (max-width: 540px) {
	.hero-meta {
		grid-template-columns: 1fr;
		max-width: 280px;
	}
}

a.hero-meta__pill:hover,
a.hero-meta__pill:focus-visible {
	color: var(--ink);
	text-decoration: none;
	background: #fff;
	border-color: rgba(26, 27, 58, 0.18);
	box-shadow: 0 6px 20px -8px rgba(26, 27, 58, 0.3);
}

.hero-philosophy {
	margin: 0;
	max-width: 680px;
	font-family: "Fredoka", "Quicksand", sans-serif;
	font-size: clamp(1.05rem, 2.6vw, 1.25rem);
	line-height: 1.4;
	font-weight: 600;
	font-style: italic;
	color: var(--ink);
	text-shadow:
		0 1px 0 rgba(255, 255, 255, 0.95),
		0 0 14px rgba(255, 255, 255, 0.85),
		0 2px 6px rgba(26, 27, 58, 0.18);
}

.hero-founder {
	display: flex;
	align-items: flex-start;
	gap: clamp(14px, 3vw, 20px);
	max-width: 960px;
	margin: 0;
	padding: clamp(16px, 3vw, 22px) clamp(18px, 3.5vw, 26px);
	text-align: left;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid rgba(26, 27, 58, 0.1);
	border-radius: var(--radius-md);
	box-shadow:
		0 12px 40px -16px rgba(26, 27, 58, 0.45),
		0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.hero-founder__photo {
	flex-shrink: 0;
	width: clamp(64px, 14vw, 80px);
	height: clamp(64px, 14vw, 80px);
	border-radius: 50%;
	object-fit: cover;
	object-position: center top;
	border: 3px solid #fff;
	box-shadow: 0 6px 20px -8px rgba(26, 27, 58, 0.45);
}

.hero-founder__body {
	flex: 1;
	min-width: 0;
}

.hero-founder__byline {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 10px;
	margin: 0 0 10px;
}

.hero-founder__name {
	font-family: "Fredoka", "Quicksand", sans-serif;
	font-size: clamp(1.1rem, 2.6vw, 1.28rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--ink);
}

.hero-founder__sep {
	font-weight: 600;
	color: rgba(26, 27, 58, 0.28);
}

.hero-founder__detail {
	font-family: "Quicksand", sans-serif;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ink-soft);
}

/* Frosted card text inside founder block */
.hero-story {
	margin: 0;
	font-family: "Quicksand", sans-serif;
	font-size: clamp(1.02rem, 2.4vw, 1.15rem);
	line-height: 1.55;
	font-weight: 600;
	color: var(--ink);
	text-align: left;
	background: none;
	border: none;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	max-width: none;
}

.hero-story + .hero-story {
	margin-top: clamp(0.9rem, 2.8vw, 1.2rem);
}

.hero-contact {
	margin: 0;
	max-width: 800px;
	padding: 10px 20px;
	font-family: "Quicksand", sans-serif;
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--ink-soft);
	text-align: center;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(26, 27, 58, 0.08);
	border-radius: 999px;
	box-shadow: 0 8px 24px -12px rgba(26, 27, 58, 0.35);
}

.hero-contact a {
	color: var(--purple);
	font-weight: 700;
	text-decoration: none;
}

.hero-contact a:hover,
.hero-contact a:focus-visible {
	color: var(--pink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.trust-lead {
	font-size: 1.05rem;
	line-height: 1.55;
	margin: 0 0 1.1rem;
	text-align: left;
}

.trust-lead:last-of-type {
	margin-bottom: 0;
}

.trust-lead a {
	color: var(--purple);
	font-weight: 700;
}

.trust-lead a:hover {
	color: var(--pink);
}

.hero__ctas {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	width: min(100%, 32rem);
	margin-top: 8px;
	margin-inline: auto;
}

.hero__ctas .cta {
	justify-content: center;
	text-align: center;
	width: 100%;
}

@media (max-width: 520px) {
	.hero__ctas {
		grid-template-columns: 1fr;
		max-width: 20rem;
	}
}

.cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 22px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 1rem;
	transition:
		box-shadow 120ms ease,
		background 120ms ease,
		border-color 120ms ease;
	border: 0;
}

.cta--primary {
	background: var(--yellow);
	color: var(--ink);
	box-shadow: 0 18px 30px -16px rgba(0, 0, 0, 0.4);
}

.cta--primary:hover {
	background: #ffe97a;
	text-decoration: none;
}

.cta--primary.cta--purple {
	background: var(--purple);
	color: #fff;
	box-shadow: 0 18px 30px -16px rgba(176, 38, 255, 0.45);
}

.cta--primary.cta--purple:hover {
	background: #c44dff;
	text-decoration: none;
}

.cta--ghost {
	background: #fff;
	color: var(--ink);
	border: 1px solid rgba(26, 27, 58, 0.22);
	box-shadow: 0 6px 20px -12px rgba(26, 27, 58, 0.35);
}

.cta--ghost:hover {
	background: var(--page);
	text-decoration: none;
	border-color: rgba(26, 27, 58, 0.35);
}

/* Content sections ------------------------------------------------------ */

.section {
	padding: clamp(60px, 9vw, 100px) 20px;
}

.section--hero-overlap {
	position: relative;
	z-index: 1;
	margin-top: clamp(-80px, -10vw, -140px);
	padding-top: clamp(16px, 3vw, 28px);
}

@media (max-width: 480px) {
	.section--hero-overlap {
		margin-top: clamp(-48px, -6vw, -72px);
	}
}

.section__inner {
	max-width: var(--max-wide);
	margin: 0 auto;
}

.section__inner--narrow {
	max-width: var(--max-content);
}

.section h2 {
	font-family: "Fredoka", "Quicksand", sans-serif;
	font-size: clamp(1.75rem, 3.6vw, 2.4rem);
	line-height: 1.25;
	margin: 0 0 24px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.section h3 {
	font-family: "Fredoka", "Quicksand", sans-serif;
	font-size: 1.25rem;
	margin: 0 0 8px;
	font-weight: 600;
}

.features-intro {
	margin-bottom: clamp(28px, 4vw, 40px);
	overflow: visible;
}

.features-intro__lead {
	font-size: 1.05rem;
	max-width: 32em;
	margin: 0 auto;
}

.features-intro h2 {
	font-family: "Fredoka", "Quicksand", sans-serif;
	font-size: clamp(1.75rem, 3.6vw, 2.4rem);
	line-height: 1.25;
	margin: 0 0 12px;
	padding-top: 0.15em;
	font-weight: 600;
	letter-spacing: -0.01em;
	overflow: visible;
}

.feature-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

a.feature-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	background: var(--card);
	border-radius: var(--radius-lg);
	padding: 0;
	box-shadow: var(--shadow-strong);
	border: 1px solid var(--border);
	position: relative;
	overflow: hidden;
	transition:
		transform 200ms ease,
		box-shadow 200ms ease,
		border-color 200ms ease;
}

a.feature-card:hover,
a.feature-card:focus-visible {
	transform: translateY(-6px);
	box-shadow: 0 28px 64px -28px rgba(26, 27, 58, 0.5);
	border-color: color-mix(in srgb, var(--accent, var(--purple)) 35%, var(--border));
	text-decoration: none;
	outline: none;
}

a.feature-card:focus-visible {
	box-shadow:
		var(--shadow-strong),
		0 0 0 3px var(--page),
		0 0 0 5px var(--accent, var(--purple));
}

a.feature-card::after {
	content: "";
	position: absolute;
	inset: auto -40px -40px auto;
	width: 140px;
	height: 140px;
	border-radius: 50%;
	background: var(--accent, var(--purple));
	opacity: 0.08;
	pointer-events: none;
}

.feature-card__preview {
	position: relative;
	aspect-ratio: 9 / 12;
	max-height: 220px;
	overflow: hidden;
	background: var(--ink);
	border-bottom: 3px solid color-mix(in srgb, var(--accent, var(--purple)) 40%, transparent);
}

.feature-card__preview::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		transparent 35%,
		rgba(255, 255, 255, 0.92) 100%
	);
	pointer-events: none;
}

.feature-card__preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.feature-card__body {
	position: relative;
	z-index: 1;
	margin-top: -28px;
	padding: 0 22px 22px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.feature-card__emoji {
	font-size: 1.5rem;
	display: inline-flex;
	width: 48px;
	height: 48px;
	background: var(--card);
	border: 2px solid var(--border);
	box-shadow: var(--shadow-soft);
	color: var(--accent, var(--purple));
	border-radius: 14px;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.feature-card h3 {
	font-family: "Fredoka", "Quicksand", sans-serif;
	font-size: 1.2rem;
	margin: 0 0 8px;
	font-weight: 600;
	color: var(--ink);
}

.feature-card p {
	margin: 0;
	color: var(--muted);
	font-size: 0.96rem;
	line-height: 1.55;
	flex: 1;
}

.feature-card__cta {
	display: inline-block;
	margin-top: 14px;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--accent, var(--purple));
}

a.feature-card:hover .feature-card__cta,
a.feature-card:focus-visible .feature-card__cta {
	text-decoration: underline;
}

.screenshot-group {
	scroll-margin-top: 88px;
}

/* App screenshots gallery ------------------------------------------------ */

.section--screenshots {
	background: linear-gradient(180deg, #ffffff 0%, var(--page) 100%);
	padding-top: clamp(48px, 7vw, 80px);
}

.screenshots-intro {
	margin-bottom: clamp(36px, 5vw, 56px);
}

.screenshots-intro__lead {
	font-size: 1.08rem;
	max-width: 36em;
	margin: 0 auto;
}

.screenshot-group + .screenshot-group {
	margin-top: clamp(40px, 6vw, 64px);
}

.screenshot-group__title {
	font-family: "Fredoka", "Quicksand", sans-serif;
	font-size: 1.35rem;
	margin: 0 0 6px;
	font-weight: 600;
}

.screenshot-group__desc {
	margin: 0 0 20px;
	font-size: 0.98rem;
}

/* In-page app video demo (WebM screen recording) ------------------------- */

.app-demo-video {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.app-demo-video__phone {
	width: min(100%, 300px);
	border-radius: 28px;
	overflow: hidden;
	background: var(--ink);
	box-shadow: var(--shadow-strong);
	border: 4px solid rgba(26, 27, 58, 0.12);
}

.app-demo-video__player {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
	background: var(--ink);
}

.app-demo-video__caption {
	margin: 0;
	font-size: 0.92rem;
	text-align: center;
	max-width: 36em;
}

.app-demo-video__caption code {
	font-size: 0.88em;
	background: rgba(26, 27, 58, 0.06);
	padding: 2px 6px;
	border-radius: 6px;
}

.video-flow {
	display: grid;
	gap: clamp(24px, 4vw, 36px);
	align-items: start;
}

@media (min-width: 720px) {
	.video-flow {
		grid-template-columns: minmax(160px, 220px) minmax(260px, 1fr);
		gap: 32px 40px;
	}
}

.video-flow__label {
	margin: 0 0 12px;
	font-family: "Fredoka", "Quicksand", sans-serif;
	font-size: 1rem;
	font-weight: 600;
	color: var(--ink);
}

.video-flow__step .screenshot-grid {
	margin: 0;
}

.screenshot-grid {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

@media (min-width: 640px) {
	.screenshot-grid {
		grid-template-columns: repeat(auto-fill, minmax(180px, 220px));
		justify-content: start;
	}
}

/* My Gallery and Videos: four steps in one row when there's room */
.screenshot-grid--four-across {
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

@media (min-width: 720px) {
	.screenshot-grid--four-across {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.gallery-playback-reveal {
	scroll-margin-top: 96px;
	margin-top: clamp(20px, 3vw, 28px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.gallery-playback-reveal[hidden] {
	display: none;
}

.gallery-playback-reveal .app-demo-video__player {
	display: block;
	width: min(100%, 300px);
	height: auto;
	border-radius: 28px;
	background: var(--ink);
	box-shadow: var(--shadow-strong);
	border: 4px solid rgba(26, 27, 58, 0.12);
}

.gallery-playback-reveal__error {
	margin: 12px 0 0;
	max-width: 36em;
	font-size: 0.92rem;
	text-align: center;
	color: #b42318;
}

.gallery-playback-reveal__error code {
	font-size: 0.88em;
	background: rgba(26, 27, 58, 0.06);
	padding: 2px 6px;
	border-radius: 6px;
}

.screenshot-thumb {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	width: 100%;
	padding: 0;
	border: none;
	background: none;
	font: inherit;
	color: inherit;
	cursor: pointer;
	text-align: left;
	border-radius: var(--radius-md);
	transition:
		transform 180ms ease,
		box-shadow 180ms ease;
}

.screenshot-thumb:hover,
.screenshot-thumb:focus-visible {
	transform: translateY(-4px);
	outline: none;
}

.screenshot-thumb:focus-visible .screenshot-thumb__frame {
	box-shadow:
		var(--shadow-strong),
		0 0 0 3px var(--page),
		0 0 0 5px var(--purple);
}

.screenshot-thumb__frame {
	display: block;
	border-radius: 22px;
	overflow: hidden;
	background: var(--ink);
	box-shadow: var(--shadow-strong);
	border: 3px solid rgba(26, 27, 58, 0.12);
	aspect-ratio: 9 / 19.5;
}

.screenshot-thumb__frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.screenshot-thumb__label {
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--ink-soft);
	padding: 0 4px;
}

.screenshot-thumb:hover .screenshot-thumb__label,
.screenshot-thumb:focus-visible .screenshot-thumb__label {
	color: var(--purple);
}

/* Lightbox -------------------------------------------------------------- */

.screenshot-lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: safe center;
	padding: clamp(16px, 4vw, 32px);
	background: rgba(26, 27, 58, 0.82);
	backdrop-filter: blur(6px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

.screenshot-lightbox[hidden] {
	display: none;
}

body.screenshot-lightbox-open {
	overflow: hidden;
}

.screenshot-lightbox__dialog {
	position: relative;
	width: min(100%, 420px);
	max-height: calc(100dvh - clamp(32px, 8vw, 48px));
	margin: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	outline: none;
	flex-shrink: 0;
}

.screenshot-lightbox__close {
	position: absolute;
	top: -8px;
	right: -4px;
	z-index: 2;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: #fff;
	color: var(--ink);
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: var(--shadow-soft);
}

.screenshot-lightbox__close:hover,
.screenshot-lightbox__close:focus-visible {
	background: var(--page);
}

.screenshot-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	color: var(--ink);
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: var(--shadow-soft);
}

.screenshot-lightbox__nav[hidden] {
	display: none;
}

.screenshot-lightbox__nav--prev {
	left: -12px;
}

.screenshot-lightbox__nav--next {
	right: -12px;
}

@media (max-width: 480px) {
	.screenshot-lightbox {
		padding: 12px;
	}

	.screenshot-lightbox__dialog,
	.screenshot-lightbox__figure {
		max-height: calc(100dvh - 24px);
	}

	.screenshot-lightbox__phone {
		max-height: min(56dvh, calc(100dvh - 200px));
	}

	.screenshot-lightbox__figure:has(
			.screenshot-lightbox__action:not([hidden])
		)
		.screenshot-lightbox__phone {
		max-height: min(46dvh, calc(100dvh - 280px));
	}

	.screenshot-lightbox__caption {
		font-size: 0.92rem;
		line-height: 1.45;
	}

	.screenshot-lightbox__action {
		margin-top: 12px;
	}

	.screenshot-lightbox__nav--prev {
		left: 4px;
	}
	.screenshot-lightbox__nav--next {
		right: 4px;
	}
}

.screenshot-lightbox__nav:hover,
.screenshot-lightbox__nav:focus-visible {
	background: #fff;
}

.screenshot-lightbox__figure {
	margin: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 16px;
	flex: 1 1 auto;
	min-height: 0;
	max-height: calc(100dvh - clamp(32px, 8vw, 48px));
}

.screenshot-lightbox__phone {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	border-radius: 28px;
	overflow: hidden;
	background: var(--ink);
	box-shadow: var(--shadow-strong);
	border: 4px solid rgba(255, 255, 255, 0.15);
	max-height: min(72dvh, 780px);
}

.screenshot-lightbox__img {
	width: 100%;
	height: auto;
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
	object-position: top center;
	display: block;
}

/* Reserve space for caption + video CTA on short viewports */
.screenshot-lightbox__figure:has(
		.screenshot-lightbox__action:not([hidden])
	)
	.screenshot-lightbox__phone {
	max-height: min(58dvh, calc(100dvh - 260px));
}

.screenshot-lightbox__meta {
	flex-shrink: 0;
	text-align: center;
	color: #fff;
	padding: 0 8px;
}

.screenshot-lightbox__category {
	display: block;
	font-family: "Fredoka", "Quicksand", sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--cyan);
	margin-bottom: 4px;
}

.screenshot-lightbox__counter {
	display: block;
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 8px;
}

.screenshot-lightbox__counter:empty {
	display: none;
}

.screenshot-lightbox__caption {
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.92);
	max-width: 36em;
	margin-inline: auto;
}

.screenshot-lightbox__action {
	margin: 16px 0 0;
	text-align: center;
}

.screenshot-lightbox__action .cta {
	display: inline-block;
	font-size: 0.95rem;
	padding: 12px 22px;
}

.screenshot-lightbox__video-link {
	color: #fff;
	text-decoration: none;
}

.screenshot-lightbox__video-link:hover,
.screenshot-lightbox__video-link:focus-visible {
	text-decoration: none;
	color: #fff;
}

/* Long-form article cards (privacy / terms / support) ------------------- */

.article-card {
	background: var(--card);
	border-radius: var(--radius-lg);
	padding: clamp(32px, 5vw, 56px);
	box-shadow: var(--shadow-strong);
	border: 1px solid var(--border);
}

.article-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: baseline;
	margin-bottom: 24px;
	font-size: 0.92rem;
	color: var(--muted);
}

.article-card__meta strong {
	color: var(--ink);
}

.article h1 {
	font-family: "Fredoka", "Quicksand", sans-serif;
	font-size: clamp(2rem, 4.4vw, 2.8rem);
	margin: 0 0 8px;
	font-weight: 600;
	color: var(--ink);
}

.article h2 {
	font-family: "Fredoka", "Quicksand", sans-serif;
	font-size: 1.4rem;
	margin: 32px 0 12px;
	color: var(--ink);
	font-weight: 600;
}

.article h3 {
	font-family: "Fredoka", "Quicksand", sans-serif;
	font-size: 1.1rem;
	margin: 24px 0 6px;
	color: var(--ink);
	font-weight: 600;
}

.article p,
.article li {
	color: var(--ink-soft);
}

.article ul,
.article ol {
	padding-left: 22px;
}

.article ul li,
.article ol li {
	margin-bottom: 6px;
}

/* Callout boxes used at the top of legal pages for the "this is a
   working draft" note while content is still being reviewed. */
.callout {
	background: rgba(255, 217, 61, 0.18);
	border-left: 4px solid var(--yellow);
	padding: 14px 18px;
	border-radius: var(--radius-sm);
	margin: 0 0 24px;
	font-size: 0.95rem;
	color: var(--ink-soft);
}

.callout strong {
	color: var(--ink);
}

/* Support FAQ ----------------------------------------------------------- */

.faq {
	display: grid;
	gap: 14px;
}

.faq details {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 4px 22px;
	box-shadow: var(--shadow-soft);
}

.faq summary {
	cursor: pointer;
	font-weight: 600;
	padding: 16px 0;
	font-size: 1.02rem;
	color: var(--ink);
	list-style: none;
	display: flex;
	align-items: center;
	gap: 12px;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	content: "+";
	margin-left: auto;
	font-size: 1.4rem;
	color: var(--muted);
	transition: transform 200ms ease;
}

.faq details[open] summary::after {
	content: "−";
	color: var(--purple);
}

.faq details > *:not(summary) {
	margin: 0 0 16px;
	color: var(--ink-soft);
}

/* Credits page — amber star + count (matches mobile home / gallery) */

.credit-star {
	display: inline-block;
	width: 1.35em;
	height: 1.35em;
	flex-shrink: 0;
	background-color: #ffc107;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E")
		center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E")
		center / contain no-repeat;
}

.credit-stars {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	border-radius: 999px;
	background: linear-gradient(135deg, #1a1b3a 0%, #2d2f5a 100%);
	box-shadow: var(--shadow-soft);
}

.credit-stars--inline {
	padding: 4px 10px;
	vertical-align: middle;
}

.credit-stars__count {
	font-family: "Fredoka", "Quicksand", sans-serif;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1;
	color: #fff;
}

.credit-cost-grid {
	list-style: none;
	padding: 0;
	margin: 20px 0 12px;
	display: grid;
	gap: 16px;
}

@media (min-width: 600px) {
	.credit-cost-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.credit-cost-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px 22px;
	background: var(--page);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-soft);
}

.credit-cost-card__head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.credit-cost-card__head h3 {
	margin: 0;
	font-family: "Fredoka", "Quicksand", sans-serif;
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--ink);
}

.credit-cost-card__emoji {
	font-size: 1.6rem;
	line-height: 1;
}

.credit-cost-card p {
	margin: 0;
	font-size: 0.95rem;
	color: var(--ink-soft);
	flex: 1;
}

.credit-cost-card .credit-stars {
	align-self: flex-start;
	margin-top: 4px;
}

.credit-cost-note {
	margin: 0 0 8px;
	font-size: 0.92rem;
}

.contact-card {
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr;
	background: linear-gradient(135deg, var(--purple), var(--pink));
	color: #fff;
	border-radius: var(--radius-lg);
	padding: 32px;
	box-shadow: var(--shadow-strong);
	margin: 28px 0 0;
}

.contact-card h3 {
	margin: 0;
	color: #fff;
	font-size: 1.3rem;
}

.contact-card a {
	color: #fff;
	text-decoration: underline;
}

.contact-card p {
	margin: 0;
	color: rgba(255, 255, 255, 0.95);
}

/* Footer ---------------------------------------------------------------- */

.site-footer {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.78);
	padding: 48px 20px 32px;
}

.site-footer__inner {
	max-width: var(--max-wide);
	margin: 0 auto;
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.site-footer h4 {
	color: #fff;
	font-family: "Fredoka", "Quicksand", sans-serif;
	margin: 0 0 12px;
	font-size: 1rem;
	font-weight: 600;
}

.site-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 8px;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.82);
	font-weight: 500;
}

.site-footer a:hover {
	color: #fff;
}

.site-footer__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

.site-footer__brand img {
	width: 40px;
	height: 40px;
	border-radius: 10px;
}

.site-footer__legal {
	grid-column: 1 / -1;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.55);
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	justify-content: space-between;
}

/* Decorative sparkle layer overlaid on hero (CSS-only, no extra assets). */
.hero__sparkles {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(2px 2px at 12% 22%, #fff 50%, transparent 51%),
		radial-gradient(2px 2px at 78% 14%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 30% 80%, #fff 50%, transparent 51%),
		radial-gradient(2.5px 2.5px at 90% 68%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 58% 38%, #fff 50%, transparent 51%),
		radial-gradient(2px 2px at 22% 64%, #fff 50%, transparent 51%);
	opacity: 0.5;
	mix-blend-mode: screen;
}

/* Utility -------------------------------------------------------------- */

.text-center {
	text-align: center;
}

.muted {
	color: var(--muted);
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
