/* MeeplePoints: what theme.json can't express. Colours come from the theme.json palette. */

html {
	scroll-behavior: smooth;
	scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

/* Header ------------------------------------------------------------------ */

.mp-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: color-mix(in srgb, var(--wp--preset--color--home-background) 88%, transparent);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid #1c28330f;
}

.admin-bar .mp-header { top: var(--wp-admin--admin-bar--height, 32px); }

.mp-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.mp-wordmark {
	font-family: var(--wp--preset--font-family--audiowide);
	font-size: 1.375rem;
	line-height: 1;
	white-space: nowrap;
}

.mp-wordmark span:first-child { color: var(--wp--preset--color--secondary); }
.mp-wordmark span:last-child { color: var(--wp--preset--color--primary); }
.mp-brand--on-dark .mp-wordmark span:last-child { color: #fff; }
.mp-brand--on-dark img { border-radius: 9px; }

.mp-header .wp-block-navigation a { color: var(--wp--preset--color--ink); text-decoration: none; }
.mp-header .wp-block-navigation a:hover { color: var(--wp--preset--color--primary); }

.mp-header .mp-nav-cta > a {
	background: var(--wp--preset--color--primary);
	color: #fff !important;
	border-radius: 12px;
	padding: 8px 16px;
}

.mp-header .mp-nav-cta > a:hover { background: var(--wp--preset--color--primary-pressed); }

/* The mobile menu overlay in the app's colours. */
.mp-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--home-background);
	padding: 24px 16px;
}

.mp-header .is-menu-open .wp-block-navigation__container { gap: 20px; font-size: 1.25rem; }

/* Language switcher: EN · NL · FR. */
.mp-languages {
	display: flex;
	gap: 2px;
	padding: 3px;
	border-radius: 10px;
	background: var(--wp--preset--color--field);
	font-size: 0.75rem;
	font-weight: 700;
}

.mp-languages a {
	padding: 5px 8px;
	border-radius: 7px;
	color: var(--wp--preset--color--ink-muted);
	text-decoration: none;
	line-height: 1;
}

.mp-languages a:hover { color: var(--wp--preset--color--ink); }

.mp-languages a[aria-current] {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--primary);
	box-shadow: 0 1px 2px #14283c1f;
}

/* Shared ------------------------------------------------------------------ */

/* Section label: 12/700, uppercase, like the app's SettingsSectionLabel. */
.mp-eyebrow {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-text);
	margin-bottom: 8px !important;
}

.mp-games .mp-eyebrow,
.mp-download .mp-eyebrow { color: var(--wp--preset--color--secondary); }

.mp-card {
	background: var(--wp--preset--color--surface);
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 1px 2px #14283c0d, 0 8px 24px #14283c0a;
}

.mp-card h3 { margin-top: 16px; }
.mp-card p { margin-top: 8px; }

.mp-icon {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: var(--wp--preset--color--gold-tint);
	color: var(--wp--preset--color--ink);
}

.mp-icon svg { width: 24px; height: 24px; }

/* "And much more": the smaller features as chips under the cards. */
.mp-more h3 { margin: 0; font-size: 1rem; }

.mp-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mp-chips li {
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--wp--preset--color--gold-tint);
	color: var(--wp--preset--color--ink);
	font-size: 0.875rem;
	font-weight: 600;
}

/* A screenshot in a phone outline. */
.mp-phone {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1080 / 2400;
	border-radius: 34px;
	border: 7px solid var(--wp--preset--color--ink);
	background: var(--wp--preset--color--ink);
	box-shadow: 0 24px 48px #14283c33, 0 4px 12px #14283c1f;
}

/* Store buttons ------------------------------------------------------------ */

.mp-stores {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.mp-download .mp-stores { justify-content: center; }

.mp-store {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 54px;
	padding: 8px 20px 8px 16px;
	border-radius: 14px;
	background: var(--wp--preset--color--ink);
	color: #fff;
	text-decoration: none;
	line-height: 1.15;
	transition: transform 0.15s ease, background-color 0.15s ease;
}

a.mp-store:hover { background: #000; color: #fff; transform: translateY(-1px); }
.mp-store small { display: block; font-size: 0.6875rem; opacity: 0.8; }
.mp-store strong { display: block; font-size: 1.0625rem; font-weight: 700; }
.mp-store__icon { width: 24px; height: 24px; flex: none; }

.mp-store.is-soon {
	background: transparent;
	color: var(--wp--preset--color--ink-muted);
	box-shadow: inset 0 0 0 1.5px #5b677466;
	cursor: default;
}

.mp-download .mp-store { background: #fff; color: var(--wp--preset--color--ink); }
.mp-download a.mp-store:hover { background: var(--wp--preset--color--gold-tint); color: var(--wp--preset--color--ink); }
.mp-download .mp-store.is-soon { background: transparent; color: #c9d6e2; box-shadow: inset 0 0 0 1.5px #c9d6e266; }

/* Hero --------------------------------------------------------------------- */

/* The main menu's background: faint meeples, faded out behind the text. */
.mp-hero {
	background-color: var(--wp--preset--color--home-background);
	background-image:
		radial-gradient(ellipse 60% 70% at 30% 45%, #eceff2f0 0%, #eceff200 100%),
		url("../images/meeple-pattern.svg");
	background-size: auto, 150px 160px;
	overflow: hidden;
}

.mp-hero h1 { margin-top: 0; }
.mp-lead { color: var(--wp--preset--color--ink-muted); max-width: 34em; }
.mp-meta { color: var(--wp--preset--color--ink-muted); margin-top: 16px !important; }

.mp-hero-phones {
	position: relative;
	max-width: 420px;
	margin-inline: auto;
	aspect-ratio: 1 / 1.45;
}

.mp-hero-phones .mp-phone { position: absolute; width: 58%; }
.mp-phone--back { left: 0; top: 0; transform: rotate(-6deg); }
.mp-phone--front { right: 0; top: 12%; transform: rotate(4deg); }

@media (max-width: 781px) {
	.mp-hero-phones { max-width: 340px; margin-top: 16px; }
}

/* Games -------------------------------------------------------------------- */

.mp-game {
	background: var(--wp--preset--color--surface);
	border-radius: 14px;
	padding: 16px;
	gap: 14px !important;
}

.mp-game h3 { font-size: 1rem; margin: 0; }
.mp-game p { margin: 0; line-height: 1.5; }

.mp-game--soon {
	background: transparent;
	box-shadow: inset 0 0 0 1.5px #c9d6e266;
}

.mp-game--soon a { color: #fff; font-weight: 600; white-space: nowrap; }

.mp-game--soon .mp-monogram { background: var(--wp--preset--color--secondary); font-size: 1.25rem; }

/* The game picker's monogram tile. */
.mp-monogram {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--wp--preset--color--gold-tint);
	color: var(--wp--preset--color--ink);
	font-weight: 700;
	font-size: 0.9375rem;
}

/* Highlights --------------------------------------------------------------- */

.mp-phones { max-width: 250px; margin-inline: auto; }
.mp-phones--pair { display: flex; gap: 16px; max-width: 440px; }
.mp-phones--pair .mp-phone { flex: 1 1 0; min-width: 0; }
.mp-phones--pair .mp-phone:last-child { margin-top: 40px; }

@media (max-width: 781px) {
	.mp-highlight.is-reversed { flex-direction: column-reverse; }
}

/* FAQ ---------------------------------------------------------------------- */

.mp-faq summary {
	font-weight: 600;
	cursor: pointer;
	list-style-position: outside;
}

.mp-faq details p { margin-top: 8px; }

/* Contact ------------------------------------------------------------------ */

.mp-request {
	display: grid;
	gap: 16px;
	margin-top: 24px;
	padding: 24px;
	border-radius: 16px;
	background: var(--wp--preset--color--surface);
	box-shadow: 0 1px 2px #14283c0d, 0 8px 24px #14283c0a;
}

/* The app's segmented control. */
.mp-segments {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 4px;
	border: 0;
	border-radius: 12px;
	background: var(--wp--preset--color--field);
}

.mp-segments label { flex: 1 1 auto; }
.mp-segments input { position: absolute; opacity: 0; pointer-events: none; }

.mp-segments span {
	display: block;
	padding: 10px 12px;
	border-radius: 9px;
	text-align: center;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wp--preset--color--ink-muted);
	cursor: pointer;
}

.mp-segments input:checked + span {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--primary);
	box-shadow: 0 1px 3px #14283c24;
}

.mp-segments input:focus-visible + span { outline: 2px solid var(--wp--preset--color--primary); }

.mp-field { display: grid; gap: 6px; margin: 0; }
.mp-field label { font-weight: 600; font-size: 0.9375rem; }
.mp-field label span { font-weight: 400; color: var(--wp--preset--color--ink-muted); }
.mp-field small { color: var(--wp--preset--color--ink-muted); font-size: 0.8125rem; }

.mp-field input,
.mp-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1.5px solid transparent;
	border-radius: 12px;
	background: var(--wp--preset--color--field);
	color: var(--wp--preset--color--ink);
	font: inherit;
}

.mp-field input:focus,
.mp-field textarea:focus { outline: none; border-color: var(--wp--preset--color--primary); background: #fff; }

.mp-request:not([data-type="game"]) .mp-field--game,
.mp-request:not([data-type="game"]) .mp-optional { display: none; }

.mp-request button { justify-self: start; border: 0; cursor: pointer; }

/* Only bots fill this in. */
.mp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.mp-notice {
	margin-top: 24px !important;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--wp--preset--color--success-tint);
	color: var(--wp--preset--color--success);
	font-weight: 600;
}

.mp-notice.is-error { background: var(--wp--preset--color--gold-tint); color: var(--wp--preset--color--ink); }

/* Download ----------------------------------------------------------------- */

.mp-download__icon {
	display: block;
	margin: 0 auto 8px;
	border-radius: 22px;
	box-shadow: 0 8px 24px #0003;
}

/* Footer ------------------------------------------------------------------- */

.mp-footer a { color: #fff; }
.mp-footer p { margin: 0; }
.mp-disclaimer { opacity: 0.7; max-width: 46em; }
