/* Shared styles for every app's site. Brand colours come from
   /shared/<brand>/theme.css, which each page loads after this file. */

@font-face {
	font-family: "Exo 2";
	src: url("/shared/fonts/exo2-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

:root {
	color-scheme: dark;
	--bg: #061114;
	--bg-raised: #0d1c20;
	--line: rgba(255, 255, 255, 0.09);
	--text: #f4f6f5;
	--text-muted: #a3b1b0;
	--accent: #3ddc84;
	--accent-ink: #052012;
	--ray: rgba(255, 255, 255, 0.07);
	--radius: 22px;
	--display: "Exo 2", ui-sans-serif, system-ui, sans-serif;
	--body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--gutter: clamp(16px, 4vw, 40px);
	--max: 1120px;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 17px/1.6 var(--body);
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
}

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

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

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}

.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	font: 800 21px/1 var(--display);
	letter-spacing: -0.01em;
}

.brand img {
	width: 34px;
	height: 34px;
	border-radius: 9px;
	border: 1px solid rgba(255, 255, 255, 0.18);
}

.site-nav {
	display: flex;
	gap: clamp(14px, 3vw, 28px);
	font-size: 15px;
}

.site-nav a {
	text-decoration: none;
	color: var(--text-muted);
}

.site-nav a:hover {
	color: var(--text);
}

/* Hero */

.hero {
	position: relative;
	overflow: hidden;
	padding: clamp(36px, 6vw, 64px) 0 clamp(48px, 7vw, 80px);
}

.hero::before {
	/* Light rays, the same motif as the store screenshots. */
	content: "";
	position: absolute;
	inset: -40% -20%;
	background: repeating-conic-gradient(from 8deg at 72% 46%, var(--ray) 0deg 7deg, transparent 7deg 22deg);
	mask-image: radial-gradient(ellipse 60% 55% at 72% 46%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 60% 55% at 72% 46%, #000 20%, transparent 75%);
	pointer-events: none;
}

.hero .wrap {
	position: relative;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	align-items: center;
	gap: clamp(32px, 6vw, 72px);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	padding: 6px 12px 6px 10px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--bg-raised);
	color: var(--text-muted);
	font-size: 14px;
}

.eyebrow::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

h1,
h2,
h3 {
	font-family: var(--display);
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin: 0;
	text-wrap: balance;
}

h1 {
	font-size: clamp(42px, 6.4vw, 72px);
	font-weight: 800;
}

h1 em {
	font-style: normal;
	color: var(--accent);
	white-space: nowrap;
}

.lede {
	margin: 22px 0 32px;
	max-width: 34ch;
	font-size: clamp(18px, 2vw, 21px);
	color: var(--text-muted);
	text-wrap: pretty;
}

.badges {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.badges a {
	display: block;
	border-radius: 9px;
	transition: transform 0.15s ease;
}

.badges a:hover {
	transform: translateY(-2px);
}

.badges img {
	height: 54px;
	width: auto;
}

.hero-shot {
	justify-self: center;
	width: min(100%, 300px);
	transform: rotate(2.5deg);
}

.hero-shot img {
	border-radius: 28px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line);
}

/* Sections */

.section {
	padding: clamp(56px, 9vw, 104px) 0;
	border-top: 1px solid var(--line);
}

.section-head {
	max-width: 640px;
	margin-bottom: clamp(28px, 5vw, 48px);
}

.section-head h2 {
	font-size: clamp(32px, 4.6vw, 48px);
	font-weight: 800;
}

.section-head p {
	margin: 14px 0 0;
	color: var(--text-muted);
	font-size: 18px;
}

.features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.feature {
	padding: 26px 24px 24px;
	background: var(--bg-raised);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.feature img {
	width: 52px;
	height: 52px;
	margin-bottom: 18px;
}

.feature h3 {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 8px;
}

.feature p {
	margin: 0;
	color: var(--text-muted);
	font-size: 16px;
}

.screens {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 4px var(--gutter) 20px;
	margin: 0 calc(var(--gutter) * -1);
	scrollbar-width: thin;
}

.screens img {
	flex: 0 0 auto;
	width: clamp(200px, 26vw, 260px);
	border-radius: 20px;
	scroll-snap-align: start;
	border: 1px solid var(--line);
}

.cta {
	text-align: center;
}

.cta .section-head {
	margin-left: auto;
	margin-right: auto;
}

.cta .badges {
	justify-content: center;
}

/* Footer */

.site-footer {
	border-top: 1px solid var(--line);
	padding: 32px 0 40px;
	color: var(--text-muted);
	font-size: 14px;
}

.site-footer .wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
	justify-content: space-between;
}

.site-footer nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
}

.site-footer a {
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--text);
}

/* Legal pages */

.doc {
	max-width: 760px;
	padding-top: clamp(40px, 7vw, 72px);
	padding-bottom: clamp(56px, 9vw, 96px);
}

.doc h1 {
	font-size: clamp(36px, 6vw, 56px);
}

.doc .updated {
	margin: 12px 0 36px;
	color: var(--text-muted);
	font-size: 15px;
}

.doc h2 {
	font-size: 26px;
	font-weight: 700;
	margin: 44px 0 12px;
}

.doc h3 {
	font-size: 19px;
	font-weight: 700;
	margin: 28px 0 8px;
}

.doc p,
.doc li {
	color: #d5dddc;
}

.doc ul {
	padding-left: 22px;
}

.doc li {
	margin: 8px 0;
}

.doc li strong {
	color: var(--text);
}

.doc a {
	color: var(--accent);
}

/* 404 */

.not-found {
	min-height: 60vh;
	display: grid;
	place-content: center;
	text-align: center;
	gap: 18px;
}

.not-found p {
	color: var(--text-muted);
	margin: 0;
}

.button {
	justify-self: center;
	display: inline-block;
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--accent);
	color: var(--accent-ink);
	font-weight: 700;
	text-decoration: none;
}

@media (max-width: 860px) {
	.hero .wrap {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.hero::before {
		background: repeating-conic-gradient(from 8deg at 50% 72%, var(--ray) 0deg 7deg, transparent 7deg 22deg);
		mask-image: radial-gradient(ellipse 80% 45% at 50% 72%, #000 20%, transparent 75%);
		-webkit-mask-image: radial-gradient(ellipse 80% 45% at 50% 72%, #000 20%, transparent 75%);
	}

	.lede {
		margin-left: auto;
		margin-right: auto;
	}

	.badges {
		justify-content: center;
	}

	.hero-shot {
		width: min(78%, 320px);
	}

	.features {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	.site-nav a:not(:last-child) {
		display: none;
	}

	.features {
		grid-template-columns: 1fr;
	}

	.badges img {
		height: 48px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.badges a {
		transition: none;
	}
}
