/* ==========================================================================
   FreeToolHut — site stylesheet (brand tokens match wasiqkhan.com)
   1. Tokens & base   2. Layout   3. Components   4. Header/Footer
   5. Home   6. Tool pages   7. Results   8. Responsive
   ========================================================================== */

/* 1. Tokens & base ------------------------------------------------------- */
:root {
	--bg: #f4f2ed;
	--bg-2: #ebe7df;
	--surface: #ffffff;
	--ink: #101014;
	--text: #101014;
	--muted: #5d5a54;
	--muted-on-dark: #a8a49c;
	--line: rgba(16, 16, 20, .12);
	--line-dark: rgba(255, 255, 255, .12);
	--accent: #fd983e;
	--accent-ink: #a84f00;
	--good: #0c8a4a;
	--avg: #b45f00;
	--poor: #d1321f;
	/* Selected states (tabs, toggles, checked chips): dark in light mode, light in dark mode. */
	--solid: #101014;
	--on-solid: #ffffff;
	/* Card surfaces, the header glass and the hero grid lines change with the theme. */
	--card-grad: linear-gradient(180deg, #ffffff, #fbfaf7);
	--glass: rgba(244, 242, 237, .85);
	--glass-2: rgba(255, 255, 255, .75);
	--grid-line: rgba(16, 16, 20, .045);
	--card-shadow: 0 1px 2px rgba(16, 16, 20, .04), 0 16px 30px -22px rgba(16, 16, 20, .4);
	--card-shadow-hover: 0 30px 50px -24px rgba(16, 16, 20, .45), 0 0 0 4px rgba(253, 152, 62, .12);
	/* Documents and previews stay white in both themes, with dark text. */
	--paper: #ffffff;
	--paper-text: #101014;
	color-scheme: light;

	--font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
	--font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	--radius-sm: 12px;
	--radius: 20px;
	--radius-lg: 32px;
	--shadow: 0 1px 2px rgba(16, 16, 20, .04), 0 12px 40px -12px rgba(16, 16, 20, .18);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-h: 72px;
	--gutter: clamp(16px, 4vw, 40px);
	--container: 1200px;
}

/* Dark theme: set on <html data-theme="dark"> by the inline script in header.php. --ink stays dark,
   because it paints the dark blocks (footer, CTA cards, stats band), which look the same in both themes. */
:root[data-theme="dark"] {
	--bg: #0d0d11;
	--bg-2: #1b1b22;
	--surface: #15151b;
	--text: #ecebe8;
	--muted: #a6a39c;
	--line: rgba(255, 255, 255, .11);
	--accent-ink: #ffb067;
	--good: #34d399;
	--avg: #fbbf24;
	--poor: #f87171;
	--solid: #f1efe9;
	--on-solid: #101014;
	--card-grad: linear-gradient(180deg, #1a1a21, #141419);
	--glass: rgba(13, 13, 17, .8);
	--glass-2: rgba(30, 30, 38, .7);
	--grid-line: rgba(255, 255, 255, .045);
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 40px -12px rgba(0, 0, 0, .7);
	--card-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 30px -22px rgba(0, 0, 0, .9);
	--card-shadow-hover: 0 30px 50px -24px rgba(0, 0, 0, .9), 0 0 0 4px rgba(253, 152, 62, .16);
	color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0; background: var(--bg); color: var(--text);
	font-family: var(--font-body); font-size: 17px; line-height: 1.65;
	-webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--ink); }
h1, h2, h3, h4 {
	font-family: var(--font-display); font-weight: 600; line-height: 1.1;
	letter-spacing: -.03em; margin: 0 0 .5em; text-wrap: balance;
}
p { margin: 0 0 1.1em; text-wrap: pretty; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
/* !important on the size too: form rules like ".field input { width: 100% }" must not stretch hidden inputs. */
.screen-reader-text {
	position: absolute !important; width: 1px !important; height: 1px !important; min-width: 0 !important; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 12px; left: 12px;
	padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px;
}

/* 2. Layout -------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 80px); }
.section--alt { background: var(--bg-2); }
.site-main { min-height: 60vh; }
.muted { color: var(--muted); }

/* 3. Components ---------------------------------------------------------- */
/* Brand: the hut mark plus the FreeToolHut name (wkt_logo() in bootstrap.php). */
.brand-mark { display: block; width: 36px; height: 36px; flex: none; border-radius: 10px; box-shadow: 0 6px 14px -6px rgba(240, 100, 12, .55); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.03em; color: var(--text); white-space: nowrap; }
.brand-name b { font-weight: 700; color: var(--accent); }
.brand--footer .brand-name { color: #fff; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
	letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; transform: rotate(45deg); }

.btn {
	--btn-bg: var(--accent); --btn-fg: var(--ink);
	display: inline-flex; align-items: center; gap: 12px;
	padding: 8px 8px 8px 24px; min-height: 54px; border-radius: 999px; border: 1px solid transparent;
	background: var(--btn-bg); color: var(--btn-fg); text-decoration: none;
	font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -.01em;
	transition: transform .4s var(--ease), background .3s, box-shadow .4s var(--ease); white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(253, 152, 62, .6); }
.btn__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; transition: transform .5s var(--ease); }
.btn__icon .icon { width: 18px; height: 18px; }
.btn:hover .btn__icon { transform: rotate(45deg); }
.btn--dark { --btn-bg: var(--solid); --btn-fg: var(--on-solid); }
.btn--dark .btn__icon { background: var(--accent); color: var(--ink); }
.btn--dark:hover { box-shadow: 0 14px 30px -12px rgba(16, 16, 20, .5); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); border-color: var(--line); padding: 8px 24px; }
.btn--sm { min-height: 44px; font-size: 15px; padding: 5px 5px 5px 18px; }
.btn--sm .btn__icon { width: 34px; height: 34px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
/* The uneven padding above leaves room for the round arrow; buttons without one need even padding. */
.btn:not(:has(.btn__icon)) { padding: 8px 26px; justify-content: center; }
.btn--sm:not(:has(.btn__icon)) { padding: 5px 20px; }

.chip {
	display: inline-block; vertical-align: middle; padding: 2px 9px; border-radius: 999px;
	background: var(--bg-2); color: var(--muted); font-family: var(--font-mono);
	font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}

.ad-slot { max-width: var(--container); margin: 32px auto; padding-inline: var(--gutter); min-height: 100px; }

/* 4. Header / Footer ----------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 100; height: var(--header-h);
	background: var(--glass); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
	box-shadow: 0 1px 0 var(--line);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
/* Header search */
.header-search { position: relative; flex: 1 1 auto; max-width: 520px; margin: 0 auto; }
.header-search > .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.header-search input { width: 100%; height: 46px; padding: 0 44px 0 46px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.header-search input::-webkit-search-cancel-button { display: none; }
.header-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(253, 152, 62, .18); }
.search-kbd { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); min-width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); background: var(--bg); pointer-events: none; }
.header-search input:focus ~ .search-kbd { display: none; }
.search-close { display: none; }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 24px 50px -20px rgba(16, 16, 20, .35); max-height: min(70vh, 520px); overflow-y: auto; z-index: 120; }
.search-results a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; text-decoration: none; }
.search-results [aria-selected="true"] a, .search-results a:hover { background: var(--bg); }
.search-results [aria-selected="true"] .site-menu__icon { background: var(--accent); }
.search-results strong { display: block; font-weight: 600; font-size: 15px; }
.search-results small { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 380px; }
.search-results mark { background: rgba(253, 152, 62, .35); color: inherit; border-radius: 3px; }
.search-label, .search-empty { padding: 8px 10px; font-size: 13px; color: var(--muted); }
.search-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.theme-toggle { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); transition: border-color .2s, transform .3s var(--ease); }
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle .icon { width: 20px; height: 20px; }
.theme-toggle__sun, [data-theme="dark"] .theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: block; color: var(--accent); }
.search-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); place-items: center; padding: 0; }
.search-toggle .icon { width: 20px; height: 20px; }

.primary-nav { display: flex; gap: 4px; align-items: center; }
.primary-nav a, .nav-tools { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; transition: background .3s; border: 0; background: transparent; }
.primary-nav a:hover, .nav-tools:hover, .nav-tools[aria-expanded="true"] { background: var(--surface); }
.nav-tools { display: inline-flex; align-items: center; gap: 4px; }
.nav-tools .chev { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.nav-tools[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* Hamburger, shown on small screens only */
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--ink); padding: 0; place-content: center; gap: 4px; }
.menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* The tools menu: a dropdown panel under the header on desktop */
.site-menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(16, 16, 20, .35); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.site-menu .container { padding-block: 22px; }
.site-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-menu li a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin-left: -8px; border-radius: 10px; text-decoration: none; font-size: 15px; font-weight: 500; }

/* Desktop: category list on the left, that category's tools on the right */
.menu-panel { display: grid; grid-template-columns: 230px minmax(0, 1fr); max-width: 980px; margin: 0 auto; min-height: 330px; }
.menu-cats { list-style: none; margin: 0; padding: 0 18px 0 0; border-right: 1px solid var(--line); display: grid; gap: 2px; align-content: start; }
.menu-cats button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; font-weight: 600; font-size: 15px; text-align: left; transition: background .2s; }
.menu-cats button:hover { background: var(--bg); }
.menu-cats button span { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--muted); background: var(--bg-2); border-radius: 999px; padding: 1px 8px; }
.menu-cats button[aria-selected="true"] { background: var(--solid); color: var(--on-solid); }
.menu-cats button[aria-selected="true"] span { background: rgba(255, 255, 255, .16); color: #fff; }
.menu-tools { padding-left: 26px; }
.menu-tools__intro { margin: 2px 0 12px; font-size: 14px; color: var(--muted); }
.menu-tools ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; }
.menu-tools li a { align-items: flex-start; padding: 8px; }
.menu-tools li a > span:last-child { min-width: 0; }
.menu-tools strong { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.menu-tools small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-tools .site-menu__all { margin-top: 12px; }
.menu-accordion { display: none; }
.site-menu li a:hover, .site-menu li a[aria-current="page"] { background: var(--bg); }
.site-menu__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--bg-2); flex: none; }
.site-menu__icon .icon { width: 16px; height: 16px; }
.site-menu li a:hover .site-menu__icon, .site-menu li a[aria-current="page"] .site-menu__icon { background: var(--accent); }
.site-menu__quick { display: none; }
.site-menu__all { display: inline-block; margin-top: 20px; font-weight: 600; font-size: 15px; color: var(--accent-ink); text-decoration: none; }
.site-menu__all:hover { text-decoration: underline; }
@media (max-width: 900px) { body.menu-open { overflow: hidden; } }

.site-footer { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding-top: clamp(40px, 5vw, 64px); margin-top: clamp(40px, 6vw, 80px); }
.muted-on-dark { color: var(--muted-on-dark); }
.site-footer .eyebrow { color: var(--muted-on-dark); }
/* The pitch sits in its own card with a soft orange glow, so it reads as one block. */
.footer-cta { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px 48px; align-items: end; padding: clamp(26px, 4vw, 44px); border: 1px solid var(--line-dark); border-radius: calc(var(--radius) + 6px); background: radial-gradient(120% 140% at 100% 0%, rgba(255, 138, 61, .22), transparent 55%), rgba(255, 255, 255, .03); }
.footer-cta h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: .35em; }
.footer-cta p { margin: 0; max-width: 52ch; }
.footer-cta .eyebrow { margin-bottom: 12px; }
.footer-cta h2 em { font-style: normal; color: var(--accent); }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.site-footer .btn--ghost { --btn-fg: #fff; border-color: var(--line-dark); }
.site-footer .btn--ghost:hover { border-color: #fff; box-shadow: none; }
.footer-main { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr); gap: 40px 56px; padding-block: clamp(40px, 5vw, 60px) clamp(32px, 4vw, 48px); }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-brand p a { color: #fff; }
.footer-brand p { margin: 0; font-size: 14.5px; line-height: 1.6; max-width: 34ch; }
.footer-search { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line-dark); border-radius: 999px; color: #fff; text-decoration: none; font-size: 14.5px; transition: border-color .2s, background .2s; }
.footer-search .icon { width: 16px; height: 16px; }
.footer-search:hover { border-color: var(--accent); background: rgba(255, 138, 61, .08); }
.footer-mail { color: #e8e6e1; font-size: 14.5px; text-decoration: none; border-bottom: 1px solid var(--line-dark); padding-bottom: 2px; }
.footer-mail:hover { color: var(--accent); border-color: var(--accent); }
.footer-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.footer-tools h3 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.footer-tools summary { list-style: none; pointer-events: none; }
.footer-tools summary::-webkit-details-marker { display: none; }
.footer-count { display: none; }
.footer-tools ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-tools a, .footer-links a { text-decoration: none; font-size: 14.5px; color: #d9d7d1; transition: color .15s; }
.footer-tools a:hover, .footer-links a:hover { color: #fff; }
.footer-tools a.footer-all { color: var(--accent); font-weight: 600; }
.footer-tools a.footer-all:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px 32px; flex-wrap: wrap; padding-block: 20px 24px; border-top: 1px solid var(--line-dark); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { font-size: 13.5px; color: var(--muted-on-dark); }
.footer-legal { margin: 0; font-size: 13.5px; color: var(--muted-on-dark); }

/* 5. Home ---------------------------------------------------------------- */
.hero { padding-block: clamp(56px, 9vw, 120px) clamp(24px, 4vw, 48px); }
.hero-title { font-size: clamp(2.6rem, 6.4vw, 5.4rem); max-width: 14ch; }
.hero-title em, .tool-title em { font-style: normal; background: linear-gradient(100deg, #ff7a18 0%, #fd983e 35%, #e0457b 75%, #8b5cf6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 620px; margin-bottom: 32px; }

.cat-title { font-size: 1.5rem; margin: 48px 0 20px; }
.cat-title:first-child { margin-top: 0; }
.cat-link { margin-left: 10px; font-family: var(--font-body); font-size: 14.5px; font-weight: 600; color: var(--accent-ink); text-decoration: none; letter-spacing: 0; }
.cat-link:hover { text-decoration: underline; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tool-card {
	position: relative; display: block; padding: 24px; border-radius: 22px; background: var(--card-grad);
	border: 1px solid var(--line); text-decoration: none; box-shadow: var(--card-shadow);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
a.tool-card:hover { transform: translateY(-5px); box-shadow: var(--card-shadow-hover); border-color: rgba(253, 152, 62, .6); }
.tool-card h3 { font-size: 1.15rem; margin: 18px 0 6px; }
.tool-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
/* Same 3D gradient tile as the home page; a c-* class sets the category colour. */
.tool-card__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: linear-gradient(135deg, #ffcb8f, #fd983e 60%, #e9780f); color: #fff; box-shadow: inset 0 -4px 10px rgba(0, 0, 0, .18), inset 0 4px 10px rgba(255, 255, 255, .3), 0 14px 24px -12px rgba(16, 16, 20, .45); }
.tool-card__icon .icon { width: 24px; height: 24px; }
.tool-card.is-soon { opacity: .62; }
.tool-card.is-soon .tool-card__icon { background: var(--bg-2); color: var(--muted); }

/* 6. Tool pages ---------------------------------------------------------- */
/* Same backdrop as the home hero: faint grid, two soft glows, fading into the page. */
.tool-hero {
	position: relative; overflow: hidden; isolation: isolate;
	padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 48px); text-align: center;
	background-image: linear-gradient(transparent 45%, var(--bg)), linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: 100% 100%, 44px 44px, 44px 44px; background-position: center top;
}
/* Glows sit near the top so they never meet the hero's bottom edge. */
.tool-hero::before, .tool-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.tool-hero::before { width: 460px; height: 340px; top: -220px; right: -60px; background: #ffb36b; opacity: .45; }
.tool-hero::after { width: 340px; height: 260px; top: -140px; left: -160px; background: #c9b6ff; opacity: .35; }
.tool-hero > .container { position: relative; }
.tool-hero .eyebrow { padding: 7px 14px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--line); backdrop-filter: blur(8px); color: var(--text); font-size: 11.5px; letter-spacing: .08em; }
.tool-title { font-size: clamp(2.3rem, 5.4vw, 4.2rem); margin-inline: auto; max-width: 18ch; letter-spacing: -.035em; }
.tool-hero .hero-text { margin-inline: auto; }

.check-form {
	display: flex; gap: 8px; max-width: 760px; margin: 0 auto; padding: 8px;
	background: var(--surface); border-radius: 999px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.check-form input[type="text"] {
	flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 20px; font-size: 17px; outline: none;
}
.check-form:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.form-error { margin: 14px auto 0; max-width: 760px; color: var(--poor); font-weight: 500; }

.strategy-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-2); gap: 4px; }
.strategy-tabs button { border: 0; background: transparent; padding: 8px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.strategy-tabs button[aria-selected="true"] { background: var(--solid); color: var(--on-solid); }

/* Long-form content under each tool */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent-ink); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* 7. Results ------------------------------------------------------------- */
.results { padding-bottom: 24px; }
.results[hidden] { display: none; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.results-head h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.results-url { font-family: var(--font-mono); font-size: 14px; color: var(--muted); word-break: break-all; margin: 4px 0 0; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 32px); margin-bottom: 16px; box-shadow: var(--card-shadow); }
.panel h3 { font-size: 1.2rem; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.panel h3 .icon { color: var(--accent-ink); }
.panel-sub { color: var(--muted); font-size: 15px; margin-bottom: 20px; }

.scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.score { display: grid; justify-items: center; gap: 10px; font-weight: 500; font-size: 15px; }
.gauge { position: relative; width: 104px; height: 104px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 9; }
.gauge .track { stroke: var(--bg-2); }
.gauge .bar { stroke: currentColor; stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.gauge span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; }
.is-good { color: var(--good); }
.is-avg { color: var(--avg); }
.is-poor { color: var(--poor); }
.score--main .gauge { width: 132px; height: 132px; }
.score--main .gauge span { font-size: 2.4rem; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
/* Cell dividers drawn on the right/bottom; the container clips the outer ones, so a short last row stays clean. */
.metric { padding: 18px 20px; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.metric dt { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.metric dt::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.metric dt.is-good::before { background: var(--good); }
.metric dt.is-avg::before { background: var(--avg); }
.metric dt.is-poor::before { background: var(--poor); }
.metric dt { color: var(--muted); }
.metric dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }

.field-verdict { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; background: var(--bg-2); margin-bottom: 16px; }

.opps { list-style: none; margin: 0; padding: 0; }
.opps li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.opps li:first-child { border-top: 0; }
.opps strong { font-weight: 600; }
.opps .saving { font-family: var(--font-mono); font-size: 14px; color: var(--poor); white-space: nowrap; }
.opps p { grid-column: 1 / -1; margin: 0; font-size: 14.5px; color: var(--muted); }
.opps code { font-family: var(--font-mono); font-size: 13px; background: var(--bg-2); padding: 1px 5px; border-radius: 4px; }

.result-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.screenshot { border-radius: var(--radius-sm); border: 1px solid var(--line); margin-inline: auto; max-height: 520px; width: auto; }

/* The funnel: a service offer matched to the result */
.cta-card {
	background: radial-gradient(120% 160% at 100% 0%, rgba(253, 152, 62, .3), transparent 50%), radial-gradient(90% 140% at 0% 100%, rgba(139, 92, 246, .22), transparent 55%), var(--ink);
	color: #fff; border-radius: 26px; padding: clamp(24px, 3.5vw, 40px); margin-bottom: 16px; border: 1px solid var(--line-dark);
	box-shadow: 0 40px 70px -40px rgba(16, 16, 20, .7); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.cta-card h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 8px; }
.cta-card p { margin: 0; color: var(--muted-on-dark); }
.cta-card .eyebrow { color: var(--muted-on-dark); margin-bottom: 12px; }
.cta-card--soft { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.cta-card--soft p, .cta-card--soft .eyebrow { color: var(--muted); }

.lead-form { display: grid; gap: 12px; }
.lead-form .row { display: flex; gap: 8px; }
.lead-form input[type="email"] { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; min-height: 48px; background: var(--bg); }
.lead-form label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.lead-form label.check input { margin-top: 4px; accent-color: var(--solid); }
.lead-form .hp { position: absolute; left: -9999px; }
.lead-msg { font-size: 15px; font-weight: 500; margin: 0; }
.lead-msg.is-ok { color: var(--good); }
.lead-msg.is-err { color: var(--poor); }

/* Loading state */
.loading { text-align: center; padding: 48px 0; }
.loading[hidden] { display: none; }
.spinner { width: 48px; height: 48px; margin: 0 auto 18px; border-radius: 50%; border: 4px solid var(--bg-2); border-top-color: var(--accent); animation: spin 1s linear infinite; }
.loading-step { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } .gauge .bar { transition: none; } }

/* 7b. Image tools -------------------------------------------------------- */
.tool-wrap { max-width: 980px; margin-inline: auto; }
.dropzone {
	display: grid; justify-items: center; gap: 6px; text-align: center; cursor: pointer;
	padding: clamp(28px, 5vw, 48px) 20px; border: 2px dashed rgba(16, 16, 20, .22); border-radius: var(--radius);
	background: var(--surface); transition: border-color .3s, background .3s;
}
.dropzone:hover, .dropzone.is-over, .dropzone:focus-within { border-color: var(--accent); background: #fffaf4; }
.dropzone strong { font-family: var(--font-display); font-size: 1.3rem; }
.dropzone > span { color: var(--muted); font-size: 15px; }
.dropzone__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--accent); color: var(--ink) !important; margin-bottom: 6px; }
.dropzone__icon .icon { width: 26px; height: 26px; }
.dropzone__note { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px !important; }
.dropzone__note .icon { width: 14px; height: 14px; }

.options { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: flex-end; padding: 20px 24px; margin: 16px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; font-size: 14px; font-weight: 500; }
.field > span:first-child { color: var(--muted); }
.field select, .field input[type="number"], .field input[type="text"], .field input[type="color"] {
	min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font-size: 15px;
}
.field input[type="number"] { width: 110px; }
.field input[type="color"] { width: 64px; padding: 4px; }
.field input[type="range"] { width: 220px; accent-color: var(--accent-ink); }
.field output { font-family: var(--font-mono); font-weight: 500; }
.field--check { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.field--check input { width: 18px; height: 18px; accent-color: var(--solid); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-2); gap: 2px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; width: 1px !important; height: 1px !important; }
.seg span { display: block; padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.seg input:checked + span { background: var(--solid); color: var(--on-solid); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.seg input:disabled + span { opacity: .4; cursor: not-allowed; }
.hint { font-size: 13.5px; color: var(--muted); margin: 0; flex-basis: 100%; }

.batch-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 20px 0 10px; }
.batch-summary { margin: 0 auto 0 0; font-weight: 500; }
.file-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.file-row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.file-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; background: var(--bg-2); flex: none; }
.file-info { flex: 1; min-width: 0; display: grid; }
.file-info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 15px; }
.file-meta { font-size: 14px; color: var(--muted); }
.file-meta b { color: var(--text); }
.file-note { font-size: 13px; }
.saving-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #e3f5ea; color: var(--good); font-weight: 600; font-size: 12.5px; }
.saving-badge.is-up { background: #fde8e4; color: var(--poor); }
.file-remove { border: 0; background: transparent; font-size: 24px; line-height: 1; color: var(--muted); padding: 4px 8px; border-radius: 8px; }
.file-remove:hover { background: var(--bg-2); color: var(--text); }

.tool-grid--compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tool-grid--compact .tool-card { padding: 20px; }
.tool-grid--compact .tool-card h3 { font-size: 1.05rem; margin-top: 14px; }

.code-box { width: 100%; min-height: 140px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font-family: var(--font-mono); font-size: 13px; line-height: 1.5; resize: vertical; word-break: break-all; }
/* Example code in the guides keeps its line breaks, so long lines scroll inside the box. */
pre.code-box { overflow-x: auto; max-width: 100%; }
.code-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0 8px; }
.code-head h3 { margin: 0; font-size: 1.05rem; }
.copy-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; }
.copy-btn.is-done { background: var(--solid); color: var(--on-solid); }
.checker { background-color: #fff; background-image: linear-gradient(45deg, #e9e6df 25%, transparent 25%), linear-gradient(-45deg, #e9e6df 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e9e6df 75%), linear-gradient(-45deg, transparent 75%, #e9e6df 75%); background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }

.favicon-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; }
.favicon-grid figure { margin: 0; display: grid; justify-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-family: var(--font-mono); }
.favicon-grid canvas, .favicon-grid img { border-radius: 4px; border: 1px solid var(--line); image-rendering: auto; }
.browser-tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: #dee1e6; border-radius: 10px 10px 0 0; font-size: 13px; color: #202124; max-width: 260px; }
.browser-tab img { width: 16px; height: 16px; border: 0; }

/* 7c. QR & WhatsApp ------------------------------------------------------ */
.qr-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: start; }
.qr-preview { position: sticky; top: calc(var(--header-h) + 16px); text-align: center; }
.qr-preview canvas { width: 100%; max-width: 300px; height: auto; margin: 0 auto 16px; border-radius: 12px; }
.qr-preview .options { margin: 16px 0 0; padding: 16px; text-align: left; }
.qr-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.type-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.type-tabs button { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 14px; }
.type-tabs button[aria-selected="true"] { background: var(--solid); border-color: var(--solid); color: var(--on-solid); }
.form-grid { display: grid; gap: 14px; }
.form-grid .field input, .form-grid .field select, .form-grid .field textarea { width: 100%; }
.form-grid .field--check { display: flex; grid-template-columns: none; }
.form-grid .field--check input { width: 18px; flex: none; }
.form-grid .field textarea { min-height: 96px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font-size: 15px; resize: vertical; }
.form-grid .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.warn-note { margin: 12px 0 0; font-size: 14px; color: var(--poor); font-weight: 500; }
.wa-number { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; }
.link-out { display: flex; gap: 8px; align-items: stretch; }
.link-out input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font-family: var(--font-mono); font-size: 14px; }
.wa-demo { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; background: #25d366; color: #fff; font-weight: 600; text-decoration: none; }

/* 7d. Website checkers --------------------------------------------------- */
.hero-card { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.hero-card__badge { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 22px; background: var(--ink); color: #fff; font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.hero-card h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 4px; }
.hero-card p { margin: 0; color: var(--muted); }
.theme-card { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
.theme-card img { width: 100%; max-width: 320px; border-radius: var(--radius-sm); border: 1px solid var(--line); aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-2); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 12px 0 0; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; word-break: break-word; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .tech { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.chips .tech small { font-family: var(--font-mono); color: var(--muted); font-size: 12px; }
.tech-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tech-groups .panel { margin: 0; }
.tech-groups h3 { font-size: 1rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.status-pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.status-pill.is-good { background: #e3f5ea; }
.status-pill.is-avg { background: #fdf0e0; }
.status-pill.is-poor { background: #fde8e4; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.check-list li:first-child { border-top: 0; }
.check-list .mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; margin-top: 2px; }
.check-list .mark.is-good { background: var(--good); }
.check-list .mark.is-avg { background: var(--avg); }
.check-list .mark.is-poor { background: var(--poor); }
.check-list strong { display: block; font-weight: 600; }
.check-list span.sub { color: var(--muted); font-size: 14.5px; }
.link-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.link-table th { text-align: left; font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.link-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.link-table td.url { word-break: break-all; }
/* Plain data tables that stay tables on phones (scroll sideways inside their panel if needed). */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.link-table td.url a { color: inherit; }
.link-table td.url small { display: block; color: var(--muted); }
.link-table .code { font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.filter-tabs button { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; }
.filter-tabs button[aria-pressed="true"] { background: var(--solid); border-color: var(--solid); color: var(--on-solid); }
.progress { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; margin: 6px 0 14px; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }

/* 7e. Social & search previews (approximations of each platform's own look) */
.preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.preview-grid .panel { margin: 0; }
.pv-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.pv-img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; display: block; background: #dfe3e8; }
.pv-noimg { width: 100%; aspect-ratio: 1.91 / 1; display: grid; place-items: center; background: #e9ebee; color: #8a8d91; font-size: 14px; }
.pv-clamp1, .pv-clamp2 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.pv-clamp1 { -webkit-line-clamp: 1; }
.pv-clamp2 { -webkit-line-clamp: 2; }
.serp { font-family: Arial, sans-serif; max-width: 600px; }
.serp__site { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.serp__fav { width: 28px; height: 28px; border-radius: 50%; background: #f1f3f4; display: grid; place-items: center; overflow: hidden; flex: none; }
.serp__fav img { width: 18px; height: 18px; }
.serp__name { font-size: 14px; color: #202124; line-height: 1.3; }
.serp__url { font-size: 12px; color: #4d5156; }
.serp__title { font-size: 20px; line-height: 1.3; color: #1a0dab; margin: 0 0 4px; }
.serp__desc { font-size: 14px; line-height: 1.58; color: #4d5156; }
.serp--mobile { max-width: 380px; }
.serp--mobile .serp__title { font-size: 18px; }
.fb { font-family: Helvetica, Arial, sans-serif; border: 1px solid #dadde1; border-radius: 8px; overflow: hidden; }
.fb__body { background: #f0f2f5; padding: 10px 12px; }
.fb__domain { font-size: 12px; color: #65676b; text-transform: uppercase; }
.fb__title { font-size: 16px; font-weight: 600; color: #050505; margin: 3px 0 2px; line-height: 1.25; }
.fb__desc { font-size: 14px; color: #65676b; }
.li { font-family: -apple-system, system-ui, sans-serif; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.li__body { padding: 8px 12px; background: #fff; }
.li__title { font-size: 14px; font-weight: 600; color: rgba(0,0,0,.9); line-height: 1.4; }
.li__domain { font-size: 12px; color: rgba(0,0,0,.6); margin-top: 2px; }
.xc { font-family: -apple-system, system-ui, sans-serif; border: 1px solid #cfd9de; border-radius: 16px; overflow: hidden; position: relative; }
.xc__domain { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.77); color: #fff; font-size: 13px; padding: 1px 6px; border-radius: 4px; }
.xc--small { display: flex; align-items: stretch; }
.xc--small .pv-img, .xc--small .pv-noimg { width: 130px; aspect-ratio: 1; flex: none; }
.xc__body { padding: 10px 12px; font-size: 15px; color: #536471; display: grid; align-content: center; gap: 2px; }
.xc__body strong { color: #0f1419; font-weight: 400; }
.wa { background: #efeae2; padding: 14px; border-radius: 12px; }
.wa__bubble { background: #d9fdd3; border-radius: 8px; padding: 4px; max-width: 340px; margin-left: auto; font-family: -apple-system, system-ui, sans-serif; }
.wa__card { background: rgba(0,0,0,.05); border-radius: 6px; overflow: hidden; }
.wa__card .pv-img { aspect-ratio: 1.91 / 1; }
.wa__text { padding: 6px 8px; font-size: 13px; color: #111b21; }
.wa__text strong { display: block; font-size: 14px; }
.wa__text span { color: #667781; }
.wa__link { font-size: 14px; color: #027eb5; padding: 4px 6px 2px; word-break: break-all; }
.edit-grid { display: grid; gap: 12px; }
.edit-grid .field input, .edit-grid .field textarea { width: 100%; }
.edit-grid textarea { min-height: 70px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font-size: 15px; resize: vertical; }
.counter { font-family: var(--font-mono); font-size: 12px; font-weight: 500; }
.meta-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.meta-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; word-break: break-word; }
.meta-table td:first-child { font-family: var(--font-mono); font-size: 13px; color: var(--muted); white-space: nowrap; width: 1%; }
.robots-pre { margin: 0; max-height: 420px; overflow: auto; padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 13px; line-height: 1.6; counter-reset: ln; white-space: pre; }
.robots-pre span { display: block; counter-increment: ln; }
.robots-pre span::before { content: counter(ln); display: inline-block; width: 3ch; margin-right: 14px; color: var(--muted); text-align: right; }
.robots-pre .hl { background: #fde8e4; }
.hop-list { list-style: none; margin: 0; padding: 0; }
.hop-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.hop-list li:first-child { border-top: 0; }
.hop-list .url { word-break: break-all; font-size: 14.5px; }
.hop-list .ms { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

/* 7f. Text & developer tools --------------------------------------------- */
.big-textarea { width: 100%; min-height: 280px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 16px; line-height: 1.6; resize: vertical; box-shadow: var(--shadow); }
.big-textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.big-textarea.mono { font-family: var(--font-mono); font-size: 13.5px; line-height: 1.55; tab-size: 2; white-space: pre; overflow-wrap: normal; overflow-x: auto; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.toolbar .spacer { flex: 1; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.stat-grid div { background: var(--surface); padding: 14px 16px; }
.stat-grid dt { font-size: 13.5px; color: var(--muted); }
.stat-grid dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.limit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.limit-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14.5px; }
.limit-list .bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.limit-list .bar span { display: block; height: 100%; background: var(--good); }
.limit-list .over .bar span { background: var(--poor); }
.limit-list .over b { color: var(--poor); }
.density-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.density-table td { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.density-table td:last-child { text-align: right; font-family: var(--font-mono); color: var(--muted); }
.pw-out { display: flex; gap: 8px; align-items: stretch; }
.pw-out input { flex: 1; min-width: 0; min-height: 64px; padding: 0 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-family: var(--font-mono); font-size: clamp(16px, 2.4vw, 22px); }
.meter { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; margin: 14px 0 6px; }
.meter span { display: block; height: 100%; transition: width .3s, background .3s; }
.pw-list { list-style: none; margin: 0; padding: 0; font-family: var(--font-mono); font-size: 14.5px; }
.pw-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); word-break: break-all; }
.result-grid.json-grid { grid-template-columns: 1fr 1fr; }
/* Grid items default to their content's minimum width; let them shrink so wide content scrolls instead of the page. */
.result-grid > *, .qr-layout > *, .shots > *, .preview-grid > * { min-width: 0; }
.json-error { margin: 10px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: #fde8e4; color: var(--poor); font-family: var(--font-mono); font-size: 13.5px; }
.json-ok { margin: 10px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: #e3f5ea; color: var(--good); font-weight: 500; font-size: 14.5px; }
.json-tree { font-family: var(--font-mono); font-size: 13.5px; line-height: 1.6; max-height: 520px; overflow: auto; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.json-tree details { padding-left: 18px; }
.json-tree summary { margin-left: -18px; cursor: pointer; }
.json-tree .k { color: #8a3ffc; }
.json-tree .s { color: #0c7a43; }
.json-tree .n { color: #b45f00; }
.json-tree .b { color: #0b62d6; }
.json-tree .x { color: var(--muted); }
.json-tree .row { padding-left: 18px; }
.repeat-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }
.repeat-row.one { grid-template-columns: 1fr auto; }
.repeat-row .file-remove { margin-bottom: 6px; }
.add-btn { border: 1px dashed var(--line); background: transparent; border-radius: var(--radius-sm); padding: 10px; font-weight: 600; font-size: 14px; color: var(--muted); }
.add-btn:hover { border-color: var(--accent); color: var(--text); }
.form-grid input[type="text"], .form-grid input[type="url"], .form-grid input[type="email"], .form-grid input[type="tel"], .form-grid input[type="number"], .form-grid input[type="date"], .form-grid input[type="datetime-local"], .form-grid input[type="time"], .form-grid select {
	min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font-size: 15px; width: 100%;
}
.form-grid .row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.preset-row { display: flex; flex-wrap: wrap; gap: 6px; }
.preset-row button { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; }
.preset-row button:hover { border-color: var(--solid); }

/* 7g. SEO audit ---------------------------------------------------------- */
.audit-form { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 0; max-width: 860px; margin: 0 auto; padding: 8px; background: var(--surface); border-radius: 999px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.audit-form:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.audit-form input { border: 0; background: transparent; padding: 0 20px; font-size: 16px; outline: none; min-width: 0; min-height: 52px; }
.audit-form input + input { border-left: 1px solid var(--line); }
.audit-head { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.audit-head .gauge { width: 150px; height: 150px; }
.audit-head .gauge span { font-size: 2.8rem; }
.cat-bars { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.cat-bars li { display: grid; grid-template-columns: 130px 1fr 44px; gap: 12px; align-items: center; font-size: 14.5px; }
.cat-bars .bar { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.cat-bars .bar span { display: block; height: 100%; border-radius: 999px; background: currentColor; }
.cat-bars b { font-family: var(--font-mono); font-size: 13.5px; text-align: right; }
.audit-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 24px 0 16px; scrollbar-width: thin; }
.audit-tabs button { border: 0; background: transparent; padding: 12px 16px; font-weight: 600; font-size: 15px; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.audit-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.audit-tabs .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: #fde8e4; color: var(--poor); font-size: 12px; font-family: var(--font-mono); }
.issue-cat { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-left: 6px; font-weight: 500; }
.head-tree { list-style: none; margin: 0; padding: 0; font-size: 14.5px; max-height: 460px; overflow: auto; }
.head-tree li { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.head-tree code { display: inline-block; min-width: 30px; font-family: var(--font-mono); font-size: 12px; color: var(--accent-ink); font-weight: 600; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.compare-table th, .compare-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.compare-table th { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); word-break: break-all; }
.compare-table td:not(:first-child) { font-weight: 600; }
.compare-table .win { color: var(--good); }
.compare-table .lose { color: var(--poor); }
.example-list { margin: 0; padding-left: 1.2em; font-size: 14.5px; color: var(--muted); }
.example-list li { margin-bottom: 6px; }

/* 7h. Design tools ------------------------------------------------------- */
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.swatch { border: 0; border-radius: var(--radius-sm); min-height: 110px; padding: 10px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 2px; font-family: var(--font-mono); font-size: 12.5px; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); transition: transform .2s var(--ease); }
.swatch:hover { transform: translateY(-2px); }
.swatch b { font-size: 13.5px; }
.swatch small { opacity: .8; }
.contrast-preview { display: grid; gap: 6px; padding: 22px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.contrast-preview strong { font-family: var(--font-display); font-size: 24px; }
.contrast-score { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 4px; }
.contrast-score span { font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.canvas-stage { position: relative; background: var(--bg-2); border-radius: var(--radius-sm); overflow: hidden; display: grid; place-items: center; min-height: 260px; }
.canvas-stage canvas { max-width: 100%; height: auto; display: block; }
.crop-box { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(16,16,20,.55); cursor: move; touch-action: none; }
.crop-box::before, .crop-box::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.crop-box::before { border-left: 1px solid rgba(255,255,255,.5); border-right: 1px solid rgba(255,255,255,.5); left: 33.3%; right: 33.3%; }
.crop-box::after { border-top: 1px solid rgba(255,255,255,.5); border-bottom: 1px solid rgba(255,255,255,.5); top: 33.3%; bottom: 33.3%; }
.crop-handle { position: absolute; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.4); touch-action: none; }
.crop-handle[data-h="nw"] { left: -9px; top: -9px; cursor: nwse-resize; }
.crop-handle[data-h="ne"] { right: -9px; top: -9px; cursor: nesw-resize; }
.crop-handle[data-h="sw"] { left: -9px; bottom: -9px; cursor: nesw-resize; }
.crop-handle[data-h="se"] { right: -9px; bottom: -9px; cursor: nwse-resize; }
.gradient-preview { height: 260px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.stop-row { display: grid; grid-template-columns: 52px 1fr 70px auto; gap: 10px; align-items: center; }
.stop-row input[type="color"] { width: 52px; height: 40px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; }
.stop-row input[type="range"] { width: 100%; accent-color: var(--accent-ink); }
.g-text-preview { margin: 18px 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: -.03em; -webkit-background-clip: text; background-clip: text; color: transparent; }
.preset-row button[aria-pressed="true"] { background: var(--solid); color: var(--on-solid); border-color: var(--solid); }
.preset-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.preset-swatches button { height: 44px; border: 0; border-radius: 10px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }

/* 7i. Business tools ----------------------------------------------------- */
.sig-preview { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 24px; overflow-x: auto; color: #222; }
.doc-sheet { background: #fff; color: #1d1d22; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: clamp(20px, 4vw, 48px); font-family: var(--font-body); font-size: 14px; line-height: 1.5; }
.doc-sheet h1, .doc-sheet h2, .doc-sheet h3 { font-family: var(--font-display); }
.inv-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.inv-top img { max-height: 64px; max-width: 200px; width: auto; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 8px 0 16px; }
.cookie-table th, .cookie-table td { border: 1px solid #e6e3dc; padding: 6px 8px; text-align: left; vertical-align: top; word-break: break-word; }
.cookie-table th { background: #f6f4ef; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #666; }
.inv-title { font-size: 2rem; margin: 0; letter-spacing: -.02em; }
.doc-sheet { position: relative; }
.inv-stamp { position: absolute; bottom: 12%; left: 9%; transform: rotate(-14deg); border: 4px solid; border-radius: 10px; padding: 4px 18px; font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; letter-spacing: .12em; opacity: .5; pointer-events: none; }
.inv-meta { text-align: right; font-size: 13.5px; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.inv-parties p { margin: 0; white-space: pre-line; }
.inv-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #777; margin-bottom: 4px !important; font-weight: 600; }
.inv-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.inv-table th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #777; padding: 8px 6px; border-bottom: 2px solid #1d1d22; }
.inv-table td { padding: 10px 6px; border-bottom: 1px solid #e6e3dc; vertical-align: top; }
.inv-table .num { text-align: right; white-space: nowrap; }
@media screen and (max-width: 560px) {
	.inv-table th, .inv-table td { padding-left: 3px; padding-right: 3px; }
	.inv-table th { letter-spacing: 0; font-size: 10px; }
	.inv-table td { font-size: 12.5px; word-break: break-word; }
}
.inv-totals { margin-left: auto; width: min(100%, 300px); }
.inv-totals div { display: flex; justify-content: space-between; padding: 5px 0; }
.inv-totals .grand { border-top: 2px solid #1d1d22; margin-top: 6px; padding-top: 10px; font-weight: 700; font-size: 1.15rem; }
.inv-notes { margin-top: 28px; padding-top: 16px; border-top: 1px solid #e6e3dc; white-space: pre-line; font-size: 13px; color: #555; }
.item-row { display: grid; grid-template-columns: 1fr 64px 92px 64px auto; gap: 6px; align-items: center; }
.item-row input { min-height: 40px !important; }
.policy-doc { max-height: 640px; overflow-y: auto; }
.policy-doc h2 { font-size: 1.25rem; margin: 1.4em 0 .4em; }
.policy-doc h1 { font-size: 1.8rem; }
.policy-doc p, .policy-doc li { font-size: 14.5px; }
.legal-note { padding: 12px 16px; border-radius: var(--radius-sm); background: #fdf0e0; color: #7a4100; font-size: 14px; margin: 0 0 16px; }
@media print {
	body.printing * { visibility: hidden !important; }
	body.printing .print-area, body.printing .print-area * { visibility: visible !important; }
	body.printing .print-area { position: absolute; left: 0; top: 0; width: 100%; border: 0; box-shadow: none; border-radius: 0; padding: 0; }
	body.printing .cv-sheet { font-size: 11pt; }
	body.printing .site-header { position: static; }
	@page { size: A4; margin: 14mm; }
}

/* 7k. CV templates (shared by screen preview and PDF) ------------------- */
/* 7l. Shape tools --------------------------------------------------------- */
.shape-stage { aspect-ratio: 1; max-height: 460px; margin: 0 auto; display: grid; place-items: center; padding: 6%; border-radius: var(--radius); border: 1px solid var(--line);
	background: #fff repeating-conic-gradient(#f1efe9 0 25%, #fff 0 50%) 0 0 / 24px 24px; }
.shape-stage svg { width: 100%; height: 100%; display: block; }
.chip-radio { cursor: pointer; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; width: 1px !important; height: 1px !important; }
.chip-radio span { display: block; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; }
.chip-radio input:checked + span { background: var(--solid); color: var(--on-solid); border-color: var(--solid); }
.chip-radio input:focus-visible + span { outline: 2px solid var(--accent); }
.divider-demo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.divider-demo__a, .divider-demo__b { padding: 46px 24px; font-family: var(--font-display, inherit); font-weight: 600; text-align: center; }
.divider-demo__a { background: #fff; color: #1d1d22; }
.divider-demo__b { color: #fff; }
.divider-demo svg { display: block; width: 100%; }
.clip-stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--line); background: #fff repeating-conic-gradient(#f1efe9 0 25%, #fff 0 50%) 0 0 / 24px 24px; touch-action: none; user-select: none; }
.clip-stage__shape { position: absolute; inset: 0; background: linear-gradient(135deg, #ff8a3d, #f23d6d 60%, #6a3df2); background-size: cover; background-position: center; }
.clip-stage__ghost { opacity: .16; }
.clip-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.clip-presets button { display: grid; justify-items: center; gap: 6px; padding: 10px 4px 8px; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; font-size: 12px; font-weight: 600; line-height: 1.2; }
.clip-presets button:hover { border-color: var(--solid); }
.clip-presets span { width: 38px; height: 38px; background: var(--solid); }
.clip-handle { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; border: 2px solid #1d1d22; box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: grab; padding: 0; z-index: 2; }
.clip-handle:focus-visible { outline: 3px solid var(--accent); }
.clip-handle.is-drag { cursor: grabbing; background: var(--accent); }

/* 7o. Design & CSS tools -------------------------------------------------- */
.sh-stage { display: grid; place-items: center; min-height: 360px; border-radius: var(--radius); border: 1px solid var(--line); padding: 40px; transition: background .2s; }
.sh-box { width: min(220px, 70%); aspect-ratio: 1; background: #fff; }
.sh-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 14px; }
.sh-layer { margin: 12px 0 0; padding: 14px 16px; }
.btn-stage { display: grid; place-items: center; min-height: 240px; border-radius: var(--radius); border: 1px solid var(--line); padding: 30px; }
.svg-compare { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.svg-compare figure { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.svg-compare .svg-frame { display: grid; place-items: center; height: 200px; padding: 12px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff repeating-conic-gradient(#f1efe9 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.svg-compare img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.tf-emojis button { font-size: 20px; line-height: 1; padding: 6px 8px; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.svg-saving { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin: 0; }

/* 7v. Home page: modern 3D design (all classes prefixed h3d-) ------------- */
.h3d-hero { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 96px) clamp(36px, 5vw, 64px);
	background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: 44px 44px; background-position: center top; }
.h3d-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 140px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.h3d-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.h3d-glow--a { width: 520px; height: 520px; background: #ffb36b; top: -160px; right: -80px; }
.h3d-glow--b { width: 420px; height: 420px; background: #c9b6ff; bottom: -200px; left: -120px; opacity: .35; }
.h3d-hero__copy { position: relative; z-index: 2; }
.h3d-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.h3d-pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--line); backdrop-filter: blur(8px); font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.h3d-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.h3d-title { font-size: clamp(2.3rem, 5.2vw, 4.4rem); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 20px; max-width: 16ch; }
.h3d-grad { background: linear-gradient(100deg, #ff7a18 0%, #fd983e 35%, #e0457b 75%, #8b5cf6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h3d-lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 560px; margin: 0 0 28px; }
.h3d-hero .home-search { box-shadow: 0 20px 50px -18px rgba(16,16,20,.35), 0 0 0 6px rgba(253,152,62,.12); }

/* The 3D scene: perspective on the stage, children placed at different depths (translateZ). */
.h3d-stage { perspective: 1400px; height: 460px; }
.h3d-scene { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(10deg) rotateY(-18deg); transition: transform .5s var(--ease); animation: h3d-float 7s ease-in-out infinite; }
@keyframes h3d-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.h3d-card { position: absolute; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.9); border-radius: 22px; box-shadow: 0 50px 80px -30px rgba(16,16,20,.45), 0 10px 30px -10px rgba(16,16,20,.2); backdrop-filter: blur(10px); }
.h3d-card--main { left: 8%; top: 10%; width: 78%; transform: translateZ(0); }
.h3d-card__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.h3d-card__bar span { width: 10px; height: 10px; border-radius: 50%; background: #e5e1d8; }
.h3d-card__bar span:first-child { background: #ff6b5f; } .h3d-card__bar span:nth-child(2) { background: #ffbe2e; } .h3d-card__bar span:nth-child(3) { background: #29c840; }
.h3d-card__bar em { margin-left: 10px; font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.h3d-card__body { padding: 16px; display: grid; gap: 10px; }
.h3d-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg); }
.h3d-file strong { display: block; font-size: 14px; }
.h3d-file small { color: var(--muted); font-size: 12px; }
.h3d-file__badge { display: grid; place-items: center; width: 34px; height: 40px; border-radius: 7px; background: #e5322d; color: #fff; font: 700 10px var(--font-mono); }
.h3d-file__badge--img { background: #2f6bff; }
.h3d-merge { margin-top: 4px; padding: 12px; border-radius: 999px; background: var(--accent); text-align: center; font-weight: 600; font-family: var(--font-display); }
.h3d-merge i { font-style: normal; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: 6px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; }
.h3d-chip { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: rgba(255,255,255,.95); box-shadow: 0 30px 50px -20px rgba(16,16,20,.4); white-space: nowrap; }
.h3d-chip strong { display: block; font-family: var(--font-display); font-size: 15px; }
.h3d-chip small { color: var(--muted); font-size: 12px; }
.h3d-chip--score { right: -2%; top: 2%; transform: translateZ(90px); animation: h3d-bob 6s ease-in-out infinite; }
.h3d-chip--size { left: 3%; bottom: 30%; transform: translateZ(110px); animation: h3d-bob 7s ease-in-out -2s infinite; }
.h3d-chip--done { right: 2%; bottom: 4%; transform: translateZ(60px); animation: h3d-bob 8s ease-in-out -4s infinite; }
@keyframes h3d-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.h3d-ring { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: conic-gradient(#22c55e 0 98%, #e5e1d8 0); }
.h3d-ring b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; font: 700 14px var(--font-display); }
.h3d-chip__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #ffb36b, #fd983e); font-weight: 700; font-size: 18px; }
.h3d-chip__icon--ok { background: linear-gradient(135deg, #4ade80, #16a34a); color: #fff; }
.h3d-cube { position: absolute; width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, #ffcb8f, #fd983e 60%, #e06a00); box-shadow: inset -6px -8px 14px rgba(0,0,0,.18), inset 6px 8px 14px rgba(255,255,255,.45), 0 24px 40px -14px rgba(224,106,0,.6); }
.h3d-cube--a { left: 0; top: 0; transform: translateZ(160px) rotate(18deg); animation: h3d-bob 9s ease-in-out -1s infinite; }
.h3d-cube--b { right: 18%; bottom: -6%; width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #e7ddff, #8b5cf6 70%); box-shadow: 0 20px 30px -10px rgba(139,92,246,.6); transform: translateZ(200px); animation: h3d-bob 6.5s ease-in-out -3s infinite; }

/* Stats band */
.h3d-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: -8px 0 64px; background: var(--ink); color: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 40px 70px -40px rgba(16,16,20,.7); }
.h3d-stats div { padding: 24px 26px; border-right: 1px solid var(--line-dark); }
.h3d-stats div:last-child { border-right: 0; }
.h3d-stats strong { display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; background: linear-gradient(100deg, #ffd29e, #fd983e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h3d-stats span { color: var(--muted-on-dark); font-size: 14px; }

/* Section headings */
.h3d-section { margin-bottom: 72px; }
.h3d-head { margin-bottom: 24px; }
.h3d-head .eyebrow { margin-bottom: 8px; }
.h3d-head h2 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.02em; }

/* Gradient icon tiles (one colour per category) */
.h3d-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; color: #fff; box-shadow: inset 0 -4px 10px rgba(0,0,0,.18), inset 0 4px 10px rgba(255,255,255,.3), 0 14px 24px -12px rgba(16,16,20,.45); }
.h3d-icon .icon { width: 24px; height: 24px; }
.h3d-icon--lg { width: 58px; height: 58px; border-radius: 18px; flex: none; }
.c-blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.c-pink { background: linear-gradient(135deg, #f9a8d4, #db2777); }
.c-red { background: linear-gradient(135deg, #fb7185, #dc2626); }
.c-violet { background: linear-gradient(135deg, #c4b5fd, #7c3aed); }
.c-green { background: linear-gradient(135deg, #6ee7b7, #059669); }
.c-amber { background: linear-gradient(135deg, #fcd34d, #ea8a0c); }
.c-teal { background: linear-gradient(135deg, #5eead4, #0d9488); }
.c-ink { background: linear-gradient(135deg, #52525b, #101014); }

/* Tool and category cards with 3D tilt (home.js sets --rx/--ry from the pointer) */
.h3d-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; perspective: 1000px; }
.h3d-tool, .h3d-cat { position: relative; display: block; text-decoration: none; background: var(--card-grad); border: 1px solid var(--line); border-radius: 22px; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0)); transform-style: preserve-3d; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; box-shadow: var(--card-shadow); }
.h3d-tool { padding: 22px; }
.h3d-tool:hover, .h3d-cat:hover { --lift: -6px; border-color: rgba(253,152,62,.6); box-shadow: var(--card-shadow-hover); }
.h3d-tool h3 { margin: 18px 0 6px; font-size: 1.12rem; }
.h3d-tool p { margin: 0; color: var(--muted); font-size: 14.5px; }
.h3d-tool__go { position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); font-weight: 700; transition: background .2s, transform .2s; }
.h3d-tool:hover .h3d-tool__go { background: var(--solid); color: var(--on-solid); transform: translateX(3px); }
.h3d-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; perspective: 1000px; }
.h3d-cat { display: flex; gap: 16px; align-items: flex-start; padding: 20px; }
.h3d-cat strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.h3d-cat em { display: block; font-style: normal; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin: 2px 0 6px; }
.h3d-cat small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.45; }

/* Dark "built by" block with floating shapes */
.h3d-maker { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 56px); border-radius: 32px; background: radial-gradient(120% 140% at 100% 0%, rgba(253,152,62,.35), transparent 50%), radial-gradient(90% 120% at 0% 100%, rgba(139,92,246,.28), transparent 55%), var(--ink); color: #fff; }
.h3d-maker__copy { position: relative; z-index: 1; max-width: 620px; }
.h3d-maker .eyebrow { color: var(--muted-on-dark); }
.h3d-maker h2 { margin: 8px 0 12px; font-size: clamp(1.8rem, 3.8vw, 2.8rem); letter-spacing: -.02em; }
.h3d-maker p { color: #d9d7d1; margin: 0 0 24px; }
.h3d-maker__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.h3d-maker .btn--ghost { --btn-fg: #fff; border-color: var(--line-dark); }
.h3d-maker__shapes span { position: absolute; border-radius: 22px; }
.h3d-maker__shapes .s1 { width: 150px; height: 150px; right: 8%; top: 18%; background: linear-gradient(135deg, #ffcb8f, #fd983e 60%, #e06a00); transform: rotate(18deg); box-shadow: inset -12px -14px 26px rgba(0,0,0,.25), inset 10px 12px 22px rgba(255,255,255,.35); animation: h3d-bob 8s ease-in-out infinite; }
.h3d-maker__shapes .s2 { width: 90px; height: 90px; right: 26%; bottom: 10%; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #efe8ff, #8b5cf6 70%); animation: h3d-bob 6s ease-in-out -2s infinite; }
.h3d-maker__shapes .s3 { width: 60px; height: 60px; right: 4%; bottom: 14%; background: linear-gradient(135deg, #6ee7b7, #059669); transform: rotate(-14deg); animation: h3d-bob 7s ease-in-out -4s infinite; }

@media (max-width: 1080px) {
	.h3d-tools, .h3d-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.h3d-hero__grid { grid-template-columns: 1fr; }
	.h3d-stage { height: 360px; max-width: 520px; width: 100%; margin: 8px auto 0; }
	.h3d-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.h3d-stats div:nth-child(2) { border-right: 0; }
	.h3d-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
	.h3d-maker__shapes { opacity: .35; }
}
@media (max-width: 560px) {
	/* Phones: a calmer, smaller scene with fewer floating pieces, and room before the stats band. */
	.h3d-stage { height: 330px; margin-bottom: 28px; }
	.h3d-scene { transform: rotateX(8deg) rotateY(-10deg) scale(.88); }
	.h3d-chip--size, .h3d-cube--a { display: none; }
	.h3d-card--main { left: 6%; width: 86%; top: 14%; }
	.h3d-chip--done { right: 0; bottom: 0; }
	.h3d-stats { margin-top: 0; }
	.h3d-chip { padding: 9px 12px; gap: 9px; }
	.h3d-chip--score { right: -4%; }
	.h3d-chip--size { left: 0; }
	.h3d-cats { grid-template-columns: 1fr; }
	.h3d-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.h3d-tool { padding: 14px; border-radius: 18px; }
	.h3d-tool h3 { font-size: .98rem; margin: 12px 0 0; }
	.h3d-tool p, .h3d-tool__go { display: none; }
	.h3d-icon { width: 40px; height: 40px; border-radius: 12px; }
	.h3d-icon .icon { width: 20px; height: 20px; }
	.h3d-stats div { padding: 16px 18px; }
}
/* Respect "reduce motion": no floating, no tilt. */
@media (prefers-reduced-motion: reduce) {
	.h3d-scene, .h3d-chip, .h3d-cube, .h3d-maker__shapes span { animation: none !important; }
	.h3d-tool, .h3d-cat { transform: none !important; }
}

/* 7u. Home page and category landing pages ------------------------------- */
.home-hero .hero-title { max-width: 18ch; font-size: clamp(2.3rem, 5.6vw, 4.6rem); }
.home-search { position: relative; display: flex; align-items: center; gap: 10px; max-width: 680px; padding: 0 18px; min-height: 62px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.home-search:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.home-search > .icon { width: 22px; height: 22px; color: var(--muted); flex: none; }
.home-search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 17px; outline: none; min-height: 58px; }
/* Below the sticky header (z-index 100), so it never slides over it while scrolling. */
.home-results { top: calc(100% + 10px); z-index: 50; max-height: min(52vh, 420px); }
.home-results small { max-width: 520px; }
.home-try { margin: 16px 0 0; font-size: 14.5px; color: var(--muted); }
.home-try a { color: var(--text); font-weight: 600; }
.trust-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 8px 0 48px; }
.trust-strip div { background: var(--surface); padding: 18px 20px; }
.trust-strip strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.trust-strip span { color: var(--muted); font-size: 14px; }
.cat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.cat-card { display: flex; flex-direction: column; gap: 4px; padding: 22px; background: var(--card-grad); border: 1px solid var(--line); border-radius: 22px; text-decoration: none; box-shadow: var(--card-shadow); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.cat-card:hover { transform: translateY(-4px); border-color: rgba(253, 152, 62, .6); box-shadow: var(--card-shadow-hover); }
.cat-card--icon { flex-direction: row; align-items: center; gap: 14px; }
.cat-cards .cat-card--icon .h3d-icon { width: 42px; height: 42px; border-radius: 13px; flex: none; color: #fff; }
.cat-card--icon .h3d-icon .icon { width: 20px; height: 20px; }
.cat-card--icon > span:last-child { display: grid; }
.cat-card strong { font-family: var(--font-display); font-size: 1.2rem; }
.cat-card em { font-style: normal; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.cat-card small { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 6px; }
.cat-card__go { margin-top: auto; padding-top: 12px; font-weight: 600; font-size: 14.5px; }
.cat-cards--small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cat-cards--small .cat-card { padding: 16px 18px; }
.cat-cards--small .cat-card strong { font-size: 1.02rem; }
.cat-cards--small .cat-card span { color: var(--muted); font-size: 14px; }
.maker { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px 48px; align-items: center; padding: clamp(26px, 4vw, 44px); background: var(--ink); color: #fff; border-radius: calc(var(--radius) + 6px); }
.maker .eyebrow { color: var(--muted-on-dark); }
.maker h2 { margin: 6px 0 10px; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.maker p { margin: 0; color: #d9d7d1; }
.maker__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.maker .btn--ghost { --btn-fg: #fff; border-color: var(--line-dark); }
/* Home: "How it works" steps */
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: none; }
.how-step { position: relative; overflow: hidden; padding: 26px; border-radius: 22px; background: var(--card-grad); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.how-step__n { position: absolute; right: 14px; top: -18px; font: 700 7rem/1 var(--font-display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--line); pointer-events: none; }
.how-step h3 { margin: 18px 0 6px; font-size: 1.15rem; }
.how-step p { margin: 0; color: var(--muted); font-size: 14.5px; }
/* A dashed connector between steps on wide screens */
.how-step:not(:last-child)::after { content: ""; position: absolute; top: 50px; right: -19px; width: 20px; border-top: 2px dashed rgba(253, 152, 62, .6); }

/* Home: games band */
.play-band { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 30px; border: 1px solid var(--line);
	background: radial-gradient(90% 120% at 100% 0%, rgba(139, 92, 246, .22), transparent 55%), radial-gradient(80% 120% at 0% 100%, rgba(79, 70, 229, .16), transparent 60%), var(--card-grad); box-shadow: var(--card-shadow); }
.play-band__copy h2 { margin: 8px 0 12px; font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.02em; }
.play-band__copy p { color: var(--muted); margin: 0 0 22px; max-width: 46ch; }
.play-band__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; perspective: 1000px; }
.play-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px; border-radius: 18px; text-decoration: none; text-align: center; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0)); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.play-tile:hover { --lift: -5px; border-color: rgba(139, 92, 246, .6); box-shadow: var(--card-shadow-hover); }
.play-tile strong { font-family: var(--font-display); font-size: 15px; }

/* Home: tools by audience */
.for-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.for-card { padding: 22px; border-radius: 22px; background: var(--card-grad); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.for-card h3 { margin: 16px 0 4px; font-size: 1.1rem; }
.for-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.for-card ul { list-style: none; margin: 0; padding: 0; }
.for-card li a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.for-card li a span { color: var(--muted); transition: transform .2s, color .2s; }
.for-card li a:hover { color: var(--accent-ink); }
.for-card li a:hover span { color: var(--accent-ink); transform: translateX(3px); }

/* Home: tool explorer (replaces the old A–Z list) */
.xp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.xp-filter { position: relative; display: block; width: min(320px, 100%); }
.xp-filter .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.xp-filter input { width: 100%; height: 46px; padding: 0 16px 0 42px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 15px; outline: none; }
.xp-filter input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(253, 152, 62, .18); }
.xp-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 8px; scrollbar-width: thin; }
.xp-tabs button { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 14px; white-space: nowrap; transition: border-color .2s, background .2s; }
.xp-tabs button:hover { border-color: var(--accent); }
.xp-tabs button i { width: 10px; height: 10px; border-radius: 50%; }
.xp-tabs button span { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; color: var(--muted); }
.xp-tabs button[aria-selected="true"] { background: var(--solid); color: var(--on-solid); border-color: var(--solid); }
.xp-tabs button[aria-selected="true"] span { color: inherit; opacity: .7; }
.xp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.xp-tool { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; animation: game-in .25s var(--ease); }
.xp-tool:hover { border-color: rgba(253, 152, 62, .6); transform: translateY(-2px); box-shadow: var(--card-shadow); }
.xp-tool .h3d-icon { width: 40px; height: 40px; border-radius: 12px; flex: none; }
.xp-tool .h3d-icon .icon { width: 20px; height: 20px; }
.xp-tool > span:last-child { min-width: 0; }
.xp-tool strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.xp-tool small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-empty { text-align: center; color: var(--muted); padding: 24px 0; margin: 0; }
.xp-more { text-align: center; margin: 22px 0 0; }

@media (max-width: 1080px) {
	.for-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.xp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.how-steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.how-step:not(:last-child)::after { display: none; }
	.play-band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
	.for-grid, .xp-grid { grid-template-columns: minmax(0, 1fr); }
	.play-band__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.how-step { padding: 20px; }
	.how-step__n { font-size: 5.5rem; }
}
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: inherit; }
.cat-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; }
.cat-badges span { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13.5px; font-weight: 600; }
.cat-guide h2 { margin: 0 0 14px; font-size: 1.35rem; }
.cat-guide ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.cat-guide li a { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.cat-guide li a span { color: var(--muted); }
.cat-guide li a strong { white-space: nowrap; font-weight: 600; }
.cat-guide li a:hover strong { color: var(--accent-ink); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 40px; }
.why-card { padding: 22px; border-radius: var(--radius); background: var(--bg-2); }
.why-card__tick { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--good); color: #fff; font-weight: 700; }
.why-card h3 { margin: 12px 0 6px; font-size: 1.08rem; }
.why-card p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) {
	.maker { grid-template-columns: 1fr; }
	.maker__actions { justify-content: flex-start; }
	.trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cat-guide ul { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.home-search { min-height: 54px; padding: 0 14px; }
	.home-search input { font-size: 16px; min-height: 50px; }
	.home-results small { max-width: 220px; }
	/* Popular tools as a compact 2-column grid on phones: icon and name only. */
	.tool-grid--popular { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.tool-grid--popular .tool-card { padding: 14px; }
	.tool-grid--popular .tool-card h3 { font-size: .98rem; margin: 10px 0 0; }
	.tool-grid--popular .tool-card p { display: none; }
	.tool-grid--popular .tool-card__icon { width: 36px; height: 36px; }
	.cat-guide li a { flex-direction: column; gap: 2px; }
	.cat-guide li a strong { white-space: normal; }
	.maker__actions .btn { flex: 1 1 100%; justify-content: space-between; }
	.maker__actions .btn--ghost { justify-content: center; }
}

/* 7t. What is my IP --------------------------------------------------------- */
.ip-hero { max-width: 620px; margin: 22px auto 0; text-align: center; }
.ip-addr { font-family: var(--font-display); font-size: clamp(1.7rem, 6vw, 3rem); font-weight: 700; letter-spacing: -.02em; margin: 6px 0; word-break: break-all; line-height: 1.15; }

/* 7s. Calculators ---------------------------------------------------------- */
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.calc-card { margin: 0; }
.calc-card h3 { margin: 0 0 12px; font-size: 1.05rem; }
.calc-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15.5px; }
.calc-line input[type="number"], .calc-line input[type="date"], .calc-line select { min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 16px; }
.calc-line input[type="number"] { width: 120px; }
.calc-out { margin: 14px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--bg); }
.calc-out strong.big { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.15; letter-spacing: -.01em; word-break: break-word; }
.calc-out small { display: block; color: var(--muted); margin-top: 4px; font-size: 13.5px; }
.calc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.calc-stats div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.calc-stats dt { font-size: 13px; color: var(--muted); }
.calc-stats dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; word-break: break-word; }
.uc-cats button[aria-pressed="true"] { background: var(--solid); color: var(--on-solid); border-color: var(--solid); }
.uc-table tr.is-current td { background: #fff4e8; }
.uc-table td:last-child { text-align: right; word-break: break-all; }
.split-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--bg-2); margin: 14px 0 6px; }
.split-bar span { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* 7r. PDF tools ------------------------------------------------------------ */
.pdf-badge { flex: none; display: grid; place-items: center; width: 42px; height: 50px; border-radius: 6px; background: #e5322d; color: #fff; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.pdf-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.pdf-page { position: relative; margin: 0; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); text-align: center; font-size: 13px; color: var(--muted); }
.pdf-page canvas { display: block; max-width: 100%; height: auto; margin: 0 auto 8px; box-shadow: 0 1px 4px rgba(0,0,0,.18); background: #fff; }
.pdf-page.is-off { opacity: .35; }
.pdf-page.is-off canvas { filter: grayscale(1); }
.pdf-page .pdf-page__tools { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
.pdf-page .pdf-page__tools button { padding: 4px 8px; min-height: 30px; font-size: 13px; }
.pdf-page input[type="checkbox"] { position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; accent-color: var(--solid); }
.po-grid .pdf-page { cursor: grab; }
.po-thumb { display: grid; place-items: center; height: 180px; margin-bottom: 8px; }
.po-thumb canvas { max-height: 170px; max-width: 100%; margin: 0; transition: transform .2s; }
.po-grid .pdf-page__tools { flex-wrap: wrap; }
.sg-layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.sg-side { position: sticky; top: 84px; }
.sg-pad { display: block; width: 100%; aspect-ratio: 3 / 1; background: #fff; border: 1px dashed var(--line); border-radius: 12px; touch-action: none; cursor: crosshair; }
.sg-preview { min-height: 80px; margin-top: 10px; padding: 8px; border: 1px dashed var(--line); border-radius: 12px; background: #fff; display: grid; place-items: center; }
.sg-preview canvas { max-width: 100%; max-height: 110px; }
.sg-stage { position: relative; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; touch-action: none; user-select: none; }
.sg-canvas { display: block; width: 100%; height: auto; }
.sg-item { position: absolute; outline: 2px dashed var(--accent); outline-offset: 2px; cursor: move; touch-action: none; }
.sg-item img { display: block; width: 100%; height: 100%; pointer-events: none; }
.sg-item--text { display: flex; align-items: center; white-space: nowrap; overflow: visible; font-family: Helvetica, Arial, sans-serif; line-height: 1; }
.sg-del { position: absolute; top: -14px; right: -14px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: var(--solid); color: var(--on-solid); font-size: 16px; line-height: 24px; cursor: pointer; }
.sg-handle { position: absolute; right: -8px; bottom: -8px; width: 16px; height: 16px; border-radius: 4px; background: var(--accent); cursor: nwse-resize; }
@media (max-width: 900px) {
	.sg-layout { grid-template-columns: 1fr; }
	.sg-side { position: static; }
}
.pdf-progress { height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; margin: 10px 0; }
.pdf-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* 7q. Website generator --------------------------------------------------- */
.sb-layout { grid-template-columns: minmax(0,0.9fr) minmax(0,1.3fr); }
.sb-side { position: sticky; top: 84px; }
.sb-frame-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); margin: 0 auto; transition: max-width .3s; }
.sb-frame-wrap.is-desktop { max-width: 100%; }
.sb-frame-wrap.is-mobile { max-width: 390px; }
.sb-frame-wrap iframe { display: block; width: 100%; height: min(78vh, 760px); border: 0; }
[data-sb-view][aria-pressed="true"] { background: var(--solid); color: var(--on-solid); border-color: var(--solid); }
@media (max-width: 900px) {
	.sb-layout { grid-template-columns: 1fr; }
	.sb-side { position: static; }
}

/* 7p. Speed comparison ---------------------------------------------------- */
.vs-form { display: flex; align-items: center; gap: 8px; max-width: 860px; margin: 0 auto; padding: 8px; background: var(--surface); border-radius: 999px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.vs-form input[type="text"] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 18px; font-size: 16px; outline: none; min-height: 44px; }
.vs-form:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.vs-vs { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--bg-2); }
.vs-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin: 16px 0; }
.vs-card { display: flex; gap: 16px; align-items: center; margin: 0; }
.vs-card.is-winner { box-shadow: inset 0 0 0 2px var(--good), var(--shadow); }
.vs-table th[scope="row"] { font-weight: 500; color: var(--text); font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 14.5px; }
.vs-table td.vs-win { background: #e9f7ee; }
.vs-tick { color: var(--good); font-weight: 700; }
@media (max-width: 700px) {
	.vs-form { flex-direction: column; align-items: stretch; border-radius: var(--radius); }
	.vs-form input[type="text"] { border-bottom: 1px solid var(--line); padding: 0 12px; }
	.vs-vs { align-self: center; }
	.vs-form .btn { justify-content: space-between; }
	.vs-cards { grid-template-columns: 1fr; }
}

/* 7n. Developer utilities ------------------------------------------------- */
.rx-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-family: var(--font-mono); font-size: 15px; padding: 0 12px; }
.rx-input:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.rx-input span { color: var(--muted); }
.form-grid .rx-input input, .rx-input input { flex: 1; min-width: 0; border: 0 !important; background: transparent; min-height: 46px; padding: 0 6px; font: inherit; outline: none; }
.rx-highlight { margin: 0 0 8px; padding: 12px 14px; max-height: 320px; overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.rx-hit { background: #ffd8b0; color: inherit; border-radius: 3px; box-shadow: 0 0 0 1px #f2a35e; }
.rx-hit--alt { background: #cfe3ff; box-shadow: 0 0 0 1px #8bb4ec; }
.rx-empty { display: inline-block; width: 2px; height: 1em; vertical-align: middle; background: var(--poor); }
.form-error { color: var(--poor); font-size: 14px; margin: 8px 0 0; }
.diff-view { font-family: var(--font-mono); font-size: 13px; line-height: 1.55; border: 1px solid var(--line); border-radius: 10px; overflow: auto; max-height: 640px; background: var(--surface); }
.diff-view table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.diff-view td { padding: 1px 8px; vertical-align: top; white-space: pre-wrap; word-break: break-word; }
.diff-view td.ln { width: 3.2em; text-align: right; color: var(--muted); user-select: none; background: var(--bg); padding-right: 6px; }
.diff-view tr.del td.tx { background: #fde8e8; }
.diff-view tr.add td.tx { background: #e3f6e8; }
.diff-view td.tx.del { background: #fde8e8; }
.diff-view td.tx.add { background: #e3f6e8; }
.diff-view del { background: #f7b4b4; text-decoration: none; border-radius: 2px; }
.diff-view ins { background: #9fe0b0; text-decoration: none; border-radius: 2px; }
.diff-view td.sign { width: 1.4em; color: var(--muted); user-select: none; padding: 1px 2px; }
.diff-stats { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14.5px; margin: 0 0 10px; }
.md-preview { padding: 18px 22px; background: #fff; color: #1d1d22; border: 1px solid var(--line); border-radius: var(--radius-sm); min-height: 300px; overflow: auto; line-height: 1.6; }
.md-preview img { max-width: 100%; }
.md-preview pre { background: #f4f2ed; padding: 12px; border-radius: 8px; overflow: auto; }
.md-preview table { border-collapse: collapse; }
.md-preview th, .md-preview td { border: 1px solid #ddd; padding: 4px 8px; }
.md-preview blockquote { margin: 0; padding-left: 14px; border-left: 3px solid #ddd; color: #555; }
.hash-hit { background: #e3f6e8; border-radius: 8px; padding-left: 8px !important; padding-right: 8px !important; }
.ts-now { font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; margin: 4px 0; font-variant-numeric: tabular-nums; }

/* 7m. Website cost calculator -------------------------------------------- */
.cost-layout { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); }
.cost-side { position: sticky; top: 84px; }
.cost-step { border: 0; padding: 0; margin: 0 0 6px; min-width: 0; }
.cost-step legend { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-bottom: 10px; padding: 0; }
.option-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.option-cards--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.option-card { cursor: pointer; position: relative; }
.option-card input { position: absolute; opacity: 0; pointer-events: none; width: 1px !important; height: 1px !important; }
.option-card > span { display: block; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.option-card strong { display: block; font-size: 14.5px; }
.option-card small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.option-card input:checked + span { border-color: var(--solid); box-shadow: inset 0 0 0 1px var(--solid); background: var(--surface); }
.option-cards--check input:checked + span strong::before { content: "✓ "; color: var(--good); }
.option-card input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cost-price { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; margin: 6px 0 4px; line-height: 1.1; }
@media (max-width: 900px) {
	.cost-layout, .cv-layout { grid-template-columns: 1fr; }
	.cost-side { position: static; }
	.option-cards--3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.option-cards { grid-template-columns: 1fr; }
	/* Segmented switches with many options wrap instead of pushing the page wider. */
	.seg { flex-wrap: wrap; max-width: 100%; border-radius: 18px; }
}

.cv-layout { grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); }
.cv-layout .qr-preview { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; }
.cv-sheet { background: #fff; color: #1d1d22; font-family: Inter, Arial, sans-serif; font-size: 12.5px; line-height: 1.5; border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); overflow: hidden; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cv-sheet h1 { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; }
.cv-sheet h2 { margin: 18px 0 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.cv-sheet p { margin: 0 0 6px; }
.cv-sheet ul { margin: 4px 0 0; padding-left: 16px; }
.cv-sheet li { margin-bottom: 3px; }
.cv-job { margin-bottom: 12px; break-inside: avoid; }
.cv-job__head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cv-job__head strong { font-size: 13.5px; }
.cv-job__when { color: #666; font-size: 11.5px; white-space: nowrap; }
.cv-job__where { color: #555; }
.cv-modern { display: grid; grid-template-columns: 32% 1fr; min-height: 640px; }
.cv-modern aside { color: #fff; padding: 26px 20px; }
.cv-modern aside h2 { color: rgba(255,255,255,.75); margin-top: 20px; }
.cv-modern aside a, .cv-modern aside p { color: #fff; word-break: break-word; }
.cv-modern main { padding: 26px 26px; }
.cv-modern .cv-title { font-size: 14px; font-weight: 600; margin: 4px 0 12px; }
.cv-photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 14px; border: 3px solid rgba(255,255,255,.4); }
.cv-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.cv-chips span { padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 11.5px; }
.cv-classic { padding: 30px 34px; font-family: Georgia, "Times New Roman", serif; }
.cv-classic header { text-align: center; padding-bottom: 12px; border-bottom: 2px solid currentColor; }
.cv-classic h1 { font-size: 28px; font-weight: 700; }
.cv-classic .cv-contact { font-family: Inter, Arial, sans-serif; font-size: 11.5px; color: #555; margin-top: 6px; }
.cv-classic h2 { border-bottom: 1px solid #ddd; padding-bottom: 3px; font-family: Inter, Arial, sans-serif; }
.cv-classic .cv-photo { width: 84px; height: 84px; border-color: #eee; margin-bottom: 10px; }
.cv-minimal { padding: 30px 34px; }
.cv-minimal h1 { font-size: 24px; }
.cv-minimal h2 { color: #1d1d22 !important; border-bottom: 1px solid #1d1d22; padding-bottom: 2px; }
.cv-minimal .cv-contact { color: #333; margin-top: 4px; }
/* Screen only: printed pages are narrow too and must keep the two-column Modern layout. */
@media screen and (max-width: 560px) {
	.cv-modern { grid-template-columns: 1fr; min-height: 0; }
	.cv-classic, .cv-minimal { padding: 22px 18px; }
}

/* 7j. Device previews ---------------------------------------------------- */
.phone-frame { width: min(100%, 290px); margin: 0 auto; padding: 12px; border-radius: 40px; background: #16161b; box-shadow: var(--shadow), inset 0 0 0 2px #2a2a31; }
.phone-frame img { display: block; width: 100%; border-radius: 28px; background: #fff; }
.laptop-frame { max-width: 640px; margin: 0 auto; }
.laptop-frame .screen { padding: 12px 12px 14px; background: #16161b; border-radius: 16px 16px 4px 4px; }
.laptop-frame img { display: block; width: 100%; border-radius: 4px; background: #fff; }
.laptop-frame .base { height: 14px; margin: 0 -6%; background: linear-gradient(#cfcfd4, #9a9aa2); border-radius: 0 0 14px 14px; }
.shots { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: end; }

/* 7y. New tools: passport photo, spin wheel, typing test, signature, barcode, GPA, speech */
.pp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 16px; align-items: start; }
.pp .panel { margin: 0; }
.pp-stage { display: grid; justify-items: center; background: var(--bg-2); }
.pp-frame { width: min(100%, 380px); box-shadow: 0 20px 40px -20px rgba(16, 16, 20, .5); background: #fff; }
.pp-frame canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.pp-frame canvas:active { cursor: grabbing; }
.pp-side { display: grid; gap: 14px; }
.pp-side select, .pp-side input[type="number"] { width: 100%; }
.pp-side input[type="range"] { width: 100%; }
.pp-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pp-custom input { width: 100% !important; }
.pp-actions { display: grid; gap: 8px; }
.pp-actions .btn { justify-content: center; }

.wheel-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.wheel-layout .panel { margin: 0; }
.wheel-box { position: relative; width: min(100%, 520px); margin: 0 auto; aspect-ratio: 1; }
.wheel-box canvas { width: 100%; height: 100%; display: block; }
.wheel-pointer { position: absolute; top: 50%; right: -6px; width: 0; height: 0; transform: translateY(-50%); border-top: 16px solid transparent; border-bottom: 16px solid transparent; border-right: 34px solid var(--text); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); z-index: 2; }
.wheel-spin { position: absolute; inset: 0; margin: auto; width: 22%; height: 22%; border-radius: 50%; border: 4px solid #fff; background: var(--ink); color: #fff; font: 700 clamp(.85rem, 2.6vw, 1.15rem) var(--font-display); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6); z-index: 2; }
.wheel-spin:disabled { opacity: .85; cursor: default; }
.wheel-entries textarea { width: 100%; min-height: 260px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font-size: 15px; line-height: 1.6; resize: vertical; }
.wheel-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wheel-winner { font: 700 clamp(1.8rem, 6vw, 3rem)/1.1 var(--font-display); background: linear-gradient(100deg, #ff7a18, #e0457b 60%, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; }

.tt-words { position: relative; height: 7.2em; overflow: hidden; padding: 18px 20px; font: 500 clamp(1.15rem, 3vw, 1.5rem)/2.4em var(--font-mono); border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); user-select: none; }
.tt-words__in { transition: transform .2s var(--ease); }
.tt-words span { padding: 2px 3px; border-radius: 5px; color: var(--muted); }
.tt-words span.is-cur { background: rgba(253, 152, 62, .25); color: var(--text); }
.tt-words span.is-ok { color: var(--good); }
.tt-words span.is-bad { color: var(--poor); text-decoration: underline; }
.tt-words span.is-cur.is-typo { background: rgba(209, 50, 31, .25); }
.tt-input { width: 100%; margin-top: 12px; min-height: 56px; padding: 0 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font: 500 1.2rem var(--font-mono); outline: none; }
.tt-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(253, 152, 62, .18); }

.sig-tabs { margin-bottom: 14px; }
.sig-pad { position: relative; border: 1px dashed var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.sig-pad canvas { display: block; width: 100%; aspect-ratio: 5 / 2; touch-action: none; cursor: crosshair; }
.sig-pad::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 24%; border-bottom: 1px solid #d8d4cc; pointer-events: none; }
.sig-type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 12px; }
.sig-type-grid button { min-height: 86px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: #1b1b1f; font-size: 30px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sig-type-grid button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(253, 152, 62, .3); }
.sig-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end; margin-top: 14px; }
.sig-row input[type="text"] { min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font-size: 16px; min-width: min(280px, 100%); }
.swatches { display: flex; gap: 8px; }
.swatches button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); padding: 0; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }

.bc-preview { display: grid; place-items: center; min-height: 220px; padding: 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); overflow-x: auto; }
.bc-preview svg { max-width: 100%; height: auto; }
.bc-form { display: grid; gap: 14px; }
.bc-form input[type="text"], .bc-form select { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font-size: 16px; }
.bc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.bc-grid .panel { margin: 0; }

.gpa-table { width: 100%; border-collapse: collapse; }
.gpa-table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 500; padding: 0 6px 8px; }
.gpa-table td { padding: 4px 6px; }
.gpa-table input, .gpa-table select { width: 100%; min-height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 15px; }
.gpa-table td:last-child { width: 40px; }
.gpa-result { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.gpa-result strong { font: 700 2.2rem var(--font-display); }
.wm-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.wm-layout .panel { margin: 0; }
.wm-preview { display: grid; place-items: center; min-height: 280px; border-radius: 14px; background: var(--bg-2); overflow: hidden; }
.wm-preview canvas { display: block; max-width: 100%; height: auto; }
.wm-options { display: grid; gap: 14px; }
.wm-options input[type="text"], .wm-options select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font-size: 15px; }
.wm-options input[type="range"] { width: 100%; }
.wm-pos { display: grid; grid-template-columns: repeat(3, 44px); gap: 6px; margin-bottom: 8px; }
.wm-pos input { position: absolute; opacity: 0; pointer-events: none; }
.wm-pos span { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; font-size: 18px; }
.wm-pos input:checked + span { background: var(--solid); color: var(--on-solid); border-color: var(--solid); }
.wm-pos input:focus-visible + span { outline: 2px solid var(--accent); }
@media (max-width: 900px) { .wm-layout { grid-template-columns: minmax(0, 1fr); } }
.bmi-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.bmi-inputs input { width: 100% !important; min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font-size: 18px; }
.bmi-result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 18px; text-align: center; }
.bmi-result div { padding: 14px 10px; border-radius: 16px; background: var(--bg); }
.bmi-result small { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bmi-result strong { display: block; font: 700 clamp(1.3rem, 4vw, 2rem) var(--font-display); margin-top: 4px; }
.bmi-u { color: #2563eb; } .bmi-n { color: var(--good); } .bmi-o { color: var(--avg); } .bmi-b { color: var(--poor); }
[data-theme="dark"] .bmi-u { color: #60a5fa; }
.bmi-bar { position: relative; display: flex; height: 30px; border-radius: 999px; overflow: visible; font: 600 12px var(--font-body); color: #fff; }
.bmi-bar span { display: grid; place-items: center; white-space: nowrap; overflow: hidden; }
.bmi-bar span:first-child { border-radius: 999px 0 0 999px; } .bmi-bar span:nth-child(4) { border-radius: 0 999px 999px 0; }
.bmi-bar .u { background: #60a5fa; } .bmi-bar .n { background: #22c55e; } .bmi-bar .o { background: #f59e0b; } .bmi-bar .b { background: #ef4444; }
.bmi-bar i { position: absolute; top: -7px; width: 4px; height: 44px; margin-left: -2px; border-radius: 4px; background: var(--text); box-shadow: 0 0 0 3px var(--surface); transition: left .3s var(--ease); }
.bmi-scale { position: relative; height: 20px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.bmi-scale span { position: absolute; left: 0; transform: translateX(-50%); }
.bmi-scale span:first-child { transform: none; } .bmi-scale span:last-child { transform: translateX(-100%); }
.bmi-note { margin: 12px 0 0; font-weight: 500; }
.cgpa-chart { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; margin: 0 0 1.4em; }
.cgpa-chart span { padding: 7px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.cgpa-chart b { font-family: var(--font-display); }

.tts-text { width: 100%; min-height: 220px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); font-size: 17px; line-height: 1.6; resize: vertical; }
.tts-text:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(253, 152, 62, .18); }
.tts-live { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); line-height: 1.7; max-height: 200px; overflow: auto; }
.tts-live mark { background: rgba(253, 152, 62, .45); color: inherit; border-radius: 4px; padding: 0 2px; }
.tts-controls { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-end; margin-top: 14px; }
.tts-controls select { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); max-width: 100%; }

@media (max-width: 900px) {
	.pp, .wheel-layout, .bc-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
	.gpa-table th:nth-child(1), .gpa-table td:nth-child(1) { width: 38%; }
}

/* 7x. Contact page --------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.contact-form { display: grid; gap: 16px; }
.contact-form h2 { margin: 0; font-size: 1.4rem; }
.contact-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form select, .contact-form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.contact-form textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.contact-form :is(input, select, textarea):focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(253, 152, 62, .18); }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form .form-note { margin: 0; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.contact-msg { margin: 0; font-weight: 500; font-size: 15px; }
.contact-msg.is-ok { color: var(--good); }
.contact-msg.is-error { color: var(--poor); }
.contact-side { display: grid; gap: 16px; }
.contact-side .panel { margin: 0; }
.contact-side h3 { margin: 14px 0 4px; }
.contact-side p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .contact-row { grid-template-columns: minmax(0, 1fr); } }

/* 7w. Games ---------------------------------------------------------------- */
.c-indigo { background: linear-gradient(135deg, #a5b4fc, #4f46e5); }
.game { position: relative; max-width: 520px; margin: 0 auto; }
.game--wide { max-width: 980px; }
.game-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.game-stats { display: flex; gap: 8px; }
.game-stat { min-width: 76px; padding: 6px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: center; box-shadow: var(--card-shadow); line-height: 1.3; }
.game-stat small { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.game-stat b { font-family: var(--font-display); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.game-options { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 14px; }
.game-help { text-align: center; color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.game-help kbd { font-family: var(--font-mono); font-size: 12px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.game-board { position: relative; border-radius: 20px; }
.game-overlay { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; border-radius: inherit; background: var(--glass); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: game-in .3s var(--ease); }
.game-overlay h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.game-overlay p { margin: 0; color: var(--muted); }
@keyframes game-in { from { opacity: 0; transform: scale(.97); } }
@keyframes game-pop { 0% { transform: scale(0); } 70% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* 2048: tiles are absolutely placed by --x/--y so moves can animate. */
.g2048 { --gap: clamp(8px, 2.4vw, 14px); position: relative; aspect-ratio: 1; padding: var(--gap); background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; touch-action: none; user-select: none; box-shadow: inset 0 2px 10px rgba(16, 16, 20, .06); }
.g2048__grid { position: absolute; inset: var(--gap); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.g2048__grid span { border-radius: 12px; background: var(--surface); opacity: .7; }
.g2048__tile { position: absolute; left: var(--gap); top: var(--gap); width: calc((100% - 5 * var(--gap)) / 4); height: calc((100% - 5 * var(--gap)) / 4); transform: translate(calc(var(--x) * (100% + var(--gap))), calc(var(--y) * (100% + var(--gap)))); transition: transform .11s ease-in-out; z-index: 1; }
.g2048__tile b { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 12px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 7vw, 2.6rem); background: #f5efe6; color: #5d5a54; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .08), 0 6px 14px -8px rgba(16, 16, 20, .4); }
.g2048__tile.is-new b { animation: game-pop .2s ease-out; }
.g2048__tile.is-merged { z-index: 2; }
.g2048__tile.is-merged b { animation: game-pop .2s ease-out; }
.g2048__tile[data-v="4"] b { background: #f3e1c4; }
.g2048__tile[data-v="8"] b { background: #ffc58f; color: #fff; }
.g2048__tile[data-v="16"] b { background: #ffa860; color: #fff; }
.g2048__tile[data-v="32"] b { background: #fd8a3e; color: #fff; }
.g2048__tile[data-v="64"] b { background: #f56a2a; color: #fff; }
.g2048__tile[data-v="128"] b { background: #f7c948; color: #fff; font-size: clamp(1.3rem, 6vw, 2.2rem); }
.g2048__tile[data-v="256"] b { background: #f2b51f; color: #fff; font-size: clamp(1.3rem, 6vw, 2.2rem); }
.g2048__tile[data-v="512"] b { background: #e0457b; color: #fff; font-size: clamp(1.3rem, 6vw, 2.2rem); }
.g2048__tile[data-v="1024"] b { background: #b44ad9; color: #fff; font-size: clamp(1.05rem, 5vw, 1.8rem); }
.g2048__tile[data-v="2048"] b { background: linear-gradient(135deg, #fd983e, #e0457b 55%, #8b5cf6); color: #fff; font-size: clamp(1.05rem, 5vw, 1.8rem); box-shadow: 0 0 30px rgba(253, 152, 62, .6); }
.g2048__tile.is-big b { background: #101014; color: #fff; font-size: clamp(.9rem, 4.2vw, 1.5rem); }

/* Snake */
.snake-canvas { display: block; width: 100%; aspect-ratio: 1; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--card-shadow); touch-action: none; }
.dpad { display: grid; grid-template-columns: repeat(3, 64px); grid-template-rows: repeat(2, 56px); gap: 8px; justify-content: center; margin-top: 16px; }
.dpad button { border: 1px solid var(--line); border-radius: 16px; background: var(--card-grad); box-shadow: var(--card-shadow); font-size: 22px; color: var(--text); touch-action: manipulation; }
.dpad button:active { transform: scale(.94); background: var(--bg-2); }
.dpad [data-dir="up"] { grid-column: 2; }
.dpad [data-dir="left"] { grid-column: 1; grid-row: 2; }
.dpad [data-dir="down"] { grid-column: 2; grid-row: 2; }
.dpad [data-dir="right"] { grid-column: 3; grid-row: 2; }
@media (hover: hover) and (pointer: fine) { .dpad { display: none; } }

/* Tic Tac Toe */
.ttt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; aspect-ratio: 1; padding: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; }
.ttt button { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 16px; background: var(--card-grad); box-shadow: var(--card-shadow); padding: 0; font: 700 clamp(3rem, 15vw, 5.2rem)/1 var(--font-display); transition: transform .15s, background .2s; }
.ttt button:not(:disabled):hover { transform: translateY(-2px); }
.ttt button:disabled { cursor: default; }
.ttt .is-x { color: transparent; background-image: linear-gradient(135deg, #ff7a18, #e0457b); -webkit-background-clip: text; background-clip: text; }
.ttt .is-x, .ttt .is-o { animation: game-pop .2s ease-out; }
.ttt button.is-x { background-color: var(--surface); }
.ttt .is-o { color: #7c3aed; }
[data-theme="dark"] .ttt .is-o { color: #a78bfa; }
.ttt button.is-win { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(253, 152, 62, .35); }
.ttt-status { text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin: 0 0 12px; min-height: 1.6em; }

/* Memory Match: cards flip in 3D. */
.mem { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: clamp(6px, 1.6vw, 12px); }
.mem-card { aspect-ratio: 3 / 4; padding: 0; border: 0; background: none; perspective: 700px; }
.mem-card__in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .4s var(--ease); }
.mem-card.is-up .mem-card__in, .mem-card.is-done .mem-card__in { transform: rotateY(180deg); }
.mem-card__face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.mem-card__back { background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .35), transparent 40%), linear-gradient(135deg, #fd983e, #e0457b 60%, #8b5cf6); box-shadow: inset 0 -4px 10px rgba(0, 0, 0, .18), 0 10px 20px -12px rgba(16, 16, 20, .5); color: rgba(255, 255, 255, .85); font: 700 clamp(1.1rem, 4vw, 1.7rem) var(--font-display); }
.mem-card__front { transform: rotateY(180deg); background: var(--surface); border: 1px solid var(--line); font-size: clamp(1.6rem, 7vw, 2.8rem); box-shadow: var(--card-shadow); }
.mem-card.is-done .mem-card__front { border-color: var(--good); box-shadow: 0 0 0 2px rgba(12, 138, 74, .25); }
.mem--6 .mem-card__front { font-size: clamp(1.2rem, 5vw, 2rem); }

/* Minesweeper */
.ms-scroll { overflow-x: auto; padding: 4px 2px 10px; -webkit-overflow-scrolling: touch; }
.ms { --cell: 32px; display: grid; grid-template-columns: repeat(var(--cols), var(--cell)); gap: 3px; width: max-content; margin: 0 auto; padding: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ms button { width: var(--cell); height: var(--cell); padding: 0; border: 0; border-radius: 7px; background: var(--card-grad); box-shadow: inset 0 -3px 0 rgba(16, 16, 20, .12), 0 1px 2px rgba(16, 16, 20, .12); font: 700 calc(var(--cell) * .5) / 1 var(--font-display); touch-action: manipulation; }
[data-theme="dark"] .ms button { background: linear-gradient(180deg, #3d3d49, #31313b); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -3px 0 rgba(0, 0, 0, .35); }
[data-theme="dark"] .ms button.is-open { background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px var(--line); }
.ms button:not(.is-open):hover { filter: brightness(1.06); }
.ms button.is-open { background: transparent; box-shadow: inset 0 0 0 1px var(--line); cursor: default; }
.ms button.is-boom { background: var(--poor); }
.ms .n1 { color: #2563eb; } .ms .n2 { color: #0c8a4a; } .ms .n3 { color: #d1321f; } .ms .n4 { color: #1e3a8a; }
.ms .n5 { color: #9a3412; } .ms .n6 { color: #0d9488; } .ms .n7 { color: #101014; } .ms .n8 { color: #6b7280; }
[data-theme="dark"] .ms .n1 { color: #60a5fa; } [data-theme="dark"] .ms .n2 { color: #34d399; } [data-theme="dark"] .ms .n3 { color: #f87171; } [data-theme="dark"] .ms .n4 { color: #a5b4fc; }
[data-theme="dark"] .ms .n5 { color: #fb923c; } [data-theme="dark"] .ms .n6 { color: #5eead4; } [data-theme="dark"] .ms .n7 { color: #f1efe9; } [data-theme="dark"] .ms .n8 { color: #a1a1aa; }
.ms-board { width: max-content; margin: 0 auto; border-radius: 16px; }
.flag-toggle[aria-pressed="true"] { background: var(--accent); color: #101014; border-color: var(--accent); }

/* Sudoku: thick lines between the 3x3 boxes. */
.sdk { display: grid; grid-template-columns: repeat(9, 1fr); aspect-ratio: 1; border: 2px solid var(--text); border-radius: 12px; overflow: hidden; background: var(--surface); user-select: none; }
.sdk button { position: relative; padding: 0; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; font: 600 clamp(1.05rem, 4.6vw, 1.7rem) / 1 var(--font-display); color: var(--accent-ink); }
.sdk button:nth-child(9n) { border-right: 0; }
.sdk button:nth-child(9n + 3), .sdk button:nth-child(9n + 6) { border-right: 2px solid var(--text); }
.sdk button:nth-child(n + 19):nth-child(-n + 27), .sdk button:nth-child(n + 46):nth-child(-n + 54) { border-bottom: 2px solid var(--text); }
.sdk button:nth-child(n + 73) { border-bottom: 0; }
.sdk button.is-given { color: var(--text); font-weight: 700; }
.sdk button.is-peer { background: var(--bg); }
.sdk button.is-same { background: rgba(253, 152, 62, .2); }
.sdk button.is-sel { background: rgba(253, 152, 62, .38); }
.sdk button.is-bad { color: var(--poor); }
.sdk button.is-bad::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 12%; height: 2px; border-radius: 2px; background: var(--poor); }
.sdk-notes { position: absolute; inset: 2px; display: grid; grid-template-columns: repeat(3, 1fr); font: 500 clamp(.5rem, 2vw, .72rem) / 1 var(--font-body); color: var(--muted); }
.sdk-notes i { display: grid; place-items: center; font-style: normal; }
.sdk-pad { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; margin-top: 14px; }
.sdk-pad button { aspect-ratio: 1 / 1.15; border: 1px solid var(--line); border-radius: 12px; background: var(--card-grad); box-shadow: var(--card-shadow); font: 600 clamp(1.1rem, 4.5vw, 1.6rem) var(--font-display); padding: 0; touch-action: manipulation; }
.sdk-pad button:disabled { opacity: .3; }
.sdk-tools { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sdk-tools button[aria-pressed="true"] { background: var(--solid); color: var(--on-solid); border-color: var(--solid); }

@media (max-width: 600px) {
	.game-stat { min-width: 64px; padding: 5px 10px; }
	.game-stat b { font-size: 1.05rem; }
	.ms { --cell: 30px; gap: 2px; padding: 8px; }
	.dpad { grid-template-columns: repeat(3, 72px); grid-template-rows: repeat(2, 60px); }
}

/* 8. Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
	.primary-nav { display: none; }
	.menu-toggle { display: grid; }
	/* Phones and tablets: search hides behind an icon and opens over the whole header row. */
	.site-header__inner { gap: 10px; }
	.brand { margin-right: auto; }
	.search-toggle { display: grid; }
	.header-search { display: none; }
	.site-header.search-open .header-search { display: block; position: absolute; left: var(--gutter); right: var(--gutter); top: 50%; transform: translateY(-50%); max-width: none; z-index: 5; }
	.site-header.search-open .search-close { display: grid; place-items: center; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--bg-2); font-size: 22px; line-height: 1; }
	.site-header.search-open .search-kbd { display: none; }
	.site-header.search-open .brand, .site-header.search-open .search-toggle, .site-header.search-open .menu-toggle, .site-header.search-open .theme-toggle { visibility: hidden; }
	.site-header.search-open .search-results small { max-width: 220px; }
	/* On small screens the menu becomes a full-height drawer under the header. */
	/* The header's backdrop-filter makes it the containing block, so set the height explicitly
	   instead of relying on bottom: 0 against the viewport. */
	.site-menu { position: absolute; top: 100%; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); max-height: none; box-shadow: none; overscroll-behavior: contain; }
	.site-menu__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 26px; }
	.site-menu__quick a { padding: 12px 14px; border-radius: 12px; background: var(--bg); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 16px; }
	.site-menu__quick a:last-child { background: var(--accent); }
	/* Phones and tablets: categories become tap-to-open rows */
	.menu-panel { display: none; }
	.menu-accordion { display: block; }
	.menu-accordion details { border-bottom: 1px solid var(--line); }
	.menu-accordion summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 15px 2px; font-family: var(--font-display); font-weight: 600; font-size: 17px; }
	.menu-accordion summary::-webkit-details-marker { display: none; }
	.menu-accordion summary span { font-family: var(--font-mono); font-size: 12px; color: var(--muted); background: var(--bg-2); border-radius: 999px; padding: 1px 8px; }
	.menu-accordion summary::after { content: "+"; margin-left: auto; font-size: 22px; line-height: 1; color: var(--accent-ink); }
	.menu-accordion details[open] summary::after { content: "\2212"; }
	.menu-accordion ul { padding: 0 0 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
	.menu-accordion .site-menu__all { margin-top: 4px; padding: 7px 0; }
	.footer-cta { grid-template-columns: 1fr; }
	.footer-cta__actions { justify-content: flex-start; }
	.footer-main { grid-template-columns: 1fr; }
	.footer-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
	.result-grid { grid-template-columns: 1fr; }
	.metrics { grid-template-columns: repeat(2, 1fr); }
	.cta-card { grid-template-columns: 1fr; }
	.qr-layout { grid-template-columns: 1fr; }
	.cv-layout .qr-preview { position: static; max-height: none; }
	.theme-card { grid-template-columns: 1fr; }
	.preview-grid { grid-template-columns: 1fr; }
	.result-grid.json-grid { grid-template-columns: 1fr; }
	.shots { grid-template-columns: 1fr; }
	.audit-head { grid-template-columns: 1fr; justify-items: center; }
	.audit-head > div { width: 100%; }
	.form-grid .row-3, .form-grid .row-2 { grid-template-columns: 1fr !important; }
	.repeat-row { grid-template-columns: 1fr auto; }
	.repeat-row > :nth-child(2):not(:last-child) { grid-column: 1; }
	.link-table thead { display: none; }
	.link-table tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line); padding: 6px 0; }
	.link-table td { border: 0; padding: 4px 6px; }
	.qr-preview { position: static; }
}
@media (max-width: 600px) {
	.brand-mark { width: 32px; height: 32px; }
	.brand-name { font-size: 19px; }
	.site-header__inner { gap: 8px; }
	.theme-toggle, .search-toggle, .menu-toggle { width: 40px; height: 40px; }
	.scores { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
	.check-form { flex-direction: column; border-radius: var(--radius); }
	.check-form input[type="text"] { min-height: 52px; padding: 0 12px; }
	.check-form .btn { justify-content: space-between; }
	.lead-form .row { flex-direction: column; }
	.lead-form input[type="email"] { min-height: 52px; }
	.header-hire { display: none; }
	.inv-parties { grid-template-columns: 1fr; }
	.inv-meta { text-align: left; }
	.item-row { grid-template-columns: 1fr 1fr 1fr auto; }
	.item-row > :first-child { grid-column: 1 / -1; }
	/* Phones: each tool group is a tap-to-open row, so the footer stays short. */
	.footer-main { gap: 24px; padding-block: 32px 16px; }
	.footer-tools { grid-template-columns: 1fr; gap: 0; }
	.footer-cta__actions .btn { flex: 1 1 100%; }
	.footer-cta__actions .btn:has(.btn__icon) { justify-content: space-between; }
	.footer-tools details { border-bottom: 1px solid var(--line-dark); }
	.footer-tools summary { pointer-events: auto; cursor: pointer; padding: 14px 0; }
	.footer-tools summary h3 { margin: 0; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: #e8e6e1; }
	.footer-tools summary h3::after { content: "+"; font-size: 20px; line-height: 1; color: var(--accent); }
	.footer-tools details[open] summary h3::after { content: "\2212"; }
	.footer-count { display: inline-block; margin-left: auto; margin-right: 14px; color: var(--muted-on-dark); }
	.footer-tools ul { padding-bottom: 14px; }
	.footer-tools a { font-size: 14.5px; }
	.footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
	.metrics { grid-template-columns: 1fr 1fr; }
	.metric dd { font-size: 1.3rem; }
	.audit-form { grid-template-columns: 1fr; border-radius: var(--radius); }
	.audit-form input + input { border-left: 0; border-top: 1px solid var(--line); }
	.audit-form .btn { justify-content: space-between; margin-top: 6px; }
	.cat-bars li { grid-template-columns: 105px 1fr 40px; }
	.options { padding: 16px; }
	.field input[type="range"] { width: 100%; }
	.field { flex: 1 1 140px; }
	.file-row { flex-wrap: wrap; }
	.file-row .file-info { flex-basis: calc(100% - 120px); }
	.file-row .btn { margin-left: 66px; }
}

/* 9. Dark mode fixes ----------------------------------------------------- */
/* Hard-coded light colours that need a dark version. Documents, previews of other sites and
   image stages stay white on purpose: they show what the real output will look like. */
[data-theme="dark"] .h3d-card, [data-theme="dark"] .h3d-chip { background: rgba(30, 30, 38, .92); border-color: var(--line); }
[data-theme="dark"] .h3d-ring b { background: var(--surface); }
[data-theme="dark"] .h3d-card__bar span { background: #3a3a44; }
[data-theme="dark"] .h3d-glow, [data-theme="dark"] .tool-hero::before, [data-theme="dark"] .tool-hero::after { opacity: .2; }
[data-theme="dark"] .c-ink { background: linear-gradient(135deg, #8b8b96, #3f3f46); }
[data-theme="dark"] .dropzone:hover, [data-theme="dark"] .dropzone.is-over, [data-theme="dark"] .dropzone:focus-within { background: rgba(253, 152, 62, .07); }
[data-theme="dark"] .uc-table tr.is-current td { background: rgba(253, 152, 62, .14); }
[data-theme="dark"] .serp, [data-theme="dark"] .xc, [data-theme="dark"] .li { background: #fff; }
[data-theme="dark"] .serp { padding: 16px; border-radius: 12px; }
[data-theme="dark"] .menu-toggle { background: var(--solid); }
[data-theme="dark"] .menu-toggle span { background: var(--on-solid); }
[data-theme="dark"] .btn--dark:hover { box-shadow: 0 14px 30px -12px rgba(255, 255, 255, .25); }
[data-theme="dark"] .site-footer { border-top: 1px solid var(--line); }
[data-theme="dark"] .cta-card, [data-theme="dark"] .h3d-stats, [data-theme="dark"] .h3d-maker, [data-theme="dark"] .maker { background-color: #16161c; border: 1px solid var(--line); }
[data-theme="dark"] .why-card__tick, [data-theme="dark"] .check-list .mark { color: #0d0d11; }
[data-theme="dark"] .h3d-merge { color: #101014; }
[data-theme="dark"] .rx-hit { background: rgba(253, 152, 62, .35); box-shadow: 0 0 0 1px rgba(253, 152, 62, .7); }
[data-theme="dark"] .rx-hit--alt { background: rgba(96, 165, 250, .3); box-shadow: 0 0 0 1px rgba(96, 165, 250, .7); }
[data-theme="dark"] .diff-view tr.del td.tx, [data-theme="dark"] .diff-view td.tx.del { background: rgba(248, 113, 113, .14); }
[data-theme="dark"] .diff-view tr.add td.tx, [data-theme="dark"] .diff-view td.tx.add { background: rgba(52, 211, 153, .12); }
[data-theme="dark"] .diff-view del { background: rgba(248, 113, 113, .4); }
[data-theme="dark"] .diff-view ins { background: rgba(52, 211, 153, .35); }
[data-theme="dark"] .legal-note { background: rgba(253, 152, 62, .12); color: #ffc58f; }
