/* FFG Exercise Library — matches the SEO landing page system */
.ffgx {
	--ffgx-ink: #0b0b0b;
	--ffgx-ink-2: #111;
	--ffgx-lime: #c8f03c;
	--ffgx-bg: #f4f4f1;
	--ffgx-card: #fff;
	--ffgx-text: #1a1a1a;
	--ffgx-muted: #6b6b6b;
	--ffgx-line: #e4e4de;
	--ffgx-radius: 16px;
	font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
	color: var(--ffgx-text);
	background: var(--ffgx-bg);
	-webkit-font-smoothing: antialiased;
}
.ffgx *, .ffgx *::before, .ffgx *::after { box-sizing: border-box; }
.ffgx h1, .ffgx h2, .ffgx h3 { font-family: inherit; margin: 0; letter-spacing: -0.01em; text-transform: none; }
.ffgx p { margin: 0; }
.ffgx ul { list-style: none; margin: 0; padding: 0; }
.ffgx a { text-decoration: none; color: inherit; }
.ffgx-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.ffgx-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
	font: 600 16px/1 'Poppins', sans-serif; transition: transform .15s ease, filter .15s ease;
}
.ffgx-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.ffgx-btn-lime { background: var(--ffgx-lime); color: var(--ffgx-ink) !important; }
.ffgx-btn-dark { background: var(--ffgx-ink-2); color: #fff !important; }

/* Hero */
.ffgx-hero { background: var(--ffgx-ink); color: #fff; border-top: 2px solid var(--ffgx-lime); overflow: hidden; }
.ffgx-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 64px; }
.ffgx-crumbs { font-size: 14px; color: #b9b9b9; margin-bottom: 56px; }
.ffgx-crumbs a { color: #b9b9b9; }
.ffgx-crumbs a:hover { color: #fff; }
.ffgx-eyebrow { color: var(--ffgx-lime); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px !important; }
.ffgx-hero h1 { color: #fff; font-size: clamp(40px, 5.6vw, 66px); font-weight: 600; line-height: 1.02; margin-bottom: 22px; }
.ffgx-hero h1 em, .ffgx-cta h2 em { font-style: normal; color: var(--ffgx-lime); }
.ffgx-lede { font-size: 18px; line-height: 1.55; color: #d6d6d6; max-width: 500px; margin-bottom: 28px !important; }
.ffgx-hero-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 32px !important; font-size: 14px; color: #b9b9b9; }
.ffgx-hero-stats strong { display: block; color: #fff; font-size: 20px; font-weight: 600; }

/* Hero phone stack */
.ffgx-hero-stack { position: relative; height: 460px; }
.ffgx-phone {
	position: absolute; top: 50%; left: 50%; width: 210px; aspect-ratio: 9 / 16;
	border-radius: 22px; overflow: hidden; background: #1c1c1c;
	box-shadow: 0 24px 60px rgba(0,0,0,.55); border: 3px solid #1f1f1f;
}
.ffgx-phone img, .ffgx-phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ffgx-phone-0 { transform: translate(-50%, -50%); z-index: 3; border-color: var(--ffgx-lime); }
.ffgx-phone-1 { transform: translate(-108%, -46%) rotate(-7deg) scale(.86); z-index: 2; opacity: .75; }
.ffgx-phone-2 { transform: translate(8%, -46%) rotate(7deg) scale(.86); z-index: 1; opacity: .75; }

/* Sections */
.ffgx-main { padding-bottom: 16px; }
.ffgx-section { padding-top: 72px; padding-bottom: 24px; }
.ffgx-section-head { margin-bottom: 28px; }
.ffgx-section-head h2 { font-size: clamp(28px, 3.2vw, 34px); font-weight: 600; margin-bottom: 8px; color: var(--ffgx-text); }
.ffgx-section-head p { color: var(--ffgx-muted); font-size: 16px; line-height: 1.55; max-width: 520px; }

/* Filters */
.ffgx-filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 20px; }
.ffgx-filter-row, .ffgx-chips { min-width: 0; }
.ffgx-filter-row { display: flex; align-items: center; gap: 16px; }
.ffgx-filter-label { flex: 0 0 104px; font-size: 13px; font-weight: 500; color: var(--ffgx-muted); text-transform: uppercase; letter-spacing: .08em; }
.ffgx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ffgx-chip {
	font: 500 15px/1 'Poppins', sans-serif; color: var(--ffgx-text);
	background: #fff; border: 1px solid var(--ffgx-line); border-radius: 999px;
	padding: 11px 17px; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.ffgx-chip:hover { border-color: #bdbdb5; }
.ffgx-chip[aria-pressed="true"] { background: var(--ffgx-ink-2); border-color: var(--ffgx-ink-2); color: #fff; }
.ffgx-chip:focus-visible, .ffgx-clear:focus-visible, .ffgx-card a:focus-visible { outline: 2px solid var(--ffgx-ink); outline-offset: 2px; }

.ffgx-count-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; min-height: 24px; }
.ffgx-count { font-size: 14px; color: var(--ffgx-muted); }
.ffgx-clear { background: none; border: 0; padding: 0; font: 500 14px 'Poppins', sans-serif; color: var(--ffgx-text); text-decoration: underline; cursor: pointer; }

/* Grid + cards */
.ffgx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ffgx-card { background: var(--ffgx-card); border-radius: var(--ffgx-radius); overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: box-shadow .2s, transform .2s; }
.ffgx-card[hidden] { display: none; }
.ffgx-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.10); transform: translateY(-2px); }
.ffgx-card a { display: flex; flex-direction: column; height: 100%; }
.ffgx-card-media { position: relative; aspect-ratio: 9 / 14; background: #1b1b1b; overflow: hidden; }
.ffgx-card-media img, .ffgx-card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ffgx-card-media video.ffgx-preview { z-index: 1; opacity: 0; transition: opacity .2s; }
.ffgx-card-media video.ffgx-preview.is-playing { opacity: 1; }
.ffgx-media-fallback { position: absolute; inset: 0; background: linear-gradient(160deg, #222 0%, #0b0b0b 100%); }
.ffgx-play {
	position: absolute; z-index: 2; left: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%;
	display: grid; place-items: center; background: var(--ffgx-lime); color: var(--ffgx-ink);
	box-shadow: 0 4px 14px rgba(0,0,0,.3); transition: transform .2s;
}
.ffgx-card:hover .ffgx-play { transform: scale(1.08); }
.ffgx-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.ffgx-card-meta { font-size: 12.5px; color: var(--ffgx-muted); margin-bottom: 6px !important; }
.ffgx-card h3 { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--ffgx-text); margin-bottom: 14px; }
.ffgx-card-link { margin-top: auto; font-size: 14px; font-weight: 500; color: var(--ffgx-text); }

/* Empty state */
.ffgx-empty { text-align: center; background: #fff; border-radius: var(--ffgx-radius); padding: 56px 24px; }
.ffgx-empty[hidden] { display: none; }
.ffgx-empty h3 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.ffgx-empty p { color: var(--ffgx-muted); margin-bottom: 22px !important; }

/* CTA */
.ffgx-cta { margin-top: 64px; background: var(--ffgx-ink); color: #fff; }
.ffgx-cta-inner { padding-top: 72px; padding-bottom: 72px; text-align: center; max-width: 760px; }
.ffgx-cta h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; line-height: 1.15; margin-bottom: 16px; }
.ffgx-cta p { color: #d6d6d6; font-size: 17px; line-height: 1.6; margin-bottom: 28px !important; }
.ffgx-cta .ffgx-proof { font-size: 14px; color: #b9b9b9; margin: 18px 0 0 !important; }
.ffgx-proof strong { color: #fff; }

/* Internal links */
.ffgx-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-bottom: 48px !important; }
.ffgx-links a { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 14px; padding: 20px 22px; transition: box-shadow .2s; }
.ffgx-links a:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.ffgx-tag { flex: 0 0 auto; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; background: var(--ffgx-lime); color: var(--ffgx-ink); padding: 5px 10px; border-radius: 999px; }
.ffgx-link-title { flex: 1; font-weight: 500; font-size: 16px; }

/* Responsive */
@media (max-width: 1024px) {
	.ffgx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.ffgx-hero-grid { grid-template-columns: 1fr; gap: 0; padding-bottom: 48px; }
	.ffgx-hero-stack { display: none; }
	.ffgx-crumbs { margin-bottom: 32px; }
	.ffgx-filter-row { flex-direction: column; align-items: stretch; gap: 8px; }
	.ffgx-filter-label { flex: none; }
	.ffgx-links { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.ffgx-wrap { padding: 0 16px; }
	.ffgx-section { padding-top: 52px; }
	.ffgx-chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
	.ffgx-chips::-webkit-scrollbar { display: none; }
	.ffgx-chip { flex: 0 0 auto; padding: 10px 15px; font-size: 14px; }
	.ffgx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.ffgx-card-body { padding: 12px 12px 14px; }
	.ffgx-card h3 { font-size: 14.5px; margin-bottom: 10px; }
	.ffgx-card-meta { font-size: 11.5px; }
	.ffgx-card-link { font-size: 13px; }
	.ffgx-play { width: 32px; height: 32px; left: 10px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.ffgx * { transition: none !important; }
}
