/* ==========================================================================
   AI Catalog — main stylesheet
   Visual language: light grey canvas, flat white cards, one saturated blue.
   ========================================================================== */

:root {
	--c-primary: #2b6cf5;
	--c-primary-hover: #1f5ae0;
	--c-primary-soft: #eaf1ff;
	--c-bg: #f3f5f9;
	--c-surface: #ffffff;
	--c-surface-2: #f4f6fa;
	--c-surface-3: #eceff5;
	--c-text: #151a2d;
	--c-text-2: #3b4256;
	--c-muted: #8a93a6;
	--c-border: #eceff4;
	--c-green: #22b14c;
	--c-green-soft: #e8f7ed;
	--c-orange: #f7a21b;
	--c-orange-soft: #fff4e2;
	--c-red: #ef4444;
	--c-red-soft: #fdecec;
	--c-violet: #7c5cff;
	--c-violet-soft: #f0ecff;

	--radius-xs: 8px;
	--radius-sm: 12px;
	--radius: 16px;
	--radius-lg: 24px;
	--radius-xl: 28px;

	--container: 1360px;
	--gutter: 24px;
	--header-h: 76px;

	--font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--shadow-pop: 0 20px 50px -12px rgba(21, 26, 45, .18), 0 2px 6px rgba(21, 26, 45, .06);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.55;
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--c-primary) 45%, transparent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 12px; left: 12px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 12px 18px; background: var(--c-primary); color: #fff; border-radius: var(--radius-sm); }
.muted { color: var(--c-muted); }
.center { display: flex; justify-content: center; margin-top: 28px; }
.flip { transform: rotate(180deg); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 920px; }
.page-top { padding-top: 24px; padding-bottom: 64px; }
.section { margin-top: 56px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-title { font-size: clamp(24px, 2.4vw, 32px); }
.section-head .section-title { margin: 0; }
.section > .section-title { margin-bottom: 20px; }
.section-block { margin-top: 44px; }
.section-block > h2, .section-block .section-head h2 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 18px; }
.section-block .section-head { margin-bottom: 18px; }
.section-block .section-head h2 { margin: 0; }

.card { background: var(--c-surface); border-radius: var(--radius-lg); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 20px;
	border-radius: var(--radius-sm);
	font-weight: 500; font-size: 16px; line-height: 1.2; white-space: nowrap;
	border: 1px solid transparent;
	transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
	position: relative; z-index: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-hover); }
.btn-soft { background: var(--c-surface-2); color: var(--c-text); }
.btn-soft:hover { background: var(--c-surface-3); }
.btn-white { background: var(--c-surface); color: var(--c-text); border-color: var(--c-border); }
.btn-white:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 17px; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn-icon { width: 46px; padding: 0; color: var(--c-primary); }
.btn-icon-placeholder { width: 46px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }

.icon-btn {
	display: inline-grid; place-items: center;
	width: 44px; height: 44px; border-radius: var(--radius-sm);
	color: var(--c-text-2); transition: background-color .18s, color .18s;
}
.icon-btn:hover { background: var(--c-surface-2); color: var(--c-primary); }
.icon-btn.is-soft { background: var(--c-surface-2); color: #9fb6e8; }
.icon-btn.is-soft:hover { color: var(--c-primary); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--c-primary); font-weight: 500; }
.link-arrow svg { transition: transform .18s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Pills, chips ---------- */
.pill {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 4px 12px; border-radius: 999px;
	font-size: 14px; font-weight: 500; line-height: 1.4;
	background: var(--c-surface-2); color: var(--c-text-2);
	white-space: nowrap;
}
.pill:empty { display: none; }
.pill-free { background: var(--c-green-soft); color: #168a3a; }
.pill-freemium { background: var(--c-primary-soft); color: var(--c-primary); }
.pill-paid { background: var(--c-orange-soft); color: #c27400; }
.pill-section { background: var(--c-primary-soft); color: var(--c-primary); }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 7px 14px; border-radius: var(--radius-sm);
	background: var(--c-surface-2); font-size: 15px; font-weight: 500; line-height: 1.3;
	transition: background-color .18s, color .18s;
}
.chip svg { color: var(--c-primary); }
.chip.is-link:hover { background: var(--c-primary-soft); color: var(--c-primary); }

.icon-row { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.icon-chip {
	display: inline-grid; place-items: center;
	min-width: 38px; height: 38px; padding: 0 6px;
	border-radius: 10px; background: var(--c-surface-2);
	color: var(--c-primary); font-size: 15px; font-weight: 500;
	position: relative; z-index: 1;
	transition: background-color .18s;
}
a.icon-chip:hover { background: var(--c-primary-soft); }
.icon-chip.is-emoji { font-size: 18px; }
.icon-chip.is-more { background: transparent; color: var(--c-muted); min-width: 0; padding: 0 4px; }
.icon-apple { color: #111; }
.icon-android { color: #3ddc84; }

/* ---------- Stars & ratings ---------- */
.stars { display: inline-flex; gap: 3px; color: var(--c-surface-3); vertical-align: middle; }
.stars .is-on { color: var(--c-orange); }

.rating-badge { display: inline-flex; align-items: center; gap: 10px; position: relative; z-index: 1; white-space: nowrap; }
.rating-badge .score { font-size: 22px; font-weight: 500; letter-spacing: -.01em; color: var(--c-green); }
.rating-badge .score.is-mid { color: #e59a00; }
.rating-badge .score.is-low { color: var(--c-red); }
.rating-badge .count { display: inline-flex; align-items: center; gap: 4px; color: #b8c6e4; font-size: 16px; }
.rating-badge .count svg { color: #b8c6e4; }
a.rating-badge:hover .count { color: var(--c-primary); }
.star-green { color: var(--c-green); }

.verified { display: inline-flex; color: var(--c-primary); vertical-align: middle; position: relative; z-index: 1; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--c-border);
}
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--c-text); flex-shrink: 0; }
.brand-mark { color: var(--c-primary); display: inline-flex; }
.brand-text { font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.brand-text b { font-weight: 800; color: var(--c-text); }
.brand-text { color: var(--c-primary); }
.brand-img { max-height: 40px; width: auto; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-list > li > a, .nav-link {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 16px; border-radius: var(--radius-sm);
	font-size: 17px; color: var(--c-text-2); font-weight: 400;
	transition: color .18s, background-color .18s;
}
.nav-list > li > a:hover, .nav-link:hover, .nav-list > .current-menu-item > a { color: var(--c-primary); }
.nav-link .caret { color: #b8c0d0; transition: transform .2s var(--ease); }
.drawer-head, .drawer-cta { display: none; }

.mega {
	position: absolute; top: calc(100% + 14px); left: 50%;
	width: min(760px, 90vw);
	transform: translate(-50%, 8px);
	padding: 16px;
	background: var(--c-surface); border-radius: var(--radius-lg);
	box-shadow: var(--shadow-pop);
	opacity: 0; visibility: hidden;
	transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-mega:hover .caret, .has-mega.is-open .caret { transform: rotate(180deg); }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mega-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); transition: background-color .15s; }
.mega-item:hover { background: var(--c-surface-2); }
.mega-emoji { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--c-surface-2); font-size: 19px; }
.mega-item:hover .mega-emoji { background: #fff; }
.mega-name { flex: 1; font-weight: 500; font-size: 15px; line-height: 1.25; }
.mega-count { font-size: 13px; color: var(--c-muted); }
.mega-all { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 14px; border-radius: var(--radius); background: var(--c-primary-soft); color: var(--c-primary); font-weight: 600; }
.mega-all:hover { background: #dce8ff; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-cta svg { margin-left: -4px; }
.burger { display: none; }

.lang { position: relative; }
.lang-toggle { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border-radius: var(--radius-sm); font-weight: 500; color: var(--c-text-2); }
.lang-toggle:hover, .lang.is-open .lang-toggle { background: var(--c-surface-2); color: var(--c-primary); }
.lang-menu {
	position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; padding: 6px;
	background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-pop);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; }
.lang-menu a:hover { background: var(--c-surface-2); }
.lang-menu a.is-current { color: var(--c-primary); font-weight: 500; }
.lang-code { display: inline-grid; place-items: center; width: 32px; height: 24px; border-radius: 6px; background: var(--c-surface-2); font-size: 12px; font-weight: 700; color: var(--c-text-2); }
.lang-menu a.is-current .lang-code { background: var(--c-primary); color: #fff; }

/* ---------- Search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(21, 26, 45, .45); backdrop-filter: blur(4px); display: flex; justify-content: center; padding: 10vh 16px 16px; animation: fade .18s var(--ease); }
.search-panel { width: min(720px, 100%); max-height: 76vh; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); overflow: hidden; }
.search-field { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 22px; border-bottom: 1px solid var(--c-border); color: var(--c-muted); }
.search-field input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: none; font-size: 19px; color: var(--c-text); }
.search-results { overflow-y: auto; padding: 8px; }
.search-results:empty { display: none; }
.sr-item { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: var(--radius-sm); }
.sr-item:hover, .sr-item.is-active { background: var(--c-surface-2); }
.sr-item img, .sr-item .sr-ph { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--c-surface-2); flex-shrink: 0; }
.sr-item b { display: block; font-weight: 600; }
.sr-item span { display: block; font-size: 14px; color: var(--c-muted); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 520px; }
.sr-all { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px; color: var(--c-primary); font-weight: 500; }
.sr-empty { padding: 22px; text-align: center; color: var(--c-muted); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Breadcrumbs & page head ---------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 15px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs a { color: var(--c-text); font-weight: 500; }
.breadcrumbs a:hover { color: var(--c-primary); }
.breadcrumbs svg { color: var(--c-muted); }
.breadcrumbs [aria-current] { color: var(--c-muted); }

.page-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin: 20px 0 32px; }
.page-head h1 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.12; }
.h1-emoji { margin-right: 12px; }
.page-head .lead { margin-top: 16px; max-width: 880px; font-size: 18px; color: var(--c-text-2); }
.page-head .lead p + p { margin-top: 6px; }
.page-head .lead .muted b { color: var(--c-text); }
.page-head-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ---------- Filters ---------- */
.filters { padding: 22px; margin-bottom: 28px; }
.filters-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.filters-fields { margin-top: 18px; display: grid; grid-template-columns: 1fr 300px 220px; }
.reset-link { color: var(--c-muted); font-size: 16px; }
.reset-link:hover { color: var(--c-primary); }

.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; background: var(--c-surface-2); border-radius: 999px; }
.card .segmented { background: var(--c-surface-2); }
.segmented .seg {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
	font-size: 16px; font-weight: 500; color: var(--c-text); cursor: pointer; white-space: nowrap;
	transition: background-color .18s, color .18s, border-color .18s;
}
.segmented .seg input { position: absolute; opacity: 0; pointer-events: none; }
.segmented .seg:hover { color: var(--c-primary); }
.segmented .seg.is-active { background: var(--c-primary); color: #fff; }
.segmented .seg.is-active .seg-count { background: rgba(255, 255, 255, .22); color: #fff; }
.segmented .seg:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--c-primary) 45%, transparent); }
.seg-count { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: #fff; font-size: 13px; color: var(--c-muted); }
.filters .segmented { background: transparent; padding: 0; gap: 8px; }
.filters .segmented .seg { background: var(--c-surface-2); }
.filters .segmented .seg.is-active { background: #fff; border-color: var(--c-primary); color: var(--c-primary); }

.input-search, .select { position: relative; display: block; }
.input-search input, .select select, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; height: 58px; padding: 0 22px;
	border: 1px solid transparent; border-radius: var(--radius);
	background: var(--c-surface-2); font-size: 17px; color: var(--c-text);
	outline: none; transition: border-color .18s, background-color .18s;
	-webkit-appearance: none; appearance: none;
}
.input-search input { padding-right: 56px; }
.input-search input::placeholder, .comment-form textarea::placeholder { color: var(--c-muted); }
.input-search input:focus, .select select:focus, .comment-form input:focus, .comment-form textarea:focus { border-color: var(--c-primary); background: #fff; }
.input-search svg { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: #b8c6e4; pointer-events: none; }
.select select { padding-right: 52px; cursor: pointer; }
.select svg { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: #9fb6e8; pointer-events: none; }

/* ---------- Tool table ---------- */
.tool-table { background: var(--c-surface); border-radius: var(--radius-lg); padding: 6px 0; }
.tool-head, .tool-row {
	display: grid;
	grid-template-columns: 44px minmax(200px, 1.5fr) 104px 118px 146px 146px 96px 262px;
	align-items: center; column-gap: 12px;
	padding: 0 22px;
}
.tool-head { min-height: 64px; font-size: 16px; font-weight: 500; color: var(--c-text-2); }
.tool-head .col-actions { justify-content: flex-start; }
.tool-row { position: relative; min-height: 90px; border-top: 1px solid var(--c-border); transition: background-color .15s; }
.tool-row:hover { background: #fafbfd; }
.tool-list .tool-row:first-child { border-top-color: var(--c-border); }

.col-pos { display: flex; justify-content: center; }
.pos { display: inline-grid; place-items: center; min-width: 34px; height: 34px; border-radius: 9px; font-size: 20px; color: var(--c-muted); }
.pos.is-top { background: var(--c-primary); color: #fff; }
.tool-row:nth-child(2) .pos, .tool-row:nth-child(3) .pos { color: var(--c-primary); }

.col-name { display: flex; align-items: center; gap: 14px; min-width: 0; }
.name-wrap { min-width: 0; display: grid; grid-template-columns: auto auto 1fr; align-items: center; column-gap: 8px; }
.tool-name { font-size: 18px; font-weight: 500; line-height: 1.25; color: var(--c-text); }
.tool-name:hover { color: var(--c-primary); }
.tool-tagline { grid-column: 1 / -1; font-size: 13.5px; color: var(--c-muted); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 0; }

.col-price { font-size: 17px; white-space: nowrap; }
.col-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.col-actions { gap: 8px; }
.col-actions .btn-soft { min-width: 96px; padding: 0 16px; }
.col-actions .btn-primary { min-width: 110px; padding: 0 16px; }
.tool-row .icon-row { flex-wrap: nowrap; gap: 5px; }
.tool-row .icon-chip { min-width: 34px; height: 34px; border-radius: 9px; }
.tool-row .icon-chip svg { width: 16px; height: 16px; }
.tool-row .icon-chip.is-emoji { font-size: 16px; }
.tool-row .icon-chip.is-more { min-width: 0; padding: 0 2px; font-size: 14px; }

.tool-logo {
	--s: 40px;
	display: inline-grid; place-items: center; flex-shrink: 0;
	width: var(--s); height: var(--s);
	border-radius: calc(var(--s) * .28);
	background: #fff; overflow: hidden;
	box-shadow: 0 0 0 1px var(--c-border);
}
.tool-logo img { width: 100%; height: 100%; object-fit: contain; padding: 12%; }
.tool-logo.is-letter { background: hsl(var(--h) 80% 95%); color: hsl(var(--h) 60% 42%); font-weight: 700; font-size: calc(var(--s) * .45); box-shadow: none; }

.ribbon {
	position: absolute; left: -8px; top: -14px; z-index: 2;
	padding: 3px 14px; border-radius: 4px 6px 6px 0;
	background: var(--c-primary); color: #fff; font-size: 15px; font-weight: 500;
}
.ribbon::after { content: ""; position: absolute; left: 0; bottom: -6px; border-top: 6px solid #1a47a8; border-left: 8px solid transparent; }
.tool-row.is-featured { margin-top: 12px; border-top-color: transparent; }

.empty-state { padding: 32px; text-align: center; color: var(--c-muted); }
.empty-card { padding: 40px 24px; text-align: center; display: grid; gap: 18px; justify-items: center; color: var(--c-text-2); }

/* Pagination */
.pagination { margin-top: 28px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px; border-radius: var(--radius-sm); background: #fff; font-weight: 500; }
.pagination .page-numbers.current { background: var(--c-primary); color: #fff; }
.pagination a.page-numbers:hover { color: var(--c-primary); }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-card {
	position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
	padding: 18px 20px; border-radius: var(--radius-lg); background: #fff;
	transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.cat-card:hover { box-shadow: 0 10px 30px -12px rgba(43, 108, 245, .35); transform: translateY(-2px); }
.cat-emoji { grid-row: 1 / 3; display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius); background: var(--c-surface-2); font-size: 26px; }
.cat-name { font-weight: 600; font-size: 17px; line-height: 1.25; }
.cat-count { grid-column: 2; font-size: 14px; color: var(--c-muted); }
.cat-arrow { grid-row: 1 / 3; grid-column: 3; color: #c5cfe3; transition: color .2s, transform .2s; }
.cat-card:hover .cat-arrow { color: var(--c-primary); transform: translateX(3px); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: #fff; border-bottom: 1px solid var(--c-border); }
.hero::before {
	content: ""; position: absolute; inset: -40% -10% auto auto; width: 820px; height: 820px;
	background: radial-gradient(closest-side, rgba(43, 108, 245, .14), transparent 70%);
	pointer-events: none;
}
.hero::after {
	content: ""; position: absolute; left: -200px; bottom: -380px; width: 700px; height: 700px;
	background: radial-gradient(closest-side, rgba(124, 92, 255, .10), transparent 70%);
	pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--c-primary-soft); color: var(--c-primary); font-weight: 500; font-size: 14px; }
.hero h1 { margin-top: 18px; font-size: clamp(34px, 5vw, 60px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; }
.hero-lead { margin-top: 18px; font-size: clamp(17px, 1.5vw, 20px); color: var(--c-text-2); max-width: 620px; }
.hero-search {
	display: flex; align-items: center; gap: 12px;
	margin-top: 28px; padding: 8px 8px 8px 22px;
	background: #fff; border: 1px solid var(--c-border); border-radius: 20px;
	box-shadow: 0 18px 40px -20px rgba(43, 108, 245, .35);
	color: #9fb6e8; max-width: 640px;
}
.hero-search:focus-within { border-color: var(--c-primary); }
.hero-search input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: none; font-size: 18px; color: var(--c-text); }
.hero-search .btn { min-height: 52px; padding: 0 28px; border-radius: 14px; }
.hero-search.is-inline { margin: 0 0 12px; max-width: none; box-shadow: none; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { display: grid; gap: 4px; padding: 24px; background: var(--c-surface-2); }
.stat b { font-size: 36px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-top: 10px; }
.stat > span:last-child { color: var(--c-text-2); }
.stat-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff; color: var(--c-primary); }

.cta-band {
	display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	margin-top: 64px; padding: 40px 44px; border-radius: var(--radius-xl);
	background: linear-gradient(120deg, #2b6cf5 0%, #4f7dff 55%, #7c5cff 100%); color: #fff;
}
.cta-band h2 { font-size: clamp(24px, 2.6vw, 34px); }
.cta-band p { margin-top: 8px; opacity: .88; font-size: 17px; max-width: 560px; }
.cta-band .btn-white { border-color: transparent; }

/* ---------- Tool single ---------- */
.tool-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 28px 32px; margin-top: 20px; }
.tool-hero-logo { box-shadow: 0 8px 24px -8px rgba(21, 26, 45, .2), 0 0 0 1px var(--c-border); }
.tool-hero h1 { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.12; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tool-hero-tagline { margin-top: 6px; font-size: 17px; color: var(--c-text-2); }
.tool-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
.hero-rating { display: inline-flex; align-items: center; gap: 8px; }
.hero-rating b { font-size: 17px; }
.hero-rating:hover .muted { color: var(--c-primary); }
.meta-chip { display: inline-flex; align-items: center; gap: 6px; color: var(--c-muted); font-size: 15px; }
.tool-hero-actions { display: flex; flex-direction: column; gap: 10px; }
.tool-hero-actions .btn-soft { color: var(--c-primary); }

.tabs { display: inline-flex; gap: 4px; margin: 24px 0; padding: 6px; background: #fff; border-radius: 999px; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 999px; font-size: 17px; font-weight: 500; transition: background-color .18s, color .18s; }
.tab:hover { color: var(--c-primary); }
.tab.is-active { background: var(--c-primary); color: #fff; }
.tab-count { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--c-surface-2); font-size: 13px; color: var(--c-muted); }
.tab.is-active .tab-count { background: rgba(255, 255, 255, .22); color: #fff; }

.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.layout-main { min-width: 0; }
.layout-side { align-self: stretch; }
.sticky-stack { display: flex; flex-direction: column; gap: 20px; height: 100%; }
/* Only the last sidebar block sticks, so tall sidebars never get cut off. */
.sticky-stack > :last-child { position: sticky; top: calc(var(--header-h) + 20px); }
.admin-bar .sticky-stack > :last-child { top: calc(var(--header-h) + 52px); }

.spec { padding: 6px 0; }
.spec-row { display: grid; grid-template-columns: minmax(160px, 40%) 1fr; gap: 20px; align-items: center; padding: 20px 32px; border-top: 1px solid var(--c-border); }
.spec-row:first-child { border-top: 0; }
.spec-row dt { font-size: 17px; color: var(--c-text); }
.spec-row dd { margin: 0; font-size: 17px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.spec-row dd.chip-list { gap: 8px; }
.spec-note { flex-basis: 100%; font-size: 14.5px; color: var(--c-muted); line-height: 1.45; }
.yes, .no { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.yes { color: var(--c-green); }
.no { color: var(--c-muted); }
.access { display: inline-flex; padding: 5px 12px; border-radius: 999px; font-size: 15px; font-weight: 500; }
.access-works { background: var(--c-green-soft); color: #168a3a; }
.access-payment { background: var(--c-orange-soft); color: #c27400; }
.access-vpn { background: var(--c-red-soft); color: #c52b2b; }

.cta-row { display: flex; justify-content: flex-end; margin-top: 24px; }
.cta-row .btn-lg { min-width: 360px; }

.promo-card { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 22px 26px; margin-top: 24px; background: linear-gradient(100deg, #fff 0%, #f4f0ff 100%); }
.promo-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--c-violet-soft); color: var(--c-violet); }
.promo-title { font-weight: 600; font-size: 18px; }
.promo-code { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 2px dashed #c9bbff; border-radius: 14px; font-weight: 700; font-size: 18px; letter-spacing: .04em; color: var(--c-violet); background: #fff; }
.promo-code:hover { border-color: var(--c-violet); }

.shot { margin: 24px 0 0; padding: 10px; }
.shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; border-radius: var(--radius); }
.shot figcaption { padding: 10px 8px 2px; font-size: 14px; color: var(--c-muted); }

.top-tools { padding: 24px 22px 12px; }
.side-title, .toc-title { font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.top-tools li + li { border-top: 1px solid var(--c-border); }
.top-tools a { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.top-tools .num { width: 20px; text-align: center; font-size: 17px; color: #b8c6e4; }
.top-tools .num.is-top { color: var(--c-text); }
.tt-name { flex: 1; font-size: 17px; font-weight: 500; }
.tt-go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--c-surface-2); color: #b8c6e4; transition: background-color .18s, color .18s; }
.top-tools a:hover .tt-go { background: var(--c-primary); color: #fff; }
.top-tools a:hover .tt-name { color: var(--c-primary); }

.toc { padding: 22px; }
.toc ol { display: grid; gap: 4px; }
.toc a { display: flex; gap: 16px; align-items: flex-start; padding: 8px 6px; border-radius: var(--radius-sm); color: var(--c-primary); font-size: 16.5px; line-height: 1.4; transition: background-color .15s; }
.toc a:hover { background: var(--c-surface-2); }
.toc .num { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: var(--c-surface-2); color: var(--c-text); font-size: 16px; font-weight: 500; margin-top: -8px; }
.toc a.is-active { background: var(--c-primary-soft); }
.toc a.is-active .num { background: var(--c-primary); color: #fff; }
.toc a span:last-child { padding-top: 2px; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pc { padding: 24px; }
.pc-title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; margin-bottom: 14px; }
.pc-pros .pc-title { color: var(--c-green); }
.pc-cons .pc-title { color: var(--c-red); }
.pc li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; line-height: 1.5; }
.pc li svg { margin-top: 3px; padding: 3px; width: 22px; height: 22px; border-radius: 7px; }
.pc-pros li svg { background: var(--c-green-soft); color: var(--c-green); }
.pc-cons li svg { background: var(--c-red-soft); color: var(--c-red); }

.faq { display: grid; gap: 10px; }
.faq-item { padding: 0 24px; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; list-style: none; cursor: pointer; font-weight: 600; font-size: 17.5px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { color: var(--c-muted); transition: transform .2s var(--ease); }
.faq-item[open] summary svg { transform: rotate(180deg); color: var(--c-primary); }
.faq-answer { padding: 0 0 20px; color: var(--c-text-2); line-height: 1.65; }

.tool-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tool-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.tool-card:hover { box-shadow: 0 10px 30px -12px rgba(43, 108, 245, .35); transform: translateY(-2px); }
.tool-card-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.tool-card-title { font-size: 18px; font-weight: 600; }
.tool-card-head .muted { font-size: 14px; }
.tool-card-text { color: var(--c-text-2); font-size: 15px; line-height: 1.5; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tool-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tool-card .rating-badge .score { font-size: 18px; }
.tool-card .rating-badge .count { font-size: 14px; }

/* Reviews view */
.info-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 8px; }
.info-card { padding: 20px 22px; display: grid; gap: 14px; align-content: start; }
.info-title { font-size: 17px; font-weight: 500; }
.info-value { font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.band { margin-top: 28px; }
.review-filter { margin: 4px 0 20px; background: #fff; }

.review-list { display: grid; gap: 16px; }
.review { padding: 24px; }
.review .children { display: grid; gap: 12px; margin-top: 18px; padding-left: 20px; border-left: 3px solid var(--c-primary-soft); }
.review.is-reply { padding: 18px 20px; background: var(--c-surface-2); }
.review-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.avatar { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--c-surface-2); color: #3d7bfa; overflow: hidden; }
.avatar svg { margin-top: 10px; width: 34px; height: 34px; }
.review.is-reply .avatar { background: #fff; }
.review-meta { display: grid; line-height: 1.35; }
.review-author { font-weight: 600; font-size: 17px; }
.review-meta time { font-size: 15px; color: var(--c-muted); }
.review-head .stars { margin-left: 12px; }
.review-text { margin-top: 14px; font-size: 17px; line-height: 1.65; color: var(--c-text); }
.review-text p + p { margin-top: 10px; }
.review-actions { margin-top: 14px; }
.review-actions a { color: var(--c-primary); font-weight: 500; }
.notice { margin-top: 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--c-orange-soft); color: #9a5b00; font-size: 15px; }

.rating-summary { padding: 26px 24px; }
.rs-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rs-score { font-size: 48px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.rating-summary > .muted { margin-top: 10px; font-size: 17px; }
.rs-bars { display: grid; gap: 16px; margin: 26px 0; }
.rs-bars li { display: grid; grid-template-columns: 20px 1fr 32px; gap: 14px; align-items: center; font-size: 18px; }
.rs-n { text-align: right; color: var(--c-muted); }
.rs-bar { height: 10px; border-radius: 999px; background: var(--c-surface-2); overflow: hidden; }
.rs-bar span { display: block; height: 100%; border-radius: 999px; background: var(--c-primary); }

.review-form-card { padding: 28px; margin-top: 24px; }
.comment-reply-title { font-size: 24px; margin-bottom: 6px; }
.comment-reply-title small { margin-left: 10px; font-size: 15px; font-weight: 500; }
.comment-reply-title small a { color: var(--c-primary); }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.comment-form > * { grid-column: 1 / -1; margin: 0; }
.comment-form .comment-form-author { grid-column: 1; }
.comment-form .comment-form-email { grid-column: 2; }
.comment-form .comment-form-url { display: none; }
.comment-form label { display: block; margin-bottom: 8px; font-weight: 500; }
.comment-form textarea { height: auto; min-height: 150px; padding: 18px 22px; line-height: 1.55; resize: vertical; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--c-text-2); }
.comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-form .comment-form-cookies-consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--c-primary); }
.comment-form .form-submit { margin-top: 4px; }
.logged-in-as { font-size: 15px; color: var(--c-muted); }
.logged-in-as a { color: var(--c-primary); }

.rate-input { border: 0; margin: 0; padding: 0; }
.rate-input legend { padding: 0; margin-bottom: 8px; font-weight: 500; }
.rate-stars { display: inline-flex; flex-direction: row-reverse; gap: 6px; }
.rate-stars input { position: absolute; opacity: 0; pointer-events: none; }
.rate-stars label { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--c-surface-2); color: #cfd8ea; cursor: pointer; transition: color .12s, background-color .12s, transform .12s; }
.rate-stars label:hover, .rate-stars label:hover ~ label, .rate-stars input:checked ~ label { color: var(--c-orange); background: var(--c-orange-soft); }
.rate-stars label:active { transform: scale(.94); }
.rate-stars input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--c-primary) 45%, transparent); }

/* ---------- Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-grid.is-compact .post-card-text { display: none; }
.section-tabs { margin-bottom: 28px; background: #fff; }
.post-card { position: relative; display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.post-card:hover { box-shadow: 0 14px 34px -14px rgba(21, 26, 45, .25); transform: translateY(-2px); }
.post-card-media { display: block; aspect-ratio: 16 / 9; background: var(--c-surface-2); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.03); }
.post-card-ph { display: grid; place-items: center; width: 100%; height: 100%; color: #b8c6e4; background: linear-gradient(135deg, #eef3ff, #f6f1ff); }
.post-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14.5px; color: var(--c-muted); }
.post-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.post-card-title { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.post-card-title a:hover { color: var(--c-primary); }
.post-card-text { color: var(--c-text-2); font-size: 15.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.post-header { margin: 24px 0 24px; }
.post-header h1 { margin-top: 14px; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.12; }
.post-header .lead { margin-top: 16px; font-size: 19px; color: var(--c-text-2); }
.post-cover { margin: 0 0 24px; }
.post-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top center; border-radius: var(--radius-lg); }
.entry-card { padding: clamp(22px, 4vw, 44px); }

/* Prose */
.prose { font-size: 17.5px; line-height: 1.72; color: var(--c-text); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.8em; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; }
.prose h3 { margin-top: 1.5em; font-size: 22px; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose a { color: var(--c-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 0; }
.prose ul > li, .prose ol > li { position: relative; padding-left: 30px; }
.prose ul > li + li, .prose ol > li + li { margin-top: .45em; }
.prose ul > li::before { content: ""; position: absolute; left: 8px; top: .7em; width: 8px; height: 8px; border-radius: 3px; background: var(--c-primary); }
.prose ol { counter-reset: li; }
.prose ol > li::before { counter-increment: li; content: counter(li); position: absolute; left: 0; top: .15em; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--c-primary-soft); color: var(--c-primary); font-size: 13px; font-weight: 700; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 18px 22px; border-radius: var(--radius); background: var(--c-primary-soft); border-left: 4px solid var(--c-primary); }
.prose img { border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--c-border); text-align: left; }
.prose th { background: var(--c-surface-2); font-weight: 600; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--c-surface-2); font-size: .9em; }
.prose strong { font-weight: 600; }
.layout-main > .entry-content { margin-top: 36px; }
.layout-main > .entry-content > h2:first-child { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; background: #fff; border-top: 1px solid var(--c-border); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 40px 0 28px; border-bottom: 1px solid var(--c-border); }
.footer-social { display: flex; gap: 10px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 36px 0; }
.footer-title { font-size: 17px; font-weight: 600; margin-bottom: 16px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: var(--c-muted); font-size: 15.5px; transition: color .15s; }
.footer-col a:hover { color: var(--c-primary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 32px; border-top: 1px solid var(--c-border); font-size: 14px; color: var(--c-muted); }
.footer-bottom a:hover { color: var(--c-primary); }

/* ---------- Promo dialog & toast ---------- */
.promo-dialog { border: 0; padding: 0; border-radius: var(--radius-lg); width: min(440px, calc(100% - 32px)); box-shadow: var(--shadow-pop); }
.promo-dialog::backdrop { background: rgba(21, 26, 45, .45); backdrop-filter: blur(3px); }
.promo-dialog-inner { position: relative; padding: 32px 28px 28px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.promo-dialog .icon-btn { position: absolute; top: 10px; right: 10px; }
.promo-dialog h3 { font-size: 22px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 20px); padding: 12px 20px; border-radius: 999px; background: var(--c-text); color: #fff; font-weight: 500; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.is-404 .big-404 { font-size: 110px; font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(120deg, #2b6cf5, #7c5cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.is-404 h1 { font-size: 32px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1320px) {
	.tool-head, .tool-row { grid-template-columns: 44px minmax(190px, 1.5fr) 104px 118px 146px 96px 262px; }
	.tool-head .col-platforms, .tool-row .col-platforms { display: none; }
}

@media (max-width: 1180px) {
	.layout-aside { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
	.tool-head, .tool-row { grid-template-columns: 40px minmax(180px, 1.5fr) 104px 118px 96px 262px; }
	.tool-head .col-cats, .tool-row .col-cats { display: none; }
	.cat-grid { grid-template-columns: repeat(3, 1fr); }
	.info-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1080px) {
	/* Header becomes a drawer. backdrop-filter would make the header the containing
	   block for the fixed drawer, so the header goes solid here. */
	.site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
	.burger { display: inline-grid; }
	.header-cta span { display: none; }
	.header-cta { width: 44px; padding: 0; }
	.header-cta svg { margin: 0; }
	.main-nav {
		position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
		width: min(400px, 100%); flex-direction: column; justify-content: flex-start;
		padding: 16px 20px 28px; background: #fff; overflow-y: auto;
		transform: translateX(100%); transition: transform .28s var(--ease);
		visibility: hidden;
	}
	.nav-open .main-nav { transform: none; visibility: visible; box-shadow: var(--shadow-pop); }
	.nav-backdrop { position: fixed; inset: 0; z-index: 49; background: rgba(21, 26, 45, .4); }
	.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
	.drawer-title { font-size: 22px; font-weight: 700; }
	.drawer-cta { display: flex; margin-top: 20px; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-list > li { border-bottom: 1px solid var(--c-border); }
	.nav-list > li > a, .nav-link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 18px; font-weight: 500; color: var(--c-text); }
	.mega { position: static; width: auto; transform: none; box-shadow: none; padding: 0 0 14px; opacity: 1; visibility: visible; display: none; }
	.has-mega:hover .mega, .has-mega:focus-within .mega { transform: none; }
	.has-mega.is-open .mega { display: block; transform: none; }
	.has-mega:hover .caret { transform: none; }
	.has-mega.is-open .caret { transform: rotate(180deg); }
	.mega-grid { grid-template-columns: 1fr; }
	.mega-item { padding: 8px 6px; }
	.mega::before { display: none; }

	.hero-inner { grid-template-columns: 1fr; gap: 36px; }
	.hero-stats { grid-template-columns: repeat(4, 1fr); }
	.layout-aside { grid-template-columns: 1fr; }
	.layout-side .sticky-stack > :last-child { position: static; }
	.layout-side .toc { display: none; }
	.layout-aside.is-reviews .layout-side { order: -1; }
	.post-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-cols { grid-template-columns: repeat(2, 1fr); }
	.filters-fields { grid-template-columns: 1fr 1fr; }
	.filters-fields .input-search { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
	/* Wide comparison tables scroll sideways instead of stretching the page */
	.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 14.5px; }
	.prose th, .prose td { padding: 10px 12px; min-width: 110px; }
	/* Catalog table turns into cards. */
	.tool-table { background: transparent; padding: 0; }
	.tool-head { display: none; }
	.tool-list { display: grid; gap: 12px; }
	.tool-row {
		grid-template-columns: 30px repeat(3, minmax(0, 1fr)) auto;
		grid-template-areas:
			"pos name name name rating"
			". model price platforms platforms"
			"actions actions actions actions actions";
		row-gap: 14px; padding: 18px; min-height: 0;
		border: 0; border-radius: var(--radius-lg); background: #fff;
	}
	.tool-row:hover { background: #fff; }
	.tool-row.is-featured { margin-top: 14px; }
	.col-pos { grid-area: pos; justify-content: flex-start; align-self: center; }
	.pos { min-width: 26px; height: 26px; font-size: 16px; border-radius: 7px; }
	.col-name { grid-area: name; }
	.col-rating { grid-area: rating; }
	.col-model { grid-area: model; }
	.col-price { grid-area: price; font-size: 15px; }
	.tool-row .col-platforms { grid-area: platforms; display: block; }
	.tool-row .col-cats { display: none; }
	.col-actions { grid-area: actions; justify-content: stretch; }
	.col-actions .btn { flex: 1; min-width: 0; }
	.col-actions .btn-icon { flex: 0 0 46px; }
	.btn-icon-placeholder { display: none; }
	.col-model::before, .col-price::before, .tool-row .col-platforms::before {
		content: attr(data-label); display: block; margin-bottom: 4px; font-size: 12.5px; color: var(--c-muted); font-weight: 500;
	}
	.col-platforms .icon-chip { min-width: 30px; height: 30px; border-radius: 8px; }
	.col-platforms .icon-chip svg { width: 15px; height: 15px; }
	.rating-badge .score { font-size: 20px; }
	.ribbon { top: -12px; left: 14px; font-size: 13px; border-radius: 6px; }
	.ribbon::after { display: none; }

	.tool-hero { grid-template-columns: auto 1fr; padding: 22px; gap: 18px; }
	.tool-hero-actions { grid-column: 1 / -1; flex-direction: row; }
	.tool-hero-actions .btn { flex: 1; }
	.cta-row .btn-lg { min-width: 0; width: 100%; }
	.spec-row { grid-template-columns: 1fr; gap: 10px; padding: 18px 22px; }
	.spec-row dt { font-size: 14px; color: var(--c-muted); font-weight: 500; }
	.pros-cons { grid-template-columns: 1fr; }
	.cat-grid { grid-template-columns: repeat(2, 1fr); }
	.page-head { flex-direction: column; gap: 16px; }
}

@media (max-width: 640px) {
	:root { --gutter: 16px; --header-h: 64px; }
	body { font-size: 15.5px; }
	.admin-bar .site-header { top: 0; }
	.header-inner { gap: 10px; }
	.brand-text { font-size: 19px; }
	.brand-mark svg { width: 28px; height: 28px; }
	.header-actions { gap: 2px; }
	.lang-toggle { padding: 0 8px; }
	.lang-toggle .icon-chevron-down { display: none; }
	.page-top { padding-top: 16px; }
	.section { margin-top: 40px; }

	.hero-inner { padding-top: 36px; padding-bottom: 36px; }
	.hero-search { padding-left: 16px; border-radius: 16px; }
	.hero-search .btn { padding: 0 18px; }
	.hero-search input { font-size: 16px; }
	.hero-search > svg { display: none; }
	.hero-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
	.stat { padding: 16px; }
	.stat b { font-size: 28px; margin-top: 6px; }

	.filters { padding: 14px; }
	.filters-row:first-child { flex-direction: column; align-items: flex-start; }
	.filters .segmented { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
	.filters-fields { grid-template-columns: 1fr; margin-top: 14px; }
	.input-search input, .select select { height: 52px; font-size: 16px; }
	.segmented { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
	.segmented::-webkit-scrollbar { display: none; }
	.segmented .seg { padding: 9px 16px; font-size: 15px; }

	.tool-row { grid-template-columns: 26px repeat(2, minmax(0, 1fr)) auto; grid-template-areas: "pos name name rating" "model model price price" "platforms platforms platforms platforms" "actions actions actions actions"; padding: 16px; }
	.tool-row .col-platforms { display: flex; align-items: center; gap: 10px; }
	.tool-row .col-platforms::before { margin: 0; }
	.tool-name { font-size: 17px; }
	.tool-tagline { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
	.tool-row .rating-badge { flex-direction: column; align-items: flex-end; gap: 0; }
	.tool-row .rating-badge .count { font-size: 13px; }
	.col-actions .btn-soft { display: none; }

	.cat-grid { grid-template-columns: 1fr; gap: 10px; }
	.cat-card { padding: 14px 16px; }
	.cat-emoji { width: 44px; height: 44px; font-size: 22px; }
	.post-grid { grid-template-columns: 1fr; }
	.tool-cards { grid-template-columns: 1fr; }

	.tool-hero { grid-template-columns: 1fr; text-align: left; }
	.tool-hero-logo { --s: 60px !important; }
	.tool-hero-actions { flex-direction: column; }
	.tabs { display: flex; width: 100%; }
	.tab { flex: 1; justify-content: center; padding: 11px 12px; font-size: 16px; }
	.info-cards { gap: 10px; }
	.info-card { padding: 16px; }
	.promo-card { grid-template-columns: auto 1fr; }
	.promo-card .promo-code { grid-column: 1 / -1; justify-content: center; }
	.review { padding: 18px; }
	.review-head .stars { margin-left: 0; flex-basis: 100%; }
	.review-text { font-size: 16px; }
	.comment-form { grid-template-columns: 1fr; }
	.comment-form .comment-form-author, .comment-form .comment-form-email { grid-column: 1; }
	.rate-stars label { width: 48px; height: 48px; }
	.review-form-card { padding: 20px; }

	.btn-lg { white-space: normal; text-align: center; padding: 12px 20px; }
	.cta-band { padding: 28px 22px; }
	.footer-top { flex-direction: column; align-items: flex-start; }
	.footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
	.footer-bottom { flex-direction: column; }
	.prose { font-size: 16.5px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.layout-main > .section-title { margin-bottom: 16px; }
.search-field input::-webkit-search-cancel-button, .hero-search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
