/* Homepage header, store ratings, review translations and store badges.
   Markup is generated by tools/home/build.py. */
:root {
	--pm-ink: #08104d;
	--pm-muted: #5d6079;
	--pm-gold: #b8913a;
	--pm-line: #e2e3ec;
}

/* ---------- store badges (header and the slider layers) ---------- */
.pm-badges { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; vertical-align: middle; }
.pm-badge { display: block; line-height: 0; border-radius: 8px; transition: transform .15s ease, opacity .15s ease; }
.pm-badge:hover { transform: translateY(-1px); opacity: .9; }
.pm-badge:focus-visible { outline: 2px solid var(--pm-ink); outline-offset: 3px; }
.pm-badge img { display: block; height: var(--pm-badge-h, 44px) !important; width: auto !important; max-width: none !important; }
.pm-rs-badges .pm-badges { flex-wrap: nowrap; }

/* ---------- header ---------- */
.pm-hero {
	display: grid;
	grid-template-columns: minmax(320px, 1fr) minmax(0, 662px);
	align-items: center;
	gap: 40px;
	padding: 56px 0 64px;
}
.pm-hero__text { min-width: 0; }
.pm-hero__icon { display: block; width: 88px; height: 88px; border-radius: 22%; box-shadow: 0 4px 16px rgba(8, 16, 77, .16); }
.pm-hero .pm-hero__title {
	margin: 22px 0 10px;
	font-family: Montserrat, sans-serif;
	font-size: 36px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -.01em;
	text-transform: none;
	color: var(--pm-ink);
}
.pm-hero .pm-hero__subtitle { margin: 0 0 28px; font-size: 20px; line-height: 1.4; color: var(--pm-muted); }
.pm-hero .pm-badges { --pm-badge-h: 48px; }
.pm-hero__shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pm-hero__shots picture { min-width: 0; }
.pm-hero__shots img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
	box-shadow: 0 10px 28px rgba(8, 16, 77, .18);
}

@media only screen and (max-width: 1024px) {
	.pm-hero { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 36px; padding: 40px 0 48px; text-align: center; }
	.pm-hero__icon { margin: 0 auto; }
	.pm-hero .pm-badges { justify-content: center; }
	.pm-hero__shots { width: min(100%, 662px); }
}
@media only screen and (max-width: 767px) {
	.pm-hero { gap: 26px; padding: 28px 0 36px; }
	.pm-hero__icon { width: 72px; height: 72px; }
	.pm-hero .pm-hero__title { margin-top: 16px; font-size: 28px; }
	.pm-hero .pm-hero__subtitle { margin-bottom: 20px; font-size: 17px; }
	.pm-hero .pm-badges { --pm-badge-h: 44px; }
	/* screenshots scroll sideways, like a store listing */
	.pm-hero__shots {
		display: flex;
		gap: 12px;
		justify-self: center;
		width: 100vw;
		max-width: 100vw;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding: 0 16px;
		padding: 2px 16px 18px;
		box-sizing: border-box;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.pm-hero__shots::-webkit-scrollbar { display: none; }
	.pm-hero__shots picture { flex: 0 0 auto; scroll-snap-align: start; }
	.pm-hero__shots img { width: 70vw; max-width: 280px; border-radius: 14px; box-shadow: 0 3px 10px rgba(8, 16, 77, .14); }
}

/* ---------- store ratings (laurel wreaths) ---------- */
.pm-reviews { padding: 8px 0 16px; }
.pm-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.pm-ratings { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px; margin: 0 0 28px; }
.pm-laurel {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: var(--pm-ink);
	text-decoration: none;
	transition: transform .15s ease;
}
.pm-laurel:hover { color: var(--pm-ink); transform: translateY(-2px); }
.pm-laurel:focus-visible { outline: 2px solid var(--pm-ink); outline-offset: 4px; border-radius: 12px; }
.pm-laurel__crown {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 192px;
	height: 144px;
	line-height: 1;
}
.pm-laurel__wreath { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--pm-gold); }
/* optical centring: the number's ascent leaves more air above, so the block sits a little low */
.pm-laurel__rating, .pm-laurel__stars { top: 2%; }
.pm-laurel__rating { position: relative; font-family: Montserrat, sans-serif; font-size: 38px; font-weight: 700; letter-spacing: -.02em; }
.pm-laurel__stars { position: relative; margin-top: 8px; font-size: 13px; letter-spacing: 1px; color: #d9dae4; white-space: nowrap; }
.pm-laurel__stars::before {
	content: "★★★★★";
	position: absolute;
	top: 0;
	left: 0;
	width: var(--pm-fill, 100%);
	overflow: hidden;
	color: var(--pm-gold);
}
.pm-laurel__store {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 2px;
	font-family: Montserrat, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	line-height: 1.2;
	text-transform: uppercase;
	white-space: nowrap;
}
.pm-laurel__store i { font-size: 15px; }
@media only screen and (max-width: 480px) {
	.pm-ratings { gap: 12px; }
	.pm-laurel__crown { width: min(156px, calc(50vw - 26px)); height: auto; aspect-ratio: 4 / 3; }
	.pm-laurel__rating { font-size: 30px; }
	.pm-laurel__stars { margin-top: 6px; font-size: 10px; letter-spacing: 1px; }
	.pm-laurel__store { font-size: 11px; }
}

/* ---------- "translated from English" marker and popup ---------- */
.pm-tr {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin: -6px -6px -6px 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--pm-muted);
	vertical-align: middle;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}
.pm-tr:hover, .pm-tr[aria-expanded="true"] { color: var(--pm-ink); background: rgba(8, 16, 77, .06); }
.pm-tr:focus-visible { outline: 2px solid var(--pm-ink); outline-offset: 0; }
.pm-tr svg { display: block; }
.pm-tip {
	position: absolute;
	z-index: 10000;
	box-sizing: border-box;
	max-width: min(340px, calc(100vw - 24px));
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--pm-ink);
	color: #fff;
	font-size: 14px;
	line-height: 1.45;
	text-align: left;
	box-shadow: 0 12px 30px rgba(8, 16, 77, .28);
}
.pm-tip[hidden] { display: none; }
.pm-tip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: var(--pm-arrow-x, 50%);
	margin-left: -7px;
	border: 7px solid transparent;
	border-top-color: var(--pm-ink);
}
.pm-tip--below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--pm-ink); }
.pm-tip__title { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .72; }

/* ---------- page header: no logo on the homepage (the header section shows the app) ---------- */
.mkdf-page-header .mkdf-position-left-inner,
.mkdf-mobile-header .mkdf-position-left-inner { visibility: hidden; }

/* ---------- language picker (top menu, mobile menu, footer) ---------- */
.pm-lang { position: relative; line-height: 1.3; }
.pm-lang > summary {
	display: flex;
	align-items: center;
	gap: 7px;
	cursor: pointer;
	list-style: none;
	user-select: none;
	white-space: nowrap;
}
.pm-lang > summary::-webkit-details-marker { display: none; }
.pm-lang > summary::after {
	content: "";
	width: 6px;
	height: 6px;
	margin: -3px 2px 0 1px;
	border: solid currentColor;
	border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg);
}
.pm-lang[open] > summary::after { margin-top: 3px; transform: rotate(-135deg); }
.pm-lang > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }
.pm-lang svg { flex: 0 0 auto; }
.pm-lang__code { display: none; }
.pm-lang ul {
	position: absolute;
	z-index: 1000;
	width: max-content;
	max-width: calc(100vw - 32px);
	margin: 0;
	padding: 14px 12px;
	list-style: none;
	columns: 2;
	column-gap: 12px;
	background: #fff;
	border: 1px solid var(--pm-line);
	border-radius: 12px;
	box-shadow: 0 14px 34px rgba(8, 16, 77, .16);
	text-align: left;
}
.pm-lang li { float: none !important; display: block !important; width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important; break-inside: avoid; }
.pm-lang li::before { display: none; }
.pm-lang ul a {
	display: block;
	padding: 8px 14px !important;
	border: 0 !important;
	border-radius: 8px;
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--pm-ink) !important;
	white-space: nowrap;
	text-decoration: none;
}
.pm-lang ul a:hover, .pm-lang ul a:focus-visible { background: #f1f2f8; }
.pm-lang ul a[aria-current] { font-weight: 700 !important; }

/* top menu: same type as the other items, short code instead of the name */
.mkdf-main-menu > ul > li.pm-lang-item { position: relative; height: 100%; }
.mkdf-main-menu .pm-lang { height: 100%; }
.mkdf-main-menu .pm-lang > summary {
	height: 100%;
	padding: 0 0 0 28px;
	font-family: Montserrat, sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: var(--pm-ink);
}
.mkdf-main-menu .pm-lang > summary:hover, .mkdf-main-menu .pm-lang[open] > summary { color: #ff4b36; }
.mkdf-main-menu .pm-lang__name { display: none; }
.mkdf-main-menu .pm-lang__code { display: inline; }
.mkdf-main-menu .pm-lang ul { top: calc(100% - 18px); right: 0; left: auto; }

/* mobile menu: a menu row that expands in place */
/* the phone header sticks to the top once scrolled: keep the open menu inside the screen */
.mkdf-mobile-header .mkdf-mobile-nav { max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto !important; overscroll-behavior: contain; }
.mkdf-mobile-nav .pm-lang > summary {
	padding: 9px 0;
	border-bottom: 1px solid #d7e3f7;
	font-family: Montserrat, sans-serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .15px;
	color: var(--pm-ink);
}
.mkdf-mobile-header .mkdf-mobile-nav .pm-lang ul { display: none !important; position: static; width: auto; max-width: none; margin: 18px 0 22px; padding: 14px 12px; box-shadow: none; }
.mkdf-mobile-nav .pm-lang[open] ul { display: block !important; }
@media only screen and (max-width: 480px) {
	.mkdf-mobile-nav .pm-lang ul { columns: 1; }
}

/* footer: under the Help links, opens upwards */
.pm-footer-lang { margin-top: 18px; }
.mkdf-page-footer .pm-lang { display: inline-block; }
.mkdf-page-footer .pm-lang > summary {
	padding: 7px 12px;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 999px;
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #fff;
}
.mkdf-page-footer .pm-lang > summary:hover, .mkdf-page-footer .pm-lang[open] > summary { border-color: rgba(255, 255, 255, .7); }
.mkdf-page-footer .pm-lang ul { bottom: calc(100% + 6px); right: 0; }
@media only screen and (max-width: 767px) {
	.mkdf-page-footer .pm-lang ul { right: auto; left: 0; columns: 1; max-height: 70vh; overflow-y: auto; }
}

/* footer badges: one under the other, like the images they replace */
.mkdf-page-footer .pm-badges { flex-direction: column; align-items: flex-start; gap: 12px; }

/* ---------- "graphic + copy + badges" sections (were Rev Slider banners) ---------- */
.pm-feature {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-areas: "copy art";
	align-items: center;
	gap: 40px;
	padding: 40px 0;
}
.pm-feature--art-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "art copy"; }
.pm-feature__copy { grid-area: copy; }
.pm-feature__art { grid-area: art; }
.pm-feature .pm-feature__title {
	margin: 0 0 26px;
	font-family: Montserrat, sans-serif;
	font-size: 40px;
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: 0;
	text-transform: none;
	color: #141414;
}
.pm-feature__art img { display: block; width: 100%; height: auto; }
.pm-feature__art--pair { display: flex; justify-content: center; gap: 48px; }
.pm-feature__art--pair img { width: 250px; max-width: calc(50% - 24px); border: 2px solid #000; box-sizing: border-box; }
.pm-feature--art-left .pm-feature__art img { max-width: 620px; margin: 0 auto; }
.pm-feature--art-right .pm-feature__art > img { max-width: 560px; margin-left: auto; }

@media only screen and (max-width: 1024px) {
	.pm-feature .pm-feature__title { font-size: 34px; }
	.pm-feature__art--pair { gap: 24px; }
	.pm-feature__art--pair img { max-width: calc(50% - 12px); }
}
/* phones: copy, badges, graphic, all centred, same spacing as the header */
@media only screen and (max-width: 767px) {
	.pm-feature,
	.pm-feature--art-left {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "copy" "art";
		justify-items: center;
		gap: 26px;
		padding: 28px 0 36px;
		text-align: center;
	}
	.pm-feature .pm-feature__title { margin-bottom: 20px; font-size: 28px; line-height: 1.15; }
	.pm-feature .pm-badges { justify-content: center; }
	.pm-feature__art { width: 100%; }
	.pm-feature__art--pair { gap: 14px; }
	.pm-feature__art--pair img { width: calc(50% - 7px); max-width: 220px; }
	.pm-feature--art-left .pm-feature__art img,
	.pm-feature--art-right .pm-feature__art > img { max-width: 420px; margin: 0 auto; }
}

/* ---------- FAQ at the bottom of the homepage ---------- */
.pm-faq { max-width: 820px; margin: 0 auto; padding: 48px 0 56px; }
.pm-faq .pm-faq__title {
	margin: 0 0 32px;
	font-family: Montserrat, sans-serif;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	color: var(--pm-ink);
}
.pm-faq__list { border-top: 1px solid var(--pm-line); }
.pm-faq__item { border-bottom: 1px solid var(--pm-line); }
.pm-faq__item > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 4px;
	cursor: pointer;
	list-style: none;
}
.pm-faq__item > summary::-webkit-details-marker { display: none; }
.pm-faq__item > summary::after {
	content: "";
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	background:
		linear-gradient(var(--pm-ink), var(--pm-ink)) center / 14px 2px no-repeat,
		linear-gradient(var(--pm-ink), var(--pm-ink)) center / 2px 14px no-repeat;
	transition: transform .2s ease;
}
.pm-faq__item[open] > summary::after { background: linear-gradient(var(--pm-ink), var(--pm-ink)) center / 14px 2px no-repeat; }
.pm-faq__item > summary:hover .pm-faq__q { color: #ff4b36; }
.pm-faq__item > summary:focus-visible { outline: 2px solid var(--pm-ink); outline-offset: 2px; border-radius: 4px; }
.pm-faq .pm-faq__q {
	margin: 0;
	font-family: Montserrat, sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	text-transform: none;
	letter-spacing: 0;
	color: var(--pm-ink);
	transition: color .15s ease;
}
.pm-faq .pm-faq__a { margin: -4px 0 0; padding: 0 40px 22px 4px; font-size: 16px; line-height: 1.65; color: var(--pm-muted); }
.pm-faq__more { margin: 26px 0 0; text-align: center; }
.pm-faq__more a { font-family: Montserrat, sans-serif; font-weight: 600; color: var(--pm-ink); text-decoration: underline; text-underline-offset: 3px; }
.pm-faq__more a:hover { color: #ff4b36; }
@media only screen and (max-width: 767px) {
	.pm-faq { padding: 32px 0 40px; }
	.pm-faq .pm-faq__title { margin-bottom: 22px; font-size: 24px; }
	.pm-faq .pm-faq__q { font-size: 16px; }
	.pm-faq__item > summary { padding: 16px 2px; gap: 14px; }
	.pm-faq .pm-faq__a { padding: 0 2px 18px; font-size: 15px; }
}
