/* Sycho Landing — premium calm assessment */

#sycho-landing {
	/* High-legibility calm palette (WCAG-friendly on light surfaces) */
	--sl-sage: #3f6b4c;
	--sl-sage-deep: #2a4533;
	--sl-sage-soft: #4d7358;
	--sl-mist: #dce8e4;
	--sl-mist-2: #e8f0ed;
	--sl-stone: #f3f5f4;
	--sl-ink: #16241d;
	--sl-muted: #3a4d43;
	--sl-line: #b7c9bf;
	--sl-white: #ffffff;
	--sl-surface: #ffffff;
	--sl-danger: #8b3a3a;
	--sl-on-dark: #f7faf8;
	--sl-on-dark-soft: rgba(247, 250, 248, 0.95);
	--font-body: 'Vazirmatn', Tahoma, sans-serif;
	--font-display: 'Amiri', 'Vazirmatn', serif;
	box-sizing: border-box;
	color: var(--sl-ink);
	background: var(--sl-stone);
	-webkit-font-smoothing: antialiased;
}

#sycho-landing *,
#sycho-landing *::before,
#sycho-landing *::after {
	box-sizing: border-box;
}

/* Full-bleed unlock (themes / Elementor) */
html.sl-page,
html.sl-page body {
	width: 100%;
	max-width: 100%;
	min-height: 100vh;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	background: var(--sl-stone, #f3f5f4);
}

body.sl-page .site,
body.sl-page .site-main,
body.sl-page .content-area,
body.sl-page .site-content,
body.sl-page .wp-site-blocks,
body.sl-page .wp-block-group,
body.sl-page .entry-content,
body.sl-page .container,
body.sl-page .elementor-section.elementor-section-boxed > .elementor-container {
	max-width: none !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.elementor-widget-shortcode #sycho-landing,
.entry-content #sycho-landing,
.wp-block-shortcode #sycho-landing {
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}

#sycho-landing .sl-screen {
	display: none;
	flex-direction: column;
	width: 100%;
	min-height: 100dvh;
	position: relative;
}

#sycho-landing .sl-screen.is-active {
	display: flex;
}

#sycho-landing .sl-inner {
	width: 100%;
	max-width: 40rem;
	margin: 0 auto;
	padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2rem) clamp(2rem, 6vw, 3.5rem);
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

#sycho-landing .sl-inner--wide {
	max-width: 68rem;
}

#sycho-landing .sl-inner--quiz {
	justify-content: flex-start;
	max-width: 42rem;
	padding-top: clamp(0.85rem, 2.5vw, 1.5rem);
	padding-bottom: clamp(1rem, 3vw, 1.75rem);
	min-height: 0;
	/* Page may scroll on tiny screens; no nested scroll regions */
	overflow: visible;
}

#sycho-landing .sl-inner--result {
	justify-content: flex-start;
	max-width: 44rem;
	padding-top: clamp(2rem, 5vw, 3.5rem);
}

/* —— Intro —— */
#sycho-landing .sl-screen--intro {
	justify-content: flex-end;
	background: #c5d5ce;
	overflow: hidden;
}

/* Also harden intro overlay for readable white text */
#sycho-landing .sl-intro-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: #b7cdc4;
	background-image:
		linear-gradient(180deg, rgba(22, 36, 29, 0.22) 0%, rgba(22, 36, 29, 0.58) 48%, rgba(22, 36, 29, 0.88) 100%),
		var(--sl-hero),
		radial-gradient(ellipse 90% 70% at 70% 18%, rgba(125, 168, 150, 0.5), transparent 60%),
		linear-gradient(160deg, #d8e6e1 0%, #b7cdc4 45%, #8fafa2 100%);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transform: scale(1.03);
	animation: sl-hero-ease 8s ease-out forwards;
}

#sycho-landing .sl-intro-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 42rem;
	margin: 0 auto;
	padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2.5rem, 8vw, 4.5rem);
	color: var(--sl-on-dark);
	text-shadow: 0 1px 2px rgba(16, 28, 22, 0.35);
}

#sycho-landing .sl-brand {
	font-family: var(--font-display);
	font-size: clamp(2.6rem, 8vw, 4.25rem);
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 0.85rem;
	letter-spacing: -0.01em;
	color: var(--sl-on-dark);
}

#sycho-landing .sl-brand--sm {
	font-size: clamp(1.5rem, 4vw, 2rem);
	color: var(--sl-sage-deep);
	margin-bottom: 0.35rem;
	text-shadow: none;
}

#sycho-landing .sl-headline {
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 3.6vw, 1.85rem);
	font-weight: 400;
	line-height: 1.55;
	margin: 0 0 0.85rem;
	max-width: 22em;
	color: var(--sl-on-dark);
}

#sycho-landing .sl-lead {
	font-size: 1.02rem;
	line-height: 1.75;
	margin: 0 0 1.75rem;
	max-width: 28rem;
	color: var(--sl-on-dark-soft);
}

/* —— Shared typography —— */
#sycho-landing .sl-eyebrow {
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--sl-sage-deep);
	margin: 0 0 0.65rem;
}

#sycho-landing .sl-display {
	font-family: var(--font-display);
	font-size: clamp(1.55rem, 3.8vw, 2.15rem);
	font-weight: 700;
	line-height: 1.35;
	color: var(--sl-sage-deep);
	margin: 0 0 0.75rem;
}

#sycho-landing .sl-section-head {
	margin-bottom: 2rem;
	max-width: 36rem;
}

#sycho-landing .sl-section-lead {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.75;
	color: var(--sl-muted);
}

#sycho-landing .sl-screen--trust,
#sycho-landing .sl-screen--select,
#sycho-landing .sl-screen--lead,
#sycho-landing .sl-screen--quiz,
#sycho-landing .sl-screen--result {
	background:
		radial-gradient(ellipse 70% 50% at 10% 0%, rgba(95, 138, 106, 0.12), transparent 55%),
		radial-gradient(ellipse 50% 40% at 95% 8%, rgba(180, 205, 210, 0.35), transparent 50%),
		linear-gradient(165deg, var(--sl-stone) 0%, var(--sl-mist-2) 50%, #eef3f1 100%);
}

/* —— Buttons —— */
#sycho-landing .sl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.95rem 1.6rem;
	border: 0;
	border-radius: 12px;
	cursor: pointer;
	font-family: var(--font-body);
	font-size: 1.02rem;
	font-weight: 600;
	background: var(--sl-sage-deep);
	color: #fff;
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#sycho-landing .sl-btn:hover {
	background: var(--sl-sage);
	color: #fff;
	transform: translateY(-1px);
}

#sycho-landing .sl-btn:disabled,
#sycho-landing .sl-btn[disabled] {
	background: #d5ddd8;
	color: #4a5c53;
	opacity: 1;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

#sycho-landing .sl-btn--on-dark {
	background: var(--sl-on-dark);
	color: var(--sl-sage-deep);
	text-shadow: none;
}

#sycho-landing .sl-btn--on-dark:hover {
	background: #fff;
	color: var(--sl-sage-deep);
}

#sycho-landing .sl-btn--ghost {
	background: var(--sl-surface);
	color: var(--sl-sage-deep);
	border: 1.5px solid var(--sl-line);
}

#sycho-landing .sl-btn--ghost:hover {
	background: var(--sl-mist-2);
	border-color: var(--sl-sage);
	color: var(--sl-sage-deep);
}

#sycho-landing .sl-btn--ghost:disabled,
#sycho-landing .sl-btn--ghost[disabled] {
	background: #eef1ef;
	color: #5a6b62;
	border-color: #d0dbd4;
}

#sycho-landing .sl-btn--block {
	width: 100%;
}

#sycho-landing .sl-text-link {
	align-self: flex-start;
	background: none;
	border: 0;
	padding: 0.25rem 0;
	margin-bottom: 0.75rem;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--sl-sage-deep);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

#sycho-landing .sl-text-link:hover {
	color: var(--sl-ink);
}

#sycho-landing .sl-cta-row {
	margin-top: 1.75rem;
}

/* —— Trust —— */
#sycho-landing .sl-trust-grid {
	display: grid;
	gap: 1.25rem 1.5rem;
	margin-bottom: 1.5rem;
}

@media (min-width: 720px) {
	#sycho-landing .sl-trust-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

#sycho-landing .sl-trust-item {
	padding: 0.25rem 0 0.5rem;
	border-top: 1px solid var(--sl-line);
}

#sycho-landing .sl-trust-num {
	display: block;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--sl-sage);
	margin: 0.85rem 0 0.45rem;
	letter-spacing: 0.04em;
}

#sycho-landing .sl-trust-item h3 {
	font-family: var(--font-display);
	font-size: 1.25rem;
	margin: 0 0 0.45rem;
	color: var(--sl-sage-deep);
}

#sycho-landing .sl-trust-item p {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.7;
	color: var(--sl-muted);
}

#sycho-landing .sl-trust-note {
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--sl-muted);
	margin: 0.5rem 0 0;
	padding: 1rem 0 0;
	border-top: 1px solid var(--sl-line);
	max-width: 40rem;
}

/* —— Assessment cards —— */
#sycho-landing .sl-assess-grid {
	display: grid;
	gap: 1.15rem;
	width: 100%;
	margin-bottom: 1.25rem;
}

@media (min-width: 860px) {
	#sycho-landing .sl-assess-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

#sycho-landing .sl-assess-card {
	display: flex;
	flex-direction: column;
	text-align: right;
	padding: 0;
	overflow: hidden;
	background: var(--sl-surface);
	border: 1px solid var(--sl-line);
	border-radius: 16px;
	cursor: pointer;
	font-family: inherit;
	color: var(--sl-ink);
	transition: border-color 0.2s ease, transform 0.28s ease, box-shadow 0.28s ease;
	animation: sl-fade-up 0.55s ease both;
}

#sycho-landing .sl-assess-card:nth-child(2) { animation-delay: 0.08s; }
#sycho-landing .sl-assess-card:nth-child(3) { animation-delay: 0.16s; }

#sycho-landing .sl-assess-card:hover {
	border-color: var(--sl-sage);
	transform: translateY(-3px);
	box-shadow: 0 14px 36px rgba(61, 92, 70, 0.1);
}

#sycho-landing .sl-assess-card__media {
	height: 140px;
	background-color: var(--sl-mist);
	background-image:
		linear-gradient(135deg, rgba(95, 138, 106, 0.18), rgba(180, 205, 210, 0.35)),
		var(--sl-card-img);
	background-size: cover;
	background-position: center;
}

#sycho-landing .sl-assess-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding: 1.15rem 1.2rem 1.25rem;
	flex: 1;
}

#sycho-landing .sl-assess-card__code {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--sl-sage-deep);
}

#sycho-landing .sl-assess-card__title {
	font-family: var(--font-display);
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--sl-sage-deep);
	line-height: 1.4;
	margin: 0;
}

#sycho-landing .sl-assess-card__blurb {
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--sl-muted);
	margin: 0;
	flex: 1;
}

#sycho-landing .sl-assess-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.85rem;
	font-size: 0.86rem;
	color: var(--sl-ink);
	font-weight: 600;
	margin-top: 0.35rem;
}

#sycho-landing .sl-assess-card__cta {
	margin-top: 0.85rem;
	align-self: stretch;
	pointer-events: none;
}

/* —— Lead form —— */
#sycho-landing .sl-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 26rem;
}

#sycho-landing .sl-field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--sl-ink) !important;
}

#sycho-landing .sl-field > span,
#sycho-landing .sl-form label,
#sycho-landing .sl-form label > span {
	display: block;
	color: #16241d !important;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.5;
	opacity: 1 !important;
	visibility: visible !important;
	text-shadow: none !important;
}

#sycho-landing .sl-field input {
	padding: 0.9rem 1rem;
	border: 1.5px solid var(--sl-line);
	border-radius: 12px;
	font-family: inherit;
	font-size: 1rem;
	background: #ffffff !important;
	color: #16241d !important;
	opacity: 1 !important;
}

#sycho-landing .sl-field input::placeholder {
	color: #5a6b62 !important;
	opacity: 1 !important;
}

#sycho-landing .sl-field input:focus {
	outline: none;
	border-color: var(--sl-sage);
	box-shadow: 0 0 0 3px rgba(63, 107, 76, 0.2);
}

#sycho-landing .sl-form .sl-btn,
#sycho-landing #sl-lead-form .sl-btn[type="submit"] {
	background: var(--sl-sage-deep) !important;
	color: #ffffff !important;
	border: 0 !important;
	opacity: 1 !important;
}

#sycho-landing .sl-form .sl-btn:hover,
#sycho-landing #sl-lead-form .sl-btn[type="submit"]:hover {
	background: var(--sl-sage) !important;
	color: #ffffff !important;
}

#sycho-landing .sl-form-error {
	color: var(--sl-danger) !important;
	font-size: 0.92rem;
	margin: 0;
	line-height: 1.5;
	font-weight: 600;
}

/* —— Quiz —— */
#sycho-landing .sl-screen--quiz {
	overflow-x: hidden;
	overflow-y: auto;
}

#sycho-landing .sl-quiz-top {
	margin-bottom: 0.75rem;
	flex-shrink: 0;
}

#sycho-landing .sl-progress-wrap {
	margin-top: 0.25rem;
}

#sycho-landing .sl-progress {
	height: 7px;
	background: #c9d6ce;
	border-radius: 99px;
	overflow: hidden;
}

#sycho-landing .sl-progress__bar {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--sl-sage), var(--sl-sage-deep));
	border-radius: 99px;
	transition: width 0.4s ease;
}

#sycho-landing .sl-progress-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 0.45rem;
}

#sycho-landing .sl-progress__label,
#sycho-landing .sl-progress__pct {
	margin: 0;
	font-size: 0.9rem;
	color: var(--sl-ink);
	font-weight: 600;
}

#sycho-landing .sl-quiz-instructions {
	font-size: 0.92rem;
	color: var(--sl-muted);
	line-height: 1.55;
	margin: 0 0 0.85rem;
	padding: 0.65rem 0.85rem;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid var(--sl-line);
	border-radius: 10px;
	/* Compact tip only — no nested scrollbar */
	max-height: none;
	overflow: visible;
	flex-shrink: 0;
}

#sycho-landing .sl-question {
	flex-shrink: 0;
}

#sycho-landing .sl-question__num {
	margin: 0 0 0.35rem;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--sl-sage-deep);
}

#sycho-landing .sl-question__text {
	margin: 0 0 1rem;
	font-size: clamp(1.02rem, 2.3vw, 1.22rem);
	font-weight: 600;
	line-height: 1.65;
	color: var(--sl-ink);
	font-family: var(--font-body);
}

#sycho-landing .sl-options {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

#sycho-landing .sl-option {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.8rem 0.95rem;
	background: var(--sl-surface);
	border: 1.5px solid var(--sl-line);
	border-radius: 12px;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.98rem;
	text-align: right;
	color: var(--sl-ink);
	transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

#sycho-landing .sl-option:hover {
	border-color: var(--sl-sage);
	background: #f7faf8;
}

#sycho-landing .sl-option.is-selected {
	border-color: var(--sl-sage-deep);
	background: var(--sl-mist);
	transform: scale(1.01);
	box-shadow: 0 0 0 3px rgba(63, 107, 76, 0.16);
	color: var(--sl-ink);
}

#sycho-landing .sl-option__value {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.85rem;
	height: 1.85rem;
	border-radius: 8px;
	background: #eef4f0;
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--sl-sage-deep);
	flex-shrink: 0;
}

#sycho-landing .sl-option.is-selected .sl-option__value {
	background: var(--sl-sage-deep);
	color: #fff;
}

#sycho-landing .sl-options:has(.sl-option--binary) {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

#sycho-landing .sl-option--binary {
	justify-content: center;
	min-height: 3.1rem;
	font-size: 1.1rem;
	font-weight: 600;
}

#sycho-landing .sl-option__label {
	line-height: 1.5;
	color: inherit;
}

#sycho-landing .sl-quiz-nav {
	display: flex;
	gap: 0.75rem;
	margin-top: 1.15rem;
	padding-bottom: 0.25rem;
	flex-shrink: 0;
}

#sycho-landing .sl-quiz-nav .sl-btn {
	min-width: 7.5rem;
}

#sycho-landing .sl-quiz-nav .sl-btn--ghost {
	flex: 0 0 auto;
}

/* —— Result —— */
#sycho-landing .sl-result-body {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	margin-bottom: 1.5rem;
}

#sycho-landing .sl-finding {
	padding: 1.1rem 1.2rem;
	background: var(--sl-surface);
	border: 1px solid var(--sl-line);
	border-radius: 14px;
	animation: sl-fade-up 0.5s ease both;
	color: var(--sl-ink);
}

#sycho-landing .sl-finding:nth-child(2) { animation-delay: 0.06s; }
#sycho-landing .sl-finding:nth-child(3) { animation-delay: 0.12s; }
#sycho-landing .sl-finding:nth-child(4) { animation-delay: 0.18s; }
#sycho-landing .sl-finding:nth-child(5) { animation-delay: 0.24s; }

#sycho-landing .sl-finding__label {
	display: block;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--sl-sage-deep);
	margin-bottom: 0.3rem;
}

#sycho-landing .sl-finding__title {
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--sl-sage-deep);
	margin: 0 0 0.4rem;
	line-height: 1.4;
}

#sycho-landing .sl-finding__meta {
	font-size: 0.9rem;
	color: var(--sl-ink);
	font-weight: 600;
	margin: 0 0 0.45rem;
}

#sycho-landing .sl-finding__text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--sl-muted);
}

#sycho-landing .sl-result-close {
	font-size: 1rem;
	line-height: 1.75;
	color: var(--sl-ink);
	margin: 0 0 1.25rem;
	max-width: 36rem;
}

#sycho-landing .sl-disclaimer {
	font-size: 0.88rem;
	line-height: 1.65;
	color: var(--sl-muted);
	margin: 0 0 1.5rem;
	padding: 0.9rem 1rem;
	background: #eef3f0;
	border-radius: 10px;
	border: 1px solid var(--sl-line);
}

#sycho-landing .sl-toast {
	position: fixed;
	bottom: 1.25rem;
	left: 50%;
	transform: translateX(-50%);
	background: var(--sl-sage-deep);
	color: #fff;
	padding: 0.75rem 1.25rem;
	border-radius: 10px;
	font-size: 0.95rem;
	z-index: 100;
	box-shadow: 0 8px 24px rgba(28, 43, 36, 0.18);
	max-width: calc(100% - 2rem);
}

/* Motion */
@keyframes sl-fade-up {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes sl-hero-ease {
	to {
		transform: scale(1);
	}
}

#sycho-landing .sl-reveal {
	opacity: 0;
	transform: translateY(12px);
	animation: sl-fade-up 0.6s ease forwards;
	animation-delay: var(--d, 0s);
}

@media (prefers-reduced-motion: reduce) {
	#sycho-landing .sl-assess-card,
	#sycho-landing .sl-finding,
	#sycho-landing .sl-reveal,
	#sycho-landing .sl-intro-bg,
	#sycho-landing .sl-progress__bar,
	#sycho-landing .sl-option,
	#sycho-landing .sl-btn {
		animation: none !important;
		transition: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

@media (max-width: 640px) {
	#sycho-landing .sl-assess-card__media {
		height: 120px;
	}

	#sycho-landing .sl-option {
		padding: 0.7rem 0.85rem;
		font-size: 0.94rem;
	}

	#sycho-landing .sl-options {
		gap: 0.4rem;
	}

	#sycho-landing .sl-question__text {
		margin-bottom: 0.85rem;
		font-size: 1.02rem;
		line-height: 1.6;
	}

	#sycho-landing .sl-quiz-nav {
		margin-top: 0.95rem;
		position: sticky;
		bottom: 0;
		padding-top: 0.5rem;
		padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
		background: linear-gradient(180deg, rgba(243, 245, 244, 0), var(--sl-stone) 28%);
	}

	#sycho-landing .sl-options:has(.sl-option--binary) {
		grid-template-columns: 1fr 1fr;
	}
}
