/* Voice Notes site. Tokens come straight from the app (src/mainview/index.css),
   whose neutrals come from Focus Timer, so the page and the window it shows read
   as one object: one neutral family, one violet accent. */

@font-face {
	font-family: "Geist";
	src: url("assets/fonts/geist.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}
@font-face {
	font-family: "Geist Mono";
	src: url("assets/fonts/geist-mono.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}
@font-face {
	font-family: "Clash Display";
	src: url("assets/fonts/clash-display-600.woff2") format("woff2");
	font-weight: 600;
	font-display: swap;
}
@font-face {
	font-family: "Satoshi";
	src: url("assets/fonts/satoshi-400.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Satoshi";
	src: url("assets/fonts/satoshi-500.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
}
@font-face {
	font-family: "Satoshi";
	src: url("assets/fonts/satoshi-700.woff2") format("woff2");
	font-weight: 600 900;
	font-display: swap;
}
@font-face {
	font-family: "Departure Mono";
	src: url("assets/fonts/departure-mono.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}

/* ── Tokens ─────────────────────────────────────────────────────────────── */

:root {
	--bg: 243 243 240;
	--bg-2: 236 236 232;
	--surface: 252 252 250;
	--surface-2: 246 246 243;
	--line: 222 222 216;
	--ink: 22 22 24;
	--ink-2: 88 88 94;
	--ink-3: 124 124 130;
	--accent: 104 76 230;
	--accent-ink: 250 249 255;
	--danger: 204 66 56;
	--shadow: 40 40 30;
	--grain: 0.045;
	--hi: 255 255 255 / 0.9;
	color-scheme: light;

	--sans: "Satoshi", ui-sans-serif, system-ui, -apple-system, sans-serif;
	--mono: "Departure Mono", ui-monospace, "SF Mono", Menlo, monospace;
	--display: "Clash Display", "Satoshi", ui-sans-serif, system-ui, sans-serif;
	--spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	--spring-soft: cubic-bezier(0.34, 1.36, 0.64, 1);
	--out: cubic-bezier(0.22, 1, 0.36, 1);
	--out-expo: cubic-bezier(0.16, 1, 0.3, 1);

	/* Cards stay barely rounded; controls a touch more. */
	--r-card: 8px;
	--r-ctl: 10px;
	--gutter: 24px;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: 12 12 13;
		--bg-2: 17 17 19;
		--surface: 22 22 25;
		--surface-2: 29 29 33;
		--line: 40 40 45;
		--ink: 236 236 238;
		--ink-2: 160 160 168;
		--ink-3: 112 112 120;
		--accent: 172 150 255;
		--accent-ink: 20 12 48;
		--danger: 238 112 100;
		--shadow: 0 0 0;
		--grain: 0.07;
		--hi: 255 255 255 / 0.05;
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--bg: 12 12 13;
	--bg-2: 17 17 19;
	--surface: 22 22 25;
	--surface-2: 29 29 33;
	--line: 40 40 45;
	--ink: 236 236 238;
	--ink-2: 160 160 168;
	--ink-3: 112 112 120;
	--accent: 172 150 255;
	--accent-ink: 20 12 48;
	--danger: 238 112 100;
	--shadow: 0 0 0;
	--grain: 0.07;
	--hi: 255 255 255 / 0.05;
	color-scheme: dark;
}

/* ── Base ───────────────────────────────────────────────────────────────── */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 88px;
	background: rgb(var(--bg));
}

/* Lenis (smooth scroll) base styles, from lenis@1.3.11/dist/lenis.css */
html.lenis,
html.lenis body {
	height: auto;
}
html.lenis {
	scroll-behavior: auto;
}
.lenis:not(.lenis-autoToggle).lenis-stopped {
	overflow: clip;
}
.lenis [data-lenis-prevent],
.lenis .vn-scroll,
.lenis .vn-msgs {
	overscroll-behavior: contain;
}
.lenis.lenis-smooth iframe {
	pointer-events: none;
}

body {
	margin: 0;
	font-synthesis: none;
	min-height: 100dvh;
	background: rgb(var(--bg));
	color: rgb(var(--ink));
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
	transition: background-color 500ms var(--out), color 500ms var(--out);
}

/* Film grain, same recipe as the app. */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 100;
	opacity: var(--grain);
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

::selection {
	background: rgb(var(--accent) / 0.25);
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

img,
svg {
	display: block;
}

:focus {
	outline: none;
}

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

.mono {
	font-family: var(--mono);
}

.tabular {
	font-variant-numeric: tabular-nums;
}

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

@media (max-width: 640px) {
	:root {
		--gutter: 16px;
	}
}

[data-icon] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

[data-icon] svg {
	width: 100%;
	height: 100%;
}

/* ── Shared controls ────────────────────────────────────────────────────── */

.press {
	transition:
		transform 420ms var(--spring),
		background-color 220ms ease-out,
		color 220ms ease-out,
		opacity 220ms ease-out,
		box-shadow 300ms ease-out,
		filter 220ms ease-out;
}

.press:active:not(:disabled),
.press.is-pressed {
	transform: scale(0.955);
	transition-duration: 110ms;
}

.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 52px;
	padding: 0 20px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.btn [data-icon] {
	width: 17px;
	height: 17px;
}

.btn-primary {
	background: rgb(var(--accent));
	color: rgb(var(--accent-ink));
	box-shadow:
		0 10px 30px -12px rgb(var(--accent) / 0.8),
		inset 0 1px 0 rgb(255 255 255 / 0.25);
}

.btn-primary:hover {
	filter: brightness(1.05);
	box-shadow:
		0 14px 36px -12px rgb(var(--accent) / 0.95),
		inset 0 1px 0 rgb(255 255 255 / 0.25);
}

.btn-ghost {
	background: rgb(var(--ink) / 0.07);
	color: rgb(var(--ink));
}

.btn-ghost:hover {
	background: rgb(var(--ink) / 0.11);
}

.btn-sm {
	height: 38px;
	padding: 0 14px;
	border-radius: 10px;
	font-size: 13.5px;
	gap: 8px;
}

.btn-sm [data-icon] {
	width: 14px;
	height: 14px;
}

.btn .apple {
	margin-top: -2px;
}

.kbd {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 20px;
	min-width: 20px;
	padding: 0 6px;
	border-radius: 6px;
	font-family: var(--mono);
	font-size: 11px;
	box-shadow: inset 0 -1px 0 rgb(0 0 0 / 0.18);
}

.btn-primary .kbd {
	background: rgb(0 0 0 / 0.1);
	color: rgb(var(--accent-ink) / 0.75);
	margin-right: -6px;
}

/* Segmented control with a sliding thumb (the app's Segmented). */
.seg {
	position: relative;
	display: inline-flex;
	padding: 3px;
	border-radius: 9px;
	background: rgb(var(--ink) / 0.06);
}

.seg-thumb {
	position: absolute;
	top: 3px;
	bottom: 3px;
	left: 0;
	width: 0;
	border-radius: 6px;
	background: rgb(var(--surface));
	box-shadow: 0 0 0 1px rgb(var(--line));
	transition:
		transform 420ms var(--spring-soft),
		width 420ms var(--spring-soft);
}

.seg button {
	position: relative;
	z-index: 1;
	height: 26px;
	padding: 0 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 500;
	color: rgb(var(--ink-2));
	white-space: nowrap;
	transition: color 200ms;
}

.seg button:hover,
.seg button[aria-checked="true"] {
	color: rgb(var(--ink));
}

/* A 1px ring instead of a shadow. */
.panel {
	border-radius: var(--r-card);
	background: rgb(var(--surface));
	box-shadow:
		inset 0 1px 0 rgb(var(--hi)),
		0 0 0 1px rgb(var(--line));
}

code {
	font-family: var(--mono);
	font-size: 0.86em;
	padding: 0.12em 0.4em;
	border-radius: 5px;
	background: rgb(var(--ink) / 0.06);
	color: rgb(var(--ink));
	overflow-wrap: anywhere;
}

.inline {
	text-decoration: underline;
	text-decoration-color: rgb(var(--ink) / 0.3);
	text-underline-offset: 3px;
	transition: text-decoration-color 200ms;
}

.inline:hover {
	text-decoration-color: rgb(var(--ink));
}

.accent-link {
	color: rgb(var(--accent));
	font-weight: 500;
	text-decoration-color: rgb(var(--accent) / 0.4);
}

/* ── Navigation ─────────────────────────────────────────────────────────── */

.nav {
	position: fixed;
	top: 12px;
	left: 0;
	right: 0;
	z-index: 50;
	padding: 0 var(--gutter);
	pointer-events: none;
}

.nav-bar {
	pointer-events: auto;
	position: relative;
	display: flex;
	align-items: center;
	gap: 18px;
	max-width: 1152px;
	height: 56px;
	margin: 0 auto;
	padding: 0 8px 0 10px;
	border-radius: 14px;
	background: rgb(var(--surface) / 0.62);
	-webkit-backdrop-filter: saturate(170%) blur(22px);
	backdrop-filter: saturate(170%) blur(22px);
	box-shadow:
		inset 0 1px 0 rgb(var(--hi)),
		0 0 0 1px rgb(var(--line) / 0.75);
	transition:
		max-width 600ms var(--out-expo),
		background-color 400ms;
}

.nav.is-stuck .nav-bar {
	max-width: 1060px;
	background: rgb(var(--surface) / 0.8);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--display);
	font-weight: 600;
	font-size: 16px;
}

.brand img {
	width: 34px;
	height: 34px;
	transition: transform 420ms var(--spring);
}

.brand:hover img {
	transform: rotate(-6deg) scale(1.06);
}

.nav-links {
	position: relative;
	display: flex;
	gap: 2px;
}

.nav-links a {
	position: relative;
	z-index: 1;
	padding: 7px 11px;
	border-radius: 9px;
	font-size: 13.5px;
	color: rgb(var(--ink-2));
	transition: color 200ms;
}

.nav-links a:hover,
.nav-links a.current {
	color: rgb(var(--ink));
}

.nav-thumb {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 0;
	border-radius: 9px;
	background: rgb(var(--ink) / 0.07);
	opacity: 0;
	transition:
		transform 460ms var(--spring-soft),
		width 460ms var(--spring-soft),
		opacity 250ms;
}

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

.nav-status {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	height: 38px;
	padding: 0 12px;
	border-radius: 10px;
	font-size: 12.5px;
	font-weight: 500;
	background: rgb(var(--ink) / 0.05);
}

.nav-status:hover {
	background: rgb(var(--ink) / 0.09);
}

.ns-bars {
	display: flex;
	align-items: center;
	gap: 2px;
	height: 14px;
}

.ns-bars i {
	width: 2.5px;
	height: 100%;
	border-radius: 2px;
	background: rgb(var(--ink) / 0.35);
	transform: scaleY(0.4);
	transition: background-color 300ms;
}

.nav-status.on .ns-bars i {
	background: rgb(var(--accent));
	animation: bar 900ms cubic-bezier(0.45, 0, 0.55, 1) infinite;
	animation-delay: calc(var(--i) * 110ms);
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	color: rgb(var(--ink-2));
}

.icon-btn svg {
	width: 18px;
	height: 18px;
}

.icon-btn:hover {
	color: rgb(var(--ink));
	background: rgb(var(--ink) / 0.06);
}

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

@media (max-width: 600px) {
	.brand-name,
	.nav .icon-btn,
	.nav .label-long,
	.nav-status #ns-text {
		display: none;
	}
	.nav-bar {
		gap: 10px;
	}
}

/* ── Hero: a field of bars running to the horizon ───────────────────────── */

.hero {
	position: relative;
	display: flex;
	align-items: flex-start;
	min-height: max(100svh, 720px);
	padding: 128px 0 64px;
	overflow: hidden;
	isolation: isolate;
}

.hero-canvas {
	position: absolute;
	inset: 0;
	z-index: -2;
	opacity: 0;
	transition: opacity 1400ms var(--out);
	-webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent);
	mask-image: linear-gradient(to bottom, #000 82%, transparent);
}

.hero-canvas.ready {
	opacity: 1;
}

.hero-canvas canvas,
.final-wave canvas,
.bar-word canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.hero-scrim {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(ellipse 60% 45% at 50% 34%, rgb(var(--bg) / 0.82), transparent 70%),
		linear-gradient(to bottom, rgb(var(--bg) / 0.92) 0%, rgb(var(--bg) / 0.4) 26%, transparent 46%);
}

/* No WebGL: a flat row of bars in CSS. */
.hero-fallback {
	display: none;
}

.no-3d .hero-fallback {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 10%;
	z-index: -1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 200px;
}

.no-3d .hero-fallback i {
	width: 6px;
	border-radius: 6px;
	background: rgb(var(--accent) / 0.5);
	animation: bar 1.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
	animation-delay: calc(var(--i) * 60ms);
}

.hero-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hero-copy {
	text-align: center;
	max-width: 1120px;
}

.hero h1 {
	margin: 0;
	font-family: var(--display);
	font-weight: 600;
	font-size: clamp(46px, 7.6vw, 104px);
	line-height: 0.96;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.accent {
	color: rgb(var(--accent));
}

.hero h1 .accent {
	display: block;
}

.hero-sub {
	margin: 24px auto 0;
	max-width: 46ch;
	font-size: clamp(17px, 1.6vw, 20px);
	line-height: 1.5;
	text-wrap: pretty;
}

.hero-ctas {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 32px;
}

/* The playable voice note. */
.hero-note {
	display: flex;
	align-items: center;
	gap: 14px;
	width: min(360px, 100%);
	margin-top: 56px;
	padding: 10px 14px 10px 10px;
	border-radius: var(--r-card);
	background: rgb(var(--surface) / 0.72);
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	backdrop-filter: blur(18px) saturate(160%);
	box-shadow:
		inset 0 1px 0 rgb(var(--hi)),
		0 0 0 1px rgb(var(--line));
}

.hn-play {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 999px;
	background: rgb(var(--accent));
	color: rgb(var(--accent-ink));
}

.hn-play:hover {
	filter: brightness(1.06);
}

.hn-play [data-icon] {
	width: 18px;
	height: 18px;
	grid-area: 1 / 1;
	transition:
		opacity 200ms,
		transform 320ms var(--spring);
}

.hn-ic-pause,
.playing .hn-ic-play {
	opacity: 0;
	transform: scale(0.6);
}

.playing .hn-ic-pause {
	opacity: 1;
	transform: none;
}

.hn-wave {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 32px;
	cursor: pointer;
}

.hn-wave i,
.vn-bars i {
	width: 3px;
	border-radius: 3px;
	background: rgb(var(--ink) / 0.22);
	transition: background-color 180ms;
}

.hn-wave i.on,
.vn-bars i.on {
	background: rgb(var(--accent));
}

.hn-time {
	width: 34px;
	text-align: right;
	font-size: 12px;
	color: rgb(var(--ink-3));
}

.hero-transcript {
	min-height: 3.2em;
	max-width: 40ch;
	margin: 14px auto 0;
	padding: 8px 14px;
	border-radius: var(--r-card);
	text-align: center;
	font-size: 17px;
	line-height: 1.5;
	text-wrap: balance;
	/* Stays readable while the bars rise behind it. */
	background: rgb(var(--bg) / 0.55);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.ht-hint {
	color: rgb(var(--ink-2));
	font-size: 14px;
}

.ht-word {
	display: inline-block;
	animation: word-in 520ms var(--out-expo) both;
}

/* ── Sections ───────────────────────────────────────────────────────────── */

.section {
	position: relative;
	padding: 112px 0;
}

.h2 {
	margin: 0;
	max-width: 20ch;
	font-family: var(--display);
	font-weight: 600;
	font-size: clamp(34px, 4.4vw, 56px);
	line-height: 1.02;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.lede {
	margin: 18px 0 0;
	max-width: 54ch;
	font-size: 18px;
	line-height: 1.55;
	text-wrap: pretty;
}

.reveal {
	opacity: 0;
	transform: translateY(18px);
	filter: blur(4px);
	transition:
		opacity 900ms var(--out-expo),
		transform 900ms var(--out-expo),
		filter 900ms var(--out-expo);
	transition-delay: calc(var(--i, 0) * 70ms);
}

.reveal.in {
	opacity: 1;
	transform: none;
	filter: none;
}

.swap {
	animation: swap-in 900ms var(--out-expo) both;
	animation-delay: var(--d, 0ms);
}

/* ── Demo: a little desktop with the window on it ──────────────────────── */

.demo-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
	gap: 56px;
	align-items: center;
}

@media (max-width: 1000px) {
	.demo-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}
}

.downloads {
	display: flex;
	flex-direction: column;
	margin-top: 28px;
	border-radius: var(--r-card);
	background: rgb(var(--surface));
	box-shadow:
		inset 0 1px 0 rgb(var(--hi)),
		0 0 0 1px rgb(var(--line));
	overflow: hidden;
}

.dl-row {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 12px 12px 14px;
	overflow: hidden;
}

.dl-row + .dl-row {
	border-top: 1px solid rgb(var(--line) / 0.8);
}

.dl-file {
	width: 30px;
	height: 36px;
	flex-shrink: 0;
	display: grid;
	place-items: end center;
	padding-bottom: 6px;
	border-radius: 4px 9px 4px 4px;
	background: rgb(var(--ink) / 0.07);
	font-family: var(--mono);
	font-size: 8.5px;
	color: rgb(var(--ink-2));
}

.dl-meta {
	min-width: 0;
	flex: 1;
}

.dl-name {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 13.5px;
	font-weight: 500;
}

.dl-sub {
	display: block;
	font-size: 12.5px;
	color: rgb(var(--ink-2));
}

.dl-btn {
	flex-shrink: 0;
	height: 32px;
	padding: 0 12px;
	border-radius: 8px;
	font-size: 12.5px;
	font-weight: 600;
	background: rgb(var(--ink) / 0.07);
}

.dl-btn:hover:not(:disabled) {
	background: rgb(var(--ink) / 0.11);
}

.dl-btn:disabled {
	cursor: default;
	color: rgb(var(--accent));
	background: transparent;
}

.dl-progress {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 2px;
	width: 0;
	background: rgb(var(--accent));
}

.dl-row.loading .dl-progress {
	transition: width 700ms var(--out);
	width: 100%;
}

.demo-note {
	margin: 14px 0 0;
	font-size: 13px;
	color: rgb(var(--ink-2));
}

.desk-stage {
	position: relative;
	min-width: 0;
}

.desk-fit {
	position: relative;
	/* The desk is scaled with a transform, which doesn't shrink its layout box. */
	overflow: hidden;
	width: 100%;
	height: calc(var(--desk-h, 680px) * var(--desk-scale, 1));
}

.desk {
	position: absolute;
	top: 0;
	left: 0;
	width: 680px;
	height: 680px;
	transform-origin: top left;
	transform: scale(var(--desk-scale, 1));
	border-radius: 12px;
	overflow: hidden;
	background:
		radial-gradient(ellipse 70% 60% at 20% 90%, rgb(var(--accent) / 0.22), transparent 70%),
		radial-gradient(ellipse 60% 50% at 90% 10%, rgb(255 150 120 / 0.14), transparent 70%),
		linear-gradient(160deg, rgb(var(--bg-2)), rgb(var(--bg)));
	box-shadow: 0 0 0 1px rgb(var(--line));
}

.desk-menubar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 14px;
	height: 28px;
	padding: 0 12px;
	font-family: "Geist", var(--sans);
	font-size: 12.5px;
	background: rgb(var(--surface) / 0.55);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
}

.dm-apple {
	width: 13px;
	height: 13px;
	margin-top: -2px;
}

.dm-app {
	font-weight: 600;
}

.dm-spacer {
	flex: 1;
}

.dm-tray {
	display: grid;
	place-items: center;
	width: 28px;
	height: 22px;
	border-radius: 5px;
}

.dm-tray:hover,
.dm-tray[aria-expanded="true"] {
	background: rgb(var(--ink) / 0.12);
}

.tray-img {
	width: 18px;
	height: 18px;
}

/* Template image: black in light mode, white in dark. */
:root[data-theme="dark"] .tray-img {
	filter: invert(1);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .tray-img {
		filter: invert(1);
	}
}

.tray-menu {
	position: absolute;
	top: 32px;
	right: 52px;
	z-index: 6;
	min-width: 230px;
	padding: 5px;
	border-radius: 8px;
	font-family: "Geist", var(--sans);
	font-size: 13px;
	background: rgb(var(--surface) / 0.86);
	-webkit-backdrop-filter: blur(24px) saturate(180%);
	backdrop-filter: blur(24px) saturate(180%);
	box-shadow: 0 0 0 1px rgb(var(--line));
	opacity: 0;
	transform: translateY(-4px) scale(0.98);
	transform-origin: top right;
	pointer-events: none;
	transition:
		opacity 180ms,
		transform 260ms var(--out);
}

.tray-menu.open {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.tm-item {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	height: 26px;
	padding: 0 10px;
	border-radius: 5px;
	text-align: left;
}

.tm-item:not(.dim):hover {
	background: rgb(var(--accent));
	color: rgb(var(--accent-ink));
}

.tm-item.dim {
	color: rgb(var(--ink-3));
	cursor: default;
}

.tm-check {
	width: 12px;
	font-size: 11px;
}

.tm-sep {
	height: 1px;
	margin: 5px 8px;
	background: rgb(var(--line));
}

.desk-toast {
	position: absolute;
	top: 40px;
	right: 14px;
	z-index: 7;
	display: flex;
	gap: 10px;
	align-items: center;
	width: 300px;
	padding: 10px 12px;
	border-radius: 10px;
	font-family: "Geist", var(--sans);
	background: rgb(var(--surface) / 0.88);
	-webkit-backdrop-filter: blur(24px) saturate(180%);
	backdrop-filter: blur(24px) saturate(180%);
	box-shadow: 0 0 0 1px rgb(var(--line));
	opacity: 0;
	transform: translateX(24px);
	pointer-events: none;
	transition:
		opacity 300ms,
		transform 500ms var(--spring-soft);
}

.desk-toast.show {
	opacity: 1;
	transform: none;
}

.desk-toast b {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
}

.desk-toast span {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 12px;
	line-height: 1.35;
}

/* ── The Voice Notes window replica ─────────────────────────────────────── */
/* Mirrors src/mainview (0.2.3): Geist, the app's tokens and motion, 380x600,
   an inset title bar. Class names start with vn- so they never meet the page's. */

.vn {
	--sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
	--mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
	position: absolute;
	top: 52px;
	right: 24px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	width: 380px;
	height: 600px;
	overflow: hidden;
	border-radius: 12px;
	font-family: var(--sans);
	font-feature-settings: "ss01", "cv11";
	color: rgb(var(--ink));
	background: rgb(var(--bg));
	box-shadow:
		0 0 0 1px rgb(var(--line)),
		0 30px 70px -30px rgb(var(--shadow) / 0.55);
	user-select: none;
	cursor: default;
	transition: background-color 700ms var(--out);
	animation: window-in 900ms var(--spring-soft) both;
}

.vn.bump {
	animation: window-bump 600ms var(--spring) both;
}

/* While a voice note is transcribed the whole window dims (the app's .immersive). */
.vn.immersive {
	--bg: 9 8 15;
	--bg-2: 17 17 19;
	--surface: 22 19 34;
	--surface-2: 30 26 44;
	--line: 52 46 74;
	--ink: 236 236 238;
	--ink-2: 160 160 168;
	--ink-3: 104 104 112;
	--accent: 172 150 255;
	--accent-ink: 20 12 48;
	--danger: 238 112 100;
	--hi: 255 255 255 / 0.05;
	color-scheme: dark;
}

.vn button {
	cursor: default;
}

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

.vn-rise {
	animation: rise 520ms var(--out) both;
	animation-delay: calc(var(--i, 0) * 40ms);
}

.vn-swap {
	animation: swap-in 620ms var(--out-expo) both;
	animation-delay: var(--d, 0ms);
}

.press-soft {
	transition:
		transform 420ms var(--spring),
		background-color 220ms ease-out;
}

.press-soft:active {
	transform: scale(0.985);
	transition-duration: 110ms;
}

.vn-spin {
	flex-shrink: 0;
	animation: spin 1s linear infinite;
}

/* Title bar */

.vn-head {
	position: relative;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	flex-shrink: 0;
	padding: 0 12px;
}

.vn-lights {
	position: absolute;
	left: 16px;
	display: flex;
	gap: 8px;
}

.vn-lights i {
	width: 12px;
	height: 12px;
	border-radius: 999px;
	background: rgb(var(--ink) / 0.16);
}

.vn:hover .vn-lights i:nth-child(1) {
	background: #ff5f57;
}

.vn:hover .vn-lights i:nth-child(2) {
	background: #febc2e;
}

.vn:hover .vn-lights i:nth-child(3) {
	background: #28c840;
}

.vn-back-slot {
	position: absolute;
	left: 78px;
}

.vn-back-slot > span {
	display: block;
}

.vn-title {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: -0.01em;
	transition: color 700ms ease;
}

.vn-actions {
	position: absolute;
	right: 12px;
	display: flex;
	align-items: center;
	gap: 2px;
}

.vn-ib {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 7px;
	color: rgb(var(--ink-2));
}

.vn-ib:hover {
	background: rgb(var(--ink) / 0.07);
	color: rgb(var(--ink));
}

.vn-ib:active {
	background: rgb(var(--ink) / 0.1);
}

.vn-ib.active {
	background: rgb(var(--accent) / 0.15);
	color: rgb(var(--accent));
}

.vn-ib [data-icon] {
	width: 16px;
	height: 16px;
}

.vn-saved {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding-right: 6px;
	font-size: 12px;
	font-weight: 500;
	color: rgb(var(--accent));
	animation: saved 1600ms ease-out both;
}

.vn-saved [data-icon] {
	width: 13px;
	height: 13px;
}

/* Screens */

.vn-body {
	position: relative;
	flex: 1;
	min-height: 0;
}

.vn-view {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
}

.vn-view.in {
	animation: view-in 420ms 90ms var(--out) both;
}

.vn-view.out {
	animation: view-out 120ms cubic-bezier(0.1, 0, 0.3, 1) both;
	pointer-events: none;
}

.vn-scroll {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	scrollbar-width: thin;
}

/* Content feathers out under the title bar once a list is scrolled. */
@property --fade-top {
	syntax: "<length>";
	inherits: false;
	initial-value: 0px;
}

.scroll-soft {
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade-top));
	mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade-top));
	transition: --fade-top 240ms ease-out;
}

.scroll-soft[data-scrolled="true"] {
	--fade-top: 22px;
}

.vn-panel {
	border-radius: 8px;
	background: rgb(var(--surface));
	box-shadow:
		inset 0 1px 0 rgb(var(--hi)),
		0 0 0 1px rgb(var(--line));
	overflow: hidden;
}

.vn-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 12px;
	border-radius: 7px;
	font-size: 12.5px;
	font-weight: 500;
	white-space: nowrap;
	color: rgb(var(--ink));
	background: rgb(var(--ink) / 0.06);
}

.vn-btn:hover:not(:disabled) {
	background: rgb(var(--ink) / 0.1);
}

.vn-btn.accent,
.vn-btn.accent:hover:not(:disabled) {
	background: rgb(var(--accent));
	color: rgb(var(--accent-ink));
}

.vn-btn.danger,
.vn-btn.danger:hover:not(:disabled) {
	background: rgb(var(--danger));
	color: #fff;
}

.vn-btn.accent:hover:not(:disabled),
.vn-btn.danger:hover:not(:disabled) {
	filter: brightness(1.05);
}

.vn-btn:disabled {
	opacity: 0.5;
}

.vn-btn [data-icon] {
	width: 14px;
	height: 14px;
}

/* The list */

.vn-search {
	flex-shrink: 0;
	padding: 4px 16px 8px;
}

.vn-search-box {
	position: relative;
	display: block;
}

.vn-search-box > [data-icon] {
	position: absolute;
	top: 50%;
	left: 10px;
	width: 15px;
	height: 15px;
	transform: translateY(-50%);
	color: rgb(var(--ink-2));
	pointer-events: none;
	transition: color 200ms;
}

.vn-search-box:focus-within > [data-icon] {
	color: rgb(var(--accent));
}

.vn-search input {
	width: 100%;
	height: 34px;
	padding: 0 32px;
	border: 0;
	border-radius: 8px;
	font: inherit;
	font-size: 13px;
	color: rgb(var(--ink));
	background: rgb(var(--ink) / 0.05);
	box-shadow: 0 0 0 1px transparent;
	transition:
		box-shadow 200ms,
		background-color 200ms;
	user-select: text;
}

.vn-search input::placeholder {
	color: rgb(var(--ink-3));
}

.vn-search input:hover {
	background: rgb(var(--ink) / 0.07);
}

.vn-search input:focus {
	outline: none;
	background: rgb(var(--surface));
	box-shadow: 0 0 0 1px rgb(var(--accent) / 0.6);
}

.vn-clear {
	position: absolute;
	top: 50%;
	right: 6px;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	margin-top: -11px;
	border-radius: 6px;
	color: rgb(var(--ink-2));
	animation: fade 240ms ease-out both;
}

.vn-clear[hidden] {
	display: none;
}

.vn-clear:hover {
	background: rgb(var(--ink) / 0.08);
	color: rgb(var(--ink));
}

.vn-clear [data-icon] {
	width: 13px;
	height: 13px;
}

.vn-list {
	display: flex;
	flex-direction: column;
	padding: 4px 0 16px;
}

.vn-list > * {
	flex-shrink: 0;
}

.vn-rows {
	margin: 0 16px;
	padding: 0;
	list-style: none;
}

.vn-rows:empty {
	display: none;
}

.vn-rows > li {
	overflow: hidden;
}

.vn-rows > li + li {
	border-top: 1px solid rgb(var(--line) / 0.7);
}

.vn-row {
	position: relative;
	display: block;
	width: 100%;
	padding: 12px 14px;
	text-align: left;
}

.vn-row:hover {
	background: rgb(var(--ink) / 0.035);
}

.vn-row:active {
	background: rgb(var(--ink) / 0.06);
}

.vn-row:focus-visible {
	outline-offset: -2px;
	background: rgb(var(--ink) / 0.05);
}

.vn-row-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.vn-when {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
}

.vn-when.unread {
	font-weight: 600;
}

.vn-dur {
	flex-shrink: 0;
	font-family: var(--mono);
	font-size: 11.5px;
	color: rgb(var(--ink-3));
	font-variant-numeric: tabular-nums;
}

.vn-row-sub {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 4px 0 0;
	font-size: 12.5px;
	line-height: 1.45;
	color: rgb(var(--ink-2));
}

.vn-row-sub.unread {
	color: rgb(var(--ink));
}

.vn mark {
	padding: 0 1px;
	border-radius: 3px;
	background: rgb(var(--accent) / 0.25);
	color: rgb(var(--ink));
}

.vn-status {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0 0;
	font-size: 12.5px;
	color: rgb(var(--ink-2));
}

.vn-status.busy {
	color: rgb(var(--ink));
}

.vn-dot {
	width: 7px;
	height: 7px;
	flex-shrink: 0;
	border-radius: 999px;
}

.vn-dot.unread,
.vn-dot.busy {
	background: rgb(var(--accent));
}

.vn-dot.busy {
	animation: pulse-dot 2.4s ease-out infinite;
}

.vn-dot.queued {
	box-shadow: inset 0 0 0 1.5px rgb(var(--accent));
}

/* A row being transcribed: light passes through it. */
.row-scan {
	overflow: hidden;
}

.row-scan::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(100deg, transparent 30%, rgb(var(--accent) / 0.09) 50%, transparent 70%);
	transform: translateX(-100%);
	animation: row-scan 2.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.vn-nomatch {
	padding: 40px 32px 0;
	text-align: center;
}

.vn-nomatch[hidden] {
	display: none;
}

.vn-nomatch p {
	margin: 4px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
}

.vn-nomatch .vn-nomatch-t {
	margin: 0;
	font-size: 13.5px;
	font-weight: 500;
}

.vn-nomatch .vn-btn {
	margin-top: 12px;
}

.vn-foot {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: auto;
	padding: 16px 16px 0;
	font-size: 11.5px;
}

.vn-foot[hidden] {
	display: none;
}

.vn-ver {
	color: rgb(var(--ink-3));
	font-variant-numeric: tabular-nums;
}

.vn-check {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 6px;
	border-radius: 6px;
	font-weight: 500;
	color: rgb(var(--ink-2));
}

.vn-check:hover:not(:disabled) {
	background: rgb(var(--ink) / 0.07);
	color: rgb(var(--ink));
}

.vn-empty {
	flex: 1 1 auto !important;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0 40px 48px;
	text-align: center;
}

.vn-empty-bars {
	display: flex;
	align-items: center;
	gap: 3px;
}

.vn-empty-bars i {
	width: 3px;
	border-radius: 999px;
	background: rgb(var(--ink) / 0.2);
}

.vn-empty h2 {
	margin: 20px 0 0;
	font-size: 15px;
	font-weight: 600;
}

.vn-empty p {
	margin: 6px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
}

/* A note */

.vn-note {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.vn-top {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex-shrink: 0;
	padding: 4px 16px 0;
}

.vn-player {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
}

.vn-play {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	border-radius: 999px;
	background: rgb(var(--accent));
	color: rgb(var(--accent-ink));
}

.vn-play:hover {
	filter: brightness(1.05);
}

.vn-play [data-icon] {
	width: 16px;
	height: 16px;
}

.vn-bars {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 30px;
	border-radius: 4px;
}

.vn-bars i {
	width: 3px;
	border-radius: 3px;
	background: rgb(var(--ink) / 0.2);
	transition: background-color 200ms;
}

.vn-bars i.on {
	background: rgb(var(--accent));
}

.vn-time {
	width: 34px;
	flex-shrink: 0;
	text-align: right;
	font-family: var(--mono);
	font-size: 11.5px;
	color: rgb(var(--ink-3));
	font-variant-numeric: tabular-nums;
}

/* Playback speed: the label rolls up to its new value. */
.vn-rate {
	display: grid;
	place-items: center;
	width: 38px;
	height: 26px;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 6px;
	font-family: var(--mono);
	font-size: 11.5px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: rgb(var(--ink));
	background: rgb(var(--ink) / 0.06);
}

.vn-rate:hover {
	background: rgb(var(--ink) / 0.1);
}

.vn-rate.on {
	color: rgb(var(--accent));
	background: rgb(var(--accent) / 0.15);
}

.vn-rate.on:hover {
	background: rgb(var(--accent) / 0.2);
}

.vn-rate-in {
	display: inline-block;
	animation: rate-in 320ms var(--out) both;
}

.vn-tabs-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.vn .seg {
	border-radius: 8px;
}

.vn .seg button {
	height: 28px;
	padding: 0 14px;
	font-size: 12.5px;
}

.vn .seg.sm button {
	height: 24px;
	padding: 0 10px;
	font-size: 11.5px;
}

.vn-lang {
	font-size: 11.5px;
	color: rgb(var(--ink-3));
}

.vn-pane {
	position: relative;
	flex: 1;
	min-height: 0;
}

.vn-tab {
	height: 100%;
	padding: 16px 16px 20px;
}

.vn-copyrow {
	display: flex;
	justify-content: flex-end;
	gap: 4px;
	margin: -4px 0 8px;
}

.vn-copy {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 24px;
	padding: 0 8px;
	border-radius: 6px;
	font-size: 11.5px;
	font-weight: 500;
	color: rgb(var(--ink-2));
}

.vn-copy:hover:not(:disabled) {
	background: rgb(var(--ink) / 0.07);
	color: rgb(var(--ink));
}

.vn-copy.done {
	color: rgb(var(--accent));
}

.vn-copy:disabled {
	opacity: 0.5;
}

.vn-copy [data-icon] {
	width: 13px;
	height: 13px;
}

.vn-summary {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	user-select: text;
}

.vn-sec {
	margin-top: 20px;
}

.vn-h {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
}

.vn-todo {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vn-todo li + li {
	border-top: 1px solid rgb(var(--line) / 0.7);
}

.vn-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	padding: 10px 12px;
	text-align: left;
	font-size: 13px;
	line-height: 1.45;
}

.vn-item:hover {
	background: rgb(var(--ink) / 0.035);
}

.vn-box {
	display: grid;
	place-items: center;
	width: 16px;
	height: 16px;
	margin-top: 1px;
	flex-shrink: 0;
	border-radius: 5px;
	box-shadow: inset 0 0 0 1px rgb(var(--ink) / 0.25);
	color: rgb(var(--accent-ink));
	transition:
		background-color 200ms,
		box-shadow 200ms;
}

.vn-box [data-icon] {
	width: 12px;
	height: 12px;
	opacity: 0;
	transform: scale(0.4);
	transition:
		opacity 200ms,
		transform 380ms var(--spring);
}

.vn-item.done .vn-box {
	background: rgb(var(--accent));
	box-shadow: inset 0 0 0 1px rgb(var(--accent));
}

.vn-item.done .vn-box [data-icon] {
	opacity: 1;
	transform: none;
}

.vn-item-text {
	transition: color 200ms;
}

.vn-item.done .vn-item-text {
	color: rgb(var(--ink-3));
	text-decoration: line-through;
}

.vn-asked {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	line-height: 1.45;
	user-select: text;
}

.vn-asked li {
	position: relative;
	padding-left: 12px;
}

.vn-asked li + li {
	margin-top: 6px;
}

.vn-asked li::before {
	content: "";
	position: absolute;
	top: 8px;
	left: 0;
	width: 4px;
	height: 4px;
	border-radius: 999px;
	background: rgb(var(--ink) / 0.4);
}

/* Transcript: each line with the time it was said; the one being spoken lights up. */
.vn-tx-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
}

.vn-tx-actions {
	display: flex;
	align-items: center;
	gap: 4px;
}

.vn-lines {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0 -8px;
	padding: 0;
	list-style: none;
	user-select: text;
}

.vn-line {
	display: flex;
	gap: 10px;
	padding: 6px 8px;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.6;
	transition: background-color 300ms;
}

.vn-line:hover {
	background: rgb(var(--ink) / 0.04);
}

.vn-line.on {
	background: rgb(var(--accent) / 0.12);
}

.vn-stamp {
	width: 38px;
	height: 18px;
	margin-top: 3px;
	flex-shrink: 0;
	border-radius: 4px;
	text-align: left;
	font-family: var(--mono);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
	color: rgb(var(--ink-3));
}

.vn-stamp:hover,
.vn-line.on .vn-stamp {
	color: rgb(var(--accent));
}

.vn-line:not(.on) .vn-stamp:hover {
	color: rgb(var(--ink));
}

.vn-paras {
	margin: 0 -8px;
	user-select: text;
}

.vn-paras p {
	margin: 0 0 6px;
	padding: 4px 8px;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.65;
	transition: background-color 500ms;
}

.vn-paras p.on {
	background: rgb(var(--accent) / 0.1);
}

/* Chat */

.vn-chat {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.vn-msgs {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 16px 12px;
	scrollbar-width: thin;
}

.vn-hint {
	margin: 0;
	padding: 8px 4px 0;
	font-size: 12.5px;
	line-height: 1.5;
}

.vn-mine {
	display: flex;
	justify-content: flex-end;
}

.vn-mine p {
	max-width: 85%;
	margin: 0;
	padding: 8px 12px;
	border-radius: 8px;
	background: rgb(var(--accent) / 0.14);
	font-size: 13px;
	line-height: 1.45;
	white-space: pre-wrap;
	user-select: text;
}

/* Your message lifts in from the composer. */
.vn-send-in {
	transform-origin: right bottom;
	animation: send-in 380ms var(--out) both;
}

.vn-typing {
	display: flex;
	gap: 4px;
	padding: 8px 4px;
	animation: fade 240ms ease-out both;
}

.vn-typing i {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: rgb(var(--ink) / 0.5);
	animation: blink 1.2s infinite both;
	animation-delay: calc(var(--i) * 150ms);
}

.vn-reply {
	padding: 0 4px;
}

.vn-prose {
	font-size: 13px;
	line-height: 1.55;
	user-select: text;
}

.vn-prose p,
.vn-prose ul,
.vn-prose ol {
	margin: 0 0 8px;
}

.vn-prose > :last-child {
	margin-bottom: 0;
}

.vn-prose ul,
.vn-prose ol {
	padding-left: 18px;
}

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

.vn-prose strong {
	font-weight: 600;
}

.vn-reply-copy {
	margin: 4px 0 0 -8px;
}

/* A reply writes itself in, word by word. */
.reply-word {
	display: inline-block;
	animation: word-in 560ms var(--out-expo) both;
	animation-delay: var(--d, 0ms);
}

.reply-li {
	animation: fade 360ms ease-out both;
	animation-delay: var(--d, 0ms);
}

.vn-composer {
	flex-shrink: 0;
	padding: 10px 12px 12px;
	border-top: 1px solid rgb(var(--line) / 0.7);
}

.vn-chips {
	display: flex;
	gap: 6px;
	margin: 0 -12px 8px;
	padding: 0 12px;
	overflow-x: auto;
	scrollbar-width: none;
}

.vn-chips::-webkit-scrollbar {
	display: none;
}

.vn-chip {
	flex-shrink: 0;
	padding: 4px 10px;
	border-radius: 7px;
	background: rgb(var(--ink) / 0.05);
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
}

.vn-chip:hover:not(:disabled) {
	background: rgb(var(--ink) / 0.09);
}

.vn-chip:disabled {
	opacity: 0.4;
}

.vn-input {
	display: flex;
	align-items: flex-end;
	gap: 8px;
}

.vn-field {
	flex: 1;
	min-height: 34px;
	padding: 7px 12px;
	border: 0;
	border-radius: 8px;
	font: inherit;
	font-size: 13px;
	line-height: 1.45;
	color: rgb(var(--ink));
	background: rgb(var(--surface));
	box-shadow: 0 0 0 1px rgb(var(--line));
	resize: none;
	transition: box-shadow 200ms;
	user-select: text;
}

.vn-field::placeholder {
	color: rgb(var(--ink-3));
}

.vn-field:focus {
	outline: none;
	box-shadow: 0 0 0 1px rgb(var(--accent) / 0.7);
}

.vn-send {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	border-radius: 8px;
	background: rgb(var(--accent));
	color: rgb(var(--accent-ink));
}

.vn-send:hover:not(:disabled) {
	filter: brightness(1.05);
}

.vn-send:disabled {
	opacity: 0.35;
}

.vn-send [data-icon] {
	width: 16px;
	height: 16px;
}

/* Delete, and the window's own toast */

.vn-confirm {
	position: absolute;
	inset: 0;
	z-index: 30;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.vn-confirm-bg {
	position: absolute;
	inset: 0;
	background: rgb(var(--bg) / 0.6);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	animation: fade 240ms ease-out both;
}

.vn-sheet {
	position: relative;
	margin: 12px;
	padding: 16px;
	animation: sheet 420ms var(--out) both;
}

.vn-sheet-t {
	margin: 0;
	font-size: 13.5px;
	font-weight: 600;
}

.vn-sheet-d {
	margin: 4px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
}

.vn-sheet-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 14px;
}

.vn-toast-slot {
	position: absolute;
	right: 0;
	bottom: 16px;
	left: 0;
	z-index: 40;
	display: flex;
	justify-content: center;
	padding: 0 16px;
	pointer-events: none;
}

.vn-toast {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 12.5px;
	font-weight: 500;
	color: rgb(var(--bg));
	background: rgb(var(--ink));
	animation: toast 2400ms var(--out) both;
}

.vn-toast [data-icon] {
	width: 14px;
	height: 14px;
}

/* Settings */

.vn-settings {
	padding: 4px 16px 24px;
}

.vn-set {
	margin-bottom: 20px;
}

.vn-set .vn-h {
	padding: 0 2px;
}

.vn-set-rows {
	overflow: visible;
}

.vn-set-rows > * + * {
	border-top: 1px solid rgb(var(--line) / 0.7);
}

.vn-set-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 48px;
	padding: 8px 14px;
	font-size: 13px;
}

.vn-set-row > span:first-child {
	flex-shrink: 0;
}

.vn-set-c {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.vn-set-v {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12.5px;
}

.vn-pattern {
	padding: 12px 14px;
	font-size: 13px;
}

.vn-pattern input {
	display: block;
	width: 100%;
	height: 32px;
	margin-top: 8px;
	padding: 0 10px;
	border: 0;
	border-radius: 7px;
	font-family: var(--mono);
	font-size: 12px;
	color: rgb(var(--ink));
	background: rgb(var(--ink) / 0.05);
	box-shadow: 0 0 0 1px rgb(var(--line));
	transition: box-shadow 200ms;
	user-select: text;
}

.vn-pattern input:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgb(var(--accent) / 0.7);
}

.vn-pattern input[aria-invalid="true"] {
	box-shadow: 0 0 0 1px rgb(var(--danger) / 0.7);
}

.vn-pattern input[aria-invalid="true"]:focus {
	box-shadow: 0 0 0 2px rgb(var(--danger));
}

.vn-pattern-note {
	min-height: 18px;
	margin-top: 8px;
	font-size: 12px;
	line-height: 1.5;
}

.vn-checking {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.vn-danger {
	color: rgb(var(--danger));
}

.vn-pattern-actions {
	display: flex;
	gap: 8px;
	margin-top: 10px;
}

.vn-link {
	margin-top: 6px;
	padding: 2px 4px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 500;
	color: rgb(var(--accent));
}

.vn-link:hover {
	background: rgb(var(--accent) / 0.1);
}

.vn-select {
	position: relative;
	display: block;
}

.vn-select select {
	height: 30px;
	max-width: 190px;
	padding: 0 32px 0 12px;
	border: 0;
	border-radius: 7px;
	appearance: none;
	-webkit-appearance: none;
	font: inherit;
	font-size: 12.5px;
	font-weight: 500;
	color: rgb(var(--ink));
	background: rgb(var(--ink) / 0.06);
	transition: background-color 220ms;
}

.vn-select select:hover {
	background: rgb(var(--ink) / 0.1);
}

.vn-select [data-icon] {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 14px;
	height: 14px;
	color: rgb(var(--ink-2));
	pointer-events: none;
}

.vn-switch {
	position: relative;
	width: 34px;
	height: 20px;
	flex-shrink: 0;
	border-radius: 999px;
	background: rgb(var(--ink) / 0.16);
	transition: background-color 300ms;
}

.vn-switch[aria-checked="true"] {
	background: rgb(var(--accent));
}

.vn-switch span {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	border-radius: 999px;
	background: #fff;
	transition: left 420ms var(--spring-soft);
}

.vn-switch[aria-checked="true"] span {
	left: 16px;
}

.vn-collapse {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	border-top: 0 !important;
	transition:
		grid-template-rows 300ms ease-out,
		opacity 300ms ease-out;
}

.vn-collapse.open {
	grid-template-rows: 1fr;
	opacity: 1;
}

.vn-collapse > div {
	overflow: hidden;
}

.vn-collapse .vn-set-row {
	border-top: 1px solid rgb(var(--line) / 0.7);
}

.vn-stepper {
	display: flex;
	align-items: center;
	gap: 4px;
}

.vn-stepper button {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 7px;
	color: rgb(var(--ink));
	background: rgb(var(--ink) / 0.06);
}

.vn-stepper button:hover:not(:disabled) {
	background: rgb(var(--ink) / 0.1);
}

.vn-stepper button:disabled {
	opacity: 0.35;
}

.vn-stepper [data-icon] {
	width: 14px;
	height: 14px;
}

.vn-days {
	display: inline-block;
	width: 62px;
	text-align: center;
	font-size: 13px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.vn-set-help {
	margin: -12px 0 20px;
	padding: 0 2px;
	font-size: 12px;
	line-height: 1.5;
}

.vn-set-help p {
	margin: 0;
}

.vn-set-help p + p {
	margin-top: 6px;
}

/* The listening scene: the window goes dark around an orb. It reaches up
   behind the title bar, so the whole window is the scene. */

.scene {
	position: absolute;
	top: -52px;
	right: 0;
	bottom: 0;
	left: 0;
	overflow: hidden;
	isolation: isolate;
}

.scene-in {
	animation: scene-in 700ms ease-out both;
}

.scene canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* One soft light behind the orb, breathing slowly. */
.scene-glow {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(46% 34% at 50% 47%, rgb(96 60 220 / 0.32), transparent 72%);
	animation: glow-breathe 7s ease-in-out infinite alternate;
	transition: opacity 1200ms ease;
}

.scene-glow.dim {
	opacity: 0.35;
}

.scene-copy {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 52px 0 32px;
	text-align: center;
}

.scene-copy.gone {
	opacity: 0;
	transition: opacity 200ms;
}

.scene-slot {
	width: 100%;
	height: 300px;
}

.scene-label {
	margin: 8px 0 0;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: rgb(var(--ink));
	animation: rise 900ms 600ms var(--out) both;
}

.scene-noise {
	opacity: 0.5;
}

.scene-hold {
	opacity: 0;
}

/* The result arrives: the orb flares on the canvas, then the dark lifts under
   the bloom, so the light lands on the page instead of turning grey. */
.scene-leaving {
	animation: scene-out 1050ms linear both;
}

.vn-outro {
	position: absolute;
	inset: 0;
	z-index: 30;
	pointer-events: none;
}

/* The result builds in as the light comes back: blocks rise into focus one
   after another, and the summary's words arrive one by one. */
.vn-revealing .vn-rise,
.vn-revealing .vn-swap {
	animation: none;
}

.vn-revealing [data-reveal] {
	animation: reveal-in 900ms var(--out-expo) both;
	animation-delay: calc(640ms + var(--r, 0) * 90ms);
}

.vn-word {
	display: inline-block;
	animation: word-in 700ms var(--out-expo) both;
	animation-delay: calc(820ms + var(--w) * 16ms);
}

/* ── Pipeline ───────────────────────────────────────────────────────────── */

.pipe {
	position: relative;
	margin-top: 56px;
}

.pipe-track {
	position: absolute;
	top: 15px;
	left: 15px;
	right: 15px;
	height: 2px;
	background: rgb(var(--line));
	border-radius: 2px;
}

.pipe-fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	background: rgb(var(--accent));
	border-radius: 2px;
	transition: width 900ms var(--out);
}

.pipe-packet {
	position: absolute;
	top: 50%;
	left: 0;
	width: 26px;
	height: 12px;
	margin: -6px 0 0 -13px;
	border-radius: 4px;
	background: rgb(var(--accent));
	box-shadow: 0 0 18px rgb(var(--accent) / 0.7);
	transition: left 900ms var(--out);
}

.pipe-steps {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pipe-step h3,
.step h3,
.fact h3,
.tile h3 {
	margin: 16px 0 6px;
	font-family: var(--display);
	font-weight: 600;
	font-size: 20px;
	line-height: 1.2;
}

.pipe-step p,
.step p,
.fact p,
.tile p {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	text-wrap: pretty;
}

.ps-num,
.step-num {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	font-size: 13px;
	background: rgb(var(--bg));
	box-shadow: 0 0 0 1px rgb(var(--line));
	transition:
		background-color 400ms,
		color 400ms,
		box-shadow 400ms,
		transform 500ms var(--spring);
}

.pipe-step.lit .ps-num {
	background: rgb(var(--accent));
	color: rgb(var(--accent-ink));
	box-shadow: 0 0 0 1px rgb(var(--accent));
	transform: scale(1.1);
}

@media (max-width: 860px) {
	.pipe-steps {
		grid-template-columns: 1fr 1fr;
		row-gap: 36px;
	}
	.pipe-track {
		display: none;
	}
}

@media (max-width: 520px) {
	.pipe-steps {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ── Bento ──────────────────────────────────────────────────────────────── */

.bento {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
	margin-top: 48px;
}

.tile {
	grid-column: span 2;
	padding: 18px 18px 22px;
	border-radius: var(--r-card);
	background: rgb(var(--surface));
	box-shadow:
		inset 0 1px 0 rgb(var(--hi)),
		0 0 0 1px rgb(var(--line));
}

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

@media (max-width: 900px) {
	.bento {
		grid-template-columns: minmax(0, 1fr);
	}
	.tile,
	.tile.wide {
		grid-column: auto;
	}
}

.tile-vis {
	display: grid;
	place-items: center;
	height: 190px;
	border-radius: 6px;
	background:
		radial-gradient(ellipse 70% 80% at 50% 100%, rgb(var(--accent) / 0.1), transparent 70%),
		rgb(var(--bg));
	box-shadow: inset 0 0 0 1px rgb(var(--line) / 0.7);
	overflow: hidden;
}

.mini-todo {
	width: min(340px, 86%);
	border-radius: 8px;
	background: rgb(var(--surface));
	box-shadow: 0 0 0 1px rgb(var(--line));
	font-family: "Geist", var(--sans);
}

.mt-row {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 10px 12px;
	font-size: 13px;
}

.mt-row + .mt-row {
	border-top: 1px solid rgb(var(--line) / 0.7);
}

.mt-box {
	position: relative;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	border-radius: 5px;
	box-shadow: inset 0 0 0 1px rgb(var(--ink) / 0.25);
	transition:
		background-color 250ms,
		box-shadow 250ms;
}

.mt-box::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 2px;
	width: 4px;
	height: 8px;
	border: solid rgb(var(--accent-ink));
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0.3);
	opacity: 0;
	transition:
		transform 380ms var(--spring),
		opacity 200ms;
}

.mt-row.done .mt-box {
	background: rgb(var(--accent));
	box-shadow: inset 0 0 0 1px rgb(var(--accent));
}

.mt-row.done .mt-box::after {
	opacity: 1;
	transform: rotate(45deg);
}

.mt-row span:last-child {
	transition: color 300ms;
}

.mt-row.done span:last-child {
	color: rgb(var(--ink-3));
	text-decoration: line-through;
}

.mini-asked {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-start;
	font-family: "Geist", var(--sans);
	font-size: 14px;
}

.ma-q {
	padding: 8px 12px;
	border-radius: 8px;
	background: rgb(var(--surface));
	box-shadow: 0 0 0 1px rgb(var(--line));
	animation: float 5s ease-in-out infinite;
}

.ma-q:nth-child(2) {
	margin-left: 28px;
	animation-delay: -2.5s;
}

.mini-copy {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: 86%;
	font-family: "Geist", var(--sans);
}

.mc-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 500;
	background: rgb(var(--ink) / 0.06);
	transition:
		color 250ms,
		background-color 250ms,
		transform 300ms var(--spring);
}

.mc-btn [data-icon] {
	width: 13px;
	height: 13px;
}

.mc-btn.hit {
	color: rgb(var(--accent));
	transform: scale(0.94);
}

.mc-out {
	width: 100%;
	min-height: 104px;
	margin: 0;
	padding: 10px 12px;
	border-radius: 6px;
	font-family: "Geist Mono", var(--mono);
	font-size: 10.5px;
	line-height: 1.5;
	white-space: pre-wrap;
	background: rgb(var(--surface));
	box-shadow: 0 0 0 1px rgb(var(--line));
	overflow: hidden;
}

.mini-chat {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: min(400px, 88%);
	font-family: "Geist", var(--sans);
	font-size: 13px;
	line-height: 1.5;
}

.mch-me {
	align-self: flex-end;
	padding: 7px 12px;
	border-radius: 8px;
	background: rgb(var(--accent) / 0.14);
}

.mch-reply {
	min-height: 60px;
}

.mch-reply::after {
	content: "";
	display: inline-block;
	width: 2px;
	height: 1em;
	margin-left: 2px;
	vertical-align: -2px;
	background: rgb(var(--accent));
	animation: caret 1s steps(1) infinite;
}

/* ── Languages ──────────────────────────────────────────────────────────── */

.lang-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 56px;
	align-items: center;
}

@media (max-width: 900px) {
	.lang-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
}

.lang-card {
	padding: 16px;
	font-family: "Geist", var(--sans);
}

.lang-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 18px;
}

.lang-body {
	min-height: 210px;
	padding: 2px 4px;
}

.lang-body p {
	margin: 0 0 14px;
	font-size: 16px;
	line-height: 1.65;
	animation: swap-in 620ms var(--out-expo) both;
	animation-delay: calc(var(--i, 0) * 80ms);
}

.lang-body p[dir="rtl"] {
	font-size: 17px;
}

/* ── Safety ─────────────────────────────────────────────────────────────── */

.cmd {
	margin-top: 40px;
	padding: 16px 18px;
	border-radius: var(--r-card);
	background: rgb(var(--surface));
	box-shadow:
		inset 0 1px 0 rgb(var(--hi)),
		0 0 0 1px rgb(var(--line));
	font-family: "Geist Mono", var(--mono);
	font-size: 14px;
	overflow-x: auto;
	white-space: nowrap;
}

.cmd .p {
	margin-right: 10px;
	color: rgb(var(--ink-3));
}

.cmd .f {
	color: rgb(var(--accent));
}

.facts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin-top: 40px;
}

@media (max-width: 860px) {
	.facts {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}
}

.fact h3 {
	margin-top: 0;
}

/* ── Install ────────────────────────────────────────────────────────────── */

.steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 48px 0 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 1000px) {
	.steps {
		grid-template-columns: minmax(0, 1fr);
	}
}

.step {
	min-width: 0;
	padding: 20px;
	border-radius: var(--r-card);
	background: rgb(var(--surface));
	box-shadow:
		inset 0 1px 0 rgb(var(--hi)),
		0 0 0 1px rgb(var(--line));
}

.step p + p {
	margin-top: 8px;
}

.snippet {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 10px;
	padding: 6px 6px 6px 10px;
	border-radius: 6px;
	background: rgb(var(--ink) / 0.05);
}

.snippet code {
	flex: 1;
	min-width: 0;
	padding: 0;
	background: none;
	font-size: 12px;
	line-height: 1.4;
}

.snip-copy {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	border-radius: 6px;
	color: rgb(var(--ink-2));
}

.snip-copy:hover {
	background: rgb(var(--ink) / 0.08);
	color: rgb(var(--ink));
}

.snip-copy.done {
	color: rgb(var(--accent));
}

.snip-copy [data-icon] {
	width: 14px;
	height: 14px;
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.faq-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: 56px;
	align-items: start;
}

@media (max-width: 900px) {
	.faq-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
}

.faq-head {
	position: sticky;
	top: 110px;
}

.qa {
	border-bottom: 1px solid rgb(var(--line));
}

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

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

.plus {
	position: relative;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.plus::before,
.plus::after {
	content: "";
	position: absolute;
	top: 6px;
	left: 0;
	width: 14px;
	height: 2px;
	border-radius: 2px;
	background: rgb(var(--ink));
	transition: transform 420ms var(--spring);
}

.plus::after {
	transform: rotate(90deg);
}

.qa[open] .plus::after {
	transform: rotate(0deg);
}

.ans {
	padding: 0 0 22px;
	max-width: 60ch;
	font-size: 16px;
	line-height: 1.6;
	animation: rise 420ms var(--out) both;
}

/* ── Final ──────────────────────────────────────────────────────────────── */

.final {
	text-align: center;
	overflow: hidden;
	isolation: isolate;
}

.final .wrap {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.final .h2 {
	margin-top: 28px;
	max-width: none;
}

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

.final-wave {
	position: absolute;
	left: 0;
	right: 0;
	top: 40%;
	height: 260px;
	z-index: -1;
	opacity: 0.9;
	-webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 30%, transparent 75%);
}

.final-icon {
	width: 96px;
	height: 96px;
	animation: float 6s ease-in-out infinite;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.foot {
	padding: 72px 0 32px;
	border-top: 1px solid rgb(var(--line));
}

.foot-top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 40px;
}

.foot-line {
	margin: 14px 0 0;
	font-size: 15px;
}

.foot-cols {
	display: flex;
	flex-wrap: wrap;
	gap: 56px;
}

.foot-cols h4 {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 600;
}

.foot-cols a {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	color: rgb(var(--ink-2));
	transition: color 200ms;
}

.foot-cols a:hover {
	color: rgb(var(--ink));
}

.bar-word {
	height: clamp(90px, 15vw, 190px);
	margin: 56px 0 28px;
	cursor: crosshair;
}

.foot-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font-size: 13px;
	color: rgb(var(--ink-2));
}

.foot-bottom a {
	color: rgb(var(--ink));
}

.foot-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* ── Keyframes ──────────────────────────────────────────────────────────── */

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes swap-in {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.98);
		filter: blur(6px);
	}
	to {
		opacity: 1;
		transform: none;
		filter: blur(0);
	}
}

@keyframes word-in {
	from {
		opacity: 0;
		transform: translateY(0.4em);
		filter: blur(6px);
	}
	to {
		opacity: 1;
		transform: none;
		filter: blur(0);
	}
}

@keyframes view-in {
	from {
		opacity: 0;
		transform: translateX(calc(var(--dir, 1) * 22px)) scale(0.985);
		filter: blur(3px);
	}
	to {
		opacity: 1;
		transform: none;
		filter: blur(0);
	}
}

/* The old screen clears in a few frames and the new one starts a beat later,
   so the two never ghost over each other. */
@keyframes view-out {
	to {
		opacity: 0;
		transform: translateX(calc(var(--dir, 1) * -12px)) scale(0.99);
		filter: blur(2px);
	}
}

@keyframes fade {
	from {
		opacity: 0;
	}
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes sheet {
	from {
		opacity: 0;
		transform: translateY(24px) scale(0.98);
	}
}

@keyframes toast {
	0% {
		opacity: 0;
		transform: translateY(12px) scale(0.96);
	}
	12%,
	85% {
		opacity: 1;
		transform: none;
	}
	100% {
		opacity: 0;
		transform: translateY(4px);
	}
}

@keyframes saved {
	0% {
		opacity: 0;
		transform: translateY(4px);
	}
	15%,
	75% {
		opacity: 1;
		transform: none;
	}
	100% {
		opacity: 0;
	}
}

@keyframes rate-in {
	from {
		opacity: 0;
		transform: translateY(70%);
		filter: blur(2px);
	}
}

@keyframes send-in {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.96);
	}
}

@keyframes row-scan {
	to {
		transform: translateX(100%);
	}
}

@keyframes scene-in {
	from {
		opacity: 0;
	}
}

@keyframes glow-breathe {
	to {
		transform: scale(1.12);
		opacity: 0.8;
	}
}

/* Matches the canvas: dark while everything is drawn in, then the dark lifts
   under the bloom. */
@keyframes scene-out {
	0%,
	64% {
		background-color: rgb(9 8 15);
		opacity: 1;
	}
	76%,
	80% {
		background-color: rgb(9 8 15 / 0);
		opacity: 1;
	}
	100% {
		background-color: rgb(9 8 15 / 0);
		opacity: 0;
	}
}

@keyframes reveal-in {
	from {
		opacity: 0;
		transform: translateY(18px) scale(0.97);
		filter: blur(10px);
	}
}

@keyframes window-in {
	from {
		opacity: 0;
		transform: translateY(24px) scale(0.94);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes window-bump {
	0% {
		transform: none;
	}
	35% {
		transform: translateY(-6px) scale(1.012);
	}
	100% {
		transform: none;
	}
}

@keyframes bar {
	0%,
	100% {
		transform: scaleY(0.35);
	}
	50% {
		transform: scaleY(1);
	}
}

@keyframes pulse-dot {
	0%,
	100% {
		box-shadow: 0 0 0 0 rgb(var(--accent) / 0.55);
	}
	60% {
		box-shadow: 0 0 0 6px rgb(var(--accent) / 0);
	}
}

@keyframes shimmer {
	to {
		transform: translateX(100%);
	}
}

@keyframes blink {
	0%,
	80%,
	100% {
		opacity: 0.25;
	}
	40% {
		opacity: 1;
	}
}

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

@keyframes float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-6px);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 1ms !important;
		animation-iteration-count: 1 !important;
		animation-delay: 0ms !important;
		transition-duration: 1ms !important;
		transition-delay: 0ms !important;
	}
	.reveal {
		filter: none;
	}
	.scene-glow,
	.row-scan::before {
		animation: none !important;
	}
}

/* Social card render (?og). */
.og .nav,
.og .hero-transcript {
	display: none;
}

.og .hero {
	padding-top: 72px;
}
