/* loak.app: one stylesheet for every page. Tokens come from the Lo'ak brand canvas. */

@font-face {
	font-family: "Google Sans Flex";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url(fonts/google-sans-flex-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Google Sans Flex";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url(fonts/google-sans-flex-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Wordmark only */
@font-face {
	font-family: "Outfit";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url(fonts/outfit-semibold.woff2) format("woff2");
}

:root {
	--color-surface: #F6F6FF;
	--color-surface-lowest: #FFFFFF;
	--color-surface-low: #EEF0FF;
	--color-surface-container: #E2E7FF;
	--color-surface-high: #DAE2FF;
	--color-on-surface: #1F2D51;
	--color-on-surface-variant: #4D5B81;
	--color-outline: #68769E;
	--color-outline-variant: #9EACD7;
	--color-primary: #005CAB;
	--color-on-primary: #EEF2FF;
	--color-secondary-container: #C2D1FF;
	--color-on-secondary-container: #0041A1;
	--color-brand-tile: #005CAB;
	--color-brand-glyph: #C2D1FF;
	--color-brand-glyph-dark: #79B0FF;
	--color-brand-night: #000C2C;

	--radius-md: 16px;
	--radius-lg: 28px;
	--radius-xl: 48px;
	--radius-full: 999px;

	--font-sans: "Google Sans Flex", "Google Sans", system-ui, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, monospace;
	--font-wordmark: "Outfit", sans-serif;

	--text-xs: 13px;
	--text-sm: 15px;
	--text-base: 18px;
	--text-lg: 22px;
	--text-xl: 28px;
	--text-3xl: 56px;
	--text-4xl: 88px;

	--gutter: 48px;
	--content: min(1200px, 100% - 2 * var(--gutter));
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
	font-family: var(--font-sans);
	color: var(--color-on-surface);
	background: var(--color-surface);
	-webkit-font-smoothing: antialiased;
	text-size-adjust: 100%;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--color-brand-glyph-dark); outline-offset: 3px; }

.wrap { width: var(--content); margin-inline: auto; }
.visually-hidden {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Icons: monochrome, 1em, in the current text colour ---------- */
.ic {
	display: inline-block; width: 1em; height: 1em; flex: none;
	background: currentColor;
	-webkit-mask: center / contain no-repeat; mask: center / contain no-repeat;
}
.ic-android { -webkit-mask-image: url(icons/android.svg); mask-image: url(icons/android.svg); }
.ic-apple { -webkit-mask-image: url(icons/apple.svg); mask-image: url(icons/apple.svg); }
.ic-linux { -webkit-mask-image: url(icons/linux.svg); mask-image: url(icons/linux.svg); }
.ic-windows { -webkit-mask-image: url(icons/windows.svg); mask-image: url(icons/windows.svg); }
.ic-web { -webkit-mask-image: url(icons/web.svg); mask-image: url(icons/web.svg); }
.ic-github { -webkit-mask-image: url(icons/github.svg); mask-image: url(icons/github.svg); }
.ic-arrow { -webkit-mask-image: url(icons/arrow.svg); mask-image: url(icons/arrow.svg); }
.ic-menu { -webkit-mask-image: url(icons/menu.svg); mask-image: url(icons/menu.svg); }
.ic-car { -webkit-mask-image: url(icons/car.svg); mask-image: url(icons/car.svg); }
.ic-offline { -webkit-mask-image: url(icons/offline.svg); mask-image: url(icons/offline.svg); }
.ic-radio { -webkit-mask-image: url(icons/radio.svg); mask-image: url(icons/radio.svg); }
.ic-download { -webkit-mask-image: url(icons/download.svg); mask-image: url(icons/download.svg); }
.ic-widgets { -webkit-mask-image: url(icons/widgets.svg); mask-image: url(icons/widgets.svg); }
.ic-share { -webkit-mask-image: url(icons/share.svg); mask-image: url(icons/share.svg); }
.ic-swipe { -webkit-mask-image: url(icons/swipe.svg); mask-image: url(icons/swipe.svg); }
.ic-privacy { -webkit-mask-image: url(icons/privacy.svg); mask-image: url(icons/privacy.svg); }
.ic-code { -webkit-mask-image: url(icons/code.svg); mask-image: url(icons/code.svg); }

/* ---------- Brand: lockup (mark + wordmark) and app icon ---------- */
.lockup {
	display: inline-flex; align-items: center; gap: .36em;
	font-family: var(--font-wordmark); font-weight: 580; letter-spacing: -.03em; line-height: 1;
}
.lockup-mark { display: block; width: 1.18em; height: auto; flex: none; fill: currentColor; }
.lockup-wm { white-space: nowrap; display: inline-flex; align-items: baseline; }
.lockup-lo { height: .7126em; width: 1.0123em; fill: currentColor; flex: none; transform: translateY(.011em); }
.lockup-tick {
	display: inline-block; width: .13em; height: .28em; background: currentColor; border-radius: .03em;
	transform: skewX(-20deg) translateY(-.46em); margin: 0 .11em 0 -.06em;
}

.app-icon {
	display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1;
	background: var(--color-brand-tile); color: var(--color-brand-glyph); border-radius: 30%;
}
.app-icon svg { width: 55%; height: auto; fill: currentColor; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	height: 48px; padding: 0 24px; border-radius: var(--radius-full);
	font-family: var(--font-sans); font-size: 16px; font-weight: 600; letter-spacing: -.005em;
	text-decoration: none; white-space: nowrap;
	background: var(--color-primary); color: var(--color-on-primary);
	box-shadow: inset 0 0 0 1.5px transparent;
	transition: filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn .ic { font-size: 20px; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 17px; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn-tonal { background: var(--color-secondary-container); color: var(--color-on-secondary-container); }
.btn-outline { background: transparent; color: var(--color-primary); box-shadow: inset 0 0 0 1.5px var(--color-outline-variant); }
.btn-light { background: #fff; color: var(--color-brand-night); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Chips ---------- */
.chip {
	display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--radius-full);
	font-size: 14px; font-weight: 500; color: var(--color-on-surface); white-space: nowrap;
	box-shadow: inset 0 0 0 1px var(--color-outline-variant);
}
.chip-tonal { box-shadow: none; background: var(--color-secondary-container); color: var(--color-on-secondary-container); }

.logo-chip {
	display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 8px;
	border-radius: var(--radius-full); background: var(--color-surface-container);
	font-size: 14px; font-weight: 500; white-space: nowrap;
}
.logo-chip img { width: 22px; height: 22px; border-radius: 6px; object-fit: contain; }

/* ---------- Navigation ---------- */
.nav {
	position: relative; z-index: 10;
	display: flex; align-items: center; gap: 40px; height: 80px;
	padding: 0 max(var(--gutter), (100% - 1200px) / 2);
}
.nav-home { font-size: 24px; text-decoration: none; color: inherit; margin-right: auto; }
.nav-panel { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
	position: relative; padding: 8px 2px;
	font-size: 15px; font-weight: 500; color: var(--color-on-surface-variant); text-decoration: none;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--color-on-surface); }
.nav-links a[aria-current="page"] { font-weight: 600; }
.nav-links a[aria-current="page"]::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; border-radius: 1.5px;
	background: var(--color-primary); transform: skewX(-20deg);
}
.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-github { display: flex; font-size: 24px; color: var(--color-on-surface); }
.nav-toggle {
	display: none; padding: 0; border: 0; background: none; cursor: pointer;
	font-size: 28px; line-height: 0; color: var(--color-on-surface);
}
.nav-dark { color: #fff; }
.nav-dark .nav-links a { color: rgba(255, 255, 255, .72); }
.nav-dark .nav-links a:hover { color: #fff; }
.nav-dark .nav-github, .nav-dark .nav-toggle { color: #fff; }

/* ---------- Section intro (eyebrow, heading, lead) ---------- */
.eyebrow {
	margin: 0 0 16px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
	color: var(--color-primary);
}
.intro { max-width: 760px; }
.intro h2, .h2 { font-size: var(--text-3xl); font-weight: 620; letter-spacing: -.03em; line-height: 1.05; }
.lead { margin-top: 20px; font-size: var(--text-base); line-height: 1.55; color: var(--color-on-surface-variant); }
.intro-center { text-align: center; margin-inline: auto; }
.intro-center .lead { max-width: 620px; margin-inline: auto; }
.on-dark { color: #fff; }
.on-dark .eyebrow { color: var(--color-brand-glyph-dark); }
.on-dark .lead { color: rgba(222, 229, 255, .72); }

/* ---------- Bulleted points ---------- */
.points { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.points li { display: flex; gap: 14px; align-items: baseline; font-size: var(--text-base); line-height: 1.5; }
.points li::before {
	content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; transform: translateY(-2px);
	background: var(--color-primary);
}
.on-dark .points li::before { background: var(--color-brand-glyph-dark); }

/* ---------- Device frames: fill their container's width ---------- */
.phone, .tablet { display: block; width: 100%; container-type: inline-size; }
.phone-body {
	display: block; background: #0d0f14; padding: 2.6cqw; border-radius: 13.5cqw;
	box-shadow: 0 0 0 .5cqw #2a2e38 inset, 0 6cqw 12cqw -4cqw rgba(0, 12, 44, .38);
}
.phone img { width: 100%; height: auto; aspect-ratio: 1280 / 2856; object-fit: cover; border-radius: 11cqw; }
.tablet-body {
	display: block; background: #0d0f14; padding: 2cqw; border-radius: 3cqw;
	box-shadow: 0 0 0 .3cqw #2a2e38 inset, 0 4cqw 8cqw -3cqw rgba(0, 12, 44, .35);
}
.tablet img { width: 100%; height: auto; aspect-ratio: 2560 / 1600; object-fit: cover; border-radius: .5cqw; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 20px; }
.integration {
	background: var(--color-surface-lowest); border-radius: var(--radius-xl); padding: 32px;
	display: flex; flex-direction: column; gap: 12px;
}
.integration .logos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.integration h3 { font-size: var(--text-xl); font-weight: 600; letter-spacing: -.015em; }
.integration p { font-size: var(--text-base); line-height: 1.5; color: var(--color-on-surface-variant); }
.integration .needs { margin-top: auto; padding-top: 8px; font-size: var(--text-xs); line-height: 1.4; }

.feature {
	background: var(--color-surface-lowest); border-radius: var(--radius-lg); padding: 28px;
	display: flex; flex-direction: column; gap: 10px;
}
.feature-icon {
	width: 48px; height: 48px; border-radius: 14px; margin-bottom: 10px;
	display: flex; align-items: center; justify-content: center; font-size: 26px;
	background: var(--color-secondary-container); color: var(--color-on-secondary-container);
}
.feature h3 { font-size: var(--text-lg); font-weight: 600; letter-spacing: -.01em; }
.feature p { font-size: var(--text-sm); line-height: 1.5; color: var(--color-on-surface-variant); }

/* ---------- Footer ---------- */
.footer {
	background: var(--color-brand-night); color: #fff;
	padding: 72px max(var(--gutter), (100% - 1200px) / 2) 40px;
}
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer .lockup { font-size: 26px; }
.footer-brand p { margin-top: 18px; max-width: 300px; font-size: var(--text-sm); line-height: 1.5; color: rgba(222, 229, 255, .7); }
.footer h2 {
	margin-bottom: 28px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
	color: var(--color-brand-glyph-dark);
}
.footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: var(--text-sm); }
.footer li a { color: rgba(255, 255, 255, .86); text-decoration: none; font-size: var(--text-sm); }
.footer li a:hover { color: #fff; }
.footer-bottom {
	margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12);
	display: flex; justify-content: space-between; gap: 8px;
	font-size: var(--text-xs); color: rgba(222, 229, 255, .6);
}
.footer-bottom a { text-decoration: none; }

/* =================================================================
   Home
   ================================================================= */
.top-dark { background: var(--color-brand-night); color: #fff; position: relative; overflow: hidden; }

.hero { position: relative; height: 800px; }
.hero-tile {
	position: absolute; inset: 0 0 0 auto; width: 700px; background: var(--color-brand-tile);
	clip-path: polygon(321px 0, 100% 0, 100% 100%, 30px 100%);
}
.hero-grid {
	position: relative; width: var(--content); height: 100%; margin: 0 auto;
	display: grid; grid-template-columns: 600px 1fr; align-items: center;
}
.hero-text { display: flex; flex-direction: column; gap: 28px; padding-bottom: 60px; }
.hero h1 { font-size: var(--text-4xl); font-weight: 600; letter-spacing: -.04em; line-height: .98; }
.highlight { position: relative; display: inline-block; z-index: 0; }
.highlight::before {
	content: ""; position: absolute; left: -.06em; right: -.1em; bottom: .06em; height: .36em; z-index: -1;
	background: var(--color-brand-tile); border-radius: .05em; transform: skewX(-20deg);
}
.hero-lead { font-size: var(--text-lg); line-height: 1.5; color: rgba(222, 229, 255, .78); max-width: 520px; }
.platforms { display: flex; align-items: center; gap: 14px; font-size: var(--text-sm); color: rgba(222, 229, 255, .72); }
.platform-icons { display: flex; gap: 12px; font-size: 22px; color: #fff; }
.hero-art { position: relative; height: 100%; }
.hero-art .phone { position: absolute; }
.hero-phone-back { width: 280px; right: 10px; top: 60px; }
.hero-phone-front { width: 300px; left: 40px; top: 150px; }

.works-with {
	padding-top: 40px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
	font-size: var(--text-sm); color: var(--color-on-surface-variant);
}
.works-with > span:first-child { margin-right: 6px; }
.works-with > span:last-child { margin-left: 6px; }

.integrations { padding-top: 104px; }
.integrations .card-grid { margin-top: 56px; grid-template-columns: 1fr 1fr; }

.car {
	margin-top: 140px; background: var(--color-brand-night); border-radius: var(--radius-xl); color: #fff;
	display: grid; grid-template-columns: 1fr 440px; gap: 64px; align-items: center; padding: 72px;
	overflow: hidden;
}
.car-text { display: flex; flex-direction: column; gap: 28px; }
.car-art { position: relative; height: 340px; }
.car-art::before {
	content: ""; position: absolute; inset: 0; background: var(--color-brand-tile); border-radius: var(--radius-lg);
	clip-path: polygon(124px 0, 100% 0, 100% 100%, 0 100%);
}
.car-art .app-icon { position: absolute; left: 150px; top: 70px; width: 200px; }
.car-tile {
	display: flex; align-items: center; justify-content: center; flex: none;
	background: #fff; color: var(--color-brand-night);
}
.car-art .car-tile { position: absolute; left: 40px; bottom: 40px; width: 96px; height: 96px; border-radius: 28px; font-size: 52px; }
.car-badges { display: none; align-items: center; gap: 14px; }
.car-badges .car-tile { width: 56px; height: 56px; border-radius: 18px; font-size: 32px; }
.car-badges .app-icon { width: 56px; }

.every-screen { padding-top: 140px; display: grid; grid-template-columns: 440px 1fr; gap: 72px; align-items: center; }
.split-text { display: flex; flex-direction: column; gap: 28px; }
.devices { position: relative; aspect-ratio: 688 / 560; }
.devices .tablet { position: absolute; right: 0; top: 0; width: 93%; }
.devices .phone { position: absolute; left: 0; top: 28.6%; width: 29%; }

.feature-row { padding-top: 120px; display: grid; grid-template-columns: 1fr 560px; gap: 80px; align-items: center; }
.feature-row .points { margin-top: 28px; }
.panel {
	background: var(--color-surface-container); border-radius: var(--radius-xl); overflow: hidden; position: relative;
}
.lyrics-panel { order: 2; height: 600px; display: flex; justify-content: center; align-items: flex-start; padding-top: 64px; }
.lyrics-panel .phone { width: 290px; }

.colours { padding-top: 140px; display: grid; grid-template-columns: 520px 1fr; gap: 80px; align-items: center; }
.colours-panel { height: 560px; }
.colours-panel .phone { position: absolute; width: 230px; }
.colours-panel .phone:first-child { left: 56px; top: 56px; }
.colours-panel .phone:last-child { right: 56px; top: 110px; }
.colours-text { display: flex; flex-direction: column; gap: 32px; }
.swatches { display: flex; gap: 14px; list-style: none; padding: 0; }
.swatches li { width: 44px; height: 44px; border-radius: 50%; background: var(--swatch); }

.more { padding-top: 140px; }
.more .card-grid { margin-top: 56px; grid-template-columns: repeat(4, 1fr); }

.faq { padding-top: 140px; display: grid; grid-template-columns: 400px 1fr; gap: 80px; }
.faq-aside > p { margin-top: 20px; font-size: var(--text-base); line-height: 1.55; color: var(--color-on-surface-variant); }
.text-link { color: var(--color-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.faq-item { padding: 24px 0; border-top: 1px solid var(--color-outline-variant); }
.faq-item h3 { font-size: var(--text-lg); font-weight: 600; letter-spacing: -.01em; }
.faq-item p { margin-top: 10px; font-size: var(--text-sm); line-height: 1.55; color: var(--color-on-surface-variant); max-width: 620px; }
.faq-item a { color: inherit; text-decoration-color: var(--color-outline-variant); text-underline-offset: 2px; }
.faq-item a:hover { color: var(--color-primary); }

.cta {
	margin: 140px auto 120px; background: var(--color-brand-tile); border-radius: var(--radius-xl); padding: 64px;
	display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; color: #fff;
}
.cta p { margin-top: 14px; font-size: var(--text-base); line-height: 1.5; color: rgba(238, 242, 255, .8); }
.cta .platform-icons { margin-top: 22px; gap: 14px; font-size: 24px; color: var(--color-brand-glyph); }

/* =================================================================
   Download
   ================================================================= */
.download { padding: 72px 0 120px; display: flex; flex-direction: column; gap: 48px; }
.download-top { display: grid; grid-template-columns: 1fr 480px; gap: 48px; align-items: end; }
.download h1 { font-size: var(--text-3xl); font-weight: 620; letter-spacing: -.03em; line-height: 1.05; }
.platforms-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; }
.platforms-head h2 { font-size: var(--text-xl); font-weight: 600; letter-spacing: -.015em; }
.platforms-head p { margin-top: 6px; font-size: var(--text-sm); color: var(--color-on-surface-variant); }
.platforms-head a { color: inherit; text-underline-offset: 2px; }
.platform-grid { grid-template-columns: repeat(3, 1fr); margin-top: -24px; }

.channel-toggle {
	display: inline-flex; flex: none; padding: 4px; border-radius: var(--radius-full);
	background: var(--color-surface-container);
}
.channel-toggle a {
	height: 40px; padding: 0 22px; display: inline-flex; align-items: center; border-radius: var(--radius-full);
	font-size: 15px; font-weight: 600; color: var(--color-on-surface-variant); text-decoration: none;
}
.channel-toggle a[aria-selected="true"] {
	background: var(--color-surface-lowest); color: var(--color-on-surface); box-shadow: 0 1px 3px rgba(0, 12, 44, .12);
}

/* Both channels are in the page; html[data-channel] picks one (Stable without JS). */
html:not([data-channel="nightly"]) [data-channel-only="nightly"],
html[data-channel="nightly"] [data-channel-only="stable"] { display: none !important; }

.platform {
	background: var(--color-surface-lowest); border-radius: var(--radius-lg); padding: 28px;
	display: flex; flex-direction: column; gap: 22px;
}
.platform-head { display: flex; gap: 16px; align-items: center; }
.platform-icon {
	width: 52px; height: 52px; border-radius: 16px; flex: none; font-size: 28px;
	display: flex; align-items: center; justify-content: center;
	background: var(--color-surface-container); color: var(--color-primary);
}
.platform h3, .platform .h3-like { font-size: var(--text-xl); font-weight: 600; letter-spacing: -.015em; }
.platform-formats { margin-top: 2px; font-size: var(--text-sm); color: var(--color-on-surface-variant); }
.platform .btn-row { gap: 10px; }
.platform-note { margin-top: auto; font-size: var(--text-xs); line-height: 1.45; color: var(--color-on-surface-variant); }
.platform-note a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.platform-featured { background: var(--color-brand-tile); color: #fff; }
.platform-featured .platform-icon { background: rgba(255, 255, 255, .14); color: var(--color-brand-glyph); }
.platform-featured .platform-formats, .platform-featured .platform-note { color: rgba(238, 242, 255, .78); }

.other-formats { margin-top: -10px; font-size: var(--text-xs); }
.other-formats summary {
	display: inline-flex; align-items: center; gap: 4px; cursor: pointer; list-style: none;
	font-weight: 600; color: var(--color-primary);
}
.other-formats summary::-webkit-details-marker { display: none; }
.other-formats summary::after { content: "▾"; font-size: 11px; transition: transform .15s; }
.other-formats[open] summary::after { transform: rotate(180deg); }
.other-formats ul { list-style: none; padding: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.other-formats li a {
	display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: var(--radius-full);
	box-shadow: inset 0 0 0 1px var(--color-outline-variant);
	color: var(--color-on-surface); text-decoration: none; white-space: nowrap;
}
.other-formats li a:hover { background: var(--color-surface-low); }

.download-foot { font-size: var(--text-sm); color: var(--color-on-surface-variant); }
.download-foot a { color: var(--color-primary); font-weight: 600; text-decoration: none; }

.flatpak { display: grid; grid-template-columns: 400px 1fr; gap: 48px; align-items: start; padding-top: 40px; scroll-margin-top: 24px; }
.flatpak pre {
	background: var(--color-brand-night); color: #DEE5FF; border-radius: var(--radius-md); padding: 24px 28px;
	font-family: var(--font-mono); font-size: 14px; line-height: 1.8; white-space: pre-wrap; word-break: break-all;
}
.flatpak pre .comment { color: #9CAAD5; }

/* =================================================================
   Prose pages (privacy, 404)
   ================================================================= */
.prose-page { padding: 72px 0 120px; }
.prose-page h1 { font-size: var(--text-3xl); font-weight: 620; letter-spacing: -.03em; line-height: 1.05; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 56px; font-size: var(--text-xl); font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.prose h3 { margin-top: 28px; font-size: var(--text-lg); font-weight: 600; letter-spacing: -.01em; }
.prose p, .prose li { font-size: 17px; line-height: 1.6; color: var(--color-on-surface-variant); }
.prose p, .prose ul { margin-top: 14px; }
.prose ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.prose strong { color: var(--color-on-surface); font-weight: 600; }
.prose a { color: var(--color-primary); font-weight: 600; text-underline-offset: 3px; }
.prose code { font-family: var(--font-mono); font-size: .9em; overflow-wrap: anywhere; }
.prose .updated { margin-top: 56px; font-size: var(--text-sm); }

.not-found { min-height: 60vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; }

/* =================================================================
   Between desktop and phone
   ================================================================= */
@media (max-width: 1099px) {
	:root { --text-3xl: 44px; }

	.hero { height: auto; padding-top: 24px; }
	.hero-tile { display: none; }
	.hero-grid { width: 100%; display: block; }
	.hero-text { width: var(--content); margin: 0 auto; padding-bottom: 0; }
	.hero h1 { font-size: clamp(48px, 9vw, 80px); line-height: 1; }
	.hero h1 br { display: none; }
	.hero-art { height: clamp(500px, 80vw, 640px); margin-top: 36px; overflow: hidden; }
	.hero-art::before {
		content: ""; position: absolute; inset: 40px 0 0 0; background: var(--color-brand-tile);
		clip-path: polygon(0 142px, 100% 0, 100% 100%, 0 100%);
	}
	.hero-phone-back { width: clamp(190px, 30vw, 280px); right: max(22px, 50% - 300px); top: 10px; }
	.hero-phone-front { width: clamp(210px, 33vw, 300px); left: max(24px, 50% - 300px); top: 80px; }

	.car { grid-template-columns: 1fr; gap: 20px; padding: 48px; }
	.car-art { display: none; }
	.car-badges { display: flex; }

	.every-screen, .feature-row, .colours, .faq { grid-template-columns: 1fr; gap: 48px; }
	.lyrics-panel { order: 0; }
	.colours-panel .phone { width: min(230px, 40%); }

	.more .card-grid { grid-template-columns: repeat(2, 1fr); }

	.download-top { grid-template-columns: 1fr; }
	.platform-grid { grid-template-columns: repeat(2, 1fr); }
	.flatpak { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 800px) {
	.nav { gap: 16px; }
	.nav-toggle { display: inline-flex; }
	.nav-panel {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 20px;
		padding: 16px var(--gutter) 24px;
		background: var(--color-surface); color: var(--color-on-surface);
		box-shadow: 0 12px 24px -12px rgba(0, 12, 44, .3);
	}
	.nav.is-open .nav-panel { display: flex; }
	.nav-links { flex-direction: column; align-items: stretch; gap: 4px; }
	.nav-links a { padding: 10px 0; font-size: 17px; }
	.nav-links a[aria-current="page"]::after { right: auto; width: 40px; bottom: 4px; }
	.nav-dark .nav-panel {
		background: var(--color-brand-night); color: #fff;
		border-block: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 16px 32px -8px rgba(0, 0, 0, .6);
	}

	.cta { grid-template-columns: 1fr; }
	.platform-grid { grid-template-columns: 1fr; }
	.footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
	.footer-brand { grid-column: 1 / -1; }
}

/* =================================================================
   Phones
   ================================================================= */
@media (max-width: 600px) {
	:root { --gutter: 20px; --text-3xl: 34px; --text-xl: 22px; }

	.nav { height: 64px; }
	.nav-home { font-size: 22px; }

	.hero h1 { font-size: 48px; }
	.hero-text { gap: 22px; }
	.hero-lead { font-size: 17px; }
	.hero .btn-row { flex-direction: column; gap: 10px; }
	.hero .platforms { display: none; }
	.hero-art { height: 500px; }

	.works-with { display: none; }
	.integrations { padding-top: 64px; }
	.integrations .card-grid, .more .card-grid { margin-top: 28px; grid-template-columns: 1fr; gap: 12px; }
	.integration { padding: 24px; border-radius: var(--radius-lg); }
	.integration p { font-size: 16px; }
	.lead, .points li, .faq-aside > p { font-size: 16px; }
	.intro-center { text-align: left; }
	.intro-center .lead { margin-inline: 0; }

	.car { margin: 64px auto 0; padding: 36px 24px; border-radius: var(--radius-lg); }
	.car .points { margin-top: 8px; }

	.every-screen, .feature-row, .colours, .more, .faq { padding-top: 64px; gap: 28px; }
	.devices { aspect-ratio: 16 / 10.4; }
	.devices .tablet { width: 100%; }
	.devices .phone { display: none; }
	.feature-row .points { margin-top: 20px; }
	.lyrics-panel { height: 420px; padding-top: 40px; border-radius: var(--radius-lg); }
	.lyrics-panel .phone { width: 230px; }
	.colours-panel { height: 420px; border-radius: var(--radius-lg); }
	.colours-panel .phone:first-child { left: 20px; top: 32px; }
	.colours-panel .phone:last-child { right: 20px; top: 72px; }
	.swatches { gap: 10px; }
	.swatches li { width: 36px; height: 36px; }

	.cta { margin: 64px auto; padding: 36px 28px; border-radius: var(--radius-lg); gap: 18px; }
	.cta .btn-ghost { display: none; }

	.footer { padding: 48px var(--gutter) 32px; }
	.footer-bottom { flex-direction: column; margin-top: 40px; }

	.download, .prose-page { padding: 40px 0 72px; gap: 32px; }
	.platforms-head { flex-direction: column; align-items: flex-start; }
	.platform-grid { margin-top: -8px; gap: 12px; }
	.platform { padding: 24px; }
	.flatpak pre { padding: 20px; font-size: 13px; }
}
