/*
 * Tokens from the Figma "Semantic" collection, Neutral mode, the same values
 * the app ships in mobile/global.css. muted-foreground is #666666 like the app
 * (Figma #737373 is 4.35:1 on the #f5f5f5 surfaces).
 */
@font-face {
	font-family: "Nunito";
	src: url("/fonts/nunito.woff2") format("woff2");
	font-weight: 200 1000;
	font-display: swap;
}

@font-face {
	font-family: "Bricolage Grotesque";
	src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
}

:root {
	--background: #ffffff;
	--foreground: #0a0a0a;
	--primary: #171717;
	--primary-foreground: #fafafa;
	--secondary: #f5f5f5;
	--muted-foreground: #666666;
	--border: #e5e5e5;
	--ring: #8f8f8f;
	--hero: #f5f5f5;
	--success: #dcfce7;
	--success-foreground: #166534;

	--radius-lg: 12px;
	--radius-2xl: 16px;
	--radius-3xl: 24px;

	--font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-heading: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--gutter: 20px;
	--section-y: 64px;

	color-scheme: light;
}

@media (min-width: 768px) {
	:root {
		--gutter: 40px;
		--section-y: 96px;
	}
}

@media (min-width: 1200px) {
	:root {
		--gutter: 120px;
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--background);
	color: var(--foreground);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 24px;
	-webkit-font-smoothing: antialiased;
}

img,
svg {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
}

h1,
h2,
h3,
p,
ul {
	margin: 0;
}

h1,
h2,
h3 {
	font-family: var(--font-heading);
	text-wrap: balance;
}

:focus-visible {
	outline: 2px solid var(--ring);
	outline-offset: 2px;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -48px;
	z-index: 20;
	padding: 8px 12px;
	border-radius: var(--radius-lg);
	background: var(--primary);
	color: var(--primary-foreground);
	font-weight: 700;
	text-decoration: none;
}

.skip-link:focus {
	top: 12px;
}

.container {
	width: 100%;
	max-width: calc(1200px + 2 * var(--gutter));
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* Type */

.display {
	font-size: clamp(40px, 4vw + 12px, 64px);
	line-height: 1.07;
	font-weight: 800;
	letter-spacing: -0.03em;
	overflow-wrap: break-word;
}

.title {
	font-size: clamp(36px, 2vw + 24px, 48px);
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.section-title {
	font-size: clamp(30px, 1.5vw + 22px, 40px);
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.heading {
	font-size: 20px;
	line-height: 26px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.lead {
	font-size: 18px;
	line-height: 28px;
	color: var(--muted-foreground);
}

@media (min-width: 768px) {
	.lead {
		font-size: 20px;
		line-height: 30px;
	}
}

.muted {
	color: var(--muted-foreground);
}

.caption {
	font-size: 14px;
	line-height: 20px;
	color: var(--muted-foreground);
}

.pill {
	display: inline-flex;
	align-self: flex-start;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--secondary);
	font-size: 12px;
	line-height: 16px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pill-success {
	background: var(--success);
	color: var(--success-foreground);
}

/* Controls */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 20px;
	border: 1px solid transparent;
	border-radius: var(--radius-lg);
	font-size: 16px;
	line-height: 24px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 150ms ease, border-color 150ms ease;
}

.button-primary {
	background: var(--primary);
	color: var(--primary-foreground);
}

.button-primary:hover {
	background: #2e2e2e;
}

.button-outline {
	border-color: var(--border);
	background: var(--background);
}

.button-outline:hover {
	background: var(--secondary);
}

.icon {
	width: 24px;
	height: 24px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.icon-sm {
	width: 20px;
	height: 20px;
}

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

.store-badges a {
	display: block;
	border-radius: 8px;
}

.store-badges img {
	height: 48px;
	width: auto;
}

.coming-soon {
	font-weight: 700;
}

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--background);
	border-bottom: 1px solid var(--border);
}

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

@media (min-width: 768px) {
	.site-header .container {
		height: 72px;
	}
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-heading);
	font-size: 22px;
	line-height: 28px;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-decoration: none;
}

.logo img {
	width: 40px;
	height: 40px;
	border-radius: 10px;
}

.nav {
	display: none;
	align-items: center;
	gap: 8px;
}

.nav-link {
	padding: 8px 12px;
	border-radius: var(--radius-lg);
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	text-decoration: none;
}

.nav-link:hover {
	background: var(--secondary);
}

.menu {
	position: relative;
}

.menu summary {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--radius-lg);
	cursor: pointer;
	list-style: none;
}

.menu summary::-webkit-details-marker {
	display: none;
}

.menu-panel {
	position: absolute;
	right: 0;
	top: 52px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 220px;
	padding: 8px;
	border: 1px solid var(--border);
	border-radius: var(--radius-2xl);
	background: var(--background);
	box-shadow: 0 8px 24px rgb(10 10 10 / 8%);
}

.menu-panel .nav-link {
	padding: 12px;
	font-size: 16px;
}

@media (min-width: 768px) {
	.nav {
		display: flex;
	}

	.menu {
		display: none;
	}
}

/* Sections */

.section {
	padding: var(--section-y) 0;
}

.section-alt {
	background: var(--hero);
}

.section-head {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 860px;
	margin: 0 auto 32px;
}

.section-head .lead {
	max-width: 720px;
}

@media (min-width: 768px) {
	.section-head {
		align-items: center;
		gap: 16px;
		margin-bottom: 48px;
		text-align: center;
	}

	.section-head .pill {
		align-self: center;
	}
}

/* Home: hero */

.hero {
	padding: 40px 0 48px;
}

.hero .container {
	display: grid;
	gap: 32px;
	align-items: center;
}

.hero-copy {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.hero-cta {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 8px;
}

.device-panel {
	display: flex;
	justify-content: center;
	height: 420px;
	padding-top: 40px;
	overflow: hidden;
	border-radius: var(--radius-3xl);
	background: var(--hero);
}

.device-panel img {
	width: 240px;
	height: auto;
	align-self: flex-start;
}

@media (min-width: 1100px) {
	.hero {
		padding: 80px 0 96px;
	}

	.hero .container {
		grid-template-columns: minmax(0, 1fr) 520px;
		gap: 64px;
	}

	.hero-copy {
		gap: 24px;
	}

	.device-panel {
		height: 640px;
		padding-top: 56px;
	}

	.device-panel img {
		width: 300px;
	}
}

/* Home: steps, features, pricing */

.grid {
	display: grid;
	gap: 16px;
}

@media (min-width: 768px) {
	.grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
}

@media (min-width: 1100px) {
	.grid-3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

.steps {
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.step {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.step-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: var(--primary);
	color: var(--primary-foreground);
	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: 700;
}

.card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	border: 1px solid var(--border);
	border-radius: var(--radius-3xl);
	background: var(--background);
}

.card-copy {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.icon-tile {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: var(--radius-2xl);
	background: var(--secondary);
}

.plans {
	display: grid;
	gap: 20px;
	max-width: 560px;
	margin: 0 auto;
}

@media (min-width: 960px) {
	.plans {
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
		max-width: none;
	}
}

.plan {
	gap: 24px;
	padding: 24px;
}

@media (min-width: 768px) {
	.plan {
		padding: 32px;
	}
}

.plan-featured {
	border-color: var(--primary);
	box-shadow: 0 0 0 1px var(--primary);
}

.plan-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 24px;
	line-height: 32px;
}

.price {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.price strong {
	font-family: var(--font-heading);
	font-size: clamp(40px, 2vw + 28px, 48px);
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.plan hr {
	width: 100%;
	margin: 0;
	border: 0;
	border-top: 1px solid var(--border);
}

.checklist {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 0;
	list-style: none;
}

.checklist li {
	display: flex;
	gap: 12px;
}

.checklist .icon {
	margin-top: 2px;
}

.pricing-note {
	max-width: 560px;
	margin: 32px auto 0;
}

@media (min-width: 768px) {
	.pricing-note {
		text-align: center;
	}
}

.cta {
	padding: 0 0 var(--section-y);
}

.cta-panel {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 32px 24px;
	border-radius: var(--radius-3xl);
	background: var(--hero);
}

.cta-copy {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 620px;
}

@media (min-width: 960px) {
	.cta-panel {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding: 64px;
	}
}

/* Footer */

.site-footer {
	padding: 48px 0 40px;
	border-top: 1px solid var(--border);
}

.footer-top {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.footer-brand {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 360px;
}

.footer-email {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.footer-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 180px));
	gap: 16px 48px;
}

.footer-columns h2 {
	margin-bottom: 12px;
	font-family: var(--font-body);
	font-size: 12px;
	line-height: 16px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted-foreground);
}

.footer-columns ul {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 0;
	list-style: none;
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
}

.footer-columns a,
.prose a,
.faq a {
	text-underline-offset: 3px;
}

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

.footer-columns a:hover,
.footer-email:hover {
	text-decoration: underline;
}

.footer-bottom {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
	.site-footer {
		padding: 64px 0 48px;
	}

	.footer-top {
		flex-direction: row;
		justify-content: space-between;
	}

	.footer-bottom {
		flex-direction: row;
		justify-content: space-between;
		margin-top: 48px;
	}
}

/* Inner pages */

.page-title {
	padding: 40px 0 32px;
	border-bottom: 1px solid var(--border);
}

.page-title .container {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.page-title-plain {
	border-bottom: 0;
}

@media (min-width: 768px) {
	.page-title {
		padding: 80px 0 48px;
	}

	.page-title .container {
		gap: 16px;
	}
}

.legal {
	display: grid;
	gap: 32px;
	padding-top: 32px;
	padding-bottom: 48px;
}

.toc {
	display: none;
}

@media (min-width: 1100px) {
	.legal {
		grid-template-columns: 240px minmax(0, 720px);
		gap: 96px;
		padding-top: 64px;
		padding-bottom: 96px;
	}

	.toc {
		position: sticky;
		top: 104px;
		display: flex;
		flex-direction: column;
		gap: 12px;
		align-self: start;
	}

	.toc h2 {
		font-family: var(--font-body);
		font-size: 12px;
		line-height: 16px;
		font-weight: 800;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		color: var(--muted-foreground);
	}

	.toc ol {
		display: flex;
		flex-direction: column;
		gap: 12px;
		margin: 0;
		padding: 0;
		list-style: none;
		font-size: 14px;
		line-height: 20px;
		font-weight: 600;
	}

	.toc a {
		color: var(--muted-foreground);
		text-decoration: none;
	}

	.toc a:hover {
		color: var(--foreground);
	}
}

.prose {
	display: flex;
	flex-direction: column;
	gap: 32px;
	max-width: 720px;
}

@media (min-width: 768px) {
	.prose {
		gap: 40px;
	}
}

.prose-intro {
	font-size: 18px;
	line-height: 28px;
}

@media (min-width: 768px) {
	.prose-intro {
		font-size: 20px;
		line-height: 30px;
	}
}

.prose section {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.prose h2 {
	font-size: 24px;
	line-height: 32px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.prose ul {
	padding-left: 20px;
}

.prose li + li {
	margin-top: 4px;
}

.note-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 24px;
	border-radius: var(--radius-3xl);
	background: var(--hero);
}

/* Support */

.support {
	display: grid;
	gap: 48px;
	padding-bottom: var(--section-y);
}

@media (min-width: 1000px) {
	.support {
		grid-template-columns: minmax(0, 1fr) 360px;
		gap: 64px;
	}
}

.faq-title {
	font-size: 24px;
	line-height: 32px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.faq details {
	border-bottom: 1px solid var(--border);
}

.faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 0;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary .icon {
	transition: transform 150ms ease;
}

.faq details[open] summary .icon {
	transform: rotate(180deg);
}

.faq details p {
	margin-top: -12px;
	padding-bottom: 20px;
	color: var(--muted-foreground);
}

.support-side {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.contact-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	border-radius: var(--radius-3xl);
	background: var(--primary);
	color: var(--primary-foreground);
}

.contact-card .eyebrow {
	font-size: 12px;
	line-height: 16px;
	font-weight: 800;
	letter-spacing: 0.04em;
	opacity: 0.7;
}

.contact-card a {
	font-family: var(--font-heading);
	font-size: 22px;
	line-height: 28px;
	font-weight: 700;
	letter-spacing: -0.02em;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.contact-card a:hover {
	text-decoration: underline;
}

.contact-card p {
	opacity: 0.8;
}

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

/* 404 */

.not-found {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	min-height: calc(100vh - 72px);
	padding: 48px var(--gutter);
	text-align: center;
}

.not-found img {
	width: 200px;
	height: 200px;
}

.not-found .copy {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 480px;
}

.not-found .actions {
	justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
	}
}
