/* RiddR website. One stylesheet for every page: tokens, base, components, home sections, inner pages. */

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fonts/plus-jakarta-sans-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: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fonts/plus-jakarta-sans-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */

:root {
	color-scheme: light;
	--font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

	--bg: #ffffff;
	--bg-2: #f5f8fc;
	--bg-3: #ebf1f8;
	--surface: #ffffff;
	--surface-2: #f8fafd;
	--ink: #0a1628;
	--text: #35465e;
	--muted: #5b6c85;
	--line: rgba(10, 22, 40, .09);
	--line-2: rgba(10, 22, 40, .15);

	--brand: #0e77cc;
	--brand-ink: #0b5fa5;
	--sky: #59c1f9;
	--sky-soft: #e6f5fe;
	--sky-line: rgba(14, 119, 204, .24);
	--warm: #e98300;
	--warm-soft: #ffe9c4;
	--good: #0d8a57;

	--cta-1: #0e77cc;
	--cta-2: #0a5fa9;
	--cta-glow: rgba(14, 119, 204, .55);
	--on-brand: #ffffff;

	--header-bg: rgba(255, 255, 255, .8);
	--glow: rgba(89, 193, 249, .34);
	--ring: rgba(14, 119, 204, .16);
	--dot: rgba(10, 22, 40, .13);
	--sel: rgba(89, 193, 249, .42);
	--chrome-top: #e6ecf4;
	--chrome-bar: #ffffff;
	--wave-base: #c9d6e6;
	--code-bg: #0c1626;
	--code-text: #d7e3f4;
	--kbd-top: #ffffff;
	--kbd-bottom: #eef3f9;

	--shadow-1: 0 1px 2px rgba(10, 22, 40, .06), 0 1px 1px rgba(10, 22, 40, .03);
	--shadow-2: 0 2px 4px rgba(10, 22, 40, .04), 0 14px 32px -10px rgba(10, 22, 40, .16);
	--shadow-3: 0 4px 10px rgba(10, 22, 40, .05), 0 36px 80px -24px rgba(12, 62, 112, .34);

	--radius: 20px;
	--wrap: 1180px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

[data-theme="dark"] {
	color-scheme: dark;
	--bg: #060b16;
	--bg-2: #0a1222;
	--bg-3: #152238;
	--surface: #0d1728;
	--surface-2: #121e33;
	--ink: #f1f6fc;
	--text: #c2cee0;
	--muted: #8e9fb8;
	--line: rgba(170, 200, 255, .1);
	--line-2: rgba(170, 200, 255, .18);

	--brand: #59c1f9;
	--brand-ink: #7ccffb;
	--sky-soft: rgba(89, 193, 249, .13);
	--sky-line: rgba(89, 193, 249, .3);
	--warm: #ffb04a;
	--warm-soft: rgba(255, 176, 74, .24);
	--good: #4ad295;

	--cta-1: #8ad6fc;
	--cta-2: #59c1f9;
	--cta-glow: rgba(89, 193, 249, .45);
	--on-brand: #03233d;

	--header-bg: rgba(6, 11, 22, .78);
	--glow: rgba(46, 140, 220, .3);
	--ring: rgba(89, 193, 249, .15);
	--dot: rgba(170, 200, 255, .13);
	--sel: rgba(89, 193, 249, .34);
	--chrome-top: #0a1222;
	--chrome-bar: #111c30;
	--wave-base: #34486b;
	--code-bg: #0a1322;
	--code-text: #d7e3f4;
	--kbd-top: #1b2942;
	--kbd-bottom: #131f35;
	--mascot-ink: #5d6a80;
	--mascot-book: #d5e0ee;

	--shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
	--shadow-2: 0 2px 4px rgba(0, 0, 0, .3), 0 14px 32px -10px rgba(0, 0, 0, .6);
	--shadow-3: 0 4px 10px rgba(0, 0, 0, .3), 0 36px 80px -24px rgba(0, 0, 0, .8);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 92px;
}
body {
	margin: 0;
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 {
	margin: 0;
	color: var(--ink);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.03em;
	text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sel); }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
	position: absolute; left: 16px; top: -64px; z-index: 100;
	padding: 10px 16px; border-radius: 10px;
	background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none;
	transition: top .15s;
}
.skip:focus { top: 12px; }

.link {
	color: var(--brand-ink); font-weight: 600;
	text-decoration: underline; text-decoration-color: var(--sky-line);
	text-decoration-thickness: 1.5px; text-underline-offset: 3px;
	transition: text-decoration-color .15s;
}
.link:hover { text-decoration-color: currentColor; }

kbd {
	display: inline-grid; place-items: center;
	min-width: 1.95em; height: 1.95em; padding: 0 .5em;
	border: 1px solid var(--line-2); border-radius: 7px;
	background: linear-gradient(180deg, var(--kbd-top), var(--kbd-bottom));
	box-shadow: 0 1.5px 0 var(--line-2);
	font-family: var(--font); font-size: max(.8125rem, .85em); font-weight: 700; line-height: 1;
	color: var(--ink); white-space: nowrap;
}

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

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
	height: 46px; padding: 0 1.25rem;
	border: 1px solid transparent; border-radius: 999px;
	font-size: .9375rem; font-weight: 700; letter-spacing: -.005em; line-height: 1;
	text-decoration: none; white-space: nowrap;
	transition: transform .18s var(--ease), box-shadow .2s, background-color .2s, border-color .2s, filter .2s;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-lg { height: 56px; padding: 0 1.7rem; font-size: 1.0625rem; }
.btn-sm { height: 40px; padding: 0 1.05rem; font-size: .875rem; }
.btn-primary {
	color: var(--on-brand);
	background: linear-gradient(180deg, var(--cta-1), var(--cta-2));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 1px 2px rgba(6, 40, 80, .3), 0 10px 22px -8px var(--cta-glow);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 2px 4px rgba(6, 40, 80, .3), 0 16px 30px -8px var(--cta-glow); }
.btn-primary:active { transform: translateY(0); filter: brightness(.97); }
.btn-ghost { color: var(--ink); background: var(--surface); border-color: var(--line-2); box-shadow: var(--shadow-1); }
.btn-ghost:hover { transform: translateY(-1px); border-color: var(--sky-line); box-shadow: var(--shadow-2); }
.btn-note { align-self: stretch; display: inline-flex; align-items: center; margin: 12px 0 12px .2rem; padding-left: .8rem; border-left: 1px solid rgba(255, 255, 255, .38); font-weight: 600; opacity: .9; }
[data-theme="dark"] .btn-note { border-left-color: rgba(3, 35, 61, .3); }

.icon-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
	border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--muted);
	text-decoration: none; transition: color .15s, background-color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--ink); background: var(--bg-2); border-color: var(--line); }
.icon-btn svg { width: 20px; height: 20px; }

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

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--header-bg);
	-webkit-backdrop-filter: saturate(1.7) blur(16px); backdrop-filter: saturate(1.7) blur(16px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand {
	display: inline-flex; align-items: center; gap: 10px; flex: none;
	color: var(--ink); text-decoration: none; font-size: 1.3125rem; font-weight: 800; letter-spacing: -.035em;
}
.brand svg { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav a {
	padding: 8px 14px; border-radius: 999px;
	color: var(--muted); font-size: .9375rem; font-weight: 600; text-decoration: none;
	transition: color .15s, background-color .15s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.header-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.header-actions .btn { margin-left: 8px; }
.header-actions [data-install] { max-width: 180px; overflow: hidden; white-space: nowrap; transition: max-width .3s var(--ease), margin .3s var(--ease), padding .3s var(--ease), opacity .25s var(--ease), transform .3s var(--ease), visibility .3s; }
.js .header-actions .cta-hidden { max-width: 0; margin-left: -6px; padding-left: 0; padding-right: 0; opacity: 0; visibility: hidden; transform: translateX(16px); pointer-events: none; }
.menu-btn { display: none; }
.theme-icon-dark, [data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark { display: block; }

.mobile-menu { border-top: 1px solid var(--line); padding: 10px 0 18px; }
.mobile-menu a:not(.btn) {
	display: block; padding: 12px 4px; border-bottom: 1px solid var(--line);
	color: var(--ink); font-size: 1.0625rem; font-weight: 600; text-decoration: none;
}
.mobile-menu .btn { width: 100%; margin-top: 16px; }

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

.hero { position: relative; isolation: isolate; overflow-x: clip; padding: clamp(40px, 5vw, 68px) 0 0; text-align: center; }
.hero-bg { position: absolute; inset: 0 0 auto; height: 1100px; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-bg::before {
	content: ""; position: absolute; left: 50%; top: -420px; width: 1500px; height: 1000px;
	transform: translateX(-50%);
	background: radial-gradient(closest-side, var(--glow), transparent 72%);
}
.hero-bg::after {
	content: ""; position: absolute; inset: 0;
	background-image: radial-gradient(var(--dot) 1px, transparent 1.4px);
	background-size: 26px 26px;
	-webkit-mask-image: radial-gradient(ellipse 62% 48% at 50% 26%, #000 20%, transparent 72%);
	mask-image: radial-gradient(ellipse 62% 48% at 50% 26%, #000 20%, transparent 72%);
}

.pill {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 6px 14px 6px 8px; margin-bottom: 24px;
	border: 1px solid var(--line-2); border-radius: 999px;
	background: var(--surface); box-shadow: var(--shadow-1);
	color: var(--text); font-size: .875rem; font-weight: 600; line-height: 1.3; text-decoration: none;
	transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.pill:hover { border-color: var(--sky-line); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.pill-badge {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
	background: var(--sky-soft); color: var(--brand-ink); font-weight: 800; font-size: .8125rem;
}
.pill-badge svg { width: 14px; height: 14px; }
.pill > svg { width: 14px; height: 14px; color: var(--muted); transition: transform .2s var(--ease); }
.pill:hover > svg { transform: translateX(2px); }

.hero h1 { font-size: clamp(2.75rem, 7vw, 5.25rem); line-height: 1; letter-spacing: -.045em; }
.grad {
	background: linear-gradient(100deg, #0a62ae 5%, #1a90e8 95%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="dark"] .grad { background-image: linear-gradient(100deg, #59c1f9 5%, #a5e0fd 95%); }
.hero .lead {
	max-width: 620px; margin: 22px auto 0;
	font-size: clamp(1.0625rem, 1.55vw, 1.3125rem); line-height: 1.55; color: var(--muted); font-weight: 500;
}
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hero-points {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
	margin: 20px 0 0; padding: 0; list-style: none;
	font-size: .875rem; font-weight: 600; color: var(--muted);
}
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points svg { width: 16px; height: 16px; color: var(--good); }
.mobile-note {
	max-width: 420px; margin: 22px auto 0; padding: 14px 16px;
	border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface);
	font-size: .9375rem; color: var(--text);
}
.mobile-note .btn { margin-top: 10px; }

/* Stage: mock browser, floating chips, sample player */
.stage { position: relative; --amp: 0; max-width: 1040px; margin: clamp(40px, 5vw, 60px) auto 0; }
.stage::before {
	content: ""; position: absolute; left: 50%; top: 44%; z-index: -1;
	width: 1560px; height: 1560px; border-radius: 50%;
	transform: translate(-50%, -50%) scale(calc(1 + var(--amp) * .035));
	background: repeating-radial-gradient(circle, transparent 0 109px, var(--ring) 109px 110.5px);
	-webkit-mask-image: radial-gradient(circle, #000 24%, transparent 66%); mask-image: radial-gradient(circle, #000 24%, transparent 66%);
	transition: transform .12s linear;
}
.stage::after {
	content: ""; position: absolute; left: 50%; top: 50%; z-index: -1;
	width: 86%; height: 78%; border-radius: 50%;
	transform: translate(-50%, -50%);
	background: radial-gradient(closest-side, var(--glow), transparent);
	opacity: calc(.55 + var(--amp) * .45);
	filter: blur(30px);
	transition: opacity .12s linear;
}

.browser {
	position: relative; overflow: hidden; text-align: left;
	border: 1px solid var(--line-2); border-radius: 16px;
	background: var(--surface); box-shadow: var(--shadow-3);
}
.browser-top { display: flex; align-items: flex-end; gap: 10px; height: 42px; padding: 0 14px; background: var(--chrome-top); }
.traffic { display: flex; gap: 8px; align-self: center; margin-right: 6px; }
.traffic i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.traffic i:nth-child(2) { background: #febc2e; }
.traffic i:nth-child(3) { background: #28c840; }
.tab {
	display: flex; align-items: center; gap: 8px; min-width: 0; width: 250px; height: 34px; padding: 0 12px;
	border-radius: 10px 10px 0 0; background: var(--chrome-bar);
	font-size: .8125rem; font-weight: 600; color: var(--ink);
}
.tab svg { width: 16px; height: 16px; flex: none; }
.tab span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tab i { margin-left: auto; font-style: normal; color: var(--muted); font-size: .875rem; line-height: 1; }
.browser-bar {
	display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px;
	background: var(--chrome-bar); border-bottom: 1px solid var(--line); color: var(--muted);
}
.browser-bar > svg { width: 17px; height: 17px; flex: none; }
.url {
	display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; height: 30px; padding: 0 12px;
	border-radius: 999px; background: var(--bg-2);
	font-size: .8125rem; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden;
}
.url svg { width: 13px; height: 13px; flex: none; }
.url b { color: var(--ink); font-weight: 600; }
.ext { position: relative; display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; transition: background-color .2s; }
.ext svg { width: 20px; height: 20px; }
.ext::after {
	content: ""; position: absolute; inset: -2px; border-radius: 50%;
	border: 2px solid var(--sky); opacity: 0; transform: scale(.7);
}
.stage.keys .ext::after { animation: ping .7s var(--ease); }
.stage.open .ext { background: var(--sky-soft); }
@keyframes ping { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.7); } }

.mock-page { position: relative; padding: 36px 230px 118px 46px; min-height: 380px; background: var(--surface); }
.mock-kicker { font-size: .8125rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); }
.mock-title { margin-top: 10px; font-size: clamp(1.375rem, 2.6vw, 1.875rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: var(--ink); }
.mock-text { margin-top: 18px; font-size: clamp(1rem, 1.5vw, 1.125rem); line-height: 1.8; color: var(--text); font-weight: 500; }
.mock-text .w { padding: .22em 0; transition: background-color .12s; }
.mock-text .w.sel { background: var(--sel); color: var(--ink); }
.mock-lines { display: grid; gap: 12px; margin-top: 24px; }
.mock-lines i { height: 10px; border-radius: 99px; background: var(--bg-3); }
.mock-lines i:nth-child(1) { width: 94%; }
.mock-lines i:nth-child(2) { width: 82%; }
.mock-lines i:nth-child(3) { width: 58%; }
.cursor {
	position: absolute; left: 0; top: 0; z-index: 2; width: 18px; height: 24px;
	transform: translate(420px, 250px); opacity: 0;
	transition: transform .7s var(--ease), opacity .3s;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3));
}
.stage.live .cursor { opacity: 1; }

/* The extension popup, drawn to match the real one (it has no dark mode). */
.rpop {
	position: absolute; right: 46px; top: 0; z-index: 3; width: 160px; padding: 10px;
	border-radius: 0 0 10px 10px; background: #fff;
	box-shadow: 0 16px 36px rgba(6, 20, 40, .3), 0 0 0 1px rgba(6, 20, 40, .1);
	opacity: 0; transform: translateY(-10px) scale(.96); transform-origin: 80% 0;
	transition: opacity .25s, transform .3s var(--ease);
}
.rpop.show { opacity: 1; transform: none; }
.rpop-disc { position: relative; width: 140px; height: 140px; border-radius: 50%; background: #e2e9f1; }
.rpop-inner {
	position: absolute; left: 10px; top: 20px; width: 120px; height: 120px; overflow: hidden;
	border-radius: 50%; background: #fff; box-shadow: 0 -2px 2px 1px rgba(0, 0, 0, .2);
}
.rpop-btn {
	position: absolute; left: 30px; top: 30px; display: grid; place-items: center; width: 60px; height: 60px;
	border-radius: 50%; color: #fff; transform: scale(0);
	transition: transform .5s cubic-bezier(.75, 0, .2, 1);
}
.rpop-btn svg { width: 30px; height: 30px; fill: currentColor; }
.rpop-pause { background: #ff8f00; }
.rpop-replay, .rpop-resume { background: #00bcd4; }
.rpop-stop { background: #c62828; }
.rpop-add { background: #b71c1c; }
.rpop-stop, .rpop-resume { width: 46px; height: 46px; top: 37px; }
.rpop-stop { left: 12px; }
.rpop-resume { left: 62px; }
.rpop-stop svg, .rpop-resume svg { width: 24px; height: 24px; }
.rpop-add { left: 56px; top: 55px; }
.rpop-loader { color: #00bcd4; }
.rpop-loader svg { width: 60px; height: 60px; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 90 150; animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rpop[data-state="loading"] .rpop-loader,
.rpop[data-state="reading"] .rpop-pause,
.rpop[data-state="paused"] .rpop-stop,
.rpop[data-state="paused"] .rpop-resume,
.rpop[data-state="ended"] .rpop-replay { transform: scale(1); }
.rpop[data-state="ended"] .rpop-add { transform: scale(.68); }

.chip {
	position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px;
	padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 16px;
	background: var(--surface); box-shadow: var(--shadow-2);
	font-size: .875rem; font-weight: 600; line-height: 1.3; color: var(--muted); text-align: left;
}
.chip b { display: block; color: var(--ink); font-weight: 700; font-size: .9375rem; }
.chip-keys { left: -44px; top: 300px; }
.chip-keys .keys { display: flex; align-items: center; gap: 5px; font-size: 1.0625rem; color: var(--muted); }
.chip-keys kbd { transition: transform .12s, box-shadow .12s, background .12s; }
.stage.keys .chip-keys kbd { transform: translateY(2px); box-shadow: 0 0 0 var(--line-2); background: var(--sky-soft); }
.chip-lang { right: -40px; top: 268px; }
.chip-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--sky-soft); color: var(--brand-ink); flex: none; }
.chip-ico svg { width: 19px; height: 19px; }

.player {
	position: relative; z-index: 5; width: min(780px, 100% - 40px); margin: -76px auto 0;
	display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 18px; align-items: center;
	padding: 18px 20px; border: 1px solid var(--line-2); border-radius: 22px;
	background: var(--surface); box-shadow: var(--shadow-3); text-align: left;
}
.player-btn {
	display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%;
	color: var(--on-brand); background: linear-gradient(180deg, var(--cta-1), var(--cta-2));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 18px -6px var(--cta-glow);
	transition: transform .18s var(--ease), filter .2s;
}
.player-btn:hover { transform: scale(1.05); filter: brightness(1.06); }
.player-btn svg { width: 24px; height: 24px; fill: currentColor; }
.player-btn .ico-pause, .player-btn[aria-pressed="true"] .ico-play { display: none; }
.player-btn[aria-pressed="true"] .ico-pause { display: block; }
.player-main { min-width: 0; }
.player-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: .8125rem; font-weight: 700; color: var(--muted); }
.player-meta b { color: var(--ink); font-weight: 800; }
.player-tag { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.player-tag svg { width: 15px; height: 15px; flex: none; }
.player-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wave { display: flex; align-items: center; gap: 2px; height: 38px; }
.wave i { flex: 1; min-width: 1px; height: calc(8% + var(--h) * 92%); border-radius: 99px; background: var(--wave-base); transition: background-color .12s; }
.wave i.on { background: var(--brand); }
.player-foot { grid-column: 1 / -1; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.caption { min-height: 3.2em; font-size: .9375rem; line-height: 1.6; font-weight: 500; color: var(--muted); }
.caption .w { border-radius: 5px; padding: 1px 0; transition: color .15s, background-color .15s; }
.caption .w.said { color: var(--ink); }
.caption .w.now { color: var(--ink); background: var(--warm-soft); box-shadow: 0 0 0 3px var(--warm-soft); }
.langs { display: flex; gap: 2px; flex: none; padding: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.lang-btn { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; font-size: .8125rem; font-weight: 700; color: var(--muted); transition: color .15s, background-color .15s; }
.lang-btn:hover { color: var(--ink); }
.lang-btn[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.stage-note { margin-top: 22px; font-size: .8125rem; color: var(--muted); text-align: center; }

/* ---------- Stats ---------- */

.stats { padding: clamp(52px, 6vw, 80px) 0 0; }
.stats-row {
	display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none;
	border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1);
}
.stat { padding: 28px 30px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(1.875rem, 3.2vw, 2.625rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 6px; font-size: .9375rem; font-weight: 500; color: var(--muted); }

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

.section { padding: clamp(76px, 9.5vw, 132px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
	font-size: .8125rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink);
}
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.125rem); letter-spacing: -.04em; }
.section-head h2 + p { margin-top: 18px; font-size: clamp(1.0625rem, 1.35vw, 1.1875rem); line-height: 1.6; color: var(--muted); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.step {
	display: flex; flex-direction: column; overflow: hidden;
	border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1);
	transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.step-art {
	position: relative; display: grid; place-items: center; height: 214px; padding: 24px; overflow: hidden;
	background: linear-gradient(180deg, var(--bg-2), var(--bg-3)); border-bottom: 1px solid var(--line);
}
.step-body { padding: 24px 26px 28px; }
.step-num { display: block; margin-bottom: 10px; font-size: .8125rem; font-weight: 800; letter-spacing: .1em; color: var(--brand-ink); }
.step h3 { display: flex; align-items: center; gap: 8px; font-size: 1.375rem; }
.step h3 kbd { font-size: .7em; }
.step p { margin-top: 10px; color: var(--muted); font-size: .9688rem; }

.art-select { width: 100%; max-width: 264px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-2); font-size: .875rem; line-height: 1.75; font-weight: 500; color: var(--muted); }
.art-select mark { padding: .2em 0; background: var(--sel); color: var(--ink); }
.art-keys { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 700; color: var(--muted); }
.art-keys kbd { min-width: 2.5em; height: 2.5em; border-radius: 14px; font-size: 1.25rem; box-shadow: 0 4px 0 var(--line-2), var(--shadow-2); transition: transform .15s, box-shadow .15s; }
.step:hover .art-keys kbd { transform: translateY(3px); box-shadow: 0 1px 0 var(--line-2), var(--shadow-1); }
.art-listen { display: flex; align-items: center; gap: 22px; }
.art-disc { position: relative; width: 112px; height: 112px; border-radius: 50%; background: #e2e9f1; flex: none; }
.art-disc::before { content: ""; position: absolute; left: 8px; top: 16px; width: 96px; height: 96px; border-radius: 50%; background: #fff; box-shadow: 0 -2px 2px 1px rgba(0, 0, 0, .2); }
.art-disc::after { content: ""; position: absolute; left: 32px; top: 40px; width: 48px; height: 48px; border-radius: 50%; background: #ff8f00 linear-gradient(90deg, transparent 17px, #fff 17px 22px, transparent 22px 26px, #fff 26px 31px, transparent 31px) no-repeat center / 100% 20px; }
.eq { display: flex; align-items: center; gap: 4px; height: 44px; }
.eq i { width: 5px; height: 30%; border-radius: 99px; background: var(--brand); animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.9s; }
.eq i:nth-child(3) { animation-delay: -.35s; }
.eq i:nth-child(4) { animation-delay: -.6s; }
.eq i:nth-child(5) { animation-delay: -.15s; }
.eq i:nth-child(6) { animation-delay: -.75s; }
@keyframes eq { 0%, 100% { height: 22%; } 50% { height: 100%; } }
.how-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; margin-top: 36px; font-size: .9375rem; font-weight: 500; color: var(--muted); text-align: center; }
.how-foot span { display: inline-flex; align-items: center; gap: 6px; }

/* Features */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile {
	position: relative; grid-column: span 2; display: flex; flex-direction: column; overflow: hidden;
	padding: 30px 30px 0; min-height: 392px;
	border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1);
	transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.tile-4 { grid-column: span 4; }
.tile-3 { grid-column: span 3; min-height: 0; }
.tile-ico { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 12px; background: var(--sky-soft); color: var(--brand-ink); }
.tile-ico svg { width: 22px; height: 22px; }
.tile h3 { font-size: 1.3125rem; }
.tile > p { max-width: 46ch; margin-top: 10px; font-size: .9688rem; color: var(--muted); }
.tile-art { margin-top: auto; padding-top: 28px; }
.tile-3 .tile-art { padding-bottom: 30px; }

.rows { display: grid; border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--surface-2); overflow: hidden; }
.rows-head, .row { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 14px; align-items: center; padding: 12px 20px; }
.rows-head { font-size: .8125rem; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.row { font-size: .9375rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .keys { display: flex; gap: 5px; align-items: center; }
.row em { font-style: normal; color: var(--muted); font-weight: 500; }
.row .tag { justify-self: start; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--sky-soft); color: var(--brand-ink); font-size: .8125rem; font-weight: 700; white-space: nowrap; }

.marquee { display: grid; gap: 10px; margin: 0 -30px; padding-bottom: 30px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.marquee-row { display: flex; gap: 10px; width: max-content; animation: slide 46s linear infinite; }
.marquee-row:nth-child(2) { animation-duration: 58s; animation-direction: reverse; }
.marquee-row:nth-child(3) { animation-duration: 52s; }
.tile:hover .marquee-row { animation-play-state: paused; }
.marquee-row span { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: .875rem; font-weight: 600; color: var(--text); white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }

.dials { display: grid; gap: 18px; padding-bottom: 30px; }
.dial label { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: .875rem; font-weight: 700; color: var(--ink); }
.dial output { color: var(--brand-ink); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--brand) var(--fill, 50%), var(--bg-3) var(--fill, 50%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--brand) var(--fill, 50%), var(--bg-3) var(--fill, 50%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border: 3px solid var(--surface); border-radius: 50%; background: var(--brand); box-shadow: 0 1px 4px rgba(6, 20, 40, .35); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 3px solid var(--surface); border-radius: 50%; background: var(--brand); box-shadow: 0 1px 4px rgba(6, 20, 40, .35); }
.dial-play { justify-self: start; }

.rules { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-bottom: 30px; }
.rule { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding: 11px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font-size: .9375rem; font-weight: 700; color: var(--ink); }
.rule svg { width: 16px; height: 16px; color: var(--muted); }
.rule span:last-child { color: var(--brand-ink); }

.voices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-bottom: 30px; }
.voice { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font-size: .9375rem; font-weight: 700; color: var(--ink); line-height: 1.35; }
.voice i { width: 30px; height: 30px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--sky), #0e77cc); }
.voice:nth-child(2) i { background: linear-gradient(135deg, #ffc46b, #f08a00); }
.voice:nth-child(3) i { background: linear-gradient(135deg, #8fe3c0, #12a66a); }
.voice em { display: block; font-style: normal; font-size: .8125rem; font-weight: 500; color: var(--muted); }
.voice .tag { margin-left: auto; }

.queue { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.queue-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font-size: .9375rem; font-weight: 600; color: var(--muted); }
.queue-item b { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--bg-3); font-size: .8125rem; color: var(--ink); }
.queue-item > span:not(.eq) { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.queue-item.now { border-color: var(--sky-line); background: var(--sky-soft); color: var(--ink); }
.queue-item.now b { background: var(--brand); color: var(--on-brand); }
.queue-item .eq { height: 18px; margin-left: auto; gap: 3px; flex: none; }
.queue-item .eq i { width: 3px; }

.picker { position: relative; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.picker > i { display: block; height: 9px; margin-bottom: 10px; border-radius: 99px; background: var(--bg-3); }
.picker > i:nth-child(2) { width: 72%; }
.picker-hit { margin: 14px -8px; padding: 10px 8px; border: 2px dashed var(--brand); border-radius: 10px; background: var(--sky-soft); font-size: .9375rem; font-weight: 600; color: var(--ink); }
.picker-toast { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: .8125rem; font-weight: 600; }

.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 28px; margin: 40px 0 0; padding: 0; list-style: none; font-size: .9375rem; font-weight: 600; color: var(--text); }
.more li { display: flex; align-items: flex-start; gap: 10px; }
.more svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--good); }

/* Try it */
.lab { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); overflow: hidden; border: 1px solid var(--line-2); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-2); }
.lab-editor { display: flex; flex-direction: column; padding: 26px 28px 22px; }
.lab-samples { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.lab-sample { height: 34px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; font-size: .875rem; font-weight: 700; color: var(--muted); transition: color .15s, border-color .15s, background-color .15s; }
.lab-sample:hover { color: var(--ink); border-color: var(--sky-line); }
.lab-sample[aria-pressed="true"] { background: var(--sky-soft); border-color: var(--sky-line); color: var(--brand-ink); }
.lab textarea {
	flex: 1; width: 100%; min-height: 232px; padding: 0; border: 0; outline: 0; resize: none; background: transparent;
	font-size: clamp(1.125rem, 1.7vw, 1.375rem); line-height: 1.6; font-weight: 500; letter-spacing: -.012em; color: var(--ink);
}
.lab textarea::placeholder { color: var(--muted); }
.lab-meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .8125rem; font-weight: 600; color: var(--muted); }
.lab-side { display: flex; flex-direction: column; gap: 18px; padding: 26px 26px 24px; border-left: 1px solid var(--line); background: var(--bg-2); }
.lab-engine { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--bg-3); font-size: .8125rem; font-weight: 800; color: var(--muted); }
.lab-engine::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.lab-engine.on { background: var(--sky-soft); color: var(--brand-ink); }
.field label { display: block; margin-bottom: 7px; font-size: .8125rem; font-weight: 700; color: var(--muted); }
.select { position: relative; }
.select select {
	-webkit-appearance: none; appearance: none; width: 100%; height: 44px; padding: 0 40px 0 14px;
	border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface);
	font-size: .9375rem; font-weight: 600; color: var(--ink); text-overflow: ellipsis;
}
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.lab-actions { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.lab-actions .btn { flex: 1; }
.lab-speed, .lab-stop { display: grid; place-items: center; height: 46px; min-width: 46px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: .875rem; font-weight: 800; color: var(--ink); transition: border-color .15s, opacity .15s; }
.lab-speed:hover, .lab-stop:hover { border-color: var(--sky-line); }
.lab-stop svg { width: 16px; height: 16px; fill: currentColor; }
.lab .btn.is-playing svg { display: none; }
.lab button:disabled, .lab select:disabled { opacity: .5; cursor: not-allowed; }
.lab-status { display: flex; align-items: center; gap: 10px; min-height: 2.9em; font-size: .875rem; font-weight: 600; color: var(--text); }
.lab-status .eq { height: 18px; gap: 3px; flex: none; }
.lab-status .eq i { width: 3px; animation-play-state: paused; }
.lab-status .eq.playing i { animation-play-state: running; }
.lab-note { font-size: .8125rem; line-height: 1.55; color: var(--muted); }

/* Open source and privacy */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { display: flex; flex-direction: column; padding: clamp(28px, 3.4vw, 44px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-1); }
.panel h3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); }
.panel > p { margin-top: 14px; color: var(--muted); }
.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 28px; }
.repo { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.repo > svg { width: 30px; height: 30px; flex: none; color: var(--ink); }
.repo b { display: block; font-family: var(--mono); font-size: .9375rem; color: var(--ink); }
.repo span { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.checks { display: grid; gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--text); font-size: .9688rem; }
.checks svg { width: 22px; height: 22px; margin-top: 2px; color: var(--good); }
.checks b { color: var(--ink); }

/* FAQ */
.faq { max-width: 840px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary {
	display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px;
	font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); font-weight: 700; letter-spacing: -.015em; color: var(--ink);
	cursor: pointer; list-style: none; transition: color .15s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand-ink); }
.faq summary i { position: relative; width: 28px; height: 28px; flex: none; border: 1px solid var(--line-2); border-radius: 50%; transition: transform .3s var(--ease), background-color .2s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; margin: -1px 0 0 -5.5px; border-radius: 2px; background: currentColor; }
.faq summary i::after { transform: rotate(90deg); transition: transform .3s var(--ease); }
.faq details[open] summary i { background: var(--sky-soft); transform: rotate(180deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { max-width: 68ch; padding: 0 44px 26px 4px; color: var(--muted); }
.faq-more { margin-top: 30px; text-align: center; color: var(--muted); }

/* Closing call to action */
.cta-section { padding-top: 0; }
.cta {
	position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px;
	padding: clamp(40px, 6vw, 76px) clamp(28px, 6vw, 80px); border-radius: 32px;
	background: linear-gradient(135deg, #082a4f 0%, #0b4f8f 55%, #0e77cc 100%); color: #d9ecfb;
}
.cta::before {
	content: ""; position: absolute; right: -180px; top: 50%; z-index: -1; width: 900px; height: 900px; border-radius: 50%;
	transform: translateY(-50%);
	background: repeating-radial-gradient(circle, transparent 0 69px, rgba(255, 255, 255, .13) 69px 70.5px);
	-webkit-mask-image: radial-gradient(circle, #000 20%, transparent 68%); mask-image: radial-gradient(circle, #000 20%, transparent 68%);
}
.cta h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.5rem); letter-spacing: -.04em; }
.cta p { max-width: 520px; margin-top: 16px; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); color: #cfe6f9; }
.cta .btn { margin-top: 30px; }
.btn-light { color: #06284a; background: #fff; box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .5); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 16px 34px -8px rgba(0, 0, 0, .55); }
.cta-mascot { --mascot-ink: #4d4d4d; --mascot-book: #ffffff; width: clamp(150px, 20vw, 236px); filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .35)); }
.pupil { transition: transform .12s linear; }

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

.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(48px, 6vw, 76px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer-about p { max-width: 300px; margin-top: 16px; font-size: .9375rem; color: var(--muted); }
.footer-col h2 { margin-bottom: 16px; font-size: .8125rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.footer-col a { display: block; width: fit-content; padding: 5px 0; font-size: .9375rem; font-weight: 600; color: var(--text); text-decoration: none; transition: color .15s; }
.footer-col a:hover { color: var(--brand-ink); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.footer-bottom p { max-width: 720px; }
.theme-switch { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); }
.theme-switch button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; font-size: .8125rem; font-weight: 700; color: var(--muted); }
.theme-switch button svg { width: 14px; height: 14px; }
.theme-switch button[aria-pressed="true"] { background: var(--bg-3); color: var(--ink); }

/* ---------- Inner pages ---------- */

.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(48px, 6.5vw, 88px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero::before {
	content: ""; position: absolute; right: -260px; top: -420px; z-index: -1; width: 1000px; height: 1000px; border-radius: 50%;
	background: repeating-radial-gradient(circle, transparent 0 79px, var(--ring) 79px 80.5px);
	-webkit-mask-image: radial-gradient(circle, #000 18%, transparent 66%); mask-image: radial-gradient(circle, #000 18%, transparent 66%);
}
.page-hero::after { content: ""; position: absolute; right: -200px; top: -360px; z-index: -2; width: 900px; height: 700px; background: radial-gradient(closest-side, var(--glow), transparent 72%); }
.page-hero h1 { max-width: 820px; font-size: clamp(2.375rem, 5.4vw, 4rem); line-height: 1.04; letter-spacing: -.04em; }
.page-hero .lead { max-width: 640px; margin-top: 20px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--muted); font-weight: 500; }
.page-hero .meta { margin-top: 14px; font-size: .9375rem; font-weight: 600; color: var(--muted); }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 30px; }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand-ink); text-decoration: none; }
.arrow-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.arrow-link:hover svg { transform: translate(2px, -2px); }

.page-body { padding: clamp(40px, 5.5vw, 76px) 0 clamp(72px, 9vw, 120px); }
.page-layout { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 72px; }
.page-narrow { max-width: 780px; }
.toc { position: sticky; top: 104px; align-self: start; display: grid; gap: 2px; }
.toc p { margin-bottom: 10px; font-size: .8125rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.toc a { padding: 7px 14px; border-left: 2px solid var(--line-2); font-size: .9063rem; font-weight: 600; line-height: 1.4; color: var(--muted); text-decoration: none; transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--ink); border-left-color: var(--brand); }

.prose { max-width: 780px; font-size: 1.0313rem; line-height: 1.75; }
.prose > section + section, .prose > * + section { margin-top: clamp(40px, 5vw, 64px); }
.prose section { scroll-margin-top: 104px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 16px; }
.prose h3 { font-size: 1.1875rem; letter-spacing: -.02em; margin: 30px 0 10px; }
.prose p { margin-top: 14px; }
.prose h2 + p, .prose h3 + p { margin-top: 0; }
.prose ul, .prose ol { margin: 14px 0 0; padding-left: 1.3em; }
.prose li { margin-top: 8px; padding-left: 4px; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a:not(.btn):not(.card):not(.arrow-link) { color: var(--brand-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--sky-line); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:not(.btn):not(.card):not(.arrow-link):hover { text-decoration-color: currentColor; }
.prose small { font-size: .875rem; color: var(--muted); }
.prose code { padding: .16em .42em; border: 1px solid var(--line); border-radius: 7px; background: var(--bg-2); font-family: var(--mono); font-size: .86em; color: var(--ink); }
.prose pre {
	position: relative; margin: 20px 0 0; padding: 20px 22px; overflow-x: auto;
	border: 1px solid var(--line-2); border-radius: 16px; background: var(--code-bg); color: var(--code-text);
	font-family: var(--mono); font-size: .875rem; line-height: 1.7; tab-size: 2;
}
.prose pre code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }
.code { position: relative; margin-top: 20px; border-radius: 16px; background: var(--code-bg); }
.code pre { margin: 0; padding-right: 84px; }
.copy-btn { position: absolute; right: 10px; top: 10px; height: 30px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; background: rgba(255, 255, 255, .07); color: #c6d4e8; font-family: var(--font); font-size: .8125rem; font-weight: 700; transition: background-color .15s, color .15s; }
.copy-btn:hover { background: rgba(255, 255, 255, .15); color: #fff; }

.callout { margin-top: 24px; padding: 20px 22px 20px 24px; border: 1px solid var(--sky-line); border-left: 4px solid var(--brand); border-radius: 14px; background: var(--sky-soft); }
.callout h2, .callout h3 { margin: 0 0 6px; font-size: 1.0625rem; letter-spacing: -.02em; }
.callout p { margin-top: 0; font-size: .9688rem; color: var(--text); }
.callout p + p { margin-top: 10px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.card { display: block; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-1); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-2px); border-color: var(--sky-line); box-shadow: var(--shadow-2); }
.card h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; font-size: 1.0625rem; }
.card h3 svg { width: 16px; height: 16px; flex: none; color: var(--brand-ink); transition: transform .2s var(--ease); }
.card:hover h3 svg { transform: translate(2px, -2px); }
.card p { margin-top: 6px; font-size: .9375rem; line-height: 1.6; color: var(--muted); }

.onboard { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: onboard; }
.prose .onboard { padding-left: 0; }
.onboard li { position: relative; margin: 0; padding: 24px 26px 24px 84px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-1); counter-increment: onboard; }
.onboard li::before { content: counter(onboard); position: absolute; left: 24px; top: 24px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--sky-soft); color: var(--brand-ink); font-size: 1.125rem; font-weight: 800; }
.onboard h3 { margin: 0 0 6px; font-size: 1.1875rem; }
.onboard p { margin-top: 0; color: var(--muted); }
.practice { margin-top: 24px; padding: 26px 28px; border: 1.5px dashed var(--sky-line); border-radius: 18px; background: var(--sky-soft); }
.practice span { display: block; margin-bottom: 8px; font-size: .8125rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); }
.practice p { margin: 0; font-size: clamp(1.125rem, 1.8vw, 1.3125rem); line-height: 1.6; font-weight: 600; letter-spacing: -.012em; color: var(--ink); }

.filter { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 16px; margin-top: 26px; }
.filter label { grid-column: 1 / -1; font-size: .8125rem; font-weight: 700; color: var(--muted); }
.filter input { height: 48px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font-size: 1rem; font-weight: 500; color: var(--ink); box-shadow: var(--shadow-1); }
.filter input::placeholder { color: var(--muted); }
.prose .filter p { margin: 0; padding-bottom: 12px; font-size: .875rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.table-wrap { margin-top: 16px; max-height: 620px; overflow: auto; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-1); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9688rem; }
.prose caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.prose thead th { position: sticky; top: 0; z-index: 1; padding: 13px 20px; background: var(--bg-2); box-shadow: 0 1px 0 var(--line-2); font-size: .8125rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: left; }
.prose tbody th, .prose tbody td { padding: 12px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.prose tbody tr:last-child > * { border-bottom: 0; }
.prose tbody th { font-weight: 700; color: var(--ink); }
.prose tbody tr:hover > * { background: var(--surface-2); }

.farewell { display: grid; place-items: center; margin-bottom: 8px; }
.farewell svg { width: 132px; height: auto; }

/* ---------- Motion ---------- */

.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; }
	.marquee-row, .eq i, .rpop-loader svg { animation: none; }
	.marquee-row { flex-wrap: wrap; width: auto; padding: 0 30px; }
	.marquee-row span[aria-hidden="true"] { display: none; }
	.eq i { height: 60%; }
	*, *::before, *::after { transition-duration: .01ms !important; }
}

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

@media (max-width: 1160px) {
	.chip-keys { left: -12px; }
	.chip-lang { right: -12px; }
}
@media (max-width: 1020px) {
	.nav { display: none; }
	.header-actions { margin-left: auto; }
	.menu-btn { display: inline-grid; }
	.bento { grid-template-columns: repeat(2, 1fr); }
	.tile, .tile-3 { grid-column: span 1; }
	.tile-4 { grid-column: span 2; }
	.page-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.toc { position: static; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); }
	.footer-grid { grid-template-columns: 1fr 1fr 1fr; }
	.footer-about { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
	.chip { display: none; }
	.steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
	.lab { grid-template-columns: 1fr; }
	.lab-side { border-left: 0; border-top: 1px solid var(--line); }
	.lab textarea { min-height: 180px; }
	.duo { grid-template-columns: 1fr; }
	.stats-row { grid-template-columns: 1fr 1fr; }
	.stat:nth-child(3) { border-left: 0; }
	.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
	.cta { grid-template-columns: 1fr; }
	.more { grid-template-columns: 1fr 1fr; }
	.cta-mascot { order: -1; width: 104px; }
}
@media (max-width: 700px) {
	.wrap { width: min(var(--wrap), 100% - 36px); }
	.header-row { height: 64px; gap: 10px; }
	.header-actions .btn, .header-gh { display: none; }
	.mock-page { padding: 26px 22px 104px; min-height: 0; }
	.rpop { right: 12px; scale: .72; transform-origin: 100% 0; }
	.mock-kicker, .mock-title { padding-right: 112px; }
	.tab { width: 190px; }
	.browser-bar > svg:nth-of-type(2), .browser-bar > svg:nth-of-type(3) { display: none; }
	.player { margin-top: -64px; padding: 14px; gap: 12px; }
	.player-btn { width: 48px; height: 48px; }
	.player-foot { flex-direction: column-reverse; gap: 12px; }
	.langs { align-self: flex-start; }
	.bento { grid-template-columns: 1fr; }
	.tile, .tile-4, .tile-3 { grid-column: auto; min-height: 0; padding: 24px 22px 0; }
	.marquee { margin: 0 -22px; }
	.rows-head, .row { grid-template-columns: 1.2fr 1fr; padding: 11px 14px; }
	.rows-head span:nth-child(3), .row > :nth-child(3) { display: none; }
	.cards { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px 16px; }
	.footer-col a { font-size: .875rem; }
	.more { grid-template-columns: 1fr; }
	.faq details p { padding-right: 4px; }
	.onboard li { padding: 76px 22px 22px; }
	.filter { grid-template-columns: 1fr; }
	.prose .filter p { padding-bottom: 0; }
	.cta { border-radius: 24px; }
	.cta-mascot { width: 88px; }
}
@media (max-width: 420px) {
	.btn-lg { height: 52px; padding: 0 1.3rem; font-size: 1rem; }
	.hero-cta .btn { width: 100%; }
	.stat { padding: 22px 20px; }
	.pill-extra { display: none; }
	.footer-grid { gap: 24px 12px; }
}
