/**
 * The launch page — Figma "Frame 127", MMO Website (Copy).
 *
 * Tokens first, then one block per section in the order the page renders. The
 * plugin's own form markup is restyled at the bottom, by its own class names,
 * so the form can change without this file guessing at its structure.
 */

:root {
	--mmo-green: #0eb454;
	--mmo-green-soft: #cae8d7;
	--mmo-green-pale: #ebfbee;
	--mmo-ink: #18181b;
	--mmo-body: #585858;
	--mmo-muted: #737373;
	--mmo-panel: #e5ebe6;
	--mmo-grey: #f4f4f5;
	--mmo-cream: #faf9f6;
	--mmo-line: #62674c;
	--mmo-hair: #e5e7eb;
	--mmo-forest: #2c3a2d;
	--mmo-night: #18181b;

	--mmo-display: "Francois One", "Arial Narrow", Impact, sans-serif;
	--mmo-text: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

	--mmo-gutter: clamp(20px, 5.5vw, 80px);
	--mmo-radius: 16px;
}

/* Reset enough of the theme's reach to be predictable, and no more. */
body.mmo-launch {
	margin: 0;
	background: #fff;
	color: var(--mmo-body);
	font-family: var(--mmo-text);
	/* The theme asks for 300, which neither face is loaded in. */
	font-weight: 400;
	font-size: 18px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

body.mmo-launch * {
	box-sizing: border-box;
}

body.mmo-launch img {
	max-width: 100%;
}

.mmo-launch p {
	margin: 0;
}

/* Several layout rules below set display, which would out-rank the attribute. */
.mmo-launch [hidden] {
	display: none !important;
}

.mmo-launch section {
	padding: var(--mmo-gutter);
}

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

.mmo-eyebrow {
	font-family: var(--mmo-display);
	font-size: 16px;
	line-height: normal;
	color: var(--mmo-green);
	margin: 0;
}

.mmo-h2 {
	font-family: var(--mmo-display);
	font-weight: 400;
	/* Every section heading is 32px; only the hero's title is bigger. */
	font-size: 32px;
	line-height: normal;
	color: var(--mmo-ink);
	margin: 0;
}

/* On the dark band. Defined after the base colours so it actually wins. */
.mmo-eyebrow.mmo-eyebrow--light,
.mmo-h2.mmo-h2--light {
	color: #fff;
}

.mmo-prose p + p {
	margin-top: 20px;
}

.mmo-stack-4,
.mmo-stack-8,
.mmo-stack-12,
.mmo-stack-16,
.mmo-stack-24 {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.mmo-stack-4 { gap: 4px; }
.mmo-stack-8 { gap: 8px; }
.mmo-stack-12 { gap: 12px; }
.mmo-stack-16 { gap: 16px; }
.mmo-stack-24 { gap: 24px; }

/* Buttons ----------------------------------------------------------------- */

.mmo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 14px 40px;
	border: 0;
	border-radius: 40px;
	background: var(--mmo-green);
	color: #fff;
	font-family: var(--mmo-text);
	font-weight: 700;
	font-size: 18px;
	line-height: normal;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 120ms ease, transform 120ms ease;
}

.mmo-btn:hover,
.mmo-btn:focus-visible {
	background: #0c9e49;
	color: #fff;
}

.mmo-btn:active {
	transform: translateY(1px);
}

.mmo-btn--full {
	width: 100%;
	box-shadow: 0 8px 10px rgba(14, 180, 84, 0.2);
}

.mmo-btn--outline {
	background: transparent;
	border: 1px solid var(--mmo-ink);
	color: var(--mmo-ink);
}

.mmo-btn--outline:hover,
.mmo-btn--outline:focus-visible {
	background: var(--mmo-ink);
	color: #fff;
}

.mmo-btn--ghost {
	background: transparent;
	color: var(--mmo-body);
	padding: 14px 20px;
	font-weight: 500;
	box-shadow: none;
}

.mmo-btn--ghost:hover,
.mmo-btn--ghost:focus-visible {
	background: transparent;
	color: var(--mmo-ink);
}

/* Cards ------------------------------------------------------------------- */

.mmo-card {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 32px;
	border-radius: var(--mmo-radius);
	background: var(--mmo-panel);
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.04));
}

.mmo-card--row {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.mmo-card--outlined {
	border: 1px solid var(--mmo-line);
	gap: 24px;
}

.mmo-card__eyebrow {
	font-family: var(--mmo-display);
	font-size: 16px;
	letter-spacing: 1px;
	color: var(--mmo-green);
}

.mmo-card__title,
.mmo-how__title {
	font-family: var(--mmo-display);
	font-size: 18px;
	line-height: normal;
	color: var(--mmo-ink);
}

.mmo-how__title {
	font-size: 16px;
}

.mmo-card__body {
	font-size: 18px;
	line-height: 1.4;
	color: var(--mmo-body);
}

.mmo-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 20px;
	background: var(--mmo-green-soft);
	color: var(--mmo-green);
	font-family: var(--mmo-display);
	font-size: 24px;
}

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

.mmo-hero {
	display: flex;
	flex-direction: column;
	gap: 40px;
	background: #fff;
}

/*
 * Title and date read as one block, so they sit in their own wrapper rather
 * than taking the hero's 40px gap.
 *
 * The gap tracks the title's own size, because the space the designer drew is
 * proportional: measured off the mockup, the whitespace between the two is
 * 0.625x the title's glyph height at every size. A fixed gap would read tight
 * on desktop and loose on a phone.
 */
.mmo-hero__head {
	display: flex;
	flex-direction: column;
	gap: clamp(11px, 1.8vw, 26px);
}

.mmo-hero__title {
	margin: 0;
	font-family: var(--mmo-display);
	font-weight: 400;
	font-size: clamp(44px, 7.7vw, 111px);
	line-height: 1.1;
	letter-spacing: -1px;
	color: var(--mmo-ink);
	text-align: center;
	overflow-wrap: break-word;
}

/*
 * The crawl date, under the title, in the brand green.
 *
 * The designer asked for it at the same size as the lede ("One Day. A Lot of
 * Stops."), so it shares that rule outright rather than repeating the values —
 * the two cannot drift apart if the lede is ever retuned. Only the colour and
 * the centring are its own. See .mmo-hero__lede below for the shared type.
 */
.mmo-hero__date {
	color: var(--mmo-green);
	text-align: center;
}

.mmo-hero__body {
	display: flex;
	gap: 80px;
	align-items: center;
}

.mmo-hero__text {
	display: flex;
	flex: 1 0 0;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
	gap: 32px;
}

/* The shared display type for the lede and the hero date — see .mmo-hero__date. */
.mmo-hero__lede,
.mmo-hero__date {
	font-family: var(--mmo-display);
	font-weight: 400;
	font-size: clamp(32px, 3.9vw, 56px);
	line-height: 1.1;
	letter-spacing: -1px;
}

.mmo-hero__lede {
	color: var(--mmo-ink);
}

.mmo-hero__frame {
	/*
	 * A little over half the screen, per the designer. Height follows the width
	 * so the photo does not turn into a letterbox on a wide desktop; the image
	 * is cropped to fit, so a replacement photo of any shape still fills it.
	 */
	flex: 0 0 52vw;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border: 1px solid var(--mmo-line);
	border-radius: var(--mmo-radius);
	background: var(--mmo-cream);
	box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.05);
}

.mmo-hero__frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Full-width photo -------------------------------------------------------- */

/* Edge to edge, between the pricing and How the Crawl Works. */
.mmo-band {
	margin: 0;
	height: clamp(280px, 42vw, 680px);
	overflow: hidden;
	background: var(--mmo-forest);
}

.mmo-band img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 45%;
}

/* Details ----------------------------------------------------------------- */

.mmo-details {
	display: flex;
	flex-direction: column;
	gap: 56px;
	background: var(--mmo-grey);
}

.mmo-details__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

/* Pricing ----------------------------------------------------------------- */

.mmo-pricing {
	display: flex;
	flex-direction: column;
	gap: 64px;
	background: #fff;
	border-bottom: 1px solid var(--mmo-line);
}

.mmo-pricing__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
	width: 100%;
}

.mmo-pricing__intro {
	flex: 0 1 480px;
	font-size: 16px;
	line-height: 1.6;
}

.mmo-pricing__body {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

.mmo-pricing__tiers {
	display: flex;
	flex: 0 1 560px;
	flex-direction: column;
	gap: 24px;
}

.mmo-tier__name {
	font-family: var(--mmo-display);
	font-size: 20px;
	line-height: normal;
	color: var(--mmo-ink);
}

.mmo-tier__note {
	font-size: 18px;
	line-height: normal;
	color: var(--mmo-body);
}

/* Whichever tier is running today. */
.mmo-card--row.is-current {
	outline: 2px solid var(--mmo-green);
	outline-offset: -2px;
}

.mmo-tier__flag {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 10px;
	border-radius: 20px;
	background: var(--mmo-green);
	color: #fff;
	font-family: var(--mmo-text);
	font-weight: 700;
	font-size: 12px;
	vertical-align: middle;
}

.mmo-tier__price {
	font-family: var(--mmo-display);
	font-size: 32px;
	line-height: normal;
	color: var(--mmo-green);
	white-space: nowrap;
}

.mmo-includes {
	flex: 1 0 0;
	min-width: 0;
	gap: 32px;
	justify-content: center;
	padding: 40px;
}

.mmo-includes__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mmo-includes__list li {
	display: flex;
	gap: 12px;
	align-items: baseline;
	color: var(--mmo-body);
	font-size: 18px;
	line-height: normal;
}

.mmo-includes__plus {
	font-family: var(--mmo-display);
	font-size: 14px;
	color: var(--mmo-green);
}

.mmo-includes__close {
	font-weight: 700;
	font-size: 20px;
	color: var(--mmo-body);
}

/* How it works ------------------------------------------------------------ */

.mmo-how {
	display: flex;
	flex-direction: column;
	gap: 64px;
	background: var(--mmo-forest);
	border-bottom: 1px solid var(--mmo-line);
}

.mmo-how__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.mmo-how__grid .mmo-card__body {
	line-height: 1.5;
}

/* Crawl schedule ---------------------------------------------------------- */

.mmo-schedule {
	display: flex;
	flex-direction: column;
	gap: 64px;
	background: var(--mmo-grey);
	padding-left: clamp(20px, 8.3vw, 120px);
	padding-right: clamp(20px, 8.3vw, 120px);
}

.mmo-schedule__title {
	margin: 0;
	font-family: var(--mmo-display);
	font-weight: 400;
	font-size: 32px;
	line-height: 1.1;
	letter-spacing: -1px;
	color: var(--mmo-ink);
}

.mmo-schedule__intro {
	max-width: 397px;
	line-height: 1.6;
}

.mmo-schedule__grid {
	overflow: hidden;
	border-radius: var(--mmo-radius);
	background: #fff;
	box-shadow: 0 4px 16px -6px rgba(0, 0, 0, 0.04);
}

.mmo-schedule__row {
	display: flex;
	align-items: stretch;
}

.mmo-schedule__time {
	display: flex;
	flex: 0 0 240px;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px;
	background: var(--mmo-panel);
	font-family: var(--mmo-display);
	font-size: 24px;
	color: var(--mmo-ink);
}

.mmo-schedule__cells {
	display: flex;
	flex: 1 0 0;
	min-width: 0;
}

.mmo-schedule__cell {
	display: flex;
	flex: 1 0 0;
	min-width: 0;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
}

.mmo-schedule__label {
	font-family: var(--mmo-display);
	font-size: 13px;
	text-transform: uppercase;
	color: var(--mmo-green);
}

.mmo-schedule__name {
	font-weight: 700;
	font-size: 24px;
	color: var(--mmo-body);
}

.mmo-schedule__body {
	line-height: 1.6;
}

/* Registration ------------------------------------------------------------ */

/* Full bleed: the split panel runs edge to edge, so it beats the section gutter. */
.mmo-launch .mmo-register {
	display: flex;
	align-items: stretch;
	padding: 0;
	background: #fff;
}

.mmo-register__panel {
	position: relative;
	display: flex;
	flex: 1 1 50%;
	align-items: center;
	overflow: hidden;
	background: var(--mmo-night);
	box-shadow: 8px 0 24px -8px rgba(0, 0, 0, 0.15);
}

/*
 * Figma "image 13": one oversized shamrock, bottom-right, running off both
 * edges of the panel. Positioned in percentages of the panel rather than
 * pixels so the crop holds its proportions as the column narrows — 568 of a
 * 720-wide panel, from 37% across and 43% down.
 */
.mmo-register__shamrock {
	position: absolute;
	right: -8%;
	top: 50%;
	width: 55%;
	max-width: none;
	opacity: 0.3;
	pointer-events: none;
}

.mmo-register__panel-body {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 35px;
	width: 100%;
	max-width: calc(480px + 2 * clamp(24px, 8vw, 120px));
	padding: clamp(40px, 6vw, 80px) clamp(24px, 8vw, 120px);
}

.mmo-register__brand,
.mmo-register__time {
	display: flex;
	align-items: center;
	gap: 12px;
}

.mmo-register__brand {
	font-family: var(--mmo-display);
	font-size: 22px;
	color: #fff;
}

.mmo-register__brand-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: var(--mmo-green);
	flex: 0 0 40px;
}

.mmo-register__headline {
	font-family: var(--mmo-display);
	font-size: clamp(32px, 3vw, 44px);
	line-height: 1.15;
	color: #fff;
}

.mmo-register__blurb {
	color: #f5f5f5;
	line-height: 1.6;
}

.mmo-register__time {
	gap: 10px;
	font-family: var(--mmo-display);
	font-size: 16px;
	color: var(--mmo-green);
}

.mmo-register__time-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 12px;
	background: var(--mmo-green);
	flex: 0 0 24px;
}

.mmo-register__form {
	flex: 1 1 50%;
	padding: clamp(24px, 3.4vw, 48px) clamp(24px, 4.4vw, 64px);
	border-left: 1px solid var(--mmo-line);
	background: #fff;
}

/*
 * The design fixes this band at 830px (Figma 141:2940) rather than letting it
 * grow with the step. Holding that height keeps the page from lurching as
 * somebody moves between steps — step four carries a billing address and a card
 * and is far taller than step one — so the column scrolls inside the band
 * instead. Below the stacking breakpoint the height goes back to the content's.
 */
@media (min-width: 821px) {
	.mmo-launch .mmo-register {
		height: 830px;
	}

	.mmo-register__form {
		overflow-y: auto;
	}

	/*
	 * Sized and placed off the 830px band, not the panel's width. The panel
	 * keeps getting wider on a large desktop while the band's height does not,
	 * so a width-relative shamrock grew past the space it had and fell out of
	 * the bottom. These are the design's own numbers — 568 square, 355 down,
	 * 114 past the right edge — which now hold at any screen width.
	 */
	.mmo-register__shamrock {
		top: 355px;
		right: -114px;
		width: min(568px, 110%);
	}
}

.mmo-register__empty {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* The wizard -------------------------------------------------------------- */

.mmo-wizard {
	display: flex;
	flex-direction: column;
	gap: 32px;
	max-width: 560px;
}

.mmo-steps {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mmo-steps__item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.mmo-steps__item:not(:last-child) {
	flex: 1 0 0;
}

.mmo-steps__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	border-radius: 20px;
	background: var(--mmo-hair);
	color: #737373;
	font-family: var(--mmo-display);
	font-size: 18px;
}

.mmo-steps__item.is-current .mmo-steps__badge {
	background: var(--mmo-green);
	color: #fff;
}

.mmo-steps__item.is-done .mmo-steps__badge {
	background: var(--mmo-panel);
	color: var(--mmo-muted);
}

.mmo-steps__connector {
	flex: 1 0 24px;
	height: 3px;
	border-radius: 2px;
	background: var(--mmo-hair);
	margin-right: 12px;
}

/* The bar leading into the current step and every step before it. */
.mmo-steps__item.is-done .mmo-steps__connector {
	background: var(--mmo-green);
}

.mmo-form__head {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mmo-form__title {
	font-family: var(--mmo-display);
	font-size: 28px;
	line-height: 1.2;
	color: var(--mmo-ink);
}

.mmo-form__sub {
	font-size: 16px;
	line-height: 1.5;
	color: var(--mmo-body);
}

.mmo-pane {
	display: none;
	flex-direction: column;
	gap: 16px;
}

/*
 * The blocks this plugin injects are stacks in their own right. Without this
 * their contents sat flush against each other, which read as cramped next to
 * the plugin's own sections.
 */
.mmo-extras__block {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Things that want more room than the stack's own rhythm gives them. */
.mmo-extras__block > .mmo-check,
.mmo-checks,
.mmo-chipset,
.mmo-fee {
	margin-block: 8px;
}

.mmo-pane.is-current {
	display: flex;
}

.mmo-field,
.lily-er-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1 0 0;
	min-width: 0;
	margin: 0;
	border: 0;
	padding: 0;
}

.mmo-field-row,
.lily-er-field-row {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.mmo-field > label,
.mmo-field > legend,
.lily-er-field > label {
	font-family: var(--mmo-display);
	font-weight: 400;
	font-size: 15px;
	line-height: normal;
	color: var(--mmo-ink);
	padding: 0;
}

.mmo-req,
.lily-er-required {
	color: var(--mmo-green);
}

.mmo-field input[type="text"],
.mmo-field input[type="tel"],
.mmo-field input[type="email"],
.mmo-field input[type="number"],
.mmo-field input[type="date"],
.mmo-field select,
.lily-er-field input[type="text"],
.lily-er-field input[type="tel"],
.lily-er-field input[type="email"],
.lily-er-field select {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--mmo-hair);
	border-radius: 8px;
	background: #fff;
	color: var(--mmo-body);
	font-family: var(--mmo-text);
	font-size: 15px;
	line-height: normal;
}

.mmo-field input::placeholder,
.lily-er-field input::placeholder {
	color: var(--mmo-muted);
}

/* A native date input sizes to its content unless told otherwise. */
.mmo-field input[type="date"] {
	appearance: none;
}

.mmo-field input:focus,
.mmo-field select:focus,
.lily-er-field input:focus,
.lily-er-field select:focus {
	outline: 2px solid var(--mmo-green);
	outline-offset: 1px;
	border-color: var(--mmo-green);
}

.mmo-field select,
.lily-er-field select {
	appearance: none;
	background-image: url("img/chevron-down.svg");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 44px;
}

/* Checkboxes */

.mmo-checks {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mmo-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	line-height: 1.4;
	color: var(--mmo-body);
	cursor: pointer;
}

.mmo-check input {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	margin: 1px 0 0;
	accent-color: var(--mmo-green);
}

/* Chips */

.mmo-chipset {
	gap: 12px;
}

.mmo-chips {
	display: flex;
	gap: 8px;
	width: 100%;
}

.mmo-chips--wrap {
	flex-wrap: wrap;
}

.mmo-chip {
	flex: 1 0 0;
	min-width: 0;
	cursor: pointer;
}

.mmo-chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.mmo-chip span {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	border: 1px solid var(--mmo-hair);
	border-radius: 12px;
	background: #fff;
	color: var(--mmo-body);
	font-weight: 700;
	font-size: 15px;
}

.mmo-chip--pill {
	flex: 0 0 auto;
}

.mmo-chip--pill span {
	padding: 8px 14px;
	border-radius: 20px;
	font-weight: 600;
	font-size: 14px;
}

.mmo-chip input:checked + span {
	border: 2px solid var(--mmo-green);
	background: var(--mmo-green-pale);
	color: var(--mmo-green);
	padding: 11px;
}

.mmo-chip--pill input:checked + span {
	border-color: var(--mmo-green);
	background: var(--mmo-green);
	color: #fff;
	padding: 7px 13px;
}

.mmo-chip input:focus-visible + span {
	outline: 2px solid var(--mmo-green);
	outline-offset: 2px;
}

.mmo-donation-other {
	margin-top: 4px;
}

.mmo-field__note {
	font-size: 13px;
	line-height: 1.4;
	color: var(--mmo-body);
}

/* Step four */

.mmo-summary {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	border: 1px solid var(--mmo-hair);
	border-radius: 12px;
}

.mmo-summary__label {
	font-family: var(--mmo-display);
	font-size: 14px;
	text-transform: uppercase;
	color: var(--mmo-muted);
}

.mmo-summary__grid {
	display: flex;
	gap: 16px;
}

.mmo-summary__cell {
	flex: 1 0 0;
	min-width: 0;
}

.mmo-summary__strong {
	font-weight: 700;
	font-size: 15px;
	color: var(--mmo-body);
}

.mmo-summary__weak {
	font-size: 13px;
	color: var(--mmo-body);
}

.mmo-fee {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mmo-fee__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font-weight: 700;
	font-size: 18px;
	color: var(--mmo-body);
}

.mmo-fee__amount {
	color: var(--mmo-green);
}

.mmo-fee__note {
	font-size: 13px;
	color: var(--mmo-body);
}

.mmo-nav {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 8px;
}

.mmo-secure {
	font-size: 13px;
	color: var(--mmo-body);
	text-align: center;
}

/* The plugin's own form, restyled by its own class names ------------------- */

.lily-event-registration {
	width: 100%;
}

.lily-er-section {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.lily-er-team-section .lily-er-team-intro,
.lily-er-team-section .description {
	font-size: 13px;
	line-height: 1.5;
	color: var(--mmo-body);
	margin: 0;
}

.lily-er-team-option label {
	display: flex;
	gap: 10px;
	align-items: center;
	font-family: var(--mmo-text);
	font-size: 15px;
	color: var(--mmo-ink);
	cursor: pointer;
}

.lily-er-team-option input[type="radio"] {
	width: 18px;
	height: 18px;
	accent-color: var(--mmo-green);
}

.lily-er-three-col {
	gap: 12px;
}

.lily-er-order-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 15px;
	color: var(--mmo-body);
}

.lily-er-order-total {
	font-weight: 700;
	font-size: 18px;
	color: var(--mmo-body);
}

#lily-er-card-element {
	padding: 12px 16px !important;
	border: 1px solid var(--mmo-hair) !important;
	border-radius: 8px !important;
	background: #fff !important;
}

.lily-er-errors {
	padding: 12px 16px;
	border: 1px solid #f5c2c7;
	border-radius: 8px;
	background: #fdf2f2;
	color: #b02a37;
	font-size: 14px;
}

.lily-er-submit-wrap {
	width: 100%;
}

.lily-er-submit-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 14px 40px;
	border: 0;
	border-radius: 40px;
	background: var(--mmo-green);
	color: #fff;
	font-family: var(--mmo-text);
	font-weight: 700;
	font-size: 18px;
	cursor: pointer;
	box-shadow: 0 8px 10px rgba(14, 180, 84, 0.2);
}

.lily-er-submit-btn:disabled {
	opacity: 0.6;
	cursor: progress;
}

/* Confirmation ------------------------------------------------------------ */

.mmo-confirm {
	display: flex;
	flex-direction: column;
	gap: 32px;
	max-width: 560px;
}

.mmo-confirm__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	border-radius: 40px;
	background: #e6f4ea;
}

.mmo-confirm__title {
	font-family: var(--mmo-display);
	font-size: 32px;
	line-height: 1.2;
	color: var(--mmo-ink);
	text-align: center;
}

.mmo-confirm__details {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 20px;
	border: 1px solid var(--mmo-hair);
	border-radius: 12px;
	background: #fafafa;
	font-size: 14px;
}

.mmo-confirm__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.mmo-confirm__row dt {
	color: var(--mmo-body);
}

.mmo-confirm__row dd {
	margin: 0;
	font-weight: 700;
	color: var(--mmo-body);
	text-align: right;
}

.mmo-confirm__row dd.is-amount {
	color: var(--mmo-green);
}

.mmo-confirm__next {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mmo-confirm__next-title {
	font-weight: 700;
	font-size: 16px;
	color: var(--mmo-ink);
}

.mmo-confirm__next ol {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding-left: 18px;
	font-size: 13px;
	color: var(--mmo-body);
}

.mmo-confirm__next strong {
	color: var(--mmo-body);
}

.mmo-confirm__actions {
	display: flex;
	gap: 12px;
}

.mmo-confirm__actions .mmo-btn {
	flex: 1 0 0;
	min-width: 0;
	padding: 12px 24px;
	font-size: 16px;
	text-align: center;
}

/* Before you go ----------------------------------------------------------- */

.mmo-faq {
	display: flex;
	gap: clamp(32px, 7.7vw, 112px);
	align-items: flex-start;
	background: var(--mmo-grey);
}

.mmo-faq__intro {
	display: flex;
	flex: 0 1 337px;
	flex-direction: column;
	gap: 12px;
}

.mmo-faq__list {
	display: flex;
	flex: 1 0 0;
	min-width: 0;
	flex-direction: column;
	gap: 24px;
	margin: 0;
	padding: 40px;
	list-style: none;
	border-radius: 24px;
	background: var(--mmo-panel);
}

.mmo-faq__list li {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	line-height: 1.4;
}

.mmo-faq__icon {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	margin-top: 3px;
}

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

.mmo-footer {
	padding: 32px var(--mmo-gutter);
	background: var(--mmo-night);
	color: #a1a1aa;
	font-size: 14px;
}

/* Narrower ---------------------------------------------------------------- */

@media (max-width: 1100px) {
	.mmo-details__grid,
	.mmo-how__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mmo-pricing__body,
	.mmo-pricing__head,
	.mmo-faq {
		flex-direction: column;
	}

	.mmo-pricing__tiers,
	.mmo-pricing__intro,
	.mmo-faq__intro {
		flex-basis: auto;
		width: 100%;
	}

	.mmo-wizard,
	.mmo-confirm {
		max-width: none;
	}
}

/*
 * The hero stacks earlier than everything else: with the photo at half the
 * screen plus an 80px gap, the text column below ~1024px is too narrow to read.
 */
@media (max-width: 1024px) {
	.mmo-hero__body {
		flex-direction: column;
		gap: 32px;
	}

	/*
	 * Photo first once the hero stacks, per the client. The markup keeps the
	 * text before the photo so the reading and tab order stay sensible; only
	 * the visual order flips.
	 */
	.mmo-hero__frame {
		order: -1;
		width: 100%;
		flex-basis: auto;
	}
}

/*
 * Desktop hero, as the designer's mockup has it: the photo's top lines up with
 * "One Day." and its bottom with the end of the last paragraph, with the green
 * label above it and the button below. A grid does this rather than fixed
 * offsets, so the photo tracks the text's real height at any width.
 *
 * The two text wrappers dissolve (display: contents) so their children become
 * grid items: label in row 1, lede in 2, paragraphs in 3, button in 4. The
 * photo spans rows 2-3 and stretches to them, cropped to fit.
 */
@media (min-width: 1025px) {
	.mmo-hero__body {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 52vw;
		grid-template-rows: auto auto auto auto;
		column-gap: 80px;
		row-gap: 0;
		align-items: start;
	}

	.mmo-hero__text,
	.mmo-hero__text > .mmo-stack-16 {
		display: contents;
	}

	.mmo-hero__text .mmo-eyebrow {
		grid-column: 1;
		grid-row: 1;
		margin-bottom: 16px;
	}

	.mmo-hero__lede {
		grid-column: 1;
		grid-row: 2;
		padding-bottom: 32px;
	}

	.mmo-hero__text > .mmo-prose {
		grid-column: 1;
		grid-row: 3;
	}

	.mmo-hero__text > .mmo-btn {
		grid-column: 1;
		grid-row: 4;
		justify-self: start;
		margin-top: 32px;
	}

	.mmo-hero__frame {
		grid-column: 2;
		grid-row: 2 / 4;
		align-self: stretch;
		aspect-ratio: auto;
		min-height: 0;
		position: relative;
	}

	/* Out of flow, so the photo's own height cannot stretch the text rows. */
	.mmo-hero__frame img {
		position: absolute;
		inset: 0;
	}
}

/*
 * Large screens. The text gets shorter as the column widens while the photo
 * stays at half the screen, so it turns wide and short and a head gets cut off
 * at the top. Crop from the top, and run the photo on down to the bottom of the
 * button for a little more height.
 */
@media (min-width: 1600px) {
	.mmo-hero__frame {
		grid-row: 2 / 5;
	}

	.mmo-hero__frame img {
		object-position: center top;
	}
}

/*
 * Side by side, "Your Registration Includes" is always exactly as tall as the
 * three tiers beside it (designer, 2026-09-14). Whichever side is taller sets
 * the height: the box stretches to the tiers, and if the list is the taller one
 * the tiers share the extra height rather than leaving a gap under the last.
 */
@media (min-width: 1101px) {
	.mmo-pricing__body {
		align-items: stretch;
	}

	.mmo-pricing__tiers > .mmo-card {
		flex: 1 0 auto;
	}
}

@media (max-width: 820px) {
	.mmo-register {
		flex-direction: column;
	}

	.mmo-register__form {
		border-left: 0;
		border-top: 1px solid var(--mmo-line);
	}

	.mmo-schedule__row {
		flex-direction: column;
	}

	.mmo-schedule__time {
		flex-basis: auto;
	}
}

@media (max-width: 620px) {
	.mmo-details__grid,
	.mmo-how__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.mmo-field-row,
	.lily-er-field-row,
	.mmo-schedule__cells,
	.mmo-summary__grid,
	.mmo-confirm__actions {
		flex-direction: column;
		/*
		 * Once these flip to a column, align-items governs WIDTH rather than
		 * vertical alignment — and the rows' own flex-start was shrinking every
		 * stacked field to the width of its own text.
		 */
		align-items: stretch;
	}

	.mmo-chips {
		flex-wrap: wrap;
	}

	/* Two-up, but not the donation pills — those stay sized to their amount. */
	.mmo-chip:not(.mmo-chip--pill) {
		flex: 1 0 40%;
	}

	.mmo-card,
	.mmo-faq__list,
	.mmo-includes {
		padding: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mmo-launch * {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

/*
 * The plugin's own form styles its order lines and typed values in its own
 * greys and greens, at a specificity the rules above do not reach. Body text is
 * #585858 wherever it is not white (designer, 2026-09-14).
 */
.mmo-launch .lily-er-order-summary .lily-er-order-label,
.mmo-launch .lily-er-order-summary .lily-er-order-amount,
.mmo-launch .lily-er-order-total .lily-er-order-total-amount,
.mmo-launch .lily-er-field input[type="text"],
.mmo-launch .lily-er-field input[type="tel"],
.mmo-launch .lily-er-field input[type="email"],
.mmo-launch .lily-er-field select {
	color: var(--mmo-body);
}
