/* ==========================================================================
   membermine app site — the static pages the app, Stripe and Supabase link to.

   Deliberately the app's own pre-Home screen, not the marketing site: a
   full-bleed brand gradient, intro copy in white straight on it, and
   everything interactive inside one floating white card
   (apps/mobile/lib/src/theme/fusion_chrome.dart). Someone arriving from the
   app should feel they never left it.

   Tokens mirror apps/mobile AppColors and the WordPress theme's theme.json.
   Paths are relative so the site works at a domain root or in a subfolder.
   ========================================================================== */

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2");
}

:root {
	--cobalt: #0033A0;
	--cobalt-deep: #00297D;
	--sky: #3F6FD8;
	--ink: #212529;
	--body: #495057;
	--muted: #6C757D;
	--border: #DEE2E6;
	--surface: #F8FAFC;
	--danger: #DC3545;
	--success: #198754;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

/* The gradient lives on <html> and scrolls with the page: a fixed
   background ends partway down tall pages in some browsers and is janky on
   iOS Safari. Cobalt underneath covers overscroll. */
html {
	-webkit-text-size-adjust: 100%;
	min-height: 100%;
	background: #0033A0 linear-gradient(135deg, #0033A0 0%, #0033A0 32%, #3F6FD8 66%, #3F6FD8 100%) no-repeat;
	background-size: 100% 100%;
}
body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--body);
	-webkit-font-smoothing: antialiased;
	/* FusionGradientBackdrop (gradient on <html> above): Cobalt holding
	   solid, blending to Sky cobalt. */
	position: relative;
	isolation: isolate;
	overflow-x: hidden;
}
body::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(circle at 95% -5%, rgba(63, 111, 216, .6) 0, rgba(63, 111, 216, 0) 40%),
		radial-gradient(circle at -10% 110%, rgba(63, 111, 216, .35) 0, rgba(63, 111, 216, 0) 42%);
}
body::after {
	content: "";
	position: absolute;
	z-index: -1;
	top: -190px;
	left: -140px;
	width: 460px;
	height: 300px;
	border: 1.2px solid rgba(255, 255, 255, .11);
	border-radius: 50%;
	transform: rotate(-25deg);
	pointer-events: none;
}

img { max-width: 100%; display: block; }

a { color: var(--cobalt); text-underline-offset: .18em; }
a:hover { color: var(--cobalt-deep); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.top {
	padding: 22px 20px 0;
	display: flex;
	justify-content: center;
}
.top img { height: 30px; width: auto; }

main {
	flex: 1;
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
	padding: 28px 16px 40px;
}

/* Intro copy straight on the gradient. */
.intro { text-align: center; color: #fff; margin-bottom: 20px; }
.pill {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .16);
	border: 1px solid rgba(255, 255, 255, .3);
	color: #fff;
	font-size: .82rem;
	font-weight: 700;
}
.intro h1 {
	margin: 14px 0 8px;
	color: #fff;
	font-size: clamp(1.6rem, 5vw, 2rem);
	line-height: 1.2;
	letter-spacing: -.01em;
	text-wrap: balance;
}
.intro p { margin: 0; color: rgba(255, 255, 255, .88); text-wrap: pretty; }

/* FusionCard. */
.card {
	background: #fff;
	border-radius: 28px;
	border: 1px solid rgba(255, 255, 255, .6);
	box-shadow: 0 22px 44px -6px rgba(0, 51, 160, .32);
	padding: 22px 22px 24px;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card h2 { color: var(--ink); font-size: 1.1rem; margin: 0 0 8px; }
.card p { margin: 0 0 14px; }
.card .hint { font-size: .88rem; color: var(--muted); }

.badge {
	width: 64px;
	height: 64px;
	margin: 4px auto 16px;
	border-radius: 18px;
	display: grid;
	place-items: center;
	font-size: 30px;
	font-weight: 700;
	background: rgba(0, 51, 160, .1);
	color: var(--cobalt);
}
.badge.is-neutral { background: #F1F3F5; color: var(--body); }
.badge.is-error { background: rgba(220, 53, 69, .1); color: var(--danger); }
.center { text-align: center; }

/* FusionPrimaryButton: 54px, 16px radius, sky glow. */
.btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 54px;
	padding: 12px 20px;
	border: 0;
	border-radius: 16px;
	background: var(--cobalt);
	box-shadow: 0 10px 24px rgba(63, 111, 216, .42);
	color: #fff;
	font: inherit;
	font-weight: 700;
	letter-spacing: .01em;
	text-decoration: none;
	cursor: pointer;
	transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { background: var(--cobalt-deep); color: #fff; transform: translateY(-1px); }
.btn.is-secondary {
	background: transparent;
	border: 1.5px solid var(--cobalt);
	color: var(--cobalt);
	box-shadow: none;
}
.btn.is-secondary:hover { background: rgba(0, 51, 160, .06); color: var(--cobalt-deep); }
.btn + .btn, .btn + .hint, .actions > * + * { margin-top: 12px; }
.btn::after { content: "\2192"; font-weight: 700; }
.btn.no-arrow::after { content: none; }

.steps { list-style: none; padding: 0; margin: 0 0 18px; counter-reset: s; }
.steps li {
	counter-increment: s;
	position: relative;
	padding: 2px 0 14px 46px;
	min-height: 34px;
}
.steps li::before {
	content: counter(s);
	position: absolute;
	left: 0;
	top: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--cobalt), var(--sky));
	color: #fff;
	font-size: .9rem;
	font-weight: 800;
}
.steps strong { color: var(--ink); }

.stores { display: grid; gap: 10px; margin: 0 0 14px; }
.notice {
	padding: 12px 14px;
	border-radius: 14px;
	background: rgba(0, 51, 160, .06);
	border: 1px solid rgba(0, 51, 160, .16);
	color: var(--cobalt-deep);
	font-size: .92rem;
	margin: 0 0 14px;
}

.code {
	display: block;
	width: 100%;
	padding: 14px;
	border-radius: 14px;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--ink);
	font: 600 .95rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	word-break: break-all;
	text-align: center;
	margin: 0 0 12px;
}

footer {
	padding: 8px 16px 28px;
	text-align: center;
	font-size: .85rem;
	color: rgba(255, 255, 255, .8);
}
footer a { color: #fff; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 6px; }

@media (prefers-reduced-motion: reduce) {
	.btn { transition: none; }
}

.card .gap { margin-top: 24px; }
.card .gap-sm { margin-top: 14px; }
