/* ------------------------------------------------------------------
   Osolna (أصولنا) product page, template-family.php. Osolna's own brand
   (osolna.com): deep green, brand green, gold and cream, IBM Plex Sans Arabic.
   ------------------------------------------------------------------ */
.page-template-template-family {
	--os-deep: #07231c;
	--os-green: #055a48;   /* --color-primary / brand teal */
	--os-gold: #c7963a;    /* --color-cta */
	--os-gold-l: #dcaf5c;  /* brand amber */
	--os-cream: #f6f2e6;
	--os-paper: #fffdf8;
	--os-line: #e6dfcc;
	--os-text: #4a5c52;
	/* by role, for the dark theme: headings, green text, page and card backgrounds */
	--os-heading: #07231c;
	--os-green-text: #055a48;
	--os-bg: #f6f2e6;
	--os-card: #fffdf8;
	--os-shade: 7, 35, 28;
}

/* Dark theme: Osolna's night look, deep green page with cream text and gold accents. */
:root[data-theme="dark"] .page-template-template-family {
	--os-line: #1f4036;
	--os-text: #b7c7be;
	--os-heading: #f6f2e6;
	--os-green-text: #5cc4a2;
	--os-bg: #04140f;
	--os-card: #0b2820;
	--os-shade: 246, 242, 230;
}

/* The old header wrapper is a fixed-height blue block; on this page it is cream. */
.page-template-template-family .headerSection {
	height: auto !important;
	max-height: none !important;
	overflow: hidden;
	background: var(--os-bg) !important;
}

.osp-hero,
.osp-hero *,
.osp-sec,
.osp-sec * {
	font-family: "IBM Plex Sans Arabic", "Thmanyah Sans", sans-serif !important;
	letter-spacing: 0;
}

.osp-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	color: var(--os-gold);
	font-size: 15px;
	font-weight: 700;
}

.osp-kicker::before {
	content: "";
	width: 28px;
	height: 1.5px;
	background: var(--os-gold);
}

.osp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 700;
	line-height: 22px;
	text-decoration: none !important;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.osp-btn--gold {
	background: var(--os-gold);
	color: var(--os-deep) !important;
}

.osp-btn--gold:hover {
	background: var(--os-green);
	color: var(--os-cream) !important;
	transform: translateY(-2px);
}

.osp-btn--line {
	border-color: var(--os-green);
	color: var(--os-green-text) !important;
}

.osp-btn--line:hover {
	background: var(--os-green);
	color: var(--os-cream) !important;
}

.osp-btn:focus-visible {
	outline: 3px solid var(--os-gold-l);
	outline-offset: 3px;
}

/* Hero: text on the right, the real product on the left. */
.osp-hero {
	position: relative;
	padding: 128px 0 88px;
	color: var(--os-text);
	background:
		radial-gradient(50% 60% at 15% 45%, rgba(199, 150, 58, .16), transparent 70%),
		var(--os-bg);
}

.osp-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	align-items: center;
	gap: 56px;
}

.osp-hero .osp-hero__grid::before,
.osp-hero .osp-hero__grid::after {
	display: none;
}

.osp-hero__logo {
	display: block;
	width: 220px;
	height: auto;
	margin: 0 0 28px;
}

.osp-hero__title {
	margin: 0 0 20px;
	color: var(--os-heading);
	font-size: 58px !important;
	font-weight: 700;
	line-height: 1.2;
	text-align: right;
}

.osp-hero__lead {
	max-width: 560px;
	margin: 0 0 32px;
	color: var(--os-text);
	font-size: 19px;
	line-height: 1.9;
	text-align: right !important;
}

.osp-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.osp-hero__by {
	margin: 26px 0 0;
	color: #7d8a82;
	font-size: 14px;
	text-align: right !important;
}

/* Product shots: dashboard behind, family website and phone in front. */
.osp-hero__media {
	position: relative;
	height: 520px;
}

.osp-shot {
	position: absolute;
	margin: 0;
	overflow: hidden;
	background: var(--os-card);
	box-shadow: 0 40px 80px -30px rgba(7, 35, 28, .45), 0 0 0 1px rgba(7, 35, 28, .08);
}

.osp-shot img {
	display: block;
	width: 100%;
	height: auto;
}

.osp-shot--dash {
	top: 20px;
	left: 0;
	width: 92%;
	border-radius: 14px;
	background: var(--os-deep);
}

.osp-shot__bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 9px 14px;
	background: #0b2e25;
	direction: ltr;
}

.osp-shot__bar i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(246, 242, 230, .25);
}

.osp-shot__bar b {
	margin-left: 10px;
	padding: 2px 12px;
	border-radius: 999px;
	background: rgba(246, 242, 230, .08);
	color: rgba(246, 242, 230, .6);
	font-size: 11px;
	font-weight: 500;
}

.osp-shot--site {
	right: 0;
	bottom: 0;
	width: 34%;
	height: 300px;
	border: 6px solid var(--os-paper);
	border-radius: 16px;
	animation: osp-float 7s ease-in-out infinite;
}

.osp-shot--site img {
	height: 100%;
	object-fit: cover;
	object-position: top;
}

.osp-shot--phone {
	bottom: -10px;
	left: 6%;
	width: 150px;
	overflow: visible;
	background: transparent;
	box-shadow: none;
	filter: drop-shadow(0 30px 40px rgba(7, 35, 28, .35));
	animation: osp-float 7s ease-in-out -3.5s infinite;
}

.osp-shot--phone img {
	border-radius: 22px;
}

@keyframes osp-float {
	50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
	.osp-shot--site,
	.osp-shot--phone {
		animation: none;
	}
}

@media (max-width: 1199px) {
	.osp-hero__title {
		font-size: 48px !important;
	}
}

@media (max-width: 991px) {
	.osp-hero {
		padding: 112px 0 64px;
	}

	.osp-hero__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.osp-hero__title {
		font-size: 42px !important;
	}

	.osp-hero__media {
		height: 460px;
		max-width: 640px;
		width: 100%;
		margin: 0 auto;
	}
}

@media (max-width: 600px) {
	.osp-hero {
		padding: 100px 0 48px;
	}

	.osp-hero__logo {
		width: 170px;
		margin-bottom: 22px;
	}

	.osp-hero__title {
		font-size: 34px !important;
	}

	.osp-hero__lead {
		font-size: 17px;
	}

	.osp-btn {
		flex: 1 1 auto;
		padding: 14px 18px;
	}

	.osp-hero__media {
		height: 330px;
	}

	.osp-shot--dash {
		width: 100%;
		top: 0;
	}

	.osp-shot--site {
		width: 40%;
		height: 190px;
		border-width: 4px;
	}

	.osp-shot--phone {
		width: 96px;
		left: 2%;
	}
}

/* Shared section heading */
.osp-head {
	max-width: 720px;
	margin-bottom: 48px;
}

.osp-title {
	margin: 0;
	color: var(--os-heading);
	font-size: 42px !important;
	font-weight: 700;
	line-height: 1.3;
	text-align: right;
}

/* Trust strip */
.osp-trust {
	padding: 26px 0;
	background: var(--os-deep);
	color: rgba(246, 242, 230, .75);
}

.osp-trust__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.osp-trust__list li {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 15px;
}

.osp-trust__list li + li {
	padding-right: 32px;
	border-right: 1px solid rgba(220, 175, 92, .25);
}

.osp-trust__ico {
	display: grid;
	width: 46px;
	height: 46px;
	place-items: center;
	border: 1px solid rgba(220, 175, 92, .35);
	border-radius: 50%;
	color: var(--os-gold-l);
}

.osp-trust__ico svg {
	width: 30px;
	height: 30px;
}

.osp-trust__list b {
	color: var(--os-cream);
	font-size: 34px;
	font-weight: 700;
	line-height: 1;
}

/* Why Osolna: bento grid on cream, the first card large and green. */
.osp-why {
	padding: 104px 0;
	background: var(--os-bg);
}

.osp-why .container::before,
.osp-why .container::after {
	display: none;
}

.osp-why__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.osp-why__card {
	padding: 30px 28px;
	border: 1px solid var(--os-line);
	border-radius: 24px;
	background: var(--os-card);
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.osp-why__card:hover {
	border-color: var(--os-gold);
	box-shadow: 0 26px 50px -34px rgba(7, 35, 28, .45);
	transform: translateY(-4px);
}

.osp-why__card.is-big {
	grid-row: span 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	border-color: var(--os-green);
	background:
		radial-gradient(80% 60% at 20% 0%, rgba(220, 175, 92, .22), transparent 70%),
		var(--os-green);
}

/* The last reason runs the full width under the others. */
.osp-why__card:last-child {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-areas: "ico name" "ico text";
	column-gap: 22px;
	align-items: center;
}

.osp-why__card:last-child .osp-why__ico {
	grid-area: ico;
	margin: 0;
}

.osp-why__card:last-child .osp-why__name {
	grid-area: name;
	margin-bottom: 4px;
}

.osp-why__card:last-child .osp-why__text {
	grid-area: text;
}

.osp-why__ico {
	display: grid;
	width: 52px;
	height: 52px;
	margin-bottom: 22px;
	place-items: center;
	border-radius: 16px;
	background: var(--os-bg);
	color: var(--os-green-text);
	box-shadow: inset 0 0 0 1px var(--os-line);
}

.osp-why__card.is-big .osp-why__ico {
	width: 64px;
	height: 64px;
	margin-bottom: auto;
	background: var(--os-gold);
	color: var(--os-deep);
	box-shadow: none;
}

.osp-why__name {
	margin: 0 0 10px;
	color: var(--os-heading);
	font-size: 21px !important;
	font-weight: 700;
	line-height: 1.4;
	text-align: right;
}

.osp-why__card.is-big .osp-why__name {
	margin-top: 40px;
	color: var(--os-cream);
	font-size: 30px !important;
}

.osp-why__text {
	margin: 0;
	color: var(--os-text);
	font-size: 15px;
	line-height: 1.85;
	text-align: right !important;
}

.osp-why__card.is-big .osp-why__text {
	color: rgba(246, 242, 230, .8);
	font-size: 17px;
}

@media (max-width: 991px) {
	.osp-title {
		font-size: 34px !important;
	}

	.osp-trust__list {
		justify-content: flex-start;
	}

	.osp-why__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.osp-why__card.is-big {
		grid-column: 1 / -1;
		grid-row: auto;
	}
}

@media (max-width: 600px) {
	.osp-title {
		font-size: 29px !important;
	}

	.osp-why__card:last-child {
		display: block;
	}

	.osp-why__card:last-child .osp-why__ico {
		margin-bottom: 22px;
	}

	.osp-trust__list {
		flex-direction: column;
		align-items: flex-start;
	}

	.osp-trust__list li + li {
		padding-right: 0;
		border-right: 0;
	}

	.osp-why {
		padding: 72px 0;
	}

	.osp-why__grid {
		grid-template-columns: 1fr;
	}

	.osp-why__card.is-big .osp-why__name {
		font-size: 25px !important;
	}
}

/* One platform, three faces: deep green, three cards with the real screens. */
.osp-faces {
	padding: 104px 0;
	background:
		radial-gradient(60% 70% at 10% 60%, rgba(220, 175, 92, .14), transparent 70%),
		var(--os-deep);
	color: rgba(246, 242, 230, .78);
}

.osp-faces .container::before,
.osp-faces .container::after {
	display: none;
}

.osp-faces .osp-title {
	color: var(--os-cream);
}

.osp-faces .osp-kicker {
	color: var(--os-gold-l);
}

.osp-faces .osp-kicker::before {
	background: var(--os-gold-l);
}

.osp-faces__num {
	color: var(--os-gold-l);
	font-size: 15px;
	font-weight: 700;
}

.osp-faces__name {
	margin: 8px 0 14px;
	color: var(--os-cream);
	font-size: 32px !important;
	font-weight: 700;
	line-height: 1.3;
	text-align: right;
}

.osp-faces__lead {
	margin: 0 0 24px;
	color: rgba(246, 242, 230, .78);
	font-size: 17px;
	line-height: 1.9;
	text-align: right !important;
}

.osp-faces__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.osp-faces__list li {
	position: relative;
	padding: 10px 30px 10px 0;
	border-top: 1px solid rgba(220, 175, 92, .18);
	color: var(--os-cream);
	font-size: 16px;
	text-align: right;
}

.osp-faces__list li::before {
	content: "";
	position: absolute;
	top: 50%;
	right: 4px;
	width: 10px;
	height: 10px;
	border: 2px solid var(--os-gold-l);
	border-radius: 50%;
	transform: translateY(-50%);
}

/* Screens: the phone as it is; website and dashboard in a cream browser window. */
.osp-scr {
	margin: 0;
	overflow: hidden;
	background: var(--os-card);
}

.osp-scr--site,
.osp-scr--dash {
	display: flex;
	flex-direction: column;
	border-radius: 14px;
	box-shadow: 0 0 0 1px rgba(7, 35, 28, .1), 0 30px 60px -30px rgba(7, 35, 28, .5);
}

.osp-scr--site {
	width: 300px;
	height: 400px;
}

.osp-scr--dash {
	width: 560px;
}

.osp-scr--app {
	width: 190px;
	overflow: visible;
	background: transparent;
	filter: drop-shadow(0 28px 36px rgba(7, 35, 28, .38));
}

.osp-scr--app img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 28px;
}

.osp-frame__bar {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 6px;
	padding: 9px 12px;
	border-bottom: 1px solid var(--os-line);
	background: #f1ecdd;
	direction: ltr;
}

.osp-frame__bar i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #d9d0b8;
}

.osp-frame__bar i:first-child {
	background: var(--os-gold);
}

.osp-frame__bar b {
	flex: 0 1 220px;
	margin: 0 auto;
	padding: 2px 10px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--os-card);
	color: #7d8a82;
	font-size: 10px;
	font-weight: 500;
	text-align: center;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.osp-frame__view {
	display: block;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}

.osp-frame__view img {
	display: block;
	width: 100%;
	height: auto;
}

.osp-scr--site .osp-frame__view img {
	height: 100%;
	object-fit: cover;
	object-position: 50% 0;
}

/* Three cards, each with its screen rising from the bottom of a cream panel. */
.osp-cards3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.osp-cards3__card {
	overflow: hidden;
	border: 1px solid rgba(220, 175, 92, .22);
	border-radius: 26px;
	background: rgba(246, 242, 230, .04);
	transition: border-color .3s ease, transform .3s ease;
}

.osp-cards3__card:hover {
	border-color: var(--os-gold);
	transform: translateY(-4px);
}

.osp-cards3__shot {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	height: 300px;
	padding: 28px 22px 0;
	overflow: hidden;
	background:
		radial-gradient(70% 60% at 50% 100%, rgba(199, 150, 58, .3), transparent 70%),
		var(--os-bg);
}

.osp-cards3__shot .osp-scr--site {
	width: 74%;
	height: 272px;
	border-radius: 12px 12px 0 0;
}

.osp-cards3__shot .osp-scr--app {
	width: 150px;
	margin-bottom: -60px;
}

.osp-cards3__shot .osp-scr--dash {
	width: 100%;
	align-self: center;
	margin-bottom: 28px;
}

.osp-cards3__text {
	padding: 26px 26px 28px;
}

.osp-cards3__text .osp-faces__name {
	font-size: 24px !important;
}

.osp-cards3__text .osp-faces__lead {
	font-size: 15px;
}

@media (max-width: 991px) {
	.osp-faces {
		padding: 88px 0;
	}

	.osp-cards3 {
		grid-template-columns: 1fr;
		max-width: 520px;
		margin: 0 auto;
	}
}

@media (max-width: 600px) {
	.osp-faces {
		padding: 72px 0;
	}

	.osp-faces__name {
		font-size: 26px !important;
	}
}

.osp-lead {
	margin: 16px 0 0;
	color: var(--os-text);
	font-size: 18px;
	line-height: 1.85;
	text-align: right !important;
}

/* Modules: four cards per row on cream, each opening on its real dashboard screen
   (the whole screen, fitted to the card width). */
.osp-mods {
	padding: 104px 0;
	background: var(--os-bg);
}

.osp-mods .container::before,
.osp-mods .container::after {
	display: none;
}

.osp-mods__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.osp-mods__card {
	overflow: hidden;
	border: 1px solid var(--os-line);
	border-radius: 22px;
	background: var(--os-card);
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.osp-mods__card:hover {
	border-color: var(--os-gold);
	box-shadow: 0 26px 50px -34px rgba(7, 35, 28, .45);
	transform: translateY(-4px);
}

.osp-mods__shot {
	position: relative;
	display: block;
	width: 100%;
	padding: 14px;
	overflow: hidden;
	border: 0;
	cursor: zoom-in;
	border-bottom: 1px solid var(--os-line);
	background:
		radial-gradient(70% 70% at 50% 100%, rgba(199, 150, 58, .22), transparent 70%),
		#efe8d6;
}

.osp-mods__shot img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 0 0 1px rgba(7, 35, 28, .08), 0 18px 30px -18px rgba(7, 35, 28, .4);
	transform-origin: center;
	transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.osp-mods__card:hover .osp-mods__shot img {
	transform: scale(1.03);
}

.osp-mods__shot:focus-visible {
	outline: 3px solid var(--os-gold);
	outline-offset: -3px;
}

/* "View screen" pill, shown on hover and keyboard focus. */
.osp-mods__zoom {
	position: absolute;
	bottom: 12px;
	left: 50%;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--os-deep);
	color: var(--os-cream);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	opacity: 0;
	transform: translate(-50%, 8px);
	transition: opacity .25s ease, transform .25s ease;
}

.osp-mods__zoom svg {
	color: var(--os-gold-l);
}

.osp-mods__card:hover .osp-mods__zoom,
.osp-mods__shot:focus-visible .osp-mods__zoom {
	opacity: 1;
	transform: translate(-50%, 0);
}

@media (hover: none) {
	.osp-mods__zoom {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

/* Viewer */
.osp-locked {
	overflow: hidden;
}

.osp-view {
	/* Never wider than the image itself (--nat, set by the viewer script), so small snippets
	   keep their real size; big screens stop where they still fit the window. */
	width: min(max(420px, var(--nat, 1240px)), 1240px, calc(100vw - 120px), calc((100vh - 200px) * 1.6));
	max-width: none;
	max-height: none;
	margin: auto;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}

.osp-view::backdrop {
	background: rgba(7, 35, 28, .88);
	backdrop-filter: blur(4px);
}

.osp-view[open] .osp-view__box {
	animation: osp-pop .35s cubic-bezier(.2, .7, .2, 1);
}

@keyframes osp-pop {
	from { opacity: 0; transform: scale(.96); }
	to { opacity: 1; transform: none; }
}

.osp-view__box {
	position: relative;
}

.osp-view__top {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 14px;
	color: var(--os-cream);
}

.osp-view__name {
	margin: 0;
	color: var(--os-cream);
	font-size: 22px;
	font-weight: 700;
}

.osp-view__hint {
	flex: 1 1 auto;
	margin: 0;
	color: rgba(246, 242, 230, .6);
	font-size: 14px;
}

.osp-view__count {
	color: var(--os-gold-l);
	font-size: 14px;
	font-weight: 700;
	direction: ltr;
}

.osp-view__close,
.osp-view__nav {
	display: grid;
	width: 44px;
	height: 44px;
	padding: 0;
	place-items: center;
	border: 1px solid rgba(220, 175, 92, .4);
	border-radius: 50%;
	background: rgba(7, 35, 28, .6);
	color: var(--os-cream);
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.osp-view__close:hover,
.osp-view__nav:hover {
	background: var(--os-gold);
	color: var(--os-deep);
}

.osp-view__close:focus-visible,
.osp-view__nav:focus-visible {
	outline: 3px solid var(--os-gold-l);
	outline-offset: 2px;
}

.osp-view__frame {
	overflow: hidden;
	border-radius: 16px;
	background: var(--os-card);
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6);
}

.osp-view__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	max-height: calc(100vh - 170px);
	background:
		radial-gradient(circle at 1px 1px, rgba(7, 35, 28, .08) 1px, transparent 0) 0 0 / 14px 14px,
		var(--os-card);
	cursor: zoom-in;
}

/* Shown at its own size at most (never stretched), smaller only when it must fit. */
.osp-view__img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: calc(100vh - 220px);
	transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}

.osp-view__stage.is-zoomed {
	cursor: zoom-out;
}

.osp-view__stage.is-zoomed .osp-view__img {
	transform: scale(2.2);
	transition: transform .35s cubic-bezier(.2, .7, .2, 1), transform-origin .08s linear;
}

.osp-view__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 52px;
	height: 52px;
	margin-top: 20px;
	transform: translateY(-50%);
}

.osp-view__nav--prev {
	right: -26px;
}

.osp-view__nav--next {
	left: -26px;
}

.osp-mods__text {
	padding: 20px 20px 22px;
}

.osp-mods__ico {
	display: grid;
	width: 42px;
	height: 42px;
	margin-bottom: 14px;
	place-items: center;
	border-radius: 12px;
	background: var(--os-green);
	color: var(--os-gold-l);
}

.osp-mods__name {
	margin: 0 0 6px;
	color: var(--os-heading);
	font-size: 19px !important;
	font-weight: 700;
	line-height: 1.4;
	text-align: right;
}

.osp-mods__desc {
	margin: 0;
	color: var(--os-text);
	font-size: 14px;
	line-height: 1.8;
	text-align: right !important;
}

@media (prefers-reduced-motion: reduce) {
	.osp-mods__shot img,
	.osp-view__img {
		transition: none;
	}

	.osp-view[open] .osp-view__box,
	.osp-cta__halo::after,
	.is-in .osp-cta__art::after,
	.is-in .osp-cta__halo,
	.is-in .osp-cta__mark path {
		animation: none;
	}

	/* Still: the mark shown drawn and filled. */
	.osp-cta__halo {
		opacity: 1;
		transform: none;
	}

	.osp-cta__mark path {
		fill-opacity: 1;
		stroke-dashoffset: 0;
		stroke-opacity: .3;
	}
}

@media (max-width: 1199px) {
	.osp-mods__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.osp-mods {
		padding: 88px 0;
	}

	.osp-mods__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.osp-mods {
		padding: 72px 0;
	}

	.osp-lead {
		font-size: 16px;
	}

	.osp-mods__grid {
		grid-template-columns: 1fr;
	}

	.osp-view {
		width: min(max(300px, var(--nat, 100vw)), calc(100vw - 24px));
	}

	.osp-view__stage {
		max-height: none;
	}

	.osp-view__hint {
		display: none;
	}

	.osp-view__name {
		flex: 1 1 auto;
		font-size: 18px;
	}

	.osp-view__nav {
		top: auto;
		bottom: -64px;
		margin: 0;
		transform: none;
	}

	.osp-view__nav--prev {
		right: calc(50% - 60px);
	}

	.osp-view__nav--next {
		left: calc(50% - 60px);
	}
}


/* Module spotlights (tree, fund, calendar): the most requested modules, each with its
   real screens. Dark = deep green, light = cream. Text and main screen on top, capabilities below. */
.osp-spot {
	padding: 104px 0;
}

.osp-spot .container::before,
.osp-spot .container::after {
	display: none;
}

.osp-spot--dark {
	background:
		radial-gradient(55% 60% at 20% 30%, rgba(220, 175, 92, .16), transparent 70%),
		var(--os-deep);
	color: rgba(246, 242, 230, .78);
}

.osp-spot--light {
	background: var(--os-bg);
	color: var(--os-text);
}

.osp-spot--dark .osp-title {
	color: var(--os-cream);
}

.osp-spot--dark .osp-kicker {
	color: var(--os-gold-l);
}

.osp-spot--dark .osp-kicker::before {
	background: var(--os-gold-l);
}

.osp-spot--dark .osp-lead {
	color: rgba(246, 242, 230, .78);
}

.osp-spot__badge {
	display: inline-block;
	margin: 0 0 18px;
	padding: 5px 14px;
	border-radius: 999px;
	background: var(--os-gold);
	color: var(--os-deep);
	font-size: 13px;
	font-weight: 700;
}

.osp-spot__top {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: center;
	gap: 56px;
}

.osp-spot__facts {
	margin: 24px 0 30px;
	padding: 0;
	list-style: none;
}

.osp-spot__facts li {
	position: relative;
	padding: 9px 26px 9px 0;
	border-top: 1px solid rgba(220, 175, 92, .2);
	font-size: 15px;
	text-align: right;
}

.osp-spot--light .osp-spot__facts li {
	border-top-color: var(--os-line);
}

.osp-spot__facts li::before {
	content: "";
	position: absolute;
	top: 50%;
	right: 2px;
	width: 10px;
	height: 10px;
	border: 2px solid var(--os-gold);
	border-radius: 50%;
	transform: translateY(-50%);
}

.osp-spot__facts b {
	color: var(--os-gold-l);
	font-weight: 700;
}

.osp-spot--light .osp-spot__facts b {
	color: var(--os-green-text);
}

.osp-btn--ghost {
	border-color: rgba(246, 242, 230, .4);
	color: var(--os-cream) !important;
}

.osp-btn--ghost:hover {
	border-color: var(--os-cream);
	background: var(--os-bg);
	color: var(--os-heading) !important;
}

.osp-spot--light .osp-btn--ghost {
	border-color: var(--os-green);
	color: var(--os-green-text) !important;
}

.osp-spot--light .osp-btn--ghost:hover {
	background: var(--os-green);
	color: var(--os-cream) !important;
}

/* Main screen in a cream browser window. */
.osp-spot__main {
	overflow: hidden;
	border-radius: 16px;
	background: var(--os-card);
	box-shadow: 0 0 0 1px rgba(220, 175, 92, .25), 0 40px 80px -30px rgba(0, 0, 0, .55);
}

.osp-spot__shot,
.osp-spot__thumb {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	overflow: hidden;
	border: 0;
	background: var(--os-card);
	cursor: zoom-in;
}

.osp-spot__shot img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

/* Thumbnails: the whole screen or snippet, fitted inside the card at most at its own size,
   on a dotted paper background (never cropped, never stretched). */
.osp-spot__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	background:
		radial-gradient(circle at 1px 1px, rgba(7, 35, 28, .08) 1px, transparent 0) 0 0 / 12px 12px,
		var(--os-card);
}

.osp-spot__thumb img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	border-radius: 6px;
	box-shadow: 0 0 0 1px rgba(7, 35, 28, .08), 0 8px 18px -10px rgba(7, 35, 28, .35);
	transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.osp-spot__shot:hover img,
.osp-spot__feat:hover .osp-spot__thumb img {
	transform: scale(1.04);
}

.osp-spot__shot:hover .osp-mods__zoom,
.osp-spot__feat:hover .osp-mods__zoom,
.osp-spot__shot:focus-visible .osp-mods__zoom,
.osp-spot__thumb:focus-visible .osp-mods__zoom {
	opacity: 1;
	transform: translate(-50%, 0);
}

.osp-spot__shot:focus-visible,
.osp-spot__thumb:focus-visible {
	outline: 3px solid var(--os-gold);
	outline-offset: -3px;
}

/* Light spotlight: the window sits on cream with a soft green shadow. */
.osp-spot--light .osp-spot__main {
	box-shadow: 0 0 0 1px var(--os-line), 0 40px 80px -34px rgba(7, 35, 28, .4);
}

/* Short note under the top row (e.g. how family funds are licensed in Saudi Arabia). */
.osp-spot__note {
	margin-top: 40px;
	padding: 18px 22px;
	border: 1px solid var(--os-line);
	border-right: 4px solid var(--os-gold);
	border-radius: 14px;
	background: var(--os-card);
	color: var(--os-text);
	font-size: 15px;
	line-height: 1.9;
	text-align: right;
}

.osp-spot--dark .osp-spot__note {
	border-color: rgba(220, 175, 92, .25);
	border-right-color: var(--os-gold);
	background: rgba(246, 242, 230, .05);
	color: rgba(246, 242, 230, .8);
}

.osp-spot__note b {
	color: var(--os-green-text);
}

.osp-spot--dark .osp-spot__note b {
	color: var(--os-gold-l);
}

.osp-spot__note a {
	color: var(--os-green-text) !important;
	font-weight: 700;
	text-decoration: underline !important;
}

.osp-spot--dark .osp-spot__note a {
	color: var(--os-gold-l) !important;
}

/* Capabilities: five cards, each opening on its screen. */
.osp-spot__feats {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
	margin-top: 56px;
}

.osp-spot__feat {
	overflow: hidden;
	border: 1px solid rgba(220, 175, 92, .22);
	border-radius: 20px;
	background: rgba(246, 242, 230, .04);
	transition: border-color .3s ease, transform .3s ease;
}

.osp-spot--light .osp-spot__feat {
	border-color: var(--os-line);
	background: var(--os-card);
}

.osp-spot__feat:hover {
	border-color: var(--os-gold);
	transform: translateY(-4px);
}

.osp-spot__thumb {
	height: 150px;
	border-bottom: 1px solid rgba(220, 175, 92, .22);
}

.osp-spot__feat h3 {
	margin: 16px 16px 6px;
	color: var(--os-cream);
	font-size: 17px !important;
	font-weight: 700;
	line-height: 1.4;
	text-align: right;
}

.osp-spot--light .osp-spot__feat h3 {
	color: var(--os-heading);
}

.osp-spot__feat p {
	margin: 0 16px 18px;
	color: rgba(246, 242, 230, .7);
	font-size: 14px;
	line-height: 1.75;
	text-align: right !important;
}

.osp-spot--light .osp-spot__feat p {
	color: var(--os-text);
}

@media (prefers-reduced-motion: reduce) {
	.osp-spot__shot img,
	.osp-spot__thumb img {
		transition: none;
	}
}

@media (max-width: 1199px) {
	.osp-spot__feats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.osp-spot {
		padding: 88px 0;
	}

	.osp-spot__top {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.osp-spot__feats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-top: 40px;
	}
}

@media (max-width: 600px) {
	.osp-spot {
		padding: 72px 0;
	}

	.osp-spot__feats {
		grid-template-columns: 1fr;
	}

	.osp-spot__thumb {
		height: 170px;
	}
}

/* FAQ: heading on the right, questions as an accordion on the left. */
.osp-faq {
	padding: 104px 0;
	background: var(--os-bg);
}

.osp-faq .container::before,
.osp-faq .container::after {
	display: none;
}

.osp-faq__grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	align-items: start;
	gap: 56px;
}

.osp-faq__list {
	border-top: 1px solid var(--os-line);
}

.osp-faq__item {
	border-bottom: 1px solid var(--os-line);
}

.osp-faq__item summary {
	position: relative;
	display: block;
	padding: 22px 0 22px 48px;
	color: var(--os-heading);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.5;
	list-style: none;
	cursor: pointer;
}

.osp-faq__item summary::-webkit-details-marker {
	display: none;
}

/* Plus that turns into a minus. */
.osp-faq__item summary span {
	position: absolute;
	top: 50%;
	left: 4px;
	width: 32px;
	height: 32px;
	border: 1.5px solid var(--os-gold);
	border-radius: 50%;
	transform: translateY(-50%);
	transition: background-color .25s ease;
}

.osp-faq__item summary span::before,
.osp-faq__item summary span::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 1.5px;
	background: var(--os-gold);
	transform: translate(-50%, -50%);
	transition: transform .25s ease, background-color .25s ease;
}

.osp-faq__item summary span::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.osp-faq__item[open] summary span {
	background: var(--os-gold);
}

.osp-faq__item[open] summary span::before,
.osp-faq__item[open] summary span::after {
	background: var(--os-deep);
}

.osp-faq__item[open] summary span::after {
	transform: translate(-50%, -50%) rotate(0);
}

.osp-faq__item summary:hover {
	color: var(--os-green-text);
}

.osp-faq__item summary:focus-visible {
	outline: 3px solid var(--os-gold);
	outline-offset: 4px;
}

.osp-faq__item p {
	margin: -6px 0 22px;
	padding-left: 48px;
	color: var(--os-text);
	font-size: 16px;
	line-height: 1.9;
	text-align: right !important;
}

/* Call to action: deep Osolna green (#003427) with the gold glow. Text on the right; on the
   left the Osolna mark draws itself in gold lines, then its two colours fill in (cream for the
   figure, gold for the accent), under a soft halo and a light sweep. */
.osp-cta {
	position: relative;
	padding: 96px 0;
	overflow: hidden;
	background:
		radial-gradient(80% 60% at 20% 0%, rgba(220, 175, 92, .22), transparent 70%),
		#003427;
}

.osp-cta .container::before,
.osp-cta .container::after {
	display: none;
}

.osp-cta__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	align-items: center;
	gap: 48px;
}

.osp-cta .osp-kicker {
	color: var(--os-gold-l);
}

.osp-cta .osp-kicker::before {
	background: var(--os-gold-l);
}

.osp-cta__title {
	margin: 0 0 14px;
	color: var(--os-cream);
	font-size: 52px !important;
	font-weight: 700;
	line-height: 1.2;
	text-align: right;
}

.osp-cta__lead {
	margin: 0 0 32px;
	color: rgba(246, 242, 230, .8);
	font-size: 19px;
	text-align: right !important;
}

.osp-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.osp-cta__art {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	max-width: 420px;
	width: 100%;
	margin: 0 auto;
}

/* The loop (10s, starts when the section scrolls into view): the strokes draw one after
   another in glowing gold, the colours fill in, a light sweeps across, then the fill fades,
   the lines unwind and it begins again. The halo breathes with it. */
.osp-cta__halo {
	position: absolute;
	inset: 6%;
	border: 1px solid rgba(220, 175, 92, .35);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(220, 175, 92, .2), transparent 65%);
	opacity: 0;
	transform: scale(.8);
}

.is-in .osp-cta__halo {
	animation: osp-halo 10s ease-in-out infinite;
}

@keyframes osp-halo {
	0% { opacity: .25; transform: scale(.82); }
	40%, 80% { opacity: 1; transform: scale(1); box-shadow: 0 0 80px -10px rgba(220, 175, 92, .35); }
	100% { opacity: .25; transform: scale(.82); }
}

.osp-cta__halo::after {
	content: "";
	position: absolute;
	inset: -9%;
	border: 1px dashed rgba(220, 175, 92, .22);
	border-radius: 50%;
	animation: osp-cta-turn 40s linear infinite;
}

@keyframes osp-cta-turn {
	to { transform: rotate(360deg); }
}

.osp-cta__mark {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
	filter: drop-shadow(0 0 10px rgba(220, 175, 92, .45));
}

.osp-cta__mark path {
	fill-opacity: 0;
	stroke: var(--os-gold-l);
	stroke-width: 40;
	stroke-linejoin: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
}

.is-in .osp-cta__mark path {
	animation: osp-draw 10s cubic-bezier(.6, 0, .3, 1) infinite;
	animation-delay: calc(var(--i, 0) * 45ms);
}

@keyframes osp-draw {
	0% { stroke-dashoffset: 1; fill-opacity: 0; stroke-opacity: 1; }
	28% { stroke-dashoffset: 0; fill-opacity: 0; stroke-opacity: 1; }
	40% { stroke-dashoffset: 0; fill-opacity: 1; stroke-opacity: .3; }
	80% { stroke-dashoffset: 0; fill-opacity: 1; stroke-opacity: .3; }
	88% { stroke-dashoffset: 0; fill-opacity: 0; stroke-opacity: 1; }
	100% { stroke-dashoffset: -1; fill-opacity: 0; stroke-opacity: 1; }
}

.osp-cta__mark .o-ink {
	fill: var(--os-cream);
}

.osp-cta__mark .o-accent {
	fill: var(--os-gold-l);
}

/* A band of light sweeps over the filled mark once per loop. */
.osp-cta__art::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%) 200% 0 / 300% 100% no-repeat;
	-webkit-mask: url("images/osolna/osolna-icon-colored-1024.svg") center / contain no-repeat;
	mask: url("images/osolna/osolna-icon-colored-1024.svg") center / contain no-repeat;
	pointer-events: none;
}

.is-in .osp-cta__art::after {
	animation: osp-cta-shine 10s ease-in-out infinite;
}

@keyframes osp-cta-shine {
	0%, 50% { background-position: 200% 0; }
	72%, 100% { background-position: -100% 0; }
}

.osp-btn .fa {
	font-family: FontAwesome !important;
}

@media (max-width: 991px) {
	.osp-faq {
		padding: 88px 0;
	}

	.osp-faq__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.osp-cta__grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.osp-cta__art {
		order: -1;
		max-width: 280px;
	}

	.osp-cta__title {
		font-size: 38px !important;
	}
}

@media (max-width: 600px) {
	.osp-faq {
		padding: 72px 0;
	}

	.osp-faq__item summary {
		font-size: 17px;
	}

	.osp-cta {
		padding: 72px 0;
	}

	.osp-cta__art {
		max-width: 220px;
	}

	.osp-cta__title {
		font-size: 29px !important;
	}

	.osp-cta__lead {
		font-size: 17px;
	}
}

/* Phones: the reasons and the feature cards two per row so the page stays short. */
@media (max-width: 600px) {
	.osp-why__grid,
	.osp-spot__feats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.osp-why__card {
		padding: 16px 14px;
		border-radius: 16px;
	}

	.osp-why__card.is-big,
	.osp-why__card:last-child {
		grid-column: 1 / -1;
	}

	.osp-why__ico {
		width: 40px;
		height: 40px;
		margin-bottom: 10px;
	}

	.osp-why__card:last-child .osp-why__ico {
		margin-bottom: 10px;
	}

	.osp-why__name {
		margin-bottom: 4px;
		font-size: 15px !important;
		line-height: 1.35;
	}

	.osp-why__text {
		font-size: 12.5px;
		line-height: 1.6;
	}

	.osp-spot__feat {
		border-radius: 14px;
	}

	.osp-spot__thumb {
		height: 110px;
	}

	.osp-spot__feat h3 {
		margin: 10px 12px 4px;
		font-size: 14px !important;
	}

	.osp-spot__feat p {
		margin: 0 12px 12px;
		font-size: 12px;
		line-height: 1.6;
	}

	.osp-spot__feats > :last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}
