/* Main colors */
:root {
	--bg: #f5f7fb;
	--surface: #ffffff;
	--text: #171a21;
	--muted: #707786;
	--line: #e2e6ed;
	--dark: #171a21;
	--accent: #6d5dfc;
	--accent2: #8b7fff;
	--soft: #f0efff;
}
* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}
body {
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	background: var(--bg);
	color: var(--text);
}
a {
	color: inherit;
	text-decoration: none;
}
button,
input,
select,
textarea {
	font: inherit;
}
button {
	cursor: pointer;
}
.hidden {
	display: none !important;
}

/* Brand and navigation */
.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 20px;
	font-weight: 800;
}
.logo-mark {
	width: 46px;
	height: 46px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--dark), var(--accent));
	color: #fff;
	font-size: 24px;
}
.logo-mark.light {
	background: #fff;
	color: var(--dark);
}
.public-nav {
	position: sticky;
	top: 0;
	z-index: 30;
	height: 84px;
	padding: 0 6%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #fff;
	border-bottom: 1px solid var(--line);
	box-shadow: 0 5px 20px rgba(20, 24, 35, 0.05);
}
.public-nav nav {
	display: flex;
	align-items: center;
	gap: 22px;
}
.public-nav nav > a:not(.btn) {
	position: relative;
	font-weight: 600;
}
.public-nav nav > a:not(.btn)::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: -8px;
	height: 2px;
	background: var(--accent);
	transition: 0.2s;
}
.public-nav nav > a:not(.btn):hover::after,
.public-nav .active-link::after {
	right: 0;
}

/* Buttons and shared text */
.btn {
	display: inline-block;
	padding: 11px 17px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	font-weight: 700;
	transition: 0.2s;
}
.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(20, 24, 35, 0.1);
}
.btn:focus,
input:focus,
select:focus,
textarea:focus {
	outline: 2px solid var(--accent2);
	outline-offset: 2px;
}
.btn-accent {
	color: #fff;
	border: 0;
	background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.full {
	width: 100%;
}
.eyebrow {
	font-size: 12px;
	letter-spacing: 1.4px;
	font-weight: 800;
	color: var(--accent);
}
.large-eyebrow {
	font-size: 13px;
	letter-spacing: 1.7px;
}
.text-link {
	color: var(--accent);
	font-weight: 700;
}

/* Landing page */
.hero {
	width: min(1180px, 90%);
	min-height: 610px;
	margin: auto;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 64px;
	align-items: center;
}
.hero h1 {
	max-width: 640px;
	margin: 12px 0;
	font-size: clamp(44px, 6vw, 70px);
	line-height: 1.03;
}
.hero p,
.section-heading p,
.about-hero p {
	color: var(--muted);
	line-height: 1.7;
	font-size: 18px;
}
.hero-actions {
	display: flex;
	gap: 12px;
	margin-top: 26px;
}
.hero-card {
	padding: 16px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 22px;
	box-shadow: 0 20px 50px rgba(20, 24, 35, 0.12);
}
.hero-image {
	height: 350px;
	overflow: hidden;
	border-radius: 16px;
	position: relative;
	background: #d9dde5;
}
.before-tag,
.after-tag,
.compare-tag {
	position: absolute;
	top: 18px;
	padding: 7px 10px;
	border-radius: 8px;
	background: #fff;
	font-size: 12px;
	font-weight: 700;
	z-index: 5;
}
.before-tag {
	left: 18px;
}
.after-tag {
	right: 18px;
}
.hero-divider {
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 2px;
	background: #fff;
	z-index: 4;
}
.hero-divider .hero-handle {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.hero-divider .hero-arrow {
	position: static;
	transform: none;
	width: auto;
	height: auto;
	display: block;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--accent);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
}
.section {
	width: min(1180px, 90%);
	margin: 70px auto 100px;
}
.section-heading {
	margin-bottom: 30px;
}
.section-heading h2,
.about-hero h1 {
	font-size: 38px;
	margin: 8px 0;
}
.card-grid {
	display: grid;
	gap: 18px;
}
.card-grid.three {
	grid-template-columns: repeat(3, 1fr);
}
.card-grid.four {
	grid-template-columns: repeat(4, 1fr);
}
.info-card,
.feature-card,
.panel,
.responsibility-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 22px;
}
.info-card p,
.feature-card p,
.panel p,
.responsibility-card p {
	color: var(--muted);
	line-height: 1.7;
}
.feature-card > span {
	font-size: 30px;
	color: var(--accent);
}
.process-card {
	transition: 0.2s;
}
.process-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(20, 24, 35, 0.08);
}
.process-visual {
	height: 170px;
	margin-bottom: 18px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, #f3f2ff, #dedaff);
	color: var(--accent);
	font-size: 54px;
	position: relative;
	overflow: hidden;
}
.configure-visual {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 15px;
}
.configure-visual span {
	font-size: 42px;
}
.configure-visual i {
	width: 65%;
	height: 7px;
	border-radius: 20px;
	background: #c8c2ff;
	position: relative;
}
.configure-visual i::after {
	content: "";
	position: absolute;
	top: -5px;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	background: var(--accent);
}
.configure-visual i:nth-of-type(1)::after {
	left: 72%;
}
.configure-visual i:nth-of-type(2)::after {
	left: 28%;
}
.configure-visual i:nth-of-type(3)::after {
	left: 55%;
}
.compare-visual {
	background: linear-gradient(90deg, #d6d9e1 0 50%, #7c70eb 50%);
	color: #fff;
}
/* Login and register */
.auth-body {
	min-height: 100vh;
	overflow: hidden;
	background: linear-gradient(135deg, #f7f8fc, #efedff);
}
.auth-center {
	height: calc(100vh - 84px);
	display: grid;
	place-items: center;
	padding: 24px 20px;
}
.auth-card {
	width: min(390px, 92vw);
	padding: 30px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 20px;
	box-shadow: 0 20px 50px rgba(20, 24, 35, 0.1);
}
.auth-card h1 {
	font-size: 31px;
	margin: 8px 0;
}
.auth-card > p {
	color: var(--muted);
}
.auth-card form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 22px;
}
.auth-card label,
.controls-grid label,
.ai-controls label {
	display: flex;
	flex-direction: column;
	gap: 7px;
	font-weight: 700;
}
input,
select,
textarea {
	width: 100%;
	padding: 11px;
	border: 1px solid #cfd4de;
	border-radius: 9px;
	background: #fff;
}
.auth-switch {
	margin-bottom: 0;
	text-align: center;
}
.auth-switch a {
	color: var(--accent);
	font-weight: 700;
}
.register-card {
	padding-top: 26px;
	padding-bottom: 26px;
}

/* About page */
.about-page {
	width: min(1080px, 90%);
	margin: auto;
}
.about-hero {
	padding: 70px 0 34px;
	max-width: 850px;
}
.about-grid {
	margin: 10px 0 60px;
}
.about-card {
	min-height: 210px;
}
.about-icon {
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: var(--soft);
	color: var(--accent);
	font-size: 22px;
}
.responsibility-section {
	margin: 20px 0 80px;
}
.compact-heading {
	margin-bottom: 24px;
}
.responsibility-card strong {
	font-size: 19px;
}
/* App sidebar */
.app-body {
	min-height: 100vh;
	padding-left: 230px;
}
.sidebar {
	position: fixed;
	left: 0;
	top: 0;
	bottom: 0;
	width: 230px;
	padding: 24px 16px;
	background: var(--dark);
	border-right: 2px solid var(--accent);
	color: #fff;
	display: flex;
	flex-direction: column;
}
.side-brand {
	margin: 0 8px 20px;
	font-size: 21px;
}
.sidebar-user {
	margin: 0 8px 20px;
	padding: 10px 12px;
	border-radius: 10px;
	background: linear-gradient(
		135deg,
		rgba(109, 93, 252, 0.28),
		rgba(139, 127, 255, 0.12)
	);
	border: 1px solid rgba(139, 127, 255, 0.45);
	color: #fff;
	overflow: hidden;
}
.sidebar-user-label {
	display: block;
	color: #9fa6b4;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
}
.sidebar-user strong {
	display: block;
	margin-top: 4px;
	font-size: 18px;
	line-height: 1.3;
	overflow-wrap: anywhere;
}
.side-nav {
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.side-nav a,
.logout-link {
	padding: 14px 15px;
	border-radius: 10px;
	color: #cbd0d9;
	transition: 0.2s;
	font-size: 16px;
	line-height: 1.2;
	display: flex;
	align-items: center;
	gap: 6px;
}
.side-nav a:hover,
.side-nav a.active,
.logout-link:hover {
	background: #292d36;
	color: #fff;
}
.side-nav a.active {
	background: linear-gradient(135deg, #3d356b, #6d5dfc);
}
.side-nav span,
.logout-link span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 19px;
	font-size: 19px;
	line-height: 1;
}
.sidebar-bottom {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.logout-link {
	border: 1px solid #c54b4b;
	background: transparent;
	color: #c54b4b;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.logout-link:hover {
	border-color: #c54b4b;
	background: #c54b4b;
	color: #fff;
}
.app-main {
	padding: 26px 4% 70px;
}
.app-header {
	min-height: 90px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.app-header h1 {
	font-size: 36px;
	margin: 5px 0;
}

/* Dashboard */
.dashboard-hero {
	min-height: 245px;
	padding: 36px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: linear-gradient(135deg, #fff 60%, #eeecff);
	border: 1px solid var(--line);
	border-radius: 20px;
}
.dashboard-hero h2 {
	font-size: 36px;
	margin: 10px 0;
}
.dashboard-hero p {
	color: var(--muted);
	max-width: 620px;
	line-height: 1.6;
}
.dashboard-logo {
	width: 120px;
	height: 120px;
	margin-right: 25px;
	border-radius: 32px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--dark), var(--accent));
	color: #fff;
	font-size: 52px;
	font-weight: 800;
}
.stats-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin: 18px 0;
}
.stats-grid article {
	padding: 18px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 15px;
	display: flex;
	gap: 13px;
	align-items: center;
}
.stats-grid article > span {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: 11px;
	background: var(--soft);
	color: var(--accent);
	font-size: 22px;
}
.stats-grid small,
.stats-grid strong {
	display: block;
}
.stats-grid small {
	color: var(--muted);
	margin-bottom: 5px;
}
.dashboard-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}
.dashboard-panel {
	min-height: 245px;
}
.workflow-steps {
	display: grid;
	grid-template-columns: 30px 1fr;
	align-items: center;
	gap: 8px 10px;
	margin-top: 16px;
}
.workflow-steps span {
	width: 27px;
	height: 27px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--soft);
	color: var(--accent);
	font-size: 12px;
	font-weight: 800;
}
.workflow-steps p {
	margin: 0;
}
.recent-activity-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 16px 0;
}
.recent-activity-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 6px;
	border: 1px solid var(--line);
	border-radius: 10px;
	transition: 0.2s;
}
.recent-activity-item:hover {
	border-color: var(--accent);
	background: var(--soft);
}
.recent-activity-item img {
	width: 100%;
	height: 105px;
	border-radius: 7px;
	object-fit: cover;
}
.recent-activity-item small {
	display: block;
}
.recent-activity-meta {
	justify-content: center;
}

/* Workspace */
.workspace-main {
	max-width: 1500px;
	margin: auto;
}
.workspace-header {
	min-height: 115px;
}
.workspace-header p {
	margin: 4px 0 0;
	color: var(--muted);
}
.studio-section {
	width: 100%;
	margin: 0 auto 20px;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 18px;
}
.studio-heading {
	display: flex;
	gap: 14px;
	align-items: center;
}
.studio-heading > span {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: var(--soft);
	color: var(--accent);
	font-weight: 800;
}
.studio-heading h2,
.studio-heading p {
	margin: 0;
}
.studio-heading p {
	margin-top: 5px;
	color: var(--muted);
}
.upload-zone {
	min-height: 285px;
	margin-top: 22px;
	padding: 25px;
	border: 2px dashed #cfd4de;
	border-radius: 16px;
	display: grid;
	place-items: center;
	align-content: center;
	text-align: center;
	transition: 0.2s;
}
.upload-zone.dragging {
	border-color: var(--accent);
	background: var(--soft);
}
.upload-zone p {
	color: var(--muted);
}
.upload-icon {
	font-size: 38px;
	color: var(--accent);
}
.preview-area {
	margin-top: 22px;
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 20px;
	align-items: center;
}
.preview-area img {
	width: 220px;
	max-height: 180px;
	object-fit: contain;
	border-radius: 12px;
	background: #eee;
}
.preview-area p {
	color: var(--muted);
}
.processed-area {
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 20px;
	align-items: center;
}
.preview-image-button {
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.processed-area img {
	width: 220px;
	max-height: 180px;
	object-fit: contain;
	border-radius: 12px;
	background: #eee;
}
.preview-image-button:hover img {
	opacity: 0.85;
}
.processed-area p {
	color: var(--muted);
}
.mode-toggle {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	max-width: 620px;
	margin: 24px auto;
	padding: 5px;
	background: #f2f3f6;
	border-radius: 12px;
}
.mode-toggle button {
	position: relative;
	z-index: 1;
	padding: 12px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--text);
	font-weight: 800;
	transition: 0.5s ease;
}
.mode-toggle::before {
	content: "";
	position: absolute;
	top: 5px;
	bottom: 5px;
	left: 5px;
	width: calc(50% - 5px);
	border-radius: 9px;
	background: linear-gradient(135deg, var(--accent), var(--accent2));
	box-shadow: 0 3px 10px rgba(20, 24, 35, 0.08);
	transition: transform 0.5s ease;
	pointer-events: none;
}

.mode-toggle button.active {
	color: #fff;
}
.mode-toggle.ai-selected::before {
	transform: translateX(100%);
}
.controls-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px 22px;
}
.controls-grid label {
	position: relative;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 13px;
	background: #fbfbfd;
}
.controls-grid input[type="range"] {
	padding: 0;
	accent-color: var(--accent);
}
.control-value {
	position: absolute;
	right: 16px;
	top: 16px;
	color: var(--accent);
	font-size: 12px;
}
.ai-controls {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}
.ai-controls label {
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #fbfbfd;
}
.ai-controls small {
	color: var(--muted);
	font-weight: 400;
	line-height: 1.4;
}
.ai-controls textarea {
	min-height: 115px;
	resize: vertical;
}
.upscale-control {
	align-self: start;
}
.processing-section {
	padding-bottom: 20px;
}
.processing-action {
	margin-top: 22px;
	padding: 20px;
	border-radius: 14px;
	background: #f7f7fa;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}
.process-button {
	min-width: 210px;
	text-align: center;
	font-size: 16px;
}
.process-button.is-processing {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: wait;
}
.process-button.is-processing::before {
	content: "";
	width: 14px;
	height: 14px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: process-spin 0.8s linear infinite;
}
.process-button:disabled {
	opacity: 0.8;
	transform: none;
	box-shadow: none;
}
@keyframes process-spin {
	to {
		transform: rotate(360deg);
	}
}
.processing-action p {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
}
.status-text {
	min-height: 20px;
	margin-bottom: 0;
	text-align: center;
	color: var(--accent);
	font-weight: 700;
}
.page-note {
	color: var(--muted);
}

/* Gallery */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 25px;
}
.gallery-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	overflow: hidden;
	transition: 0.2s;
}
.gallery-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 25px rgba(20, 24, 35, 0.1);
}
.gallery-card-preview {
	display: block;
	width: 100%;
	padding: 0;
	text-align: left;
	background: #fff;
	border: 0;
}
.gallery-card-preview:focus-visible,
.gallery-edit:focus-visible,
.gallery-delete:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: -2px;
}
.gallery-thumb {
	height: 260px;
	position: relative;
	overflow: hidden;
	background: #e9ebf0;
	border-bottom: 2px solid var(--accent);
}
.gallery-thumb img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}
.gallery-info {
	padding: 16px;
}
.gallery-title {
	display: block;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.gallery-info-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 10px;
}
.gallery-chips {
	display: flex;
	gap: 7px;
	flex-wrap: wrap;
}
.gallery-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}
.gallery-edit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 34px;
	padding: 0 12px;
	border: 1px solid var(--accent);
	border-radius: 10px;
	color: var(--accent);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}
.gallery-edit:hover {
	background: var(--accent);
	color: #fff;
}
.chip {
	padding: 5px 8px;
	border-radius: 999px;
	background: #f0f1f5;
	color: var(--muted);
	font-size: 11px;
}
.ai-chip {
	background: var(--soft);
	color: var(--accent);
}
.gallery-delete {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid #c54b4b;
	border-radius: 10px;
	background: #fff;
	color: #c54b4b;
	white-space: nowrap;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.gallery-delete:hover {
	border-color: #c54b4b;
	background: #c54b4b;
	color: #fff;
}
.trash-icon {
	display: block;
	width: 16px;
	height: 16px;
}

/* Before and after modal */
.modal {
	position: fixed;
	inset: 0;
	z-index: 40;
	padding: 20px;
	display: grid;
	place-items: center;
	background: rgba(12, 15, 22, 0.72);
}
.modal-card {
	width: min(1200px, 95vw);
	max-height: calc(100vh - 40px);
	padding: 25px;
	background: #fff;
	border-radius: 20px;
	position: relative;
	overflow-y: auto;
}
.modal-close {
	position: absolute;
	right: 18px;
	top: 12px;
	border: 0;
	background: none;
	font-size: 30px;
}
.comparison-box {
	height: clamp(300px, 65vh, 720px);
	position: relative;
	overflow: hidden;
	border-radius: 14px;
	margin-top: 20px;
	background: #d9dde5;
	cursor: grab;
	user-select: none;
	touch-action: none;
}
.comparison-box:active {
	cursor: grabbing;
}
.comparison-box.single-image,
.comparison-box.single-image:active {
	cursor: default;
}
.comparison-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.before-layer {
	position: absolute;
	inset: 0;
	z-index: 1;
}
.after-layer {
	position: absolute;
	inset: 0;
	z-index: 3;
	overflow: hidden;
	clip-path: inset(0 0 0 50%);
}
.after-layer .comparison-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.compare-line {
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 3px;
	background: #fff;
	z-index: 6;
	pointer-events: none;
}
.compare-line .compare-handle {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.compare-handle .handle-arrow {
	position: static;
	transform: none;
	width: auto;
	height: auto;
	display: block;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--accent);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
	transform: translateY(-2.5px);
}
.compare-tag {
	position: absolute;
	top: 16px;
	z-index: 8;
	padding: 7px 10px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.92);
	font-size: 12px;
	font-weight: 700;
}
.compare-before {
	left: 16px;
}
.compare-after {
	right: 16px;
}
.comparison-help {
	margin: 12px 0 0;
	color: var(--muted);
	text-align: center;
	font-size: 13px;
}
.edit-choice-card {
	width: min(460px, 95vw);
}
.edit-choice-card h2 {
	margin: 8px 0;
}
.edit-choice-card p {
	margin: 0;
	color: var(--muted);
}
.edit-choice-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 24px;
}

/* Tablet */

@media (max-width: 900px) {
	.hero,
	.dashboard-grid {
		grid-template-columns: 1fr;
	}
	.hero {
		padding: 60px 0;
		min-height: auto;
	}
	.hero-card {
		max-width: 650px;
	}
	.card-grid.four,
	.card-grid.three,
	.stats-grid,
	.controls-grid,
	.ai-controls,
	.gallery-grid {
		grid-template-columns: 1fr 1fr;
	}
	.app-body {
		padding-left: 0;
	}
	.sidebar {
		position: relative;
		width: 100%;
		min-height: auto;
		border-right: 0;
		border-bottom: 2px solid var(--accent);
	}
	.sidebar-bottom {
		margin-top: 25px;
	}
	.app-main {
		padding-top: 20px;
	}
}

/* Mobile */

@media (max-width: 600px) {
	.public-nav {
		padding: 0 4%;
	}
	.public-nav nav a:not(.btn) {
		display: none;
	}
	.brand-name {
		font-size: 18px;
	}
	.logo-mark {
		width: 40px;
		height: 40px;
	}
	.card-grid.four,
	.card-grid.three,
	.stats-grid,
	.controls-grid,
	.ai-controls,
	.gallery-grid {
		grid-template-columns: 1fr;
	}
	.hero h1 {
		font-size: 44px;
	}
	.hero-card {
		display: none;
	}
	.dashboard-logo {
		display: none;
	}
	.preview-area {
		grid-template-columns: 1fr;
	}
	.processed-area {
		grid-template-columns: 1fr;
	}
	.app-main {
		padding: 20px;
	}
	.comparison-box {
		height: clamp(220px, 55vh, 420px);
	}
}

/* Homepage logo comparison */
.logo-comparison {
	background: linear-gradient(90deg, #d9dbe4 0 50%, #eeecff 50%);
}
.hero-logo-demo {
	width: 145px;
	height: 145px;
	border-radius: 30px;
	display: grid;
	place-items: center;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background: linear-gradient(135deg, #25235f, #6d5dfc);
	color: #fff;
	font-size: 82px;
	font-weight: 800;
	box-shadow: 0 14px 30px rgba(50, 43, 120, 0.2);
	z-index: 2;
}
/* Website footer */
.site-footer {
	background: #171a21;
	color: #fff;
	padding: 48px 6% 20px;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 42px;
	max-width: 1400px;
	margin: 0 auto;
}
.footer-brand .brand {
	color: #fff;
	display: inline-flex;
}
.footer-brand p {
	color: #aeb4c0;
	max-width: 300px;
	line-height: 1.6;
}
.footer-column {
	display: flex;
	flex-direction: column;
	gap: 11px;
}
.footer-column h3 {
	margin: 0 0 7px;
	font-size: 16px;
}
.footer-column p,
.footer-column a {
	margin: 0;
	color: #aeb4c0;
	font-size: 14px;
	align-self: flex-start;
}
.footer-column a:hover {
	color: #8b7fff;
}
.footer-bottom {
	max-width: 1400px;
	margin: 38px auto 0;
	padding-top: 18px;
	border-top: 1px solid #30343d;
	color: #858c99;
	font-size: 13px;
}

@media (max-width: 900px) {
	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.footer-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.site-footer {
		padding-top: 36px;
	}
}

.modal-title-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.modal-title-row h2 {
	margin: 0;
}

.modal-ai-sign {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1px solid var(--accent);
	border-radius: 8px;
	color: var(--accent);
	background: #fff;
	font-size: 18px;
}

.modal-ai-sign.hidden {
	display: none;
}

.compare-before,
.compare-after {
	background: #fff;
	color: #111;
}

.responsibility-card .member-name {
	margin: 7px 0 10px;
	color: #6c5cff;
	font-weight: 600;
}

.gallery-ai-icon {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--accent);
	border-radius: 10px;
	background: #ffffffe1;
	color: var(--accent);
	font-size: 30px;
	z-index: 2;
	line-height: 1;
	padding-top: 2px;
}
.upload-error {
	margin-top: 12px;
	padding: 14px 16px;
	border: 1px solid #d94b4b;
	border-radius: 10px;
	background: #fff3f3;
	color: #9f2525;
}

.upload-error strong {
	display: block;
	margin-bottom: 4px;
}

.upload-error p {
	margin: 0;
	color: #6f2b2b;
}
