/*
 * TalkTab site. Colours follow apps/mobile/src/core/design/theme.ts (cool, periwinkle-tinted neutrals, a soft
 * indigo brand, mint / clay money inks), Nunito everywhere, Chewy only for the three capture words.
 *
 * Theme: light by default; dark follows the system unless the header toggle saved a choice (theme.js sets
 * data-theme on <html>). The dark tokens are listed twice for that reason — once for the system, once for
 * the toggle.
 */

:root {
	--bg: #f5f7fc;
	--bg-2: #eef2f8;
	--card: #ffffff;
	--well: #e8edf6;
	--ink: #1a2340;
	--ink-2: #3f4770;
	--ink-3: #5a6290;
	--line: #dfe5f2;
	--line-2: #c7d1e8;
	--primary: #5b7cfa;
	--primary-ink: #3b55c9;
	--primary-tint: #e3eafe;
	--ai: #7c6cf0;
	--ai-ink: #5b48d9;
	--ai-tint: #efedfd;
	--income-ink: #0b7355;
	--income-tint: #dff3eb;
	--expense-ink: #9a3b26;
	--expense-tint: #fae8e2;
	--audio: #f4404e;
	--audio-tint: #fde6e8;
	--camera: #2790be;
	--camera-ink: #1c6e93;
	--camera-tint: #def0f7;
	--button: #3b55c9;
	--button-ink: #ffffff;
	--button-hover: #3249b3;
	--store: #121a33;
	--store-ink: #ffffff;
	--glass: rgba(255, 255, 255, 0.78);
	--glass-line: rgba(255, 255, 255, 0.9);
	--shadow-sm: 0 1px 2px rgba(43, 58, 122, 0.06), 0 4px 12px -4px rgba(43, 58, 122, 0.1);
	--shadow: 0 1px 2px rgba(43, 58, 122, 0.06), 0 16px 40px -16px rgba(43, 58, 122, 0.24);
	--glow-1: rgba(91, 124, 250, 0.22);
	--glow-2: rgba(124, 108, 240, 0.16);
	--grid: rgba(59, 85, 201, 0.07);
	/* Device: natural titanium */
	--rim: linear-gradient(135deg, #f4f5f7 0%, #b8bcc4 16%, #eceef1 34%, #a3a8b0 58%, #d8dbe0 80%, #f6f7f8 100%);
	--rim-key: #b3b8c0;
	--device-shadow: 0 2cqw 4cqw rgba(26, 35, 64, 0.12), 0 14cqw 28cqw -8cqw rgba(26, 35, 64, 0.38);
	--radius: 22px;
	--radius-lg: 32px;
	--gutter: 16px;
	--max: 1180px;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0b0f1a;
		--bg-2: #0e1320;
		--card: #141b2b;
		--well: #1c2538;
		--ink: #eef1fb;
		--ink-2: #a6aecb;
		--ink-3: #8790b5;
		--line: #1e2740;
		--line-2: #2d3558;
		--primary: #8098ff;
		--primary-ink: #93a8ff;
		--primary-tint: #1f2848;
		--ai: #a78bff;
		--ai-ink: #b49dff;
		--ai-tint: #272849;
		--income-ink: #5fdcab;
		--income-tint: #12302a;
		--expense-ink: #f3b4a0;
		--expense-tint: #36211c;
		--audio: #ff6161;
		--audio-tint: #3a1d24;
		--camera: #3fb6d6;
		--camera-ink: #6ccbe4;
		--camera-tint: #13303b;
		--button: #8098ff;
		--button-ink: #0b0f1a;
		--button-hover: #98abff;
		--store: #eef1fb;
		--store-ink: #0b0f1a;
		--glass: rgba(20, 27, 43, 0.78);
		--glass-line: rgba(255, 255, 255, 0.08);
		--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px -4px rgba(0, 0, 0, 0.5);
		--shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
		--glow-1: rgba(128, 152, 255, 0.2);
		--glow-2: rgba(167, 139, 255, 0.14);
		--grid: rgba(147, 168, 255, 0.06);
		--rim: linear-gradient(135deg, #5b6378 0%, #2a3142 18%, #4a5266 38%, #1f2533 62%, #3d4558 82%, #646d84 100%);
		--rim-key: #3a4256;
		--device-shadow: 0 2cqw 4cqw rgba(0, 0, 0, 0.35), 0 14cqw 28cqw -8cqw rgba(0, 0, 0, 0.75);
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--bg: #0b0f1a;
	--bg-2: #0e1320;
	--card: #141b2b;
	--well: #1c2538;
	--ink: #eef1fb;
	--ink-2: #a6aecb;
	--ink-3: #8790b5;
	--line: #1e2740;
	--line-2: #2d3558;
	--primary: #8098ff;
	--primary-ink: #93a8ff;
	--primary-tint: #1f2848;
	--ai: #a78bff;
	--ai-ink: #b49dff;
	--ai-tint: #272849;
	--income-ink: #5fdcab;
	--income-tint: #12302a;
	--expense-ink: #f3b4a0;
	--expense-tint: #36211c;
	--audio: #ff6161;
	--audio-tint: #3a1d24;
	--camera: #3fb6d6;
	--camera-ink: #6ccbe4;
	--camera-tint: #13303b;
	--button: #8098ff;
	--button-ink: #0b0f1a;
	--button-hover: #98abff;
	--store: #eef1fb;
	--store-ink: #0b0f1a;
	--glass: rgba(20, 27, 43, 0.78);
	--glass-line: rgba(255, 255, 255, 0.08);
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px -4px rgba(0, 0, 0, 0.5);
	--shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
	--glow-1: rgba(128, 152, 255, 0.2);
	--glow-2: rgba(167, 139, 255, 0.14);
	--grid: rgba(147, 168, 255, 0.06);
	--rim: linear-gradient(135deg, #5b6378 0%, #2a3142 18%, #4a5266 38%, #1f2533 62%, #3d4558 82%, #646d84 100%);
	--rim-key: #3a4256;
	--device-shadow: 0 2cqw 4cqw rgba(0, 0, 0, 0.35), 0 14cqw 28cqw -8cqw rgba(0, 0, 0, 0.75);
	color-scheme: dark;
}

@media (min-width: 720px) {
	:root {
		--gutter: 32px;
	}
}

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

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: "Nunito", ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-weight: 500;
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

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

a {
	color: var(--primary-ink);
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

a:hover {
	text-decoration-thickness: 2px;
}

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

strong,
b {
	font-weight: 700;
}

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

.skip {
	position: absolute;
	left: -9999px;
}

.skip:focus {
	left: 16px;
	top: 12px;
	z-index: 100;
	background: var(--card);
	padding: 8px 14px;
	border-radius: 10px;
}

/* ================= Header ================= */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--bg) 80%, transparent);
	backdrop-filter: saturate(1.5) blur(18px);
	-webkit-backdrop-filter: saturate(1.5) blur(18px);
	box-shadow: 0 1px 0 transparent;
	transition: box-shadow 200ms ease-out;
}

.site-header.is-scrolled {
	box-shadow: 0 1px 0 var(--line);
}

.site-header .wrap {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 68px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	text-decoration: none;
	font-weight: 800;
	font-size: 1.2rem;
	letter-spacing: -0.015em;
}

.brand img {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	box-shadow: var(--shadow-sm);
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-left: auto;
}

.site-nav a {
	color: var(--ink-2);
	text-decoration: none;
	font-weight: 700;
	font-size: 0.95rem;
	padding: 8px 14px;
	border-radius: 999px;
	transition: background-color 150ms ease-out, color 150ms ease-out;
}

.site-nav a:hover {
	color: var(--ink);
	background: var(--well);
}

.site-nav a[aria-current="page"] {
	color: var(--primary-ink);
	background: var(--primary-tint);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.nav-cta {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--button);
	color: var(--button-ink);
	font-weight: 800;
	font-size: 0.95rem;
	text-decoration: none;
	transition: background-color 150ms ease-out, transform 150ms ease-out;
}

.nav-cta:hover {
	background: var(--button-hover);
}

.nav-cta:active {
	transform: scale(0.97);
}

@media (max-width: 820px) {
	.site-nav {
		display: none;
	}

	.header-actions {
		margin-left: auto;
	}
}

/* Theme toggle: a two-segment switch, sun | moon */

.theme-toggle {
	display: none;
	padding: 3px;
	gap: 2px;
	border-radius: 999px;
	background: var(--well);
}

.js .theme-toggle {
	display: inline-flex;
}

.theme-toggle button {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--ink-3);
	cursor: pointer;
	transition: background-color 180ms ease-out, color 180ms ease-out, box-shadow 180ms ease-out;
}

.theme-toggle button:hover {
	color: var(--ink);
}

.theme-toggle button[aria-pressed="true"] {
	background: var(--card);
	color: var(--ink);
	box-shadow: var(--shadow-sm);
}

.theme-toggle svg {
	width: 18px;
	height: 18px;
}

/* ================= Buttons ================= */

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

.store-button {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 58px;
	min-width: 196px;
	padding: 0 24px 0 18px;
	border-radius: 16px;
	background: var(--store);
	color: var(--store-ink);
	text-decoration: none;
	box-shadow: var(--shadow-sm);
	transition: transform 160ms ease-out, opacity 160ms ease-out;
}

.store-button:hover {
	opacity: 0.9;
}

.store-button:active {
	transform: scale(0.97);
}

.store-button svg {
	width: 26px;
	height: 26px;
	flex: none;
}

.store-button span {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	text-align: left;
}

.store-button small {
	font-size: 0.7rem;
	font-weight: 700;
	opacity: 0.75;
	letter-spacing: 0.04em;
}

.store-button b {
	font-size: 1.14rem;
	font-weight: 800;
}

.store-button.is-soon {
	background: var(--card);
	color: var(--ink-2);
	box-shadow: inset 0 0 0 1px var(--line-2);
	cursor: default;
}

.store-button.is-soon:hover {
	opacity: 1;
}

.store-button.is-soon:active {
	transform: none;
}

/* ================= Type ================= */

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px 6px 8px;
	border-radius: 999px;
	background: var(--card);
	box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
	color: var(--ink-2);
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
}

.eyebrow .badge {
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--ai-tint);
	color: var(--ai-ink);
	font-weight: 800;
	font-size: 0.74rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--primary-ink);
	font-weight: 800;
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 0 0 14px;
}

.section-title {
	font-size: clamp(2.1rem, 4.6vw, 3.4rem);
	line-height: 1.04;
	letter-spacing: -0.035em;
	font-weight: 800;
	margin: 0 0 18px;
	text-wrap: balance;
}

.section-lede {
	font-size: clamp(1.08rem, 1.6vw, 1.22rem);
	color: var(--ink-2);
	margin: 0;
	max-width: 34em;
	text-wrap: pretty;
}

.section {
	padding: 104px 0;
}

.section-head {
	max-width: 780px;
	margin: 0 auto 56px;
	text-align: center;
}

.section-head .section-lede {
	margin: 0 auto;
}

/* ================= Device frame ================= */
/*
 * An iPhone 17 Pro drawn in CSS, sized entirely in cqw so it scales from any width. The screenshot keeps its own
 * aspect ratio (nothing is cropped) and the frame is built *around* it: a titanium rim, then a black bezel, then
 * the screen. The screen's corner radius (13% of its width) only rounds off background — every screenshot's
 * corners are plain for at least 14% — and the Dynamic Island sits over the status bar's empty centre.
 */

.device {
	container-type: inline-size;
	width: 280px;
	flex: none;
}

.device-frame {
	position: relative;
	padding: 1.5cqw;
	border-radius: 16.4cqw;
	background: var(--rim);
	box-shadow:
		var(--device-shadow),
		inset 0 0 0 0.3cqw rgba(0, 0, 0, 0.18),
		inset 0 0 0 0.7cqw rgba(255, 255, 255, 0.25);
}

/* Side keys: action + volume on the left, the side button on the right */
.device-frame::before,
.device-frame::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 0.9cqw;
	pointer-events: none;
}

.device-frame::before {
	left: -0.7cqw;
	background: linear-gradient(
		to bottom,
		transparent 17%,
		var(--rim-key) 17% 21%,
		transparent 21% 25.5%,
		var(--rim-key) 25.5% 31.5%,
		transparent 31.5% 33.5%,
		var(--rim-key) 33.5% 39.5%,
		transparent 39.5%
	);
	border-radius: 0.4cqw 0 0 0.4cqw;
}

.device-frame::after {
	right: -0.7cqw;
	background: linear-gradient(to bottom, transparent 28%, var(--rim-key) 28% 38%, transparent 38%);
}

.device-screen {
	position: relative;
	padding: 3.2cqw;
	border-radius: 14.9cqw;
	background: #050608;
	box-shadow: inset 0 0 0 0.2cqw #1b1d22;
}

.device-screen img {
	width: 100%;
	height: auto;
	aspect-ratio: 640 / 1390;
	border-radius: 11.7cqw;
	background: var(--bg-2);
}

.device-screen::after {
	/* Dynamic Island, over the status bar's empty centre */
	content: "";
	position: absolute;
	top: 7.3cqw;
	left: 50%;
	width: 27cqw;
	height: 8cqw;
	transform: translateX(-50%);
	border-radius: 999px;
	background: #000;
}

/* ================= Hero ================= */

.hero {
	position: relative;
	padding: 64px 0 0;
	text-align: center;
	isolation: isolate;
	overflow: hidden;
}

.hero::before {
	/* faint grid, fading out */
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background-image:
		linear-gradient(var(--grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 56px 56px;
	background-position: center top;
	mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(40% 36% at 50% 72%, var(--glow-1), transparent 70%),
		radial-gradient(30% 30% at 22% 30%, var(--glow-2), transparent 70%),
		radial-gradient(30% 30% at 80% 26%, var(--glow-2), transparent 70%);
	pointer-events: none;
}

@media (min-width: 960px) {
	.hero {
		padding-top: 88px;
	}
}

.hero h1 {
	font-size: clamp(3.1rem, 9vw, 6.4rem);
	line-height: 0.96;
	letter-spacing: -0.045em;
	font-weight: 800;
	margin: 28px auto 24px;
	text-wrap: balance;
}

.hero h1 em {
	font-style: normal;
	background: linear-gradient(95deg, var(--primary-ink) 10%, var(--ai-ink) 90%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero-lede {
	font-size: clamp(1.12rem, 2vw, 1.32rem);
	color: var(--ink-2);
	max-width: 33em;
	margin: 0 auto 36px;
	text-wrap: pretty;
}

.hero .store-row {
	justify-content: center;
}

.hero-facts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 22px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
	color: var(--ink-3);
	font-weight: 700;
	font-size: 0.95rem;
}

.hero-facts li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.hero-facts svg {
	width: 18px;
	height: 18px;
	color: var(--income-ink);
}

/* The stage: three phones rising out of the hero, cut by a fade into the next section */

.stage {
	position: relative;
	height: 520px;
	margin-top: 64px;
	mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
	-webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}

@media (min-width: 720px) {
	.stage {
		height: 620px;
		margin-top: 72px;
	}
}

.stage .device {
	position: absolute;
	top: 0;
	left: 50%;
}

.stage .device.is-center {
	width: 290px;
	transform: translateX(-50%);
	z-index: 2;
}

.stage .device.is-left,
.stage .device.is-right {
	width: 250px;
	top: 70px;
	display: none;
}

.stage .device.is-left {
	transform: translateX(calc(-50% - 270px)) rotate(-7deg);
}

.stage .device.is-right {
	transform: translateX(calc(-50% + 270px)) rotate(7deg);
}

@media (min-width: 760px) {
	.stage .device.is-center {
		width: 320px;
	}

	.stage .device.is-left,
	.stage .device.is-right {
		display: block;
	}
}

@media (min-width: 1100px) {
	.stage .device.is-left {
		transform: translateX(calc(-50% - 330px)) rotate(-7deg);
	}

	.stage .device.is-right {
		transform: translateX(calc(-50% + 330px)) rotate(7deg);
	}
}

/* Floating glass chips around the phones */

.chip {
	position: absolute;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 18px 12px 12px;
	border-radius: 20px;
	background: var(--glass);
	backdrop-filter: blur(16px) saturate(1.4);
	-webkit-backdrop-filter: blur(16px) saturate(1.4);
	box-shadow: var(--shadow), inset 0 0 0 1px var(--glass-line);
	text-align: left;
	white-space: nowrap;
	animation: float 6s ease-in-out infinite;
}

.chip .ico {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: grid;
	place-items: center;
}

.chip .ico svg {
	width: 20px;
	height: 20px;
}

.chip .txt {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.chip .txt b {
	font-size: 0.98rem;
}

.chip .txt small {
	color: var(--ink-3);
	font-weight: 600;
	font-size: 0.8rem;
}

.chip .amt {
	margin-left: 6px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: var(--expense-ink);
}

.chip.is-quote {
	top: 120px;
	left: calc(50% - 300px);
	animation-delay: -1s;
}

/* The story reads left to right: what was said → the record it became → filed */
.chip.is-record {
	top: 250px;
	left: calc(50% + 80px);
	animation-delay: -3s;
}

.chip.is-done {
	top: 370px;
	left: calc(50% + 130px);
	animation-delay: -4.5s;
}

@media (max-width: 759px) {
	.chip {
		gap: 10px;
		padding: 9px 14px 9px 9px;
		border-radius: 16px;
		animation: none;
	}

	.chip .ico {
		width: 34px;
		height: 34px;
		border-radius: 10px;
	}

	.chip .txt b {
		font-size: 0.9rem;
	}

	.chip.is-quote {
		top: 64px;
		left: 0;
	}

	.chip.is-record {
		top: 230px;
		left: auto;
		right: 0;
	}

	.chip.is-done {
		display: none;
	}
}

@media (min-width: 1100px) {
	.chip.is-quote {
		left: calc(50% - 380px);
	}

	.chip.is-record {
		left: calc(50% + 120px);
	}

	.chip.is-done {
		left: calc(50% + 170px);
	}
}

@keyframes float {
	0%,
	100% {
		translate: 0 0;
	}

	50% {
		translate: 0 -8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.chip {
		animation: none;
	}
}

.tint-voice {
	background: var(--audio-tint);
	color: var(--audio);
}

.tint-camera {
	background: var(--camera-tint);
	color: var(--camera-ink);
}

.tint-ai {
	background: var(--ai-tint);
	color: var(--ai-ink);
}

.tint-brand {
	background: var(--primary-tint);
	color: var(--primary-ink);
}

.tint-money {
	background: var(--income-tint);
	color: var(--income-ink);
}

.tint-clay {
	background: var(--expense-tint);
	color: var(--expense-ink);
}

/* ================= Proof strip ================= */

.proof {
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: var(--bg-2);
}

.proof ul {
	list-style: none;
	margin: 0 auto;
	padding: 28px var(--gutter);
	max-width: var(--max);
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

@media (min-width: 860px) {
	.proof ul {
		grid-template-columns: repeat(4, 1fr);
	}
}

.proof li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-align: center;
}

.proof b {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 800;
	letter-spacing: -0.03em;
}

.proof span {
	color: var(--ink-3);
	font-weight: 600;
	font-size: 0.92rem;
}

/* ================= Bento tiles ================= */

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

@media (min-width: 900px) {
	.bento {
		grid-template-columns: repeat(6, 1fr);
		gap: 20px;
	}

	.span-2 {
		grid-column: span 2;
	}

	.span-3 {
		grid-column: span 3;
	}

	.span-4 {
		grid-column: span 4;
	}

	.span-6 {
		grid-column: span 6;
	}
}

.tile {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--radius-lg);
	background: var(--card);
	box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
	overflow: hidden;
	isolation: isolate;
}

.tile-copy {
	padding: 30px 30px 0;
}

@media (min-width: 900px) {
	.tile-copy {
		padding: 36px 36px 0;
	}
}

.tile-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px 5px 6px;
	border-radius: 999px;
	font-weight: 800;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 16px;
}

.tile-tag i {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--card);
}

.tile-tag svg {
	width: 14px;
	height: 14px;
}

.tile h3 {
	margin: 0 0 10px;
	font-size: clamp(1.45rem, 2.4vw, 1.9rem);
	line-height: 1.12;
	letter-spacing: -0.025em;
	font-weight: 800;
	text-wrap: balance;
}

.tile p {
	margin: 0;
	color: var(--ink-2);
	text-wrap: pretty;
}

.tile p + p {
	margin-top: 10px;
}

.tile .fine {
	font-size: 0.92rem;
	color: var(--ink-3);
}

/* A phone rising from the tile's lower edge */
.peek {
	position: relative;
	flex: 1;
	min-height: 360px;
	margin-top: 28px;
}

.peek::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(60% 70% at 50% 100%, var(--peek-tint, var(--primary-tint)), transparent 75%);
}

.peek .device {
	position: absolute;
	left: 50%;
	top: 0;
	width: 260px;
	transform: translateX(-50%) translateY(var(--shift, 0));
}

.peek.is-tall {
	min-height: 440px;
}

.peek.is-pair .device:first-child {
	transform: translateX(calc(-50% - 92px)) translateY(var(--shift, 0)) rotate(-4deg);
	width: 230px;
}

.peek.is-pair .device:last-child {
	transform: translateX(calc(-50% + 92px)) translateY(calc(var(--shift, 0) + 36px)) rotate(4deg);
	width: 230px;
}

@media (max-width: 520px) {
	.peek.is-pair .device:first-child {
		transform: translateX(calc(-50% - 64px)) translateY(var(--shift, 0)) rotate(-4deg);
		width: 190px;
	}

	.peek.is-pair .device:last-child {
		transform: translateX(calc(-50% + 64px)) translateY(calc(var(--shift, 0) + 36px)) rotate(4deg);
		width: 190px;
	}
}

/*
 * A phone slid up to show its lower half (where a sheet sits). It's clipped to its own area and faded in at the
 * top, so it never rides up over the tile's copy.
 */
.peek.is-shifted {
	overflow: hidden;
	mask-image: linear-gradient(to bottom, transparent 0, #000 56px);
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 56px);
}

.peek.voice {
	--peek-tint: var(--audio-tint);
	--shift: -40%;
}

.peek.camera {
	--peek-tint: var(--camera-tint);
	--shift: -22%;
}

.peek.review {
	--shift: -40%;
}

.peek.ai {
	--peek-tint: var(--ai-tint);
}

.peek.money {
	--peek-tint: var(--income-tint);
}

/* Write it: an in-HTML typed-note demo */

.note-demo {
	flex: 1;
	display: grid;
	align-content: center;
	gap: 14px;
	padding: 32px 24px 36px;
	position: relative;
	min-height: 360px;
	margin-top: 28px;
}

.note-demo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(60% 70% at 50% 100%, var(--ai-tint), transparent 75%);
}

.note-input {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 18px 8px 8px;
	border-radius: 999px;
	background: var(--card);
	box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}

.note-input .plus {
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--button);
	color: var(--button-ink);
}

.note-input .plus svg {
	width: 20px;
	height: 20px;
}

.note-input .typed {
	flex: 1;
	min-width: 0;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
}

.note-input .typed::after {
	content: "";
	display: inline-block;
	width: 2px;
	height: 1.1em;
	margin-left: 2px;
	vertical-align: -0.18em;
	background: var(--primary);
	animation: caret 1s steps(1) infinite;
}

@keyframes caret {
	50% {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.note-input .typed::after {
		animation: none;
	}
}

.note-arrow {
	justify-self: center;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px 5px 9px;
	border-radius: 999px;
	background: var(--ai-tint);
	color: var(--ai-ink);
	font-weight: 800;
	font-size: 0.84rem;
}

.note-arrow svg {
	width: 15px;
	height: 15px;
}

.note-result {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 20px;
	background: var(--card);
	box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}

.note-result .ico {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: grid;
	place-items: center;
}

.note-result .ico svg {
	width: 20px;
	height: 20px;
}

.note-result .txt {
	flex: 1;
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.note-result small {
	color: var(--ink-3);
	font-weight: 600;
	font-size: 0.82rem;
}

.note-result .amt {
	font-weight: 800;
	color: var(--expense-ink);
	font-variant-numeric: tabular-nums;
}

/* Small feature tiles */

.mini-grid {
	display: grid;
	gap: 16px;
	margin-top: 20px;
}

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

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

.mini {
	display: flex;
	gap: 16px;
	padding: 24px;
	border-radius: var(--radius);
	background: var(--card);
	box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}

.mini .ico {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	display: grid;
	place-items: center;
}

.mini .ico svg {
	width: 22px;
	height: 22px;
}

.mini h4 {
	margin: 0 0 4px;
	font-size: 1.05rem;
	font-weight: 800;
}

.mini p {
	margin: 0;
	color: var(--ink-2);
	font-size: 0.96rem;
}

/* ================= Privacy band ================= */

.privacy-band {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	border-radius: 40px;
	padding: 56px 24px;
	color: #fff;
	background: linear-gradient(150deg, #241c63 0%, #3b2fa8 46%, #5b48d9 100%);
}

@media (min-width: 900px) {
	.privacy-band {
		padding: 80px 72px;
		display: grid;
		grid-template-columns: 0.9fr 1.1fr;
		gap: 64px;
		align-items: center;
	}
}

.privacy-band::before {
	/* the balance card's crosshatch */
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0.08;
	background-image:
		repeating-linear-gradient(45deg, #fff 0 1px, transparent 1px 22px),
		repeating-linear-gradient(-45deg, #fff 0 1px, transparent 1px 22px);
}

.privacy-band .kicker {
	color: #c9c0ff;
}

.privacy-band .section-title {
	color: #fff;
}

.privacy-band .section-lede {
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 28px;
}

.privacy-band .button-light {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 48px;
	padding: 0 22px;
	border-radius: 999px;
	background: #fff;
	color: #241c63;
	font-weight: 800;
	text-decoration: none;
	transition: transform 150ms ease-out;
}

.privacy-band .button-light:active {
	transform: scale(0.97);
}

.privacy-band .button-light svg {
	width: 18px;
	height: 18px;
}

.promise-list {
	list-style: none;
	margin: 40px 0 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

@media (min-width: 900px) {
	.promise-list {
		margin: 0;
	}
}

.promise-list li {
	display: flex;
	gap: 16px;
	padding: 20px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.08);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.promise-list .ico {
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 13px;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.14);
}

.promise-list .ico svg {
	width: 22px;
	height: 22px;
}

.promise-list b {
	display: block;
	font-size: 1.06rem;
	margin-bottom: 2px;
}

.promise-list span {
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.96rem;
}

/* ================= Plans ================= */

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

@media (min-width: 780px) {
	.plans {
		grid-template-columns: 1fr 1fr;
	}
}

.plan {
	padding: 36px 32px;
	border-radius: var(--radius-lg);
	background: var(--card);
	box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}

.plan-name {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: 1.6rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.plan-sub {
	margin: 8px 0 28px;
	color: var(--ink-3);
	font-weight: 600;
}

.plan.is-pro {
	position: relative;
	overflow: hidden;
	color: #fff;
	background: linear-gradient(160deg, #1d1650 0%, #3b2fa8 62%, #5b48d9 100%);
	box-shadow: var(--shadow);
}

.plan.is-pro .plan-sub {
	color: rgba(255, 255, 255, 0.75);
}

.crown {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: linear-gradient(160deg, #fbe39a, #d9a93a);
	color: #4a3200;
	box-shadow: 0 4px 12px -2px rgba(217, 169, 58, 0.5);
}

.crown svg {
	width: 19px;
	height: 19px;
}

.checks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.checks li {
	position: relative;
	padding-left: 34px;
	color: var(--ink-2);
}

.checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--primary-tint)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B7CFA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
		center / 14px no-repeat;
}

.checks b {
	color: var(--ink);
}

.plan.is-pro .checks li {
	color: rgba(255, 255, 255, 0.85);
}

.plan.is-pro .checks b {
	color: #fff;
}

.plan.is-pro .checks li::before {
	background-color: rgba(255, 255, 255, 0.14);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4CE6A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
}

.plan-note {
	margin: 28px auto 0;
	max-width: 640px;
	text-align: center;
	color: var(--ink-3);
	font-size: 0.95rem;
}

/* ================= FAQ ================= */

.faq-layout {
	display: grid;
	gap: 32px;
}

@media (min-width: 960px) {
	.faq-layout {
		grid-template-columns: 0.8fr 1.2fr;
		gap: 72px;
		align-items: start;
	}

	.faq-layout > div:first-child {
		position: sticky;
		top: 108px;
	}
}

.faq {
	display: grid;
	gap: 10px;
}

.faq details {
	border-radius: var(--radius);
	background: var(--card);
	box-shadow: inset 0 0 0 1px var(--line);
	padding: 0 24px;
	transition: box-shadow 160ms ease-out;
}

.faq details[open] {
	box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line-2);
}

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

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

.faq summary::after {
	content: "";
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--well)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A83AD' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E")
		center / 14px no-repeat;
	transition: transform 200ms ease-out;
}

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

.faq details > div {
	padding: 0 0 22px;
	color: var(--ink-2);
}

.faq details > div p {
	margin: 0 0 12px;
}

.faq details > div p:last-child {
	margin-bottom: 0;
}

/* ================= Closing CTA ================= */

.cta-panel {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	border-radius: 40px;
	padding: 64px 24px 0;
	text-align: center;
	background: var(--card);
	box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}

.cta-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(50% 60% at 50% 100%, var(--glow-1), transparent 70%),
		radial-gradient(30% 40% at 10% 0%, var(--glow-2), transparent 70%);
}

.cta-panel .app-icon {
	width: 88px;
	height: 88px;
	border-radius: 24px;
	margin: 0 auto 24px;
	box-shadow: var(--shadow);
}

.cta-panel .section-lede {
	margin: 0 auto;
}

.cta-panel .store-row {
	justify-content: center;
	margin-top: 32px;
}

.cta-panel .peek {
	min-height: 300px;
	margin-top: 48px;
}

.cta-panel .peek::before {
	display: none;
}

/* ================= Footer ================= */

.site-footer {
	padding: 56px 0 48px;
	color: var(--ink-3);
	font-size: 0.95rem;
}

.site-footer .wrap {
	display: grid;
	gap: 32px;
}

@media (min-width: 760px) {
	.site-footer .wrap {
		grid-template-columns: 1.6fr 1fr 1fr;
	}
}

.site-footer h4 {
	margin: 0 0 12px;
	color: var(--ink);
	font-size: 0.82rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.site-footer a {
	color: var(--ink-2);
	text-decoration: none;
	font-weight: 600;
}

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

.site-footer .fineprint {
	margin: 14px 0 0;
	max-width: 30em;
}

.footer-base {
	grid-column: 1 / -1;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	font-size: 0.85rem;
}

/* ================= Legal & support pages ================= */

.doc-hero {
	position: relative;
	padding: 64px 0 40px;
	isolation: isolate;
}

.doc-hero::after {
	content: "";
	position: absolute;
	inset: -68px 0 0;
	z-index: -1;
	background: radial-gradient(40% 80% at 15% 0%, var(--glow-2), transparent 70%);
	pointer-events: none;
}

.doc-hero .kicker {
	margin: 0;
}

.doc-hero h1 {
	font-size: clamp(2.6rem, 6vw, 4rem);
	line-height: 1.02;
	letter-spacing: -0.04em;
	font-weight: 800;
	margin: 14px 0 14px;
}

.doc-hero .dates {
	color: var(--ink-3);
	font-weight: 600;
	margin: 0;
}

.doc-layout {
	display: grid;
	gap: 28px;
	padding-bottom: 96px;
}

@media (min-width: 1000px) {
	.doc-layout {
		grid-template-columns: 250px minmax(0, 1fr);
		gap: 56px;
		align-items: start;
	}
}

.toc {
	border-radius: var(--radius);
	background: var(--card);
	box-shadow: inset 0 0 0 1px var(--line);
	padding: 20px 10px 20px 20px;
	font-size: 0.92rem;
}

@media (min-width: 1000px) {
	.toc {
		position: sticky;
		top: 92px;
		max-height: calc(100vh - 116px);
		overflow: auto;
		background: transparent;
		box-shadow: none;
		padding: 4px 0 0 4px;
	}
}

.toc h2 {
	margin: 0 0 10px;
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.toc ol {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 2px;
}

@media (max-width: 999px) {
	.toc ol {
		grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	}
}

.toc a {
	display: block;
	padding: 6px 10px;
	border-radius: 9px;
	color: var(--ink-2);
	text-decoration: none;
	font-weight: 600;
	line-height: 1.35;
}

.toc a:hover {
	background: var(--well);
	color: var(--ink);
}

.doc {
	border-radius: var(--radius-lg);
	background: var(--card);
	box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
	padding: 28px 22px;
	max-width: 840px;
	min-width: 0;
}

@media (min-width: 720px) {
	.doc {
		padding: 52px 60px;
	}
}

.doc > :first-child {
	margin-top: 0;
}

.doc h2 {
	font-size: 1.5rem;
	line-height: 1.25;
	letter-spacing: -0.02em;
	font-weight: 800;
	margin: 52px 0 14px;
	padding-top: 30px;
	border-top: 1px solid var(--line);
}

.doc h3 {
	font-size: 1.12rem;
	font-weight: 800;
	margin: 30px 0 10px;
}

.doc p,
.doc ul,
.doc ol {
	margin: 0 0 16px;
	color: var(--ink-2);
}

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

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

.doc li {
	margin-bottom: 8px;
}

.doc li::marker {
	color: var(--primary);
}

.doc ul ul {
	margin-top: 8px;
}

.doc .lede {
	font-size: 1.12rem;
	color: var(--ink);
}

.summary {
	border-radius: var(--radius);
	background: var(--primary-tint);
	padding: 24px 26px;
	margin: 0 0 28px;
}

.summary h2 {
	border: 0;
	padding: 0;
	margin: 0 0 12px;
	font-size: 1.15rem;
	color: var(--primary-ink);
}

.summary ul {
	margin: 0;
	color: var(--ink);
}

.summary li:last-child {
	margin-bottom: 0;
}

.table-scroll {
	overflow-x: auto;
	margin: 0 0 22px;
	border-radius: 14px;
	box-shadow: inset 0 0 0 1px var(--line);
}

table {
	border-collapse: collapse;
	width: 100%;
	font-size: 0.93rem;
	min-width: 520px;
}

th,
td {
	text-align: left;
	padding: 12px 16px;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
	color: var(--ink-2);
}

th {
	background: var(--bg-2);
	color: var(--ink);
	font-weight: 800;
	white-space: nowrap;
}

td:first-child {
	color: var(--ink);
	font-weight: 600;
}

tr:last-child td {
	border-bottom: 0;
}

/* Support page */

.support-grid {
	display: grid;
	gap: 16px;
	margin-bottom: 48px;
}

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

.support-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 26px;
	border-radius: var(--radius);
	background: var(--card);
	box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
	color: inherit;
	text-decoration: none;
	transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}

a.support-card:hover {
	box-shadow: var(--shadow), inset 0 0 0 1px var(--line-2);
	transform: translateY(-2px);
}

.support-card .icon {
	width: 46px;
	height: 46px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: var(--primary-tint);
	color: var(--primary-ink);
	margin-bottom: 10px;
}

.support-card .icon svg {
	width: 22px;
	height: 22px;
}

.support-card b {
	font-size: 1.12rem;
}

.support-card span {
	color: var(--ink-2);
}

.steps {
	counter-reset: step;
	list-style: none;
	padding: 0 !important;
	display: grid;
	gap: 10px;
}

.steps li {
	counter-increment: step;
	position: relative;
	padding: 14px 16px 14px 56px;
	border-radius: 14px;
	background: var(--bg-2);
	margin: 0 !important;
}

.steps li::before {
	content: counter(step);
	position: absolute;
	left: 14px;
	top: 12px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--button);
	color: var(--button-ink);
	font-weight: 800;
	font-size: 0.9rem;
}

.callout {
	border-radius: var(--radius);
	padding: 18px 20px;
	margin: 0 0 20px;
	background: var(--bg-2);
	box-shadow: inset 4px 0 0 var(--primary);
	color: var(--ink-2);
}

.callout p:last-child {
	margin-bottom: 0;
}
