/* SERPHAWK Security Scanner — all rules are scoped to .shss so the theme stays untouched.
   Change --brand to match your site. */

.shss {
	--ink: #15233B;
	--muted: #56657B;
	--line: #D7DFE9;
	--mist: #F2F5F9;
	--paper: #FFFFFF;
	--brand: #1450D2;
	--brand-ink: #FFFFFF;
	--crit: #B42318;
	--high: #C2410C;
	--med: #A15C07;
	--low: #4B5B70;
	--pass: #16794A;
	--info: #56657B;

	font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	color: var(--ink);
	max-width: 880px;
	margin: 0 auto;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	text-align: left;
}
.shss *, .shss *::before, .shss *::after { box-sizing: inherit; }
.shss h2, .shss h3, .shss h4, .shss p, .shss ul, .shss ol { margin: 0; padding: 0; }
.shss ul, .shss ol { list-style: none; }

.shss .shss-sr {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

.shss .shss-panel {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: clamp(22px, 4vw, 44px);
}
.shss .shss-panel + .shss-panel { margin-top: 16px; }

.shss .shss-title {
	font-size: clamp(1.8rem, 4.4vw, 2.75rem);
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: -0.025em;
	max-width: 20ch;
	color: var(--ink);
}
.shss .shss-title--result { font-size: clamp(1.4rem, 3.2vw, 2rem); max-width: 26ch; }
.shss .shss-h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.015em; color: var(--ink); }
.shss .shss-sub { color: var(--muted); margin-top: 10px; max-width: 58ch; }
.shss .shss-fine { color: var(--muted); font-size: 0.875rem; margin-top: 6px; }
.shss .shss-err { color: var(--crit); font-weight: 600; font-size: 0.95rem; margin-top: 10px; }
.shss .shss-err:empty { display: none; }

/* Buttons */
.shss .shss-btn {
	appearance: none;
	display: inline-flex; align-items: center; justify-content: center;
	border: 0;
	border-radius: 10px;
	background: var(--brand);
	color: var(--brand-ink);
	font: inherit;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	padding: 14px 22px;
	cursor: pointer;
	text-decoration: none;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
}
.shss .shss-btn:hover { filter: brightness(1.08); color: var(--brand-ink); }
.shss .shss-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.shss .shss-btn[disabled] { opacity: 0.6; cursor: progress; }
.shss .shss-btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.shss .shss-btn--ghost:hover { border-color: var(--ink); color: var(--ink); filter: none; }

/* URL form — one bar, input and button fused */
.shss .shss-urlform {
	display: flex;
	margin-top: 28px;
	border: 2px solid var(--ink);
	border-radius: 12px;
	overflow: hidden;
	background: var(--paper);
	max-width: 640px;
}
.shss .shss-urlform:focus-within { box-shadow: 0 0 0 4px rgba(20, 80, 210, 0.18); }
.shss .shss-urlform input {
	flex: 1; min-width: 0;
	border: 0; border-radius: 0; box-shadow: none; outline: none;
	background: transparent;
	padding: 16px 18px;
	font: inherit; font-size: 1.15rem; font-weight: 500;
	color: var(--ink);
	height: auto; margin: 0;
}
.shss .shss-urlform input::placeholder { color: #9AA6B6; }
.shss .shss-urlform .shss-btn { border-radius: 0; padding: 16px 26px; }
.shss .shss-urlform + .shss-err { margin-top: 12px; }
.shss .shss-urlform ~ .shss-fine { margin-top: 14px; }

@media (max-width: 560px) {
	.shss .shss-urlform { flex-direction: column; }
	.shss .shss-urlform .shss-btn { width: 100%; }
}

/* Scan progress — a real sequence, so an ordered list */
.shss .shss-steps { display: grid; gap: 14px; margin-top: 26px; }
.shss .shss-steps li { display: flex; align-items: center; gap: 12px; color: #8C98A9; }
.shss .shss-steps li::before {
	content: ""; flex: none;
	width: 20px; height: 20px; border-radius: 50%;
	border: 2px solid var(--line);
	background: var(--paper) center / 12px no-repeat;
}
.shss .shss-steps li.is-active { color: var(--ink); font-weight: 600; }
.shss .shss-steps li.is-active::before {
	border-color: var(--brand); border-right-color: transparent;
	animation: shss-spin 0.8s linear infinite;
}
.shss .shss-steps li.is-done { color: var(--ink); }
.shss .shss-steps li.is-done::before {
	border-color: var(--pass);
	background-color: var(--pass);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@keyframes shss-spin { to { transform: rotate(360deg); } }

/* Score summary */
.shss .shss-summary {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 30px;
	align-items: center;
}
@media (max-width: 600px) {
	.shss .shss-summary { grid-template-columns: 1fr; gap: 18px; }
}
.shss .shss-gauge { position: relative; width: 148px; height: 148px; flex: none; }
.shss .shss-gauge svg { display: block; width: 100%; height: 100%; }
.shss .shss-gauge-bar { transition: stroke-dashoffset 1.3s cubic-bezier(.2, .7, .2, 1); }
.shss .shss-gauge-num {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center;
}
.shss .shss-gauge-num strong { font-size: 2.75rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.shss .shss-gauge-num span { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

.shss .shss-verdict {
	display: inline-flex; align-items: center; gap: 8px;
	margin-top: 12px;
	font-weight: 700;
	color: var(--pass);
}
.shss .shss-verdict::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.shss .shss-verdict[data-v="suspicious"] { color: var(--high); }
.shss .shss-verdict[data-v="infected"] { color: var(--crit); }

.shss .shss-counts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; color: var(--muted); font-size: 0.95rem; }
.shss .shss-count b { font-weight: 800; color: var(--c, var(--ink)); }
.shss [data-sev="critical"] { --c: var(--crit); }
.shss [data-sev="high"] { --c: var(--high); }
.shss [data-sev="medium"] { --c: var(--med); }
.shss [data-sev="low"] { --c: var(--low); }
.shss [data-sev="info"] { --c: var(--info); }
.shss [data-sev="pass"] { --c: var(--pass); }
.shss .shss-meta { color: var(--muted); font-size: 0.875rem; margin-top: 10px; }

/* Severity pill */
.shss .shss-pill {
	display: inline-block;
	min-width: 72px;
	text-align: center;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	padding: 6px 8px;
	border-radius: 6px;
	color: var(--c);
	border: 1.5px solid var(--c);
	white-space: nowrap;
}

/* Locked preview list */
.shss .shss-locked { margin-top: 28px; border-top: 1px solid var(--line); }
.shss .shss-locked li {
	display: flex; align-items: center; gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
	font-weight: 600;
}
.shss .shss-locked li.shss-locked-more { color: var(--muted); font-weight: 500; padding-left: 86px; }

/* Lead form */
.shss .shss-lead { border: 2px solid var(--ink); }
.shss .shss-fields {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 22px;
}
@media (max-width: 700px) { .shss .shss-fields { grid-template-columns: 1fr; } }
.shss .shss-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.9rem; }
.shss .shss-field input {
	font: inherit; font-weight: 400; font-size: 1rem;
	color: var(--ink);
	background: var(--paper);
	border: 1.5px solid var(--line);
	border-radius: 10px;
	padding: 12px 14px;
	box-shadow: none; height: auto; margin: 0; width: 100%;
}
.shss .shss-field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(20, 80, 210, 0.18); }
.shss .shss-check {
	display: flex; gap: 10px; align-items: flex-start;
	margin: 18px 0 20px;
	font-size: 0.9rem; color: var(--muted);
}
.shss .shss-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }

/* Report */
.shss .shss-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.shss .shss-actions + .shss-err { margin-top: 12px; }

.shss .shss-cat + .shss-cat { margin-top: 36px; }
.shss .shss-cat-h {
	display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--ink);
	font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em;
}
.shss .shss-cat-status { font-size: 0.875rem; font-weight: 600; color: var(--high); }
.shss .shss-cat-status.is-clear { color: var(--pass); }

.shss .shss-f {
	display: grid;
	grid-template-columns: 84px 1fr;
	gap: 16px;
	padding: 18px 0;
	border-bottom: 1px solid var(--line);
}
.shss .shss-f .shss-pill { justify-self: start; align-self: start; margin-top: 2px; }
.shss .shss-f h4 { font-size: 1rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.shss .shss-f p { margin-top: 6px; color: var(--muted); max-width: 70ch; overflow-wrap: anywhere; }
.shss .shss-f .shss-fix {
	color: var(--ink);
	background: var(--mist);
	border-radius: 8px;
	padding: 10px 12px;
	margin-top: 10px;
}
@media (max-width: 520px) {
	.shss .shss-f { grid-template-columns: 1fr; gap: 8px; }
	.shss .shss-locked li.shss-locked-more { padding-left: 0; }
}

.shss .shss-passed summary {
	cursor: pointer;
	padding: 14px 0;
	color: var(--pass);
	font-weight: 600;
	border-bottom: 1px solid var(--line);
}
.shss .shss-passed summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.shss .shss-disclaimer {
	margin-top: 32px;
	font-size: 0.85rem;
	color: var(--muted);
	max-width: 72ch;
}

/* PDF layout (rendered off-screen by html2pdf) */
.shss.shss-pdf { width: 700px; max-width: none; padding: 0; background: #fff; }
.shss.shss-pdf * { box-shadow: none; }
.shss.shss-pdf .shss-pdf-head {
	display: flex; justify-content: space-between; align-items: baseline;
	padding-bottom: 12px; margin-bottom: 20px;
	border-bottom: 2px solid var(--ink);
}
.shss.shss-pdf .shss-pdf-head strong { font-size: 1.1rem; font-weight: 800; }
.shss.shss-pdf .shss-pdf-head span { color: var(--muted); font-size: 0.9rem; }
.shss.shss-pdf .shss-pdf-domain { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.shss.shss-pdf .shss-meta { margin: 6px 0 24px; }
.shss.shss-pdf .shss-summary { grid-template-columns: auto 1fr; margin-bottom: 30px; }
.shss.shss-pdf .shss-title--result { font-size: 1.35rem; }
.shss.shss-pdf .shss-f { grid-template-columns: 84px 1fr; }
.shss.shss-pdf .shss-pdf-foot {
	margin-top: 24px; padding-top: 12px;
	border-top: 1px solid var(--line);
	font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
	.shss .shss-gauge-bar { transition: none; }
	.shss .shss-steps li.is-active::before { animation: none; border-right-color: var(--brand); }
}
