/*!
 * AK22 SEO Health Checker v1.0.0 — front-end styles.
 * Scoped to .ak22shc. Colours follow the AK22 Elementor kit:
 * Dark #0B0F14, Secondary Dark #141A22, Accent #00D1C7, Accent Hover #00B5AD, Highlight #74F7FF.
 */
.ak22shc {
	--ak-bg: #0B0F14;
	--ak-card: #141A22;
	--ak-card-2: #10151C;
	--ak-line: rgba(255, 255, 255, 0.09);
	--ak-line-2: rgba(255, 255, 255, 0.18);
	--ak-text: #FFFFFF;
	--ak-muted: rgba(255, 255, 255, 0.74);
	--ak-soft: rgba(255, 255, 255, 0.6);
	--ak-accent: #00D1C7;
	--ak-accent-h: #00B5AD;
	--ak-high: #74F7FF;
	--ak-pass: #34D399;
	--ak-warn: #FBBF24;
	--ak-fail: #F87171;
	--ak-na: #A3AEBD;
	--ak-head: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--ak-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	box-sizing: border-box;
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	color: var(--ak-muted);
	font-family: var(--ak-body);
	font-size: 16px;
	line-height: 1.6;
	text-align: left;
}
.ak22shc *, .ak22shc *::before, .ak22shc *::after { box-sizing: border-box; }
.ak22shc [hidden] { display: none !important; }
.ak22shc.ak22shc h3, .ak22shc.ak22shc h4 { font-family: var(--ak-head); color: var(--ak-text); margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
.ak22shc p { margin: 0; }
.ak22shc a { color: var(--ak-high); text-decoration: underline; text-underline-offset: 3px; }
.ak22shc a:hover { color: #FFFFFF; }
.ak22shc :focus-visible { outline: 3px solid var(--ak-high); outline-offset: 3px; border-radius: 6px; }
.ak22shc__sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Stage 1 + 2: introduction and form ---------- */
.ak22shc__stage--form {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
	gap: 28px;
	align-items: start;
}
.ak22shc__intro,
.ak22shc__form,
.ak22shc__progress,
.ak22shc__result,
.ak22shc__cta {
	background: var(--ak-card);
	border: 1px solid var(--ak-line);
	border-radius: 18px;
	min-width: 0;
}
.ak22shc__intro { padding: 32px 28px; }
.ak22shc__kicker {
	font-family: var(--ak-head);
	color: var(--ak-text);
	font-size: 19px;
	font-weight: 600;
	margin-bottom: 18px !important;
}
.ak22shc__scope { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ak22shc__scope li { display: flex; gap: 14px; align-items: flex-start; margin: 0; font-size: 15px; line-height: 1.5; }
.ak22shc__scope strong { display: block; color: var(--ak-text); font-weight: 600; font-size: 15.5px; margin-bottom: 2px; }
.ak22shc__scope-icon {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	margin-top: 1px;
	border-radius: 8px;
	background: rgba(0, 209, 199, 0.12);
	border: 1px solid rgba(0, 209, 199, 0.35);
	position: relative;
}
.ak22shc__scope-icon::after {
	content: "";
	position: absolute;
	left: 8px;
	top: 5px;
	width: 7px;
	height: 11px;
	border: solid var(--ak-accent);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.ak22shc__note { margin-top: 22px !important; padding-top: 18px; border-top: 1px solid var(--ak-line); font-size: 14.5px; color: var(--ak-soft); }

.ak22shc__form { padding: 32px 30px; display: grid; gap: 18px; }
.ak22shc__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.ak22shc__field { display: grid; gap: 7px; min-width: 0; }
.ak22shc__field label { color: var(--ak-text); font-size: 15px; font-weight: 500; line-height: 1.4; }
.ak22shc__req, .ak22shc__opt { color: var(--ak-soft); font-weight: 400; font-size: 13.5px; }
.ak22shc__field input[type="text"],
.ak22shc__field input[type="email"],
.ak22shc__field input[type="tel"] {
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 12px 16px;
	background: var(--ak-bg);
	border: 1px solid var(--ak-line-2);
	border-radius: 12px;
	color: var(--ak-text);
	font-family: var(--ak-body);
	font-size: 16px;
	line-height: 1.4;
	box-shadow: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ak22shc__field input::placeholder { color: rgba(255, 255, 255, 0.42); }
.ak22shc__field input:focus { outline: none; border-color: var(--ak-accent); box-shadow: 0 0 0 3px rgba(0, 209, 199, 0.28); }
.ak22shc__field input:focus-visible { outline: none; }
.ak22shc__field input[aria-invalid="true"] { border-color: var(--ak-fail); }
.ak22shc__field-error { color: #FCA5A5; font-size: 14px; line-height: 1.45; min-height: 0; }
.ak22shc__field-error:empty { display: none; }
.ak22shc__field-error::before { content: "⚠ "; }
.ak22shc__field-error:empty::before { content: none; }

.ak22shc__consent { grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.ak22shc__consent input[type="checkbox"] {
	width: 22px;
	height: 22px;
	margin: 2px 0 0;
	accent-color: var(--ak-accent);
	cursor: pointer;
}
.ak22shc__consent label { font-size: 14.5px; font-weight: 400; color: var(--ak-muted); line-height: 1.55; cursor: pointer; }
.ak22shc__consent .ak22shc__field-error { grid-column: 2; }

.ak22shc__hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

.ak22shc__errors {
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid rgba(248, 113, 113, 0.45);
	background: rgba(248, 113, 113, 0.08);
	color: #FECACA;
	font-size: 15px;
}

/* Buttons (mirrors the AK22 kit button: Space Grotesk 600, radius 14, accent fill) */
.ak22shc .ak22shc__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 54px;
	padding: 16px 32px;
	border-radius: 14px;
	border: 1px solid transparent;
	font-family: var(--ak-head);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.ak22shc .ak22shc__btn.ak22shc__btn--primary { background: var(--ak-accent); color: #0B0F14 !important; }
.ak22shc .ak22shc__btn.ak22shc__btn--primary:hover, .ak22shc .ak22shc__btn.ak22shc__btn--primary:focus-visible { background: var(--ak-accent-h); color: #0B0F14 !important; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 209, 199, 0.3); }
.ak22shc .ak22shc__btn.ak22shc__btn--ghost { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.35); }
.ak22shc .ak22shc__btn.ak22shc__btn--ghost:hover, .ak22shc .ak22shc__btn.ak22shc__btn--ghost:focus-visible { background: #FFFFFF; color: #0B0F14; border-color: #FFFFFF; }
.ak22shc .ak22shc__btn[disabled] { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }
.ak22shc__submit { width: 100%; margin-top: 4px; }

/* ---------- Stage 3: progress ---------- */
.ak22shc__progress { padding: 56px 32px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.ak22shc .ak22shc__progress-title { font-size: 24px; }
.ak22shc__progress-text { max-width: 560px; }
.ak22shc__spinner {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 4px solid rgba(0, 209, 199, 0.18);
	border-top-color: var(--ak-accent);
	animation: ak22shc-spin 0.9s linear infinite;
	box-shadow: 0 0 24px rgba(0, 209, 199, 0.18);
}
@keyframes ak22shc-spin { to { transform: rotate(360deg); } }

/* ---------- Stage 4: results ---------- */
.ak22shc__stage--result { display: grid; gap: 28px; }
.ak22shc__result { padding: 36px 32px; display: grid; gap: 32px; }
.ak22shc__result:focus { outline: none; }
.ak22shc__summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; }
.ak22shc__gauge { position: relative; width: 168px; height: 168px; }
.ak22shc__gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.ak22shc__gauge-track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 12; }
.ak22shc__gauge-val { fill: none; stroke: var(--ak-accent); stroke-width: 12; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(0, 209, 199, 0.35)); }
.ak22shc__gauge-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ak22shc__gauge-num b { font-family: var(--ak-head); font-size: 56px; line-height: 1; color: var(--ak-text); font-weight: 700; }
.ak22shc__gauge-num span { font-size: 14px; color: var(--ak-soft); margin-top: 4px; }
.ak22shc__eyebrow { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ak-accent); font-weight: 600; margin-bottom: 8px !important; }
.ak22shc .ak22shc__band { font-size: 26px; margin-bottom: 10px !important; }
.ak22shc__url { font-size: 14px; color: var(--ak-soft); margin-top: 10px !important; overflow-wrap: anywhere; }
.ak22shc__caps { margin-top: 12px !important; padding: 10px 14px; border-left: 3px solid var(--ak-warn); background: rgba(251, 191, 36, 0.07); border-radius: 0 10px 10px 0; font-size: 14.5px; color: #FDE68A; }

.ak22shc .ak22shc__section-title { font-size: 20px; margin-bottom: 14px !important; }
.ak22shc__cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ak22shc__cat { margin: 0; padding: 16px 18px; background: var(--ak-card-2); border: 1px solid var(--ak-line); border-radius: 14px; }
.ak22shc__cat-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.ak22shc__cat-name { color: var(--ak-text); font-weight: 600; font-size: 15.5px; }
.ak22shc__cat-weight { color: var(--ak-soft); font-weight: 400; font-size: 13.5px; }
.ak22shc__cat-pct { font-family: var(--ak-head); color: var(--ak-text); font-weight: 700; font-size: 18px; }
.ak22shc__bar { height: 8px; margin: 10px 0 8px; background: rgba(255, 255, 255, 0.08); border-radius: 99px; overflow: hidden; }
.ak22shc__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ak-accent), var(--ak-high)); border-radius: 99px; }
.ak22shc__cat-counts { font-size: 13.5px; color: var(--ak-soft); }

.ak22shc__steps { margin: 0; padding: 0; list-style: none; counter-reset: ak22step; display: grid; gap: 12px; }
.ak22shc__steps li { counter-increment: ak22step; position: relative; margin: 0; padding: 16px 18px 16px 62px; background: var(--ak-card-2); border: 1px solid var(--ak-line); border-radius: 14px; }
.ak22shc__steps li::before {
	content: counter(ak22step);
	position: absolute;
	left: 18px;
	top: 16px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: rgba(0, 209, 199, 0.14);
	border: 1px solid rgba(0, 209, 199, 0.4);
	color: var(--ak-high);
	font-family: var(--ak-head);
	font-weight: 700;
	font-size: 14px;
}
.ak22shc__steps strong { display: block; color: var(--ak-text); font-weight: 600; }

.ak22shc__groups { display: grid; gap: 12px; }
.ak22shc__group { background: var(--ak-card-2); border: 1px solid var(--ak-line); border-radius: 14px; overflow: hidden; }
.ak22shc__group > summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 56px;
	padding: 14px 18px;
	color: var(--ak-text);
	font-family: var(--ak-head);
	font-weight: 600;
	font-size: 16.5px;
}
.ak22shc__group > summary::-webkit-details-marker { display: none; }
.ak22shc__group > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border: solid var(--ak-soft); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.2s ease; flex: 0 0 auto; }
.ak22shc__group[open] > summary::after { transform: rotate(-135deg); }
.ak22shc__count { font-family: var(--ak-body); font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); color: var(--ak-muted); }
.ak22shc__items { list-style: none; margin: 0; padding: 0 18px 12px; display: grid; }
.ak22shc__item { margin: 0; padding: 14px 0; border-top: 1px solid var(--ak-line); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
.ak22shc__item-label { color: var(--ak-text); font-weight: 600; font-size: 15px; }
.ak22shc__item-detail { font-size: 14.5px; overflow-wrap: anywhere; }

/* Status badges: icon + text, never colour alone */
.ak22shc__badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; border: 1px solid currentColor; }
.ak22shc__badge::before { font-size: 13px; line-height: 1; }
.ak22shc__badge--pass { color: var(--ak-pass); background: rgba(52, 211, 153, 0.08); }
.ak22shc__badge--pass::before { content: "✓"; }
.ak22shc__badge--warn { color: var(--ak-warn); background: rgba(251, 191, 36, 0.08); }
.ak22shc__badge--warn::before { content: "!"; }
.ak22shc__badge--fail { color: var(--ak-fail); background: rgba(248, 113, 113, 0.08); }
.ak22shc__badge--fail::before { content: "✕"; }
.ak22shc__badge--not_tested, .ak22shc__badge--na { color: var(--ak-na); background: rgba(163, 174, 189, 0.08); }
.ak22shc__badge--not_tested::before { content: "?"; }
.ak22shc__badge--na::before { content: "–"; }

.ak22shc__method { font-size: 14.5px; }
.ak22shc__method > summary { cursor: pointer; color: var(--ak-high); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.ak22shc__method p { margin-top: 8px !important; }

.ak22shc__fail-box { display: grid; gap: 14px; }
.ak22shc__fail-box .ak22shc__badge { justify-self: start; }

/* ---------- Stage 5: consultation CTA ---------- */
.ak22shc__cta {
	padding: 40px 36px;
	text-align: center;
	background: radial-gradient(120% 140% at 50% 0%, rgba(0, 209, 199, 0.12) 0%, rgba(20, 26, 34, 1) 60%);
	border-color: rgba(0, 209, 199, 0.28);
	display: grid;
	justify-items: center;
	gap: 16px;
}
.ak22shc .ak22shc__cta-title { font-size: 28px; max-width: 720px; }
.ak22shc__cta-text { max-width: 720px; font-size: 16.5px; }
.ak22shc__cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 6px; }
.ak22shc__disclaimer { max-width: 760px; font-size: 13.5px; color: var(--ak-soft); margin-top: 8px !important; padding-top: 16px; border-top: 1px solid var(--ak-line); }
.ak22shc__noscript { padding: 16px; border: 1px solid var(--ak-line); border-radius: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.ak22shc__stage--form { grid-template-columns: minmax(0, 1fr); }
	.ak22shc__scope { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.ak22shc__scope { grid-template-columns: minmax(0, 1fr); }
	.ak22shc__row { grid-template-columns: minmax(0, 1fr); }
	.ak22shc__intro, .ak22shc__form { padding: 24px 20px; }
	.ak22shc__result { padding: 26px 20px; gap: 26px; }
	.ak22shc__summary { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 20px; }
	.ak22shc__gauge { width: 148px; height: 148px; }
	.ak22shc__gauge-num b { font-size: 48px; }
	.ak22shc .ak22shc__band { font-size: 22px; }
	.ak22shc__caps { text-align: left; }
	.ak22shc__cta { padding: 30px 20px; }
	.ak22shc .ak22shc__cta-title { font-size: 23px; }
	.ak22shc__cta-actions { flex-direction: column; width: 100%; }
	.ak22shc__cta-actions .ak22shc__btn { width: 100%; }
	.ak22shc__item { grid-template-columns: minmax(0, 1fr); gap: 6px; }
	.ak22shc__item .ak22shc__badge { justify-self: start; }
	.ak22shc__progress { padding: 40px 20px; }
	.ak22shc .ak22shc__progress-title { font-size: 21px; }
	.ak22shc__steps li { padding-left: 58px; }
}

@media (prefers-reduced-motion: reduce) {
	.ak22shc *, .ak22shc *::before, .ak22shc *::after { transition: none !important; animation: none !important; }
	.ak22shc .ak22shc__btn.ak22shc__btn--primary:hover { transform: none; }
	.ak22shc__spinner { border-top-color: var(--ak-accent); border-right-color: var(--ak-accent); }
}
