/**
 * EPIC Toolkit landing page (index.php, logged-out view).
 * Loaded through $CSS_loader after styles/epic_theme.css; uses its --epic-* tokens
 * and mirrors the client workspace hero (client_workspace.css .cw-hero).
 */

/* Neutralise legacy default.css rules for the old landing markup */
#landing_page.lp-shell { text-align: left; color: var(--epic-text); }
#landing_page #registration_form,
#landing_page #forgotpassword_form {
	float: none; width: auto; margin: 0; padding: 22px 22px 20px;
	line-height: inherit; clear: none; text-align: left;
	background: #fff; color: var(--epic-text); border-radius: var(--epic-radius);
}

/* Hero ------------------------------------------------------------------- */
.lp-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	margin: -28px -32px 0;
	padding: 52px 48px 48px;
	border-radius: 14px 14px 0 0;
	color: #fff;
	background:
		linear-gradient(118deg, rgba(255,255,255,.05) 0 44%, transparent 44% 100%),
		var(--epic-charcoal-2);
}

.lp-hero-copy { max-width: 640px; min-width: 0; }

.lp-eyebrow {
	display: block;
	color: #e9b28f;
	font: 400 13px/1.2 var(--epic-display);
	letter-spacing: .2em;
	text-transform: uppercase;
}

#landing_page .lp-hero h1 {
	margin: 12px 0 14px;
	color: #fff;
	font: 700 46px/1.05 var(--epic-display);
	letter-spacing: .01em;
	text-transform: uppercase;
}

.lp-lede { margin: 0 0 26px; color: rgba(255,255,255,.8); font-size: 16px; line-height: 1.55; max-width: 560px; }

.lp-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

#landing_page .lp-btn, #landing_page .lp-btn:visited {
	display: inline-flex; align-items: center; gap: 8px;
	height: 42px; padding: 0 20px;
	border: 1px solid rgba(255,255,255,.32); border-radius: 8px;
	background: transparent; color: #fff;
	font: 700 13.5px var(--epic-sans);
	text-decoration: none; white-space: nowrap;
	transition: background .15s, border-color .15s;
}
#landing_page .lp-btn:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
#landing_page .lp-btn-primary, #landing_page .lp-btn-primary:visited { background: var(--epic-orange); border-color: var(--epic-orange); }
#landing_page .lp-btn-primary:hover { background: var(--epic-orange-dark); border-color: var(--epic-orange-dark); }
#landing_page .lp-btn:focus-visible, #landing_page .lp-card:focus-visible { outline: 3px solid #e9b28f; outline-offset: 2px; }
.lp-btn .lp-icon { width: 16px; height: 16px; }

.lp-hero-note { margin: 18px 0 0; color: rgba(255,255,255,.6); font-size: 12.5px; }

.lp-hero-brand {
	flex: none;
	display: flex; align-items: center; justify-content: center;
	width: 300px; height: 190px;
	border-radius: var(--epic-radius);
	background: var(--epic-paper);
	box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.lp-hero-brand img { display: block; max-width: 80%; height: auto; }

.lp-rule { height: 4px; margin: 0 -32px; background: var(--epic-rule); }

/* Sections --------------------------------------------------------------- */
.lp-section { margin-top: 36px; }

#landing_page h2.lp-title {
	margin: 0 0 18px; padding: 0;
	background: none; border: 0;
	color: var(--epic-ink);
	font: 600 22px/1.2 var(--epic-display);
	letter-spacing: .01em;
}

/* Access cards ----------------------------------------------------------- */
.lp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

#landing_page .lp-card, #landing_page .lp-card:visited {
	position: relative;
	display: flex; flex-direction: column; align-items: flex-start;
	box-sizing: border-box; min-width: 0;
	padding: 22px 22px 20px;
	border: 1px solid var(--epic-line);
	border-radius: var(--epic-radius);
	background: #fff;
	color: var(--epic-text);
	font-weight: 400;
	text-decoration: none;
	box-shadow: inset 0 3px 0 var(--epic-orange);
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
#landing_page .lp-card.lp-card-pos { box-shadow: inset 0 3px 0 var(--epic-pos); }
#landing_page .lp-card.lp-card-neg { box-shadow: inset 0 3px 0 var(--epic-neg); }
#landing_page .lp-card:hover { border-color: var(--epic-line-strong); box-shadow: inset 0 3px 0 var(--epic-orange), var(--epic-shadow); transform: translateY(-2px); text-decoration: none; }
#landing_page .lp-card.lp-card-pos:hover { box-shadow: inset 0 3px 0 var(--epic-pos), var(--epic-shadow); }
#landing_page .lp-card.lp-card-neg:hover { box-shadow: inset 0 3px 0 var(--epic-neg), var(--epic-shadow); }

.lp-card-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; margin-bottom: 14px;
	border-radius: 10px;
	background: var(--epic-orange-soft); color: var(--epic-orange);
}
.lp-card-pos .lp-card-icon { background: var(--epic-pos-soft); color: var(--epic-pos); }
.lp-card-neg .lp-card-icon { background: var(--epic-neg-soft); color: var(--epic-neg); }
.lp-card-icon .lp-icon { width: 22px; height: 22px; }

.lp-card-title { color: var(--epic-ink); font: 600 18px/1.25 var(--epic-display); letter-spacing: .01em; }
.lp-card-text { margin: 8px 0 18px; color: var(--epic-muted); font-size: 13.5px; line-height: 1.55; }
.lp-card-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: var(--epic-orange); font-weight: 700; font-size: 13px; }
.lp-card-pos .lp-card-cta { color: var(--epic-pos); }
.lp-card-neg .lp-card-cta { color: var(--epic-neg); }
.lp-card-cta .lp-icon { width: 15px; height: 15px; transition: transform .15s; }
.lp-card:hover .lp-card-cta .lp-icon { transform: translateX(3px); }

/* About UGRs ------------------------------------------------------------- */
.lp-about {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 40px;
	padding: 30px 32px;
	border-radius: var(--epic-radius);
	background: var(--epic-paper);
	border: 1px solid var(--epic-line);
}
.lp-about-intro p { margin: 0 0 12px; color: var(--epic-text); font-size: 14px; }
#landing_page .lp-quote {
	margin: 0 0 16px; padding-left: 16px;
	border-left: 3px solid var(--epic-orange);
	color: var(--epic-ink);
	font: 400 20px/1.35 var(--epic-display);
	letter-spacing: .01em;
}

.lp-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.lp-step {
	display: flex; gap: 16px; align-items: flex-start;
	padding: 16px 18px;
	border: 1px solid var(--epic-line);
	border-radius: 10px;
	background: #fff;
}
.lp-step-num {
	flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px;
	border-radius: 50%;
	background: var(--epic-charcoal-2); color: #fff;
	font: 600 15px/1 var(--epic-display);
}
.lp-step:nth-child(2) .lp-step-num { background: var(--epic-orange); }
.lp-step:nth-child(3) .lp-step-num { background: var(--epic-pos); }
.lp-step strong { display: block; color: var(--epic-ink); font: 600 16px/1.3 var(--epic-display); letter-spacing: .01em; }
.lp-step p { margin: 4px 0 0; color: var(--epic-muted); font-size: 13.5px; }

/* Support line ----------------------------------------------------------- */
.lp-support {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	margin-top: 30px; padding-top: 22px;
	border-top: 1px solid var(--epic-line);
	color: var(--epic-muted); font-size: 13.5px; text-align: center;
}
.lp-support .lp-icon { width: 18px; height: 18px; flex: none; color: var(--epic-faint); }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 980px) {
	.lp-hero { padding: 40px 32px; gap: 28px; }
	#landing_page .lp-hero h1 { font-size: 38px; }
	.lp-hero-brand { width: 220px; height: 150px; }
	.lp-cards { grid-template-columns: 1fr; }
	.lp-about { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
	.lp-hero { flex-direction: column-reverse; align-items: flex-start; padding: 30px 22px 28px; }
	.lp-hero-brand { width: 100%; height: 110px; box-shadow: none; }
	.lp-hero-brand img { max-width: 190px; }
	#landing_page .lp-hero h1 { font-size: 32px; }
	.lp-lede { font-size: 15px; }
	.lp-hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
	#landing_page .lp-btn { justify-content: center; }
	.lp-about { padding: 22px 18px; }
	#landing_page .lp-quote { font-size: 18px; }
	.lp-support { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
	#landing_page .lp-card, .lp-card-cta .lp-icon { transition: none; }
	#landing_page .lp-card:hover { transform: none; }
}

@media print {
	.lp-hero { background: none; color: var(--epic-ink); }
	#landing_page .lp-hero h1, .lp-lede { color: var(--epic-ink); }
	.lp-hero-actions, .lp-hero-brand { display: none; }
}
