:root {
	--ink: #0f172a;
	--muted: #64748b;
	--line: #e2e8f0;
	--accent: #1d4ed8;
	--accent-ink: #ffffff;
	--pass: #15803d;
	--warn: #b45309;
	--fail: #b91c1c;
	--info: #475569;
	--bg: #f8fafc;
	--card: #ffffff;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.audit {
	max-width: 680px;
	margin: 0 auto;
	padding: 24px 20px 48px;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 4px 0 24px;
}

.brand {
	font-weight: 800;
	font-size: 18px;
	letter-spacing: -0.02em;
}

.lang-toggle {
	display: inline-flex;
	border: 1px solid var(--line);
	border-radius: 999px;
	overflow: hidden;
	background: var(--card);
}

.lang-toggle button {
	border: 0;
	background: transparent;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
	cursor: pointer;
}

.lang-toggle button.active {
	background: var(--ink);
	color: #fff;
}

.hero { flex: 1; }

.eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 32px 0 12px;
}

h1 {
	font-size: clamp(28px, 5.5vw, 40px);
	line-height: 1.15;
	letter-spacing: -0.03em;
	margin: 0 0 16px;
}

.sub {
	font-size: 17px;
	line-height: 1.6;
	color: var(--muted);
	margin: 0 0 32px;
	max-width: 560px;
}

#audit-form {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.field { margin-bottom: 16px; }

.field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
}

.field input {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 16px;
	font-family: inherit;
	color: var(--ink);
	background: #fff;
}

.field input:focus {
	outline: 2px solid var(--accent);
	outline-offset: -1px;
	border-color: var(--accent);
}

.hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.submit {
	width: 100%;
	border: 0;
	border-radius: 10px;
	padding: 14px;
	font-size: 16px;
	font-weight: 700;
	font-family: inherit;
	color: var(--accent-ink);
	background: var(--accent);
	cursor: pointer;
	transition: background 0.15s ease;
}

.submit:hover { background: #1e40af; }
.submit:disabled { opacity: 0.6; cursor: progress; }

.hint {
	font-size: 13px;
	color: var(--muted);
	text-align: center;
	margin: 12px 0 0;
}

.form-error {
	font-size: 14px;
	color: var(--fail);
	margin: 12px 0 0;
	text-align: center;
}

.result {
	margin-top: 24px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.score {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 20px;
}

.score-num {
	font-size: 44px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
	min-width: 72px;
}

.score.good .score-num { color: var(--pass); }
.score.mid .score-num { color: var(--warn); }
.score.bad .score-num { color: var(--fail); }

.score-label { font-weight: 700; font-size: 17px; }
.score-domain { font-size: 14px; color: var(--muted); }

.checks { list-style: none; margin: 0; padding: 0; }

.checks li {
	display: flex;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}

.checks li:last-child { border-bottom: 0; }

.ico {
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 800;
	color: #fff;
	margin-top: 1px;
}

.checks li.pass .ico { background: var(--pass); }
.checks li.warn .ico { background: var(--warn); }
.checks li.fail .ico { background: var(--fail); }
.checks li.info .ico { background: var(--info); }

.check-title { font-weight: 700; font-size: 15px; }
.check-detail { font-size: 14px; color: var(--muted); margin-top: 2px; }
.check-fix { font-size: 14px; margin-top: 6px; line-height: 1.55; }

.all-good {
	font-size: 15px;
	font-weight: 600;
	color: var(--pass);
	padding: 8px 0;
}

.cta {
	margin-top: 20px;
	border-top: 1px solid var(--line);
	padding-top: 20px;
}

.cta p { margin: 0 0 12px; font-size: 14px; color: var(--muted); line-height: 1.55; }

.cta a {
	display: inline-block;
	border-radius: 10px;
	padding: 12px 18px;
	background: var(--ink);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.cta a:hover { background: #1e293b; }

.foot {
	padding-top: 32px;
	font-size: 13px;
	color: var(--muted);
	text-align: center;
}

@media (max-width: 480px) {
	.hero .eyebrow { margin-top: 16px; }
	#audit-form, .result { padding: 18px; }
}
