/**
 * SmartCleanLab Design System v1.0
 * Global visual foundation for the Astra child theme.
 */

:root {
	--scl-blue: #2563eb;
	--scl-blue-dark: #1d4ed8;
	--scl-navy: #0f172a;
	--scl-bg: #f8fafc;
	--scl-card: #ffffff;
	--scl-border: #e5e7eb;
	--scl-border-strong: #cbd5e1;
	--scl-text: #475569;
	--scl-muted: #64748b;
	--scl-heading: #111827;
	--scl-green: #16a34a;
	--scl-green-bg: #ecfdf5;
	--scl-red: #dc2626;
	--scl-red-bg: #fef2f2;
	--scl-amber: #f59e0b;
	--scl-amber-bg: #fffbeb;
	--scl-radius-sm: 8px;
	--scl-radius-md: 14px;
	--scl-radius-lg: 22px;
	--scl-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
	--scl-shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
}

body {
	background: var(--scl-bg);
	color: var(--scl-text);
	font-size: 16px;
	line-height: 1.7;
	text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--scl-heading);
	font-weight: 750;
	letter-spacing: 0;
	line-height: 1.18;
}

h1 {
	font-size: clamp(2.1rem, 1.7rem + 1.2vw, 3rem);
}

h2 {
	font-size: clamp(1.55rem, 1.35rem + 0.8vw, 2.2rem);
}

h3 {
	font-size: clamp(1.2rem, 1.1rem + 0.35vw, 1.5rem);
}

p {
	margin-bottom: 1.05rem;
}

a {
	color: var(--scl-blue);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus {
	color: var(--scl-blue-dark);
}

img {
	max-width: 100%;
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
}

.site-content,
.ast-container {
	width: min(100% - 32px, 1180px);
	margin-inline: auto;
}

.entry-content > * {
	margin-bottom: 1.25rem;
}

.entry-content > h2,
.entry-content > h3 {
	margin-top: 2.2rem;
}

.scl-section {
	padding: clamp(2rem, 4vw, 4rem) 0;
}

.scl-section-header {
	max-width: 760px;
	margin-bottom: 1.75rem;
}

.scl-section-header p {
	color: var(--scl-muted);
	font-size: 1.05rem;
}

.scl-card,
.scl-review-card,
.scl-methodology-box,
.scl-note {
	background: var(--scl-card);
	border: 1px solid var(--scl-border);
	border-radius: var(--scl-radius-md);
	box-shadow: var(--scl-shadow-sm);
	padding: clamp(1rem, 2.5vw, 1.5rem);
}

a.scl-card,
a.scl-review-card,
.scl-card[href],
.scl-review-card[href] {
	display: block;
	color: inherit;
	text-decoration: none;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

a.scl-card:hover,
a.scl-review-card:hover,
.scl-card[href]:hover,
.scl-review-card[href]:hover {
	border-color: var(--scl-border-strong);
	box-shadow: var(--scl-shadow-md);
	transform: translateY(-2px);
}

.scl-card-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.scl-review-card {
	display: grid;
	gap: 0.85rem;
}

.scl-badge,
.scl-rating {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	min-height: 32px;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.scl-badge {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: var(--scl-blue-dark);
	padding: 0.45rem 0.75rem;
}

.scl-rating {
	background: var(--scl-amber-bg);
	border: 1px solid #fde68a;
	color: #92400e;
	padding: 0.48rem 0.8rem;
}

.scl-pros-cons {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 1.25rem 0;
}

.scl-pros,
.scl-cons {
	border: 1px solid var(--scl-border);
	border-radius: var(--scl-radius-md);
	padding: 1rem;
}

.scl-pros {
	background: var(--scl-green-bg);
	border-color: #bbf7d0;
	border-left: 4px solid var(--scl-green);
}

.scl-cons {
	background: var(--scl-red-bg);
	border-color: #fecaca;
	border-left: 4px solid var(--scl-red);
}

.scl-pros h3,
.scl-cons h3,
.scl-pros h4,
.scl-cons h4 {
	margin-top: 0;
}

.scl-cta {
	background: var(--scl-navy);
	border-radius: var(--scl-radius-lg);
	box-shadow: var(--scl-shadow-md);
	color: #ffffff;
	margin: 1.75rem 0;
	padding: clamp(1.25rem, 3vw, 2rem);
}

.scl-cta h2,
.scl-cta h3,
.scl-cta p {
	color: #ffffff;
}

.scl-button,
.scl-button-secondary {
	align-items: center;
	border-radius: var(--scl-radius-sm);
	display: inline-flex;
	font-weight: 750;
	justify-content: center;
	line-height: 1.2;
	min-height: 44px;
	padding: 0.75rem 1.05rem;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.scl-button {
	background: var(--scl-blue);
	border: 1px solid var(--scl-blue);
	color: #ffffff;
}

.scl-button:hover,
.scl-button:focus {
	background: var(--scl-blue-dark);
	border-color: var(--scl-blue-dark);
	color: #ffffff;
	transform: translateY(-1px);
}

.scl-button-secondary {
	background: #ffffff;
	border: 1px solid var(--scl-blue);
	color: var(--scl-blue);
}

.scl-button-secondary:hover,
.scl-button-secondary:focus {
	background: #eff6ff;
	border-color: var(--scl-blue-dark);
	color: var(--scl-blue-dark);
	transform: translateY(-1px);
}

.scl-comparison-table {
	margin: 1.5rem 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.scl-comparison-table table {
	background: var(--scl-card);
	border: 1px solid var(--scl-border);
	border-collapse: collapse;
	border-radius: var(--scl-radius-md);
	box-shadow: var(--scl-shadow-sm);
	min-width: 680px;
	width: 100%;
}

.scl-comparison-table th,
.scl-comparison-table td {
	border-bottom: 1px solid var(--scl-border);
	padding: 0.85rem 1rem;
	text-align: left;
	vertical-align: top;
}

.scl-comparison-table th {
	background: #f1f5f9;
	color: var(--scl-heading);
	font-weight: 750;
}

.scl-comparison-table tr:last-child td {
	border-bottom: 0;
}

.scl-methodology-box {
	background: #f8fbff;
	border-color: #bfdbfe;
}

.scl-note {
	background: #f8fafc;
	color: var(--scl-muted);
	font-size: 0.95rem;
}

@media (max-width: 768px) {
	body {
		font-size: 15.5px;
	}

	.site-content,
	.ast-container {
		width: min(100% - 24px, 1180px);
	}

	.scl-pros-cons {
		grid-template-columns: 1fr;
	}

	.scl-button,
	.scl-button-secondary {
		width: 100%;
	}
}
