/* ==========================================================================
   BinaryBeez Tools – stylesheet
   Brand: honey #FFB800 / ink #14142B · Sora (headings) · Plus Jakarta Sans (text)
   ========================================================================== */

:root {
	--bg: #ffffff;
	--bg-2: #f8fafc;
	--surface: #ffffff;
	--surface-2: #f8fafc;
	--surface-3: #f1f5f9;
	--ink: #0f172a;
	--ink-2: #334155;
	--muted: #64748b;
	--line: #e2e8f0;
	--line-2: #cbd5e1;
	--honey: #006342;
	--honey-2: #006342;
	--honey-soft: #ecfdf5;
	--honey-ink: #006342;
	--violet: #0284c7;
	--coral: #e11d48;
	--sky: #0284c7;
	--mint: #006342;
	--indigo: #4338ca;
	--good: #006342;
	--warn: #d97706;
	--bad: #dc2626;
	--good-soft: #ecfdf5;
	--warn-soft: #fffbeb;
	--bad-soft: #fef2f2;
	--acc: #006342;
	--acc-soft: #ecfdf5;
	--radius: 12px;
	--radius-sm: 8px;
	--shadow-sm: 0 1px 3px rgba(15, 23, 42, .06);
	--shadow: 0 4px 6px -1px rgba(15, 23, 42, .07), 0 2px 4px -2px rgba(15, 23, 42, .05);
	--shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, .08), 0 4px 6px -4px rgba(15, 23, 42, .04);
	--font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--font-head: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #ffffff; --bg-2: #f8fafc; --surface: #ffffff; --surface-2: #f8fafc; --surface-3: #f1f5f9;
		--ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0; --line-2: #cbd5e1;
		--honey-soft: #ecfdf5; --honey-ink: #006342;
		color-scheme: light;
	}
}
:root[data-theme="dark"] {
	--bg: #ffffff; --bg-2: #f8fafc; --surface: #ffffff; --surface-2: #f8fafc; --surface-3: #f1f5f9;
	--ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0; --line-2: #cbd5e1;
	--honey-soft: #ecfdf5; --honey-ink: #006342;
	color-scheme: light;
}

.c-violet { --acc: var(--violet); --acc-soft: color-mix(in srgb, var(--violet) 14%, var(--surface)); }
.c-coral  { --acc: var(--coral);  --acc-soft: color-mix(in srgb, var(--coral) 14%, var(--surface)); }
.c-sky    { --acc: var(--sky);    --acc-soft: color-mix(in srgb, var(--sky) 14%, var(--surface)); }
.c-mint   { --acc: var(--mint);   --acc-soft: color-mix(in srgb, var(--mint) 14%, var(--surface)); }
.c-honey  { --acc: var(--honey-2); --acc-soft: var(--honey-soft); }
.c-indigo { --acc: var(--indigo); --acc-soft: color-mix(in srgb, var(--indigo) 14%, var(--surface)); }

*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute must always win over component display rules (e.g. display:flex) */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font: 400 16px/1.6 var(--font);
	-webkit-font-smoothing: antialiased; overflow-x: hidden;
	position: relative; /* lets overflow-x clip absolutely-positioned decorations on mobile browsers */
}
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--honey) 70%, transparent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: inline; }
:root[data-theme="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .only-dark { display: inline; }
	:root:not([data-theme="light"]) .only-light { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent;
	font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-primary { background: #006342; color: #ffffff !important; box-shadow: 0 4px 12px rgba(0, 99, 66, .25); border-radius: 8px; }
.btn-primary:hover { background: #004d33; color: #ffffff !important; box-shadow: 0 6px 18px rgba(0, 99, 66, .35); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-acc { background: #006342; color: #ffffff !important; border-radius: 8px; }
.btn-acc:hover { background: #004d33; color: #ffffff !important; filter: none; transform: translateY(-1px); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.done { background: var(--good) !important; color: #fff !important; border-color: var(--good) !important; }
.icon-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
	border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink);
}
.icon-btn:hover { border-color: var(--ink-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Header ---------- */
.top {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 86%, transparent);
	backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand-txt { font-family: var(--font-head); font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.brand-txt b { color: var(--honey-2); }
.brand-txt em { font-style: normal; font-weight: 600; font-size: 12px; letter-spacing: .02em; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: var(--honey); margin-left: 4px; vertical-align: 3px; }
.top-nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.top-nav > a, .dd-btn {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px;
	text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--ink-2);
}
.top-nav > a:hover, .dd-btn:hover, .top-nav .on { background: var(--surface-3); color: var(--ink); }
.dd { position: relative; }
.dd-btn .i { width: 14px; height: 14px; opacity: .6; }
.dd-menu {
	position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px; padding: 8px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.dd:hover .dd-menu, .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 14.5px; }
.dd-menu a:hover { background: var(--surface-2); }
.mini-ico { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--acc-soft); color: var(--acc); }
.mini-ico .i { width: 16px; height: 16px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn-back { background: #14142B; color: #fff; border-color: #3A3A5A; padding: 9px 16px 9px 12px; font-size: 14px; }
.btn-back b { color: var(--honey); }
.btn-back:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(20, 20, 43, .6); }
.btn-back .i { transition: transform .2s; }
.btn-back:hover .i { transform: translateX(-3px); }
.nav-toggle { display: none; }

@media (max-width: 1180px) {
	.nav-toggle { display: inline-grid; }
	.top-nav {
		position: fixed; top: 68px; left: 0; right: 0; bottom: 0; margin: 0; padding: 16px 20px 40px;
		flex-direction: column; align-items: stretch; gap: 4px; overflow-y: auto;
		background: var(--bg); border-top: 1px solid var(--line);
		/* closed menu fades/drops in place – never parked off-screen (an off-screen fixed panel widens the page on phones) */
		opacity: 0; transform: translateY(-10px); visibility: hidden; pointer-events: none;
		transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
	}
	.top-nav.open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .2s ease, transform .2s ease, visibility 0s; }
	.top-nav > a, .dd-btn { font-size: 17px; padding: 12px; }
	.dd-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; background: transparent; }
	.dd-btn .i { display: none; }
}
@media (max-width: 560px) {
	.brand-txt em { display: none; }
	.btn-back span { display: none; }
	.btn-back { padding: 10px; }
	.btn-back::after { content: 'Website'; font-size: 13px; }
	.top-row { gap: 10px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 34px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.hero-deco { display: none !important; }
.cta-bee, .hub-bees, .fx-honeycomb { display: none !important; }
.hero-deco {
	position: absolute; inset: 0; pointer-events: none; opacity: .9;
	background:
		radial-gradient(600px 260px at 88% -10%, color-mix(in srgb, var(--acc) 22%, transparent), transparent 70%),
		radial-gradient(500px 260px at 0% 120%, color-mix(in srgb, var(--honey) 20%, transparent), transparent 70%);
}
.hero-deco::after {
	content: ''; position: absolute; right: -40px; top: -20px; width: 460px; height: 300px; opacity: .45;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66 0 50V17L28 1l28 16v33zm0 32L0 82V66l28-16 28 16v16z' fill='none' stroke='%23F59E0B' stroke-opacity='.35' stroke-width='1.2'/%3E%3C/svg%3E");
	-webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent);
}
.hero .wrap { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.hero-head { display: flex; gap: 18px; align-items: flex-start; }
.hero-ico {
	flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px;
	background: var(--acc); color: #fff; box-shadow: 0 12px 24px -10px var(--acc);
}
.hero-ico .i { width: 28px; height: 28px; }
.tool-hero h1 { font-size: clamp(28px, 4.2vw, 42px); margin-bottom: 8px; }
.lead { font-size: clamp(16px, 1.8vw, 18.5px); color: var(--ink-2); max-width: 780px; margin: 0; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 20px 0 0; padding: 0; }
.trust li { display: inline-flex; gap: 7px; align-items: center; font-size: 13.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.trust .i { color: var(--acc); width: 16px; height: 16px; }
@media (max-width: 560px) { .hero-ico { width: 48px; height: 48px; border-radius: 14px; } .hero-head { gap: 14px; } }

/* ---------- Tool page layout ---------- */
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; padding-bottom: 20px; }
@media (max-width: 1080px) { .tool-layout { grid-template-columns: minmax(0, 1fr); } .tool-side { display: none; } }
.tool-card {
	background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
	box-shadow: var(--shadow); padding: 26px; position: relative;
}
.tool-card::before { content: ''; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--acc), var(--honey)); }
@media (max-width: 560px) { .tool-card { padding: 18px 16px; border-radius: 20px; } .wrap { padding: 0 16px; } }
.tool-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; }
.side-sticky { display: flex; flex-direction: column; gap: 20px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.side-card h3 { font-size: 15px; margin-bottom: 10px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.side-list a:hover { background: var(--surface-2); color: var(--ink); }
.side-list a.on { background: var(--acc-soft); color: var(--ink); }
.side-list .i { color: var(--acc); }
.cta-card { position: relative; overflow: hidden; background: var(--ink); color: #F5F2EA; border-radius: var(--radius); padding: 22px; }
.cta-card h3 { font-size: 18px; color: #fff; }
.cta-card p { font-size: 14.5px; color: #C9C6DA; }
.cta-bee { position: absolute; right: 14px; top: 10px; font-size: 30px; animation: buzz 3s ease-in-out infinite; }
@keyframes buzz { 0%, 100% { transform: translate(0, 0) rotate(-6deg); } 50% { transform: translate(-6px, 4px) rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Ads ---------- */
.ad-slot { display: none; margin: 28px auto; text-align: center; }
.ad-slot .ad-label { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ads-on .ad-slot { display: block; }
.ads-preview .ad-slot { display: block; }
.ads-preview .ad-slot ins { display: none !important; }
.ads-preview .ad-slot::after {
	content: attr(data-ad-box) ' ad slot'; display: grid; place-items: center; min-height: 100px;
	border: 2px dashed var(--line-2); border-radius: 14px; color: var(--muted); font: 600 13px var(--font-mono);
	background: repeating-linear-gradient(45deg, transparent 0 12px, var(--surface-2) 12px 24px);
}
.ads-preview .ad-side::after { min-height: 600px; }
.ads-preview .ad-article::after { min-height: 160px; }
.ad-wide { max-width: 970px; min-height: 0; }
.ad-side { margin: 0; }
.ad-article { margin: 30px 0; }
.tool-main > .ad-slot { margin: 30px 0; }

/* ---------- Forms ---------- */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .g2, .g3 { grid-template-columns: minmax(0, 1fr); } }
.span-2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }
@media (max-width: 560px) { .span-2 { grid-column: auto; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .lbl { font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.lbl small, .field > label small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.hint { font-size: 12.5px; color: var(--muted); margin: 0; }
.input, .select, .textarea {
	width: 100%; padding: 11px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-2);
	background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s; min-width: 0;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 18%, transparent); }
.textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.textarea.big { min-height: 260px; font-size: 16px; }
.input.mono, .textarea.mono { font-family: var(--font-mono); font-size: 13.5px; }
.select { max-width: 100%; appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236A6A86' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: 0; }
.input-group > :first-child { border-top-left-radius: var(--radius-sm); border-bottom-left-radius: var(--radius-sm); }
.input-group > :last-child { border-top-right-radius: var(--radius-sm); border-bottom-right-radius: var(--radius-sm); }
.addon { display: grid; place-items: center; padding: 0 12px; background: var(--surface-3); border: 1.5px solid var(--line-2); color: var(--muted); font-weight: 700; font-size: 14px; }
.addon:first-child { border-right: 0; }
.addon:last-child { border-left: 0; }
.counter { font: 600 12px var(--font-mono); color: var(--muted); }
.counter.warn { color: var(--warn); }
.counter.bad { color: var(--bad); }
.counter.good { color: var(--good); }
.is-invalid { border-color: var(--bad) !important; }

/* Segmented control */
.seg { display: inline-flex; flex-wrap: wrap; padding: 4px; gap: 4px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--line); }
.seg button, .seg label { border: 0; background: transparent; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg button[aria-pressed="true"], .seg label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg.full { display: flex; }
.seg.full > * { flex: 1; justify-content: center; }

/* Switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14px; user-select: none; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 40px; height: 22px; border-radius: 99px; background: var(--line-2); position: relative; transition: .2s; flex: none; }
.switch .track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: .2s; }
.switch input:checked + .track { background: var(--acc); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 3px solid color-mix(in srgb, var(--acc) 50%, transparent); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line-2);
	background: var(--surface); font-weight: 600; font-size: 13.5px; cursor: pointer; color: var(--ink-2); text-decoration: none;
}
.chip:hover { border-color: var(--acc); color: var(--ink); }
.chip.on, .chip[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: #fff; }

/* Panels & sections inside a tool */
.panel { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel + .panel { margin-top: 16px; }
.sec-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 26px 0 12px; }
.sec-title h2, .sec-title h3 { margin: 0; font-size: 18px; }
.tool-card > .sec-title:first-child { margin-top: 0; }
.divider { height: 1px; background: var(--line); margin: 24px 0; border: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; min-width: 0; }
.stat b { display: block; font: 800 clamp(22px, 3vw, 28px)/1.1 var(--font-head); letter-spacing: -.03em; overflow-wrap: anywhere; }
.stat span { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.stat.hl { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.stat.hl span { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.stat.hl b { color: var(--honey); }
.stat.acc { background: var(--acc-soft); border-color: color-mix(in srgb, var(--acc) 30%, transparent); }

/* Results hero number */
.result-hero { border-radius: 22px; padding: 22px; background: linear-gradient(135deg, var(--ink), #2A2450); color: #F5F2EA; position: relative; overflow: hidden; }
.result-hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 184, 0, .35), transparent 70%); }
.result-hero .big { font: 800 clamp(32px, 6vw, 48px)/1.05 var(--font-head); letter-spacing: -.03em; color: var(--honey); overflow-wrap: anywhere; }
.result-hero .sub { color: #C9C6DA; font-size: 14.5px; margin-top: 6px; }
.result-hero .kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin-top: 18px; position: relative; z-index: 1; }
.result-hero .kv div span { display: block; font-size: 12px; color: #A9A6C0; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.result-hero .kv div b { font: 700 19px var(--font-head); color: #fff; overflow-wrap: anywhere; }
.neg { color: #FF8A80 !important; }

/* Meter / bars */
.meter { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: inherit; background: var(--acc); width: 0; transition: width .35s ease; }
.meter.good > i { background: var(--good); }
.meter.warn > i { background: var(--warn); }
.meter.bad > i { background: var(--bad); }
.limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 20px; }
.limit-row .top-line { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.limit-row .top-line span:last-child { font-family: var(--font-mono); color: var(--muted); font-size: 12px; }

/* Score ring */
.ring { --v: 0; --c: var(--acc); width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; flex: none;
	background: radial-gradient(closest-side, var(--surface) 78%, transparent 80% 100%), conic-gradient(var(--c) calc(var(--v) * 1%), var(--surface-3) 0); }
.ring b { font: 800 30px var(--font-head); }
.ring small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; text-align: center; margin-top: -4px; }

/* Code output */
.code-out { position: relative; }
.code-out pre {
	margin: 0; padding: 18px; padding-top: 44px; border-radius: 16px; background: #14142B; color: #EDEAF7; overflow: auto; max-height: 440px;
	font: 13px/1.65 var(--font-mono); white-space: pre-wrap; word-break: break-word; border: 1px solid #2A2A45;
}
.code-out .code-bar { position: absolute; top: 8px; left: 14px; right: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.code-out .code-bar span { font: 600 11px var(--font-mono); color: #8F8BAE; text-transform: uppercase; letter-spacing: .08em; }
.code-out .code-bar .btn { padding: 5px 11px; font-size: 12.5px; background: #2A2A45; color: #fff; }
.code-out .code-bar .btn:hover { background: #3A3A5A; }
.tok-tag { color: #FF8FA3; } .tok-attr { color: #FFCF5C; } .tok-val { color: #8BE3B4; } .tok-com { color: #7C7A99; } .tok-key { color: #9DB8FF; }

/* Tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { background: var(--surface-2); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; position: sticky; top: 0; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .bar-cell { width: 34%; }
.tbl tbody tr:hover { background: var(--surface-2); }

/* Notices */
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.note .i { margin-top: 2px; }
.note.good { background: var(--good-soft); border-color: transparent; }
.note.good .i { color: var(--good); }
.note.warn { background: var(--warn-soft); border-color: transparent; }
.note.warn .i { color: var(--warn); }
.note.bad { background: var(--bad-soft); border-color: transparent; }
.note.bad .i { color: var(--bad); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.checks li::before { content: ''; flex: none; width: 20px; height: 20px; border-radius: 50%; margin-top: 1px; background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.checks li.warn::before { background: var(--warn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center/13px no-repeat; }
.checks li.bad::before { background: var(--bad) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center/11px no-repeat; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; font-size: 14.5px; }
.empty .i { width: 34px; height: 34px; display: block; margin: 0 auto 8px; opacity: .5; }

/* Tabs */
.tabs { display: flex; gap: 6px; border-bottom: 1.5px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 700; font-size: 14.5px; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1.5px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--acc); }
[role="tabpanel"][hidden] { display: none; }

/* Two-pane editors */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.split.wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@media (max-width: 900px) { .split, .split.wide-left { grid-template-columns: minmax(0, 1fr); } }
.sticky-col { position: sticky; top: 88px; }
@media (max-width: 900px) { .sticky-col { position: static; } }

/* Highlight marks */
mark { border-radius: 3px; padding: 0 1px; background: var(--honey-soft); color: inherit; }
mark.m-long { background: #FFE39A; }
mark.m-vlong { background: #FFC2BD; }
mark.m-passive { background: #CFE3FF; }
mark.m-adverb { background: #E2D6FF; }
mark.m-complex { background: #D6F5E3; }
:root[data-theme="dark"] mark.m-long { background: #5A4300; }
:root[data-theme="dark"] mark.m-vlong { background: #5C1F1B; }
:root[data-theme="dark"] mark.m-passive { background: #1B3A63; }
:root[data-theme="dark"] mark.m-adverb { background: #3A2A66; }
:root[data-theme="dark"] mark.m-complex { background: #13442B; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) mark.m-long { background: #5A4300; }
	:root:not([data-theme="light"]) mark.m-vlong { background: #5C1F1B; }
	:root:not([data-theme="light"]) mark.m-passive { background: #1B3A63; }
	:root:not([data-theme="light"]) mark.m-adverb { background: #3A2A66; }
	:root:not([data-theme="light"]) mark.m-complex { background: #13442B; }
}
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--muted); }
.legend mark { padding: 1px 8px; font-weight: 600; color: var(--ink); }
.hl-view { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); line-height: 1.85; max-height: 520px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }

/* ---------- SERP / social previews ---------- */
.preview-box { background: #fff; color: #202124; border-radius: 16px; border: 1px solid #E3E3E8; padding: 18px 20px; font-family: Arial, Helvetica, sans-serif; }
.serp { max-width: 600px; }
.serp.mobile { max-width: 380px; }
.serp-site { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.serp-fav { width: 26px; height: 26px; border-radius: 50%; background: #F1F3F4; border: 1px solid #ECEDEF; display: grid; place-items: center; font: 700 12px Arial; color: #5F6368; overflow: hidden; flex: none; }
.serp-name { font-size: 14px; color: #202124; line-height: 1.3; }
.serp-url { font-size: 12px; color: #4D5156; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 520px; }
.serp-title { font-size: 20px; line-height: 1.3; color: #1A0DAB; margin: 2px 0 3px; font-weight: 400; overflow-wrap: anywhere; }
.serp.mobile .serp-title { font-size: 18px; line-height: 1.33; }
.serp-desc { font-size: 14px; line-height: 1.58; color: #4D5156; overflow-wrap: anywhere; }
.serp-desc .date { color: #70757A; }
.serp-desc b { font-weight: 700; color: #5F6368; }
.serp-stars { font-size: 13px; color: #70757A; margin-top: 3px; }
.serp-stars .st { color: #FBBC04; letter-spacing: 1px; }
.og-card { max-width: 520px; border: 1px solid #DADDE1; border-radius: 10px; overflow: hidden; background: #fff; color: #050505; font-family: Helvetica, Arial, sans-serif; }
.og-img { aspect-ratio: 1.91 / 1; background: linear-gradient(135deg, #FFE08A, #FFB800 55%, #F59E0B); display: grid; place-items: center; color: #14142B; font: 800 22px var(--font-head); padding: 20px; text-align: center; background-size: cover; background-position: center; }
.og-meta { padding: 10px 12px; background: #F0F2F5; border-top: 1px solid #DADDE1; }
.og-domain { font-size: 12px; color: #65676B; text-transform: uppercase; }
.og-title { font-size: 16px; font-weight: 700; line-height: 1.3; margin: 3px 0 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.og-desc { font-size: 14px; color: #65676B; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.x-card { max-width: 520px; border: 1px solid #CFD9DE; border-radius: 16px; overflow: hidden; background: #fff; color: #0F1419; font-family: -apple-system, 'Segoe UI', Roboto, sans-serif; position: relative; }
.x-card .og-img { border-radius: 0; }
.x-card .x-domain { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.77); color: #fff; font-size: 13px; padding: 1px 6px; border-radius: 4px; }
.x-card.sum { display: flex; }
.x-card.sum .og-img { width: 130px; aspect-ratio: 1; flex: none; font-size: 14px; }
.x-card.sum .x-body { padding: 12px; font-size: 15px; }
.x-card.sum .x-domain { position: static; background: none; color: #536471; padding: 0; }
.preview-label { font: 700 12px var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }

/* ---------- Prose / guide ---------- */
.guide { margin-top: 40px; }
.prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.prose h2 { font-size: clamp(22px, 3vw, 28px); color: var(--ink); margin: 1.8em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; color: var(--ink); margin: 1.5em 0 .5em; }
.prose a { color: var(--acc); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--acc); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose code { font-family: var(--font-mono); font-size: .86em; background: var(--surface-3); padding: 2px 6px; border-radius: 6px; color: var(--ink); }
.prose pre { background: #14142B; color: #EDEAF7; padding: 16px 18px; border-radius: 14px; overflow-x: auto; font: 13.5px/1.6 var(--font-mono); }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 1.4em; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--surface-2); color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.prose blockquote { margin: 1.4em 0; padding: 16px 20px; border-left: 4px solid var(--honey); background: var(--surface-2); border-radius: 0 14px 14px 0; font-style: italic; }
.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: 16px; background: var(--acc-soft); border: 1px solid color-mix(in srgb, var(--acc) 28%, transparent); margin: 1.4em 0; font-size: 16px; }
.callout .emoji { font-size: 26px; line-height: 1; }
.callout p:last-child { margin: 0; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 60px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin: 0 !important; }
.steps li::before { content: counter(step); position: absolute; left: 14px; top: 13px; width: 32px; height: 32px; border-radius: 10px; background: var(--acc); color: #fff; display: grid; place-items: center; font: 800 15px var(--font-head); }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 1.2em 0 1.6em; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; font-size: 15px; line-height: 1.55; }
.fact b { display: block; font: 800 26px var(--font-head); color: var(--acc); letter-spacing: -.02em; margin-bottom: 2px; }

/* FAQ */
.faq { margin-top: 44px; }
.faq h2 { font-size: clamp(22px, 3vw, 28px); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; font-size: 16.5px; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .2s; color: var(--acc); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq-a { padding: 0 20px 18px; color: var(--ink-2); line-height: 1.7; }
.faq-a p:last-child { margin: 0; }

/* Tool tiles */
.related { margin-top: 44px; }
.related h2 { font-size: clamp(22px, 3vw, 26px); }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.tool-tile {
	display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 20px; text-decoration: none;
	background: var(--surface); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; position: relative;
}
.tool-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); }
.tile-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--acc-soft); color: var(--acc); transition: .2s; }
.tool-tile:hover .tile-ico { background: var(--acc); color: #fff; transform: rotate(-6deg); }
.tile-body { flex: 1; min-width: 0; }
.tile-body strong { font: 700 16.5px/1.3 var(--font-head); letter-spacing: -.01em; margin-right: 6px; }
.tile-body small { display: block; color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 4px; }
.badge { display: inline-block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 99px; background: var(--honey); color: #14142B; vertical-align: 2px; }
.tile-go { position: absolute; right: 14px; top: 16px; color: var(--muted); opacity: 0; transform: translateX(-6px); transition: .2s; }
.tool-tile:hover .tile-go { opacity: 1; transform: none; color: var(--acc); }

/* ---------- Hub page ---------- */
.hub-hero { padding: 64px 0 40px; text-align: center; }
.hub-hero .hero-deco::after { left: 50%; right: auto; transform: translateX(-50%); width: 900px; height: 420px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 13.5px; box-shadow: var(--shadow-sm); }
.eyebrow span { background: var(--ink); color: var(--honey); border-radius: 99px; padding: 2px 9px; font-size: 12px; }
.hub-hero h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.04; margin: 20px auto 16px; max-width: 900px; letter-spacing: -.04em; }
.hub-hero h1 .hl { background: linear-gradient(135deg, #FFC933, #F59E0B 60%, #FF6B57); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hub-hero .lead { margin: 0 auto; text-align: center; }
.hub-search { max-width: 600px; margin: 30px auto 0; position: relative; }
.hub-search .i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; }
.hub-search input { width: 100%; padding: 18px 20px 18px 54px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); font-size: 17px; box-shadow: var(--shadow); }
.hub-search input:focus { outline: none; border-color: var(--honey-2); box-shadow: 0 0 0 5px color-mix(in srgb, var(--honey) 22%, transparent), var(--shadow); }
.hub-search kbd { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 600 12px var(--font-mono); padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); background: var(--surface-2); }
.cat-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.cat-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 14.5px; transition: .2s; }
.cat-jump a:hover { border-color: var(--acc); transform: translateY(-2px); }
.cat-jump .i { color: var(--acc); }
.hub-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 36px; margin-top: 36px; }
.hub-stats div { text-align: center; }
.hub-stats b { display: block; font: 800 30px var(--font-head); letter-spacing: -.03em; }
.hub-stats span { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.cat-sec { padding: 34px 0; }
.cat-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.cat-head .hero-ico { width: 54px; height: 54px; }
.cat-head h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 0; }
.cat-head p { margin: 2px 0 0; color: var(--muted); }
.cat-count { margin-left: auto; font: 700 13px var(--font-mono); color: var(--muted); padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
@media (max-width: 560px) { .cat-count { display: none; } }
.no-results { display: none; text-align: center; padding: 40px 0; color: var(--muted); font-size: 17px; }
.why { padding: 40px 0; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.why-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.why-card .hero-ico { width: 46px; height: 46px; border-radius: 14px; margin-bottom: 14px; }
.why-card .hero-ico .i { width: 22px; height: 22px; }
.why-card h3 { font-size: 18px; }
.why-card p { color: var(--muted); margin: 0; font-size: 15px; }
.big-cta { margin: 40px 0 20px; border-radius: 28px; padding: clamp(28px, 5vw, 52px); background: var(--ink); color: #F5F2EA; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.big-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 240px at 90% 0%, rgba(255, 184, 0, .35), transparent 70%); }
.big-cta > * { position: relative; }
.big-cta h2 { color: #fff; font-size: clamp(24px, 3.4vw, 34px); }
.big-cta p { color: #C9C6DA; margin: 0; max-width: 620px; }
.big-cta .btn-row { justify-content: flex-end; }
@media (max-width: 760px) { .big-cta { grid-template-columns: 1fr; } .big-cta .btn-row { justify-content: flex-start; } }
.section-title { text-align: center; margin-bottom: 26px; }
.section-title h2 { font-size: clamp(26px, 3.6vw, 36px); }
.section-title p { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* Legal pages */
.legal { max-width: 820px; padding: 40px 20px 60px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); }

/* ---------- Footer ---------- */
.foot { margin-top: 50px; background: var(--surface); border-top: 1px solid var(--line); padding: 50px 0 26px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(5, 1fr); gap: 26px; }
@media (max-width: 1200px) { .foot-grid { grid-template-columns: repeat(3, 1fr); } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 700px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-about p { color: var(--muted); font-size: 14.5px; margin: 14px 0 16px; max-width: 360px; }
.foot h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 12px; font-family: var(--font); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 8px; }
.foot li a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.foot li a:hover { color: var(--honey-2); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 90;
	background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 14.5px; box-shadow: var(--shadow-lg); transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Misc helpers */
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.nowrap { white-space: nowrap; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.mono { font-family: var(--font-mono); }
.w-full { width: 100%; }
.list-out { display: grid; gap: 10px; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s; }
.list-item:hover { border-color: var(--acc); }
.list-item .txt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.list-item .meta { display: flex; gap: 6px; align-items: center; flex: none; }
.copy-mini { border: 0; background: var(--surface-3); color: var(--ink-2); border-radius: 9px; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; flex: none; }
.copy-mini:hover { background: var(--acc); color: #fff; }
.copy-mini.done { background: var(--good); color: #fff; }
.copy-mini .i { width: 16px; height: 16px; }
[contenteditable="true"]:focus { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 4px; }

/* Hide ad boxes AdSense couldn't fill */
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none !important; }

/* ---------- Invoice generator ---------- */
.inv-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 18px; }
.inv-toolbar .field { min-width: 0; }
.inv-toolbar .select { padding: 9px 36px 9px 12px; font-size: 14px; }
.inv-swatch { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line-2); background: var(--sw); cursor: pointer; }
.inv-swatch.on { box-shadow: 0 0 0 2.5px var(--ink); }
.inv-scroll { overflow-x: auto; margin: 0 -8px; padding: 8px; }
.inv-paper {
	--ic: #F59E0B;
	background: #fff; color: #1F2033; min-width: 680px; max-width: 900px; margin: 0 auto; padding: 44px 46px 30px;
	border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 20px 50px -20px rgba(20,20,43,.35);
	font: 13.5px/1.5 var(--font); border-top: 8px solid var(--ic); position: relative; color-scheme: light;
}
.inv-in { font: inherit; color: inherit; border: 1px dashed transparent; background: transparent; padding: 3px 6px; margin: -3px -6px; border-radius: 6px; width: 100%; min-width: 0; }
.inv-in:hover { border-color: #D8D3C4; }
.inv-in:focus { outline: none; border-color: var(--ic); background: #FFFBEF; }
.inv-in::placeholder { color: #A3A1B5; }
.inv-ta { resize: none; overflow: hidden; display: block; line-height: 1.55; }
.strong-first { font-weight: 500; }
.inv-head { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; }
.inv-logo { position: relative; width: 200px; min-height: 80px; display: flex; align-items: center; }
.inv-logo img { max-width: 200px; max-height: 90px; object-fit: contain; }
.inv-logo-up { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 170px; height: 80px; border: 2px dashed #D8D3C4; border-radius: 12px; color: #8A879E; font-weight: 700; font-size: 13px; cursor: pointer; }
.inv-logo-up:hover { border-color: var(--ic); color: var(--ic); }
.inv-x { position: absolute; top: -8px; left: -8px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #1F2033; color: #fff; cursor: pointer; font-size: 11px; }
.inv-title { text-align: right; flex: 1; max-width: 330px; }
.inv-h1 { font: 800 28px var(--font-head); letter-spacing: .02em; text-align: right; color: var(--ic); }
.inv-meta { margin-left: auto; margin-top: 10px; border-collapse: collapse; }
.inv-meta th { text-align: right; font-weight: 600; color: #6A6A86; padding: 3px 12px 3px 0; white-space: nowrap; font-size: 12.5px; }
.inv-meta td { padding: 3px 0; width: 170px; }
.inv-meta .inv-in { text-align: right; font-weight: 600; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 34px 0 26px; }
.inv-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--ic); margin: 0 0 6px; }
.inv-parties .inv-label { padding-bottom: 6px; border-bottom: 1.5px solid #EEE9DC; margin-bottom: 8px; }
.inv-items { width: 100%; border-collapse: collapse; }
.inv-items th { background: var(--ic); color: #fff; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; padding: 9px 8px; text-align: left; }
.inv-items th:first-child { border-radius: 6px 0 0 6px; }
.inv-items th:nth-last-child(2) { border-radius: 0 6px 6px 0; }
.inv-items th.no-print { background: transparent; }
.inv-items th.num, .inv-items td.num { text-align: right; }
.inv-items td { padding: 9px 8px; border-bottom: 1px solid #EEE9DC; vertical-align: top; }
.inv-items td.num .inv-in { text-align: right; }
.inv-items .inv-desc-sub { font-size: 12px; color: #6A6A86; }
.inv-items .amt { font-weight: 700; padding-top: 12px; white-space: nowrap; }
.inv-items .del { border: 0; background: none; color: #B3B0C4; cursor: pointer; font-size: 16px; padding: 8px 4px; }
.inv-items .del:hover { color: var(--bad); }
.inv-items input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.inv-items input[type=number]::-webkit-inner-spin-button, .inv-items input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.inv-add { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.inv-paper .btn-ghost { background: #fff; color: #1F2033; border-color: #D8D3C4; }
.inv-paper .switch { color: #1F2033; }
.inv-bottom { display: grid; grid-template-columns: 1fr 300px; gap: 30px; margin-top: 24px; }
.inv-notes .inv-label { margin-top: 14px; }
.inv-words { background: #FAF7EF; border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: 13px; }
.inv-words .inv-label { margin-top: 0; }
.inv-totals table { width: 100%; border-collapse: collapse; }
.inv-totals td { padding: 6px 0; }
.inv-totals td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-totals .inv-in { width: 90px; text-align: right; }
.inv-totals .grand td { border-top: 2px solid #1F2033; padding-top: 10px; font: 800 18px var(--font-head); }
.inv-totals .grand td:last-child { color: var(--ic); }
.inv-totals .muted-row td { color: #6A6A86; font-size: 12.5px; }
.inv-totals .disc-type { font: inherit; font-size: 12px; border: 1px solid #D8D3C4; border-radius: 6px; padding: 1px 2px; background: #fff; color: #1F2033; }
.inv-sign { margin-top: 44px; text-align: center; }
.inv-sign-line { border-top: 1.5px solid #1F2033; margin: 0 20px 6px; }
.inv-sign .inv-in { width: 100%; text-align: center; font-weight: 600; font-size: 12.5px; }
.inv-foot { margin-top: 30px; padding-top: 12px; border-top: 1px solid #EEE9DC; text-align: center; color: #8A879E; font-size: 11.5px; }
.inv-paper.no-hsn .hsn-col { display: none; }
.inv-paper.no-tax .tax-col { display: none; }
.inv-paper.no-gst .gst-only { display: none; }

@media print {
	/* margin 0 = the browser prints no date/URL header or footer; spacing lives inside .inv-paper */
	@page { size: A4; margin: 0; }
	html, body { background: #fff !important; }
	body:has(#ivPaper) .top, body:has(#ivPaper) .foot, body:has(#ivPaper) .hero, body:has(#ivPaper) .guide, body:has(#ivPaper) .faq,
	body:has(#ivPaper) .related, body:has(#ivPaper) .tool-side, body:has(#ivPaper) .skip-link, body:has(#ivPaper) .hint { display: none !important; }
	body:has(#ivPaper) .wrap, body:has(#ivPaper) .tool-layout { display: block; padding: 0; max-width: none; }
	body:has(#ivPaper) .tool-card { border: 0; box-shadow: none; padding: 0; }
	body:has(#ivPaper) .tool-card::before { display: none; }
	.inv-paper { width: 100%; max-width: none; min-width: 0; box-shadow: none; border-radius: 0; padding: 12mm 14mm 10mm; margin: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.inv-in[type=date]::-webkit-calendar-picker-indicator { display: none; }
	.inv-scroll { overflow: visible; }
	.no-print, .inv-paper .no-print { display: none !important; }
	.inv-in { border-color: transparent !important; background: transparent !important; }
	.inv-in::placeholder { color: transparent; }
	#site-header, .site-footer-wrapper, .site-footer, .top, .foot, .hero, .ad-slot, .toast { display: none !important; }
	.inv-items tr { page-break-inside: avoid; }
	.inv-parties { margin: 22px 0 18px; }
	.inv-bottom { margin-top: 16px; }
	.inv-sign { margin-top: 30px; }
	.inv-foot { margin-top: 16px; }
	.inv-items td { padding: 7px 8px; }
}
.print-val { display: none; }
@media print {
	.print-val { display: inline; }
	.print-hide, .print-empty { display: none !important; }
}

/* ---------- Hub extras: flying bees & workflows ---------- */
.hub-bees { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hub-bee { position: absolute; display: block; filter: drop-shadow(0 6px 10px rgba(20,20,43,.18)); }
.hub-bee-1 { top: 16%; left: 7%; animation: fly1 9s ease-in-out infinite; }
.hub-bee-2 { top: 58%; right: 6%; animation: fly2 11s ease-in-out infinite; transform: scaleX(-1); }
.hub-bee-3 { top: 8%; right: 22%; animation: fly3 13s ease-in-out infinite; opacity: .8; }
.hub-bee-3 svg { width: 30px; height: 22px; }
.bw { transform-origin: 34px 22px; animation: flap .12s linear infinite alternate; }
.bw2 { animation-delay: .06s; }
@keyframes flap { to { transform: scaleY(.55); } }
@keyframes fly1 { 0%, 100% { transform: translate(0, 0) rotate(-4deg); } 25% { transform: translate(60px, -24px) rotate(6deg); } 50% { transform: translate(120px, 10px) rotate(-2deg); } 75% { transform: translate(50px, 30px) rotate(4deg); } }
@keyframes fly2 { 0%, 100% { transform: scaleX(-1) translate(0, 0); } 33% { transform: scaleX(-1) translate(70px, -40px); } 66% { transform: scaleX(-1) translate(20px, 26px); } }
@keyframes fly3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-90px, 40px); } }
@media (max-width: 760px) { .hub-bee-2, .hub-bee-3 { display: none; } .hub-bee-1 { top: 4%; left: 2%; } }
.hub-hero .eyebrow { animation: rise .6s ease both; }
.hub-hero h1 { animation: rise .6s .08s ease both; }
.hub-hero .lead { animation: rise .6s .16s ease both; }
.hub-hero .hub-search { animation: rise .6s .24s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tool-tile { animation: rise .5s ease both; }
.flow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.flow { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; border-top: 4px solid var(--acc); }
.flow h3 { font-size: 17px; margin-bottom: 12px; }
.flow-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.flow-steps a { text-decoration: none; font-weight: 700; font-size: 13.5px; padding: 6px 11px; border-radius: 99px; background: var(--acc-soft); color: var(--ink); transition: .15s; }
.flow-steps a:hover { background: var(--acc); color: #fff; }
.flow-arrow { color: var(--muted); font-weight: 700; }
.cat-sec[hidden] { display: none; }
.tool-tile[hidden] { display: none; }
.prose, .faq-a, .legal { overflow-wrap: break-word; }
.prose a, .prose code, .faq-a code, .faq-a a { overflow-wrap: anywhere; }
@media (max-width: 380px) {
	.brand-txt { font-size: 17px; }
	.brand .logo-mark { width: 30px; height: 30px; }
	.top-actions { gap: 6px; }
	.icon-btn { width: 38px; height: 38px; }
	.btn-back::after { content: none; }
	.btn-back { padding: 10px 11px; }
}

/* ---------- Network tools ---------- */
.bin-view { font: 600 clamp(12px, 1.9vw, 15px)/1.9 var(--font-mono); background: #14142B; color: #EDEAF7; border-radius: 16px; padding: 16px 18px; overflow-x: auto; }
.bin-view .row { display: flex; gap: 14px; white-space: nowrap; }
.bin-view .lab { color: #8F8BAE; width: 84px; flex: none; font-weight: 500; }
.bin-view .bit-net { color: #9DB8FF; }
.bin-view .bit-host { color: #FFCF5C; }
.bin-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 8px; }
.bin-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.kv-table td:first-child { color: var(--muted); font-weight: 600; width: 42%; }
.kv-table td:last-child { font-family: var(--font-mono); font-size: 13.5px; overflow-wrap: anywhere; }
.kv-table td .copy-mini { width: 26px; height: 26px; display: inline-grid; vertical-align: middle; margin-left: 6px; }
.term { background: #0B0B16; color: #C8F7C5; font: 13.5px/1.7 var(--font-mono); border-radius: 14px; padding: 14px 16px; overflow-x: auto; white-space: pre; border: 1px solid #22223A; }
.term .dim { color: #6F7390; }
.prefix-range { width: 100%; accent-color: var(--acc); }

/* ---------- Interactive effects (fx.js) – all disabled for prefers-reduced-motion ---------- */
.fx-honeycomb { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero .wrap { z-index: 1; }
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 95; overflow: hidden; }
.fx-hex { position: absolute; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); will-change: transform, opacity; }
.hub-bee.following { animation: none !important; transition: none; }
.fx-tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease, box-shadow .2s, border-color .2s; transform-style: preserve-3d; }
.fx-tilt:hover { transition: transform .06s linear, box-shadow .2s, border-color .2s; }
.fx-tilt::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s;
	background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 201, 51, .18), transparent 45%); }
.fx-tilt:hover::after { opacity: 1; }
.why-card.fx-tilt, .flow.fx-tilt { position: relative; }
.fx-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1); }
.fx-reveal.in { opacity: 1; transform: none; }
.fx-pop { animation: fxPop .38s cubic-bezier(.3, 1.6, .5, 1); display: inline-block; }
.stat .fx-pop, .result-hero .big.fx-pop { display: block; }
@keyframes fxPop { 0% { transform: scale(1); } 40% { transform: scale(1.07); } 100% { transform: scale(1); } }
.btn, .chip { position: relative; overflow: hidden; isolation: isolate; }
.btn::after, .chip::after { content: ''; position: absolute; left: var(--px, 50%); top: var(--py, 50%); width: 14px; height: 14px; border-radius: 50%;
	background: currentColor; opacity: 0; transform: translate(-50%, -50%) scale(0); pointer-events: none; z-index: -1; }
.btn.fx-rip::after, .chip.fx-rip::after { animation: fxRip .55s ease-out; }
@keyframes fxRip { 0% { opacity: .28; transform: translate(-50%, -50%) scale(0); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(22); } }
.fx-on .hub-hero h1 .hl { background-size: 200% 100%; animation: fxShine 6s ease-in-out infinite; }
@keyframes fxShine { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
.fx-on .hub-hero h1 .hl { background-image: linear-gradient(110deg, #FFC933, #F59E0B 35%, #FF6B57 55%, #F59E0B 75%, #FFC933); }
@media (prefers-reduced-motion: reduce) { .fx-reveal { opacity: 1; transform: none; } .fx-tilt { transform: none; } }
.tool-tile.fx-tilt:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-3px); }
@media print { .inv-items [data-k="rate"] { display: none !important; } }

/* review fixes */
.input-group .select { flex: none; width: auto; }
.stat .pill { white-space: normal; line-height: 1.35; padding-top: 3px; padding-bottom: 3px; }
.stats.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .stats.stats-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.preview-box.serp { overflow-x: auto; }
.serp:not(.mobile) .serp-title { white-space: nowrap; }

/* ---------- Advanced options panel (shared) ---------- */
.adv { margin-top: 18px; border: 1.5px dashed var(--line-2); border-radius: 16px; background: var(--surface-2); padding: 0 16px; }
.adv > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 0; font-weight: 700; font-size: 14.5px; }
.adv > summary::-webkit-details-marker { display: none; }
.adv > summary .i { color: var(--acc); }
.adv > summary::after { content: '+'; margin-left: auto; font: 700 18px var(--font); color: var(--muted); }
.adv[open] > summary::after { content: '−'; }
.adv > summary small { font-weight: 500; color: var(--muted); }
.adv[open] { border-style: solid; }
.adv-body { padding: 2px 0 16px; }

/* ---------- Validation ---------- */
.field-err { margin: 2px 0 0; font-size: 12.5px; font-weight: 600; color: var(--bad); display: flex; gap: 6px; align-items: flex-start; }
.field-err::before { content: '!'; flex: none; display: inline-grid; place-items: center; width: 15px; height: 15px; margin-top: 1px; border-radius: 50%; background: var(--bad); color: #fff; font-size: 10px; font-weight: 800; }
.is-invalid, .is-invalid:focus { border-color: var(--bad) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 16%, transparent) !important; }
.inv-paper .field-err { font-size: 11.5px; }
@media print { .field-err { display: none !important; } }
.inv-paper.no-disc .disc-col, .inv-paper.no-po .po-only, .inv-paper.no-words .inv-words { display: none; }
#ivChecks li { font-size: 13.5px; }
