/* Aksel Digital – Free SEO Checker
   Themes can override the colours: .aks-seo { --aks-accent: #... } */
.aks-seo {
	--aks-accent: #2563eb;
	--aks-text: #0f172a;
	--aks-muted: #64748b;
	--aks-border: #e2e8f0;
	--aks-surface: #ffffff;
	--aks-soft: #f8fafc;
	--aks-good: #16a34a;
	--aks-ok: #d97706;
	--aks-bad: #dc2626;
	--aks-radius: 12px;
	color: var(--aks-text);
	max-width: 760px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.5;
	box-sizing: border-box;
}
.aks-seo *, .aks-seo *::before, .aks-seo *::after { box-sizing: inherit; }

.aks-seo__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.aks-seo__hp { position: absolute !important; left: -9999px !important; }

.aks-seo__form { display: flex; gap: 8px; padding: 8px; background: var(--aks-surface); border: 1px solid var(--aks-border); border-radius: calc(var(--aks-radius) + 4px); box-shadow: 0 8px 30px rgba(15, 23, 42, .08); }
.aks-seo__input { flex: 1; min-width: 0; border: 0 !important; outline: none; padding: 12px 14px !important; font-size: 17px; background: transparent !important; color: inherit; box-shadow: none !important; }
.aks-seo__btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--aks-radius); background: var(--aks-accent); color: #fff !important; font-weight: 600; font-size: 16px; padding: 12px 20px; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: filter .15s, transform .15s; }
.aks-seo__btn:hover { filter: brightness(1.08); }
.aks-seo__btn:active { transform: translateY(1px); }
.aks-seo__btn:disabled { opacity: .6; cursor: progress; }
.aks-seo__hint { text-align: center; color: var(--aks-muted); font-size: 14px; margin: 10px 0 0; }

.aks-seo__out:not(:empty) { margin-top: 28px; }
.aks-seo__loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 32px; color: var(--aks-muted); }
.aks-seo__spinner { width: 22px; height: 22px; border: 3px solid var(--aks-border); border-top-color: var(--aks-accent); border-radius: 50%; animation: aks-spin .8s linear infinite; }
@keyframes aks-spin { to { transform: rotate(360deg); } }
.aks-seo__error { padding: 14px 16px; border-radius: var(--aks-radius); background: #fef2f2; color: var(--aks-bad); margin: 0; }

.aks-seo__summary { display: flex; align-items: center; gap: 24px; padding: 24px; background: var(--aks-soft); border: 1px solid var(--aks-border); border-radius: var(--aks-radius); }
.aks-seo__ring { position: relative; width: 120px; height: 120px; flex: 0 0 120px; }
.aks-seo__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.aks-seo__ring circle { fill: none; stroke-width: 10; }
.aks-seo__ring-bg { stroke: var(--aks-border); }
.aks-seo__ring-fg { stroke-linecap: round; }
.aks-seo__ring--good .aks-seo__ring-fg { stroke: var(--aks-good); }
.aks-seo__ring--ok .aks-seo__ring-fg { stroke: var(--aks-ok); }
.aks-seo__ring--bad .aks-seo__ring-fg { stroke: var(--aks-bad); }
.aks-seo__ring-num { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 38px; }
.aks-seo__ring-num strong { font-size: 36px; line-height: 1; }
.aks-seo__ring-num span { color: var(--aks-muted); font-size: 14px; margin-left: 2px; }
.aks-seo__site { color: var(--aks-muted); font-size: 14px; word-break: break-all; }
.aks-seo__grade { font-size: 19px; font-weight: 600; margin: 4px 0 12px; }
.aks-seo__pills { display: flex; flex-wrap: wrap; gap: 6px; }
.aks-seo__pill { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.aks-seo__pill--fail { background: #fee2e2; color: #b91c1c; }
.aks-seo__pill--warn { background: #fef3c7; color: #b45309; }
.aks-seo__pill--pass { background: #dcfce7; color: #15803d; }

.aks-seo__checks { list-style: none; margin: 20px 0 0; padding: 0; border: 1px solid var(--aks-border); border-radius: var(--aks-radius); overflow: hidden; }
.aks-seo__check { margin: 0; padding: 16px; border-top: 1px solid var(--aks-border); background: var(--aks-surface); }
.aks-seo__check:first-child { border-top: 0; }
.aks-seo__check-head { display: flex; gap: 12px; align-items: flex-start; }
.aks-seo__icon { flex: 0 0 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #fff; }
.aks-seo__check--fail .aks-seo__icon { background: var(--aks-bad); }
.aks-seo__check--warn .aks-seo__icon { background: var(--aks-ok); }
.aks-seo__check--pass .aks-seo__icon { background: var(--aks-good); }
.aks-seo__check-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aks-seo__msg { color: var(--aks-muted); font-size: 15px; }
.aks-seo__val { display: block; margin-top: 4px; font-size: 13px; background: var(--aks-soft); border: 1px solid var(--aks-border); padding: 4px 8px; border-radius: 6px; word-break: break-word; white-space: normal; color: var(--aks-text); }
.aks-seo__tip { margin: 8px 0 0; font-size: 14px; padding: 10px 12px; border-left: 3px solid var(--aks-accent); background: var(--aks-soft); border-radius: 0 8px 8px 0; }

.aks-seo__lead, .aks-seo__cta { margin-top: 20px; padding: 24px; border-radius: var(--aks-radius); }
.aks-seo__lead { border: 1px solid var(--aks-border); background: var(--aks-surface); }
.aks-seo__lead h3, .aks-seo__cta h3 { margin: 0 0 6px; font-size: 20px; }
.aks-seo__lead p, .aks-seo__cta p { margin: 0 0 14px; }
.aks-seo__lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aks-seo__lead-form input[type=text], .aks-seo__lead-form input[type=email] { width: 100%; padding: 11px 12px; border: 1px solid var(--aks-border); border-radius: 8px; font-size: 15px; }
.aks-seo__consent { grid-column: 1 / -1; display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--aks-muted); }
.aks-seo__consent input { margin-top: 3px; }
.aks-seo__lead-form .aks-seo__btn { grid-column: 1 / -1; justify-self: start; }
.aks-seo__lead-msg { grid-column: 1 / -1; margin: 0 !important; font-size: 14px; }
.aks-seo__lead-msg.is-error { color: var(--aks-bad); }

.aks-seo__cta { background: var(--aks-accent); color: #fff; }
.aks-seo__cta h3 { color: #fff; }
.aks-seo__cta .aks-seo__btn { background: #fff; color: var(--aks-accent) !important; }
.aks-seo__note { font-size: 13px; color: var(--aks-muted); text-align: center; margin: 16px 0 0; }

@media (max-width: 600px) {
	.aks-seo__form { flex-direction: column; }
	.aks-seo__summary { flex-direction: column; text-align: center; }
	.aks-seo__pills { justify-content: center; }
	.aks-seo__lead-form { grid-template-columns: 1fr; }
	.aks-seo__lead-form .aks-seo__btn { justify-self: stretch; }
}
