/*
Theme Name: Shujaz AI Library
Theme URI: https://www.shujaz.com/
Author: Shujaz
Author URI: https://www.shujaz.com/
Description: A professional, SEO-optimised AI tools directory & prompt library theme. Includes AI tool post type, 30 categories with subcategories, filters, tool review pages with long-form guides (Rank Math ready: focus keyword, SEO title, meta description, TOC & FAQ blocks, schema), visitor ratings, favourites, dark mode and a one-click importer with 300+ AI tools.
Version: 1.5.0
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shujaz
Tags: blog, directory, custom-menu, featured-images, dark-mode, one-column, two-columns
*/

/* ========== Tokens ========== */
:root {
	--bg: #f7f9fc;
	--bg-soft: #f1f5fb;
	--surface: #ffffff;
	--surface-2: #f5f7fb;
	--border: #e5eaf2;
	--border-strong: #d5dce8;
	--text: #0b1220;
	--text-2: #334155;
	--muted: #64748b;
	--primary: #2563eb;
	--primary-600: #1d4ed8;
	--primary-50: #eff4ff;
	--dark: #0b1629;
	--success: #16a34a;
	--success-bg: #f0fbf3;
	--danger: #e11d48;
	--danger-bg: #fff3f5;
	--star: #f59e0b;
	--grad: linear-gradient(92deg, #2563eb 0%, #6d28d9 55%, #a21caf 100%);
	--radius: 14px;
	--radius-sm: 10px;
	--shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .04);
	--shadow: 0 6px 24px -8px rgba(15, 23, 42, .12);
	--shadow-lg: 0 18px 50px -18px rgba(37, 99, 235, .28);
	--font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--hand: 'Caveat', 'Segoe Print', cursive;
	--wrap: 1240px;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0a0f1c; --bg-soft: #0d1424; --surface: #111a2c; --surface-2: #152036; --border: #1f2b44; --border-strong: #2a3957;
		--text: #eef2fb; --text-2: #cbd5e1; --muted: #93a1b8; --primary: #4f86ff; --primary-600: #3b74f5; --primary-50: #16233f; --dark: #e8eefc;
		--success-bg: #0f2a1c; --danger-bg: #2c1219; --shadow: 0 6px 24px -8px rgba(0, 0, 0, .5); --shadow-lg: 0 18px 50px -18px rgba(0, 0, 0, .6);
		--grad: linear-gradient(92deg, #60a5fa 0%, #a78bfa 55%, #e879f9 100%); color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #0a0f1c; --bg-soft: #0d1424; --surface: #111a2c; --surface-2: #152036; --border: #1f2b44; --border-strong: #2a3957;
	--text: #eef2fb; --text-2: #cbd5e1; --muted: #93a1b8; --primary: #4f86ff; --primary-600: #3b74f5; --primary-50: #16233f; --dark: #e8eefc;
	--success-bg: #0f2a1c; --danger-bg: #2c1219; --shadow: 0 6px 24px -8px rgba(0, 0, 0, .5); --shadow-lg: 0 18px 50px -18px rgba(0, 0, 0, .6);
	--grad: linear-gradient(92deg, #60a5fa 0%, #a78bfa 55%, #e879f9 100%); color-scheme: dark;
}

/* ========== Base ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
svg.ic { flex-shrink: 0; vertical-align: middle; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; color: var(--text); letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.screen-reader-text, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 880px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rot-180 { transform: rotate(180deg); }
.rot-270 { transform: rotate(-90deg); }
.no-scroll { overflow: hidden; }
.link { font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 4px; }

/* ========== Buttons / chips ========== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 11px 20px; font-weight: 600; font-size: 14.5px; line-height: 1.1; transition: .18s ease; text-decoration: none; white-space: nowrap; background: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px -8px rgba(37, 99, 235, .7); }
.btn-primary:hover { background: var(--primary-600); color: #fff; transform: translateY(-1px); }
.btn-dark { background: #0b1629; color: #fff; }
:root[data-theme="dark"] .btn-dark { background: var(--primary); }
.btn-dark:hover { background: #1e293b; color: #fff; }
.btn-outline { border-color: var(--border-strong); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { color: var(--primary); background: var(--primary-50); }
.btn-ghost:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-outline.on { color: var(--primary); border-color: var(--primary); background: var(--primary-50); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li > a, .chips li:not(:has(a)) { display: inline-block; padding: 5px 13px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; font-size: 12.5px; color: var(--text-2); transition: .15s; }
.chips li > a:hover, .chips li > a.active { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.chips li > a em { font-style: normal; color: var(--muted); margin-left: 3px; }
.chips-sm li > a, .chips-sm li:not(:has(a)) { padding: 3px 10px; font-size: 11.5px; background: var(--surface-2); border-color: var(--border); }

.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; line-height: 1.4; }
.badge-popular { background: #eaf1ff; color: #2563eb; }
.badge-featured { background: #f3ecff; color: #7c3aed; }
.badge-trending { background: #ffeef2; color: #e11d48; }
.badge-trusted { background: #e9f9ef; color: #15803d; }
.badge-new { background: #fff6e5; color: #b45309; }
:root[data-theme="dark"] .badge { background: rgba(255, 255, 255, .08); }

/* Pastel colour sets */
.c-blue { --c: #2563eb; --cb: #eaf1ff; }
.c-violet { --c: #7c3aed; --cb: #f2ecff; }
.c-rose { --c: #e11d48; --cb: #ffedf1; }
.c-green { --c: #16a34a; --cb: #e8f8ee; }
.c-teal { --c: #0d9488; --cb: #e3f7f4; }
.c-orange { --c: #ea580c; --cb: #fff1e8; }
.c-amber { --c: #d97706; --cb: #fff6e0; }
.c-pink { --c: #db2777; --cb: #fdebf4; }
.c-indigo { --c: #4f46e5; --cb: #eeefff; }
.c-red { --c: #dc2626; --cb: #ffeded; }
.c-sky { --c: #0284c7; --cb: #e6f5fd; }
:root[data-theme="dark"] [class*="c-"] { --cb: rgba(255, 255, 255, .06); }

/* Logos */
.logo { position: relative; display: inline-grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: hsl(var(--h, 220) 80% 96%); border: 1px solid var(--border); overflow: hidden; }
.logo::before { content: attr(data-l); font-weight: 800; font-size: 1.1em; color: hsl(var(--h, 220) 60% 42%); }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 16%; background: #fff; }
.logo-xs { width: 30px; height: 30px; border-radius: 8px; font-size: 12px; }
.logo-sm { width: 40px; height: 40px; border-radius: 10px; }
.logo-md { width: 50px; height: 50px; font-size: 18px; }
.logo-lg { width: 64px; height: 64px; font-size: 22px; border-radius: 16px; }
.logo-xl { width: 116px; height: 116px; font-size: 42px; border-radius: 26px; box-shadow: var(--shadow); }
.logo-xl img { padding: 18%; }

/* ========== Header ========== */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 6px; color: var(--text); flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand-name { font-weight: 800; font-size: 25px; letter-spacing: -.03em; }
.brand-tld { font-size: 10px; font-weight: 700; color: #fff; background: var(--grad); padding: 2px 6px; border-radius: 5px; transform: translateY(4px); letter-spacing: .02em; }
.custom-logo { max-height: 46px; width: auto; }
.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-list a { display: block; padding: 8px 14px; border-radius: 9px; color: var(--text-2); font-size: 14px; font-weight: 500; border: 1px solid transparent; }
.nav-list a:hover { color: var(--primary); }
.nav-list .current-menu-item > a, .nav-list .current_page_item > a, .nav-list .current-menu-ancestor > a { color: var(--primary); background: var(--primary-50); border-color: color-mix(in srgb, var(--primary) 25%, transparent); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: .15s; }
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: inline; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.menu-toggle { display: none; }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(8, 12, 24, .5); backdrop-filter: blur(4px); display: flex; justify-content: center; padding: 10vh 16px; }
.search-overlay[hidden] { display: none; }
.search-panel { width: 100%; max-width: 680px; }
.search-panel .search-bar { box-shadow: var(--shadow-lg); }
.search-panel .live-results { position: static; margin-top: 10px; }

/* Search bar */
.search-bar { position: relative; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 6px 6px 6px 18px; box-shadow: var(--shadow); }
.search-bar .search-ic { color: var(--text-2); }
.search-bar input[type="search"] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; padding: 10px 0; }
.search-bar input::placeholder { color: var(--muted); }
.search-bar .btn { padding: 13px 26px; border-radius: 10px; }
.live-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 30; display: none; text-align: left; max-height: 60vh; overflow: auto; }
.live-results.open { display: block; }
.search-panel .live-results:empty { display: none; }
.lr-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--text); }
.lr-item:hover { background: var(--surface-2); color: var(--text); }
.lr-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lr-t small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-item em { font-style: normal; font-size: 11px; color: var(--muted); background: var(--surface-2); padding: 2px 8px; border-radius: 999px; }
.lr-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); font-weight: 700; }
.lr-empty { margin: 8px 10px; color: var(--muted); }

/* ========== Hero (home) ========== */
.hero { position: relative; padding: 56px 0 40px; background: radial-gradient(1200px 400px at 50% -80px, color-mix(in srgb, var(--primary) 9%, transparent), transparent 70%), var(--surface); border-bottom: 1px solid var(--border); overflow: hidden; }
.hero-deco { position: absolute; right: -80px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 8%, transparent), transparent 70%); }
.hero-inner { position: relative; text-align: center; max-width: 900px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.hero-title { font-size: clamp(32px, 5.2vw, 56px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; margin-bottom: 16px; }
.hero-sub { color: var(--text-2); font-size: 17px; margin-bottom: 30px; }
.search-hero { max-width: 700px; margin: 0 auto 18px; }
.popular { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.popular.left { justify-content: flex-start; }
.scribble { position: absolute; right: -150px; top: 120px; font-family: var(--hand); font-size: 22px; line-height: 1.15; color: #1e3a8a; transform: rotate(-8deg); text-align: left; margin: 0; }
:root[data-theme="dark"] .scribble { color: #93c5fd; }
.scribble svg { display: block; margin: 4px 0 0 -10px; color: var(--primary); }
.scribble.small { position: static; font-size: 20px; transform: rotate(-6deg); }
.feature-cards { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.feature-card { display: block; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 30px 22px 26px; color: var(--text); box-shadow: var(--shadow-sm); transition: .2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 35%, transparent); color: var(--text); }
.fc-ic { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 12px; color: var(--primary); }
.feature-card h2 { font-size: 18.5px; margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ========== Sections ========== */
.section { padding: 64px 0; }
.section-tight { padding-top: 28px; padding-bottom: 56px; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-head { position: relative; margin-bottom: 34px; }
.section-head.center { text-align: center; }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.section-head p { color: var(--text-2); margin: 0; }
.section-title { font-size: 22px; margin: 36px 0 16px; }
.count-pill { position: absolute; right: 0; top: 10px; display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); text-align: left; }
.count-pill strong { display: block; font-size: 20px; line-height: 1.1; }
.count-pill span { font-size: 12px; color: var(--text-2); }
.count-pill .ic { color: var(--primary); }

.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-card { position: relative; display: flex; align-items: flex-start; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 16px 16px; color: var(--text); min-height: 92px; box-shadow: var(--shadow-sm); transition: .2s; }
.cat-card:hover { border-color: color-mix(in srgb, var(--primary) 40%, transparent); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.cat-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--cb); color: var(--c); flex-shrink: 0; }
.cat-ic.lg { width: 54px; height: 54px; }
.cat-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cat-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.cat-count { font-size: 12.5px; color: var(--muted); }
.cat-arrow { position: absolute; right: 16px; bottom: 14px; color: var(--primary); transition: transform .2s; }
.cat-card:hover .cat-arrow { transform: translateX(3px); }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); padding: 44px 20px; }
.trust-item { text-align: center; padding: 0 20px; }
.trust-item + .trust-item { border-left: 1px solid var(--border); }
.trust-ic { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--primary-50); color: var(--primary); margin-bottom: 10px; }
.trust-item h3 { font-size: 17px; margin-bottom: 4px; }
.trust-item p { color: var(--muted); margin: 0; font-size: 14px; }

.seo-block { padding-top: 24px; padding-bottom: 48px; }
.seo-block h2 { font-size: 26px; }
.seo-block h3 { font-size: 18px; margin-top: 24px; }
.seo-block p { color: var(--text-2); }
.faq-list details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; padding: 0 18px; }
.faq-list summary { cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--primary); }
.faq-list details[open] summary::after { content: '–'; }
.faq-list details p { padding-bottom: 14px; margin: 0; }
.check-list { list-style: none; display: grid; gap: 7px; }
.check-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); }
.check-list .ic { color: var(--primary); margin-top: 3px; }

/* ========== Tool cards ========== */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.tool-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 20px 16px; box-shadow: var(--shadow-sm); transition: .2s; }
.tool-card:hover { border-color: color-mix(in srgb, var(--primary) 40%, transparent); box-shadow: var(--shadow); transform: translateY(-3px); }
.tc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.tc-title { flex: 1; min-width: 0; }
.tc-name { font-size: 16px; font-weight: 700; margin: 0 0 2px; letter-spacing: -.01em; }
.tc-name a { color: var(--text); }
.stretched::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.tc-meta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.tc-score { display: inline-flex; align-items: center; gap: 3px; color: var(--text-2); font-weight: 600; }
.tc-score .ic { color: var(--star); }
.tc-head .badge { align-self: flex-start; }
.tc-desc { font-size: 13.5px; color: var(--text-2); margin-bottom: 14px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.tc-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; font-size: 14px; }
.tool-card:hover .tc-link .ic { transform: translateX(3px); transition: .2s; }
.bm-btn { position: relative; z-index: 2; border: 0; background: none; color: var(--muted); padding: 4px; border-radius: 6px; }
.bm-btn:hover, .bm-btn.on { color: var(--primary); }
.bm-btn.on svg, [data-bookmark].on svg { fill: currentColor; }
.tool-grid.view-list { grid-template-columns: 1fr; }
.view-list .tool-card { display: grid; grid-template-columns: minmax(220px, 1.1fr) 2fr auto; align-items: center; gap: 18px; padding: 16px 20px; }
.view-list .tc-head, .view-list .tc-desc { margin: 0; }
.view-list .chips { display: none; }
.view-list .tc-foot { margin: 0; gap: 14px; }

/* ========== Page hero (category) ========== */
.page-hero { background: radial-gradient(900px 300px at 20% -60px, color-mix(in srgb, var(--primary) 8%, transparent), transparent 70%), var(--surface); border-bottom: 1px solid var(--border); padding: 26px 0 30px; }
.page-hero.slim { padding: 34px 0; }
.page-hero-inner { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: center; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.crumbs [aria-current] { color: var(--text); font-weight: 500; }
.crumbs .sep { display: inline-flex; opacity: .6; }
.page-title { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 10px; }
.page-desc { color: var(--text-2); max-width: 620px; margin-bottom: 22px; }
.page-hero .search-bar { max-width: 640px; margin-bottom: 18px; }
.ph-art { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.note-card { position: relative; width: 250px; height: 200px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; box-shadow: var(--shadow-lg); transform: rotate(4deg); }
.note-card::before { content: ''; position: absolute; inset: 8px -8px -8px 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; z-index: -1; transform: rotate(-3deg); }
.note-title { font-weight: 700; font-size: 15px; line-height: 1.3; max-width: 150px; margin-bottom: 16px; }
.note-line { display: block; height: 6px; border-radius: 4px; background: var(--border); margin: 10px 0; width: 80%; }
.note-line.short { width: 55%; }
.note-ic { position: absolute; right: -12px; bottom: -12px; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 22px; background: var(--cb); color: var(--c); box-shadow: var(--shadow); transform: rotate(-6deg); }

/* ========== Listing ========== */
.listing { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding-top: 26px; padding-bottom: 34px; align-items: start; }
.sidebar { position: sticky; top: 90px; }
.filter-toggle { display: none; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 14px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.panel-title { font-size: 15.5px; padding: 0 4px 10px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.sub-list { list-style: none; display: grid; gap: 2px; max-height: 460px; overflow: auto; }
.sub-list a { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; font-size: 13.5px; color: var(--text-2); }
.sub-list a span { flex: 1; min-width: 0; }
.sub-list a em { font-style: normal; font-size: 12px; color: var(--muted); }
.sub-list a .ic { color: var(--muted); }
.sub-list a:hover { background: var(--surface-2); color: var(--text); }
.sub-list a.active { background: var(--primary); color: #fff; }
.sub-list a.active em, .sub-list a.active .ic { color: #dbe6ff; }
.filters fieldset { border: 0; padding: 0 4px; margin: 0 0 14px; }
.filters legend, .filters .legend { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0 4px; }
.filters label:not(.legend) { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); padding: 3px 0; cursor: pointer; }
.filters label em { font-style: normal; color: var(--muted); }
.filters input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }
.filters select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); margin-bottom: 14px; }
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.results-head h2 { font-size: 23px; margin-bottom: 2px; }
.results-head p { color: var(--muted); margin: 0; font-size: 13.5px; }
.results-tools { display: flex; align-items: center; gap: 18px; }
.view-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.view-toggle button { border: 0; background: none; padding: 8px 12px; color: var(--muted); }
.view-toggle button.active { background: var(--primary-50); color: var(--primary); }
.showing { font-size: 13px; color: var(--muted); }
.pagination { display: flex; justify-content: center; margin-top: 30px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; margin: 0 3px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 14px; }
.pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .page-numbers.dots { border: 0; background: none; }
.pagination a.page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.empty { text-align: center; padding: 60px 20px; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: 14px; color: var(--muted); }
.related-cats { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; margin-bottom: 28px; }
.related-cats h2 { font-size: 20px; margin-bottom: 2px; }
.related-cats > p { color: var(--muted); font-size: 13.5px; }
.rel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rel-card { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--surface); transition: .2s; }
.rel-card:hover { border-color: var(--primary); color: var(--text); box-shadow: var(--shadow); }
.rel-card > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rel-card strong { font-size: 14px; }
.rel-card small { color: var(--muted); font-size: 12px; }
.rel-arrow { color: var(--primary); }
.cat-guide { padding-top: 10px; }

/* Newsletter strip */
.newsletter-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(90deg, var(--primary-50), var(--surface)); border: 1px solid var(--border); border-radius: 16px; padding: 24px 28px; margin-bottom: 40px; margin-top: 10px; max-width: calc(var(--wrap) - 40px); }
.nl-left { display: flex; align-items: center; gap: 16px; }
.nl-ic { color: var(--primary); }
.newsletter-strip h2 { font-size: 20px; margin-bottom: 2px; }
.newsletter-strip p { margin: 0; color: var(--text-2); font-size: 14px; }
.nl-form { position: relative; display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-strip .nl-form { flex: 0 1 460px; }
.nl-form input[type="email"] { flex: 1; min-width: 180px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); }
.nl-msg { flex-basis: 100%; margin: 0; font-size: 13px; min-height: 0; }
.nl-msg.ok { color: var(--success); }
.nl-msg.err { color: var(--danger); }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 50px 0 20px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.f-brand p { color: var(--muted); margin-top: 12px; max-width: 360px; }
.f-brand .brand-name { font-size: 21px; }
.site-footer h3 { font-size: 14px; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer ul a { color: var(--text-2); }
.site-footer ul a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--border); margin-top: 34px; padding-top: 18px; color: var(--muted); font-size: 13px; }
.footer-bottom p { margin: 0; }
.to-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: .2s; z-index: 40; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: #fff; }
.sz-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: #0b1629; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 14px; opacity: 0; transition: .25s; z-index: 200; pointer-events: none; }
.sz-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ========== Tool page ========== */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); }
.card + .card, .tool-main > * + * { margin-top: 18px; }
.card-title { font-size: 20px; margin-bottom: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tool-page { padding-top: 22px; padding-bottom: 50px; }
.tool-topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.tool-topbar .crumbs ol { margin: 0; }
.topbar-right { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.tool-side { display: grid; gap: 18px; }
.tool-side .card { margin: 0; }

.tool-hero { display: grid; grid-template-columns: 1fr 250px; gap: 26px; background: transparent; border: 0; box-shadow: none; padding: 4px 0; }
.th-left { display: flex; gap: 22px; }
.th-text { min-width: 0; }
.rank-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--primary); background: var(--primary-50); padding: 4px 11px; border-radius: 999px; margin-bottom: 8px; }
.th-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.th-title h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.035em; margin: 0; }
.th-tagline { color: var(--text-2); font-size: 15.5px; margin: 6px 0 12px; }
.th-intro { color: var(--text-2); font-size: 14px; margin-bottom: 16px; }
.th-right { display: flex; flex-direction: column; gap: 12px; }
.score-box { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; box-shadow: var(--shadow-sm); }
.score-num { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.score-num span { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.score-box small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.stars { position: relative; display: inline-block; line-height: 0; margin-top: 6px; }
.stars-bg { color: var(--border-strong); }
.stars-fg { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--star); }
.stars svg { margin-right: 1px; }
.checks { list-style: none; display: grid; gap: 5px; font-size: 13px; color: var(--text-2); }
.checks .ic { color: var(--success); }
.th-actions { display: flex; gap: 8px; }
.th-actions .btn { flex: 1; }

.gallery { display: grid; grid-template-columns: 1fr 190px; gap: 14px; }
.g-main { position: relative; display: block; border-radius: 16px; overflow: hidden; background: #0f172a; padding: 0 10px 10px; box-shadow: var(--shadow); aspect-ratio: 16 / 10.4; }
.g-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 6px; color: #94a3b8; font-size: 12px; }
.g-bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.g-bar i:first-child { background: #f87171; } .g-bar i:nth-child(2) { background: #fbbf24; } .g-bar i:nth-child(3) { background: #34d399; }
.g-bar span { margin-left: 10px; background: #1e293b; padding: 3px 12px; border-radius: 6px; }
.g-main img, .g-mobile img, .prose img { color: transparent; }
.g-main img { display: block; width: 100%; height: calc(100% - 34px); object-fit: cover; object-position: top; border-radius: 8px; background: linear-gradient(135deg, #1e293b, #0f172a); }
.g-side { display: grid; grid-template-rows: 1fr 1fr .8fr; gap: 12px; }
.g-thumb { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); padding: 10px; min-height: 110px; }
.g-mobile { padding: 0; }
.g-mobile img { width: 100%; height: 100%; object-fit: cover; object-position: top; position: absolute; inset: 0; }
.g-brand { background: var(--grad); color: #fff; border: 0; }
.g-brand strong { font-size: 14px; }
.g-brand small { font-size: 11px; opacity: .9; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g-more { background: #0f172a; color: #fff; font-weight: 600; font-size: 14px; border: 0; }
.g-more:hover { color: #fff; background: #1e293b; }

.feat-strip { display: grid; grid-template-columns: repeat(6, 1fr); padding: 0; overflow: hidden; }
.fs-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 18px 10px; font-size: 12.5px; }
.fs-item + .fs-item { border-left: 1px solid var(--border); }
.fs-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-50); color: var(--primary); }
.fs-item strong { font-weight: 600; line-height: 1.3; }

.what-is { display: grid; grid-template-columns: 1fr 250px; gap: 26px; }
.what-is h2 { font-size: 23px; }
.what-is p { color: var(--text-2); font-size: 14.5px; }
.wi-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.wi-cta .muted { font-size: 12.5px; }
.wi-quote { background: var(--surface-2); border-radius: 14px; padding: 20px; align-self: start; border: 1px solid var(--border); }
.wi-dev-label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0; }
.wi-dev { font-size: 20px; font-weight: 800; margin: 4px 0 12px; letter-spacing: -.02em; }
.wi-facts { list-style: none; display: grid; gap: 8px; font-size: 13px; color: var(--text-2); }
.wi-facts .ic { color: var(--primary); }

/* Guide / article */
.guide { padding: 30px; scroll-margin-top: 90px; }
.guide-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 20px; }
.guide-head h2, .guide-head .entry-title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.03em; }
.guide-head p { color: var(--text-2); margin: 0; }
.guide-head .muted { font-size: 12.5px; white-space: nowrap; text-align: right; }
.guide-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 30px; align-items: start; }
.toc { position: sticky; top: 90px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; max-height: calc(100vh - 110px); overflow: auto; }
.toc-title { font-weight: 700; font-size: 14px; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 13px; color: var(--text-2); line-height: 1.35; }
.toc a::before { content: counter(toc) '.'; color: var(--muted); min-width: 18px; }
.toc a:hover, .toc a.active { background: var(--surface); color: var(--primary); }
.guide.collapsed .guide-body { max-height: 560px; overflow: hidden; }
.guide-fade { display: none; }
.guide.collapsed .guide-fade { display: flex; justify-content: center; align-items: flex-end; height: 140px; margin-top: -140px; position: relative; background: linear-gradient(to bottom, transparent, var(--surface) 70%); border-radius: 0 0 16px 16px; }

.prose { font-size: 16px; line-height: 1.75; color: var(--text-2); min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose p + p { margin-top: 1em; }
.prose h2 { font-size: 25px; font-weight: 800; color: var(--text); margin: 1.8em 0 .5em; letter-spacing: -.02em; scroll-margin-top: 90px; }
.prose > h2:first-child, .prose > .wp-block-rank-math-toc-block + h2 { margin-top: 0; }
.prose h3 { font-size: 18.5px; color: var(--text); margin: 1.4em 0 .3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--primary); }
.prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent); text-underline-offset: 3px; }
.prose img { border-radius: 12px; border: 1px solid var(--border); display: block; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose .wp-block-table { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); color: var(--text); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.prose blockquote { border-left: 4px solid var(--primary); background: var(--primary-50); margin: 1.4em 0; padding: 14px 20px; border-radius: 0 12px 12px 0; }
.prose .wp-block-rank-math-toc-block { display: none; }
.prose .wp-block-rank-math-faq-block { display: grid; gap: 10px; }
.rank-math-faq-item { border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; background: var(--surface); }
.rank-math-question { font-size: 15.5px !important; margin: 0 !important; padding: 14px 0; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.rank-math-question::after { content: '+'; color: var(--primary); font-size: 20px; line-height: 1; }
.rank-math-faq-item.open .rank-math-question::after { content: '–'; }
.rank-math-answer { display: none; padding-bottom: 14px; font-size: 15px; }
.rank-math-faq-item.open .rank-math-answer { display: block; }
.entry-thumb { margin: 0 0 22px; }
.entry-thumb img { border-radius: 14px; width: 100%; }

.kf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kf-item { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; }
.kf-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--primary-50); color: var(--primary); flex-shrink: 0; }
.kf-item h3 { font-size: 13.5px; margin-bottom: 3px; }
.kf-item p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.45; }
.uc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.uc-col { border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.uc-col h3 { font-size: 14px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 10px; }
.plan-grid.cols-1 { grid-template-columns: minmax(0, 320px); }
.plan-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.plan-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.plan.hot { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.plan-flag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--success); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 15px; margin: 0; }
.plan-price { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin: 0; color: var(--text); }
.plan-price small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .check-list { flex: 1; }
.rate-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.rate-card .card-title { margin-bottom: 2px; }
.rate-card p { margin: 0; }
.rate-stars { display: flex; align-items: center; gap: 2px; }
.rate-stars button { border: 0; background: none; padding: 2px; color: var(--border-strong); transition: .1s; }
.rate-stars button.on { color: var(--star); }
.rate-stars button:hover { transform: scale(1.12); }
.rate-msg { margin-left: 10px; font-size: 13px; color: var(--muted); }

.side-card { padding: 20px; }
.side-title { font-size: 17px; margin-bottom: 14px; }
.qi { margin: 0 0 16px; }
.qi > div { display: grid; grid-template-columns: 118px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.qi > div:last-child { border-bottom: 0; }
.qi dt { color: var(--text-2); }
.qi dd { margin: 0; color: var(--text); font-weight: 500; }
.pf { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pf-i { display: inline-flex; color: var(--text-2); }
.pf-win { color: #0078d4; } .pf-android { color: #3ddc84; } .pf-web { color: var(--primary); }
.pf-ios { font-size: 11px; font-weight: 700; color: #e11d48; }
.bars { list-style: none; display: grid; gap: 12px; margin-bottom: 8px; }
.bars li { display: grid; grid-template-columns: 110px 1fr 28px; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.bar { height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.bars strong { font-size: 13px; text-align: right; color: var(--text); }
.pros, .cons { border-radius: 12px; padding: 14px; }
.pros { background: var(--success-bg); margin-bottom: 12px; }
.cons { background: var(--danger-bg); }
.pl-head { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 8px; }
.pros .pl-head, .pros .ic { color: var(--success); }
.cons .pl-head, .cons .ic { color: var(--danger); }
.pros ul, .cons ul { list-style: none; display: grid; gap: 7px; }
.pros li, .cons li { display: flex; gap: 8px; font-size: 13px; color: var(--text-2); align-items: flex-start; }
.pros li .ic, .cons li .ic { margin-top: 3px; }
.alt-list { list-style: none; display: grid; }
.alt-list a { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.alt-list li:last-child a { border-bottom: 0; }
.alt-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.alt-name strong { font-size: 14px; }
.alt-name small { color: var(--muted); font-size: 12px; }
.alt-score { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 600; }
.alt-score .ic { color: var(--star); }
.alt-arrow { color: var(--primary); }
.alt-list a:hover strong { color: var(--primary); }
.nl-side { background: linear-gradient(160deg, var(--primary-50), var(--surface)); }
.nls-head { display: flex; gap: 12px; color: var(--primary); }
.nls-head .side-title { margin-bottom: 4px; }
.nls-head p { color: var(--text-2); font-size: 13px; }
.nl-side .nl-form input { min-width: 0; }
.nl-side .nl-form .btn { padding: 12px 14px; }
.guide-list { list-style: none; display: grid; gap: 4px; }
.guide-list a { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13.5px; color: var(--text); }
.guide-list a:hover { color: var(--primary); }
.gl-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--primary-50); color: var(--primary); flex-shrink: 0; }

/* Prompts */
.prompt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.prompt-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.prompt-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-sm); transition: .2s; }
.prompt-card:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 35%, transparent); }
.pc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.pc-cat { font-size: 11.5px; font-weight: 600; color: var(--primary); background: var(--primary-50); padding: 3px 10px; border-radius: 999px; }
.prompt-card h3 { font-size: 16px; margin-bottom: 6px; }
.prompt-card h3 a { color: var(--text); }
.pc-text { font-size: 13px; color: var(--text-2); background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; line-height: 1.55; flex: 1; }
.pc-works { font-size: 12px; color: var(--muted); margin: 0; display: flex; align-items: center; gap: 6px; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); padding: 5px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.copy-btn:hover { color: var(--primary); border-color: var(--primary); }
.copy-btn.copied { color: var(--success); border-color: var(--success); }
.chip-filter { margin-bottom: 22px; }
.single-wrap { padding-top: 24px; padding-bottom: 50px; }
.entry-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.03em; }
.lead { font-size: 17px; color: var(--text-2); }
.prompt-box { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin: 18px 0; }
.pb-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.prompt-box pre { margin: 0; padding: 18px; white-space: pre-wrap; font: 14.5px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); background: var(--surface); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.post-card:has(.tool-card) { border: 0; background: none; }
.pc-thumb img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.pc-body { padding: 18px; }
.pc-type { font-size: 12px; color: var(--muted); }
.pc-body h2 { font-size: 18px; margin: 4px 0 8px; }
.pc-body h2 a { color: var(--text); }
.pc-body p { font-size: 14px; color: var(--text-2); }
.comments-card { margin-top: 18px; }

/* ========== Responsive ========== */
@media (max-width: 1360px) {
	.scribble:not(.small) { right: -40px; top: 150px; }
}
@media (max-width: 1180px) {
	.cat-grid { grid-template-columns: repeat(4, 1fr); }
	.tool-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
	.scribble:not(.small) { display: none; }
	.kf-grid { grid-template-columns: repeat(2, 1fr); }
	.tool-layout { grid-template-columns: minmax(0, 1fr) 300px; }
	.guide-body { grid-template-columns: 1fr; }
	.toc { position: static; max-height: none; }
}
@media (max-width: 1024px) {
	.feature-cards { grid-template-columns: repeat(2, 1fr); }
	.cat-grid { grid-template-columns: repeat(3, 1fr); }
	.tool-grid, .tool-grid.cols-4, .prompt-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
	.count-pill { position: static; display: inline-flex; margin-top: 16px; }
	.page-hero-inner { grid-template-columns: 1fr; }
	.ph-art { display: none; }
	.tool-layout { grid-template-columns: 1fr; }
	.tool-side { grid-template-columns: repeat(2, 1fr); }
	.rel-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.feat-strip { grid-template-columns: repeat(3, 1fr); }
	.fs-item:nth-child(4) { border-left: 0; }
	.fs-item:nth-child(n+4) { border-top: 1px solid var(--border); }
	.uc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
	.menu-toggle { display: inline-grid; }
	.main-nav { position: fixed; inset: 72px 0 auto 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 16px 16px; box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s; }
	.nav-open .main-nav { transform: none; opacity: 1; pointer-events: auto; }
	.nav-list { flex-direction: column; align-items: stretch; }
	.header-actions { margin-left: auto; }
	.listing { grid-template-columns: 1fr; }
	.sidebar { position: static; }
	.filter-toggle { display: inline-flex; width: 100%; }
	.sidebar-inner { display: none; margin-top: 12px; }
	.filters-open .sidebar-inner { display: block; }
	.tool-hero { grid-template-columns: 1fr; }
	.what-is { grid-template-columns: 1fr; }
	.gallery { grid-template-columns: 1fr; }
	.g-side { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
	.newsletter-strip { flex-direction: column; align-items: stretch; }
	.newsletter-strip .nl-form { flex-basis: auto; }
}
@media (max-width: 640px) {
	body { font-size: 14.5px; }
	.wrap { padding: 0 16px; }
	.header-inner { height: 64px; gap: 12px; }
	.main-nav { top: 64px; }
	.brand-name { font-size: 21px; }
	.brand-mark { width: 30px; height: 32px; }
	.icon-btn { width: 38px; height: 38px; }
	.hero { padding: 36px 0 30px; }
	.search-bar { padding-left: 12px; }
	.search-bar .btn { padding: 12px 16px; }
	.feature-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
	.feature-card { padding: 20px 14px; }
	.feature-card p { display: none; }
	.cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.cat-card { flex-direction: column; gap: 10px; }
	.tool-grid, .tool-grid.cols-4, .prompt-grid, .prompt-grid.cols-2, .post-grid, .rel-grid, .tool-side, .kf-grid, .uc-grid { grid-template-columns: 1fr; }
	.view-list .tool-card { grid-template-columns: 1fr; }
	.trust { grid-template-columns: 1fr; gap: 24px; }
	.trust-item + .trust-item { border-left: 0; }
	.th-left { flex-direction: column; gap: 14px; }
	.logo-xl { width: 84px; height: 84px; font-size: 32px; border-radius: 20px; }
	.feat-strip { grid-template-columns: repeat(2, 1fr); }
	.fs-item { border-left: 0 !important; border-top: 1px solid var(--border); }
	.fs-item:nth-child(-n+2) { border-top: 0; }
	.fs-item:nth-child(even) { border-left: 1px solid var(--border) !important; }
	.card, .guide { padding: 18px; }
	.guide-head { flex-direction: column; gap: 6px; }
	.guide-head .muted { text-align: left; }
	.plan-grid, .plan-grid.cols-2, .plan-grid.cols-4 { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.results-tools .showing { display: none; }
	.g-side { grid-template-columns: 1fr 1fr; }
	.g-mobile { display: none; }
	.prose { font-size: 15.5px; }
	.prose h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
	.site-header, .site-footer, .newsletter-strip, .tool-side, .gallery, .to-top { display: none !important; }
	.guide.collapsed .guide-body { max-height: none; }
}

/* ========== Prompt images & retro collection ========== */
.prompt-card.has-thumb { padding: 0; overflow: hidden; }
.prompt-card .pc-inner { display: flex; flex-direction: column; flex: 1; }
.prompt-card.has-thumb .pc-inner { padding: 16px 18px 18px; }
.pc-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; transition: transform .35s; }
.prompt-card:hover .pc-img img { transform: scale(1.04); }
.pc-code { position: absolute; left: 10px; top: 10px; background: rgba(11, 22, 41, .78); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; letter-spacing: .03em; }
.ph-photo { width: 300px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); transform: rotate(2deg); border: 6px solid var(--surface); }
.ph-photo img { display: block; width: 100%; height: 300px; object-fit: cover; object-position: center 20%; }
.decade-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 22px; }
.decade-tab { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; color: var(--text); transition: .2s; }
.decade-tab:hover, .decade-tab.active { border-color: var(--primary); box-shadow: var(--shadow); color: var(--text); }
.decade-tab.active { background: var(--primary-50); }
.decade-tab img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; object-position: center 20%; }
.decade-tab span { display: flex; flex-direction: column; }
.decade-tab small { color: var(--muted); font-size: 12px; }
.prompt-hero { display: grid; gap: 26px; margin-bottom: 18px; }
.prompt-hero.with-img { grid-template-columns: 320px minmax(0, 1fr); }
.ph-img { margin: 0; border-radius: 14px; overflow: hidden; }
.ph-img img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; object-position: center 20%; }
.prompt-hero .rank-chip { margin-bottom: 10px; }
.prose pre, .prose .wp-block-preformatted { white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); }
.prose figure.wp-block-image img { max-height: 560px; width: auto; margin: 0 auto; }
.retro-promo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
.retro-promo img { display: block; width: 100%; height: auto; border-radius: 14px; }
.retro-promo h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; }
.retro-promo p { color: var(--text-2); }
.retro-promo .chips { margin: 14px 0 20px; }
@media (max-width: 1024px) { .retro-promo { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .prompt-hero.with-img { grid-template-columns: 1fr; } .ph-img img { max-height: 380px; } }

.retro-promo + .retro-promo, .section .retro-promo.alt { margin-top: 0; }
@media (max-width: 560px) { .decade-tabs { grid-template-columns: 1fr 1fr; } .decade-tab img { width: 40px; height: 40px; } }

/* ========== Portfolio page ========== */
.pf-hero { padding: 26px 0 10px; }
.pf-hero-card { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; padding: 54px 56px 0; border-radius: 28px; overflow: hidden; color: #e6ecff; background: radial-gradient(600px 380px at 85% 20%, rgba(124, 58, 237, .45), transparent 70%), radial-gradient(520px 360px at 10% 110%, rgba(37, 99, 235, .45), transparent 70%), linear-gradient(135deg, #0b1220, #101a38 60%, #151036); box-shadow: 0 30px 80px -30px rgba(37, 99, 235, .45); }
.pf-hero-card::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; mask-image: linear-gradient(to bottom, #000, transparent 80%); }
.pf-hero-text { position: relative; z-index: 1; padding-bottom: 54px; }
.pf-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #a5b4fc; margin-bottom: 18px; }
.pf-eyebrow span { opacity: .5; margin: 0 6px; }
.pf-title { color: #fff; font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; margin-bottom: 18px; }
.pf-name { display: inline-block; background: linear-gradient(92deg, #60a5fa, #a78bfa 55%, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pf-name i { font-style: normal; color: #f0abfc; -webkit-text-fill-color: #f0abfc; }
.pf-tag { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; color: #fff; line-height: 1.3; margin-bottom: 14px; }
.grad-light { background: linear-gradient(92deg, #60a5fa, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pf-bio { color: #c7d2fe; max-width: 520px; font-size: 15.5px; margin-bottom: 26px; }
.pf-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.pf-btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.06); }
.pf-btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.12); }
.pf-socials { display: flex; gap: 10px; list-style: none; flex-wrap: wrap; }
.pf-socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); transition: .2s; }
.pf-socials a:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-2px); color: #fff; }
.pf-hero-photo { position: relative; align-self: end; display: flex; justify-content: center; }
.pf-photo-ring { position: relative; width: min(100%, 500px); border-radius: 26px 26px 0 0; padding: 3px 3px 0; background: linear-gradient(160deg, #60a5fa, #a78bfa 60%, rgba(240,171,252,.2)); box-shadow: 0 -10px 60px -10px rgba(124, 58, 237, .6); }
.pf-photo-ring img { display: block; width: 100%; height: auto; border-radius: 24px 24px 0 0; }
.pf-scribble { position: absolute; top: 4px; right: -6px; font-family: var(--hand); font-size: 24px; line-height: 1.1; color: #fff; transform: rotate(-8deg); text-shadow: 0 2px 12px rgba(0,0,0,.5); margin: 0; }
.pf-float { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #0b1220; background: #fff; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.pf-float .ic { color: var(--primary); }
.pf-float-1 { left: -10px; top: 38%; }
.pf-float-2 { right: 0; bottom: 18%; }
.pf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.pf-stat { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-sm); }
.pf-stat-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--cb); color: var(--c); flex-shrink: 0; }
.pf-stat strong { display: block; font-size: 24px; letter-spacing: -.03em; line-height: 1.1; }
.pf-stat span { font-size: 13px; color: var(--muted); }
.pf-section .section-head.row { align-items: flex-end; }
.pf-head-note { max-width: 420px; color: var(--text-2); font-size: 14px; margin: 0; }
.pf-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pf-service { position: relative; padding: 24px 22px 60px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); transition: .2s; }
.pf-service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 35%, transparent); }
.pf-service h3 { font-size: 17px; margin: 16px 0 8px; }
.pf-service p { font-size: 14px; color: var(--text-2); margin: 0; }
.pf-round { position: absolute; right: 20px; bottom: 18px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary-50); color: var(--primary); }
.pf-service:hover .pf-round { background: var(--primary); color: #fff; }
.pf-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pf-project { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); transition: .2s; }
.pf-project:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pf-shot { display: block; background: #0f172a; padding: 0 8px 8px; }
.pf-shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 6px; background: linear-gradient(135deg, #1e293b, #0f172a); color: transparent; }
.pf-project-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pf-project-body h3 { font-size: 18px; margin: 0; }
.pf-project-body p { margin: 0; font-size: 14px; color: var(--text-2); }
.pf-project-body .link { margin-top: auto; padding-top: 8px; }
.pf-project-type { color: var(--primary) !important; font-weight: 600; font-size: 13px !important; }
.pf-startups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pf-startup { display: flex; gap: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); }
.pf-startup h3 { font-size: 17px; margin: 0 0 2px; }
.pf-startup p { font-size: 14px; color: var(--text-2); margin: 0 0 6px; }
.pf-mono { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; color: #fff; font-weight: 800; font-size: 22px; flex-shrink: 0; letter-spacing: -.03em; box-shadow: var(--shadow); }
.pf-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pf-stack-group { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px; }
.pf-stack-group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 14px; }
.pf-stack-group ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.pf-stack-group li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border: 1px solid var(--border); border-radius: 12px; font-size: 14px; font-weight: 600; background: var(--surface-2); }
.pf-stack-group img { border-radius: 5px; background: #fff; }
.pf-contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; padding: 40px; border-radius: 26px; color: #fff; background: radial-gradient(500px 300px at 90% 10%, rgba(240,171,252,.35), transparent 70%), linear-gradient(120deg, #2563eb, #6d28d9 60%, #a21caf); box-shadow: 0 30px 70px -30px rgba(109, 40, 217, .7); }
.pf-contact h2 { color: #fff; font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.03em; }
.pf-contact p { color: #e0e7ff; margin-bottom: 22px; }
.pf-btn-light { background: #fff; color: #1e1b4b; }
.pf-btn-light:hover { background: #eef2ff; color: #1e1b4b; }
.pf-contact-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf-contact-list li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); min-width: 0; }
.pf-contact-list li > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.18); flex-shrink: 0; }
.pf-contact-list div { min-width: 0; display: flex; flex-direction: column; }
.pf-contact-list small { font-size: 11.5px; color: #c7d2fe; }
.pf-contact-list a { color: #fff; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-mission { text-align: center; max-width: 720px; margin: 46px auto 10px; color: var(--text-2); }
.pf-mission .ic { color: var(--primary); }
.pf-mission p { font-size: clamp(18px, 2.2vw, 22px); font-weight: 600; color: var(--text); line-height: 1.5; margin: 10px 0; }
.pf-mission span { color: var(--muted); font-size: 14px; }
.pf-extra { margin-top: 30px; }
:root[data-theme="dark"] .pf-float { background: #1e293b; color: #fff; }
@media (max-width: 1100px) {
	.pf-services { grid-template-columns: repeat(2, 1fr); }
	.pf-projects { grid-template-columns: repeat(2, 1fr); }
	.pf-startups { grid-template-columns: 1fr; }
	.pf-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.pf-hero-card { grid-template-columns: 1fr; padding: 36px 24px 0; text-align: left; }
	.pf-hero-text { padding-bottom: 10px; }
	.pf-contact { grid-template-columns: 1fr; padding: 28px 22px; }
	.pf-stack { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.pf-services, .pf-projects, .pf-contact-list { grid-template-columns: 1fr; }
	.pf-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
	.pf-stat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
	.pf-stat strong { font-size: 20px; }
	.pf-scribble { font-size: 18px; right: 0; }
	.pf-float { font-size: 11.5px; padding: 6px 10px; }
	.pf-float-1 { left: 0; }
}

/* Footer developer credit */
.footer-bottom { align-items: center; }
.dev-credit { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--text); transition: .2s; }
.dev-credit:hover { border-color: var(--primary); box-shadow: var(--shadow); color: var(--text); }
.dev-credit img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
.dev-credit span { display: flex; flex-direction: column; line-height: 1.2; }
.dev-credit small { font-size: 10.5px; color: var(--muted); }
.dev-credit strong { font-size: 14px; }
.dev-credit em { font-style: normal; font-size: 11px; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Footer founder card */
.founder-card { position: relative; display: flex; gap: 14px; align-items: flex-start; margin: 20px 0 0; padding: 16px; max-width: 380px; border-radius: 18px; background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, linear-gradient(135deg, color-mix(in srgb, #3b82f6 55%, transparent), color-mix(in srgb, #a21caf 45%, transparent)) border-box; border: 1px solid transparent; box-shadow: var(--shadow); }
.founder-card::before { content: ''; position: absolute; right: 14px; top: 10px; width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, #7c3aed 22%, transparent), transparent 70%); pointer-events: none; }
.fc-photo { flex-shrink: 0; }
.fc-photo img { display: block; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: 0 8px 20px -8px rgba(124, 58, 237, .6); }
.founder-card figcaption { min-width: 0; }
.fc-label { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fc-name { display: flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--text); margin: 2px 0 6px; }
.fc-name:hover { color: var(--primary); }
.fc-verified { color: var(--primary); }
.fc-aim { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-2); font-style: italic; }

/* Footer founder (square photo) */
.footer-grid { grid-template-columns: 2.4fr 1fr 1fr .8fr; gap: 28px; }
.founder { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: start; margin: 0; }
.founder-photo { position: relative; display: block; aspect-ratio: 1; border-radius: 20px; overflow: hidden; padding: 3px; background: var(--grad); box-shadow: 0 18px 40px -18px rgba(124, 58, 237, .7); transition: transform .25s; }
.founder-photo:hover { transform: translateY(-3px); }
.founder-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 17px; }
.founder-tag { position: absolute; left: 3px; right: 3px; bottom: 3px; padding: 28px 12px 10px; border-radius: 0 0 17px 17px; background: linear-gradient(to top, rgba(8, 12, 28, .92), rgba(8, 12, 28, 0)); color: #fff; display: flex; flex-direction: column; }
.founder-tag small { font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #c4b5fd; }
.founder-tag strong { display: inline-flex; align-items: center; gap: 5px; font-size: 17px; letter-spacing: -.01em; }
.founder-tag .fc-verified { color: #60a5fa; }
.founder-aim p { color: var(--text-2); font-size: 13.5px; line-height: 1.6; margin: 0 0 10px; }
.founder-aim .fa-title { display: flex; align-items: center; gap: 6px; font-size: 12px !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px !important; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.founder-aim .fa-title .ic { color: #7c3aed; }
.founder-aim ul { display: grid; gap: 6px; margin-bottom: 12px; }
.founder-aim li { display: flex; gap: 7px; align-items: flex-start; font-size: 13px; color: var(--text-2); }
.founder-aim li .ic { color: var(--primary); margin-top: 3px; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .founder { grid-template-columns: 1fr; } .founder-photo { max-width: 260px; } }

/* Dark mode: uploaded logo — dark lettering turns white, blue accents stay blue */
:root[data-theme="dark"] .custom-logo { filter: invert(1) hue-rotate(180deg) saturate(1.4) brightness(1.1); }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .custom-logo { filter: invert(1) hue-rotate(180deg) saturate(1.4) brightness(1.1); }
}

/* ==========================================================================
   Policy / legal pages + footer policy bar (v1.5)
   ========================================================================== */
.policy-hero-wrap { padding-top: 24px; }
.policy-hero { position: relative; overflow: hidden; border-radius: 26px; padding: 34px 44px 38px; color: #e6ecff; background: radial-gradient(560px 320px at 88% 0%, rgba(124, 58, 237, .45), transparent 70%), radial-gradient(520px 320px at 0% 120%, rgba(37, 99, 235, .45), transparent 70%), linear-gradient(135deg, #0b1220, #101a38 60%, #151036); box-shadow: 0 26px 70px -34px rgba(37, 99, 235, .55); }
.policy-hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.policy-hero > * { position: relative; z-index: 1; }
.policy-hero .crumbs, .policy-hero .crumbs a { color: #a5b4fc; }
.policy-hero .crumbs a:hover { color: #fff; }
.policy-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 10px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #c7d2fe; background: rgba(255,255,255,.07); border: 1px solid rgba(165,180,252,.22); }
.policy-hero h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: #fff; margin: 0; }
.policy-sub { margin: 12px 0 0; max-width: 680px; font-size: 17px; color: #cbd5e1; }
.policy-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 0; padding: 0; font-size: 14px; color: #aab6d3; }
.policy-meta li { display: inline-flex; align-items: center; gap: 7px; }
.policy-meta a { color: #dbe4ff; }
.policy-meta a:hover { color: #fff; }

.policy-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 28px; padding-bottom: 56px; }
.policy-aside { position: sticky; top: 86px; display: grid; gap: 16px; max-height: calc(100vh - 100px); overflow: auto; scrollbar-width: thin; }
.policy-toc, .policy-others { padding: 18px 18px 14px; }
.pt-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.policy-toc ol { list-style: none; counter-reset: pt; margin: 0; padding: 0; display: grid; gap: 2px; }
.policy-toc li { counter-increment: pt; }
.policy-toc a { display: grid; grid-template-columns: 24px 1fr; gap: 4px; padding: 6px 8px; border-radius: 8px; font-size: 13.5px; line-height: 1.4; color: var(--text-2); }
.policy-toc a::before { content: counter(pt, decimal-leading-zero); font-size: 11px; font-weight: 700; color: var(--muted); padding-top: 2px; }
.policy-toc a:hover, .policy-toc a.is-active { background: var(--primary-50); color: var(--primary); }
.policy-others ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.policy-others a { display: block; padding: 6px 8px; border-radius: 8px; font-size: 13.5px; color: var(--text-2); }
.policy-others a:hover { color: var(--primary); background: var(--primary-50); }
.policy-others a[aria-current="page"] { color: var(--primary); background: var(--primary-50); font-weight: 700; }

.policy-article { padding: 38px 46px; }
.policy-prose h2 { padding-top: 6px; }
.policy-prose h2::before { content: ''; display: block; width: 36px; height: 4px; border-radius: 4px; margin-bottom: 12px; background: linear-gradient(90deg, var(--primary), #7c3aed); }
.policy-prose h3 { font-size: 18px; font-weight: 700; color: var(--text); margin: 1.4em 0 .4em; }
.policy-prose ul, .policy-prose ol { padding-left: 1.3em; }
.policy-prose li + li { margin-top: .4em; }
.policy-prose a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.policy-prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; }
.policy-prose th, .policy-prose td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--border); }
.policy-prose th { background: var(--primary-50); color: var(--text); font-weight: 700; }
.policy-prose code { font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--primary-50); color: var(--text); }
.policy-banner { margin: 22px 0 !important; }
.policy-banner img { width: 100%; height: auto; border-radius: 16px; display: block; }
.policy-help { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding: 20px 22px; border-radius: 16px; background: var(--primary-50); border: 1px solid var(--border); }
.policy-help > div { flex: 1 1 220px; }
.policy-help p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.policy-help .ph-title { font-weight: 800; color: var(--text); font-size: 16px; }
.ph-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--primary), #7c3aed); flex: none; }

/* Contact form */
.contact-box { display: grid; grid-template-columns: .85fr 1.15fr; gap: 0; margin: 26px 0 !important; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 20px 50px -30px rgba(15, 23, 42, .35); }
.contact-side { padding: 28px; color: #dbe4ff; background: radial-gradient(360px 240px at 100% 0%, rgba(124,58,237,.5), transparent 70%), linear-gradient(145deg, #0b1220, #14204a); }
.contact-side h3 { color: #fff !important; font-size: 22px !important; margin: 14px 0 6px !important; }
.contact-side p { color: #b8c4e0; font-size: 14.5px; }
.cs-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; }
.contact-side .cs-mail { display: inline-block; margin-top: 14px; padding: 9px 14px; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff !important; text-decoration: none !important; font-weight: 700; }
.contact-side ul { list-style: none; padding: 0 !important; margin: 20px 0 0; display: grid; gap: 8px; font-size: 14px; }
.contact-side li { display: flex; align-items: center; gap: 8px; margin: 0 !important; }
.contact-side li svg { color: #86efac; }
.contact-form { padding: 26px 28px; display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--text); margin: 0; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form select, .contact-form textarea { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; font-weight: 400; font-size: 15px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf-consent { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; color: var(--text-2) !important; }
.cf-consent input { margin-top: 4px; }
.cf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; }
.cf-note { padding: 11px 14px; border-radius: 10px; font-size: 14.5px; margin: 0; }
.cf-note.ok { background: #dcfce7; color: #166534; }
.cf-note.err { background: #fee2e2; color: #991b1b; }

/* Footer policy bar */
.site-footer:has(.policy-bar) { padding-bottom: 0; }
.policy-bar { margin-top: 22px; background: linear-gradient(135deg, #0b1733 0%, #0f1f45 55%, #16123a 100%); border-top: 1px solid rgba(99, 132, 255, .18); }
.policy-bar ul { max-width: none; padding-left: 24px; padding-right: 24px; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: 8px; padding-top: 20px; padding-bottom: 20px; margin: 0 auto; }
.policy-bar li { display: flex; align-items: center; }
.policy-bar li + li::before { content: ''; width: 1px; height: 16px; margin: 0 16px; background: rgba(148, 170, 255, .45); }
.policy-bar li + li::before { margin: 0 11px; }
.policy-bar li.row-start::before { display: none; }
.site-footer .policy-bar a { color: #e3e9fb; font-size: 13.25px; font-weight: 500; white-space: nowrap; transition: color .15s; }
.site-footer .policy-bar a:hover, .site-footer .policy-bar a[aria-current="page"] { color: #8fb0ff; }

@media (max-width: 1000px) {
	.policy-layout { grid-template-columns: minmax(0, 1fr); }
	.policy-aside { position: static; max-height: none; order: 2; }
	.policy-toc { display: none; }
	.contact-box { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.policy-hero { padding: 24px 20px 28px; border-radius: 20px; }
	.policy-article { padding: 24px 18px; }
	.cf-row { grid-template-columns: 1fr; }
	.contact-form, .contact-side { padding: 20px; }
	.policy-bar li + li::before { margin: 0 10px; }
	.site-footer .policy-bar a { font-size: 13px; }
}
.policy-aside .card + .card { margin-top: 0; }
.policy-hero .crumbs ol { color: #a5b4fc; margin-bottom: 0; }

.policy-prose { overflow-wrap: anywhere; }
.policy-others-bottom { margin-top: 26px; }
.policy-others-bottom .pt-title { margin-bottom: 12px; }
.policy-others-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.policy-others-bottom a { display: inline-block; padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); }
.policy-others-bottom a:hover, .policy-others-bottom a[aria-current="page"] { color: var(--primary); border-color: var(--primary); background: var(--primary-50); }
@media (max-width: 1000px) { .policy-aside { display: none; } }
.policy-hero .crumbs li:last-child, .policy-hero .crumbs [aria-current] { color: #fff; }
