/* Creativewity - Image Tools (client-side converter, compressor and resizer) */
.image-tools-hero {
	position: relative;
	overflow: hidden;
	padding: 52px 0 40px;
	background:
		linear-gradient(90deg, rgba(247,206,8,.13) 0 1px, transparent 1px),
		linear-gradient(0deg, rgba(43,43,43,.055) 0 1px, transparent 1px),
		linear-gradient(180deg, #ffffff 0%, #f7f6f1 100%);
	background-size: 42px 42px, 42px 42px, auto;
}
.image-tools-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--line);
}
.image-tools-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(360px, .58fr);
	gap: 56px;
	align-items: end;
}
.image-tools-hero-copy { max-width: 740px; }
.image-tools-hero h1 {
	font-family: var(--font-display);
	font-size: clamp(32px, 4.6vw, 54px);
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 0 0 12px;
	color: var(--ink);
}
.image-tools-hero p:not(.eyebrow) {
	font-size: 18px;
	line-height: 1.6;
	max-width: 620px;
	color: var(--graphite);
}
.image-tools-hero-actions {
	display: flex;
	gap: 18px;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 24px;
}
.image-tools-hero-actions > span {
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 1.5;
	color: var(--muted);
}
.image-tools-hero-panel {
	position: relative;
	background: var(--ink);
	color: #fff;
	border: 1px solid rgba(43,43,43,.2);
	padding: 10px;
	box-shadow: 0 24px 48px rgba(43,43,43,.14);
}
.image-tools-hero-panel::before {
	content: "";
	position: absolute;
	left: 10px;
	top: 10px;
	right: 10px;
	height: 3px;
	background: var(--signal);
}
.image-tools-hero-panel div {
	display: grid;
	grid-template-columns: 44px 1fr;
	gap: 2px 16px;
	padding: 22px 18px 18px;
	border-bottom: 1px solid rgba(255,255,255,.12);
}
.image-tools-hero-panel div:last-child { border-bottom: 0; }
.image-tools-hero-panel span {
	grid-row: span 2;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--signal);
}
.image-tools-hero-panel strong {
	font-family: var(--font-display);
	font-size: 17px;
	line-height: 1.2;
	color: #fff;
}
.image-tools-hero-panel small {
	font-size: 13px;
	line-height: 1.45;
	color: #cfcfca;
}

.image-converter-section {
	padding: 54px 0 10px;
	background: #fff;
}
.image-converter-wrap {
	max-width: min(1560px, 96vw);
	padding-left: 24px;
	padding-right: 24px;
}
.imgc {
	--imgc-card: #fff;
	--imgc-soft: #f5f5f2;
	--imgc-dark: #2b2b2b;
	--imgc-line: #deddd7;
	--imgc-line-strong: #c9c7be;
	--imgc-muted: #72726b;
	--imgc-focus: rgba(247,206,8,.28);
	color: var(--ink);
}
.imgc-product-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 34px;
	align-items: end;
	padding: 30px 34px;
	border: 1px solid var(--imgc-line);
	border-bottom: 0;
	background: #fff;
}
.imgc-product-header h2 {
	font-family: var(--font-display);
	font-size: clamp(28px, 3vw, 42px);
	line-height: 1.02;
	letter-spacing: -.035em;
	max-width: 760px;
	margin: 0 0 10px;
}
.imgc-product-header p:not(.imgc-kicker) {
	max-width: 660px;
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
	color: var(--graphite);
}
.imgc-proof {
	display: grid;
	grid-template-columns: repeat(3, minmax(88px, 1fr));
	gap: 0;
	margin: 0;
	border: 1px solid var(--imgc-line);
	background: #fafafa;
}
.imgc-proof div { padding: 14px 16px; border-right: 1px solid var(--imgc-line); }
.imgc-proof div:last-child { border-right: 0; }
.imgc-proof dt {
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--imgc-muted);
}
.imgc-proof dd {
	margin: 3px 0 0;
	font-family: var(--font-display);
	font-size: 17px;
	line-height: 1.1;
	color: var(--ink);
}
.imgc-toolbar {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border: 1px solid var(--imgc-line);
	border-bottom: 0;
	background: var(--ink);
}
.imgc-toolbar span {
	min-height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	border-right: 1px solid rgba(255,255,255,.14);
	color: #e8e8e2;
	font: 700 12px/1.25 var(--font-body);
	letter-spacing: .01em;
	text-align: center;
}
.imgc-toolbar span:first-child { color: var(--signal); }
.imgc-toolbar span:last-child { border-right: 0; }
.imgc-shell {
	display: grid;
	grid-template-columns: minmax(280px, .88fr) minmax(330px, .96fr) minmax(360px, 1.16fr);
	align-items: start;
	border: 1px solid var(--imgc-line);
	background: #fff;
}
.imgc-panel {
	position: relative;
	min-width: 0;
	padding: 28px;
	background: var(--imgc-card);
	border-right: 1px solid var(--imgc-line);
	min-height: 100%;
}
.imgc-panel:last-child { border-right: 0; }
.imgc-panel-preview {
	position: sticky;
	top: 86px;
	align-self: start;
	min-height: auto;
}
.imgc-panel-head { margin-bottom: 20px; }
.imgc-panel-head.compact { margin-bottom: 16px; }
.imgc-kicker {
	margin: 0 0 8px;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--imgc-muted);
}
.imgc h2 {
	font-family: var(--font-display);
	font-size: 24px;
	line-height: 1.1;
	letter-spacing: -.02em;
	margin: 0 0 8px;
	color: var(--ink);
}
.imgc-panel-head p:not(.imgc-kicker) {
	margin: 0;
	color: var(--graphite);
	font-size: 14.5px;
	line-height: 1.55;
}
.imgc-drop {
	position: relative;
	display: grid;
	place-items: center;
	text-align: center;
	gap: 8px;
	min-height: 232px;
	padding: 30px 22px;
	border: 1.5px dashed var(--imgc-line-strong);
	background:
		linear-gradient(90deg, rgba(43,43,43,.045) 0 1px, transparent 1px),
		linear-gradient(0deg, rgba(43,43,43,.045) 0 1px, transparent 1px),
		#fafaf7;
	background-size: 24px 24px, 24px 24px, auto;
	cursor: pointer;
	transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}
.imgc-drop:hover,
.imgc-drop.is-drag {
	border-color: var(--ink);
	background:
		linear-gradient(90deg, rgba(247,206,8,.28) 0 1px, transparent 1px),
		linear-gradient(0deg, rgba(247,206,8,.28) 0 1px, transparent 1px),
		#fffdf1;
	background-size: 24px 24px, 24px 24px, auto;
	transform: translateY(-2px);
}
.imgc-drop input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}
.imgc-drop-icon {
	width: 52px;
	height: 52px;
	display: grid;
	place-items: center;
	background: var(--signal);
	color: var(--ink);
	font: 700 32px/1 var(--font-display);
	box-shadow: inset 0 0 0 1px rgba(43,43,43,.08);
}
.imgc-drop strong {
	font-family: var(--font-display);
	font-size: 19px;
	line-height: 1.2;
	letter-spacing: -.01em;
}
.imgc-drop small {
	color: var(--imgc-muted);
	max-width: 330px;
	line-height: 1.48;
}
.imgc-format-strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	margin-top: 14px;
	border: 1px solid var(--imgc-line);
}
.imgc-format-strip span {
	padding: 8px 6px;
	border-right: 1px solid var(--imgc-line);
	border-bottom: 1px solid var(--imgc-line);
	background: #fff;
	color: var(--imgc-muted);
	font: 700 10.5px/1 var(--font-mono);
	letter-spacing: .03em;
	text-align: center;
}
.imgc-format-strip span:nth-child(4n) { border-right: 0; }
.imgc-format-strip span:nth-last-child(-n+4) { border-bottom: 0; }
.imgc-queue {
	display: grid;
	gap: 0;
	margin-top: 18px;
	max-height: 380px;
	overflow: auto;
	border: 1px solid var(--imgc-line);
	border-bottom: 0;
}
.imgc-queue:empty { display: none; }
.imgc-file {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	text-align: left;
	width: 100%;
	padding: 10px;
	border: 0;
	border-bottom: 1px solid var(--imgc-line);
	background: #fff;
	cursor: pointer;
	transition: background .15s var(--ease), box-shadow .15s var(--ease);
}
.imgc-file:hover { background: #fafafa; }
.imgc-file.is-active { background: #fff9dc; box-shadow: inset 4px 0 0 var(--signal); }
.imgc-thumb {
	width: 48px;
	height: 48px;
	background: var(--imgc-soft);
	overflow: hidden;
	display: grid;
	place-items: center;
	border: 1px solid var(--imgc-line);
}
.imgc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.imgc-file strong {
	display: block;
	font-size: 13.5px;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--ink);
}
.imgc-file small {
	display: block;
	margin-top: 2px;
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--imgc-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.imgc-file .imgc-file-warning {
	color: #926200;
	font-family: var(--font-body);
	font-weight: 700;
}
.imgc-remove {
	width: 31px;
	height: 31px;
	border: 1px solid var(--imgc-line);
	background: #fff;
	cursor: pointer;
	color: var(--imgc-muted);
	font-size: 18px;
	line-height: 1;
	display: grid;
	place-items: center;
}
.imgc-remove:hover { color: var(--danger); border-color: #f1b9b2; background: #fff4f2; }
.imgc-mode-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	margin-bottom: 18px;
	border: 1px solid var(--imgc-line);
}
.imgc-mode-grid label {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 48px;
	padding: 10px 12px;
	border-right: 1px solid var(--imgc-line);
	background: #fff;
	font: 800 12.5px/1.25 var(--font-body);
	color: var(--graphite);
	cursor: pointer;
}
.imgc-mode-grid label:last-child { border-right: 0; }
.imgc-mode-grid input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.imgc-mode-grid label:has(input:checked) { background: var(--ink); color: #fff; }
@supports not selector(:has(*)) {
	.imgc-mode-grid label { justify-content: flex-start; }
	.imgc-mode-grid input { position: static; opacity: 1; pointer-events: auto; margin-right: 8px; }
}
.imgc-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 14px;
}
.imgc-field { display: grid; gap: 8px; }
.imgc-field span {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-weight: 750;
	font-size: 13px;
	line-height: 1.35;
	color: var(--graphite);
}
.imgc-field em {
	font-style: normal;
	font-family: var(--font-mono);
	color: var(--imgc-muted);
	font-size: 11.5px;
	font-weight: 600;
}
.imgc-field input[type="number"],
.imgc-field select {
	width: 100%;
	border: 1px solid var(--imgc-line);
	border-radius: 0;
	background: #fff;
	color: var(--ink);
	font: 14px var(--font-body);
	padding: 12px 13px;
	min-height: 45px;
}
.imgc-field input[type="number"]:focus,
.imgc-field select:focus {
	outline: none;
	border-color: var(--ink);
	box-shadow: 0 0 0 3px var(--imgc-focus);
}
.imgc-field input[type="range"] {
	width: 100%;
	accent-color: var(--signal-deep);
}
.imgc-bg-field {
	margin-top: 16px;
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: 12px;
}
.imgc-bg-field span { grid-column: 1 / -1; justify-content: flex-start; }
.imgc-bg-field input[type="color"] {
	width: 58px;
	height: 44px;
	border: 1px solid var(--imgc-line);
	background: #fff;
	padding: 3px;
	cursor: pointer;
}
.imgc-scale-row {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0;
	margin: 18px 0 14px;
	border: 1px solid var(--imgc-line);
}
.imgc-scale-row button {
	border: 0;
	border-right: 1px solid var(--imgc-line);
	background: #fff;
	padding: 10px 7px;
	font: 800 12px/1.2 var(--font-body);
	color: var(--graphite);
	cursor: pointer;
}
.imgc-scale-row button:last-child { border-right: 0; }
.imgc-scale-row button:hover { background: #fafafa; color: var(--ink); }
.imgc-scale-row button.is-active { background: var(--signal); color: var(--ink); }
.imgc-quality-banner {
	display: none;
	margin: 14px 0 16px;
	padding: 13px 14px;
	border-left: 3px solid var(--signal);
	background: #fff9d7;
	color: var(--ink);
}
.imgc[data-mode="resize"] .imgc-quality-banner { display: block; }
.imgc-quality-banner strong {
	display: block;
	font-family: var(--font-display);
	font-size: 15px;
	line-height: 1.2;
	letter-spacing: -.01em;
}
.imgc-quality-banner span {
	display: block;
	margin-top: 4px;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--graphite);
}

.imgc-options {
	display: grid;
	gap: 0;
	margin-top: 12px;
	border: 1px solid var(--imgc-line);
	border-bottom: 0;
}
.imgc-options label {
	display: flex;
	gap: 10px;
	align-items: center;
	min-height: 42px;
	padding: 10px 12px;
	border-bottom: 1px solid var(--imgc-line);
	font-size: 13.5px;
	color: var(--graphite);
}
.imgc-options input { accent-color: var(--signal-deep); }
.imgc-actions {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 22px;
}
.imgc-actions .btn { padding: 13px 18px; font-size: 14px; }
.imgc-actions button:disabled { opacity: .55; cursor: wait; }
.imgc-link {
	border: 0;
	background: none;
	color: var(--imgc-muted);
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
	padding: 8px 2px;
	font: 750 13px var(--font-body);
}
.imgc-link:hover { color: var(--ink); }
.imgc-status {
	min-height: 18px;
	margin: 14px 0 0;
	color: var(--graphite);
	font-size: 12.5px;
	font-weight: 750;
	line-height: 1.45;
}
.imgc-note {
	margin: 8px 0 0;
	color: var(--imgc-muted);
	font-size: 12.5px;
	line-height: 1.5;
}
.imgc-preview-stage {
	min-height: 392px;
	padding: 18px;
	background:
		linear-gradient(45deg, #ededed 25%, transparent 25%),
		linear-gradient(-45deg, #ededed 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #ededed 75%),
		linear-gradient(-45deg, transparent 75%, #ededed 75%);
	background-color: #fafafa;
	background-size: 22px 22px;
	background-position: 0 0, 0 11px, 11px -11px, -11px 0;
	display: grid;
	place-items: center;
	overflow: hidden;
	border: 1px solid var(--imgc-line);
}
.imgc-preview-stage canvas {
	max-width: 100%;
	max-height: 600px;
	width: auto;
	height: auto;
	display: block;
	background: transparent;
	box-shadow: 0 18px 36px rgba(43,43,43,.16);
	border-radius: 3px;
	transform: translateZ(0);
}
.imgc-empty {
	display: grid;
	place-items: center;
	text-align: center;
	gap: 7px;
	color: var(--imgc-muted);
}
.imgc-empty span {
	width: 58px;
	height: 58px;
	display: grid;
	place-items: center;
	background: #fff;
	border: 1px solid var(--imgc-line);
	color: var(--ink);
	font-size: 28px;
}
.imgc-empty strong { color: var(--ink); font-family: var(--font-display); }
.imgc-empty small { max-width: 300px; }
.imgc-metrics {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	margin-top: 12px;
	border: 1px solid var(--imgc-line);
	border-bottom: 0;
}
.imgc-metrics span {
	padding: 11px 12px;
	border-right: 1px solid var(--imgc-line);
	border-bottom: 1px solid var(--imgc-line);
	background: #fff;
	font-family: var(--font-mono);
	font-size: 11.5px;
	color: var(--imgc-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.imgc-metrics span:nth-child(2n) { border-right: 0; }
.imgc-metrics span:last-child:nth-child(3) {
	grid-column: 1 / -1;
	color: var(--ink);
	border-color: var(--signal-deep);
	background: #fff9dc;
}
.imgc-privacy {
	margin-top: 14px;
	padding: 16px 17px;
	background: var(--ink);
	color: #d8d8d2;
	border-top: 3px solid var(--signal);
}
.imgc-privacy strong {
	display: block;
	color: var(--signal);
	font-family: var(--font-display);
	margin-bottom: 4px;
}
.imgc-privacy p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #cfcfca;
}
@media (max-width: 1280px) {
	.image-tools-hero-grid { grid-template-columns: 1fr; gap: 34px; align-items: start; }
	.image-tools-hero-panel { max-width: 760px; }
	.imgc-product-header { grid-template-columns: 1fr; }
	.imgc-proof { max-width: 560px; }
	.imgc-shell { grid-template-columns: 1fr 1fr; }
	.imgc-panel-settings { border-right: 0; }
	.imgc-panel-preview { position: static; grid-column: 1 / -1; border-top: 1px solid var(--imgc-line); }
}
@media (max-width: 860px) {
	.image-tools-hero { padding: 38px 0 28px; }
	.image-converter-wrap { max-width: 100%; padding-left: 16px; padding-right: 16px; }
	.imgc-product-header { padding: 24px 20px; }
	.imgc-proof { grid-template-columns: 1fr; }
	.imgc-proof div { border-right: 0; border-bottom: 1px solid var(--imgc-line); }
	.imgc-proof div:last-child { border-bottom: 0; }
	.imgc-toolbar { grid-template-columns: 1fr 1fr; }
	.imgc-toolbar span:nth-child(2n) { border-right: 0; }
	.imgc-toolbar span:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.14); }
	.imgc-shell { grid-template-columns: 1fr; }
	.imgc-panel { padding: 22px 18px; border-right: 0; border-bottom: 1px solid var(--imgc-line); }
	.imgc-panel:last-child { border-bottom: 0; }
	.imgc-mode-grid, .imgc-form-grid { grid-template-columns: 1fr; }
	.imgc-mode-grid label { border-right: 0; border-bottom: 1px solid var(--imgc-line); }
	.imgc-mode-grid label:last-child { border-bottom: 0; }
	.imgc-scale-row { grid-template-columns: 1fr 1fr; }
	.imgc-scale-row button { border-bottom: 1px solid var(--imgc-line); }
	.imgc-scale-row button:nth-child(2n) { border-right: 0; }
	.imgc-scale-row button:last-child { grid-column: 1 / -1; border-bottom: 0; }
	.imgc-bg-field { grid-template-columns: 1fr; }
	.imgc-preview-stage { min-height: 300px; }
	.imgc-metrics { grid-template-columns: 1fr; }
	.imgc-metrics span { border-right: 0; }
}
@media (max-width: 560px) {
	.image-tools-hero-panel div { grid-template-columns: 34px 1fr; padding: 18px 14px 15px; }
	.image-tools-hero-actions .btn { width: 100%; justify-content: center; }
	.imgc-format-strip { grid-template-columns: repeat(2, 1fr); }
	.imgc-format-strip span:nth-child(2n) { border-right: 0; }
	.imgc-format-strip span:nth-last-child(-n+4) { border-bottom: 1px solid var(--imgc-line); }
	.imgc-format-strip span:nth-last-child(-n+2) { border-bottom: 0; }
	.imgc-actions .btn { width: 100%; justify-content: center; }
	.imgc-link { width: 100%; text-align: center; }
}

/* ---- Image Tools: features + FAQ (crawlable SEO sections) ---- */
.image-tools-info .section-head,
.image-tools-faq .section-head { margin-bottom: 28px; }
.image-tools-feature-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
.image-tools-feature {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 22px 20px;
	box-shadow: 0 10px 24px rgba(15, 18, 24, 0.04);
}
.image-tools-feature h3 { margin: 0 0 8px; font-size: 18px; }
.image-tools-feature p { margin: 0; color: var(--graphite); font-size: 15px; line-height: 1.6; }
.image-tools-faq { background: var(--mist); border-top: 1px solid var(--line); }
.image-tools-faq-list { max-width: 820px; }
.image-tools-faq-item {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 0 18px;
	margin-bottom: 12px;
}
.image-tools-faq-item summary {
	cursor: pointer;
	font-weight: 600;
	padding: 16px 0;
	list-style: none;
	position: relative;
	padding-right: 32px;
}
.image-tools-faq-item summary::-webkit-details-marker { display: none; }
.image-tools-faq-item summary::after {
	content: '+';
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 20px;
	color: var(--graphite);
}
.image-tools-faq-item[open] summary::after { content: '–'; }
.image-tools-faq-item p { margin: 0 0 16px; color: var(--graphite); line-height: 1.65; }
@media (max-width: 900px) {
	.image-tools-feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.image-tools-feature-grid { grid-template-columns: 1fr; }
}
