/* motionzax — static pages: hero, stats, steps, changelog, contact and the
 * legal reading layout. Inherits the reader variables from reading.css.
 */

/* ------------------------------------------------------------------ page hero */

.mz-phero {
	position: relative;
	margin: 0 0 44px;
	padding: 40px 44px 46px;
	border-radius: 26px;
	background: linear-gradient(155deg, #101218 0%, #191c26 55%, #0d0f14 100%);
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}

.mz-phero__glow {
	position: absolute;
	top: -120px;
	right: -90px;
	width: 340px;
	height: 340px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 201, 51, 0.34), transparent 66%);
	z-index: -1;
	animation: mzPheroGlow 9s ease-in-out infinite;
}

@keyframes mzPheroGlow {
	0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.9; }
	50%      { transform: translate3d(-26px, 22px, 0) scale(1.16); opacity: 1; }
}

.mz-phero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 100% 34px;
	opacity: 0.5;
	z-index: -1;
	pointer-events: none;
}

.mz-phero__kicker {
	display: inline-block;
	padding: 6px 13px;
	border-radius: 999px;
	background: rgba(255, 201, 51, 0.16);
	color: var(--yellow, #ffc933);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.mz-phero__title {
	margin: 18px 0 0;
	font-family: var(--font-display);
	font-size: clamp(27px, 3.4vw, 42px);
	line-height: 1.14;
	font-weight: 800;
	letter-spacing: -0.025em;
	color: #fff;
	max-width: 20ch;
}

.mz-phero__text {
	margin: 16px 0 0;
	max-width: 62ch;
	font-size: 17px;
	line-height: 1.68;
	color: #b9bcc6;
}

.mz-phero__btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-top: 26px;
	height: 48px;
	padding: 0 26px;
	border-radius: 999px;
	background: var(--yellow, #ffc933);
	color: #14151a;
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.32s ease;
}

.mz-phero__btn svg { transition: transform 0.3s ease; }

.mz-phero__btn:hover {
	transform: translate3d(0, -3px, 0);
	box-shadow: 0 22px 44px -22px rgba(255, 201, 51, 0.75);
}

.mz-phero__btn:hover svg { transform: translate3d(4px, 0, 0); }

/* ---------------------------------------------------------------------- stats */

.mz-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin: 0 0 46px;
}

.mz-stat {
	padding: 22px 18px;
	border: 1px solid var(--read-rule, #e7e7ea);
	border-radius: 16px;
	background: var(--read-card, #fcfcfd);
	text-align: center;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.mz-stat:hover {
	transform: translate3d(0, -4px, 0);
	box-shadow: 0 26px 54px -40px rgba(10, 10, 25, 0.6);
}

.mz-stat__num {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--read-fg, #0f0f16);
	font-variant-numeric: tabular-nums;
}

.mz-stat__label {
	display: block;
	margin-top: 7px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--read-muted, #6a6a76);
}

/* ---------------------------------------------------------------------- steps */

.mz-steps { margin: 46px 0; }

.mz-steps__title {
	margin: 0 0 20px;
	font-family: var(--font-display);
	font-size: clamp(22px, 2.2vw, 28px);
	line-height: 1.22;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.mz-steps__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 14px;
}

.mz-step {
	position: relative;
	padding: 22px 20px;
	border: 1px solid var(--read-rule, #e7e7ea);
	border-radius: 16px;
	background: var(--read-card, #fcfcfd);
	overflow: hidden;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease;
}

.mz-step::before {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 3px;
	background: var(--yellow, #ffc933);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.mz-step:hover { transform: translate3d(0, -4px, 0); border-color: #d9d9de; }
.mz-step:hover::before { transform: scaleX(1); }

.mz-step__num {
	font-family: var(--font-display);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	color: var(--read-muted, #9a9aa4);
}

.mz-step__title {
	margin: 9px 0 0;
	font-family: var(--font-display);
	font-size: 17px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--read-fg, #14141a);
}

.mz-step__text {
	margin: 8px 0 0;
	font-size: 14.5px;
	line-height: 1.62;
	color: var(--read-muted, #5c5c68);
}

/* ------------------------------------------------------------------ changelog */

.mz-log {
	list-style: none;
	margin: 30px 0 46px;
	padding: 0;
	border: 0;
	counter-reset: none;
}

.mz-log__item {
	position: relative;
	display: grid;
	grid-template-columns: 148px minmax(0, 1fr);
	gap: 0 26px;
	padding: 0 0 14px 26px;
	border-left: 2px solid var(--read-rule, #e9e9ec);
}

.mz-log__item:last-child {
	padding-bottom: 0;
	border-left-color: transparent;
}

.mz-log__dot {
	position: absolute;
	left: -7px;
	top: 7px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--yellow, #ffc933);
	box-shadow: 0 0 0 4px var(--read-bg, #fff), 0 0 0 6px rgba(255, 201, 51, 0.22);
}

.mz-log__item:first-child .mz-log__dot {
	animation: mzDotPulse 2.6s ease-in-out infinite;
}

@keyframes mzDotPulse {
	0%, 100% { box-shadow: 0 0 0 4px var(--read-bg, #fff), 0 0 0 6px rgba(255, 201, 51, 0.22); }
	50%      { box-shadow: 0 0 0 4px var(--read-bg, #fff), 0 0 0 12px rgba(255, 201, 51, 0.05); }
}

.mz-log__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding-top: 3px;
}

.mz-log__date {
	font-family: var(--font-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--read-muted, #8a8a94);
	white-space: nowrap;
}

.mz-log__tag {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 10px;
	border-radius: 999px;
	background: rgba(255, 201, 51, 0.22);
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #6b5410;
}

.mz-log__body {
	padding: 0 0 26px;
}

.mz-log__item:last-child .mz-log__body {
	padding-bottom: 0;
}

.mz-log__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 19px;
	line-height: 1.34;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--read-fg, #14141a);
}

.mz-log__text {
	margin: 8px 0 0;
	max-width: 62ch;
	font-size: 15px;
	line-height: 1.72;
	color: var(--read-muted, #5c5c68);
}

@media (max-width: 700px) {
	.mz-log__item {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
		padding-left: 22px;
	}

	.mz-log__meta {
		flex-direction: row;
		align-items: center;
	}

	.mz-log__body { padding-bottom: 22px; }
	.mz-log__title { font-size: 17.5px; }
}

/* -------------------------------------------------------------- latest posts */

.mz-latest { margin: 46px 0; }

.mz-latest__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 14px;
}

.mz-latest__card {
	display: grid;
	gap: 8px;
	padding: 20px;
	border: 1px solid var(--read-rule, #e7e7ea);
	border-radius: 16px;
	background: var(--read-card, #fcfcfd);
	text-decoration: none;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.mz-latest__card:hover {
	transform: translate3d(0, -4px, 0);
	box-shadow: 0 26px 54px -40px rgba(10, 10, 25, 0.6);
}

.mz-latest__date {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--read-muted, #8a8a94);
}

.mz-latest__title {
	font-family: var(--font-display);
	font-size: 16px;
	line-height: 1.35;
	font-weight: 700;
	color: var(--read-fg, #14141a);
}

/* -------------------------------------------------------------------- contact */

.mz-contact { margin: 0 0 30px; }

.mz-contact__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
	gap: 14px;
}

.mz-contact__card {
	padding: 22px 20px;
	border: 1px solid var(--read-rule, #e7e7ea);
	border-radius: 16px;
	background: var(--read-card, #fcfcfd);
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.mz-contact__card:hover {
	transform: translate3d(0, -4px, 0);
	box-shadow: 0 26px 54px -40px rgba(10, 10, 25, 0.6);
}

.mz-contact__ico {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: rgba(255, 201, 51, 0.18);
	font-size: 18px;
}

.mz-contact__card h4 {
	margin: 13px 0 6px;
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 700;
	color: var(--read-fg, #14141a);
}

.mz-contact__card p,
.mz-contact__card a {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.62;
	color: var(--read-muted, #5c5c68);
}

.mz-contact__card a { color: #0a0a0a; font-weight: 600; word-break: break-word; }
.mz-contact__card a + p { margin-top: 8px; }

.mz-contact__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 16px;
}

.mz-contact__social {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 16px;
	border: 1px solid var(--read-rule, #e7e7ea);
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--read-fg, #33333c);
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.mz-contact__social:hover {
	background: #0a0a0a;
	border-color: #0a0a0a;
	color: #fff;
	transform: translate3d(0, -2px, 0);
}

.mz-contact__ok,
.mz-contact__err {
	margin-top: 20px;
	padding: 15px 18px;
	border-radius: 14px;
	font-size: 15px;
	line-height: 1.6;
}

.mz-contact__ok {
	border: 1px solid rgba(46, 160, 96, 0.4);
	background: rgba(46, 160, 96, 0.09);
	color: #1d6b40;
}

.mz-contact__err {
	border: 1px solid rgba(224, 64, 95, 0.4);
	background: rgba(224, 64, 95, 0.08);
	color: #96223a;
}

/* contact form reuses the comment-form field styling */
.mz-cform {
	position: relative;
	margin-top: 26px;
	padding: 30px;
	border: 1px solid var(--read-rule, #e7e7ea);
	border-radius: 22px;
	background: var(--read-card, #fcfcfd);
	overflow: hidden;
}

.mz-cform::after {
	content: "";
	position: absolute;
	top: -80px;
	left: -60px;
	width: 230px;
	height: 230px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 201, 51, 0.3), transparent 68%);
	pointer-events: none;
	animation: mzPheroGlow 8s ease-in-out infinite;
}

.mz-cform__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(20px, 2vw, 25px);
	font-weight: 800;
	letter-spacing: -0.015em;
	color: var(--read-fg, #14141a);
}

.mz-cform__note {
	margin: 9px 0 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--read-muted, #6a6a76);
}

.mz-cform__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 22px;
}

.mz-cform__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}


/* topic picker: fully standalone, never inherits the floating-label rules */
.mz-select {
	position: relative;
	display: block;
	margin: 0;
}

.mz-select__lab {
	position: static !important;
	display: block;
	margin: 0 0 8px 2px;
	transform: none !important;
	font-family: var(--font-sans);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--read-muted, #8a8a94);
	pointer-events: auto;
}

.mz-select__box {
	position: relative;
	display: block;
}

.mz-select select {
	display: block;
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 46px 0 16px;
	border: 1px solid var(--read-rule, #e2e2e7);
	border-radius: 13px;
	background-color: #fff;
	font-family: var(--font-sans);
	font-size: 15px;
	line-height: 52px;
	color: var(--read-fg, #1c1c22);
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%236a6a76' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	transition: border-color 0.22s ease, box-shadow 0.22s ease;
	cursor: pointer;
}

.mz-select select:focus {
	outline: 0;
	border-color: #0a0a0a;
	box-shadow: 0 0 0 4px rgba(255, 201, 51, 0.28);
}

body.mz-read-dark .mz-select select {
	background-color: #0f1116;
	color: #e9eaee;
	border-color: #262932;
}


/* ----------------------------------------------------------- legal documents */

body.mz-legal .single__content {
	max-width: 74ch;
}

.mz-legal__meta {
	display: inline-block;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--read-card, #f4f4f6);
	border: 1px solid var(--read-rule, #e7e7ea);
	font-size: 12.5px;
	font-weight: 600;
	color: var(--read-muted, #6a6a76);
}

body.mz-legal .single__content h2 {
	margin-top: 2em;
	padding-top: 1em;
	border-top: 1px solid var(--read-rule, #ececed);
	font-size: clamp(20px, 1.9vw, 24px);
}

body.mz-legal .single__content h2:first-of-type { border-top: 0; padding-top: 0; }

body.mz-legal .single__content code {
	padding: 2px 6px;
	border-radius: 6px;
	background: var(--read-card, #f1f1f4);
	font-size: 0.88em;
}

/* --------------------------------------------------------------- breakpoints */

@media (max-width: 900px) {
	.mz-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mz-phero { padding: 30px 24px 34px; border-radius: 20px; }
	.mz-phero__title { max-width: none; }
}

@media (max-width: 767px) {
	.mz-cform { padding: 22px 18px; border-radius: 18px; }
	.mz-cform__grid { grid-template-columns: 1fr; }
	.mz-log { padding-left: 22px; }
	.mz-log__dot { left: -29px; width: 12px; height: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.mz-phero__glow,
	.mz-cform::after,
	.mz-log__item:first-child .mz-log__dot { animation: none; }

	.mz-stat:hover,
	.mz-step:hover,
	.mz-contact__card:hover,
	.mz-latest__card:hover,
	.mz-phero__btn:hover { transform: none; }
}

/* the "Last updated" pill must never get the article drop cap */
body.mz-legal .single__content > p.mz-legal__meta:first-of-type::first-letter,
.mz-legal__meta::first-letter {
	float: none;
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	font-weight: inherit;
	color: inherit;
	background: none;
}

body.mz-legal .single__content > p.mz-legal__meta {
	margin-bottom: 26px;
}
