/* ATS checker — high-impact marketing tool page (scoped) */
.marketing-page .ats-page {
	--ats-ink: #0c1222;
	--ats-ink-soft: #3d4a63;
	--ats-muted: #64708b;
	--ats-line: rgba(15, 23, 42, 0.08);
	--ats-card: rgba(255, 255, 255, 0.78);
	--ats-violet: #8952e0;
	--ats-violet-deep: #6b3dc4;
	--ats-violet-glow: rgba(137, 82, 224, 0.45);
	--ats-mint: #10b981;
	--ats-amber: #f59e0b;
	--ats-coral: #fb7185;
	position: relative;
	overflow: hidden;
	padding: 4.75rem 0 5.5rem;
	min-height: 72vh;
	color: var(--ats-ink);
	font-family: var(--font-text), system-ui, sans-serif;
}

.ats-page-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.ats-page-grid {
	position: absolute;
	inset: 0;
	opacity: 0.45;
	background-image:
		linear-gradient(rgba(137, 82, 224, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(137, 82, 224, 0.07) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse 80% 70% at 50% -10%, black 35%, transparent 100%);
}

.ats-page-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.55;
	animation: ats-orb-drift 18s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
	.ats-page-orb {
		animation: none;
	}
}

.ats-page-orb--a {
	width: min(52vw, 520px);
	height: min(52vw, 520px);
	background: radial-gradient(circle at 30% 30%, var(--ats-violet-glow), transparent 70%);
	top: -12%;
	right: -8%;
}

.ats-page-orb--b {
	width: min(42vw, 420px);
	height: min(42vw, 420px);
	background: radial-gradient(circle at 70% 50%, rgba(79, 172, 254, 0.35), transparent 65%);
	bottom: 5%;
	left: -10%;
	animation-delay: -6s;
}

.ats-page-orb--c {
	width: min(36vw, 360px);
	height: min(36vw, 360px);
	background: radial-gradient(circle at 50% 50%, rgba(244, 114, 182, 0.22), transparent 68%);
	top: 38%;
	left: 55%;
	animation-delay: -11s;
}

@keyframes ats-orb-drift {
	0% {
		transform: translate(0, 0) scale(1);
	}
	100% {
		transform: translate(24px, 18px) scale(1.05);
	}
}

.ats-shell {
	position: relative;
	z-index: 1;
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

@media (min-width: 768px) {
	.ats-shell {
		padding: 0 2.25rem;
	}
}

/* Hero */
.ats-hero {
	text-align: center;
	max-width: 820px;
	margin: 0 auto 3rem;
}

.ats-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 1rem 0.4rem 0.65rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ats-violet-deep);
	background: linear-gradient(135deg, rgba(137, 82, 224, 0.14), rgba(79, 172, 254, 0.12));
	border: 1px solid rgba(137, 82, 224, 0.22);
	border-radius: 999px;
	margin-bottom: 1.35rem;
	box-shadow: 0 4px 20px rgba(137, 82, 224, 0.12);
}

.ats-hero-badge-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--ats-mint), var(--ats-violet));
	box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.ats-hero-title {
	font-family: var(--font-title), var(--font-text), sans-serif;
	font-size: clamp(2.1rem, 4.5vw, 3.15rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.035em;
	margin: 0 0 1.1rem;
	background: linear-gradient(125deg, var(--ats-ink) 0%, #3b2f5c 45%, var(--ats-violet-deep) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.ats-hero-sub {
	margin: 0 auto;
	max-width: 640px;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ats-ink-soft);
}

.ats-hero-sub strong {
	color: var(--ats-ink);
	font-weight: 700;
}

.ats-trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.65rem 1.25rem;
	list-style: none;
	margin: 2rem 0 0;
	padding: 0;
}

.ats-trust li {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ats-ink-soft);
	background: var(--ats-card);
	backdrop-filter: blur(12px);
	border: 1px solid var(--ats-line);
	border-radius: 999px;
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.ats-trust-ic {
	display: flex;
	color: var(--ats-violet);
}

.ats-trust-ic svg {
	display: block;
}

/* Alert */
.ats-alert {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	padding: 1rem 1.25rem;
	margin-bottom: 2rem;
	border-radius: 1rem;
	background: linear-gradient(135deg, #fff1f2, #fff7ed);
	border: 1px solid rgba(251, 113, 133, 0.35);
	color: #9f1239;
	box-shadow: 0 8px 30px rgba(251, 113, 133, 0.12);
}

.ats-alert ul {
	margin: 0;
	padding-left: 1.15rem;
	line-height: 1.55;
}

.ats-alert-ic {
	flex-shrink: 0;
	color: #e11d48;
}

.ats-alert[hidden] {
	display: none !important;
}

.marketing-page .ats-page #ats-alert-root,
.marketing-page .ats-page #ats-report-root {
	scroll-margin-top: 5.5rem;
}

/* Layout: side + form */
.ats-layout {
	display: grid;
	gap: 1.5rem;
	align-items: start;
}

@media (min-width: 1024px) {
	.ats-layout {
		grid-template-columns: 1fr 1.12fr;
		gap: 2rem;
	}
}

.ats-side {
	padding: 1.75rem 1.5rem;
	border-radius: 1.25rem;
	background: linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 255, 0.88) 100%);
	border: 1px solid var(--ats-line);
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.04),
		0 24px 48px -24px rgba(137, 82, 224, 0.18);
}

.ats-side-title {
	font-family: var(--font-title), sans-serif;
	font-size: 1.125rem;
	font-weight: 800;
	margin: 0 0 1.25rem;
	color: var(--ats-ink);
}

.ats-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.ats-steps li {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem;
	align-items: start;
}

.ats-step-num {
	width: 2rem;
	height: 2rem;
	display: grid;
	place-items: center;
	font-size: 0.8125rem;
	font-weight: 800;
	color: #fff;
	background: linear-gradient(145deg, var(--ats-violet), var(--ats-violet-deep));
	border-radius: 0.5rem;
	box-shadow: 0 4px 12px rgba(137, 82, 224, 0.35);
}

.ats-steps strong {
	display: block;
	font-size: 0.9375rem;
	margin-bottom: 0.25rem;
	color: var(--ats-ink);
}

.ats-steps p {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--ats-muted);
}

.ats-disclaimer {
	margin: 1.5rem 0 0;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--ats-muted);
	padding-top: 1.25rem;
	border-top: 1px dashed var(--ats-line);
}

/* Form card */
.ats-form-card {
	padding: 2rem 1.5rem 2.25rem;
	border-radius: 1.35rem;
	background: rgba(255, 255, 255, 0.86);
	backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.7);
	box-shadow:
		0 0 0 1px rgba(137, 82, 224, 0.06),
		0 4px 6px rgba(15, 23, 42, 0.03),
		0 32px 64px -32px rgba(137, 82, 224, 0.25);
}

@media (min-width: 768px) {
	.ats-form-card {
		padding: 2.25rem 2rem 2.5rem;
	}
}

.ats-field {
	margin-bottom: 1.5rem;
}

.ats-field:last-of-type {
	margin-bottom: 1.75rem;
}

.ats-label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ats-ink-soft);
	margin-bottom: 0.6rem;
}

.ats-drop {
	position: relative;
	min-height: 152px;
	overflow: hidden;
	border-radius: 1rem;
	/* Isolate stacking so the invisible file input cannot paint above the submit button */
	isolation: isolate;
}

/* Override global.css input rules — wide absolute inputs can cover the form and steal clicks */
.marketing-page .ats-page input.ats-drop-input {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100% !important;
	max-width: 100%;
	height: 100% !important;
	min-height: 0;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	box-shadow: none !important;
	opacity: 0;
	cursor: pointer;
	z-index: 1;
	font-size: 0;
	line-height: 0;
}

.ats-drop-ui {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 152px;
	padding: 1.5rem 1.25rem;
	border: 2px dashed rgba(137, 82, 224, 0.35);
	border-radius: 1rem;
	background: linear-gradient(180deg, rgba(137, 82, 224, 0.06), rgba(79, 172, 254, 0.04));
	transition:
		border-color 0.2s ease,
		background 0.2s ease,
		box-shadow 0.2s ease;
	pointer-events: none;
}

.ats-drop-input:hover + .ats-drop-ui,
.ats-drop-input:focus + .ats-drop-ui {
	border-color: var(--ats-violet);
	background: linear-gradient(180deg, rgba(137, 82, 224, 0.1), rgba(79, 172, 254, 0.06));
	box-shadow: 0 0 0 4px rgba(137, 82, 224, 0.12);
}

.ats-drop-icon {
	color: var(--ats-violet);
	margin-bottom: 0.65rem;
}

.ats-drop-icon svg {
	display: block;
}

.ats-drop-title {
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--ats-ink);
	margin-bottom: 0.35rem;
}

.ats-drop-meta {
	font-size: 0.8125rem;
	color: var(--ats-muted);
}

.ats-drop-file {
	display: block;
	margin-top: 0.75rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--ats-violet-deep);
	min-height: 1.25em;
	word-break: break-all;
	max-width: 100%;
}

.ats-textarea {
	width: 100%;
	box-sizing: border-box;
	font-family: var(--font-text), ui-monospace, system-ui, sans-serif;
	font-size: 0.9375rem;
	line-height: 1.55;
	padding: 1rem 1.1rem;
	border-radius: 0.875rem;
	border: 1px solid var(--ats-line);
	background: rgba(255, 255, 255, 0.95);
	color: var(--ats-ink);
	resize: vertical;
	min-height: 220px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.ats-textarea::placeholder {
	color: #94a3b8;
}

.ats-textarea:hover {
	border-color: rgba(137, 82, 224, 0.25);
}

.ats-textarea:focus {
	outline: none;
	border-color: var(--ats-violet);
	box-shadow: 0 0 0 4px rgba(137, 82, 224, 0.15);
}

.ats-submit {
	position: relative;
	z-index: 4;
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	padding: 1rem 1.5rem;
	font-size: 1.0625rem;
	font-weight: 700;
	font-family: inherit;
	color: #fff;
	border: none !important;
	border-radius: 999px;
	cursor: pointer;
	background: linear-gradient(135deg, #9d63e8 0%, var(--ats-violet) 40%, var(--ats-violet-deep) 100%);
	box-shadow:
		0 4px 16px rgba(137, 82, 224, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.ats-submit:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
	box-shadow:
		0 8px 28px rgba(137, 82, 224, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
	color: #fff;
}

.ats-submit:active {
	transform: translateY(0);
}

.ats-submit-arrow {
	display: flex;
	transition: transform 0.2s ease;
}

.ats-submit:hover .ats-submit-arrow {
	transform: translateX(4px);
}

/* Results dashboard */
.ats-dash {
	margin-top: 3.5rem;
	padding-top: 3rem;
	border-top: 1px solid var(--ats-line);
}

.ats-dash[hidden] {
	display: none !important;
}

.ats-dash-head {
	text-align: center;
	margin-bottom: 2rem;
}

.ats-dash-title {
	font-family: var(--font-title), sans-serif;
	font-size: clamp(1.5rem, 3vw, 1.85rem);
	font-weight: 800;
	margin: 0 0 0.35rem;
	color: var(--ats-ink);
}

.ats-dash-tag {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ats-muted);
}

.ats-scoreboard {
	padding: 2rem 1.5rem;
	border-radius: 1.35rem;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(250, 245, 255, 0.9));
	border: 1px solid var(--ats-line);
	box-shadow: 0 20px 50px -28px rgba(137, 82, 224, 0.35);
	margin-bottom: 2rem;
}

@media (min-width: 640px) {
	.ats-scoreboard {
		padding: 2.25rem 2rem;
	}
}

.ats-score-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.75rem;
	text-align: center;
}

@media (min-width: 640px) {
	.ats-score-hero {
		flex-direction: row;
		text-align: left;
		align-items: center;
	}
}

.ats-ring {
	--score: 0;
	position: relative;
	width: 8.5rem;
	height: 8.5rem;
	flex-shrink: 0;
	border-radius: 50%;
	background: conic-gradient(
		var(--ats-violet) calc(var(--score) * 1%),
		#e8e0f4 0
	);
	box-shadow: 0 12px 40px rgba(137, 82, 224, 0.25);
	transition: filter 0.4s ease;
}

.ats-ring-inner {
	position: absolute;
	inset: 10px;
	z-index: 1;
	border-radius: 50%;
	background: linear-gradient(180deg, #fff 0%, #faf8ff 100%);
	box-shadow: inset 0 2px 8px rgba(15, 23, 42, 0.04);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.ats-ring-value {
	font-family: var(--font-title), sans-serif;
	font-size: 2.35rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--ats-ink);
}

.ats-ring-of {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--ats-muted);
	margin-top: 0.15rem;
}

.ats-score-copy {
	flex: 1;
	min-width: 0;
}

.ats-score-label {
	font-size: 1.25rem;
	font-weight: 800;
	margin: 0 0 0.5rem;
	color: var(--ats-ink);
}

.ats-score-lead {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--ats-ink-soft);
}

.ats-score-lead strong {
	color: var(--ats-ink);
	font-weight: 700;
}

.ats-meter {
	height: 10px;
	border-radius: 999px;
	background: rgba(137, 82, 224, 0.12);
	overflow: hidden;
}

.ats-meter-fill {
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--ats-violet-deep), #c4a5f5, var(--ats-violet));
	transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
	box-shadow: 0 0 12px rgba(137, 82, 224, 0.5);
}

@media (prefers-reduced-motion: reduce) {
	.ats-meter-fill {
		transition: none;
	}
}

.ats-stat-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
	margin-top: 1.75rem;
}

.ats-stat {
	padding: 1rem 0.75rem;
	text-align: center;
	border-radius: 0.875rem;
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid var(--ats-line);
}

.ats-stat-k {
	display: block;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ats-muted);
	margin-bottom: 0.35rem;
}

.ats-stat-v {
	font-family: var(--font-title), sans-serif;
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--ats-violet-deep);
}

.ats-empty-score {
	text-align: center;
	padding: 2rem;
	border-radius: 1.25rem;
	background: rgba(248, 250, 252, 0.9);
	border: 1px dashed var(--ats-line);
	margin-bottom: 2rem;
}

.ats-muted {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--ats-muted);
}

.ats-block {
	margin-bottom: 2rem;
	padding: 1.5rem 1.35rem;
	border-radius: 1.15rem;
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid var(--ats-line);
	box-shadow: 0 8px 32px rgba(15, 23, 42, 0.05);
}

@media (min-width: 768px) {
	.ats-block {
		padding: 1.75rem 1.75rem;
	}
}

.ats-block--ok {
	border-color: rgba(16, 185, 129, 0.2);
	background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(236, 253, 245, 0.65));
}

.ats-block--gap {
	border-color: rgba(245, 158, 11, 0.25);
	background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(255, 251, 235, 0.7));
}

.ats-block--tips {
	border-color: rgba(137, 82, 224, 0.2);
	background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 255, 0.85));
}

.ats-block-title {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 1.0625rem;
	font-weight: 800;
	margin: 0 0 0.75rem;
	color: var(--ats-ink);
}

.ats-block-ic {
	display: flex;
	color: var(--ats-violet);
}

.ats-block--ok .ats-block-ic {
	color: var(--ats-mint);
}

.ats-block--gap .ats-block-ic {
	color: var(--ats-amber);
}

.ats-issues {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.ats-issue {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem;
	align-items: start;
	padding: 1.1rem 1.15rem;
	border-radius: 0.875rem;
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid var(--ats-line);
}

.ats-issue-accent {
	width: 4px;
	align-self: stretch;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--ats-coral), var(--ats-amber));
}

.ats-issue strong {
	display: block;
	font-size: 0.9375rem;
	margin-bottom: 0.35rem;
	color: var(--ats-ink);
}

.ats-issue p {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--ats-ink-soft);
}

.ats-columns {
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 900px) {
	.ats-columns {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}
}

.ats-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 0.75rem;
}

.ats-tags span {
	font-size: 0.8125rem;
	font-weight: 600;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: rgba(137, 82, 224, 0.08);
	border: 1px solid rgba(137, 82, 224, 0.15);
	color: var(--ats-violet-deep);
}

.ats-block--ok .ats-tags span {
	background: rgba(16, 185, 129, 0.1);
	border-color: rgba(16, 185, 129, 0.2);
	color: #047857;
}

.ats-tags--warn span {
	background: rgba(245, 158, 11, 0.12);
	border-color: rgba(245, 158, 11, 0.28);
	color: #b45309;
}

.ats-tips {
	margin: 0.5rem 0 0;
	padding-left: 1.2rem;
	color: var(--ats-ink-soft);
	line-height: 1.65;
	font-size: 0.9375rem;
}

.ats-tips li {
	margin-bottom: 0.55rem;
}

.ats-footnote {
	text-align: center;
	font-size: 0.8125rem;
	color: var(--ats-muted);
	margin: 2rem 0 0;
	padding-top: 1.5rem;
	border-top: 1px dashed var(--ats-line);
}

/* —— Resume-only scan layout & report —— */
.ats-stage {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	max-width: 880px;
	margin: 0 auto;
}

.ats-scan {
	position: relative;
	padding: 2.25rem 1.75rem 2.5rem;
	border-radius: 1.5rem;
	background: linear-gradient(155deg, rgba(255, 255, 255, 0.94) 0%, rgba(250, 248, 255, 0.9) 100%);
	border: 1px solid rgba(137, 82, 224, 0.12);
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.6) inset,
		0 24px 64px -32px rgba(137, 82, 224, 0.35);
	overflow: hidden;
}

@media (min-width: 640px) {
	.ats-scan {
		padding: 2.5rem 2.5rem 2.75rem;
	}
}

.ats-scan-glow {
	position: absolute;
	inset: -40% -20% auto;
	height: 70%;
	background: radial-gradient(ellipse at 50% 0%, rgba(137, 82, 224, 0.12), transparent 55%);
	pointer-events: none;
}

.ats-scan-eyebrow {
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ats-violet-deep);
	margin: 0 0 0.5rem;
}

.ats-scan-title {
	font-family: var(--font-title), sans-serif;
	font-size: 1.65rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	margin: 0 0 0.5rem;
	color: var(--ats-ink);
}

.ats-scan-lead {
	margin: 0 0 1.5rem;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--ats-ink-soft);
	max-width: 52ch;
}

.ats-report {
	position: relative;
	padding: 2.5rem 1.5rem 2.75rem;
	border-radius: 1.5rem;
	background: linear-gradient(180deg, rgba(12, 18, 34, 0.04) 0%, rgba(255, 255, 255, 0.92) 22%);
	border: 1px solid var(--ats-line);
	box-shadow: 0 28px 80px -40px rgba(15, 23, 42, 0.35);
	opacity: 0;
	transform: translateY(16px);
	transition:
		opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.ats-report--visible {
	opacity: 1;
	transform: translateY(0);
}

.ats-report[hidden] {
	display: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.ats-report {
		transition: none;
		opacity: 1;
		transform: none;
	}
}

.ats-report-top {
	text-align: center;
	margin-bottom: 2rem;
}

.ats-grade-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 1rem;
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(120deg, var(--ats-violet), #c084fc, var(--ats-violet-deep));
	border-radius: 999px;
	margin-bottom: 1rem;
	box-shadow: 0 6px 24px rgba(137, 82, 224, 0.35);
}

.ats-report-summary {
	margin: 0 auto;
	max-width: 56ch;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--ats-ink-soft);
}

.ats-report-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	margin-bottom: 2.25rem;
}

@media (min-width: 640px) {
	.ats-report-hero {
		flex-direction: row;
		justify-content: center;
		align-items: center;
		gap: 2.5rem;
	}
}

.ats-ring--xl {
	width: 10.5rem;
	height: 10.5rem;
}

.ats-ring--xl .ats-ring-inner {
	inset: 12px;
}

.ats-ring--xl .ats-ring-value {
	font-size: 2.75rem;
}

.ats-ring--xl .ats-ring-of {
	font-size: 0.8125rem;
}

.ats-ring--xl {
	filter: drop-shadow(0 12px 28px rgba(137, 82, 224, 0.25));
}

.ats-report-meta {
	flex: 1;
	min-width: 200px;
	max-width: 320px;
}

.ats-report-points {
	font-weight: 700;
	font-size: 1rem;
	margin: 0 0 0.75rem;
	color: var(--ats-ink);
}

.ats-check-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
}

@media (min-width: 720px) {
	.ats-check-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.ats-check-card {
	position: relative;
	padding: 1.25rem 1.25rem 1.35rem;
	border-radius: 1.1rem;
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid var(--ats-line);
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
	opacity: 0;
	transform: translateY(14px);
	animation: ats-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	animation-delay: var(--stagger, 0s);
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease,
		border-color 0.25s ease;
}

.ats-check-card:hover {
	transform: translateY(0) translateY(-3px);
	box-shadow: 0 16px 40px rgba(137, 82, 224, 0.12);
	border-color: rgba(137, 82, 224, 0.2);
}

.ats-check-card--pass {
	border-left: 4px solid var(--ats-mint);
}

.ats-check-card--warn {
	border-left: 4px solid var(--ats-amber);
}

.ats-check-card--fail {
	border-left: 4px solid var(--ats-coral);
}

@keyframes ats-card-in {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ats-check-card {
		animation: none;
		opacity: 1;
		transform: none;
	}
}

.ats-check-card-hd {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 0.65rem;
}

.ats-card-ic {
	display: flex;
	flex-shrink: 0;
	color: var(--ats-violet);
}

.ats-check-card--pass .ats-card-ic {
	color: var(--ats-mint);
}

.ats-check-card--warn .ats-card-ic {
	color: var(--ats-amber);
}

.ats-check-card--fail .ats-card-ic {
	color: var(--ats-coral);
}

.ats-check-card-titles {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.35rem 0.75rem;
}

.ats-check-card-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 800;
	color: var(--ats-ink);
}

.ats-check-badge {
	font-size: 0.75rem;
	font-weight: 800;
	color: var(--ats-muted);
	background: rgba(15, 23, 42, 0.05);
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
}

.ats-check-card-detail {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--ats-ink-soft);
}

.ats-tips-block {
	margin-top: 2rem;
	padding: 1.5rem 1.35rem;
	border-radius: 1.1rem;
	background: linear-gradient(135deg, rgba(137, 82, 224, 0.08), rgba(79, 172, 254, 0.06));
	border: 1px solid rgba(137, 82, 224, 0.15);
}

.ats-tips-title {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	font-weight: 800;
	color: var(--ats-ink);
}

.ats-tips-list {
	margin: 0;
	padding-left: 1.2rem;
	color: var(--ats-ink-soft);
	line-height: 1.65;
	font-size: 0.9375rem;
}

.ats-tips-list li {
	margin-bottom: 0.45rem;
}

.ats-report-actions {
	margin-top: 2rem;
	text-align: center;
}

.ats-ghost-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	font-size: 0.9375rem;
	font-weight: 700;
	font-family: inherit;
	color: var(--ats-violet-deep);
	background: rgba(255, 255, 255, 0.85);
	border: 2px solid rgba(137, 82, 224, 0.35);
	border-radius: 999px;
	cursor: pointer;
	transition:
		background 0.2s ease,
		transform 0.2s ease,
		border-color 0.2s ease;
}

.ats-ghost-btn:hover {
	background: #fff;
	border-color: var(--ats-violet);
	transform: translateY(-2px);
	color: var(--ats-violet-deep);
}

.ats-meter-fill {
	transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
	.ats-meter-fill {
		transition: none;
	}
}
