/*
 * [tpx_start] -- the pre-signup splash page (spec 14.29).
 *
 * Same brand tokens as tpx-report.css, read via var() with hardcoded
 * fallbacks rather than declared on :root -- this page has no
 * body-appended overlay (no modal, no tour) the way the report page's
 * :root scoping exists to serve (see tpx-report.css's own header comment),
 * so there's no reason not to keep everything self-contained under
 * .tpx-start.
 *
 * IMPORTANT: the local custom properties are aliased to --tpx-start-*,
 * NOT declared under the same name they fall back to (--tpx-primary,
 * --tpx-surface, etc). A custom property can't reference itself even
 * via var(--x, fallback) -- --x: var(--x, fallback) on the same selector
 * is a cyclic reference, which CSS resolves to the guaranteed-invalid
 * value, silently breaking every var(--x) usage under this selector
 * (non-inherited properties like background/box-shadow/border-radius
 * fall back to their initial value; inherited properties like color fall
 * back to the inherited value). This exact bug shipped in an earlier
 * draft of this file and was only caught by a computed-style check in
 * the browser, not by eyeballing a screenshot (spec 14.9's own
 * discipline). tpx-together-walkthrough.css avoids the bug the same way,
 * via its own --tpx-tw-* alias prefix -- this file follows that same
 * convention, just with a --tpx-start- prefix instead of --tpx-tw-.
 *
 * The hero photo collage's brand-magenta wash is a flat alpha gradient,
 * not mix-blend-mode: multiply -- multiply visibly crushed the photos'
 * own contrast when tested against real seed photos, so a plain
 * semi-transparent overlay was used instead. The one place multiply IS
 * used deliberately is the small "spark" mark (two overlapping circles)
 * inside the hero card, echoing the same overlap technique the
 * relationship-type SVG icons use elsewhere in the plugin (spec 14.14),
 * kept to brand magenta only rather than borrowing those icons' blue/
 * yellow, which mean "partner A/partner B" there and have no meaning on
 * a page with no couple yet.
 *
 * "Your Path to Deeper Intimacy" is deliberately the one saturated-color
 * moment on an otherwise all-pastel page -- a solid brand-magenta band
 * with white cards floating on top, reusing the white-on-#ad1a66 pairing
 * already validated at 6.7:1 contrast in tpx-report.css's own header
 * comment, not a new, unchecked color combination.
 */

.tpx-start {
	--tpx-start-primary: var(--tpx-primary, #ad1a66);
	--tpx-start-primary-dark: var(--tpx-primary-dark, #6b0f3f);
	--tpx-start-primary-light: var(--tpx-primary-light, #fbeaf2);
	--tpx-start-surface: var(--tpx-surface, #ffffff);
	--tpx-start-bg: var(--tpx-bg, #faf6f8);
	--tpx-start-text: var(--tpx-text, #241b20);
	--tpx-start-text-muted: var(--tpx-text-muted, #746b70);
	--tpx-start-border: var(--tpx-border, #eee0e7);
	--tpx-start-radius: var(--tpx-radius, 18px);
	--tpx-start-radius-sm: var(--tpx-radius-sm, 10px);
	--tpx-start-shadow: var(--tpx-shadow, 0 4px 24px rgba(173, 26, 102, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05));
	--tpx-start-shadow-lg: var(--tpx-shadow-lg, 0 20px 60px rgba(173, 26, 102, 0.22), 0 4px 12px rgba(0, 0, 0, 0.08));
	--tpx-start-font: var(--tpx-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);

	max-width: 820px;
	margin: 0 auto;
	padding: 2.5rem 1.25rem 5rem;
	font-family: var(--tpx-start-font);
	color: var(--tpx-start-text);
	line-height: 1.6;
}

.tpx-start * {
	box-sizing: border-box;
}

/* --- Hero: photo collage + overlapping white card ----------------------- */

.tpx-start-hero {
	position: relative;
	min-height: 380px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0 1.5rem 1.75rem;
	border-radius: var(--tpx-start-radius);
	overflow: hidden;
	box-shadow: var(--tpx-start-shadow);
	background: var(--tpx-start-primary-light);
}

.tpx-start-hero-collage {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(2, 1fr);
	gap: 3px;
	z-index: 0;
}

.tpx-start-hero-collage img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tpx-start-hero-tint {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(173, 26, 102, 0.18) 0%, rgba(107, 15, 63, 0.58) 100%);
}

.tpx-start-hero-card {
	position: relative;
	z-index: 2;
	max-width: 600px;
	background: var(--tpx-start-surface);
	border-radius: var(--tpx-start-radius-sm);
	box-shadow: var(--tpx-start-shadow-lg);
	padding: 1.6rem 1.9rem;
	text-align: center;
}

.tpx-start-spark-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 0.75rem;
}

.tpx-start-spark {
	width: 44px;
	height: 34px;
}

.tpx-start-eyebrow {
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	/* v0.6.82 (DEC-020): no text-transform -- this label shows the product
	   name, which must read exactly "The Passion eXercise". */
	color: var(--tpx-start-primary-dark);
	margin-bottom: 0.6rem;
}

.tpx-start-hero-card h1 {
	margin: 0 0 0.75rem;
	font-size: clamp(1.55rem, 3.8vw, 2.05rem);
	color: var(--tpx-start-primary);
	letter-spacing: -0.01em;
	line-height: 1.25;
}

.tpx-start-hero-card .tpx-start-subhead {
	margin: 0;
	font-size: 0.92rem;
	color: var(--tpx-start-text-muted);
	font-weight: 400;
}

/* --- Body copy ------------------------------------------------------------ */

.tpx-start-intro {
	max-width: 58ch;
	margin: 2.5rem auto 0;
	text-align: center;
	color: var(--tpx-start-text);
	font-size: 1.05rem;
}

.tpx-start-intro em {
	font-style: italic;
	color: var(--tpx-start-text);
}

.tpx-start-answer {
	margin: 2.25rem 0 0;
	padding: 1.6rem 1.75rem;
	background: linear-gradient(160deg, var(--tpx-start-primary-light), #fff);
	border-radius: var(--tpx-start-radius-sm);
	text-align: center;
}

.tpx-start-answer p {
	margin: 0;
	max-width: 52ch;
	margin-left: auto;
	margin-right: auto;
	color: var(--tpx-start-text);
}

.tpx-start-answer .tpx-start-tagline {
	margin-top: 0.9rem;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--tpx-start-primary);
}

.tpx-start-invite {
	max-width: 54ch;
	margin: 2.25rem auto 0;
	text-align: center;
	color: var(--tpx-start-text);
	font-size: 1.05rem;
}

/* --- "Your Path to Deeper Intimacy" --------------------------------------- */

.tpx-start-steps-section {
	margin-top: 3rem;
	background: linear-gradient(135deg, var(--tpx-start-primary) 0%, var(--tpx-start-primary-dark) 100%);
	border-radius: var(--tpx-start-radius);
	padding: 2.75rem 1.75rem 3rem;
	box-shadow: var(--tpx-start-shadow-lg);
	text-align: center;
}

.tpx-start-steps-eyebrow {
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 0.6rem;
}

.tpx-start-steps-heading {
	color: #fff;
	font-size: clamp(1.35rem, 3.2vw, 1.7rem);
	margin: 0 0 2rem;
	letter-spacing: -0.01em;
}

.tpx-start-steps {
	display: flex;
	gap: 1.25rem;
	flex-wrap: wrap;
	text-align: left;
}

.tpx-start-step {
	flex: 1 1 240px;
	background: var(--tpx-start-surface);
	border-radius: var(--tpx-start-radius);
	box-shadow: var(--tpx-start-shadow-lg);
	padding: 1.75rem 1.6rem;
}

.tpx-start-step-badge {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--tpx-start-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 1.05rem;
	margin-bottom: 1rem;
}

.tpx-start-step h3 {
	margin: 0 0 0.55rem;
	color: var(--tpx-start-primary);
	font-size: 1.05rem;
}

.tpx-start-step p {
	margin: 0;
	color: var(--tpx-start-text-muted);
	font-size: 0.92rem;
}

/* --- CTA -------------------------------------------------------------------- */

.tpx-start-cta-wrap {
	display: flex;
	justify-content: center;
	margin-top: 2.75rem;
}

.tpx-start-cta {
	display: inline-block;
	border: none;
	border-radius: 999px;
	background: var(--tpx-start-primary);
	color: #fff;
	font-family: var(--tpx-start-font);
	font-size: 1.02rem;
	font-weight: 700;
	/* v0.6.39, spec 14.51: !important guards against the active theme's own
	   link styling out-specificity-ing this plain class selector. */
	text-decoration: none !important;
	padding: 0.95rem 2.4rem;
	box-shadow: var(--tpx-start-shadow);
	cursor: pointer;
	transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
}

/*
 * v0.6.39, spec 14.51. Direct instruction: hovering this button used to
 * turn its text blue (the active theme's own `a:hover { color: ... }`
 * out-specificity-ing our unconditional `.tpx-start-cta { color: #fff }`
 * base rule -- `a:hover` beats a plain class selector regardless of source
 * order). Keep the text white -- !important, so no theme rule can win --
 * and replace the plain darker-background hover with a pulse instead.
 */
.tpx-start-cta:hover {
	background: var(--tpx-start-primary-dark);
	color: #fff !important;
	animation: tpx-start-cta-pulse 1.15s ease-out infinite;
}

@keyframes tpx-start-cta-pulse {
	0% {
		box-shadow: var(--tpx-start-shadow-lg), 0 0 0 0 rgba(173, 26, 102, 0.55);
	}
	70% {
		box-shadow: var(--tpx-start-shadow-lg), 0 0 0 14px rgba(173, 26, 102, 0);
	}
	100% {
		box-shadow: var(--tpx-start-shadow-lg), 0 0 0 0 rgba(173, 26, 102, 0);
	}
}

.tpx-start-cta:active {
	transform: scale(0.98);
}

@media (max-width: 640px) {
	.tpx-start-hero {
		min-height: 300px;
		padding: 0 1rem 1.25rem;
	}

	.tpx-start-hero-card {
		padding: 1.25rem 1.4rem;
	}

	.tpx-start-step {
		flex: 1 1 100%;
	}

	.tpx-start-steps-section {
		padding: 2.25rem 1.25rem 2.5rem;
	}
}

/* v0.6.39, spec 14.51: the new hover pulse on .tpx-start-cta is the first
   animation this stylesheet has; respect prefers-reduced-motion the same
   way tpx-report.css already does for its own animations. */
@media (prefers-reduced-motion: reduce) {
	.tpx-start-cta:hover {
		animation-duration: 0.001s;
	}
}
