/* PB Members Gate — teaser gate styling.
 * Re-skin of the design handoff (design_handoff_members_gate). Standalone
 * full-page document, so tokens live here. Classes are pbmg- prefixed.
 *
 * Overrides vs the handoff:
 *  - No Newsreader. The Sarah line uses Fraunces italic (members font rule).
 *  - Everything else Fraunces (opsz 144 / SOFT 50 axes) + Manrope.
 *  - Explicit line-height on every text element (Kadence ~34px inheritance rule).
 */

:root {
	/* Mauve — brand signature */
	--mauve:        #775973;
	--mauve-dark:   #5e4659;
	--mauve-deep:   #4a2f3d;
	--mauve-soft:   #efe8ec;
	--mauve-glow:   #e9dee4;
	--mauve-tint:   #f1ebee;

	/* Cream surfaces + gradient stops */
	--cream:        #f7f3ee;
	--cream-light:  #faf6f1;
	--cream-deep:   #efe8de;
	--cream-inverse:#f8f4ee;
	--cream-soft:   #efe8e0;
	--cream-line:   #e5dcd2;

	/* Ink */
	--ink:          #2b2b2b;
	--ink-soft:     #4a4a4a;
	--ink-muted:    #6c726e;
	--ink-mute-warm:#7a7065;

	/* Hairlines */
	--line:         rgba(74, 47, 61, 0.10);
	--line-strong:  rgba(74, 47, 61, 0.14);

	/* Type — Newsreader intentionally dropped; serif maps to Fraunces */
	--font-display: "Fraunces", Georgia, serif;
	--font-serif:   "Fraunces", Georgia, serif;
	--font-sans:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--fraunces-axes: 'opsz' 144, 'SOFT' 50;

	/* Radii */
	--radius-sm:  10px;
	--radius:     14px;
	--radius-lg:  22px;
	--radius-pill: 999px;

	/* Shadows — warm plum-tinted, never grey */
	--shadow-lg: 0 24px 60px -16px rgba(74, 47, 61, 0.18), 0 6px 16px rgba(74, 47, 61, 0.06);
	--shadow-cta:       0 6px 16px -6px rgba(74, 47, 61, 0.40);
	--shadow-cta-hover: 0 10px 24px -8px rgba(74, 47, 61, 0.50);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body.pbmg-body {
	min-height: 100vh;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* ---------- page shell + layered cream background (never flat white) ---------- */
.pbmg-gate {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 22px 18px 40px;
	line-height: 1.6;
	background:
		radial-gradient(ellipse 80% 60% at 50% -10%, var(--mauve-glow) 0%, transparent 60%),
		radial-gradient(ellipse 60% 50% at 90% 30%, rgba(154, 172, 150, 0.18) 0%, transparent 55%),
		radial-gradient(ellipse 50% 40% at 10% 70%, rgba(184, 154, 172, 0.22) 0%, transparent 55%),
		linear-gradient(180deg, var(--cream-light) 0%, var(--cream) 60%, var(--cream-deep) 100%);
	background-color: var(--cream);
	background-attachment: fixed;
}

/* ---------- brand bar ---------- */
.pbmg-brand {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 6px 0 26px;
	line-height: 1;
}
.pbmg-mark {
	width: 30px;
	height: 30px;
	border-radius: var(--radius-pill);
	display: block;
	box-shadow: 0 3px 9px -3px rgba(74, 47, 61, 0.4);
}
.pbmg-word {
	font-family: var(--font-display);
	font-variation-settings: var(--fraunces-axes);
	font-weight: 500;
	font-size: 22px;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--ink);
}

/* ---------- the column / two-pane ---------- */
.pbmg-col {
	width: 100%;
	max-width: 500px;
	display: flex;
	flex-direction: column;
}
.pbmg-pane--pitch { display: flex; flex-direction: column; }

/* =========================================================
   Teaser card — the locked item behind frosted glass
   ========================================================= */
.pbmg-teaser {
	background: rgba(255, 255, 255, 0.7);
	-webkit-backdrop-filter: blur(20px) saturate(140%);
	backdrop-filter: blur(20px) saturate(140%);
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}

.pbmg-teaser__media {
	position: relative;
	height: 248px;
	overflow: hidden;
}
/* the real featured photo — readable but out of reach */
.pbmg-teaser__photo {
	position: absolute;
	inset: -8px;
	background-size: cover;
	background-position: center;
	filter: blur(3px) saturate(108%);
	transform: scale(1.06);
}
.pbmg-teaser__photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(60% 50% at 28% 24%, rgba(255, 255, 255, 0.5) 0%, transparent 60%),
		radial-gradient(50% 45% at 80% 82%, rgba(74, 47, 61, 0.22) 0%, transparent 60%);
}
/* frosted veil that deepens toward the title */
.pbmg-teaser__veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg,
		rgba(247, 243, 238, 0.05) 0%,
		rgba(247, 243, 238, 0.16) 46%,
		rgba(247, 243, 238, 0.62) 100%);
}

/* lock chip, top-left */
.pbmg-lockchip {
	position: absolute;
	top: 14px;
	left: 14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px 7px 10px;
	border-radius: var(--radius-pill);
	background: rgba(74, 47, 61, 0.62);
	-webkit-backdrop-filter: blur(8px) saturate(140%);
	backdrop-filter: blur(8px) saturate(140%);
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: var(--cream-inverse);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
}
.pbmg-lockchip svg { width: 14px; height: 14px; }

/* frosted lock medallion — SOLID fill (no backdrop-filter: avoids the square
   sampling artifact the handoff warns about on small elements) */
.pbmg-medallion {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 58px;
	height: 58px;
	border-radius: var(--radius-pill);
	display: grid;
	place-items: center;
	background: rgba(248, 244, 238, 0.82);
	border: 1px solid rgba(255, 255, 255, 0.7);
	box-shadow: 0 10px 26px -10px rgba(74, 47, 61, 0.45);
	color: var(--mauve-deep);
}
.pbmg-medallion svg { width: 26px; height: 26px; }

/* ---------- teaser body ---------- */
.pbmg-teaser__body { padding: 22px 24px 26px; }

.pbmg-eyebrow {
	font-family: var(--font-sans);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--mauve);
	margin: 0 0 11px;
}
.pbmg-title {
	font-family: var(--font-display);
	font-variation-settings: var(--fraunces-axes);
	font-weight: 500;
	font-size: 31px;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--ink);
	margin: 0;
	text-wrap: balance;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.pbmg-title em {
	font-style: italic;
	font-weight: 500;
	color: var(--mauve);
	font-variation-settings: var(--fraunces-axes);
}

/* meta row — real item data */
.pbmg-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 11px;
	margin-top: 16px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--ink-soft);
}
.pbmg-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-weight: 500;
	line-height: 1.4;
}
.pbmg-meta__item svg { width: 15px; height: 15px; color: var(--mauve); }
.pbmg-meta__star { color: #c08a3e; line-height: 1; }
.pbmg-meta__dot { color: var(--line-strong); line-height: 1; }

/* =========================================================
   Sarah's line — avatar + warm copy (Fraunces italic)
   ========================================================= */
.pbmg-sarah {
	display: flex;
	align-items: center;
	gap: 13px;
	margin: 20px 4px 2px;
}
.pbmg-sarah__pic {
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: var(--radius-pill);
	object-fit: cover;
	background: linear-gradient(160deg, #b9a0b2, #775973);
	box-shadow: 0 3px 9px -3px rgba(74, 47, 61, 0.4);
	border: 2px solid rgba(255, 255, 255, 0.85);
}
/* Sarah line set in Manrope (regular) — the Fraunces italic read poorly. */
.pbmg-sarah__text {
	font-family: var(--font-sans);
	font-style: normal;
	font-weight: 400;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ink-soft);
	text-wrap: pretty;
	margin: 0;
}

/* =========================================================
   Benefit ticks
   ========================================================= */
.pbmg-ticks {
	list-style: none;
	margin: 22px 0 0;
	padding: 18px 20px;
	background: var(--cream-soft);
	border: 1px solid var(--cream-line);
	border-radius: var(--radius);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 11px 16px;
}
.pbmg-ticks li {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--ink);
}
.pbmg-tick-ic {
	flex: none;
	width: 21px;
	height: 21px;
	border-radius: var(--radius-pill);
	background: var(--mauve-tint);
	color: var(--mauve);
	display: grid;
	place-items: center;
}
.pbmg-tick-ic svg { width: 13px; height: 13px; }

/* =========================================================
   Actions
   ========================================================= */
.pbmg-actions {
	margin-top: 22px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.pbmg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	padding: 17px 24px;
	border-radius: var(--radius);
	font-family: var(--font-sans);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.18s, transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.pbmg-btn svg { width: 18px; height: 18px; transition: transform 0.18s; }
.pbmg-btn--primary {
	background: var(--mauve);
	color: var(--cream-inverse);
	border: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: var(--shadow-cta);
}
.pbmg-btn--primary:hover {
	background: var(--mauve-dark);
	transform: translateY(-1px);
	box-shadow: var(--shadow-cta-hover);
}
.pbmg-btn--primary:hover svg { transform: translateX(2px); }
.pbmg-btn--primary:active { transform: translateY(0); }
.pbmg-btn--secondary {
	background: rgba(255, 255, 255, 0.55);
	color: var(--mauve-dark);
	border: 1px solid rgba(119, 89, 115, 0.3);
}
.pbmg-btn--secondary:hover { background: var(--mauve-tint); border-color: var(--mauve); }

.pbmg-reassure {
	margin: 11px 0 0;
	text-align: center;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--ink-muted);
}

.pbmg-back {
	margin: 20px auto 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--ink-muted);
	text-decoration: none;
	transition: color 0.15s, gap 0.15s;
}
.pbmg-back:hover { color: var(--mauve); gap: 9px; }
.pbmg-back__arrow { line-height: 1; }

/* =========================================================
   Generic fallback — montage of 9 locked tiles
   ========================================================= */
.pbmg-montage {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-auto-rows: 1fr;
	gap: 4px;
}
.pbmg-montage span {
	display: block;
	background-size: cover;
	background-position: center;
	filter: blur(2.5px) saturate(106%);
}
.pbmg-teaser--generic .pbmg-teaser__media { height: 270px; }

/* =========================================================
   Desktop — same single centered column, just a touch larger.
   (No two-pane: the gate stays vertically stacked at all widths.)
   ========================================================= */
@media (min-width: 880px) {
	.pbmg-gate { padding: 40px 40px 48px; }

	.pbmg-teaser__media { height: 300px; }
	.pbmg-teaser--generic .pbmg-teaser__media { height: 340px; }
	.pbmg-teaser__body { padding: 26px 28px 30px; }
	.pbmg-title { font-size: 35px; }

	.pbmg-sarah__text { font-size: 16px; }
	.pbmg-ticks { margin-top: 24px; }
}

@media (max-width: 420px) {
	.pbmg-title { font-size: 28px; }
	.pbmg-teaser__body { padding: 20px 20px 24px; }
	.pbmg-ticks { padding: 16px 16px; gap: 10px 12px; }
}
