/**
 * SONGREPS marketing pages — / (homepage), /about/, /how-it-works/.
 *
 * Single-screen hero, type-driven, with the round badge as a slow-
 * rotating watermark behind the homepage's content (vinyl
 * treatment). Stub pages reuse the same shell minus the vinyl.
 *
 * Layered on top of directories.css (--songreps-* tokens, top-bar,
 * page background). Mobile-first; one 768px breakpoint.
 */

/* Eat the page wrapper's default vertical padding — the hero
 * owns its own padding because it needs to fill the viewport. */
body.songreps-marketing-page { background: var(--songreps-bg); }

/* === Hero shell ============================================== */

.songreps-marketing__hero {
	position: relative;
	overflow: hidden;
	/* Vertical gradient owned by the hero only — manila at the top
	 * (matches the cream strip just above the dark nav) fading to
	 * pure white at the bottom. Dark nav remains the visual break
	 * between the chrome and the hero; the gradient never bleeds
	 * past the dark nav into the cream strip. */
	background: linear-gradient(180deg, #f3ede0 0%, #ffffff 100%);
	display: flex;
	flex-direction: column;
	justify-content: center;
	/* viewport height minus chrome (cream strip 32 + dark nav 64
	 * mobile / 68 desktop ≈ 96–100). calc() gives us a "full
	 * screen on first load" feel without locking the page to a
	 * fixed height. */
	min-height: calc(100vh - 96px);
	padding: 48px 24px;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.songreps-marketing__hero {
		min-height: calc(100vh - 100px);
		padding: 80px 32px;
	}
}

.songreps-marketing__hero-inner {
	position: relative;
	z-index: 2;          /* above the vinyl watermark */
	max-width: 720px;
	margin: 0 auto;
	width: 100%;
}

/* Wider container at desktop so "A community of songwriters,"
 * fits on one line at the spec'd 64px Manrope. The body copy
 * still wraps narrowly via its own max-width below. */
@media (min-width: 768px) {
	.songreps-marketing__hero-inner { max-width: 860px; }
}

/* === Vinyl watermark (homepage only) ========================= */

.songreps-marketing__hero-vinyl {
	position: absolute;
	top: 50%;
	right: -120px;
	width: 480px;
	height: 480px;
	/* 0.12 baseline (was 0.10 before the gradient landed) — compensates
	 * for the lighter bottom of the manila → white gradient where the
	 * bronze badge was reading too faint at 0.10. Top of the gradient
	 * is still subtle since the manila gives the badge more contrast. */
	opacity: 0.12;
	pointer-events: none;
	z-index: 1;
	/* Initial transform sets the vertical centering; the rotate
	 * keyframe combines translate + rotate so the disc spins
	 * around its own center even after centering offset. */
	transform: translateY(-50%);
	animation: songreps-vinyl-spin 120s linear infinite;
}

/* Hide on mobile — at narrow viewports the badge crashes into the hero
 * copy and reads as visual noise rather than texture. Selector is scoped
 * to body.songreps-directory to outrank `body.songreps-directory img`
 * in directories.css, which sets display: block on every directory img. */
@media (max-width: 767px) {
	body.songreps-directory .songreps-marketing__hero-vinyl {
		display: none;
	}
}

@media (min-width: 768px) {
	.songreps-marketing__hero-vinyl {
		right: -200px;
		width: 720px;
		height: 720px;
	}
}

@keyframes songreps-vinyl-spin {
	from { transform: translateY(-50%) rotate(0deg); }
	to   { transform: translateY(-50%) rotate(360deg); }
}

/* === Eyebrow ================================================= */

.songreps-marketing__eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 32px;
	font-family: var(--songreps-font-body);
	font-size: 11px;
	font-weight: 600;
	color: var(--songreps-accent);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.songreps-marketing__eyebrow-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--songreps-accent);
	flex-shrink: 0;
	animation: songreps-marketing-pulse 2.4s ease-in-out infinite;
}

@keyframes songreps-marketing-pulse {
	0%, 100% { opacity: 1;   transform: scale(1); }
	50%      { opacity: 0.5; transform: scale(0.9); }
}

/* === Headline ================================================ */

.songreps-marketing__headline {
	margin: 0 0 32px;
	font-family: var(--songreps-font-display);
	font-weight: 700;
	font-size: 36px;
	line-height: 1.04;
	letter-spacing: -0.025em;
	color: var(--songreps-fg);
}
.songreps-marketing__headline em {
	font-style: italic;
	font-weight: 700;
	color: var(--songreps-primary);
}

@media (min-width: 768px) {
	.songreps-marketing__headline {
		font-size: 64px;
	}
}

/* === Body copy =============================================== */

.songreps-marketing__body {
	margin: 0 0 48px;
	max-width: 560px;
	font-family: var(--songreps-font-body);
	font-weight: 400;
	font-size: 15px;
	line-height: 1.6;
	color: var(--songreps-primary);
}

@media (min-width: 768px) {
	.songreps-marketing__body { font-size: 18px; }
}

/* === CTA row ================================================= */

.songreps-marketing__cta-row {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
	margin-bottom: 48px;
}

@media (min-width: 768px) {
	.songreps-marketing__cta-row {
		flex-direction: row;
		align-items: flex-start;
		gap: 24px;
		flex-wrap: wrap;
	}
}

.songreps-marketing-page .songreps-marketing__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	font-family: var(--songreps-font-body);
	font-size: 15px;
	font-weight: 600;
	color: var(--songreps-cream);
	background: var(--songreps-accent);
	border: 1px solid var(--songreps-accent);
	border-radius: 8px;
	text-decoration: none;
	transition: background 120ms ease, transform 120ms ease;
	cursor: pointer;
}

.songreps-marketing-page .songreps-marketing__cta:hover,
.songreps-marketing-page .songreps-marketing__cta:focus-visible {
	background: #a07748;
	color: var(--songreps-cream);
	text-decoration: none;
	transform: translateY(-1px);
}
.songreps-marketing-page .songreps-marketing__cta:focus-visible {
	outline: 2px solid var(--songreps-accent);
	outline-offset: 2px;
}
.songreps-marketing-page .songreps-marketing__cta-arrow {
	display: inline-block;
	transition: transform 120ms ease;
}
.songreps-marketing-page .songreps-marketing__cta:hover .songreps-marketing__cta-arrow,
.songreps-marketing-page .songreps-marketing__cta:focus-visible .songreps-marketing__cta-arrow {
	transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
	.songreps-marketing-page .songreps-marketing__cta,
	.songreps-marketing-page .songreps-marketing__cta-arrow {
		transition: none;
	}
	.songreps-marketing-page .songreps-marketing__cta:hover,
	.songreps-marketing-page .songreps-marketing__cta:focus-visible {
		transform: none;
	}
}

/* CTA meta paragraph — small slate-muted explanation of what
 * happens after the user signs up + the inline Log in link. */
.songreps-marketing__cta-meta {
	margin: 0;
	max-width: 320px;
	font-family: var(--songreps-font-body);
	font-size: 13px;
	line-height: 1.5;
	color: var(--songreps-muted);
}
.songreps-marketing-page .songreps-marketing__cta-meta a {
	color: var(--songreps-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}
.songreps-marketing-page .songreps-marketing__cta-meta a:hover,
.songreps-marketing-page .songreps-marketing__cta-meta a:focus-visible {
	color: var(--songreps-fg);
}

@media (min-width: 768px) {
	.songreps-marketing__cta-meta { max-width: 280px; }
}

/* === Hairline footer block (homepage only) =================== */

.songreps-marketing__hairline {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	margin-top: 48px;
	padding-top: 32px;
	border-top: 0.5px solid rgba(42, 55, 68, 0.08);
}

@media (min-width: 768px) {
	.songreps-marketing__hairline {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		margin-top: 96px;
	}
}

.songreps-marketing__hairline-left {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.songreps-marketing__pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	background: rgba(181, 134, 85, 0.08);
	color: var(--songreps-accent);
	font-family: var(--songreps-font-body);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border-radius: 100px;
}

.songreps-marketing__hairline-by {
	font-family: var(--songreps-font-body);
	font-size: 13px;
	color: var(--songreps-muted);
}

.songreps-marketing-page .songreps-marketing__hairline-by a {
	color: var(--songreps-muted);
	text-decoration: none;
	border-bottom: 1px dotted rgba(42, 55, 68, 0.20);
	transition: color 120ms ease, border-bottom-color 120ms ease;
}
.songreps-marketing-page .songreps-marketing__hairline-by a:hover,
.songreps-marketing-page .songreps-marketing__hairline-by a:focus-visible {
	color: var(--songreps-fg);
	border-bottom-color: var(--songreps-primary);
}

.songreps-marketing__hairline-right {
	font-family: var(--songreps-font-body);
	font-size: 13px;
	color: var(--songreps-muted);
}

/* === Stub-page content (About, How it works) ================= */

.songreps-marketing__hero--stub {
	min-height: calc(100vh - 96px);
}

.songreps-marketing__inline-link {
	margin: 8px 0 0;
}
.songreps-marketing-page .songreps-marketing__inline-link a {
	font-family: var(--songreps-font-body);
	font-size: 15px;
	font-weight: 500;
	color: var(--songreps-accent);
	text-decoration: none;
}
.songreps-marketing-page .songreps-marketing__inline-link a:hover,
.songreps-marketing-page .songreps-marketing__inline-link a:focus-visible {
	color: #a07748;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* === How it works steps ===================================== */

.songreps-marketing__steps {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
	max-width: 620px;
}

.songreps-marketing__step {
	display: flex;
	gap: 16px;
	margin-bottom: 20px;
}

.songreps-marketing__step-number {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(181, 134, 85, 0.10);
	color: var(--songreps-accent);
	font-family: var(--songreps-font-display);
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 2px;
}

.songreps-marketing__step-body {
	margin: 0;
	font-family: var(--songreps-font-body);
	font-size: 16px;
	line-height: 1.55;
	color: var(--songreps-primary);
}
.songreps-marketing__step-body strong {
	color: var(--songreps-fg);
	font-weight: 600;
}

@media (min-width: 768px) {
	.songreps-marketing__step-body { font-size: 18px; }
}

.songreps-marketing__exhale {
	margin: 36px 0 0;
	font-family: var(--songreps-font-body);
	font-size: 15px;
	font-style: italic;
	color: var(--songreps-muted);
}

/* ============================================================
 * Reduced-motion override — placed at end of file so it wins
 * source-order against all the animation declarations above.
 *
 * Disables: vinyl spin, eyebrow dot pulse, CTA hover lift +
 * arrow nudge. Static frames + colors stay; only motion stops.
 * ============================================================ */

@media (prefers-reduced-motion: reduce) {
	.songreps-marketing__hero-vinyl  { animation: none; }
	.songreps-marketing__eyebrow-dot { animation: none; }
}
