/* ZOOMRIYA website. Light by default in the apps' Midnight colours: soft
   lavender-white sections, indigo ink, Midnight's blue and violet accents,
   and a Midnight waitlist band and footer. A dark theme (Midnight itself) is
   at the end. Bundled font, no third-party requests. */

@font-face {
	font-family: 'Inter';
	src: url('../fonts/inter-var.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	/* Backgrounds */
	--paper: #f6f7fb;
	--ice: #eef0fb;
	--white: #ffffff;
	--mist: #f1f3fa;
	--navy: #0e1119;
	--navy-2: #131830;
	--navy-deep: #080a10;

	/* Text: every one passes 4.5:1 on paper, ice and white */
	--text: #12172b;
	--muted: #4a5170;
	--dim: #5d6480;
	--accent: #3d55d9;

	/* Lines and surfaces */
	--line: #dfe3f1;
	--line-strong: #c3c9de;
	--surface: rgba(255, 255, 255, 0.78);
	--tint: #eceffe;

	/* Midnight's blue and violet, for fills and icons rather than small text */
	--blue: #4a63e8;
	--violet: #6246e5;
	--cyan: #8fa3ff;
	--ok: #13773a;
	--warn: #9a5b00;
	--error: #c0263d;

	/* The four apps */
	--photos: #5b72ee;
	--photos-soft: #f0f2fe;
	--vault: #8b6cf0;
	--vault-soft: #f4f0fe;
	--tracker: #2fae73;
	--tracker-soft: #eefaf4;
	--chat: #e47f98;
	--chat-soft: #fff1f4;

	/* Filled buttons: Midnight's blue-to-violet with white text */
	--btn: linear-gradient(135deg, #4a63e8 0%, #6246e5 100%);
	--btn-text: #ffffff;
	--btn-hover: linear-gradient(135deg, #5670f0 0%, #6d52ee 100%);
	--accent-line: #c3cdfb;

	--grad: linear-gradient(120deg, #3d55d9 0%, #6a3fd6 100%);
	--shadow: 0 20px 60px rgba(18, 23, 43, 0.1);
	--shadow-sm: 0 8px 24px rgba(18, 23, 43, 0.07);
	--radius: 22px;
	--radius-sm: 14px;
	--max: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	color-scheme: light;
}

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

main {
	position: relative;
}

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

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

h1,
h2,
h3,
h4 {
	margin: 0;
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

p {
	margin: 0;
}

figure {
	margin: 0;
}

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

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

.skip-link {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 100;
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--btn);
	color: var(--btn-text);
	font-weight: 600;
}

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

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

/* ---------- Brand wordmark (letters + swoosh, two stacked images) ---------- */

.brand {
	display: inline-flex;
	align-items: center;
}

.wordmark {
	position: relative;
	display: inline-block;
	height: 18px;
	aspect-ratio: 1262 / 162;
}

/* Both layers are images stacked exactly, so the logo also shows when the
   page is opened from disk. Navy letters in the header, white in the footer. */
.wordmark__letters,
.wordmark__swoosh {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.wordmark--lg {
	height: 24px;
}

/* ---------- Buttons, badges, status pills ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		background 0.2s ease,
		border-color 0.2s ease;
}

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

.btn--primary {
	background: var(--btn);
	color: var(--btn-text);
	box-shadow: 0 0.35rem 1rem -0.3rem rgba(98, 70, 229, 0.45);
}

.btn--primary:hover {
	background: var(--btn-hover);
	box-shadow: 0 0.5rem 1.25rem -0.3rem rgba(98, 70, 229, 0.5);
}

.btn--ghost {
	background: rgba(255, 255, 255, 0.72);
	border-color: var(--line-strong);
	color: var(--text);
}

.btn--ghost:hover {
	background: #fff;
	border-color: var(--blue);
}

.btn--sm {
	min-height: 40px;
	padding: 0 18px;
	font-size: 14px;
}

.btn[disabled] {
	opacity: 0.6;
	cursor: progress;
	transform: none;
}

.badge {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 5px 14px 5px 6px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--white);
	box-shadow: var(--shadow-sm);
	color: var(--muted);
	font-size: 13.5px;
	font-weight: 500;
}

.badge__dot {
	padding: 2px 9px;
	border-radius: 999px;
	background: var(--tint);
	color: var(--accent);
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #eef0f6;
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.status::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.status--soon {
	background: #e3f5ea;
	color: #13773a;
}

.status--planned {
	background: var(--tint);
	color: #3d55d9;
}

.status--later {
	background: #f1ecfe;
	color: #6a3fd6;
}

/* Highlighted words in headings: Midnight blue to violet, dark enough for large text. */
.gradient-text {
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.eyebrow {
	display: inline-block;
	margin-bottom: 14px;
	color: var(--accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.text-link {
	color: var(--accent);
	font-weight: 600;
	white-space: nowrap;
}

.text-link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

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

.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	background: rgba(246, 247, 251, 0.88);
	border-bottom: 1px solid transparent;
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	transition:
		border-color 0.25s ease,
		box-shadow 0.25s ease;
	view-transition-name: site-header;
}

.site-header.is-scrolled {
	border-bottom-color: rgba(223, 227, 241, 0.9);
	box-shadow: 0 6px 24px rgba(18, 23, 43, 0.05);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 76px;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 28px;
	color: #3f4663;
	font-size: 14.5px;
	font-weight: 600;
}

:lang(fr) .site-nav {
	gap: 22px;
}

.site-nav a {
	white-space: nowrap;
	transition: color 0.2s ease;
}

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

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

.header-cta__short {
	display: none;
}

.nav-toggle {
	display: none;
	width: 42px;
	height: 42px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--white);
	color: var(--text);
	cursor: pointer;
}

.nav-toggle svg {
	margin: auto;
}

.lang-switch {
	display: inline-flex;
	padding: 3px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--white);
	white-space: nowrap;
}

.lang-switch a {
	padding: 4px 10px;
	border-radius: 999px;
	color: var(--muted);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.4;
}

.lang-switch a:hover {
	color: var(--text);
}

.lang-switch a[aria-current] {
	background: var(--btn);
	color: var(--btn-text);
}

/* ---------- Sections ---------- */

.section {
	position: relative;
	padding-block: clamp(72px, 10vw, 112px);
	background: var(--white);
}

/* Alternate sections: a soft ice wash, like the mock-up. */
.section--alt {
	background: linear-gradient(115deg, var(--ice), #f5f3fd);
}

.section-head {
	max-width: 720px;
	margin: 0 auto clamp(40px, 6vw, 60px);
	text-align: center;
}

.section-head h2 {
	font-size: clamp(32px, 4.2vw, 48px);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.1;
}

.section-head p {
	margin-top: 16px;
	color: var(--muted);
	font-size: clamp(17px, 1.7vw, 19px);
}

/* ---------- Hero: words on the left, the apps and the box on the right ---------- */

.hero {
	position: relative;
	padding-top: clamp(116px, 13vw, 150px);
	padding-bottom: clamp(48px, 6vw, 72px);
	overflow: hidden;
	background:
		radial-gradient(ellipse at 78% 38%, #e2e6fd 0, transparent 40%),
		radial-gradient(ellipse at 95% 90%, #efe8fd 0, transparent 35%),
		linear-gradient(115deg, #f8f8fc 0%, #f4f5fb 48%, #eef0fb 100%);
}

.hero__grid {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	align-items: center;
	gap: clamp(32px, 4vw, 56px);
}

.hero h1 {
	margin-top: 22px;
	font-size: clamp(40px, 5vw, 64px);
	font-weight: 800;
	letter-spacing: -0.055em;
	line-height: 1.04;
}

/* Let the columns shrink below the app window's natural width on small screens. */
.hero__grid > * {
	min-width: 0;
}

.hero__lead {
	max-width: 520px;
	margin-top: 22px;
	color: var(--muted);
	font-size: clamp(17px, 1.6vw, 19px);
	line-height: 1.7;
	text-wrap: pretty;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.hero__note {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: 20px;
	color: var(--dim);
	font-size: 13.5px;
}

.hero__note::before {
	content: '';
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%234a63e8' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat,
		var(--tint);
}

.hero__visual {
	position: relative;
	padding-bottom: 56px;
}

.hero__stage {
	position: relative;
}

/* The real box, in front of the app window like a photo on a desk. */
.hero__box {
	position: absolute;
	left: -6%;
	bottom: -8px;
	z-index: 3;
	width: 46%;
	height: auto;
	filter: drop-shadow(0 22px 22px rgba(18, 23, 43, 0.28));
	pointer-events: none;
}

/* ---------- App window mock-up ---------- */

.mock {
	position: relative;
	border: 1px solid var(--line);
	border-radius: 22px;
	background: var(--white);
	box-shadow: var(--shadow);
	text-align: left;
	overflow: hidden;
}

.mock__bar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--line);
	background: var(--mist);
}

.mock__dots {
	display: flex;
	gap: 6px;
}

.mock__dots span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #d5d9e8;
}

.mock__url {
	flex: 1;
	max-width: 320px;
	margin-inline: auto;
	padding: 4px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--white);
	color: var(--dim);
	font-size: 12px;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mock__tabs {
	display: flex;
	gap: 4px;
	padding: 8px 14px 0;
	border-bottom: 1px solid var(--line);
	overflow-x: auto;
	scrollbar-width: none;
}

.mock__tab {
	padding: 8px 12px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: none;
	color: var(--dim);
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
}

.mock__tab:hover {
	color: var(--text);
}

.mock__tab[aria-selected='true'] {
	color: var(--text);
	border-bottom-color: var(--blue);
}

.mock__main {
	padding: 16px;
}

.mock__panel[hidden] {
	display: none;
}

.mock__search {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--mist);
	color: var(--text);
	font-size: 14px;
}

.mock__search svg {
	flex: none;
	color: var(--accent);
}

.mock__search em {
	margin-left: auto;
	color: var(--dim);
	font-size: 12px;
	font-style: normal;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}

.mock__search em.is-hidden {
	opacity: 0;
}

/* The caret while the hero search types an example. */
.mock__query.is-typing::after {
	content: '';
	display: inline-block;
	width: 2px;
	height: 1.1em;
	margin-left: 2px;
	vertical-align: -0.18em;
	background: var(--blue);
	animation: caretBlink 0.9s steps(1) infinite;
}

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

/* Example searches under the hero search; one row that scrolls sideways on phones. */
.mock__try {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}

.mock__try::-webkit-scrollbar,
.mock__tabs::-webkit-scrollbar {
	display: none;
}

.no-js .mock__try {
	display: none;
}

.pill {
	flex: none;
	scroll-snap-align: start;
	padding: 5px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--white);
	color: var(--muted);
	font: inherit;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	transition:
		color 0.2s ease,
		background 0.2s ease,
		border-color 0.2s ease,
		transform 0.2s ease;
}

.pill:hover {
	color: var(--text);
	border-color: var(--line-strong);
	transform: translateY(-1px);
}

.pill[aria-pressed='true'] {
	color: var(--accent);
	border-color: var(--accent-line);
	background: var(--tint);
}

.pill:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 2px;
}

.mock__label {
	margin: 14px 0 8px;
	color: var(--dim);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tiles {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 7px;
}

.tile {
	aspect-ratio: 1;
	border-radius: 10px;
}

img.tile {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	background: var(--mist);
}

/* Photos swapping between searches: out together, back in one after another. */
[data-results] .tile {
	transition:
		opacity 0.35s ease,
		transform 0.35s ease;
}

[data-results] .tile:nth-child(2) { transition-delay: 0.04s; }
[data-results] .tile:nth-child(3) { transition-delay: 0.08s; }
[data-results] .tile:nth-child(4) { transition-delay: 0.12s; }
[data-results] .tile:nth-child(5) { transition-delay: 0.16s; }
[data-results] .tile:nth-child(6) { transition-delay: 0.2s; }

[data-results].is-swapping .tile {
	opacity: 0;
	transform: scale(0.94);
	transition-delay: 0s;
}

[data-results] .tile.is-empty {
	visibility: hidden;
}

.albums {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
}

.album figcaption {
	margin-top: 5px;
	color: var(--text);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
}

.album small {
	display: block;
	color: var(--dim);
	font-size: 11px;
	font-weight: 400;
}

.mock__row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	margin-bottom: 8px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--white);
	font-size: 14px;
}

.mock__row small {
	display: block;
	color: var(--dim);
	font-size: 12px;
}

.mock__row .status {
	margin-left: auto;
}

.mock__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 11px;
	background: var(--tint);
	color: var(--accent);
}

.bubble {
	max-width: 80%;
	margin-bottom: 10px;
	padding: 10px 14px;
	border-radius: 16px 16px 16px 4px;
	background: var(--mist);
	border: 1px solid var(--line);
	font-size: 14px;
}

.bubble small {
	display: block;
	margin-bottom: 2px;
	color: var(--accent);
	font-size: 12px;
	font-weight: 700;
}

.bubble--me {
	margin-left: auto;
	border-radius: 16px 16px 4px 16px;
	background: var(--tint);
	border-color: #cdd5fb;
}

.bubble__photos {
	display: grid;
	grid-template-columns: repeat(3, 56px);
	gap: 6px;
	margin-top: 8px;
}

.bubble__photos .tile {
	width: 56px;
}

.map {
	position: relative;
	height: 230px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background:
		linear-gradient(rgba(20, 47, 72, 0.05) 1px, transparent 1px) 0 0 / 40px 40px,
		linear-gradient(90deg, rgba(20, 47, 72, 0.05) 1px, transparent 1px) 0 0 / 40px 40px,
		radial-gradient(circle at 30% 40%, rgba(67, 180, 141, 0.16), transparent 50%),
		#f2f7f4;
	overflow: hidden;
}

.map__road {
	position: absolute;
	height: 10px;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 0 0 1px #e1e9e5;
}

.map__road--a {
	left: -5%;
	right: -5%;
	top: 46%;
	transform: rotate(-8deg);
}

.map__road--b {
	top: -10%;
	bottom: -10%;
	left: 58%;
	width: 10px;
	height: auto;
	transform: rotate(12deg);
}

.map__pin {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 10px 4px 4px;
	border-radius: 999px;
	background: var(--white);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-sm);
	font-size: 12px;
	white-space: nowrap;
}

.map__pin b {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--tracker);
	color: #fff;
	font-size: 11px;
}

.map__pin--a {
	left: 14%;
	top: 22%;
}

.map__pin--b {
	left: 54%;
	top: 60%;
}

.map__place {
	position: absolute;
	left: 10%;
	top: 14%;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	border: 1px dashed rgba(67, 180, 141, 0.7);
	background: rgba(67, 180, 141, 0.08);
}

/* Little notes floating on the hero window, like the mock-up's caption card. */
.float-card {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: 15px;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: var(--shadow);
	color: var(--text);
	font-size: 13px;
	font-weight: 600;
	text-align: left;
}

.float-card small {
	display: block;
	color: var(--dim);
	font-size: 11.5px;
	font-weight: 400;
}

.float-card .icon-tile {
	width: 36px;
	height: 36px;
	border-radius: 11px;
}

.float-card--a {
	right: -18px;
	bottom: 6px;
}

.float-card--b {
	right: -18px;
	top: -22px;
}

/* ---------- Promise strip ---------- */

.promises {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 28px;
	margin-top: clamp(36px, 5vw, 56px);
	padding: 16px 22px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.8);
	box-shadow: var(--shadow-sm);
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
}

.promises span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.promises svg {
	color: var(--accent);
}

/* ---------- Cards and the apps grid ---------- */

.card {
	position: relative;
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow);
}

.card h3 {
	font-size: 20px;
	font-weight: 750;
}

.card p {
	margin-top: 10px;
	color: var(--muted);
	font-size: 15.5px;
}

.card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.icon-tile {
	display: grid;
	place-items: center;
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: var(--tint);
	color: var(--accent);
	transition: transform 0.25s ease;
}

.card > .icon-tile:first-child {
	margin-bottom: 16px;
}

.card:hover .icon-tile {
	transform: scale(1.08) rotate(-4deg);
}

.ticks {
	display: grid;
	gap: 8px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: 15px;
}

.ticks li {
	display: flex;
	gap: 10px;
}

.ticks li::before {
	content: '';
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2308775d' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat,
		#d3f1e8;
}

.bento {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 18px;
}

.bento > .card {
	grid-column: span 2;
}

/* Family Photos, the first app: a wide card with the search example. */
.bento > .card--wide {
	grid-column: span 6;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 24px 48px;
}

.card--hero h3 {
	font-size: 28px;
}

.card--hero .ticks {
	grid-template-columns: 1fr 1fr;
	gap: 10px 22px;
}

.bento > .card--soon {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 22px;
}

.card--soon h3 {
	margin: 10px 0 4px;
	font-size: 18px;
}

.card--soon p {
	margin: 0;
	font-size: 14.5px;
}

/* Each app has its own colour: a soft wash and a filled icon. */
#apps .card {
	background: linear-gradient(160deg, var(--app-soft, var(--photos-soft)), var(--white) 75%);
}

#apps .card .icon-tile {
	background: var(--app, var(--photos));
	color: #fff;
}

#apps .card--soon:nth-of-type(2) {
	--app: var(--vault);
	--app-soft: var(--vault-soft);
}

#apps .card--soon:nth-of-type(3) {
	--app: var(--tracker);
	--app-soft: var(--tracker-soft);
}

#apps .card--soon:nth-of-type(4) {
	--app: var(--chat);
	--app-soft: var(--chat-soft);
}

.search-demo__q {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--white);
	box-shadow: var(--shadow-sm);
	font-size: 14px;
}

.search-demo__q svg {
	flex: none;
	color: var(--accent);
}

.search-demo__tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 10px;
}

.search-demo__tiles .tile {
	border-radius: 14px;
}

.search-demo__note {
	margin-top: 10px;
	color: var(--dim);
	font-size: 13px;
}

/* ---------- Why it matters now: three figures ---------- */

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

.stat {
	display: grid;
	align-content: start;
	gap: 8px;
	padding: 26px 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
}

.stat__number {
	font-size: clamp(36px, 4.4vw, 50px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--text);
}

.stat__label {
	color: var(--muted);
	font-size: 15px;
}

.stat__source {
	margin-top: 4px;
	color: var(--dim);
	font-size: 12.5px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.stat__source:hover {
	color: var(--accent);
}

/* ---------- Diagrams ---------- */

.diagram {
	padding: clamp(16px, 3vw, 28px);
	border: 1px solid var(--line);
	border-radius: 24px;
	background: var(--white);
	box-shadow: 0 14px 45px rgba(18, 23, 43, 0.06);
	overflow-x: auto;
	scrollbar-width: thin;
}

.diagram svg {
	width: 100%;
	min-width: 640px;
	height: auto;
}

.diagram figcaption {
	margin-top: 14px;
	color: var(--dim);
	font-size: 13px;
	text-align: center;
}

.prose .diagram {
	margin: 24px 0;
}

.dg-card { fill: #ffffff; stroke: #d5dbec; stroke-width: 1.25; }
.dg-frame { fill: #f5f6fd; stroke: url(#dg-grad); stroke-width: 2; }
.dg-app { fill: #ffffff; stroke: #dbe0ef; stroke-width: 1.25; }
.dg-hl { fill: #eceffe; stroke: #4a63e8; stroke-width: 2; }
.dg-band { fill: #eef0f8; stroke: none; }
.dg-title { fill: #12172b; font-size: 16px; font-weight: 750; }
.dg-name { fill: #12172b; font-size: 14px; font-weight: 700; }
.dg-text { fill: #4a5170; font-size: 12.5px; }
.dg-small { fill: #5d6480; font-size: 11.5px; }
.dg-accent-text { fill: #3d55d9; font-size: 12.5px; font-weight: 700; }
.dg-line { fill: none; stroke: #9aa2bd; stroke-width: 1.5; }
.dg-dash { fill: none; stroke: #a9b0c8; stroke-width: 1.5; stroke-dasharray: 5 5; }
.dg-tunnel { fill: none; stroke: url(#dg-grad); stroke-width: 3.5; stroke-linecap: round; }
.dg-arrow { fill: #9aa2bd; }
.dg-arrow-hl { fill: #4a63e8; }

/* Phone version of each diagram: the same content as plain HTML cards, so the
   text stays readable instead of shrinking with a wide SVG. */
.dgm {
	display: none;
}

/* ---------- Split layout ---------- */

.split {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}

.split h2 {
	font-size: clamp(32px, 4vw, 47px);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.1;
}

.split > div > p {
	margin-top: 16px;
	color: var(--muted);
}

.steps {
	display: grid;
	gap: 14px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.steps li {
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 14px;
	align-items: start;
	color: var(--muted);
	font-size: 15px;
}

.steps li::before {
	counter-increment: step;
	content: counter(step);
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 13px;
	background: var(--tint);
	color: var(--accent);
	font-weight: 800;
}

.steps strong {
	display: block;
	color: var(--text);
	font-size: 16px;
}

/* ---------- How it works: three steps and where the apps open ---------- */

.howto {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin-top: 28px;
}

.howto .card {
	padding: 24px;
}

.howto__n {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin-bottom: 14px;
	border-radius: 11px;
	background: var(--btn);
	color: var(--btn-text);
	font-weight: 800;
}

.reach {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 28px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: 15px;
}

.reach li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.reach svg {
	color: var(--accent);
}

/* ---------- Privacy: three proofs ---------- */

.proofs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin-top: 28px;
}

.proofs .card {
	padding: 24px;
	background: var(--paper);
}

.proofs h3 {
	font-size: 17px;
}

.proofs p {
	font-size: 14.5px;
}

/* ---------- The box ---------- */

.box-visual {
	position: relative;
	padding: 30px;
	border: 1px solid var(--line);
	border-radius: 26px;
	background:
		radial-gradient(ellipse at 50% 30%, #ffffff 0, transparent 60%),
		linear-gradient(160deg, #f5f6fd, #eceffa);
	box-shadow: var(--shadow);
}

.box-art {
	display: block;
	width: 100%;
	max-width: 460px;
	height: auto;
	margin: -12px auto 8px;
	filter: drop-shadow(0 22px 24px rgba(18, 23, 43, 0.25));
}

.spec-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.spec {
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--white);
	font-size: 14px;
}

.spec strong {
	display: block;
	font-size: 14px;
}

.spec span {
	color: var(--dim);
	font-size: 12.5px;
}

.offers {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
	margin-top: 48px;
}

.offer h3 {
	font-size: 19px;
}

.offer__tag {
	display: inline-block;
	margin-bottom: 12px;
	color: var(--accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.offer--main {
	border-color: var(--accent-line);
	background: linear-gradient(160deg, #eef0fe, #fff 70%);
}

/* ---------- Roadmap ---------- */

.roadmap {
	position: relative;
	display: grid;
	gap: 16px;
	max-width: 820px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.roadmap::before {
	content: '';
	position: absolute;
	left: 19px;
	top: 10px;
	bottom: 10px;
	width: 2px;
	background: linear-gradient(180deg, var(--blue), var(--line) 40%, transparent);
}

.roadmap li {
	position: relative;
	display: grid;
	grid-template-columns: 40px 150px 1fr;
	gap: 18px;
	align-items: start;
}

.roadmap__dot {
	position: relative;
	z-index: 1;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid var(--line-strong);
	background: var(--white);
}

.roadmap li.is-next .roadmap__dot {
	border-color: var(--blue);
	box-shadow: 0 0 0 6px rgba(74, 99, 232, 0.14);
	background: radial-gradient(circle, var(--blue) 0 7px, var(--white) 8px);
}

.roadmap__when {
	padding-top: 8px;
	color: var(--accent);
	font-size: 14px;
	font-weight: 750;
}

.roadmap__what {
	padding: 14px 18px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--paper);
}

.roadmap__what strong {
	display: block;
	font-size: 16px;
}

.roadmap__what span {
	color: var(--muted);
	font-size: 14px;
}

.roadmap-note {
	margin-top: 24px;
	color: var(--dim);
	font-size: 13.5px;
	text-align: center;
}

/* ---------- Sign-up: the navy band, with a white form card ---------- */

.section.signup {
	overflow: hidden;
	background: linear-gradient(110deg, var(--navy), var(--navy-2));
	color: #fff;
}

.section.signup::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 82% 20%, rgba(169, 139, 250, 0.22) 0, transparent 42%),
		radial-gradient(ellipse at 10% 80%, rgba(123, 147, 255, 0.16) 0, transparent 45%);
	pointer-events: none;
}

.signup__grid {
	position: relative;
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: clamp(28px, 5vw, 64px);
	align-items: start;
}

.signup .eyebrow {
	color: #8fa3ff;
}

.signup__intro h2 {
	font-size: clamp(34px, 4vw, 48px);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.08;
}

.signup__intro .gradient-text {
	background: none;
	color: #8fa3ff;
}

.signup__intro > p {
	margin-top: 16px;
	color: #a9b1c3;
}

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

.perks li {
	display: flex;
	gap: 12px;
	color: #a9b1c3;
	font-size: 15px;
}

.perks svg {
	flex: none;
	margin-top: 3px;
	color: #8fa3ff;
}

.form {
	padding: clamp(22px, 3.5vw, 34px);
	border-radius: 26px;
	background: var(--white);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
	color: var(--text);
}

.form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.field {
	display: grid;
	gap: 6px;
	margin-bottom: 16px;
}

.field label,
.legend {
	padding: 0;
	color: var(--text);
	font-size: 14px;
	font-weight: 650;
}

.hint {
	color: var(--dim);
	font-weight: 400;
}

input[type='email'],
input[type='text'],
select,
textarea {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--line-strong);
	border-radius: 12px;
	background: var(--white);
	color: var(--text);
	font: inherit;
	font-size: 15px;
}

input::placeholder,
textarea::placeholder {
	color: #8a90a8;
}

textarea {
	min-height: 88px;
	resize: vertical;
}

select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%234a5170' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
	padding-right: 38px;
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(74, 99, 232, 0.18);
}

fieldset {
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	min-width: 0;
}

.choices {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 8px;
}

.choice {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--paper);
	color: var(--muted);
	font-size: 14px;
	cursor: pointer;
}

.form__fields > .choice {
	margin-bottom: 14px;
}

.choice:has(input:checked) {
	border-color: var(--accent-line);
	background: var(--tint);
	color: var(--text);
}

.choice input,
.consent input {
	flex: none;
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--blue);
}

.consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 6px 0 20px;
	color: var(--muted);
	font-size: 13px;
}

.consent input {
	margin-top: 3px;
}

.consent a,
.form__privacy a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Honeypot: off screen for people, there for bots. */
.hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form .btn {
	width: 100%;
}

.form__status {
	min-height: 22px;
	margin-top: 14px;
	font-size: 14px;
	text-align: center;
}

.form__status.is-ok {
	color: var(--ok);
}

.form__status.is-error {
	color: var(--error);
}

.form__privacy {
	margin-top: 10px;
	color: var(--dim);
	font-size: 12.5px;
	text-align: center;
}

.form--done .form__fields {
	display: none;
}

.thanks {
	display: none;
	padding: 30px 10px;
	text-align: center;
}

.form--done .thanks {
	display: block;
}

.thanks h3 {
	margin: 14px 0 8px;
	font-size: 24px;
}

.thanks p {
	color: var(--muted);
}

.thanks .icon-tile {
	margin: 0 auto;
	width: 58px;
	height: 58px;
	background: #d3f1e8;
	color: var(--ok);
}

.more {
	margin-top: 24px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
	text-align: left;
}

.more__intro {
	margin-bottom: 16px;
	color: var(--text);
	font-weight: 600;
}

.thanks__final {
	margin-top: 18px;
	color: var(--ok);
	font-weight: 600;
}

/* ---------- FAQ ---------- */

.faq {
	display: grid;
	max-width: 820px;
	margin: 0 auto;
	border-top: 1px solid var(--line);
}

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

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

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

.faq summary::after {
	content: '+';
	flex: none;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--tint);
	color: var(--accent);
	font-size: 18px;
	font-weight: 600;
}

.faq details[open] summary::after {
	content: '−';
}

.faq details p {
	padding: 0 4px 22px;
	color: var(--muted);
	font-size: 15.5px;
}

/* ---------- Closing band ---------- */

/* The closing band follows the FAQ directly; one gap is enough. */
#faq + .section {
	padding-top: 0;
}

.cta-band {
	padding: clamp(36px, 6vw, 64px);
	border: 1px solid var(--line);
	border-radius: 32px;
	background:
		radial-gradient(ellipse at 85% 20%, #ece6fd 0, transparent 45%),
		radial-gradient(ellipse at 10% 90%, #e2e6fd 0, transparent 45%),
		linear-gradient(115deg, #f8f8fc, #eef0fb);
	text-align: center;
}

.cta-band h2 {
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 800;
	letter-spacing: -0.045em;
}

.cta-band p {
	max-width: 560px;
	margin: 14px auto 0;
	color: var(--muted);
}

.cta-band .hero__actions {
	justify-content: center;
	margin-top: 28px;
}

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

.site-footer {
	padding-block: 56px 32px;
	background: var(--navy-deep);
	color: #8e96aa;
	font-size: 14px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: 32px;
}

.footer-grid h4 {
	margin-bottom: 14px;
	color: #fff;
	font-size: 14px;
}

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

.footer-grid a {
	color: #a9b1c3;
}

.footer-grid a:hover {
	color: #8fa3ff;
}

.footer-grid > div:first-child p {
	max-width: 320px;
	margin-top: 14px;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-top: 44px;
	padding-top: 22px;
	border-top: 1px solid #1d2232;
	color: #8e96aa;
	font-size: 13px;
}

.made-in {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.made-in__flag {
	width: 24px;
	height: 12px;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* ---------- Plain pages (technical details, privacy notice) ---------- */

.prose {
	max-width: 760px;
	margin: 0 auto;
	padding: 140px var(--gutter) 80px;
}

.prose h1 {
	font-size: clamp(34px, 5vw, 48px);
	font-weight: 800;
	letter-spacing: -0.045em;
}

.prose h2 {
	margin-top: 40px;
	font-size: 23px;
	font-weight: 750;
	scroll-margin-top: 90px;
}

.prose p,
.prose li {
	color: var(--muted);
}

.prose p {
	margin-top: 14px;
}

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

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

.prose a {
	color: var(--accent);
	text-decoration: underline;
}

.toc {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 24px;
}

.prose .toc a {
	padding: 6px 13px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--white);
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.prose .toc a:hover {
	color: var(--accent);
	border-color: var(--accent-line);
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.prose table {
	margin-top: 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--white);
}

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

th {
	color: var(--text);
	font-weight: 700;
	background: var(--mist);
}

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

td {
	color: var(--muted);
}

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

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

.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity 0.6s ease,
		transform 0.6s ease;
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

.no-js .reveal {
	opacity: 1;
	transform: none;
}

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

	*,
	*::before,
	*::after {
		animation: none !important;
	}

	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.btn,
	.card,
	.pill,
	.icon-tile,
	[data-results] .tile {
		transition: none;
	}
}

/* Moving between pages (home, technical details, privacy, French) fades
   instead of flashing, in browsers that support it. The header stays put. */
@media (prefers-reduced-motion: no-preference) {
	@view-transition {
		navigation: auto;
	}
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
	.hero__grid {
		grid-template-columns: 1fr;
	}

	.hero__copy {
		max-width: 680px;
		margin-inline: auto;
		text-align: center;
	}

	.hero__lead {
		margin-inline: auto;
	}

	.hero__actions,
	.hero__note {
		justify-content: center;
	}

	.hero__visual {
		max-width: 860px;
		width: 100%;
		margin-inline: auto;
	}

	.hero__box {
		left: -2%;
		width: 38%;
	}

	.float-card--a,
	.float-card--b {
		right: 12px;
	}
}

@media (max-width: 960px) {
	.site-nav {
		position: absolute;
		top: 76px;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px var(--gutter) 18px;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow-sm);
	}

	.site-nav.is-open {
		display: flex;
	}

	.site-nav a {
		padding: 12px 0;
		border-bottom: 1px solid var(--line);
	}

	.nav-toggle {
		display: grid;
	}

	.bento > .card--wide {
		grid-template-columns: 1fr;
	}

	.bento > .card--soon {
		grid-column: span 6;
	}

	.split,
	.signup__grid {
		grid-template-columns: 1fr;
	}

	.proofs,
	.offers,
	.stats {
		grid-template-columns: 1fr 1fr;
	}

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

	.float-card {
		display: none;
	}
}

@media (max-width: 680px) {
	.hero {
		padding-top: 104px;
	}

	.hero__visual {
		padding-bottom: 40px;
	}

	.hero__box {
		width: 44%;
		bottom: -4px;
	}

	.tiles,
	.albums {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* The hero window keeps to the search on a phone; the albums row would make it very tall. */
	.mock .albums,
	.mock__label:has(+ .albums) {
		display: none;
	}

	/* Two rows are enough on a phone; the hero search then never leaves a tall gap. */
	[data-results] .tile:nth-child(n + 5) {
		display: none;
	}

	.mock__search em {
		display: none;
	}

	.card--hero .ticks {
		grid-template-columns: 1fr;
	}

	.howto,
	.proofs,
	.offers,
	.stats,
	.spec-list,
	.form__row,
	.choices {
		grid-template-columns: 1fr;
	}

	.roadmap li {
		grid-template-columns: 40px 1fr;
	}

	.roadmap__when,
	.roadmap__what {
		grid-column: 2;
	}

	.roadmap__when {
		padding-top: 0;
	}

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

	.hero__actions .btn {
		width: 100%;
	}

	.promises {
		border-radius: 22px;
	}

	.reach {
		flex-direction: column;
		align-items: flex-start;
		max-width: 320px;
		margin-inline: auto;
	}

	.badge {
		justify-content: center;
		border-radius: 16px;
		padding: 8px 12px;
	}

	/* Diagrams: the HTML card version instead of the wide SVG. */
	.diagram {
		overflow-x: hidden;
	}

	.diagram > svg {
		display: none;
	}

	.dgm {
		display: grid;
		gap: 10px;
		font-size: 14px;
		line-height: 1.4;
	}

	.dgm p {
		margin: 0;
	}

	.dgm__pair,
	.dgm__apps {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.dgm__card {
		display: grid;
		gap: 2px;
		padding: 12px 14px;
		border: 1px solid #d5dbec;
		border-radius: 12px;
		background: var(--white);
		color: var(--muted);
		font-size: 13px;
	}

	.dgm__card strong {
		color: var(--text);
		font-size: 14px;
		font-weight: 700;
	}

	.dgm__card--hl {
		border: 2px solid #4a63e8;
		background: var(--tint);
	}

	.dgm__card--dashed {
		border-style: dashed;
	}

	/* A labelled arrow between two cards. */
	.dgm__link {
		display: flex;
		align-items: center;
		gap: 10px;
		padding-left: 22px;
		color: var(--dim);
		font-size: 12.5px;
	}

	.dgm__link::before {
		content: '↓';
		color: var(--blue);
		font-size: 18px;
		line-height: 1;
	}

	.dgm__link--up::before {
		content: '↑';
	}

	.dgm__link--accent {
		color: var(--accent);
		font-weight: 700;
	}

	.dgm__link--accent::before {
		content: '↕';
	}

	.dgm__note {
		color: var(--dim);
		font-size: 12.5px;
		text-align: center;
	}

	.dgm__box {
		display: grid;
		gap: 10px;
		padding: 14px;
		border: 2px solid transparent;
		border-radius: 18px;
		background:
			linear-gradient(#f5f6fd, #f5f6fd) padding-box,
			linear-gradient(90deg, #4a63e8, #6246e5) border-box;
	}

	.dgm__title {
		color: var(--text);
		font-size: 16px;
		font-weight: 750;
	}

	.dgm__accent {
		margin-top: -8px !important;
		color: var(--accent);
		font-size: 12.5px;
		font-weight: 700;
	}

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

	.dgm__bands li {
		padding: 10px 12px;
		border-radius: 10px;
		background: #eef0f8;
		color: var(--muted);
		font-size: 13px;
	}

	.dgm__bands strong {
		display: block;
		color: var(--text);
		font-size: 14px;
		font-weight: 700;
	}
}

/* Narrow phones: a smaller logo and a one-word button keep the header on one line. */
@media (max-width: 480px) {
	.header-actions {
		gap: 6px;
	}

	.wordmark {
		height: 14px;
	}

	.header-actions .btn--sm {
		padding: 0 14px;
	}

	.header-cta__long {
		display: none;
	}

	.header-cta__short {
		display: inline;
	}

	/* Technical page tables: tighter cells so three columns fit. */
	.prose th,
	.prose td {
		padding: 8px;
		font-size: 13px;
	}
}

/* The smallest phones (320 px): tighten everything a little more. */
@media (max-width: 360px) {
	.site-header__inner {
		gap: 8px;
	}

	.header-actions {
		gap: 4px;
	}

	.wordmark {
		height: 11px;
	}

	.lang-switch a {
		padding: 4px 7px;
	}

	.header-actions .btn--sm {
		padding: 0 11px;
		font-size: 13px;
	}

	.nav-toggle {
		width: 36px;
		height: 36px;
	}
}

/* ---------- The photo editor (in the apps section) ---------- */

.editor {
	margin-top: clamp(64px, 9vw, 104px);
}

.editor__tools {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 22px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}

.editor__tools li {
	display: grid;
	align-content: start;
	gap: 2px;
	padding-left: 30px;
	color: var(--muted);
	font-size: 14px;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2308775d' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 3px 4px / 14px no-repeat,
		radial-gradient(circle at 10px 11px, #d3f1e8 10px, transparent 10.5px) 0 0 / 22px 22px no-repeat;
}

.editor__tools strong {
	color: var(--text);
	font-size: 15px;
}

.editor__more {
	margin-top: 22px !important;
	color: var(--dim) !important;
	font-size: 14px;
}

/* Before and after: the same photo twice, the dull "before" clipped to the
   left of the handle. A range input on top does the dragging. */
.compare__frame {
	position: relative;
	max-width: 520px;
	margin-inline: auto;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: var(--shadow);
	--pos: 50%;
}

.compare__frame img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}

.compare__before {
	position: absolute;
	inset: 0;
	filter: brightness(0.82) contrast(0.86) saturate(0.6) sepia(0.12);
	clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare__tag {
	position: absolute;
	top: 14px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	color: #12172b;
	font-size: 12px;
	font-weight: 700;
	pointer-events: none;
}

.compare__tag--before {
	left: 14px;
}

.compare__tag--after {
	right: 14px;
}

.compare__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--pos);
	width: 3px;
	margin-left: -1.5px;
	background: #fff;
	box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
	pointer-events: none;
}

.compare__handle::after {
	content: '‹ ›';
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	box-shadow: var(--shadow-sm);
	color: #12172b;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 2px;
	transform: translate(-50%, -50%);
}

.compare__range {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
}

.compare__frame:has(.compare__range:focus-visible) .compare__handle::after {
	outline: 3px solid var(--blue);
	outline-offset: 2px;
}

.compare figcaption {
	margin-top: 12px;
	color: var(--dim);
	font-size: 13px;
	text-align: center;
}

@media (max-width: 680px) {
	.editor__tools {
		grid-template-columns: 1fr;
	}
}

/* ---------- Light/dark switch in the header ---------- */

.theme-switch {
	position: relative;
	flex: none;
	width: 54px;
	height: 30px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--mist);
	cursor: pointer;
	transition:
		background 0.25s ease,
		border-color 0.25s ease;
}

.theme-switch:hover {
	border-color: var(--line-strong);
}

.theme-switch__knob {
	position: absolute;
	top: 3px;
	left: 3px;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--white);
	box-shadow: 0 2px 6px rgba(18, 23, 43, 0.2);
	color: #e0a100;
	transition:
		transform 0.25s ease,
		background 0.25s ease,
		color 0.25s ease;
}

.theme-switch__knob svg {
	grid-area: 1 / 1;
}

.theme-switch__moon,
.theme-switch[aria-checked='true'] .theme-switch__sun {
	display: none;
}

.theme-switch[aria-checked='true'] .theme-switch__moon {
	display: block;
}

.theme-switch[aria-checked='true'] {
	background: #1d2232;
	border-color: rgba(255, 255, 255, 0.14);
}

.theme-switch[aria-checked='true'] .theme-switch__knob {
	transform: translateX(24px);
	background: #080a10;
	color: #8fa3ff;
}

/* The switch needs the script; without it the page stays light. */
.no-js .theme-switch {
	display: none;
}

/* Phones: the header holds the logo, this switch, EN/FR, the waitlist button
   and the menu button on one line, so everything gets a little smaller. */
@media (max-width: 480px) {
	.theme-switch {
		width: 40px;
		height: 24px;
	}

	.theme-switch__knob {
		top: 2px;
		left: 2px;
		width: 18px;
		height: 18px;
	}

	.theme-switch__knob svg {
		width: 12px;
		height: 12px;
	}

	.theme-switch[aria-checked='true'] .theme-switch__knob {
		transform: translateX(16px);
	}

	.site-header__inner {
		gap: 10px;
	}

	.header-actions {
		gap: 5px;
	}

	.lang-switch a {
		padding: 3px 7px;
	}

	.nav-toggle {
		width: 38px;
		height: 38px;
	}
}

@media (max-width: 420px) {
	.wordmark {
		height: 12px;
	}

	.header-actions .btn--sm {
		padding: 0 12px;
	}
}

@media (max-width: 380px) {
	.site-header .container {
		padding-inline: 12px;
	}

	.site-header__inner {
		gap: 6px;
	}

	.header-actions {
		gap: 4px;
	}

	.wordmark {
		height: 9px;
	}

	.header-actions .btn--sm {
		min-height: 36px;
		padding: 0 10px;
		font-size: 13px;
	}

	.lang-switch a {
		padding: 3px 5px;
		font-size: 12px;
	}

	.nav-toggle {
		width: 34px;
		height: 34px;
	}
}

/* ---------- Dark theme: the apps' Midnight ----------
   theme.js sets data-theme on <html> before the page is drawn: the choice
   made with the switch, or else the device's own setting. The values are
   Midnight's (packages/ui/src/styles/tokens.css in the apps), so the site
   and the apps look the same in the dark. */

[data-theme='dark'] {
	--paper: #080a10;
	--ice: #0b0d15;
	--white: #0e1119;
	--mist: #131724;
	--navy-deep: #05070b;

	--text: #d6dbe5;
	--muted: #a9b1c3;
	--dim: #8e96aa;
	--accent: #8fa3ff;

	--line: rgba(255, 255, 255, 0.08);
	--line-strong: rgba(255, 255, 255, 0.14);
	--surface: rgba(14, 17, 25, 0.8);
	--tint: rgba(123, 147, 255, 0.14);
	--accent-line: rgba(123, 147, 255, 0.45);

	/* The four apps: a faint wash of each colour on Midnight's surface */
	--photos-soft: #0e171d;
	--vault-soft: #0f1424;
	--tracker-soft: #0e1714;
	--chat-soft: #1a1118;

	/* Midnight's filled buttons: the logo's blue-to-violet, white text */
	--btn: linear-gradient(135deg, #4a63e8 0%, #6246e5 100%);
	--btn-text: #ffffff;
	--btn-hover: linear-gradient(135deg, #5670f0 0%, #6d52ee 100%);

	--grad: linear-gradient(120deg, #8fa3ff 0%, #a98bfa 100%);
	--shadow: 0 1.125rem 2.5rem -1.375rem rgba(0, 0, 0, 0.7);
	--shadow-sm: 0 0.25rem 0.75rem -0.25rem rgba(0, 0, 0, 0.4);
	color-scheme: dark;
}

/* Navy letters in the header turn white. */
[data-theme='dark'] .site-header .wordmark__letters {
	filter: brightness(0) invert(1);
}

/* The header as Midnight's chrome: a faint accent glow in the top-left corner. */
[data-theme='dark'] .site-header {
	background:
		radial-gradient(60rem 12rem at 0% 0%, rgba(123, 147, 255, 0.09), transparent 70%),
		rgba(8, 10, 16, 0.86);
}

[data-theme='dark'] .site-header.is-scrolled {
	border-bottom-color: #1d2232;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

[data-theme='dark'] .site-nav {
	color: var(--muted);
}

[data-theme='dark'] .site-nav a:hover {
	color: var(--accent);
}

[data-theme='dark'] .btn--primary {
	box-shadow: 0 0.35rem 1rem -0.45rem rgba(169, 139, 250, 0.55);
}

[data-theme='dark'] .btn--ghost {
	background: rgba(255, 255, 255, 0.03);
}

[data-theme='dark'] .btn--ghost:hover {
	background: var(--mist);
	border-color: var(--accent);
}

[data-theme='dark'] .status {
	background: #181d2b;
}

[data-theme='dark'] .status--soon {
	background: rgba(62, 207, 142, 0.14);
	color: #3ecf8e;
}

[data-theme='dark'] .status--planned {
	background: rgba(123, 147, 255, 0.14);
	color: #9aabff;
}

[data-theme='dark'] .status--later {
	background: rgba(169, 139, 250, 0.14);
	color: #c0aafc;
}

[data-theme='dark'] .section--alt {
	background: var(--ice);
}

[data-theme='dark'] .hero {
	background:
		radial-gradient(ellipse at 78% 38%, rgba(123, 147, 255, 0.12) 0, transparent 42%),
		radial-gradient(60rem 18rem at 0% 0%, rgba(123, 147, 255, 0.08), transparent 70%),
		#080a10;
}

[data-theme='dark'] .cta-band {
	background:
		radial-gradient(ellipse at 85% 20%, rgba(169, 139, 250, 0.14) 0, transparent 45%),
		radial-gradient(ellipse at 10% 90%, rgba(123, 147, 255, 0.12) 0, transparent 45%),
		var(--white);
}

[data-theme='dark'] .hero__note::before,
[data-theme='dark'] .ticks li::before {
	background-color: rgba(62, 207, 142, 0.16);
}

[data-theme='dark'] .editor__tools li {
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%233ecf8e' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 3px 4px / 14px no-repeat,
		radial-gradient(circle at 10px 11px, rgba(62, 207, 142, 0.16) 10px, transparent 10.5px) 0 0 / 22px 22px no-repeat;
}

[data-theme='dark'] .thanks .icon-tile {
	background: rgba(62, 207, 142, 0.16);
	color: #3ecf8e;
}

/* The black box needs a soft glow to stand out on a dark page. */
[data-theme='dark'] .hero__box,
[data-theme='dark'] .box-art {
	filter: drop-shadow(0 18px 34px rgba(123, 147, 255, 0.22));
}

[data-theme='dark'] .box-visual {
	background:
		radial-gradient(ellipse at 50% 30%, rgba(123, 147, 255, 0.1) 0, transparent 60%),
		var(--white);
}

[data-theme='dark'] .offer--main {
	border-color: var(--accent-line);
	background: linear-gradient(160deg, #121831, var(--white) 70%);
}

[data-theme='dark'] .mock__dots span {
	background: #202637;
}

[data-theme='dark'] .bubble--me {
	background: rgba(123, 147, 255, 0.14);
	border-color: rgba(123, 147, 255, 0.32);
}

[data-theme='dark'] .map {
	background:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 40px 40px,
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 40px 40px,
		radial-gradient(circle at 30% 40%, rgba(62, 207, 142, 0.14), transparent 50%),
		#0b0d15;
}

[data-theme='dark'] .map__road {
	background: #181d2b;
	box-shadow: none;
}

[data-theme='dark'] .float-card {
	border-color: rgba(255, 255, 255, 0.14);
	background: rgba(24, 29, 43, 0.96);
}

[data-theme='dark'] .promises {
	background: rgba(14, 17, 25, 0.85);
}

[data-theme='dark'] .diagram {
	box-shadow: none;
}

[data-theme='dark'] .roadmap li.is-next .roadmap__dot {
	border-color: #7b93ff;
	box-shadow: 0 0 0 6px rgba(123, 147, 255, 0.16);
	background: radial-gradient(circle, #7b93ff 0 7px, var(--white) 8px);
}

[data-theme='dark'] .roadmap::before {
	background: linear-gradient(180deg, #7b93ff, var(--line) 40%, transparent);
}

/* The waitlist band: Midnight's raised surface with the accent's glow,
   instead of the light theme's navy. */
[data-theme='dark'] .section.signup {
	background: linear-gradient(110deg, #0e1119, #131830);
}

[data-theme='dark'] .section.signup::before {
	background:
		radial-gradient(ellipse at 82% 20%, rgba(169, 139, 250, 0.22) 0, transparent 42%),
		radial-gradient(ellipse at 10% 80%, rgba(123, 147, 255, 0.16) 0, transparent 45%);
	opacity: 1;
}

[data-theme='dark'] .signup .eyebrow,
[data-theme='dark'] .signup__intro .gradient-text,
[data-theme='dark'] .perks svg {
	color: #8fa3ff;
}

[data-theme='dark'] .signup__intro > p,
[data-theme='dark'] .perks li {
	color: #a9b1c3;
}

[data-theme='dark'] .form {
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: #131724;
	box-shadow: 0 1.5rem 4rem -1rem rgba(0, 0, 0, 0.85);
}

[data-theme='dark'] .form input[type='email'],
[data-theme='dark'] .form input[type='text'],
[data-theme='dark'] .form select,
[data-theme='dark'] .form textarea,
[data-theme='dark'] .form .choice {
	background: #0e1119;
}

[data-theme='dark'] .form .choice:has(input:checked) {
	background: rgba(123, 147, 255, 0.14);
}

[data-theme='dark'] input:focus,
[data-theme='dark'] select:focus,
[data-theme='dark'] textarea:focus {
	border-color: #7b93ff;
	box-shadow: 0 0 0 3px rgba(123, 147, 255, 0.22);
}

[data-theme='dark'] :focus-visible {
	outline-color: #8fa3ff;
}

[data-theme='dark'] .site-footer {
	border-top: 1px solid #1d2232;
}

[data-theme='dark'] .footer-grid a {
	color: #a9b1c3;
}

[data-theme='dark'] .footer-grid a:hover {
	color: #8fa3ff;
}

[data-theme='dark'] .footer-bottom,
[data-theme='dark'] .site-footer {
	color: #8e96aa;
}

[data-theme='dark'] .dg-card,
[data-theme='dark'] .dg-app { fill: #0e1119; stroke: #262c3d; }
[data-theme='dark'] .dg-frame { fill: #0b0d15; }
[data-theme='dark'] .dg-hl { fill: rgba(123, 147, 255, 0.12); stroke: #7b93ff; }
[data-theme='dark'] .dg-band { fill: #131724; }
[data-theme='dark'] .dg-title,
[data-theme='dark'] .dg-name { fill: #d6dbe5; }
[data-theme='dark'] .dg-text { fill: #a9b1c3; }
[data-theme='dark'] .dg-small { fill: #8e96aa; }
[data-theme='dark'] .dg-accent-text { fill: #8fa3ff; }
[data-theme='dark'] .dg-line,
[data-theme='dark'] .dg-dash { stroke: #4a5268; }
[data-theme='dark'] .dg-arrow { fill: #4a5268; }
[data-theme='dark'] .dg-arrow-hl { fill: #7b93ff; }

@media (max-width: 680px) {
	[data-theme='dark'] .dgm__card {
		border-color: #262c3d;
	}

	[data-theme='dark'] .dgm__card--hl {
		border-color: #7b93ff;
		background: rgba(123, 147, 255, 0.12);
	}

	[data-theme='dark'] .dgm__box {
		background:
			linear-gradient(#0b0d15, #0b0d15) padding-box,
			linear-gradient(90deg, #4a63e8, #6246e5) border-box;
	}

	[data-theme='dark'] .dgm__bands li {
		background: #131724;
	}

	[data-theme='dark'] .dgm__link::before {
		color: #8fa3ff;
	}
}

[data-theme='dark'] .choice input,
[data-theme='dark'] .consent input {
	accent-color: #7b93ff;
}
