:root {
	--bg: #0b1114;
	--bg-elevated: #12181c;
	--fg: #e6edf3;
	--muted: #7d8590;
	--line: #21262d;
	--accent: #3fb950;
	--warn: #d29922;
	--alert: #f85149;
	--radius: 10px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
	--mono: ui-monospace, "SF Mono", Menlo, Monaco, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	font-family: var(--font);
	background: var(--bg);
	color: var(--fg);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

main { max-width: 720px; margin: 0 auto; padding: 48px 24px 64px; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 80px; }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 18px; color: var(--fg); }
.brand svg, .brand img { width: 40px; height: 40px; }

h1 {
	font-size: clamp(36px, 5vw, 56px);
	line-height: 1.05;
	margin: 0 0 16px;
	letter-spacing: -0.02em;
	font-weight: 800;
}
.lede { font-size: 19px; color: var(--muted); margin: 0 0 32px; max-width: 60ch; }

.waitlist {
	display: flex; gap: 8px; flex-wrap: wrap;
	margin-bottom: 12px;
}
.waitlist input[type=email],
.waitlist input[type=url],
.waitlist input[type=text] {
	flex: 1 1 260px;
	padding: 14px 16px;
	background: var(--bg-elevated);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--fg);
	font: inherit;
}
.waitlist input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.waitlist button {
	padding: 14px 22px;
	background: var(--accent);
	color: #0b1114;
	border: 0;
	border-radius: var(--radius);
	font-weight: 700;
	cursor: pointer;
	font: inherit;
}
.waitlist button:hover { filter: brightness(1.08); }

.wl-msg { color: var(--muted); min-height: 1.4em; margin: 0; font-family: var(--mono); font-size: 14px; }

.scan-stats {
	margin-top: 16px;
	padding: 10px 14px;
	background: var(--bg-elevated);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--muted);
	font-family: var(--mono);
	font-size: 13px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	align-items: center;
	animation: fadeUp .5s ease-out both;
}
.scan-stats .stat strong { color: var(--fg); font-weight: 700; }
.scan-stats .stat a { color: var(--accent); text-decoration: none; }
.scan-stats .stat a:hover { text-decoration: underline; }
.scan-stats .stat-dot { color: var(--line); }

.recent-scans {
	margin-top: 8px;
	padding: 8px 14px;
	background: var(--bg-elevated);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--muted);
	font-family: var(--mono);
	font-size: 13px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	align-items: center;
	animation: fadeUp .5s ease-out both;
	animation-delay: .05s;
}
.recent-scans .recent-label { color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.recent-scans .recent-track { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.recent-scans .recent-chip { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.recent-scans .recent-chip a { color: var(--accent); text-decoration: none; }
.recent-scans .recent-chip a:hover { text-decoration: underline; }
.recent-scans .recent-score {
	display: inline-block;
	padding: 1px 6px;
	border-radius: 4px;
	border: 1px solid var(--line);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
	color: var(--fg);
	background: transparent;
}
.recent-scans .recent-score.verdict-ok   { border-color: var(--accent); color: var(--accent); }
.recent-scans .recent-score.verdict-warn { border-color: var(--warn);   color: var(--warn);   }
.recent-scans .recent-score.verdict-bad  { border-color: var(--alert);  color: var(--alert);  }
.recent-scans .recent-age { color: var(--muted); font-size: 11px; }
.recent-scans .stat-dot { color: var(--line); }

.signal-pain {
	margin-top: 8px;
	padding: 8px 14px;
	background: var(--bg-elevated);
	border: 1px solid var(--line);
	border-left: 3px solid var(--alert);
	border-radius: var(--radius);
	color: var(--muted);
	font-family: var(--mono);
	font-size: 13px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	align-items: center;
	animation: fadeUp .5s ease-out both;
	animation-delay: .1s;
}
.signal-pain .pain-label { color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.signal-pain .pain-track { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.signal-pain .pain-chip { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; text-decoration: none; border-bottom: 1px dotted transparent; padding-bottom: 1px; }
.signal-pain a.pain-chip { cursor: pointer; }
.signal-pain a.pain-chip:hover { border-bottom-color: var(--fg); }
.signal-pain a.pain-chip:hover .pain-name { color: var(--accent); }
.signal-pain .pain-mark { color: var(--alert); font-weight: 700; }
.signal-pain .pain-name { color: var(--fg); transition: color .15s ease-out; }
.signal-pain .pain-pct { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.signal-pain .stat-dot { color: var(--line); }

.score-dist {
	margin-top: 8px;
	padding: 10px 14px;
	background: var(--bg-elevated);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--muted);
	font-family: var(--mono);
	font-size: 13px;
	animation: fadeUp .5s ease-out both;
	animation-delay: .15s;
}
.score-dist .dist-header {
	display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-bottom: 8px;
}
.score-dist .dist-label { color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.score-dist .dist-total { color: var(--fg); font-weight: 700; font-variant-numeric: tabular-nums; }
.score-dist .dist-median { color: var(--muted); }
.score-dist .dist-median strong { color: var(--fg); font-weight: 700; }
.score-dist .dist-spread { color: var(--muted); font-variant-numeric: tabular-nums; }
.score-dist .dist-spread strong { color: var(--fg); font-weight: 700; }
.score-dist .dist-spread-arrow { margin: 0 4px; color: var(--line); font-weight: 600; }
.score-dist .dist-spread-delta { color: var(--muted); opacity: .8; }
.score-dist .stat-dot { color: var(--line); }
.score-dist .dist-bar-wrap {
	position: relative;
	margin-top: 26px; /* leave room for the absolutely-positioned marker */
}
.score-dist .dist-bar {
	display: flex; width: 100%; height: 10px;
	border-radius: 999px; overflow: hidden;
	background: var(--bg);
	border: 1px solid var(--line);
}
.score-dist .dist-seg { display: block; height: 100%; min-width: 0; }
.score-dist .dist-marker {
	position: absolute;
	top: -22px;
	transform: translateX(-50%);
	display: flex; flex-direction: column; align-items: center;
	pointer-events: none;
	font-size: 11px; line-height: 1;
	animation: fadeUp .4s ease-out both;
	animation-delay: .25s;
}
.score-dist .dist-marker .lbl {
	background: var(--bg-elevated);
	color: var(--fg);
	padding: 2px 7px;
	border-radius: 8px;
	border: 1px solid var(--line);
	white-space: nowrap;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.score-dist .dist-marker .lbl-you { color: var(--muted); font-weight: 500; margin-right: 1px; }
.score-dist .dist-marker .lbl strong { color: var(--fg); font-weight: 700; }
.score-dist .dist-marker .arrow {
	width: 0; height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid var(--line);
	margin-top: 2px;
}
.score-dist .dist-marker[data-band="fail"]  .lbl   { border-color: var(--alert); }
.score-dist .dist-marker[data-band="fail"]  .arrow { border-top-color: var(--alert); }
.score-dist .dist-marker[data-band="warn"]  .lbl   { border-color: var(--warn); }
.score-dist .dist-marker[data-band="warn"]  .arrow { border-top-color: var(--warn); }
.score-dist .dist-marker[data-band="good"]  .lbl   { border-color: color-mix(in srgb, var(--accent) 55%, var(--bg-elevated)); }
.score-dist .dist-marker[data-band="good"]  .arrow { border-top-color: color-mix(in srgb, var(--accent) 55%, var(--bg-elevated)); }
.score-dist .dist-marker[data-band="great"] .lbl   { border-color: var(--accent); }
.score-dist .dist-marker[data-band="great"] .arrow { border-top-color: var(--accent); }
/* Label needs pointer-events:auto so the marker becomes hoverable; the
   marker itself stays pointer-events:none (inherited at the wrapper level
   would be wrong — we set auto only on the .lbl hit target). The arrow
   and popover keep pointer-events:none so they can't intercept bar clicks. */
.score-dist .dist-marker .lbl { pointer-events: auto; cursor: default; }
.score-dist .dist-marker { outline: none; }
.score-dist .dist-marker:focus-visible .lbl {
	box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
	border-radius: 999px;
}
.score-dist .dist-popover {
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	background: var(--bg-elevated);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 7px 12px 8px;
	min-width: 180px;
	max-width: 260px;
	text-align: center;
	font-size: 12px; line-height: 1.4;
	box-shadow: 0 4px 12px rgba(0,0,0,.12);
	opacity: 0; visibility: hidden;
	transition: opacity .14s ease-out, visibility .14s, transform .14s ease-out;
	pointer-events: none;
	z-index: 4;
}
.score-dist .dist-marker:hover .dist-popover,
.score-dist .dist-marker:focus-within .dist-popover {
	opacity: 1; visibility: visible;
	transform: translateX(-50%) translateY(-2px);
}
.score-dist .dist-popover .dp-store {
	color: var(--muted); font-size: 11px; margin-bottom: 3px;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.score-dist .dist-popover .dp-main { color: var(--fg); font-variant-numeric: tabular-nums; }
.score-dist .dist-popover .dp-main strong { font-weight: 700; font-size: 15px; letter-spacing: 0; }
.score-dist .dist-popover .dp-main span { color: var(--muted); font-weight: 500; margin-left: 6px; }
.score-dist .dist-popover .dp-pos { color: var(--muted); font-size: 11px; margin-top: 4px; }
/* Tail triangle pointing down at the label (two stacked triangles — outer
   matches the band-colored border, inner matches the popover fill). */
.score-dist .dist-popover::before,
.score-dist .dist-popover::after {
	content: ''; position: absolute; left: 50%;
	width: 0; height: 0;
	transform: translateX(-50%);
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
}
.score-dist .dist-popover::before { bottom: -7px; border-top: 7px solid var(--line); }
.score-dist .dist-popover::after  { bottom: -6px; border-top: 6px solid var(--bg-elevated); }
.score-dist .dist-marker[data-band="fail"]  .dist-popover          { border-color: var(--alert); }
.score-dist .dist-marker[data-band="fail"]  .dist-popover::before  { border-top-color: var(--alert); }
.score-dist .dist-marker[data-band="warn"]  .dist-popover          { border-color: var(--warn); }
.score-dist .dist-marker[data-band="warn"]  .dist-popover::before  { border-top-color: var(--warn); }
.score-dist .dist-marker[data-band="good"]  .dist-popover          { border-color: color-mix(in srgb, var(--accent) 55%, var(--bg-elevated)); }
.score-dist .dist-marker[data-band="good"]  .dist-popover::before  { border-top-color: color-mix(in srgb, var(--accent) 55%, var(--bg-elevated)); }
.score-dist .dist-marker[data-band="great"] .dist-popover          { border-color: var(--accent); }
.score-dist .dist-marker[data-band="great"] .dist-popover::before  { border-top-color: var(--accent); }
.score-dist .dist-seg[data-band="fail"]  { background: var(--alert); }
.score-dist .dist-seg[data-band="warn"]  { background: var(--warn); }
.score-dist .dist-seg[data-band="good"]  { background: color-mix(in srgb, var(--accent) 55%, var(--bg-elevated)); }
.score-dist .dist-seg[data-band="great"] { background: var(--accent); }
/* Compare-mode pair markers. Two markers on the same bar — when their
   horizontal positions would collide (|A.left_pct − B.left_pct| < 10%),
   B flips below the bar so the two pills stay legible. The barWrap
   reserves vertical room below only when the pair is stacked. */
.score-dist .dist-bar-wrap[data-pair="stacked"] { margin-bottom: 26px; }
.score-dist .dist-marker[data-pair] .lbl-you {
	color: var(--fg); font-weight: 700; font-size: 10px;
	letter-spacing: .4px; text-transform: uppercase;
	margin-right: 4px;
}
/* Below-bar marker: flipped layout — label at the bottom of the flex
   column, arrow on top pointing up at the bar tick. Popover opens
   downward from the pill instead of upward. */
.score-dist .dist-marker[data-pos="below"] {
	top: calc(100% + 2px); bottom: auto;
	flex-direction: column-reverse;
}
.score-dist .dist-marker[data-pos="below"] .arrow {
	border-top: 0;
	border-bottom: 6px solid var(--line);
	margin-top: 0;
	margin-bottom: 2px;
}
.score-dist .dist-marker[data-pos="below"][data-band="fail"]  .arrow { border-bottom-color: var(--alert); }
.score-dist .dist-marker[data-pos="below"][data-band="warn"]  .arrow { border-bottom-color: var(--warn); }
.score-dist .dist-marker[data-pos="below"][data-band="good"]  .arrow { border-bottom-color: color-mix(in srgb, var(--accent) 55%, var(--bg-elevated)); }
.score-dist .dist-marker[data-pos="below"][data-band="great"] .arrow { border-bottom-color: var(--accent); }
.score-dist .dist-marker[data-pos="below"] .dist-popover {
	bottom: auto; top: calc(100% + 6px);
}
/* Flip the popover's two-layer tail so it points up at the pill above. */
.score-dist .dist-marker[data-pos="below"] .dist-popover::before {
	bottom: auto; top: -7px;
	border-top: 0;
	border-bottom: 7px solid var(--line);
}
.score-dist .dist-marker[data-pos="below"] .dist-popover::after {
	bottom: auto; top: -6px;
	border-top: 0;
	border-bottom: 6px solid var(--bg-elevated);
}
.score-dist .dist-marker[data-pos="below"][data-band="fail"]  .dist-popover::before { border-bottom-color: var(--alert); }
.score-dist .dist-marker[data-pos="below"][data-band="warn"]  .dist-popover::before { border-bottom-color: var(--warn); }
.score-dist .dist-marker[data-pos="below"][data-band="good"]  .dist-popover::before { border-bottom-color: color-mix(in srgb, var(--accent) 55%, var(--bg-elevated)); }
.score-dist .dist-marker[data-pos="below"][data-band="great"] .dist-popover::before { border-bottom-color: var(--accent); }
/* Compare-mode leader/delta badge. Small pill centered horizontally
   between A and B markers, sits above both so it doesn't collide with
   the marker pills (which live at top: -22px) or the stacked-below B
   marker (which extends below the bar). barWrap reserves the extra
   top margin only when a pair is present. */
.score-dist .dist-bar-wrap[data-pair] { margin-top: 52px; }
.score-dist .dist-pair-badge {
	position: absolute;
	top: -46px;
	transform: translateX(-50%);
	display: inline-flex; align-items: center; gap: 4px;
	padding: 3px 9px;
	background: var(--bg-elevated);
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 11px; line-height: 1;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	box-shadow: 0 1px 2px rgba(0,0,0,.08);
	pointer-events: none;
	z-index: 3;
	animation: fadeUp .4s ease-out both;
	animation-delay: .35s;
}
.score-dist .dist-pair-badge .pb-leader {
	font-weight: 700; color: var(--fg);
	letter-spacing: .4px; text-transform: uppercase;
}
.score-dist .dist-pair-badge .pb-delta { color: var(--fg); font-weight: 700; }
.score-dist .dist-pair-badge[data-band="fail"]  { border-color: var(--alert); }
.score-dist .dist-pair-badge[data-band="warn"]  { border-color: var(--warn); }
.score-dist .dist-pair-badge[data-band="good"]  { border-color: color-mix(in srgb, var(--accent) 55%, var(--bg-elevated)); }
.score-dist .dist-pair-badge[data-band="great"] { border-color: var(--accent); }
.score-dist .dist-legend {
	list-style: none; padding: 0; margin: 8px 0 0;
	display: flex; flex-wrap: wrap; gap: 4px 14px;
	font-size: 12px;
}
.score-dist .dist-legend li { display: inline-flex; gap: 6px; align-items: center; }
.score-dist .dist-legend .dot {
	display: inline-block; width: 9px; height: 9px; border-radius: 50%;
}
.score-dist .dist-legend li[data-band="fail"]  .dot { background: var(--alert); }
.score-dist .dist-legend li[data-band="warn"]  .dot { background: var(--warn); }
.score-dist .dist-legend li[data-band="good"]  .dot { background: color-mix(in srgb, var(--accent) 55%, var(--bg-elevated)); }
.score-dist .dist-legend li[data-band="great"] .dot { background: var(--accent); }
.score-dist .dist-legend .band-name { color: var(--fg); }
.score-dist .dist-legend .band-range { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.score-dist .dist-legend .band-count { color: var(--fg); font-weight: 700; font-variant-numeric: tabular-nums; }
.score-dist .dist-legend .band-pct { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 11px; }

.waitlist button:disabled { opacity: .7; cursor: wait; }

.scan-result { margin-top: 28px; }
.scan-card {
	background: var(--bg-elevated);
	border: 1px solid var(--line);
	border-left: 4px solid var(--accent);
	border-radius: var(--radius);
	padding: 24px;
}
.scan-card.verdict-warn { border-left-color: var(--warn); }
.scan-card.verdict-bad  { border-left-color: var(--alert); }
.scan-head {
	display: flex; align-items: center; gap: 20px;
	padding-bottom: 18px; border-bottom: 1px solid var(--line);
	margin-bottom: 16px;
}
.scan-score { display: flex; align-items: baseline; line-height: 1; }
.scan-num   { font-size: 56px; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); }
.scan-card.verdict-warn .scan-num { color: var(--warn); }
.scan-card.verdict-bad  .scan-num { color: var(--alert); }
.scan-denom { font-size: 20px; color: var(--muted); margin-left: 4px; }
.scan-meta  { flex: 1; min-width: 0; }
.scan-domain { font-family: var(--mono); font-size: 14px; color: var(--fg); word-break: break-all; }
.scan-verdict { color: var(--muted); font-size: 14px; margin-top: 2px; }
.scan-cache { color: var(--muted); font-size: 12px; margin-left: 6px; }

.scan-signals { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sig {
	display: grid;
	grid-template-columns: 24px 1fr auto;
	gap: 12px;
	align-items: baseline;
	padding: 10px 12px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 6px;
}
.sig-icon { font-weight: 700; text-align: center; font-family: var(--mono); }
.sig.sig-ok  .sig-icon { color: var(--accent); }
.sig.sig-warn .sig-icon { color: var(--warn); }
.sig.sig-bad .sig-icon { color: var(--alert); }
.sig-body strong { font-weight: 700; color: var(--fg); }
.sig-note { color: var(--muted); font-size: 13px; margin-left: 4px; }
.sig-pts { font-family: var(--mono); font-size: 14px; color: var(--fg); white-space: nowrap; }
.sig-max { color: var(--muted); }
/* "How to fix →" link rendered after the note on warn/bad signal chips —
   takes the visitor straight to /signals/<slug>/#how-to-fix. */
.sig-fix {
	display: inline-block;
	margin-left: 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--accent);
	text-decoration: none;
	border-bottom: 1px dotted color-mix(in srgb, var(--accent) 50%, transparent);
	padding-bottom: 1px;
	white-space: nowrap;
}
.sig-fix:hover,
.sig-fix:focus-visible {
	color: var(--fg);
	border-bottom-style: solid;
	border-bottom-color: var(--accent);
	outline: none;
}
.sig.sig-bad .sig-fix { color: var(--alert); border-bottom-color: color-mix(in srgb, var(--alert) 55%, transparent); }
.sig.sig-bad .sig-fix:hover,
.sig.sig-bad .sig-fix:focus-visible { border-bottom-color: var(--alert); color: var(--fg); }
.sig.sig-warn .sig-fix { color: var(--warn); border-bottom-color: color-mix(in srgb, var(--warn) 55%, transparent); }
.sig.sig-warn .sig-fix:hover,
.sig.sig-warn .sig-fix:focus-visible { border-bottom-color: var(--warn); color: var(--fg); }
@media (max-width: 520px) {
	.sig-fix { display: block; margin-left: 0; margin-top: 4px; }
}

.scan-position {
	margin: 16px 0 4px;
	padding: 12px 14px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-left-width: 3px;
	border-radius: var(--radius);
}
.scan-position[data-band="fail"]  { border-left-color: var(--alert); }
.scan-position[data-band="warn"]  { border-left-color: var(--warn); }
.scan-position[data-band="good"]  { border-left-color: color-mix(in srgb, var(--accent) 55%, var(--bg-elevated)); }
.scan-position[data-band="great"] { border-left-color: var(--accent); }
.scan-position .sp-head {
	font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
	color: var(--muted); font-weight: 700; margin-bottom: 8px;
	display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.scan-position .sp-n {
	font-family: var(--mono); color: var(--fg); font-weight: 600; font-size: 12px;
	text-transform: none; letter-spacing: 0;
}
.scan-position .sp-row {
	display: flex; gap: 14px; flex-wrap: wrap;
	font-family: var(--mono); font-size: 13px; color: var(--fg);
}
.scan-position .sp-seg { display: inline-flex; align-items: baseline; gap: 6px; }
.scan-position .sp-seg strong { color: var(--fg); font-weight: 700; font-size: 15px; }
.scan-position .sp-seg em { color: var(--muted); font-style: normal; font-size: 12px; }
.scan-position .sp-below strong { color: var(--alert); }
.scan-position .sp-above strong { color: var(--accent); }
@media (max-width: 560px) {
	.scan-position .sp-row { flex-direction: column; gap: 6px; }
}

.scan-nudge {
	display: flex; align-items: baseline; gap: 10px;
	margin: 8px 0 4px; padding: 10px 14px;
	background: color-mix(in srgb, var(--bg) 75%, var(--bg-elevated));
	border: 1px solid var(--line);
	border-left-width: 3px;
	border-radius: var(--radius);
	font-size: 14px; line-height: 1.45; color: var(--fg);
}
.scan-nudge[data-target="warn"]  { border-left-color: var(--warn); }
.scan-nudge[data-target="good"]  { border-left-color: color-mix(in srgb, var(--accent) 55%, var(--bg-elevated)); }
.scan-nudge[data-target="great"] { border-left-color: var(--accent); }
.scan-nudge .sn-icon {
	font-family: var(--mono); font-size: 16px; color: var(--muted);
	flex: 0 0 auto; line-height: 1;
}
.scan-nudge[data-target="warn"]  .sn-icon { color: var(--warn); }
.scan-nudge[data-target="good"]  .sn-icon { color: color-mix(in srgb, var(--accent) 70%, var(--fg)); }
.scan-nudge[data-target="great"] .sn-icon { color: var(--accent); }
.scan-nudge .sn-text strong { color: var(--fg); font-weight: 700; }
.scan-nudge .sn-thresh { font-family: var(--mono); color: var(--muted); font-size: 12px; }

.scan-priority {
	margin: 4px 0 10px; padding: 10px 14px;
	background: color-mix(in srgb, var(--bg) 75%, var(--bg-elevated));
	border: 1px solid var(--line);
	border-left-width: 3px;
	border-radius: var(--radius);
	font-size: 14px; line-height: 1.45; color: var(--fg);
}
.scan-priority[data-target="warn"]  { border-left-color: var(--warn); }
.scan-priority[data-target="good"]  { border-left-color: color-mix(in srgb, var(--accent) 55%, var(--bg-elevated)); }
.scan-priority[data-target="great"] { border-left-color: var(--accent); }
.scan-priority .pf-head {
	display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
	margin-bottom: 8px;
}
.scan-priority .pf-tag {
	font-family: var(--mono); font-size: 11px;
	text-transform: uppercase; letter-spacing: 0.05em;
	color: var(--muted);
	flex: 0 0 auto;
}
.scan-priority[data-target="warn"]  .pf-tag { color: var(--warn); }
.scan-priority[data-target="good"]  .pf-tag { color: color-mix(in srgb, var(--accent) 70%, var(--fg)); }
.scan-priority[data-target="great"] .pf-tag { color: var(--accent); }
.scan-priority .pf-intro { color: var(--fg); font-size: 13px; }
.scan-priority .pf-intro strong { color: var(--fg); font-weight: 700; }
.scan-priority .pf-list {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: 6px 10px;
}
.scan-priority .pf-item {
	display: inline-flex; align-items: baseline; gap: 8px;
	padding: 4px 10px;
	background: var(--bg-elevated);
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 13px;
}
.scan-priority .pf-name { color: var(--fg); font-weight: 600; }
.scan-priority .pf-gap { font-family: var(--mono); color: var(--muted); }
.scan-priority .pf-gap strong { color: var(--fg); font-weight: 700; }
.scan-priority .pf-gap-unit { font-size: 11px; }
.scan-priority[data-target="warn"]  .pf-gap strong { color: var(--warn); }
.scan-priority[data-target="good"]  .pf-gap strong { color: color-mix(in srgb, var(--accent) 70%, var(--fg)); }
.scan-priority[data-target="great"] .pf-gap strong { color: var(--accent); }
/* Deep-signal priority variant — no band target, so reuse the neutral
   accent (--muted tint) instead of a band color. Lives inside .scan-deep
   between the head paragraph and the full 10-signal list. */
.scan-priority[data-target="deep"] { border-left-color: color-mix(in srgb, var(--fg) 30%, var(--bg-elevated)); margin-top: 0; margin-bottom: 14px; }
.scan-priority[data-target="deep"] .pf-tag { color: color-mix(in srgb, var(--fg) 70%, var(--muted)); }
.scan-priority[data-target="deep"] .pf-gap strong { color: var(--fg); }
.scan-priority .pf-more {
	display: inline-flex; align-items: baseline; gap: 4px;
	padding: 4px 10px; border-radius: 999px;
	background: transparent; border: 1px dashed var(--line);
	color: var(--muted); font-family: var(--mono); font-size: 12px;
}
.scan-priority .pf-more strong { color: var(--fg); font-weight: 700; }
@media (max-width: 560px) {
	.scan-priority .pf-list { flex-direction: column; gap: 6px; }
}

.scan-deep { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.scan-deep-head { margin-bottom: 12px; }
.scan-deep-head h3 {
	font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase;
	color: var(--muted); margin: 0 0 6px; font-weight: 700;
	display: flex; align-items: baseline; gap: 10px;
}
.scan-deep-pts { font-family: var(--mono); color: var(--fg); font-weight: 600; font-size: 13px; }
.scan-deep-head p { font-size: 13px; color: var(--muted); margin: 0; max-width: 60ch; }
.scan-deep-head em { color: var(--fg); font-style: normal; }

.scan-share {
	margin-top: 18px;
	padding: 12px 14px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}
.scan-share-label { color: var(--muted); font-size: 13px; flex-basis: 100%; }
.scan-share-url {
	flex: 1 1 280px;
	min-width: 0;
	font-family: var(--mono);
	font-size: 13px;
	color: var(--accent);
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.scan-share-url:hover { text-decoration: underline; }
.scan-share-btn {
	background: transparent;
	color: var(--fg);
	border: 1px solid var(--line);
	padding: 6px 14px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
	font-family: var(--font);
}
.scan-share-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Contextual upsell from single-scan to compare mode. Sits below the
   share block; one click pre-fills input A with the just-scanned store
   and switches the form to compare mode. */
.scan-compare-cta {
	margin-top: 14px;
	padding: 12px 14px;
	background: var(--bg-elevated);
	border: 1px dashed var(--line);
	border-radius: var(--radius);
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: flex-start;
}
.scc-btn {
	background: transparent;
	color: var(--accent);
	border: 0;
	padding: 0;
	font: inherit;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	text-align: left;
}
.scc-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.scc-btn:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}
.scc-btn strong { color: var(--fg); font-weight: 700; }
.scc-hint {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--muted);
}

/* Mirror of .scan-compare-cta but rendered on /scorecard/{domain}/ pages.
   Styled globally (not inside render-scorecard.js's inline <style>) so the
   v1 launch-day scorecards inherit it via the same /style.css link. */
.compare-cta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: flex-start;
	padding: 14px 16px;
	background: var(--bg-elevated);
	border: 1px dashed var(--line);
	border-radius: var(--radius);
	margin: 24px 0 8px;
}
.compare-cta-link {
	color: var(--accent);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
}
.compare-cta-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.compare-cta-link:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}
.compare-cta-link strong { color: var(--fg); font-weight: 700; }
.compare-cta-hint {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--muted);
}

.scan-foot { margin-top: 18px; color: var(--muted); font-size: 14px; }
.scan-foot p { margin: 0 0 8px; }
.scan-foot p:last-child { margin: 0; }
.scan-foot strong { color: var(--fg); }
.scan-links a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; margin-right: 4px; }

.scan-err {
	padding: 18px 20px; border: 1px solid var(--alert); border-radius: var(--radius);
	background: rgba(248, 81, 73, 0.08); color: var(--fg);
}
.scan-err em { color: var(--accent); font-style: normal; font-family: var(--mono); }

.why { margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--line); }
.why h2 { font-size: 22px; margin: 0 0 16px; letter-spacing: -0.01em; font-weight: 700; }
.why p.body { margin: 0; color: var(--fg); max-width: 64ch; }
.why p.body strong { color: var(--fg); font-weight: 700; }

.check-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.check-grid li {
	padding: 18px 20px;
	background: var(--bg-elevated);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	display: grid;
	gap: 6px;
}
.check-grid li strong {
	font-weight: 700;
	color: var(--fg);
	letter-spacing: -0.005em;
}
.check-grid li span { color: var(--muted); font-size: 15px; line-height: 1.5; }

.faq-list { margin: 0; padding: 0; }
.faq-list dt {
	margin: 0;
	padding: 18px 0 6px;
	font-size: 16px;
	font-weight: 600;
	color: var(--fg);
	letter-spacing: -0.005em;
	border-top: 1px solid var(--line);
}
.faq-list dt:first-child { border-top: 0; padding-top: 8px; }
.faq-list dd {
	margin: 0 0 8px;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.6;
	max-width: 70ch;
}
.faq-list dd code {
	font-family: var(--mono);
	font-size: 13px;
	color: var(--accent);
	background: rgba(255,255,255,0.04);
	padding: 1px 5px;
	border-radius: 4px;
}

footer { margin-top: 96px; color: var(--muted); font-size: 14px; text-align: center; }
footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
footer a:hover { color: var(--fg); }

.site-footer { margin-top: 96px; padding-top: 32px; border-top: 1px solid var(--line); text-align: left; }
.site-footer .footer-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 28px;
}
@media (max-width: 980px) {
	.site-footer .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
.site-footer .footer-col { display: flex; flex-direction: column; gap: 8px; }
.site-footer .footer-col h4 {
	margin: 0 0 6px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--muted);
	font-weight: 600;
}
.site-footer .footer-col a {
	color: var(--fg);
	text-decoration: none;
	font-size: 14px;
}
.site-footer .footer-col a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .footer-tag {
	color: var(--muted);
	font-family: var(--mono);
	font-size: 12px;
	margin-top: 8px;
}
@media (max-width: 720px) {
	.site-footer .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 420px) {
	.site-footer .footer-grid { grid-template-columns: 1fr; }
}

.factory-ring {
	margin-top: 96px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
}
.factory-ring h4 {
	margin: 0 0 12px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--muted);
	font-weight: 600;
}
.factory-ring ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 6px 24px;
}
@media (max-width: 720px) {
	.factory-ring ul { grid-template-columns: 1fr; }
}
.factory-ring li {
	font-size: 13px;
	color: var(--muted);
	line-height: 1.5;
}
.factory-ring li a {
	color: var(--fg);
	text-decoration: none;
	font-family: var(--mono);
	font-size: 13px;
}
.factory-ring li a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.mode-toggle {
	display: flex; gap: 6px; margin: 0 0 10px; padding: 0;
	font-size: 13px;
}
.mode-btn {
	background: transparent;
	color: var(--muted);
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 5px 10px;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
}
.mode-btn:hover { color: var(--fg); border-color: var(--muted); }
.mode-btn.mode-active {
	color: var(--accent);
	border-color: var(--accent);
	background: rgba(63, 185, 80, 0.08);
}

/* One-click demo scan buttons under the hero form. Sits between the form
   and the mode-toggle so a visitor who doesn't want to type a URL can get
   to a results page in a single click. The score chips on each button
   tease the spread (60..100) so the user is curious where their own store
   would land. */
.demo-stores {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin: 0 0 10px;
	padding: 0;
	font-size: 13px;
}
.demo-label { color: var(--muted); margin-right: 2px; }
.demo-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: transparent;
	color: var(--fg);
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 5px 9px 5px 10px;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	font-family: var(--mono);
	line-height: 1.2;
	transition: border-color .12s ease, color .12s ease, background .12s ease;
}
.demo-btn:hover { color: var(--accent); border-color: var(--accent); background: rgba(63,185,80,0.06); }
.demo-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.demo-score {
	display: inline-block;
	min-width: 22px;
	text-align: center;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 5px;
	border-radius: 4px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: 0;
}
.demo-band-great { background: rgba(63, 185, 80, 0.16);  color: #6ce28a; }
.demo-band-good  { background: rgba(120, 180, 255, 0.14); color: #9fc6ff; }
.demo-band-warn  { background: rgba(240, 184, 92, 0.16);  color: #f0b85c; }
.demo-band-bad   { background: rgba(248,  81, 73,  0.16); color: #ff8a80; }
@media (max-width: 520px) {
	.demo-stores { font-size: 12px; }
	.demo-btn { padding: 4px 7px 4px 8px; font-size: 12px; }
}

.cmp-inline-pair {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 14px;
	align-items: center;
	padding: 16px 0 20px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 16px;
}
.cmp-inline-store { text-align: center; }
.cmp-inline-name {
	font-family: var(--mono);
	color: var(--fg);
	font-size: 14px;
	margin-bottom: 6px;
	word-break: break-all;
}
.cmp-inline-name a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--muted); }
.cmp-inline-name a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.cmp-inline-score {
	font-family: var(--mono);
	font-size: 44px;
	font-weight: 700;
	line-height: 1;
	color: var(--accent);
}
.cmp-inline-score.verdict-warn { color: var(--warn); }
.cmp-inline-score.verdict-bad  { color: var(--alert); }
.cmp-inline-score span { font-size: 16px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.cmp-inline-deep { color: var(--muted); font-family: var(--mono); font-size: 12px; margin-top: 4px; }
.cmp-inline-vs {
	font-family: var(--mono);
	color: var(--muted);
	font-size: 16px;
	align-self: center;
	padding: 0 6px;
}
@media (max-width: 520px) {
	.cmp-inline-pair { grid-template-columns: 1fr; gap: 10px; }
	.cmp-inline-vs { padding: 4px 0; }
}

@media (prefers-reduced-motion: no-preference) {
	h1 { animation: fadeUp .6s ease-out both; }
	.lede { animation: fadeUp .7s ease-out both; animation-delay: .08s; }
	.waitlist { animation: fadeUp .8s ease-out both; animation-delay: .14s; }
}
@keyframes fadeUp {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}
