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

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

.tpl-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%);
}

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

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

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

.tpl-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;
}

.tpl-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 tpl-orb-drift {
	0% {
		transform: translate(0, 0) scale(1);
	}
	100% {
		transform: translate(24px, 18px) scale(1.05);
	}
}

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

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

.tpl-hero {
	text-align: center;
	max-width: 820px;
	margin: 0 auto 2.75rem;
}

.tpl-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(--tpl-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);
}

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

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

.tpl-hero-tagline {
	margin: 0 auto 0.65rem;
	max-width: 38rem;
	font-size: clamp(1.05rem, 2.5vw, 1.2rem);
	font-weight: 600;
	font-family: var(--font-text), system-ui, sans-serif;
	line-height: 1.45;
	letter-spacing: -0.01em;
	color: var(--tpl-ink-soft);
}

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

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

.tpl-hero-sub a {
	font-weight: 600;
	color: var(--tpl-violet-deep);
	text-decoration: none;
}

.tpl-hero-sub a:hover {
	text-decoration: underline;
	color: var(--tpl-violet);
}

.tpl-hero-bridge {
	margin: 1.1rem auto 0;
	max-width: 34rem;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--tpl-muted);
}

.tpl-hero-bridge strong {
	color: var(--tpl-ink-soft);
	font-weight: 700;
}

.tpl-hero-bridge a {
	font-weight: 600;
	color: var(--tpl-violet-deep);
	text-decoration: none;
}

.tpl-hero-bridge a:hover {
	text-decoration: underline;
	color: var(--tpl-violet);
}

/* Main stage card (checker-style glass panel) */
.tpl-stage {
	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.22);
	margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
	.tpl-stage {
		padding: 2.25rem 2rem 2.5rem;
	}
}

.tpl-stage-head {
	margin: 0 0 1.5rem;
	text-align: center;
}

.tpl-stage-kicker {
	margin: 0 0 0.35rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tpl-violet-deep);
}

.tpl-stage-title {
	margin: 0;
	font-family: var(--font-title), var(--font-text), sans-serif;
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--tpl-ink);
	letter-spacing: -0.02em;
}

.tpl-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.tpl-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: 1rem;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid var(--tpl-line);
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tpl-card:hover {
	border-color: rgba(137, 82, 224, 0.28);
	box-shadow: 0 8px 28px -8px rgba(137, 82, 224, 0.2);
	transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
	.tpl-card:hover {
		transform: none;
	}
}

.tpl-card-preview {
	display: block;
	aspect-ratio: 3 / 4;
	background-color: #fff;
	border-bottom: 1px solid var(--tpl-line);
}

.tpl-card-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	background-color: #fff;
}

.tpl-card-body {
	padding: 1rem 1.1rem 1.15rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0;
}

.tpl-card-body h3 {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	font-weight: 800;
	font-family: var(--font-text), system-ui, sans-serif;
	color: var(--tpl-ink);
	line-height: 1.3;
	letter-spacing: -0.02em;
}

.tpl-card-credit {
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
	color: var(--tpl-muted);
	line-height: 1.4;
}

.tpl-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	margin-top: auto;
	padding-top: 0.65rem;
	border-top: 1px solid var(--tpl-line);
}

.tpl-card-actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 2.25rem;
	padding: 0.4rem 1rem;
	font-size: 0.8125rem;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(145deg, var(--tpl-violet), var(--tpl-violet-deep));
	border-radius: 0.65rem;
	text-decoration: none;
	box-shadow: 0 2px 10px rgba(137, 82, 224, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tpl-card-dl-icon {
	width: 1.05em;
	height: 1.05em;
	flex-shrink: 0;
}

.tpl-card-actions a:hover {
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(137, 82, 224, 0.45);
}

.tpl-card-soon {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--tpl-muted);
	padding: 0.35rem 0;
}

/* Long-form SEO below stage */
.tpl-edu {
	max-width: 40rem;
	margin: 0 auto;
	padding: 2.5rem 0 0;
	border-top: 1px solid var(--tpl-line);
}

.tpl-edu h2 {
	margin: 2rem 0 0.65rem;
	font-size: clamp(1.1rem, 2.1vw, 1.3rem);
	font-weight: 800;
	font-family: var(--font-text), system-ui, sans-serif;
	letter-spacing: -0.02em;
	color: var(--tpl-ink);
	line-height: 1.25;
}

.tpl-edu h2:first-child {
	margin-top: 0;
}

.tpl-edu p {
	margin: 0 0 0.65rem;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--tpl-ink-soft);
}

@media (max-width: 900px) {
	.tpl-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.tpl-landing {
		padding: 3.5rem 0 4rem;
	}

	.tpl-grid {
		grid-template-columns: 1fr;
		max-width: 22rem;
		margin-left: auto;
		margin-right: auto;
	}
}

/* Post-download thank-you + app promo (no backdrop-filter or entrance motion: keeps opens/snaps cheap) */
body.tpl-dl-modal-open {
	overflow: hidden;
}

.tpl-dl-modal {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	box-sizing: border-box;
}

.tpl-dl-modal[hidden] {
	display: none;
}

.tpl-dl-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.42);
	cursor: pointer;
	border: none;
	padding: 0;
}

.tpl-dl-modal__panel {
	position: relative;
	z-index: 1;
	width: min(100%, 27.5rem);
	padding: 0;
	border-radius: 1rem;
	background: var(--surface-elevated, #fff);
	border: 1px solid var(--border, #e2e8f0);
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
	overflow: hidden;
}

.tpl-dl-modal__panel-accent {
	height: 3px;
	background: linear-gradient(90deg, var(--primary-color, #8952e0), var(--accent-color, #4facfe));
}

.tpl-dl-modal__panel-inner {
	padding: 1.5rem 1.5rem 1.4rem;
	padding-top: 1.35rem;
}

.tpl-dl-modal__x {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 2.5rem;
	height: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 0.5rem;
	background: rgba(248, 250, 252, 0.9);
	color: var(--text-muted, #64748b);
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	transition: color 0.12s ease, background-color 0.12s ease;
}

.tpl-dl-modal__x:hover {
	color: var(--text-primary, #0f172a);
	background: var(--border-soft, #f1f5f9);
}

.tpl-dl-modal__eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--primary-color, #8952e0);
}

.tpl-dl-modal__title {
	margin: 0 0 0.65rem;
	padding-right: 2.25rem;
	font-family: var(--font-title), var(--font-text), sans-serif;
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: var(--text-primary, #0f172a);
}

.tpl-dl-modal__body {
	margin: 0 0 1.2rem;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--text-secondary, #334155);
}

.tpl-dl-modal__body strong {
	color: var(--text-primary, #0f172a);
	font-weight: 700;
}

.tpl-dl-modal__actions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.tpl-dl-modal__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.65rem;
	padding: 0.625rem 1.5rem;
	font-family: var(--font-text), system-ui, sans-serif;
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #fff;
	text-decoration: none;
	border-radius: var(--radius-pill, 9999px);
	background-color: var(--primary-color, #8952e0);
	box-shadow: var(--shadow-button, 0 2px 8px rgba(137, 82, 224, 0.22));
	transition: background-color 0.12s ease, box-shadow 0.12s ease, color 0.12s ease;
}

.tpl-dl-modal__cta:hover {
	color: #fff;
	background-color: var(--primary-color-hover, #7240c7);
	box-shadow: 0 3px 12px rgba(137, 82, 224, 0.28);
}

.tpl-dl-modal__secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	padding: 0.5rem 1.25rem;
	font-family: var(--font-text), system-ui, sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--primary-color, #8952e0);
	text-decoration: none;
	border-radius: var(--radius-pill, 9999px);
	background-color: var(--surface-alt, #f8fafc);
	border: 1px solid var(--border, #e2e8f0);
	transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.tpl-dl-modal__secondary:hover {
	color: var(--primary-color-hover, #7240c7);
	background-color: var(--primary-color-light, rgba(137, 82, 224, 0.06));
	border-color: rgba(137, 82, 224, 0.25);
}
