/*
 * Testmatik – main stylesheet
 * Tokens → base → layout → header → home → cards → content → tools → footer → utilities
 */

/* ------------------------------------------------------------------ Fonts */
@font-face { font-family: "Jakarta"; src: url("../fonts/jakarta-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; 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: "Jakarta"; src: url("../fonts/jakarta-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; 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; }
@font-face { font-family: "JBMono"; src: url("../fonts/jbmono-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+2190-21FF, U+2212; }
@font-face { font-family: "JBMono"; src: url("../fonts/jbmono-latin-ext.woff2") format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02FF, U+1E00-1EFF; }

/* ----------------------------------------------------------------- Tokens */
:root {
	--font: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: "JBMono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

	--bg: #f7f8fb;
	--bg-elev: #ffffff;
	--bg-sunken: #eef1f6;
	--ink: #0b1020;
	--ink-2: #2f3650;
	--muted: #5f6782;
	--line: #e3e7ef;
	--line-strong: #cfd5e2;

	--brand: #0e9f6e;
	--brand-hover: #0b8a5f;
	--brand-ink: #ffffff;
	--brand-soft: #e3f7ef;
	--brand-text: #08794f;
	--accent: linear-gradient(105deg, #10b981 0%, #06b6d4 48%, #6366f1 100%);

	--danger: #dc2626;
	--danger-soft: #fdecec;
	--warn: #b45309;
	--warn-soft: #fff4e2;
	--info: #0369a1;
	--info-soft: #e6f3fb;

	--key-face: #ffffff;
	--key-side: #d6dbe6;
	--key-ink: #1e2540;

	--radius-sm: 10px;
	--radius: 14px;
	--radius-lg: 20px;
	--radius-xl: 28px;

	--shadow-sm: 0 1px 2px rgba(11, 16, 32, .06);
	--shadow: 0 1px 2px rgba(11, 16, 32, .05), 0 10px 30px -12px rgba(11, 16, 32, .14);
	--shadow-lg: 0 2px 6px rgba(11, 16, 32, .05), 0 30px 70px -28px rgba(8, 60, 50, .35);
	--ring: 0 0 0 3px rgba(14, 159, 110, .3);

	--container: 1200px;
	--container-tool: 1080px;
	--container-article: 820px;
	--container-prose: 760px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 68px;
	--ease: cubic-bezier(.2, .7, .2, 1);

	--tone: #4f46e5;
	--tone-soft: #eef0ff;
	color-scheme: light;
}

.tone-indigo  { --tone: #4f46e5; --tone-soft: #eef0ff; }
.tone-rose    { --tone: #e11d48; --tone-soft: #ffeef2; }
.tone-emerald { --tone: #059669; --tone-soft: #e3f7ef; }
.tone-sky     { --tone: #0284c7; --tone-soft: #e5f4fd; }
.tone-amber   { --tone: #c26a04; --tone-soft: #fff3df; }
.tone-violet  { --tone: #7c3aed; --tone-soft: #f2ecff; }

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0a0e1a; --bg-elev: #121829; --bg-sunken: #0d1220; --ink: #eef1f8; --ink-2: #c6cbe0; --muted: #949bb6;
		--line: #222a40; --line-strong: #2f3854; --brand: #34d399; --brand-hover: #6ee7b7; --brand-ink: #04140e; --brand-soft: #0e2a22; --brand-text: #6ee7b7;
		--danger: #f87171; --danger-soft: #3a1518; --warn: #fbbf24; --warn-soft: #33260d; --info: #7dd3fc; --info-soft: #0d2333;
		--key-face: #1b2236; --key-side: #0b0f1c; --key-ink: #e3e7f5;
		--shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -12px rgba(0,0,0,.6); --shadow-lg: 0 2px 6px rgba(0,0,0,.4), 0 30px 70px -28px rgba(0,0,0,.8);
		color-scheme: dark;
	}
	:root:not([data-theme="light"]) .tone-indigo  { --tone: #a5b4fc; --tone-soft: #1b1d3d; }
	:root:not([data-theme="light"]) .tone-rose    { --tone: #fb7185; --tone-soft: #3a1420; }
	:root:not([data-theme="light"]) .tone-emerald { --tone: #34d399; --tone-soft: #0e2a22; }
	:root:not([data-theme="light"]) .tone-sky     { --tone: #7dd3fc; --tone-soft: #0d2333; }
	:root:not([data-theme="light"]) .tone-amber   { --tone: #fbbf24; --tone-soft: #33260d; }
	:root:not([data-theme="light"]) .tone-violet  { --tone: #c4b5fd; --tone-soft: #24183f; }
}
:root[data-theme="dark"] {
	--bg: #0a0e1a; --bg-elev: #121829; --bg-sunken: #0d1220; --ink: #eef1f8; --ink-2: #c6cbe0; --muted: #949bb6;
	--line: #222a40; --line-strong: #2f3854; --brand: #34d399; --brand-hover: #6ee7b7; --brand-ink: #04140e; --brand-soft: #0e2a22; --brand-text: #6ee7b7;
	--danger: #f87171; --danger-soft: #3a1518; --warn: #fbbf24; --warn-soft: #33260d; --info: #7dd3fc; --info-soft: #0d2333;
	--key-face: #1b2236; --key-side: #0b0f1c; --key-ink: #e3e7f5;
	--shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -12px rgba(0,0,0,.6); --shadow-lg: 0 2px 6px rgba(0,0,0,.4), 0 30px 70px -28px rgba(0,0,0,.8);
	color-scheme: dark;
}
:root[data-theme="dark"] .tone-indigo  { --tone: #a5b4fc; --tone-soft: #1b1d3d; }
:root[data-theme="dark"] .tone-rose    { --tone: #fb7185; --tone-soft: #3a1420; }
:root[data-theme="dark"] .tone-emerald { --tone: #34d399; --tone-soft: #0e2a22; }
:root[data-theme="dark"] .tone-sky     { --tone: #7dd3fc; --tone-soft: #0d2333; }
:root[data-theme="dark"] .tone-amber   { --tone: #fbbf24; --tone-soft: #33260d; }
:root[data-theme="dark"] .tone-violet  { --tone: #c4b5fd; --tone-soft: #24183f; }

/* ------------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16.5px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 750; color: var(--ink); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
kbd { font-family: var(--mono); font-size: .82em; padding: .1em .45em; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--bg-elev); color: var(--ink-2); white-space: nowrap; }
code { font-family: var(--mono); font-size: .88em; padding: .1em .35em; background: var(--bg-sunken); border-radius: 6px; }
::selection { background: rgba(16, 185, 129, .25); }
.tm-noscroll, .tm-noscroll body { overflow: hidden; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 10px; }
.skip-link:focus { top: 12px; }

/* ----------------------------------------------------------------- Layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--tool { max-width: var(--container-tool); }
.container--article { max-width: var(--container-article); }
.container--prose { max-width: var(--container-prose); }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--tight { padding: clamp(32px, 5vw, 56px) 0; }
.section-head { max-width: 720px; margin: 0 0 28px; }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); }
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--accent); }
.section-title { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 10px; }
.section-lead { color: var(--muted); font-size: 17px; margin: 0; }

/* ---------------------------------------------------------------- Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 650; font-size: 15px; line-height: 1.2; text-decoration: none; transition: background .2s var(--ease), color .2s, border-color .2s, transform .15s var(--ease), box-shadow .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px -8px rgba(14, 159, 110, .7); }
.btn--primary:hover { background: var(--brand-hover); color: var(--brand-ink); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { color: var(--bg); opacity: .9; }
.btn--ghost { background: var(--bg-elev); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn--light { background: #fff; color: #0b1020; }
.btn--light:hover { color: #0b1020; background: #ecfdf5; }
.btn--sm { min-height: 38px; padding: 8px 13px; font-size: 14px; border-radius: 10px; }
.btn--lg { min-height: 52px; padding: 13px 24px; font-size: 16.5px; border-radius: 14px; }
.btn--block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink-2); }
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.linklike { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ----------------------------------------------------------------- Header */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -.03em; flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo__text span { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.custom-logo-link img { max-height: 40px; width: auto; }
.nav { margin-right: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; background: none; border: 0; }
.nav__link:hover, .nav__item.is-open .nav__link { color: var(--ink); background: var(--bg-sunken); }
.nav__trigger .icon { transition: transform .2s var(--ease); }
.nav__item--mega { position: relative; }
.nav__item.is-open .nav__trigger .icon { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 10px); left: -12px; width: min(680px, 92vw); padding: 12px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s var(--ease), visibility .18s; }
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega__link { display: flex; gap: 12px; padding: 12px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.mega__link:hover, .mega__link.is-current { background: var(--tone-soft); color: var(--ink); }
.mega__link strong { display: block; font-size: 15px; }
.mega__link small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
.mega__icon { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tone-soft); color: var(--tone); }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn__moon { display: none; }
:root[data-theme="dark"] .icon-btn__moon { display: inline; }
:root[data-theme="dark"] .icon-btn__sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-btn__moon { display: inline; } :root:not([data-theme="light"]) .icon-btn__sun { display: none; } }
.nav-toggle { display: none; }
.nav-toggle__close { display: none; }

@media (max-width: 860px) {
	.nav-toggle { display: inline-grid; }
	.site-header__cta { display: none; }
	.nav { position: fixed; inset: var(--header-h) 0 auto 0; max-height: calc(100vh - var(--header-h)); overflow: auto; background: var(--bg-elev); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 12px var(--gutter) 20px; display: none; margin: 0; }
	.nav-open .nav { display: block; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: inline; }
	.nav__list { flex-direction: column; align-items: stretch; }
	.nav__link { width: 100%; justify-content: space-between; padding: 12px; font-size: 16px; }
	.mega { position: static; width: auto; padding: 4px 0 0; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; background: transparent; }
	.nav__item.is-open .mega { display: block; }
	.mega__grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------- Breadcrumb */
.breadcrumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; opacity: .5; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ------------------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hero__orb--a { width: 520px; height: 520px; left: -120px; top: -180px; background: radial-gradient(circle, rgba(16, 185, 129, .45), transparent 65%); }
.hero__orb--b { width: 560px; height: 560px; right: -160px; top: -60px; background: radial-gradient(circle, rgba(99, 102, 241, .35), transparent 65%); }
.hero__dots { position: absolute; inset: 0; background-image: radial-gradient(var(--line-strong) 1px, transparent 1.2px); background-size: 22px 22px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); opacity: .7; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px 6px 10px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--bg-elev); color: var(--ink-2); font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-sm); }
.badge__pulse { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.hero__title { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.06; letter-spacing: -.035em; margin: 0 0 18px; }
.hero__title .accent { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(16.5px, 1.6vw, 19px); color: var(--ink-2); max-width: 600px; margin: 0 0 26px; }
.finder { position: relative; display: flex; align-items: center; max-width: 560px; height: 58px; padding: 0 14px 0 18px; gap: 10px; background: var(--bg-elev); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow); color: var(--muted); }
.finder:focus-within { border-color: var(--brand); box-shadow: var(--shadow), var(--ring); }
.finder input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 16.5px; color: var(--ink); }
.finder kbd { opacity: .7; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust .icon { color: var(--brand); }
.hero__visual { position: relative; }
.keys-demo { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 22px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); transform: rotate(-2deg); }
.keys-demo__key { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; background: var(--key-face); color: var(--key-ink); font-weight: 700; font-size: clamp(15px, 1.6vw, 20px); box-shadow: inset 0 -4px 0 var(--key-side), 0 1px 2px rgba(0,0,0,.1); border: 1px solid var(--line); animation: keyglow 7s calc(var(--d) * .35s) infinite; }
@keyframes keyglow { 0%, 86%, 100% { background: var(--key-face); color: var(--key-ink); transform: none; } 88% { background: #4f46e5; color: #fff; transform: translateY(2px); box-shadow: inset 0 -2px 0 #3730a3; } 94% { background: #10b981; color: #fff; transform: none; box-shadow: inset 0 -4px 0 #047857; } }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; justify-content: center; }
.hero-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 99px; background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hero-chip .icon { color: var(--tone); }
@media (max-width: 900px) { .hero__inner { grid-template-columns: 1fr; } .hero__visual { max-width: 460px; } }
@media (max-width: 560px) { .hero__visual { display: none; } .finder kbd { display: none; } }

/* ----------------------------------------------------------------- Cards */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-card { position: relative; display: flex; gap: 16px; padding: 22px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; overflow: hidden; }
.tool-card::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 160px; height: 160px; border-radius: 50%; background: var(--tone-soft); opacity: .7; transition: transform .35s var(--ease); z-index: 0; }
.tool-card > * { position: relative; z-index: 1; }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--tone) 40%, var(--line)); color: var(--ink); }
.tool-card:hover::after { transform: scale(1.25); }
.tool-card__icon { flex-shrink: 0; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--tone-soft); color: var(--tone); }
.tool-card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tool-card__title { font-weight: 750; font-size: 18px; letter-spacing: -.01em; }
.tool-card__text { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.tool-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { padding: 3px 9px; border-radius: 99px; background: var(--bg-sunken); color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.tool-card__go { position: absolute; right: 18px; top: 22px; color: var(--muted); transition: transform .2s var(--ease), color .2s; }
.tool-card:hover .tool-card__go { color: var(--tone); transform: translateX(3px); }
.tool-card--compact { padding: 12px 14px; gap: 12px; align-items: center; border-radius: var(--radius); box-shadow: none; }
.tool-card--compact::after { display: none; }
.tool-card--compact .tool-card__icon { width: 38px; height: 38px; border-radius: 11px; }
.tool-card--compact .tool-card__title { font-size: 15px; }
.tool-card--compact .tool-card__text { display: none; }
.tool-card--compact .tool-card__go { position: static; margin-left: auto; }
.finder-empty { text-align: center; color: var(--muted); padding: 24px 0 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 26px 24px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step__num { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px; background: var(--key-face); color: var(--key-ink); font-family: var(--mono); font-weight: 700; border: 1px solid var(--line); box-shadow: inset 0 -3px 0 var(--key-side); }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }
.section--steps { background: var(--bg-sunken); border-block: 1px solid var(--line); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 26px 24px; border-radius: var(--radius-lg); background: var(--bg-elev); border: 1px solid var(--line); }
.feature__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-text); }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card__link { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.post-card__link:hover { color: var(--ink); }
.post-card__media { display: block; aspect-ratio: 16 / 9; background: var(--tone-soft); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__art { display: grid; place-items: center; width: 100%; height: 100%; color: var(--tone); background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--tone) 22%, transparent), transparent 55%), radial-gradient(circle at 80% 90%, color-mix(in srgb, var(--tone) 16%, transparent), transparent 55%), var(--tone-soft); }
.post-card__art .icon { width: 56px; height: 56px; }
.post-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.post-card__cat { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tone); }
.post-card__title { font-weight: 750; font-size: 18px; line-height: 1.3; letter-spacing: -.01em; }
.post-card__excerpt { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.post-card__meta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: var(--muted); font-size: 13px; }

.cta-band { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(28px, 5vw, 48px); border-radius: var(--radius-xl); background: #0b1020; color: #fff; }
.cta-band::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle at 15% 30%, rgba(16, 185, 129, .45), transparent 40%), radial-gradient(circle at 85% 70%, rgba(99, 102, 241, .45), transparent 40%); pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin-bottom: 6px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.78); }

/* ------------------------------------------------------------ Page heroes */
.page-hero { padding: clamp(36px, 6vw, 64px) 0 clamp(20px, 3vw, 28px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-sunken), var(--bg)); }
.page-hero__title { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.03em; margin-bottom: 12px; }
.page-hero__lead { color: var(--ink-2); font-size: 18px; max-width: 720px; }
.page-hero--blog .chips { margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.chip:hover { color: var(--ink); border-color: var(--ink-2); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 99px; background: var(--tone-soft); color: var(--tone); font-size: 13px; font-weight: 700; text-decoration: none; }
.pill:hover { color: var(--tone); }

.article-hero { padding: clamp(32px, 5vw, 56px) 0 24px; background: linear-gradient(180deg, var(--tone-soft), var(--bg) 85%); }
.article-hero__title { font-size: clamp(30px, 4.6vw, 48px); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 14px; }
.article-hero__lead { font-size: 18.5px; color: var(--ink-2); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; margin: 0; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-figure { margin-bottom: 24px; }
.article-figure img { border-radius: var(--radius-lg); }

/* --------------------------------------------------------- Guide layouts */
.layout-guide { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.layout-guide__side { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 20px; max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; }
.layout-guide .prose { max-width: var(--container-prose); }
.layout-article { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; padding: 8px 0 48px; }
.layout-article__side { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 980px) {
	.layout-guide, .layout-article { grid-template-columns: 1fr; gap: 24px; }
	.layout-guide__side, .layout-article__side { position: static; max-height: none; }
	.layout-guide__side .side-tools { display: none; }
	.layout-article__side { order: -1; }
	.layout-article__side .side-cta { display: none; }
}
.toc { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
.toc__title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 700; font-size: 14px; color: var(--ink); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 6px 8px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.4; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 12px; opacity: .6; padding-top: 1px; }
.toc a:hover, .toc a.is-active { color: var(--ink); background: var(--bg-sunken); }
.side-tools { display: flex; flex-direction: column; gap: 8px; }
.side-tools__title { margin: 0 0 2px; font-weight: 700; font-size: 14px; }
.side-cta { padding: 20px; border-radius: var(--radius-lg); background: var(--tone-soft); border: 1px solid color-mix(in srgb, var(--tone) 25%, transparent); }
.side-cta__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--bg-elev); color: var(--tone); margin-bottom: 10px; }
.side-cta__title { font-weight: 750; font-size: 18px; margin: 0 0 4px; }
.side-cta p { font-size: 14.5px; color: var(--ink-2); }

/* ------------------------------------------------------------------ Prose */
.prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(23px, 2.6vw, 29px); margin: 2.1em 0 .6em; color: var(--ink); }
.prose h3 { font-size: 20px; margin: 1.7em 0 .5em; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink); }
.prose a { font-weight: 600; }
.prose ol.tm-steps { list-style: none; padding: 0; counter-reset: st; }
.prose ol.tm-steps > li { counter-increment: st; position: relative; padding: 14px 16px 14px 60px; margin: 10px 0; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); }
.prose ol.tm-steps > li::before { content: counter(st); position: absolute; left: 14px; top: 12px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--key-face); color: var(--key-ink); font-family: var(--mono); font-weight: 700; font-size: 14px; border: 1px solid var(--line); box-shadow: inset 0 -3px 0 var(--key-side); }
.tm-callout { margin: 1.4em 0; padding: 16px 18px 16px 52px; border-radius: var(--radius); position: relative; border: 1px solid transparent; }
.tm-callout p:last-child { margin-bottom: 0; }
.tm-callout::before { content: ""; position: absolute; left: 18px; top: 19px; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.tm-callout--tip { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 25%, transparent); color: var(--brand-text); --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 22h4M12 2a7 7 0 0 0-4 12.7c.6.5 1 1.3 1 2.3h6c0-1 .4-1.8 1-2.3A7 7 0 0 0 12 2Z'/%3E%3C/svg%3E"); }
.tm-callout--warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 25%, transparent); color: var(--warn); --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0ZM12 9v4M12 17h.01'/%3E%3C/svg%3E"); }
.tm-callout--info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 25%, transparent); color: var(--info); --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E"); }
.tm-callout p { color: var(--ink-2); }
.tm-callout strong { color: inherit; }
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-sunken); color: var(--ink); font-weight: 700; font-size: 14px; }
.prose tr:last-child td { border-bottom: 0; }
.cta-card { display: flex; align-items: center; gap: 16px; margin: 1.8em 0; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--tone-soft); border: 1px solid color-mix(in srgb, var(--tone) 25%, transparent); }
.cta-card__icon { flex-shrink: 0; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--bg-elev); color: var(--tone); }
.cta-card__body { flex: 1; display: flex; flex-direction: column; font-size: 15px; line-height: 1.5; }
.cta-card__body strong { font-size: 17px; }
.cta-card .btn { text-decoration: none; }
@media (max-width: 600px) { .cta-card { flex-wrap: wrap; } .cta-card .btn { width: 100%; } }

/* -------------------------------------------------------------------- FAQ */
.faq { margin: 2.6em 0 0; }
.faq__title { font-size: clamp(23px, 2.6vw, 29px); margin-bottom: 16px; }
.faq__list { display: flex; flex-direction: column; gap: 10px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); transition: border-color .2s; }
.faq__item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; cursor: pointer; font-weight: 700; color: var(--ink); font-size: 16.5px; line-height: 1.4; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { flex-shrink: 0; color: var(--muted); transition: transform .2s var(--ease); }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__answer { padding: 0 18px 16px; color: var(--ink-2); font-size: 16px; }
.faq__answer p { margin: 0; }

/* ------------------------------------------------------------- Tool pages */
.tool-hero { padding: clamp(24px, 4vw, 40px) 0 clamp(28px, 4vw, 44px); background: linear-gradient(180deg, var(--tone-soft), var(--bg) 70%); border-bottom: 1px solid var(--line); }
.tool-hero__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.tool-hero__icon { flex-shrink: 0; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--bg-elev); color: var(--tone); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.tool-hero__title { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.03em; margin: 2px 0 6px; }
.tool-hero__lead { color: var(--ink-2); font-size: 17px; margin: 0; max-width: 760px; }
.tool-shell { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: clamp(16px, 2.6vw, 28px); }
.tool-trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 16px 0 0; padding: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.tool-trust li { display: inline-flex; align-items: center; gap: 6px; }
.tool-trust .icon { color: var(--brand); }
@media (max-width: 560px) { .tool-hero__icon { width: 48px; height: 48px; border-radius: 14px; } }

.app { --tone-c: var(--tone); display: flex; flex-direction: column; gap: 16px; }
.app__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.app__bar--end { justify-content: flex-end; }
.app__hint, .app__note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: var(--radius); background: var(--bg-sunken); color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.app__hint .icon, .app__note .icon { flex-shrink: 0; margin-top: 1px; color: var(--tone); }
.app__note { background: transparent; border: 1px dashed var(--line-strong); color: var(--muted); }
.app__status { margin: 0; min-height: 1.4em; color: var(--ink-2); font-size: 14.5px; font-weight: 600; }
.app__status:empty { display: none; }
.app__device { margin: 0; color: var(--muted); font-size: 14px; }
.app__device:empty { display: none; }
.app__notice { padding: 14px; border-radius: var(--radius); background: var(--warn-soft); color: var(--warn); }
.seg { display: inline-flex; padding: 4px; gap: 2px; background: var(--bg-sunken); border-radius: 12px; border: 1px solid var(--line); }
.seg__btn { padding: 7px 14px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-weight: 650; font-size: 14px; }
.seg__btn:hover { color: var(--ink); }
.seg__btn.is-active { background: var(--bg-elev); color: var(--ink); box-shadow: var(--shadow-sm); }
.switch, .check { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; user-select: none; }
.switch input { appearance: none; -webkit-appearance: none; position: relative; width: 38px; height: 22px; border-radius: 99px; background: var(--line-strong); transition: background .2s; cursor: pointer; flex-shrink: 0; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(16px); }
.check input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.select select { min-height: 40px; max-width: 280px; padding: 8px 34px 8px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg-elev) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23889' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center no-repeat; appearance: none; -webkit-appearance: none; font-size: 14.5px; text-overflow: ellipsis; }
.select select:disabled { opacity: .6; }
.range { display: inline-flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); min-width: 200px; }
.range b { font-family: var(--mono); color: var(--ink); }
.range input { accent-color: var(--brand); width: 100%; }
.range--wide { flex: 1; min-width: 220px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--radius); background: var(--bg-sunken); border: 1px solid var(--line); min-width: 0; }
.stat__label { font-size: 12.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.stat__value { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.callout { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); font-size: 14.5px; line-height: 1.5; }
.callout p { margin: 0; }
.callout .icon { flex-shrink: 0; margin-top: 1px; }
.callout--warn { background: var(--warn-soft); color: var(--warn); }
.callout--warn p { color: var(--ink-2); }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); font-size: 14.5px; font-weight: 600; }
.alert--danger { background: var(--danger-soft); color: var(--danger); }
.chip[data-hz] { cursor: pointer; }

/* Keyboard */
.kb-wrap { overflow-x: auto; padding: 4px 2px 10px; border-radius: var(--radius); outline: none; container-type: inline-size; }
.kb { --u: clamp(26px, calc((100cqw - 150px) / 18.6), 46px); --gap: clamp(3px, .5cqw, 5px); display: flex; gap: calc(var(--u) * .35); width: max-content; margin: 0 auto; padding: 14px; background: var(--bg-sunken); border: 1px solid var(--line); border-radius: 18px; }
.kb--full { --u: clamp(26px, calc((100cqw - 190px) / 22.8), 46px); }
.kb-block { display: flex; flex-direction: column; gap: var(--gap); }
.kb-row { display: flex; gap: var(--gap); }
.kb-row--fn { margin-bottom: calc(var(--u) * .25); }
.kb-row--blank { height: var(--u); }
.k { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: calc(var(--u) * var(--w, 1) + var(--gap) * (var(--w, 1) - 1)); height: var(--u); padding: 0 4px; border-radius: 8px; background: var(--key-face); color: var(--key-ink); border: 1px solid var(--line); box-shadow: inset 0 -3px 0 var(--key-side); font-size: calc(var(--u) * .3); font-weight: 650; line-height: 1.05; user-select: none; transition: background .12s, color .12s, transform .08s, box-shadow .12s; white-space: nowrap; overflow: hidden; }
.k .k-top { font-size: .82em; opacity: .7; }
.k--gap { visibility: hidden; }
.k--tall { height: calc(var(--u) * 2 + var(--gap)); margin-bottom: calc((var(--u) + var(--gap)) * -1); z-index: 1; }
.k.is-ok { background: #10b981; color: #fff; border-color: #059669; box-shadow: inset 0 -3px 0 #047857; }
.k.is-down { background: #4f46e5; color: #fff; border-color: #4338ca; box-shadow: inset 0 -1px 0 #3730a3; transform: translateY(2px); }
.kb-nav .kb-row:nth-child(4) { margin-top: calc(var(--u) + var(--gap)); }
.kb-nav .kb-row:nth-child(4):empty { display: none; }
.app--keyboard .stat__value[data-ref="last"] { font-size: 22px; }
.app__log { padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); }
.app__log-title { margin: 0 0 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.app__log ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; min-height: 34px; }
.app__log li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; background: var(--bg-sunken); font-size: 13px; }
.app__log li span { color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.app__log li code { background: none; padding: 0; color: var(--muted); }
.app--keyboard.is-live .app__hint { display: none; }

/* Dead pixel */
.pixel-hero { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; padding: 8px 0; }
.pixel-swatches { display: grid; grid-template-columns: repeat(9, 1fr); width: min(100%, 560px); height: 90px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.pixel-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.pixel-colors { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pixel-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--bg-elev); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pixel-chip span { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); }
.pixel-chip:hover { border-color: var(--ink-2); color: var(--ink); }
.fixer { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg-sunken); }
.fixer__head { display: flex; gap: 12px; align-items: flex-start; }
.fixer__head p { margin: 0; color: var(--ink-2); font-size: 15px; }
.fixer__icon { flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--tone-soft); color: var(--tone); }
.fixer__title { font-size: 18px; margin: 0 0 2px; }
.fixer__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.pixel-stage { position: fixed; inset: 0; z-index: 9999; background: #000; cursor: pointer; outline: none; }
.pixel-stage:fullscreen { width: 100%; height: 100%; }
.pixel-stage__hud { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; max-width: 92vw; padding: 10px 16px; border-radius: 12px; background: rgba(0,0,0,.66); color: #fff; font-size: 14px; font-weight: 600; opacity: 0; transition: opacity .3s; pointer-events: none; text-align: center; }
.pixel-stage__hud.is-visible { opacity: 1; }
.pixel-stage__close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(0,0,0,.55); color: #fff; opacity: 0; transition: opacity .3s; }
.pixel-stage:hover .pixel-stage__close, .pixel-stage__close:focus-visible { opacity: 1; }
.pixel-stage.is-light .pixel-stage__close { background: rgba(0,0,0,.4); }
.fixer-box { position: fixed; z-index: 10000; width: 120px; height: 120px; cursor: grab; touch-action: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000; }
.fixer-box:active { cursor: grabbing; }
.fixer-box canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.fixer-box button { position: absolute; top: -14px; right: -14px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; background: #0b1020; color: #fff; }

/* Microphone */
.meter { position: relative; height: 28px; border-radius: 10px; background: var(--bg-sunken); border: 1px solid var(--line); overflow: hidden; }
.meter__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #10b981 0%, #84cc16 60%, #f59e0b 85%, #ef4444 100%); background-size: 100vw 100%; transition: width .06s linear; }
.meter__peak { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--ink); opacity: .7; }
.meter__scale { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 8px; font-family: var(--mono); font-size: 11px; color: var(--ink-2); pointer-events: none; mix-blend-mode: difference; color: #fff; opacity: .65; }
.scope { width: 100%; height: 150px; border-radius: var(--radius); background: var(--bg-sunken); border: 1px solid var(--line); }
.recorder { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.recorder audio { height: 40px; max-width: 100%; }

/* Camera */
.cam { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #070a14; border: 1px solid var(--line); }
.cam video { width: 100%; height: 100%; object-fit: contain; }
.is-mirrored .cam video { transform: scaleX(-1); }
.cam__empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; color: #aab2cc; font-size: 15px; }
.cam__empty p { max-width: 420px; margin: 0; }
.app--camera.is-live .cam__empty { display: none; }

/* Mouse */
.mouse-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
@media (max-width: 820px) { .mouse-grid { grid-template-columns: 1fr; } }
.mouse-area { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 320px; padding: 20px; border-radius: var(--radius-lg); border: 2px dashed var(--line-strong); background: var(--bg-sunken); user-select: none; cursor: crosshair; outline: none; }
.mouse-area:hover, .mouse-area:focus-visible { border-color: var(--tone); }
.mouse-area__hint { margin: 0; color: var(--muted); font-size: 14.5px; text-align: center; }
.mouse-svg { width: 150px; height: auto; }
.mouse-svg .m-body { fill: var(--key-face); stroke: var(--line-strong); stroke-width: 2; }
.mouse-svg .m-btn { fill: var(--key-face); stroke: var(--line-strong); stroke-width: 2; transition: fill .1s; }
.mouse-svg .m-btn.is-ok { fill: #10b981; stroke: #059669; }
.mouse-svg .m-btn.is-down { fill: #4f46e5; stroke: #4338ca; }
.mouse-svg .m-scroll { fill: var(--muted); opacity: .4; transition: opacity .1s, fill .1s; }
.mouse-svg .m-scroll.is-on { fill: #4f46e5; opacity: 1; }
.mouse-side { display: flex; flex-direction: column; gap: 14px; }
.btn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.btn-list li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--bg-sunken); border: 1px solid var(--line); font-size: 14.5px; }
.btn-list .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.btn-list li.is-ok .dot { background: #10b981; }
.btn-list li.is-bad .dot { background: var(--danger); }
.btn-list__name { flex: 1; font-weight: 600; color: var(--ink-2); }
.btn-list__count { font-family: var(--mono); font-weight: 700; }
.btn-list__chatter { font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--danger); }
.cps { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 16px; align-items: center; padding: 18px; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.cps__title { font-size: 18px; margin: 0 0 4px; }
.cps p { margin: 0; color: var(--muted); font-size: 14.5px; }
.cps__pad { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 110px; border-radius: var(--radius-lg); border: 2px solid var(--tone); background: var(--tone-soft); color: var(--tone); user-select: none; }
.cps__pad span { font-family: var(--mono); font-size: 28px; font-weight: 800; }
.cps__pad small { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cps__pad.is-running { background: var(--tone); color: #fff; }
.cps__pad.is-running small { color: rgba(255,255,255,.85); }
@media (max-width: 600px) { .cps { grid-template-columns: 1fr; } }

/* Speaker */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.channel { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 12px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg-sunken); color: var(--ink); transition: border-color .2s, background .2s, transform .15s; }
.channel .icon { color: var(--tone); margin-bottom: 4px; }
.channel[data-pan="-1"] .icon { transform: scaleX(-1); }
.channel strong { font-size: 18px; }
.channel small { color: var(--muted); font-size: 13px; }
.channel:hover { border-color: var(--tone); }
.channel.is-playing { background: var(--tone-soft); border-color: var(--tone); transform: scale(.98); }
@media (max-width: 520px) { .channels { grid-template-columns: 1fr; } .channel { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 14px 16px; } .channel .icon { margin: 0; } .channel small { margin-left: auto; } }
.sweep, .tone { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.sweep__head { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.sweep h3, .tone h3 { font-size: 18px; margin: 0 0 4px; }
.sweep p { margin: 0; color: var(--muted); font-size: 14.5px; }
.sweep__track { height: 12px; border-radius: 99px; background: var(--bg-sunken); overflow: hidden; border: 1px solid var(--line); }
.sweep__fill { height: 100%; width: 0; background: var(--accent); }
.sweep__freq { margin: 0; text-align: center; font-family: var(--mono); font-size: 30px; font-weight: 800; color: var(--ink); }
.tone__row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.presets .chip { font-family: var(--mono); font-size: 13px; padding: 6px 11px; }
.btn.is-playing { background: var(--danger); color: #fff; }

/* ------------------------------------------------------------------ Misc */
.ad-slot { margin: 24px auto 0; text-align: center; }
.ad-slot__label { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink-2); text-decoration: none; font-weight: 600; }
.pagination .page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.empty { text-align: center; color: var(--muted); padding: 24px 0; }
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg-elev); }

/* ---------------------------------------------------------------- Footer */
.site-footer { margin-top: clamp(32px, 5vw, 64px); padding: 56px 0 24px; border-top: 1px solid var(--line); background: var(--bg-sunken); font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr 1fr; gap: 32px; }
.site-footer__brand p { color: var(--muted); margin: 14px 0 0; max-width: 340px; }
.site-footer__mail { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__mail .icon { color: var(--brand); }
.site-footer__title { margin: 0 0 12px; font-weight: 750; color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; }
.site-footer__bottom a, .site-footer__bottom .linklike { color: var(--muted); }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- Consent */
.consent { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; padding: 18px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); font-size: 14.5px; }
.consent[hidden] { display: none; }
.consent__body { flex: 1 1 380px; }
.consent__body p { margin: 0 0 6px; color: var(--ink-2); }
.consent__title { display: flex; align-items: center; gap: 8px; font-weight: 750; color: var(--ink) !important; }
.consent__opts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ----------------------------------------------------------- Split media */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media .illus { width: 100%; height: auto; max-width: 520px; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(11, 16, 32, .08)); }
.split__body .section-lead { margin-bottom: 18px; }
.ticks { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.mini-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.mini-tool { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: var(--tone-soft); color: var(--tone); font-weight: 700; font-size: 14.5px; text-decoration: none; border: 1px solid color-mix(in srgb, var(--tone) 22%, transparent); }
.mini-tool:hover { color: var(--tone); transform: translateY(-1px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } .split__media .illus { max-width: 380px; } }

/* ------------------------------------------- Accessible contrast (1.0.2) */
/* Light mode only: darker brand and tool tones so text on them meets WCAG AA (4.5:1). Dark mode rules above are more specific and keep their colours. */
:root { --brand: #047857; --brand-hover: #065f46; --brand-text: #047857; --ring: 0 0 0 3px rgba(4, 120, 87, .3); --accent-text: linear-gradient(105deg, #047857 0%, #0e7490 48%, #4338ca 100%); }
.tone-indigo  { --tone: #4338ca; }
.tone-rose    { --tone: #be123c; }
.tone-emerald { --tone: #047857; }
.tone-sky     { --tone: #0369a1; }
.tone-amber   { --tone: #a14a04; }
.tone-violet  { --tone: #6d28d9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --accent-text: linear-gradient(105deg, #34d399 0%, #22d3ee 48%, #a5b4fc 100%); } }
:root[data-theme="dark"] { --accent-text: linear-gradient(105deg, #34d399 0%, #22d3ee 48%, #a5b4fc 100%); }
.hero__title .accent, .logo__text span { background: var(--accent-text); -webkit-background-clip: text; background-clip: text; }
.btn--primary { box-shadow: 0 6px 18px -8px rgba(4, 120, 87, .6); }
.k.is-ok { background: #059669; border-color: #047857; }
