/* ==========================================================================
   MemberMine theme — everything theme.json can't express.

   Visual language is lifted from the app's pre-Home chrome
   (apps/mobile/lib/src/theme/fusion_chrome.dart + app_theme.dart):
     - FusionGradientBackdrop  -> .is-style-mm-gradient (Cobalt -> Sky cobalt,
                                  soft blooms, a faint orbit ring)
     - FusionSectionPill       -> .is-style-mm-pill on a gradient
     - FusionCard              -> .is-style-mm-card (28px radius, cobalt shadow)
     - glass segmented buttons -> .mm-chip / .is-style-mm-glass
     - fusionFieldDecoration   -> form fields in .mm-start__card (14px radius, #F8FAFC fill)
   Colours come from theme.json presets; the hexes below only appear where a
   translucent rgba() of a brand colour is needed.
     Cobalt #0033A0 = rgb(0, 51, 160)   Sky cobalt #3F6FD8 = rgb(63, 111, 216)

   Sky tint (#9DBBF5) is reserved for the reversed wordmark, per the brand kit
   — it only appears inside membermine-lockup-reversed.png, never in CSS.
   ========================================================================== */

:root {
	--mm-cobalt: var(--wp--preset--color--cobalt, #0033A0);
	--mm-cobalt-deep: var(--wp--preset--color--cobalt-deep, #00297D);
	--mm-sky: var(--wp--preset--color--sky, #3F6FD8);
	--mm-ink: var(--wp--preset--color--ink, #212529);
	--mm-body: var(--wp--preset--color--body, #495057);
	--mm-muted: var(--wp--preset--color--muted, #6C757D);
	--mm-border: var(--wp--preset--color--border, #DEE2E6);
	--mm-surface: var(--wp--preset--color--surface, #F8FAFC);
	--mm-danger: var(--wp--preset--color--danger, #DC3545);
	--mm-success: var(--wp--preset--color--success, #198754);
	--mm-radius-card: var(--wp--custom--radius--card, 28px);
	--mm-radius-panel: var(--wp--custom--radius--panel, 20px);
	--mm-radius-control: var(--wp--custom--radius--control, 14px);
	--mm-shadow-soft: var(--wp--preset--shadow--soft);
	--mm-shadow-card: var(--wp--preset--shadow--card);
	--mm-section-y: clamp(4rem, 9vw, 7.5rem);
	--mm-header-h: 72px;

	/* Icons: 24px stroke glyphs in Cobalt, used as background images so an
	   editor changes a card's icon by changing one class. */
	--mm-i-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230033A0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3C/svg%3E");
	--mm-i-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230033A0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
	--mm-i-news: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230033A0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 22V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v18l-4-3-4 3-4-3z'/%3E%3Cpath d='M8 7h8M8 11h5'/%3E%3C/svg%3E");
	--mm-i-doc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230033A0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E");
	--mm-i-groups: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230033A0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M3 9h18M9 21V9'/%3E%3C/svg%3E");
	--mm-i-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230033A0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
	--mm-i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230033A0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='2'/%3E%3Cpath d='M12 18h.01'/%3E%3C/svg%3E");
	--mm-i-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230033A0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2 4 6v6c0 5 3.4 9.4 8 10 4.6-.6 8-5 8-10V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
	--mm-i-memory: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230033A0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
	--mm-i-megaphone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230033A0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 18-5v12L3 14v-3z'/%3E%3Cpath d='M11.6 16.8a3 3 0 1 1-5.8-1.6'/%3E%3C/svg%3E");
	--mm-i-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230033A0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21v-1a6 6 0 0 1 6-6h4a6 6 0 0 1 6 6v1'/%3E%3C/svg%3E");
	--mm-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230033A0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E");
	--mm-i-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C757D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------- base -- */

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--mm-header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Header, main and footer butt together; sections carry their own spacing. */
.wp-site-blocks > * + * { margin-block-start: 0; }
.mm-landing .wp-block-post-content > .alignfull { margin-block: 0; }

:where(.wp-site-blocks) :where(h1, h2, h3, h4, h5, h6) { color: var(--mm-ink); text-wrap: balance; }
:where(.wp-site-blocks) :where(h1, h2) { color: var(--mm-cobalt-deep); }
:where(.wp-site-blocks) p { text-wrap: pretty; }

::selection { background: rgba(63, 111, 216, .22); }

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--mm-sky);
	outline-offset: 3px;
	border-radius: 4px;
}
/* Sky on cobalt is under 3:1, so the ring is white on the blue areas. */
.is-style-mm-gradient :where(a, button, summary):focus-visible,
.mm-page-hero :where(a, button):focus-visible,
.mm-footer :where(a, button):focus-visible { outline-color: #fff; }
.is-style-mm-gradient .is-style-mm-card :where(a, button, input, select, textarea, summary):focus-visible { outline-color: var(--mm-sky); }

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

:where(.wp-block-button__link, .wp-element-button) {
	transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button__link:active { transform: translateY(0); }

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 2px solid var(--mm-cobalt);
	color: var(--mm-cobalt);
	box-shadow: none;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: rgba(0, 51, 160, .06);
	color: var(--mm-cobalt-deep);
}

/* White on the gradient: the highest-contrast thing on the band, like the
   selected segment of the app's glass segmented button. */
.wp-block-button.is-style-mm-white > .wp-block-button__link {
	background: #fff;
	color: var(--mm-cobalt-deep);
	box-shadow: 0 12px 28px -6px rgba(0, 20, 80, .45);
}
.wp-block-button.is-style-mm-white > .wp-block-button__link:hover {
	background: #EEF3FF;
	color: var(--mm-cobalt-deep);
}

.wp-block-button.is-style-mm-glass > .wp-block-button__link {
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .34);
	color: #fff;
	box-shadow: none;
}
.wp-block-button.is-style-mm-glass > .wp-block-button__link:hover {
	background: rgba(255, 255, 255, .22);
	color: #fff;
}

/* ------------------------------------------------------------ header -- */

.mm-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .mm-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .mm-site-header { top: 46px; } }

.mm-header {
	background: rgba(255, 255, 255, .9);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--mm-border);
}
.wp-block-group.mm-header__inner {
	min-height: var(--mm-header-h);
	gap: 1rem;
}
.wp-block-group.mm-header__end { gap: 1.25rem; }

.mm-brand { display: inline-flex; align-items: center; text-decoration: none; }
.mm-brand img { height: 32px; width: auto; display: block; }

.mm-nav a,
.mm-nav .wp-block-navigation-item__content {
	color: var(--mm-ink);
	text-decoration: none;
}
.mm-nav a:hover { color: var(--mm-cobalt); }
.mm-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.5rem;
	background: #fff;
}
.mm-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1.25rem; font-size: 1.15rem; }

.mm-header__cta .wp-block-button__link {
	white-space: nowrap;
	padding: .7rem 1.15rem;
	font-size: .92rem;
	box-shadow: none;
}
@media (max-width: 480px) {
	.mm-brand img { height: 26px; }
	.mm-header__cta .wp-block-button__link { padding: .6rem .85rem; font-size: .85rem; }
}

/* ---------------------------------------------------------- sections -- */

.mm-section {
	padding-block: var(--mm-section-y);
}

.is-style-mm-band { background: var(--mm-surface); }

.mm-section-head { margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.mm-section-head > * + * { margin-block-start: 1rem; }
.mm-section-head.is-centered { text-align: center; }
.mm-section-head.is-centered > * { margin-inline: auto; }

.is-style-mm-lede {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.6;
	max-width: 42rem;
}
.is-style-mm-note {
	font-size: var(--wp--preset--font-size--small);
	color: var(--mm-muted);
}
.is-style-mm-outcome {
	border-left: 3px solid var(--mm-sky);
	padding-left: 1rem;
	color: var(--mm-cobalt-deep);
	font-weight: 600;
}

/* Pill label — FusionSectionPill. Tinted on light grounds, glass on the
   gradient (see the gradient block below). */
.is-style-mm-pill {
	display: block;
	width: fit-content;
	padding: .35rem .8rem;
	border-radius: var(--wp--custom--radius--pill, 999px);
	background: rgba(0, 51, 160, .07);
	border: 1px solid rgba(0, 51, 160, .16);
	color: var(--mm-cobalt);
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1.4;
}

/* --------------------------------------------------- gradient bands -- */

.is-style-mm-gradient,
.mm-page-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--wp--preset--gradient--brand, linear-gradient(135deg, #0033A0 0%, #0033A0 32%, #3F6FD8 66%, #3F6FD8 100%));
	color: #fff;
}
/* Soft blooms, as FusionGradientBackdrop's _Bloom widgets. */
.is-style-mm-gradient::before,
.mm-page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(circle at 92% -10%, rgba(63, 111, 216, .6) 0, rgba(63, 111, 216, 0) 38%),
		radial-gradient(circle at -8% 112%, rgba(63, 111, 216, .35) 0, rgba(63, 111, 216, 0) 40%);
}
/* A faint orbit ring, as _OrbitRing. */
.is-style-mm-gradient::after,
.mm-page-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	top: -190px;
	left: -140px;
	width: 520px;
	height: 330px;
	border: 1.2px solid rgba(255, 255, 255, .11);
	border-radius: 50%;
	transform: rotate(-25deg);
	pointer-events: none;
}

.is-style-mm-gradient :is(h1, h2, h3, h4, p, li, summary, figcaption),
.mm-page-hero :is(h1, h2, h3, p, time, .wp-block-post-date) { color: #fff; }
.is-style-mm-gradient .is-style-mm-lede { color: #fff; }
.is-style-mm-gradient .is-style-mm-note { color: #fff; }
.is-style-mm-band .is-style-mm-note { color: var(--mm-body); }
.is-style-mm-gradient a:not(.wp-block-button__link) { color: #fff; }
.is-style-mm-gradient .is-style-mm-pill {
	background: rgba(255, 255, 255, .16);
	border-color: rgba(255, 255, 255, .3);
	color: #fff;
}

/* A white card inside a gradient band goes back to normal text colours. */
.is-style-mm-gradient .is-style-mm-card :is(h1, h2, h3, h4) { color: var(--mm-ink); }
.is-style-mm-gradient .is-style-mm-card :is(p, li, label, summary) { color: var(--mm-body); }
.is-style-mm-gradient .is-style-mm-card .is-style-mm-note { color: var(--mm-muted); }
.is-style-mm-gradient .is-style-mm-card a:not(.wp-block-button__link) { color: var(--mm-cobalt); }

.mm-page-hero {
	padding-block: clamp(3rem, 7vw, 5.5rem);
	margin-bottom: var(--wp--preset--spacing--60);
}
.mm-page-hero .wp-block-post-title,
.mm-page-hero h1 { font-size: var(--wp--preset--font-size--xx-large); margin: 0; }
.mm-page-hero__meta { opacity: .85; margin-top: .75rem; }

/* ------------------------------------------------------------- cards -- */

/* FusionCard. On a light ground the cobalt shadow is toned down so it
   doesn't read as a smudge; on the gradient it matches the app exactly. */
.is-style-mm-card {
	background: #fff;
	border-radius: var(--mm-radius-card);
	border: 1px solid rgba(255, 255, 255, .6);
	box-shadow: 0 22px 44px -10px rgba(0, 51, 160, .16);
	padding: clamp(1.4rem, 3vw, 2.25rem);
}
.is-style-mm-gradient .is-style-mm-card { box-shadow: var(--mm-shadow-card); }

.wp-block-group.is-style-mm-glass {
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .24);
	border-radius: var(--mm-radius-panel);
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

/* WordPress's grid layout uses auto-fill, which leaves an empty column when
   there are fewer cards than fit (3 cards, room for 4). auto-fit stretches
   the cards across the row instead. */
.wp-block-group.mm-grid {
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
}
.wp-block-group.mm-grid.mm-features { grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }

.mm-panel,
.mm-step,
.mm-feature {
	background: #fff;
	border: 1px solid var(--mm-border);
	border-radius: var(--mm-radius-panel);
	box-shadow: var(--mm-shadow-soft);
	padding: clamp(1.4rem, 2.5vw, 1.9rem);
}
:is(.mm-panel, .mm-step, .mm-feature) > * + * { margin-block-start: .6rem; }
:is(.mm-panel, .mm-step, .mm-feature) h3 { margin-top: 0; }
:is(.mm-panel, .mm-step, .mm-feature) p { margin-bottom: 0; }

/* Icon tile — the 52px rounded square from FusionSelectableCard. */
[class*="mm-icon-"]::before {
	content: "";
	display: block;
	width: 52px;
	height: 52px;
	margin-bottom: 1.1rem;
	border-radius: var(--mm-radius-control);
	background: var(--mm-icon, none) center / 26px no-repeat, rgba(0, 51, 160, .09);
}
.mm-icon-users { --mm-icon: var(--mm-i-users); }
.mm-icon-chat { --mm-icon: var(--mm-i-chat); }
.mm-icon-news { --mm-icon: var(--mm-i-news); }
.mm-icon-doc { --mm-icon: var(--mm-i-doc); }
.mm-icon-groups { --mm-icon: var(--mm-i-groups); }
.mm-icon-lock { --mm-icon: var(--mm-i-lock); }
.mm-icon-phone { --mm-icon: var(--mm-i-phone); }
.mm-icon-shield { --mm-icon: var(--mm-i-shield); }
.mm-icon-memory { --mm-icon: var(--mm-i-memory); }
.mm-icon-megaphone { --mm-icon: var(--mm-i-megaphone); }
.mm-icon-user { --mm-icon: var(--mm-i-user); }

.mm-features .mm-feature h3 { font-size: 1.05rem; }
.mm-features .mm-feature p { font-size: .95rem; }

/* Numbered steps. */
.mm-steps { counter-reset: mm-step; }
.mm-step { counter-increment: mm-step; }
.mm-step::before {
	content: counter(mm-step);
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 1.1rem;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--mm-cobalt), var(--mm-sky));
	box-shadow: 0 8px 18px -4px rgba(63, 111, 216, .55);
	color: #fff;
	font-weight: 800;
}

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

.mm-hero {
	padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 6.5rem);
}
.mm-hero h1 {
	font-size: var(--wp--preset--font-size--display);
	max-width: 15ch;
	margin-block: 1.25rem 0;
}
.mm-hero .is-style-mm-lede { max-width: 36rem; }
.mm-hero__actions { margin-top: 1.75rem; gap: .75rem; }
.wp-block-columns.mm-hero__grid { gap: clamp(2rem, 5vw, 4.5rem); }
.wp-block-column.mm-hero__copy { flex-basis: 58%; }
.wp-block-column.mm-hero__media { flex-basis: 42%; }

/* "I run a…" chips — the app's glass segmented button. Hidden until the
   script runs, since without it they do nothing. They keep their space
   while hidden so the headline below does not jump when they appear. */
.mm-verticals[hidden] { display: block; visibility: hidden; }
.mm-verticals__label {
	display: block;
	margin-bottom: .6rem;
	font-size: .85rem;
	font-weight: 600;
	color: rgba(255, 255, 255, .85);
}
.mm-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.mm-chip {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: .45rem .9rem;
	border: 1px solid rgba(255, 255, 255, .34);
	border-radius: 999px;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	font: inherit;
	font-size: .85rem;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
.mm-chip:hover { background: rgba(255, 255, 255, .22); }
.mm-chip[aria-pressed="true"] { background: #fff; color: var(--mm-cobalt-deep); border-color: #fff; }
.mm-chip:focus-visible { outline-color: #fff; }

/* Phone frame. A flat-sided phone with a thin, even bezel and nearly square
   corners (Galaxy S Ultra proportions), so the screenshot's status bar is
   not cut off: the screen's corner radius is the outer radius minus the
   bezel, about 12px on a 300px-wide screenshot. The dot is the front camera. */
.wp-block-image.is-style-mm-phone {
	position: relative;
	display: flex;
	justify-content: center;
	margin: 0;
}
.wp-block-image.is-style-mm-phone img {
	width: min(100%, 300px);
	height: auto;
	aspect-ratio: 9 / 19.5;
	object-fit: cover;
	border: 6px solid #0b0f1a;
	border-radius: 18px;
	background: #0b0f1a;
	box-shadow: 0 0 0 2px #4b5563, 0 30px 60px -12px rgba(0, 20, 80, .45);
}
.wp-block-image.is-style-mm-phone::after {
	content: "";
	position: absolute;
	top: 14px;
	left: 50%;
	width: 8px;
	height: 8px;
	margin-left: -4px;
	border-radius: 50%;
	background: #0b0f1a;
	box-shadow: inset 0 0 0 1.5px #1f2937;
}
@media (max-width: 781px) {
	.wp-block-image.is-style-mm-phone img { width: min(100%, 250px); border-width: 5px; border-radius: 15px; }
	.wp-block-image.is-style-mm-phone::after { top: 11px; width: 7px; height: 7px; margin-left: -3.5px; }
	.mm-hero__media { margin-top: 1rem; }
}
.mm-hero .wp-block-image.is-style-mm-phone img { box-shadow: 0 0 0 2px #4b5563, 0 34px 70px -10px rgba(0, 10, 50, .55); }

/* --------------------------------------------------------- showcase -- */

.wp-block-columns.mm-showcase {
	gap: clamp(2rem, 6vw, 5rem);
	margin-block: 0 clamp(3rem, 7vw, 5rem);
}
.wp-block-columns.mm-showcase:last-child { margin-bottom: 0; }
.mm-showcase__copy h3 { font-size: var(--wp--preset--font-size--x-large); color: var(--mm-cobalt-deep); }
@media (min-width: 782px) {
	.mm-showcase.is-flipped .mm-showcase__media { order: 2; }
}

/* ---------------------------------------------------------- compare -- */

.wp-block-table.is-style-mm-compare {
	overflow-x: auto;
	background: #fff;
	border: 1px solid var(--mm-border);
	border-radius: var(--mm-radius-panel);
	box-shadow: var(--mm-shadow-soft);
	-webkit-overflow-scrolling: touch;
}
.wp-block-table.is-style-mm-compare table {
	min-width: 760px;
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: .95rem;
}
.wp-block-table.is-style-mm-compare :is(th, td) {
	padding: .9rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--mm-border);
	text-align: left;
	vertical-align: top;
}
.wp-block-table.is-style-mm-compare thead { border: 0; }
.wp-block-table.is-style-mm-compare thead th {
	background: var(--mm-surface);
	color: var(--mm-ink);
	font-size: .82rem;
	font-weight: 700;
	line-height: 1.35;
}
.wp-block-table.is-style-mm-compare tbody td:first-child { color: var(--mm-ink); font-weight: 600; }
.wp-block-table.is-style-mm-compare tbody tr:last-child td { border-bottom: 0; }
/* The last column is always membermine. */
.wp-block-table.is-style-mm-compare :is(th, td):last-child {
	background: rgba(0, 51, 160, .05);
	color: var(--mm-cobalt-deep);
	font-weight: 600;
}
.wp-block-table.is-style-mm-compare thead th:last-child { background: var(--mm-cobalt); color: #fff; }
.mm-compare-note { max-width: 44rem; margin: 1.75rem auto 0; }

/* ---------------------------------------------------------- pricing -- */

.wp-block-group.mm-tiers {
	max-width: 840px;
	margin-inline: auto;
	gap: 1.5rem;
	align-items: stretch;
	grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
}
.mm-tier { position: relative; border: 1px solid var(--mm-border); }
.mm-tier > * { margin-block: 0; }
.mm-tier > * + * { margin-block-start: .85rem; }
.mm-tier.is-featured { border: 2px solid var(--mm-cobalt); }
.mm-tier > .mm-tier__badge + * { margin-block-start: 0; }
.mm-tier__badge {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	margin: 0 !important;
	padding: .3rem .8rem;
	border-radius: 999px;
	background: var(--mm-cobalt);
	color: #fff !important;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
}
.mm-tier__name {
	display: flex;
	align-items: center;
	gap: .6rem;
	font-size: var(--wp--preset--font-size--x-large);
}
.mm-tier__name::before {
	content: "";
	width: 16px;
	height: 16px;
	border-radius: 50%;
	flex: none;
}
.mm-tier__name.is-silver::before { background: linear-gradient(135deg, #C9D1D9, #9AA5B1); }
.mm-tier__name.is-gold::before { background: linear-gradient(135deg, #FFE08A, #D9A92E); }
.mm-tier__for { color: var(--mm-muted); min-height: 3.3em; }
.mm-tier__price { color: var(--mm-muted); }
.mm-tier__price strong {
	color: var(--mm-ink);
	font-size: 2.6rem;
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1;
}
.mm-tbc {
	width: fit-content;
	padding: .2rem .65rem;
	border-radius: 999px;
	background: #FFF4CC;
	color: #6B5200;
	font-size: .72rem;
	font-weight: 700;
}
.mm-tier__trial { color: var(--mm-success); font-weight: 600; font-size: .95rem; }
.mm-tier__cta .wp-block-button,
.mm-tier__cta .wp-block-button__link { width: 100%; }

.is-style-mm-checks { list-style: none; padding-left: 0; }
.is-style-mm-checks li {
	position: relative;
	padding-left: 1.75rem;
	margin-block: .5rem;
}
.is-style-mm-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .28em;
	width: 18px;
	height: 18px;
	background: var(--mm-i-check) center / contain no-repeat;
}

/* --------------------------------------------------------------- faq -- */

.wp-block-group.mm-faq { max-width: 760px; margin-inline: auto; }
.mm-faq .wp-block-details {
	background: #fff;
	border: 1px solid var(--mm-border);
	border-radius: var(--mm-radius-panel);
	margin-block: 0 .75rem;
	padding: 0;
}
.mm-faq .wp-block-details summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1.1rem 1.35rem;
	color: var(--mm-ink);
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}
.mm-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.mm-faq .wp-block-details summary::after {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	background: var(--mm-i-chevron) center / contain no-repeat;
	transition: transform .2s ease;
}
.mm-faq .wp-block-details[open] summary::after { transform: rotate(180deg); }
.mm-faq .wp-block-details > :not(summary) { margin: 0; padding: 0 1.35rem 1.25rem; }

/* ------------------------------------------- building blocks: row + card -- */

/* The "Row" and "Card" patterns, for building a section by hand. A card is a
   plain container: there are deliberately NO rules here for the inputs,
   selects, labels or buttons placed inside one, so a CRM form block (and its
   controls in the editor) keeps its own styles. The call-to-action card below
   (.mm-start__card) is the one that restyles form fields; don't add that class
   to these. */
.mm-row > .mm-section-head:last-child { margin-bottom: 0; }
.mm-row > .wp-block-group + .wp-block-group { margin-block-start: 0; }
.mm-row > .mm-card-box + .mm-card-box { margin-block-start: 1.25rem; }
.wp-block-group.mm-narrow { max-width: 560px; margin-inline: auto; }
.mm-card-box > :first-child { margin-block-start: 0; }
.mm-card-box > :last-child { margin-block-end: 0; }

/* ------------------------------------------------ call to action + form -- */

.wp-block-group.mm-start__card { max-width: 560px; margin-inline: auto; }
.mm-start__steps { padding-left: 1.2rem; }
.mm-start__steps li { margin-block: .55rem; }

/* Whatever form is placed in the call-to-action card (e.g. the CRM plugin's
   sign-up form) picks up the app's field style — fusionFieldDecoration:
   14px radius, #F8FAFC fill, cobalt focus ring — and the primary button.
   Generic element selectors on purpose, so it works with any form markup;
   if the CRM ships heavier styles of its own, turn those off in its settings
   rather than fighting them here. */
.mm-start__card :is(input, select, textarea, button),
.mm-start__card :is(input, select, textarea, button)::before { box-sizing: border-box; }
.mm-start__card label {
	display: block;
	margin-bottom: .4rem;
	color: var(--mm-ink) !important;
	font-size: .9rem;
	font-weight: 600;
}
.mm-start__card :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], select, textarea) {
	width: 100%;
	min-height: 52px;
	padding: .8rem 1rem;
	border: 1px solid var(--mm-border);
	border-radius: var(--mm-radius-control);
	background-color: var(--mm-surface);
	color: var(--mm-ink);
	font: inherit;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.mm-start__card textarea { min-height: 120px; }
.mm-start__card select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 2.75rem;
	background: var(--mm-i-chevron) right 1rem center / 18px no-repeat, var(--mm-surface);
}
.mm-start__card :is(input, select, textarea):focus {
	outline: none;
	border-color: var(--mm-cobalt);
	box-shadow: 0 0 0 1px var(--mm-cobalt), 0 0 0 4px rgba(63, 111, 216, .2);
}
.mm-start__card :is(button[type="submit"], input[type="submit"]) {
	width: 100%;
	min-height: 54px;
	border: 0;
	border-radius: var(--wp--custom--radius--button, 16px);
	background: var(--mm-cobalt);
	box-shadow: var(--wp--preset--shadow--button);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: transform .15s ease, background-color .15s ease;
}
.mm-start__card :is(button[type="submit"], input[type="submit"]):hover {
	background: var(--mm-cobalt-deep);
	transform: translateY(-1px);
}

/* Shown until the CRM form is dropped in (see patterns/start-early-access.php):
   deliberately loud, like the "Price TBC" tag, so it can't ship by accident. */
.mm-form-slot {
	padding: 1.5rem 1.25rem;
	border: 2px dashed rgba(0, 51, 160, .35);
	border-radius: var(--mm-radius-control);
	background: rgba(0, 51, 160, .04);
	color: var(--mm-cobalt-deep) !important;
	text-align: center;
	font-weight: 600;
}

/* -------------------------------------------------------------- prose -- */

.mm-prose { padding-bottom: var(--mm-section-y); }
/* The lede's 42rem cap would centre it inside the narrower text column,
   indenting it against the headings; in prose it just fills the column. */
.mm-prose .is-style-mm-lede { max-width: none; }
.mm-prose h2 { font-size: var(--wp--preset--font-size--x-large); margin-top: 2.5rem; }
.mm-prose h3 { margin-top: 2rem; }
.mm-prose li { margin-block: .35rem; }

.mm-draft-notice {
	padding: 1.1rem 1.35rem;
	border: 1px solid #F2D27A;
	border-radius: var(--mm-radius-control);
	background: #FFF8E1;
	color: #4D3B00;
	font-size: .95rem;
}
.mm-draft-notice strong { color: #3A2C00; }

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

.mm-posts { padding-bottom: var(--mm-section-y); }
.mm-post-card {
	height: 100%;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--mm-border);
	border-radius: var(--mm-radius-panel);
	box-shadow: var(--mm-shadow-soft);
}
.mm-post-card > :not(.wp-block-post-featured-image) { padding-inline: 1.4rem; }
.mm-post-card > :last-child { padding-bottom: 1.4rem; }
.mm-post-card .wp-block-post-featured-image { margin: 0; }
.mm-post-card__date { font-size: .85rem; color: var(--mm-muted); margin-top: 1.2rem; }
.mm-post-card__title { font-size: var(--wp--preset--font-size--large); }
.mm-post-card__title a { color: var(--mm-ink); text-decoration: none; }
.mm-post-card__title a:hover { color: var(--mm-cobalt); }
.mm-featured img { border-radius: var(--mm-radius-panel); }
.mm-post-nav { padding-bottom: var(--mm-section-y); }

/* ------------------------------------------------------------ footer -- */

.mm-footer {
	background: var(--mm-cobalt-deep);
	color: rgba(255, 255, 255, .78);
	padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
	font-size: .95rem;
}
.mm-footer :is(h1, h2, h3, h4) {
	color: #fff;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin-bottom: 1rem;
}
.mm-footer a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.mm-footer a:hover { color: #fff; text-decoration: underline; }
.mm-footer .mm-brand img { height: 34px; margin-bottom: 1rem; }
.mm-footer__brand p { max-width: 22rem; }
.mm-footer__links { list-style: none; padding: 0; margin: 0; }
.mm-footer__links li { margin-block: .45rem; }
.wp-block-columns.mm-footer__grid { gap: 2rem 3rem; }
.wp-block-column.mm-footer__brand { flex-basis: 45%; }
.wp-block-group.mm-footer__bottom {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, .14);
	gap: .5rem 2rem;
	font-size: .85rem;
}
.mm-footer__bottom p { margin: 0; }

/* ------------------------------------------------------------ search -- */

.mm-search { max-width: 520px; margin-top: 1.25rem; }
.mm-search .wp-block-search__input { border-radius: var(--mm-radius-control); border-color: transparent; padding: .7rem 1rem; }
