/* Atelier Maillon Design System — Maillon PO for WooCommerce */

:root {
	--paper: #f5f3ee;
	--surface: #faf9f6;
	--alt: #ece8df;
	--border: #dad4c6;
	--ink: #141a18;
	--muted: #505b56;
	--accent: #0e5a47;
	--accent-dark: #094536;
	--accent-soft: #e6f2ee;
	--console: #111715;
	--console-ink: #e5ebe8;
	--warn-bg: #fef4e6;
	--warn-ink: #8a4b08;
	--err-bg: #fdecec;
	--err-ink: #9f1c1c;
	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
	font-family: 'Bricolage Grotesque', system-ui, sans-serif;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0;
}

code,
pre,
.mono {
	font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 30;
	background: rgba(245, 243, 238, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 66px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--ink);
	font-family: 'Bricolage Grotesque', sans-serif;
	font-weight: 700;
	font-size: 18px;
}

.brand-logo {
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.brand-logo svg {
	width: 34px;
	height: 34px;
	display: block;
}

.brand-sub {
	color: var(--accent);
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 18px;
	font-size: 14px;
}

.nav-links a {
	color: var(--muted);
	text-decoration: none;
	font-weight: 500;
	transition: color 160ms var(--ease-out);
}

.nav-links a:hover {
	color: var(--accent);
}

.lang-pill {
	padding: 4px 10px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	font-size: 12px;
	font-weight: 600;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 18px;
	border-radius: 9px;
	border: 1px solid transparent;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 120ms var(--ease-out);
}

.btn:active {
	transform: scale(0.97);
}

.btn-primary {
	background: var(--accent);
	color: #ffffff;
}

.btn-primary:hover {
	background: var(--accent-dark);
}

.btn-outline {
	background: var(--surface);
	border-color: var(--border);
	color: var(--ink);
}

.btn-outline:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.btn-sm {
	padding: 7px 12px;
	font-size: 12.5px;
}

/* Hero */
.hero {
	padding: 54px 0 36px;
}

.hero-meta {
	margin: 0 0 14px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--accent);
}

.hero h1 {
	font-size: clamp(32px, 4.4vw, 50px);
	max-width: 820px;
	margin-bottom: 16px;
}

.hero-lead {
	font-size: 17px;
	color: var(--muted);
	max-width: 720px;
	margin: 0 0 24px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 26px;
}

.trust-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	font-size: 13px;
	color: var(--muted);
}

.trust-strip span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.trust-dot {
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: var(--accent);
}

/* Workbench */
.workbench-section {
	padding: 12px 0 56px;
}

.panel {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 24px;
	margin-bottom: 20px;
}

.panel-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 16px;
}

.sample-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.sample-btn {
	padding: 8px 13px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: var(--paper);
	color: var(--ink);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 120ms var(--ease-out);
}

.sample-btn:hover,
.sample-btn.is-active {
	border-color: var(--accent);
	background: var(--accent-soft);
	color: var(--accent);
}

.sample-btn:active {
	transform: scale(0.97);
}

.intake-grid {
	display: grid;
	grid-template-columns: 1fr 1.45fr;
	gap: 18px;
}

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

.dropzone {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	min-height: 170px;
	padding: 20px;
	border: 2px dashed #c4bda9;
	border-radius: 10px;
	background: var(--paper);
	cursor: pointer;
	transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

.dropzone:hover,
.dropzone.is-dragover {
	border-color: var(--accent);
	background: var(--accent-soft);
}

.dropzone input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.paste-area textarea {
	width: 100%;
	min-height: 145px;
	padding: 12px;
	border: 1px solid var(--border);
	border-radius: 9px;
	background: #ffffff;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--ink);
}

.paste-actions {
	margin-top: 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

/* KPIs & Alerts */
.kpis {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.kpi {
	padding: 10px 14px;
	border: 1px solid var(--border);
	border-radius: 9px;
	background: #ffffff;
	min-width: 140px;
}

.kpi span {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--muted);
}

.kpi strong {
	font-size: 18px;
	font-variant-numeric: tabular-nums;
}

.alerts {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 16px;
}

.alert {
	padding: 11px 14px;
	border-radius: 9px;
	font-size: 13.5px;
	font-weight: 500;
	border: 1px solid var(--border);
}

.alert-err {
	background: var(--err-bg);
	border-color: #f1b5b5;
	color: var(--err-ink);
}

.alert-warn {
	background: var(--warn-bg);
	border-color: #f3d2a2;
	color: var(--warn-ink);
}

.alert-ok {
	background: var(--accent-soft);
	border-color: #b7dbd0;
	color: var(--accent);
}

/* Table */
.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: #ffffff;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
}

th {
	text-align: left;
	padding: 10px 10px;
	background: var(--alt);
	border-bottom: 1px solid var(--border);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--muted);
	white-space: nowrap;
}

td {
	padding: 10px 10px;
	border-bottom: 1px solid #ece8df;
	vertical-align: top;
}

.num {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.center {
	text-align: center;
}

td input[type="number"],
td select {
	padding: 5px 7px;
	border: 1px solid var(--border);
	border-radius: 6px;
	font-size: 12.5px;
	background: #ffffff;
	color: var(--ink);
}

.input-num {
	width: 70px;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.tag-row {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 6px;
}

.tag {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
}

.tag-ok {
	background: var(--accent-soft);
	color: var(--accent);
}

.tag-warn {
	background: var(--warn-bg);
	color: var(--warn-ink);
}

.tag-err {
	background: var(--err-bg);
	color: var(--err-ink);
}

.workbench-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	margin-top: 16px;
}

.console-box {
	margin-top: 18px;
	background: var(--console);
	color: var(--console-ink);
	border-radius: 10px;
	padding: 18px;
	overflow-x: auto;
}

.console-box pre {
	margin: 8px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: #cbe7dc;
}

/* Feature grid */
.features-section {
	padding: 24px 0 60px;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-top: 22px;
}

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

.feature-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 20px;
}

.feature-card h3 {
	font-size: 18px;
	margin-bottom: 8px;
}

.feature-card p {
	margin: 0;
	font-size: 14px;
	color: var(--muted);
}

/* Footer */
.site-footer {
	border-top: 1px solid var(--border);
	padding: 28px 0 42px;
	font-size: 13.5px;
	color: var(--muted);
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 14px;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.footer-links a {
	color: var(--ink);
	text-decoration: none;
}

.footer-links a:hover {
	color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
	.btn,
	.sample-btn,
	.dropzone,
	.nav-links a {
		transition: none;
	}
	.btn:active,
	.sample-btn:active {
		transform: none;
	}
}
