@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700&display=swap');

/* =========================================================
   Superio SEO Audit
   Everything is scoped under .ssa so it cannot leak into
   the theme, and the theme cannot leak into it.
   ========================================================= */

.ssa {
	--ssa-accent: #C7203C;
	--ssa-ink: #120608;
	--ssa-surface: #1E0C11;
	--ssa-raised: #2A1219;
	--ssa-line: rgba(255, 190, 200, 0.14);
	--ssa-bone: #F6E9EB;
	--ssa-muted: #B79197;
	--ssa-pass: #35C084;
	--ssa-warn: #F0A93C;
	--ssa-fail: #EE4A5C;
	--ssa-radius: 18px;

	position: relative;
	overflow: hidden;
	padding: clamp(48px, 7vw, 196px) 20px;
	background:
		radial-gradient(900px 520px at 50% -10%, rgba(199, 32, 60, 0.30), transparent 62%),
		radial-gradient(700px 420px at 85% 110%, rgba(122, 11, 34, 0.35), transparent 65%),
		var(--ssa-ink);
	color: var(--ssa-bone);
	font-family: 'outfit', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

/* class rules like .ssa-loading{display:flex} would otherwise beat the
   browser's own [hidden] rule, leaving the spinner on screen forever */
.ssa [hidden] { display: none !important; }

.ssa-shell {
	position: relative;
	z-index: 1;
	max-width: 980px;
	margin: 0 auto;
}

/* ---------- intro ---------- */

.ssa-intro { text-align: center; }

.ssa .ssa-title {
	margin: 0 0 14px;
	font-size: clamp(30px, 5vw, 52px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.03em;
	color: var(--ssa-bone);
}

.ssa .ssa-sub {
	max-width: 60ch;
	margin: 0 auto 34px;
	color: var(--ssa-muted);
	font-size: clamp(15px, 1.6vw, 17px);
}

.ssa-form {
	max-width: 620px;
	margin: 0 auto;
}

.ssa-field {
	display: flex;
	gap: 8px;
	padding: 8px;
	border: 1px solid var(--ssa-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	backdrop-filter: blur(10px);
	box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ssa-field input{
	color: #fff !important;
}
.ssa-field:focus-within {
	border-color: rgba(255, 120, 140, 0.55);
	box-shadow: 0 0 0 4px rgba(199, 32, 60, 0.18), 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}

.ssa-field--kw {
	margin-top: 10px;
	padding: 6px 8px;
}

.ssa .ssa-url,
.ssa .ssa-kw {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 12px 18px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--ssa-bone);
	font-family: inherit;
	font-size: 16px;
	outline: none;
	box-shadow: none;
}

.ssa .ssa-url::placeholder,
.ssa .ssa-kw::placeholder { color: rgba(183, 145, 151, 0.8); }

.ssa .ssa-go {
	flex: none;
	padding: 13px 28px;
	border: 0;
	border-radius: 999px;
	background: #c30010;
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.01em;
	cursor: pointer;
	box-shadow: 0 10px 24px -10px rgba(199, 32, 60, 0.9);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.ssa .ssa-go:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(199, 32, 60, 1); }
.ssa .ssa-go:active { transform: translateY(0); }
.ssa .ssa-go[disabled] { filter: grayscale(0.5); cursor: wait; }

.ssa .ssa-note {
	margin: 16px 0 0;
	color: rgba(183, 145, 151, 0.75);
	font-size: 13px;
}

.ssa .ssa-error {
	max-width: 620px;
	margin: 18px auto 0;
	padding: 12px 18px;
	border: 1px solid rgba(238, 74, 92, 0.45);
	border-radius: 14px;
	background: rgba(238, 74, 92, 0.1);
	color: #FFC3C9;
	font-size: 14px;
}

/* ---------- loading ---------- */

.ssa-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 26px;
	padding: 60px 0 20px;
}

.ssa-orbit {
	position: relative;
	width: 120px;
	height: 120px;
	transform-style: preserve-3d;
	animation: ssa-spin 3.2s linear infinite;
}

.ssa-orbit span {
	position: absolute;
	inset: 0;
	border: 1px solid rgba(255, 120, 140, 0.5);
	border-radius: 50%;
}

.ssa-orbit span:nth-child(1) { transform: rotateX(72deg); }
.ssa-orbit span:nth-child(2) { transform: rotateY(72deg); border-color: rgba(199, 32, 60, 0.75); }
.ssa-orbit span:nth-child(3) { transform: rotateY(-24deg) rotateX(24deg); border-color: rgba(255, 200, 205, 0.25); }

@keyframes ssa-spin {
	to { transform: rotateY(360deg) rotateZ(180deg); }
}

.ssa .ssa-loading-text {
	margin: 0;
	color: var(--ssa-muted);
	font-size: 15px;
}

/* ---------- summary ---------- */

.ssa-summary {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
	padding: clamp(24px, 4vw, 40px);
	border: 1px solid var(--ssa-line);
	border-radius: 26px;
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
	box-shadow: 0 40px 80px -50px #000;
}

.ssa-stage {
	position: relative;
	display: grid;
	place-items: center;
	perspective: 900px;
}

.ssa-disc {
	position: absolute;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(199, 32, 60, 0.42), transparent 66%);
	transform: rotateX(72deg) translateZ(-40px);
	filter: blur(6px);
}

.ssa-gauge-wrap {
	position: relative;
	width: 240px;
	height: 240px;
	transform: rotateX(9deg) rotateY(-9deg);
	transition: transform 0.35s ease;
}

.ssa-gauge { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }

.ssa-gauge-track {
	fill: none;
	stroke: rgba(255, 255, 255, 0.08);
	stroke-width: 14;
}

.ssa-gauge-fill {
	fill: none;
	stroke: url(#ssaGrad);
	stroke-width: 14;
	stroke-linecap: round;
	stroke-dasharray: 628;
	stroke-dashoffset: 628;
	filter: drop-shadow(0 0 14px rgba(255, 95, 109, 0.55));
	transition: stroke-dashoffset 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ssa-score {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
}

.ssa-score-num {
	font-size: 64px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
}

.ssa-score-grade {
	color: var(--ssa-muted);
	font-size: 14px;
}

.ssa-summary-body { min-width: 0; }

.ssa .ssa-scanned {
	margin: 0 0 6px;
	color: var(--ssa-muted);
	font-size: 13px;
	word-break: break-all;
}

.ssa .ssa-verdict {
	margin: 0 0 8px;
	font-size: clamp(22px, 3vw, 28px);
	font-weight: 600;
	letter-spacing: -0.02em;
}

.ssa .ssa-verdict-text {
	margin: 0 0 20px;
	max-width: 52ch;
	color: var(--ssa-muted);
	font-size: 15px;
}

.ssa .ssa-tally {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.ssa .ssa-tally li {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 7px 14px;
	border: 1px solid var(--ssa-line);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.25);
	color: var(--ssa-muted);
	font-size: 13px;
}

.ssa .ssa-tally li::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.ssa .ssa-tally .is-pass::before { background: var(--ssa-pass); }
.ssa .ssa-tally .is-warn::before { background: var(--ssa-warn); }
.ssa .ssa-tally .is-fail::before { background: var(--ssa-fail); }
.ssa .ssa-tally b { color: var(--ssa-bone); font-weight: 600; }

.ssa .ssa-restart {
	padding: 10px 22px;
	border: 1px solid var(--ssa-line);
	border-radius: 999px;
	background: transparent;
	color: var(--ssa-bone);
	font-family: inherit;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.ssa .ssa-restart:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 150, 165, 0.5); }

.ssa-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ssa .ssa-pdf {
	padding: 10px 22px;
	border: 1px solid rgba(255, 150, 165, 0.45);
	border-radius: 999px;
	background: rgba(199, 32, 60, 0.18);
	color: var(--ssa-bone);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.ssa .ssa-pdf:hover { background: rgba(199, 32, 60, 0.34); transform: translateY(-1px); }

/* ---------- groups ---------- */

.ssa-groups {
	display: grid;
	gap: 18px;
	margin-top: 22px;
}

.ssa-group {
	border: 1px solid var(--ssa-line);
	border-radius: var(--ssa-radius);
	background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
	overflow: hidden;
}

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

.ssa-group-head h4 {
	margin: 0 0 2px;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.015em;
	color: var(--ssa-bone);
}

.ssa-group-head p {
	margin: 0;
	color: var(--ssa-muted);
	font-size: 13px;
}

.ssa-group-score {
	flex: none;
	margin-left: auto;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.3);
	font-size: 14px;
	font-weight: 600;
}

.ssa-check {
	border-bottom: 1px solid rgba(255, 190, 200, 0.07);
}

.ssa-check:last-child { border-bottom: 0; }

.ssa .ssa-check-btn {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 16px 24px;
	border: 0;
	background: transparent;
	color: var(--ssa-bone);
	font-family: inherit;
	font-size: 15px;
	text-align: left;
	cursor: pointer;
	transition: background 0.2s ease;
}

.ssa .ssa-check-btn:hover { background: rgba(255, 255, 255, 0.04); }

.ssa-dot {
	flex: none;
	width: 22px;
	height: 22px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 700;
	color: #12060A;
}

.ssa-check.is-pass .ssa-dot { background: var(--ssa-pass); }
.ssa-check.is-warn .ssa-dot { background: var(--ssa-warn); }
.ssa-check.is-fail .ssa-dot { background: var(--ssa-fail); color: #fff; }

.ssa-check-label { flex: 1; min-width: 0; }

.ssa-check-value {
	display: block;
	margin-top: 2px;
	color: var(--ssa-muted);
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ssa-caret {
	flex: none;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--ssa-muted);
	border-bottom: 2px solid var(--ssa-muted);
	transform: rotate(45deg);
	transition: transform 0.25s ease;
}

.ssa-check.is-open .ssa-caret { transform: rotate(-135deg); }

.ssa-check-body {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s ease;
}

.ssa-check.is-open .ssa-check-body { grid-template-rows: 1fr; }

.ssa-check-body > div { overflow: hidden; }

.ssa-check-body p {
	margin: 0;
	padding: 0 24px 20px 60px;
	color: var(--ssa-muted);
	font-size: 14px;
	max-width: 72ch;
}

.ssa-check-full {
	display: block;
	margin-bottom: 8px;
	color: rgba(246, 233, 235, 0.9);
	word-break: break-word;
}

/* ---------- speed panel ---------- */

.ssa-speed-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
	padding: 20px 24px;
}

.ssa-metric {
	padding: 16px;
	border: 1px solid var(--ssa-line);
	border-radius: 14px;
	background: rgba(0, 0, 0, 0.25);
}

.ssa-metric b {
	display: block;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.ssa-metric span {
	display: block;
	margin-top: 4px;
	color: var(--ssa-muted);
	font-size: 12.5px;
}

.ssa-metric.is-good b { color: var(--ssa-pass); }
.ssa-metric.is-ok b { color: var(--ssa-warn); }
.ssa-metric.is-bad b { color: var(--ssa-fail); }

.ssa-speed-loading {
	padding: 20px 24px;
	color: var(--ssa-muted);
	font-size: 14px;
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
	.ssa-summary {
		grid-template-columns: 1fr;
		text-align: center;
		justify-items: center;
	}
	.ssa .ssa-tally { justify-content: center; }
	.ssa-actions { justify-content: center; }
	.ssa-field { flex-direction: column; border-radius: 20px; }
	.ssa .ssa-go { width: 100%; }
	.ssa-check-body p { padding-left: 24px; }
	.ssa-group-head { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
	.ssa * {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}

.ssa :focus-visible {
	outline: 2px solid #FF8A98;
	outline-offset: 2px;
}
