/* MASARAT landing page (www/welcome.html). Same palette and typeface as the login page. */

body[data-path="welcome"],
body[data-path=""] {
	background: #fff;
}
body[data-path="welcome"] .page-content-wrapper,
body[data-path="welcome"] .page_content,
body[data-path="welcome"] main.container,
body[data-path="welcome"] .container,
body[data-path=""] .page-content-wrapper,
body[data-path=""] .page_content,
body[data-path=""] main.container,
body[data-path=""] .container { max-width: none; margin: 0; padding: 0; }
body[data-path="welcome"] .page-breadcrumbs,
body[data-path="welcome"] .page-header-wrapper,
body[data-path="welcome"] .web-footer,
body[data-path=""] .page-breadcrumbs,
body[data-path=""] .page-header-wrapper,
body[data-path=""] .web-footer { display: none; }

.mlp {
	--navy: #0b1f3a;
	--navy-2: #143766;
	--blue: #1d4e89;
	--sky: #8fc3ff;
	--blue-soft: #e8f0fa;
	--text: #0f1b2d;
	--muted: #5b6b7d;
	--line: #e3e9f0;
	--green: #1f7a4d;
	--wrap: 1180px;
	font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
	color: var(--text);
	line-height: 1.7;
	text-align: start;
	scroll-behavior: smooth;
}
.mlp *, .mlp *::before, .mlp *::after { box-sizing: border-box; }
.mlp h1, .mlp h2, .mlp h3, .mlp p, .mlp a, .mlp button { font-family: inherit; letter-spacing: 0; }
.mlp h1, .mlp h2, .mlp h3 { color: inherit; font-weight: 700; }
.mlp [id] { scroll-margin-top: 84px; }
.mlp-icon { width: 20px; height: 20px; flex: none; }
.mlp-wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.mlp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 52px;
	padding: 0 26px 2px;
	border-radius: 14px;
	border: 1.5px solid transparent;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s, box-shadow 0.15s;
}
.mlp-btn:hover { text-decoration: none; transform: translateY(-1px); }
.mlp-btn:focus-visible { outline: 3px solid rgba(143, 195, 255, 0.7); outline-offset: 3px; }
.mlp-btn-sm { height: 42px; padding: 0 18px 2px; font-size: 15px; border-radius: 12px; }
.mlp-btn-sm .mlp-icon { width: 18px; height: 18px; }
.mlp-btn-primary { background: var(--navy); color: #fff; }
.mlp-btn-primary:hover { background: var(--blue); color: #fff; }
.mlp-btn-light { background: #fff; color: var(--navy); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }
.mlp-btn-light:hover { background: #f1f6fc; color: var(--navy); }
.mlp-btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; background: rgba(255, 255, 255, 0.06); }
.mlp-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.14); color: #fff; }

/* ---------- Top bar ---------- */
.mlp-bar {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.mlp-bar-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.mlp-brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text); text-decoration: none; }
.mlp-brand:hover { color: var(--text); text-decoration: none; }
.mlp-brand-logo {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	flex: none;
	padding: 5px;
	border: 1px solid var(--line);
	border-radius: 13px;
	background: #fff;
}
.mlp-brand-logo.is-default { padding: 0; border: 0; }
.mlp-brand-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mlp-brand-text { display: grid; min-width: 0; line-height: 1.35; }
.mlp-brand-text b { font-size: 17px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mlp-brand-text small { font-size: 12px; color: var(--muted); }
.mlp-nav { display: flex; gap: 6px; margin-inline-start: auto; }
.mlp-nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; }
.mlp-nav a:hover { background: var(--blue-soft); color: var(--navy); }

/* ---------- Hero ---------- */
.mlp-hero {
	position: relative;
	overflow: hidden;
	color: #eef3fa;
	background:
		radial-gradient(900px 520px at 100% 0%, rgba(255, 255, 255, 0.10), transparent 60%),
		radial-gradient(700px 480px at 0% 100%, rgba(64, 140, 230, 0.30), transparent 60%),
		linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, var(--blue) 100%);
}
.mlp-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
	pointer-events: none;
}
.mlp-hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	align-items: center;
	gap: 56px;
	padding-block: 88px 96px;
}
.mlp-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 20px;
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	font-size: 14px;
	font-weight: 500;
	color: #dbe8f7;
}
.mlp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgba(143, 195, 255, 0.18); }
.mlp-hero-title { margin: 0 0 20px; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.3; color: #fff; }
.mlp-accent {
	display: block;
	width: fit-content;
	margin-top: 6px;
	padding-bottom: 8px;
	background:
		linear-gradient(90deg, #8fc3ff, #cfe5ff) text,
		linear-gradient(90deg, rgba(143, 195, 255, 0), rgba(143, 195, 255, 0.55)) no-repeat bottom / 100% 5px;
	-webkit-background-clip: text, border-box;
	background-clip: text, border-box;
	color: transparent;
}
.mlp-hero-text { max-width: 34em; margin: 0 0 32px; font-size: 18px; line-height: 1.9; color: rgba(238, 243, 250, 0.85); text-wrap: pretty; }
.mlp-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.mlp-teacher-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 20px 0 0; font-size: 15px; color: rgba(238, 243, 250, 0.8); }
.mlp-teacher-line > .mlp-icon { width: 18px; height: 18px; color: var(--sky); }
.mlp-teacher-line a { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(143, 195, 255, 0.6); text-underline-offset: 5px; }
.mlp-teacher-line a:hover { color: var(--sky); }
.mlp-teacher-line a .mlp-icon { width: 16px; height: 16px; }
.mlp-trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 14px; color: rgba(238, 243, 250, 0.75); }
.mlp-trust li { display: flex; align-items: center; gap: 8px; }
.mlp-trust .mlp-icon { width: 18px; height: 18px; color: var(--sky); }

/* Illustration */
.mlp-mock { position: relative; padding-block: 12px 40px; }
.mlp-mock-card {
	border-radius: 22px;
	background: #fff;
	color: var(--text);
	box-shadow: 0 30px 70px rgba(3, 12, 28, 0.35);
}
.mlp-mock-main { padding: 22px; transform: rotate(-1.5deg); }
.mlp-mock-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.mlp-mock-head > div { flex: 1; display: grid; line-height: 1.4; }
.mlp-mock-head b { font-size: 16px; color: var(--navy); }
.mlp-mock-head small { font-size: 12px; color: var(--muted); }
.mlp-mock-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--blue-soft); color: var(--blue); }
.mlp-chip { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.mlp-chip.is-ok { background: #e6f4ec; color: var(--green); }
.mlp-mock-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.mlp-mock-stats > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: #f6f9fc; }
.mlp-mock-stats small { font-size: 12px; color: var(--muted); }
.mlp-mock-stats b { font-size: 22px; color: var(--navy); line-height: 1.4; }
.mlp-bar-meter { height: 6px; border-radius: 6px; background: #e3eaf2; overflow: hidden; }
.mlp-bar-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #4f8fd8); }
.mlp-mock-list { display: grid; gap: 8px; }
.mlp-mock-list p { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.mlp-mock-list span { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.mlp-mock-list .mlp-icon { width: 18px; height: 18px; color: var(--blue); }
.mlp-mock-list b { color: var(--navy); font-weight: 600; }
.mlp-mock-list b.is-ok { color: var(--green); }
.mlp-mock-float {
	position: absolute;
	inset-inline-start: -28px;
	bottom: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	border-radius: 16px;
	transform: rotate(2deg);
}
.mlp-mock-float > div { display: grid; line-height: 1.45; }
.mlp-mock-float b { font-size: 14px; color: var(--navy); }
.mlp-mock-float small { font-size: 12px; color: var(--muted); }
.mlp-mock-bell { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #fff4dc; color: #b7791f; }

/* ---------- Sections ---------- */
.mlp-section { padding-block: 96px; }
.mlp-section-alt { background: #f5f8fb; }
.mlp-section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.mlp-kicker { margin: 0 0 8px; color: var(--blue); font-size: 15px; font-weight: 600; }
.mlp-section-head h2 { margin: 0 0 12px; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.4; color: var(--navy); text-wrap: balance; }
.mlp-section-head p:not(.mlp-kicker) { margin: 0; color: var(--muted); font-size: 17px; }

.mlp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mlp-feature {
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.mlp-feature:hover { border-color: #c7d6e7; box-shadow: 0 16px 40px rgba(15, 27, 45, 0.08); transform: translateY(-2px); }
.mlp-feature > .mlp-icon { width: 48px; height: 48px; padding: 12px; margin-bottom: 18px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); }
.mlp-feature h3 { margin: 0 0 8px; font-size: 19px; color: var(--navy); }
.mlp-feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }

.mlp-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.mlp-role { display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.mlp-role.is-featured { border-color: transparent; background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #eef3fa; box-shadow: 0 24px 60px rgba(11, 31, 58, 0.25); }
.mlp-role-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 15px; background: var(--blue-soft); color: var(--blue); }
.mlp-role.is-featured .mlp-role-icon { background: rgba(255, 255, 255, 0.12); color: #fff; }
.mlp-role h3 { margin: 0 0 16px; font-size: 21px; color: var(--navy); }
.mlp-role.is-featured h3 { color: #fff; }
.mlp-role ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.mlp-role li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.7; }
.mlp-role li .mlp-icon { width: 18px; height: 18px; margin-top: 4px; color: var(--green); }
.mlp-role.is-featured li .mlp-icon { color: var(--sky); }
.mlp-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 22px; color: var(--sky); font-weight: 600; text-decoration: none; }
.mlp-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
/* On the white role cards the link takes the brand blue. */
.mlp-role:not(.is-featured) .mlp-link { color: var(--blue); }
.mlp-role:not(.is-featured) .mlp-link:hover { color: var(--navy); }
.mlp-link .mlp-icon { width: 18px; height: 18px; }

.mlp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.mlp-steps li { position: relative; padding: 30px 28px 28px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.mlp-steps li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 54px;
	inset-inline-end: -21px;
	width: 22px;
	border-top: 2px dashed #c4d3e4;
}
.mlp-step-num { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 20px; font-weight: 700; }
.mlp-steps h3 { margin: 0 0 6px; font-size: 19px; color: var(--navy); }
.mlp-steps p { margin: 0; color: var(--muted); font-size: 15px; }

.mlp-faq-wrap { max-width: 820px; }
.mlp-faq { display: grid; gap: 12px; }
.mlp-faq details { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.mlp-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	cursor: pointer;
	list-style: none;
	font-size: 17px;
	font-weight: 600;
	color: var(--navy);
}
.mlp-faq summary::-webkit-details-marker { display: none; }
.mlp-faq summary .mlp-icon { color: var(--muted); transition: transform 0.2s; }
.mlp-faq details[open] summary .mlp-icon { transform: rotate(180deg); }
.mlp-faq summary:focus-visible { outline: 3px solid rgba(29, 78, 137, 0.35); outline-offset: 2px; border-radius: 16px; }
.mlp-faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.mlp-faq a { color: var(--blue); font-weight: 600; }

.mlp-final { padding-block: 0 96px; }
.mlp-final-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 26px;
	padding: 52px 48px;
	border-radius: 28px;
	color: #eef3fa;
	background:
		radial-gradient(600px 300px at 0% 100%, rgba(64, 140, 230, 0.35), transparent 60%),
		linear-gradient(150deg, var(--navy), var(--navy-2));
}
.mlp-final h2 { margin: 0 0 6px; font-size: clamp(24px, 2.6vw, 32px); color: #fff; }
.mlp-final p { margin: 0; color: rgba(238, 243, 250, 0.8); font-size: 17px; }
.mlp-final .mlp-cta { justify-content: center; }

.mlp-foot { border-top: 1px solid var(--line); background: #fff; }
.mlp-foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 24px; font-size: 14px; color: var(--muted); }
.mlp-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.mlp-foot a { color: var(--muted); text-decoration: none; }
.mlp-foot a:hover { color: var(--blue); text-decoration: underline; }
.mlp-powered { display: inline-flex; align-items: center; gap: 8px; }
.mlp-powered img { width: 20px; height: 20px; }
.mlp-powered b { color: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.mlp-hero-inner { gap: 40px; padding-block: 72px 80px; }
	.mlp-nav a { padding: 8px 9px; font-size: 14px; }
}
@media (max-width: 960px) {
	.mlp-nav { display: none; }
	.mlp-bar-inner { justify-content: space-between; }
	.mlp-hero-inner { grid-template-columns: 1fr; padding-block: 56px 64px; }
	.mlp-mock { max-width: 460px; width: 100%; margin-inline: auto; }
	.mlp-mock-float { inset-inline-start: -8px; }
	.mlp-grid, .mlp-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mlp-role.is-featured { grid-column: 1 / -1; }
	.mlp-steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
	.mlp-steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start; padding: 22px; }
	.mlp-step-num { grid-row: span 2; margin: 0; }
	.mlp-steps li:not(:last-child)::after { top: auto; bottom: -21px; inset-inline-end: auto; inset-inline-start: 45px; width: 0; height: 22px; border-top: 0; border-inline-start: 2px dashed #c4d3e4; }
	.mlp-section { padding-block: 72px; }
	.mlp-final-inner { padding: 36px 32px; }
}
@media (max-width: 640px) {
	.mlp-wrap { width: min(var(--wrap), 100% - 32px); }
	.mlp-bar-inner { height: 64px; gap: 12px; }
	.mlp-brand-logo { width: 40px; height: 40px; border-radius: 11px; }
	.mlp-brand-text b { font-size: 15px; }
	.mlp-brand-text small { display: none; }
	.mlp-btn-sm { height: 40px; padding: 0 14px 2px; gap: 6px; font-size: 14px; flex: none; }
	.mlp-btn-sm .mlp-icon { width: 16px; height: 16px; }
	.mlp-hero-inner { padding-block: 44px 52px; }
	.mlp-hero-text { font-size: 16px; }
	.mlp-cta { flex-direction: column; align-items: stretch; }
	.mlp-cta .mlp-btn { width: 100%; }
	.mlp-mock-main { transform: none; padding: 18px; }
	.mlp-mock-float { position: relative; inset-inline-start: auto; margin: -18px 16px 0; transform: none; }
	.mlp-mock { padding-bottom: 0; }
	.mlp-roles { grid-template-columns: 1fr; }
	.mlp-role { padding: 24px; }
	/* Features: icon beside the title, so six cards stay short on a phone. */
	.mlp-grid { grid-template-columns: 1fr; gap: 12px; }
	.mlp-feature { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding: 18px; }
	.mlp-feature > .mlp-icon { grid-row: span 2; width: 44px; height: 44px; padding: 11px; margin: 0; }
	.mlp-feature h3 { margin-bottom: 4px; font-size: 17px; }
	.mlp-feature p { font-size: 14px; line-height: 1.8; }
	.mlp-section { padding-block: 56px; }
	.mlp-section-head { margin-bottom: 32px; }
	.mlp-section-head p:not(.mlp-kicker) { font-size: 16px; }
	.mlp-final { padding-bottom: 56px; }
	.mlp-final-inner { padding: 28px 22px; border-radius: 22px; }
	.mlp-foot-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	.mlp { scroll-behavior: auto; }
	.mlp * { transition: none !important; }
}
