/* Standalone landing page — no Docusaurus/Infima styles are loaded here. */

:root {
	--ink: #0e1116;
	--muted: #5c6373;
	--bg: #ffffff;
	--surface: #ffffff;
	--surface-soft: #f6f7f9;
	--border: #e6e8ec;
	--border-strong: #d6dae1;

	--brand: #2e8555;
	--brand-strong: #206a42;
	--brand-tint: rgba(46, 133, 85, 0.08);

	/* Note colors, lifted from the app itself. */
	--note-yellow: #f7e9a4;
	--note-pink: #ffc2cf;
	--note-purple: #ddcbfb;
	--note-mint: #bdeacd;

	--radius: 18px;
	--radius-sm: 12px;
	--shell: 1120px;
	--shadow-sm: 0 1px 2px rgba(14, 17, 22, 0.05), 0 4px 12px rgba(14, 17, 22, 0.04);
	--shadow-lg: 0 24px 60px -24px rgba(14, 17, 22, 0.28);

	/* Glass header: resting state at the top, denser once the page moves. */
	--glass-bg: rgba(255, 255, 255, 0.5);
	--glass-bg-strong: rgba(255, 255, 255, 0.76);
	--glass-shadow: 0 10px 30px -14px rgba(14, 17, 22, 0.3), 0 2px 6px -2px rgba(14, 17, 22, 0.08);
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	/*
	 * SF Rounded, where the visitor actually has it. Measured in both engines:
	 * the named family is the only route that works inside a font stack. WebKit
	 * ignores the ui-rounded keyword outright and Chrome honours it only as a
	 * sole value, so it sits here as future-proofing, not as the working path.
	 * Everyone else falls through to the system stack below.
	 */
	font-family: "SF Pro Rounded", ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

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

a {
	color: var(--brand);
	text-decoration: none;
}

a:hover {
	color: var(--brand-strong);
}

h1,
h2,
h3 {
	letter-spacing: -0.022em;
	line-height: 1.12;
	margin: 0;
	text-wrap: balance;
}

:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 3px;
	border-radius: 4px;
}

.shell {
	width: 100%;
	max-width: var(--shell);
	margin: 0 auto;
	padding: 0 1.25rem;
}

.section {
	padding: clamp(3.5rem, 9vw, 6.5rem) 0;
}

.section-title {
	font-size: clamp(1.65rem, 3.6vw, 2.4rem);
	text-align: center;
}

.section-lede {
	margin: 1rem auto 0;
	max-width: 46ch;
	text-align: center;
	color: var(--muted);
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0.5rem;
	z-index: 100;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 0.5rem 1rem;
}

.skip-link:focus {
	left: 1rem;
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.8rem 1.4rem;
	border: 1px solid var(--brand);
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
	font-size: 0.98rem;
	font-weight: 600;
	white-space: nowrap;
	transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

.btn:hover {
	background: var(--brand-strong);
	border-color: var(--brand-strong);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 10px 24px -12px rgba(32, 106, 66, 0.9);
}

.btn:active {
	transform: translateY(0);
}

.btn-sm {
	padding: 0.5rem 1rem;
	font-size: 0.9rem;
}

.btn-ghost {
	background: transparent;
	border-color: var(--border-strong);
	color: var(--ink);
}

.btn-ghost:hover {
	background: var(--surface-soft);
	border-color: var(--ink);
	color: var(--ink);
	box-shadow: none;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 600;
}

.link-arrow span {
	transition: transform 0.2s var(--ease);
}

.link-arrow:hover span {
	transform: translateX(3px);
}

/* ---------- Header ---------- */

/*
 * The bar itself is only a sticky, transparent rail: all the glass lives on the
 * pill inside it, so the page scrolls visibly through the gaps around it.
 * Height stays constant between states -- the header is in flow, so animating
 * its height would shove the whole page around on every scroll toggle.
 */
.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	padding: 0.5rem 0;
	pointer-events: none;
}

.site-header > * {
	pointer-events: auto;
}

.header-inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: 56px;
	padding-right: 0.85rem;
	border-radius: 20px;
	/* Saturation is what sells it: the hero blobs bleed colour through the pill. */
	-webkit-backdrop-filter: saturate(190%) blur(16px);
	backdrop-filter: saturate(190%) blur(16px);
	background-color: var(--glass-bg);
	background-image:
		linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 62%),
		linear-gradient(
			100deg,
			rgba(247, 233, 164, 0.16),
			rgba(255, 194, 207, 0.13) 36%,
			rgba(221, 203, 251, 0.15) 66%,
			rgba(189, 234, 205, 0.13)
		);
	transition:
		width 0.35s var(--ease),
		max-width 0.35s var(--ease),
		background-color 0.35s var(--ease),
		box-shadow 0.35s var(--ease);
}

/* Specular rim: a 1px gradient border, bright where the light lands. */
.header-inner::before {
	content: "";
	position: absolute;
	inset: 0;
	padding: 1px;
	border-radius: inherit;
	background: linear-gradient(
		158deg,
		rgba(255, 255, 255, 0.95),
		rgba(255, 255, 255, 0.4) 28%,
		rgba(255, 255, 255, 0) 54%,
		rgba(14, 17, 22, 0.07)
	);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0.7;
	pointer-events: none;
	transition: opacity 0.35s var(--ease);
}

/* Scrolled: the pill lifts off the page, pulls in and thickens. */
.site-header.is-scrolled .header-inner {
	width: calc(100% - 1.5rem);
	max-width: calc(var(--shell) - 72px);
	background-color: var(--glass-bg-strong);
	box-shadow: var(--glass-shadow);
}

.site-header.is-scrolled .header-inner::before {
	opacity: 1;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin-right: auto;
	color: var(--ink);
	font-size: 1.02rem;
	font-weight: 650;
	letter-spacing: -0.01em;
}

.brand img {
	width: 30px;
	height: 30px;
}

/*
 * The links sit in their own capsule inside the header pill. Deliberately a flat
 * tint with no second backdrop-filter: the pill has already blurred this patch of
 * page, so a nested filter costs an extra compositing pass every frame and renders
 * indistinguishably from this.
 */
.site-nav {
	display: flex;
	align-items: center;
	gap: 1.15rem;
	padding: 0.4rem 0.95rem;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.42);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.85),
		inset 0 -1px 0 rgba(14, 17, 22, 0.03),
		0 1px 2px rgba(14, 17, 22, 0.05);
	font-size: 0.95rem;
	font-weight: 500;
	transition: background-color 0.35s var(--ease);
}

.site-header.is-scrolled .site-nav {
	background-color: rgba(255, 255, 255, 0.55);
}

.site-nav a {
	color: var(--muted);
	white-space: nowrap;
	transition: color 0.15s var(--ease);
}

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

/* ---------- Hero ---------- */

.hero {
	position: relative;
	padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3rem);
	text-align: center;
	isolation: isolate;
}

.hero-glow {
	position: absolute;
	inset: -18% 0 auto;
	height: 780px;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
	mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
	-webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

.blob {
	position: absolute;
	width: 46vw;
	max-width: 620px;
	aspect-ratio: 1;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.75;
}

.blob-yellow {
	left: 4%;
	top: 8%;
	background: var(--note-yellow);
}

.blob-pink {
	right: 2%;
	top: 0;
	background: var(--note-pink);
	opacity: 0.6;
}

.blob-purple {
	left: 32%;
	top: 26%;
	background: var(--note-purple);
	opacity: 0.55;
}

@media (prefers-reduced-motion: no-preference) {
	.blob {
		animation: drift 22s ease-in-out infinite alternate;
	}

	.blob-pink {
		animation-duration: 27s;
		animation-delay: -6s;
	}

	.blob-purple {
		animation-duration: 32s;
		animation-delay: -12s;
	}
}

@keyframes drift {
	from {
		transform: translate3d(0, 0, 0) scale(1);
	}

	to {
		transform: translate3d(3%, 5%, 0) scale(1.12);
	}
}

.hero h1 {
	font-size: clamp(2.4rem, 7.5vw, 4.25rem);
	font-weight: 700;
	letter-spacing: -0.035em;
}

.gradient-text {
	background: linear-gradient(100deg, var(--brand) 10%, #16a34a 45%, #0ea5a4 90%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.lede {
	margin: 1.25rem auto 0;
	max-width: 42ch;
	color: var(--muted);
	font-size: clamp(1.05rem, 2.2vw, 1.3rem);
	text-wrap: balance;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1.25rem 1.75rem;
	margin-top: 2.25rem;
}

.appstore {
	display: inline-block;
	border-radius: 9px;
	transition: transform 0.2s var(--ease);
}

.appstore img {
	display: block;
	width: 180px;
	height: 46px;
}

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

.hero-note {
	margin: 1rem 0 0;
	color: var(--muted);
	font-size: 0.85rem;
}

.hero-shot {
	margin-top: clamp(2.5rem, 6vw, 4rem);
	transition: transform 0.4s var(--ease);
	will-change: transform;
}

.hero-shot img {
	display: block;
	width: 100%;
	filter: drop-shadow(0 32px 48px rgba(14, 17, 22, 0.22));
}

/* ---------- Ways to capture ---------- */

.ways {
	padding-top: clamp(2rem, 5vw, 3rem);
}

.chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem;
	margin: 2.25rem 0 0;
	padding: 0;
	list-style: none;
}

.chips li {
	padding: 0.45rem 1rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	box-shadow: var(--shadow-sm);
	color: var(--ink);
	font-size: 0.92rem;
	font-weight: 550;
}

/* ---------- Features ---------- */

.features {
	padding-top: clamp(1.25rem, 3vw, 2rem);
}

.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.card {
	position: relative;
	padding: 1.75rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow-sm);
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.card:hover {
	transform: translateY(-4px);
	border-color: var(--border-strong);
	box-shadow: var(--shadow-lg);
}

.icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 1.1rem;
	border-radius: 13px;
	color: #1d2430;
}

.icon svg {
	width: 22px;
	height: 22px;
}

.icon-yellow {
	background: var(--note-yellow);
}

.icon-pink {
	background: var(--note-pink);
}

.icon-purple {
	background: var(--note-purple);
}

.icon-green {
	background: var(--note-mint);
}

.card h3 {
	font-size: 1.12rem;
	font-weight: 650;
}

.card p {
	margin: 0.6rem 0 0;
	color: var(--muted);
	font-size: 0.98rem;
}

/* ---------- Shortcuts ---------- */

.shortcuts {
	border-top: 1px solid var(--border);
	background: var(--surface-soft);
}

.shortcuts-inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.shortcuts-copy h2 {
	font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}

.shortcuts-copy p {
	margin: 1rem 0 0;
	color: var(--muted);
}

.keys {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.keys li {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	box-shadow: var(--shadow-sm);
	font-size: 0.9rem;
}

.keys span {
	margin-left: auto;
	padding-left: 0.5rem;
	color: var(--muted);
}

kbd {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	padding: 0 0.35rem;
	border: 1px solid var(--border-strong);
	border-bottom-width: 2px;
	border-radius: 7px;
	background: linear-gradient(180deg, #fff, #f2f3f5);
	color: var(--ink);
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 600;
}

/* ---------- Languages ---------- */

.languages {
	text-align: center;
}

.languages-icon {
	display: block;
	width: 72px;
	height: 72px;
	margin: 0 auto 1.75rem;
	filter: drop-shadow(0 8px 18px rgba(14, 17, 22, 0.16));
}

.flags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.85rem;
	margin: 2.5rem 0 0;
	padding: 0;
	list-style: none;
}

/*
 * Inline SVG rather than emoji flags: Windows ships no flag glyphs, so the
 * emoji route degrades to bare letter pairs ("US", "FR") off the Mac.
 */
.flags li {
	width: 44px;
	height: 44px;
	overflow: hidden;
	border-radius: 50%;
	box-shadow:
		var(--shadow-sm),
		inset 0 0 0 1px rgba(14, 17, 22, 0.07);
}

.flags svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* ---------- CTA ---------- */

.cta-panel {
	position: relative;
	overflow: hidden;
	padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem);
	border: 1px solid var(--border);
	border-radius: 26px;
	background:
		radial-gradient(120% 140% at 12% 0%, rgba(247, 233, 164, 0.55), transparent 55%),
		radial-gradient(120% 140% at 88% 10%, rgba(221, 203, 251, 0.55), transparent 55%),
		radial-gradient(100% 120% at 60% 100%, rgba(255, 194, 207, 0.4), transparent 60%),
		var(--surface);
	text-align: center;
}

.cta-panel h2 {
	font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.cta-panel p {
	margin: 1.1rem auto 0;
	max-width: 54ch;
	color: var(--muted);
}

.cta-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 2rem;
}

/* ---------- Footer ---------- */

.site-footer {
	border-top: 1px solid var(--border);
	padding: 2.5rem 0;
	color: var(--muted);
	font-size: 0.92rem;
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
}

.footer-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 550;
	color: var(--ink);
}

.site-footer nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
}

.site-footer nav a {
	color: var(--muted);
}

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

.copyright {
	margin: 0;
}

/* ---------- Reveal on scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
	/*
	 * Scoped to .js-reveal, set by the bootstrap in <head>. Without that class
	 * every [data-reveal] renders normally, so scripting being off, slow or
	 * broken costs the animation -- never the content.
	 */
	.js-reveal [data-reveal] {
		opacity: 0;
		transform: translateY(14px);
		transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
	}

	.js-reveal [data-reveal].is-visible {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
	.header-inner {
		gap: 0.75rem;
		padding-left: 1rem;
		padding-right: 0.6rem;
		border-radius: 18px;
	}

	.site-nav {
		gap: 0.9rem;
		padding: 0.35rem 0.75rem;
		font-size: 0.9rem;
	}

	.site-nav a:nth-child(3) {
		display: none;
	}
}

@media (max-width: 560px) {
	body {
		font-size: 16px;
	}

	.site-header {
		padding: 0.375rem 0;
	}

	.header-inner {
		min-height: 52px;
		border-radius: 16px;
	}

	.site-header.is-scrolled .header-inner {
		width: calc(100% - 1rem);
	}

	.site-nav a:nth-child(2) {
		display: none;
	}

	/*
	 * Only one link survives here, and a capsule around a lone word reads as a
	 * stray button -- plus the padding is width the pill can't spare at 320px.
	 */
	.site-nav {
		padding: 0;
		background-color: transparent;
		box-shadow: none;
	}

	.hero-actions {
		flex-direction: column;
		gap: 1rem;
	}

	.keys li {
		font-size: 0.86rem;
	}

	.flags {
		gap: 0.6rem;
	}

	.flags li {
		width: 38px;
		height: 38px;
	}

	.footer-inner {
		flex-direction: column;
		text-align: center;
	}
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}
