/*
 * CV Generator — landing + pricing pages ("Studio" aesthetic).
 * Builds on the tokens defined in app.css (loaded first). Scoped under .lp.
 */

.lp {
	position: relative;
	z-index: 1;
	overflow-x: hidden;
}

.lp em {
	font-style: normal;
	color: var(--accent);
}

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

.lp-hero {
	max-width: 1120px;
	margin: 0 auto;
	padding: clamp( 2.5rem, 7vw, 5.5rem ) 1.5rem clamp( 2rem, 5vw, 3.5rem );
}

.lp-hero-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: clamp( 2rem, 5vw, 4rem );
	align-items: center;
}

.lp-eyebrow {
	display: inline-block;
	font-size: 0.74rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--accent);
	font-weight: 700;
	margin-bottom: 1.1rem;
}

.lp-title {
	font-family: var(--font-display);
	font-optical-sizing: auto;
	font-weight: 700;
	font-size: clamp( 2.8rem, 6.5vw, 4.7rem );
	line-height: 1.0;
	letter-spacing: -0.04em;
	margin: 0 0 1.2rem;
	color: var(--ink);
}

.lp-lead {
	font-size: clamp( 1.05rem, 1.6vw, 1.2rem );
	color: var(--ink-soft);
	max-width: 46ch;
	margin: 0 0 1.9rem;
}

.lp-cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-bottom: 1.6rem;
}

.lp-cta {
	font-size: 1.0rem;
	padding: 0.9rem 1.7rem;
}

.lp-cta-ghost {
	border-color: var(--line-strong);
	color: var(--ink);
	background: var(--surface);
}

.lp-cta-ghost:hover {
	border-color: var(--ink);
}

.lp-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 1.2rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.92rem;
	color: var(--ink-soft);
}

.lp-trust li {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.lp-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.2rem;
	height: 1.2rem;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	font-size: 0.7rem;
	flex: none;
}

/* Entrance reveal (reuses cvgenUp keyframe from app.css) */
.lp-hero-copy > * { animation: cvgenUp 0.75s var(--ease) both; }
.lp-hero-copy .lp-eyebrow { animation-delay: 0.05s; }
.lp-hero-copy .lp-title { animation-delay: 0.13s; }
.lp-hero-copy .lp-lead { animation-delay: 0.22s; }
.lp-hero-copy .lp-cta-row { animation-delay: 0.31s; }
.lp-hero-copy .lp-trust { animation-delay: 0.4s; }

/* ============================================================ */
/* Animated 4-step process demo                                  */
/* A 12s loop, four 3s scenes that cross-fade, with a synced      */
/* progress stepper. Pure CSS — negative animation-delays place   */
/* each scene/step in its own slot of the shared timeline.        */
/* ============================================================ */

.lp-hero-visual {
	position: relative;
	min-height: 420px;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: cvgenUp 0.9s var(--ease) both;
	animation-delay: 0.3s;
}

.lp-flow {
	width: 100%;
	max-width: 360px;
}

.lp-flow-screen {
	position: relative;
	height: 268px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: radial-gradient( 120% 90% at 50% 0%, var(--surface) 0%, var(--surface-2) 100% );
	box-shadow: var(--shadow-pop);
	overflow: hidden;
}

.lp-scene {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	animation: lpScene 12s var(--ease) infinite;
}

.lp-scene--profile   { animation-delay: 0s; }
.lp-scene--job       { animation-delay: -9s; }
.lp-scene--customize { animation-delay: -6s; }
.lp-scene--done      { animation-delay: -3s; }

@keyframes lpScene {
	0%   { opacity: 0; transform: translateY( 14px ) scale( 0.96 ); }
	3%   { opacity: 1; transform: translateY( 0 ) scale( 1 ); }
	22%  { opacity: 1; transform: translateY( 0 ) scale( 1 ); }
	25%  { opacity: 0; transform: translateY( -12px ) scale( 0.96 ); }
	100% { opacity: 0; transform: translateY( -12px ) scale( 0.96 ); }
}

/* --- Mini cards built from primitives --- */
.lp-mini-card {
	position: relative;
	width: 100%;
	max-width: 232px;
	padding: 18px 18px 20px;
	border-radius: 13px;
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-card);
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.lp-mini-head { display: flex; align-items: center; gap: 11px; margin-bottom: 2px; }
.lp-mini-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); flex: none; }
.lp-mini-id { display: flex; flex-direction: column; gap: 5px; }
.lp-mini-name { width: 104px; height: 9px; border-radius: 3px; background: var(--ink); opacity: 0.85; }
.lp-mini-sub { width: 70px; height: 7px; border-radius: 3px; background: var(--accent); opacity: 0.8; }

.lp-mini-field,
.lp-mini-line {
	height: 9px;
	border-radius: 3px;
	background: var(--surface-3);
}

.lp-mini-field--short,
.lp-mini-line--short { width: 58%; }

.lp-mini-tag {
	align-self: flex-start;
	font: 700 0.58rem/1 var(--font-sans);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent-deep);
	background: var(--accent-soft);
	padding: 0.25rem 0.5rem;
	border-radius: 999px;
	margin-bottom: 3px;
}

/* "Typing" reveal: profile fields and pasted job lines wipe in left-to-right */
.lp-scene--profile .lp-mini-field {
	clip-path: inset( 0 100% 0 0 );
	animation: lpType 12s var(--ease) infinite;
	animation-delay: 0s;
}

.lp-scene--job .lp-mini-line {
	clip-path: inset( 0 100% 0 0 );
	animation: lpType 12s var(--ease) infinite;
	animation-delay: -9s;
}

@keyframes lpType {
	0%   { clip-path: inset( 0 100% 0 0 ); }
	4%   { clip-path: inset( 0 100% 0 0 ); }
	13%  { clip-path: inset( 0 0 0 0 ); }
	100% { clip-path: inset( 0 0 0 0 ); }
}

/* --- Floating chips (Saved / Paste / Tailored) --- */
.lp-mini-flag {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font: 700 0.66rem/1 var(--font-sans);
	padding: 0.32rem 0.6rem;
	border-radius: 999px;
	white-space: nowrap;
	opacity: 0;
	animation: lpPop 12s var(--ease) infinite;
}

.lp-mini-flag--save {
	top: -11px; right: -8px;
	background: var(--ok-bg); color: var(--ok);
	box-shadow: var(--shadow-sm);
	animation-delay: 0s;
}

.lp-mini-flag--paste {
	bottom: -11px; right: -8px;
	background: var(--ink); color: #fff;
	box-shadow: var(--shadow-card);
	animation-delay: -9s;
}

.lp-mini-flag--tailored {
	top: -11px; right: -8px;
	background: var(--accent); color: #fff;
	box-shadow: 0 8px 18px -8px var(--accent);
	animation-delay: -3s;
}

@keyframes lpPop {
	0%   { opacity: 0; transform: scale( 0.5 ) translateY( 6px ); }
	8%   { opacity: 0; transform: scale( 0.5 ) translateY( 6px ); }
	12%  { opacity: 1; transform: scale( 1 ) translateY( 0 ); }
	22%  { opacity: 1; transform: scale( 1 ) translateY( 0 ); }
	25%  { opacity: 0; transform: scale( 0.92 ); }
	100% { opacity: 0; }
}

/* --- Scene 3: Customize click --- */
.lp-fake-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem 1.6rem;
	border: none;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font: 700 1rem/1 var(--font-sans);
	box-shadow: 0 12px 26px -12px var(--accent);
	cursor: default;
	animation: lpPress 12s var(--ease) infinite;
	animation-delay: -6s;
}

.lp-fake-btn span { font-size: 0.9em; }

@keyframes lpPress {
	0%   { transform: scale( 1 ); }
	11%  { transform: scale( 1 ); }
	12.5%{ transform: scale( 0.93 ); }
	15%  { transform: scale( 1 ); }
	100% { transform: scale( 1 ); }
}

.lp-cursor {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 24px;
	height: 24px;
	opacity: 0;
	filter: drop-shadow( 0 4px 6px rgba( 20, 22, 28, 0.28 ) );
	animation: lpCursor 12s var(--ease) infinite;
	animation-delay: -6s;
}

.lp-cursor svg { width: 100%; height: 100%; fill: #fff; stroke: var(--ink); stroke-width: 1.4px; stroke-linejoin: round; }

@keyframes lpCursor {
	0%   { opacity: 0; transform: translate( 46px, 38px ); }
	3%   { opacity: 0; transform: translate( 46px, 38px ); }
	8%   { opacity: 1; transform: translate( 6px, 6px ); }
	12%  { opacity: 1; transform: translate( 6px, 9px ); }
	15%  { opacity: 1; transform: translate( 6px, 6px ); }
	22%  { opacity: 1; transform: translate( 6px, 6px ); }
	25%  { opacity: 0; }
	100% { opacity: 0; }
}

.lp-ripple {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 130px;
	height: 130px;
	margin: -65px 0 0 -65px;
	border-radius: 50%;
	background: var(--accent);
	opacity: 0;
	pointer-events: none;
	animation: lpRipple 12s var(--ease) infinite;
	animation-delay: -6s;
}

@keyframes lpRipple {
	0%   { opacity: 0; transform: scale( 0.2 ); }
	12%  { opacity: 0; transform: scale( 0.2 ); }
	13%  { opacity: 0.32; transform: scale( 0.2 ); }
	22%  { opacity: 0; transform: scale( 1.5 ); }
	100% { opacity: 0; transform: scale( 1.5 ); }
}

/* --- Scene 4: Download chip --- */
.lp-download-chip {
	position: absolute;
	left: 50%;
	bottom: -13px;
	transform: translateX( -50% );
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font: 700 0.72rem/1 var(--font-sans);
	box-shadow: var(--shadow-card);
	white-space: nowrap;
}

.lp-dl-arrow {
	display: inline-block;
	animation: lpBounce 1.1s var(--ease) infinite;
}

@keyframes lpBounce {
	0%, 100% { transform: translateY( 0 ); }
	50%      { transform: translateY( 3px ); }
}

/* --- Progress stepper --- */
.lp-flow-rail {
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	position: relative;
}

.lp-flow-rail::before,
.lp-flow-rail::after {
	content: '';
	position: absolute;
	top: 5px;
	left: 12.5%;
	height: 2px;
	border-radius: 2px;
}

.lp-flow-rail::before {
	right: 12.5%;
	background: var(--line);
}

.lp-flow-rail::after {
	width: 0;
	background: var(--accent);
	animation: lpProgress 12s var(--ease) infinite;
}

@keyframes lpProgress {
	0%   { width: 0%; }
	25%  { width: 25%; }
	50%  { width: 50%; }
	75%  { width: 75%; }
	92%  { width: 75%; }
	100% { width: 0%; }
}

.lp-flow-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	position: relative;
	z-index: 1;
	text-align: center;
}

.lp-flow-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--line-strong);
	box-shadow: 0 0 0 3px var(--canvas);
	animation: lpDot 12s var(--ease) infinite;
}

.lp-flow-cap {
	font: 600 0.68rem/1.2 var(--font-sans);
	color: var(--ink-faint);
	animation: lpCap 12s var(--ease) infinite;
}

.lp-flow-step--1 .lp-flow-dot, .lp-flow-step--1 .lp-flow-cap { animation-delay: 0s; }
.lp-flow-step--2 .lp-flow-dot, .lp-flow-step--2 .lp-flow-cap { animation-delay: -9s; }
.lp-flow-step--3 .lp-flow-dot, .lp-flow-step--3 .lp-flow-cap { animation-delay: -6s; }
.lp-flow-step--4 .lp-flow-dot, .lp-flow-step--4 .lp-flow-cap { animation-delay: -3s; }

@keyframes lpDot {
	0%   { background: var(--line-strong); transform: scale( 1 ); }
	3%   { background: var(--accent); transform: scale( 1.3 ); }
	22%  { background: var(--accent); transform: scale( 1.3 ); }
	25%  { background: var(--line-strong); transform: scale( 1 ); }
	100% { background: var(--line-strong); transform: scale( 1 ); }
}

@keyframes lpCap {
	0%   { color: var(--ink-faint); }
	3%   { color: var(--ink); }
	22%  { color: var(--ink); }
	25%  { color: var(--ink-faint); }
	100% { color: var(--ink-faint); }
}

/* ============================================================ */
/* Trust band                                                    */
/* ============================================================ */

.lp-band {
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: var(--surface);
}

.lp-band-inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 1.1rem 1.5rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.9rem;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp( 0.95rem, 1.5vw, 1.12rem );
	color: var(--ink-soft);
}

.lp-dot { color: var(--accent); }

/* ============================================================ */
/* Generic section                                               */
/* ============================================================ */

.lp-section {
	max-width: 1060px;
	margin: 0 auto;
	padding: clamp( 3rem, 8vw, 5.5rem ) 1.5rem;
}

.lp-section-head {
	max-width: 42ch;
	margin-bottom: 2.5rem;
}

.lp-h2 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp( 1.9rem, 4vw, 2.8rem );
	line-height: 1.05;
	letter-spacing: -0.03em;
	margin: 0.6rem 0 0;
	color: var(--ink);
}

.lp-section-lead {
	font-size: 1.06rem;
	color: var(--ink-soft);
	margin: 1rem 0 0;
}

/* ---- Steps ---- */

.lp-steps {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 1.5rem;
}

.lp-step {
	padding: 1.85rem 1.6rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow-card);
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.lp-step:hover {
	transform: translateY( -3px );
	box-shadow: var(--shadow-pop);
}

.lp-step-num {
	font-family: var(--font-display);
	font-size: 2.4rem;
	font-weight: 700;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--accent);
	display: block;
	margin-bottom: 0.5rem;
	line-height: 1;
}

.lp-step h3 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.25rem;
	letter-spacing: -0.01em;
	margin: 0 0 0.4rem;
	color: var(--ink);
}

.lp-step p {
	color: var(--ink-soft);
	margin: 0;
	font-size: 0.98rem;
}

/* ---- Honest promise ---- */

.lp-promise-section {
	background: radial-gradient( 120% 100% at 0% 0%, var(--accent-soft) 0%, transparent 55% );
	border-radius: var(--radius);
}

.lp-compare {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

.lp-compare-card {
	padding: 1.85rem;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: var(--surface);
}

.lp-compare-card h3 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.2rem;
	letter-spacing: -0.01em;
	margin: 0 0 1rem;
	color: var(--ink);
}

.lp-compare-card ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.lp-compare-card li {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	color: var(--ink-soft);
}

.lp-compare-card--bad {
	background: var(--surface-2);
}

.lp-compare-card--bad li { color: var(--ink-faint); }

.lp-compare-card--good {
	border-color: var(--accent);
	box-shadow: var(--shadow-card);
}

.lp-x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.2rem;
	height: 1.2rem;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	color: var(--ink-faint);
	font-size: 0.85rem;
	flex: none;
}

/* ---- Features ---- */

.lp-features {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 240px, 1fr ) );
	gap: 1.25rem;
}

.lp-feature {
	padding: 1.7rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.lp-feature:hover {
	transform: translateY( -3px );
	box-shadow: var(--shadow-card);
	border-color: var(--accent);
}

.lp-feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.7rem;
	height: 2.7rem;
	border-radius: 12px;
	background: var(--accent-soft);
	color: var(--accent-deep);
	margin-bottom: 1rem;
}

.lp-feature-icon svg {
	width: 1.4rem;
	height: 1.4rem;
}

.lp-feature h3 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.18rem;
	letter-spacing: -0.01em;
	margin: 0 0 0.4rem;
	color: var(--ink);
}

.lp-feature p {
	color: var(--ink-soft);
	margin: 0;
	font-size: 0.96rem;
}

/* ============================================================ */
/* Final CTA + footer                                            */
/* ============================================================ */

.lp-final {
	max-width: 780px;
	margin: 0 auto;
	padding: clamp( 3rem, 8vw, 5.5rem ) 1.5rem;
	text-align: center;
}

.lp-final-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp( 2rem, 5vw, 3.1rem );
	line-height: 1.05;
	letter-spacing: -0.03em;
	margin: 0 0 0.7rem;
	color: var(--ink);
}

.lp-final-lead {
	font-size: 1.13rem;
	color: var(--ink-soft);
	margin: 0 0 1.6rem;
}

.lp-final-fine {
	margin-top: 1rem;
	font-size: 0.86rem;
	color: var(--ink-faint);
}

.lp-footer {
	border-top: 1px solid var(--line);
	text-align: center;
	padding: 2.5rem 1.5rem 3.5rem;
}

.lp-footer p {
	color: var(--ink-soft);
	margin: 0.5rem 0 0;
	font-size: 0.95rem;
}

/* ============================================================ */
/* Pricing                                                       */
/* ============================================================ */

.lp-pricing-hero {
	padding-bottom: 1rem;
}

.lp-price-grid {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	gap: 1.5rem;
	max-width: 780px;
	margin: 0 auto;
}

.lp-price-card {
	position: relative;
	padding: 2.1rem 1.85rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow-card);
	display: flex;
	flex-direction: column;
}

.lp-price-card--featured {
	border: 2px solid var(--accent);
	box-shadow: var(--shadow-pop);
}

.lp-price-badge {
	position: absolute;
	top: -0.7rem;
	left: 1.85rem;
	background: var(--accent);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
}

.lp-price-name {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.25rem;
	letter-spacing: -0.01em;
	margin: 0 0 0.4rem;
	color: var(--ink);
}

.lp-price-amount {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 2.8rem;
	letter-spacing: -0.03em;
	line-height: 1;
	margin: 0;
	color: var(--ink);
}

.lp-price-note {
	color: var(--ink-faint);
	font-size: 0.9rem;
	margin: 0.35rem 0 1.1rem;
}

.lp-price-list {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	flex: 1;
}

.lp-price-list li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--ink-soft);
	font-size: 0.96rem;
}

.lp-price-cta {
	width: 100%;
	justify-content: center;
}

.lp-price-quota {
	text-align: center;
	font-size: 0.85rem;
	color: var(--ink-faint);
	margin: 0.75rem 0 0;
	min-height: 1rem;
}

.cvgen-pricing-status {
	text-align: center;
	margin: 1.5rem auto 0;
	display: block;
}

.lp-pricing-fine {
	text-align: center;
	max-width: 52ch;
	margin: 2rem auto 0;
	color: var(--ink-faint);
	font-size: 0.88rem;
}

/* ============================================================ */
/* Responsive                                                    */
/* ============================================================ */

@media ( max-width: 860px ) {
	.lp-hero-grid { grid-template-columns: 1fr; }
	.lp-hero-visual { order: -1; min-height: auto; margin-bottom: 0.5rem; }
	.lp-flow { max-width: 340px; }
	.lp-steps { grid-template-columns: 1fr; }
	.lp-compare { grid-template-columns: 1fr; }
	.lp-price-grid { grid-template-columns: 1fr; }
}

/* Respect reduced-motion: freeze the demo on its finished, tailored state. */
@media ( prefers-reduced-motion: reduce ) {
	.lp-scene,
	.lp-mini-flag,
	.lp-fake-btn,
	.lp-cursor,
	.lp-ripple,
	.lp-dl-arrow,
	.lp-flow-dot,
	.lp-flow-cap,
	.lp-flow-rail::after,
	.lp-scene--profile .lp-mini-field,
	.lp-scene--job .lp-mini-line {
		animation: none !important;
	}

	.lp-scene { opacity: 0; }
	.lp-scene--done { opacity: 1; }
	.lp-mini-flag--tailored { opacity: 1; }
	.lp-scene--profile .lp-mini-field,
	.lp-scene--job .lp-mini-line { clip-path: none; }
	.lp-flow-rail::after { width: 75%; }
	.lp-flow-step--4 .lp-flow-dot { background: var(--accent); }
	.lp-flow-step--4 .lp-flow-cap { color: var(--ink); }
}
