/*
Theme Name: MetaGuard Theme
Theme URI: https://metriqhealth.xyz
Author: Metriq Health
Author URI: https://metriqhealth.xyz
Description: Trilingual (EN / pt-BR / es-ES) marketing theme for MetaGuard — the GLP-1 companion by Metriq Health. Dark, clinical-premium design system derived from the app icon palette. No JavaScript required.
Version: 1.0.6
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: metaguard
Tags: dark, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   TABLE OF CONTENTS
   1.  Fonts & Design Tokens
   2.  Base & Reset
   3.  Typography
   4.  Layout: Container / Sections
   5.  Buttons
   6.  Header & Navigation (+ language switcher)
   7.  Hero
   8.  Trust Cards
   9.  Feature Cards
   10. Science / Methodology
   11. Suite (Metriq Health ecosystem)
   12. Pricing
   13. CTA Band
   14. FAQ Accordion
   15. Footer
   16. Inner Pages (hero, prose, legal)
   17. Blog (grid, cards, single, pagination)
   18. 404
   19. Widgets & WordPress core
   20. Accessibility & Motion
   21. Responsive
   ============================================================ */

/* ============================================================
   1. FONTS & DESIGN TOKENS
   (system font stack only — no third-party font requests, GDPR-safe
   and no render-blocking @import chain)
   ============================================================ */
:root {
	/* Palette — extracted from the MetaGuard app icon (navy + teal shield) */
	--mg-bg:          #0A1F26;   /* page base — deep navy-teal */
	--mg-bg-alt:      #0F2B33;   /* alternating sections */
	--mg-bg-deep:     #07161C;   /* footer, deepest layer */
	--mg-card:        #133540;   /* card surface */
	--mg-card-hover:  #16404D;   /* card surface on hover */
	--mg-line:        rgba(67, 189, 181, 0.16);  /* hairlines */
	--mg-line-strong: rgba(67, 189, 181, 0.34);

	--mg-text:        #EAF4F3;   /* primary text */
	--mg-muted:       #9DB6B4;   /* secondary text */
	--mg-faint:       #6E8A89;   /* tertiary text */

	--mg-brand:        #43BDB5;  /* shield teal */
	--mg-brand-deep:   #0E7C7B;
	--mg-brand-light:  #7FE3DC;
	--mg-gold:         #E0B458;  /* premium accents, badges */
	--mg-danger:       #E4756B;

	/* Effects */
	--mg-glow:        0 0 60px rgba(67, 189, 181, 0.18);
	--mg-shadow-card: 0 10px 30px rgba(4, 18, 23, 0.45);
	--mg-shadow-pop:  0 18px 50px rgba(4, 18, 23, 0.6);

	/* Shape & rhythm */
	--mg-radius:      16px;
	--mg-radius-sm:   10px;
	--mg-radius-pill: 999px;
	--mg-header-h:    76px;

	/* Type */
	--mg-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================================
   2. BASE & RESET
   ============================================================ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--mg-font);
	font-size: 17px;
	line-height: 1.7;
	color: var(--mg-text);
	background-color: var(--mg-bg);
	/* Ambient teal aurora behind everything */
	background-image:
		radial-gradient(ellipse 80% 50% at 50% -10%, rgba(67, 189, 181, 0.14), transparent 70%),
		radial-gradient(ellipse 60% 40% at 100% 30%, rgba(14, 124, 123, 0.10), transparent 70%),
		radial-gradient(ellipse 60% 40% at 0% 60%, rgba(67, 189, 181, 0.06), transparent 70%);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: var(--mg-brand-light);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover,
a:focus {
	color: var(--mg-brand);
}

ul,
ol {
	padding: 0;
	margin: 0;
	list-style: none;
}

::selection {
	background: rgba(67, 189, 181, 0.35);
	color: #fff;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--mg-text);
}

p {
	margin: 0 0 1.2em;
}

.mg-section-title {
	font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.mg-section-sub {
	max-width: 640px;
	margin: 0.6em auto 0;
	font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
	color: var(--mg-muted);
	text-wrap: balance;
}

/* Gradient-highlighted fragment inside big titles (<span> in hero.title) */
.mg-highlight {
	background: linear-gradient(92deg, var(--mg-brand-light) 0%, var(--mg-brand) 55%, var(--mg-brand-deep) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* ============================================================
   4. LAYOUT: CONTAINER / SECTIONS
   ============================================================ */
.mg-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.mg-section {
	position: relative;
	padding: clamp(64px, 8vw, 110px) 0;
}

.mg-section-alt {
	background:
		linear-gradient(180deg, rgba(15, 43, 51, 0.0), rgba(15, 43, 51, 0.85) 12%, rgba(15, 43, 51, 0.85) 88%, rgba(15, 43, 51, 0.0));
}

.mg-section-head {
	text-align: center;
	margin-bottom: clamp(36px, 5vw, 56px);
}

/* Generic card grids */
.mg-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.mg-grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

/* Generic surface card */
.mg-card {
	position: relative;
	padding: 28px;
	background: linear-gradient(180deg, var(--mg-card-hover), var(--mg-card));
	border: 1px solid var(--mg-line);
	border-radius: var(--mg-radius);
	box-shadow: var(--mg-shadow-card);
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.mg-card:hover {
	transform: translateY(-4px);
	border-color: var(--mg-line-strong);
	box-shadow: var(--mg-shadow-pop);
}

.mg-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 18px;
	font-size: 26px;
	background: linear-gradient(135deg, rgba(67, 189, 181, 0.22), rgba(14, 124, 123, 0.16));
	border: 1px solid var(--mg-line-strong);
	border-radius: 14px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mg-card-title {
	font-size: 1.12rem;
	font-weight: 700;
	margin-bottom: 0.45em;
}

.mg-card-text {
	margin: 0;
	font-size: 0.97rem;
	color: var(--mg-muted);
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.mg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 15px 30px;
	font-family: var(--mg-font);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.01em;
	border-radius: var(--mg-radius-pill);
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mg-btn:active {
	transform: translateY(1px) scale(0.99);
}

.mg-btn-primary {
	color: #06232A;
	background: linear-gradient(135deg, var(--mg-brand-light), var(--mg-brand) 60%, var(--mg-brand-deep));
	box-shadow: 0 8px 24px rgba(67, 189, 181, 0.35);
}

.mg-btn-primary:hover,
.mg-btn-primary:focus {
	color: #04191E;
	transform: translateY(-2px);
	box-shadow: 0 14px 34px rgba(67, 189, 181, 0.45);
}

.mg-btn-secondary {
	color: var(--mg-brand-light);
	border-color: var(--mg-line-strong);
	background: rgba(67, 189, 181, 0.08);
}

.mg-btn-secondary:hover,
.mg-btn-secondary:focus {
	color: var(--mg-text);
	border-color: var(--mg-brand);
	background: rgba(67, 189, 181, 0.16);
	transform: translateY(-2px);
}

.mg-btn-ghost {
	color: var(--mg-muted);
	padding: 12px 18px;
}

.mg-btn-ghost:hover,
.mg-btn-ghost:focus {
	color: var(--mg-brand-light);
}

/* ============================================================
   6. HEADER & NAVIGATION (+ LANGUAGE SWITCHER)
   ============================================================ */
.mg-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(10, 31, 38, 0.82);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--mg-line);
}

.mg-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: var(--mg-header-h);
}

/* Brand: icon + wordmark stack */
.mg-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.mg-logo {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(4, 18, 23, 0.5);
}

.mg-brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.mg-brand-name {
	font-size: 1.22rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--mg-text);
}

.mg-brand-name em {
	font-style: normal;
	color: var(--mg-brand);
}

.mg-brand-byline {
	font-size: 0.72rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--mg-faint);
}

/* Primary nav */
.mg-nav .primary-menu {
	display: flex;
	align-items: center;
	gap: 6px;
}

.mg-nav .primary-menu li a {
	display: inline-block;
	padding: 10px 14px;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--mg-muted);
	border-radius: var(--mg-radius-pill);
	transition: color 0.2s ease, background 0.2s ease;
}

.mg-nav .primary-menu li a:hover,
.mg-nav .primary-menu li a:focus,
.mg-nav .primary-menu li.current-menu-item > a {
	color: var(--mg-text);
	background: rgba(67, 189, 181, 0.12);
}

/* Language switcher — EN | PT | ES */
.mg-lang-switch {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 5px;
	background: rgba(67, 189, 181, 0.08);
	border: 1px solid var(--mg-line);
	border-radius: var(--mg-radius-pill);
}

.mg-lang-switch li:not(:first-child)::before {
	content: "";
}

.mg-lang-switch a {
	display: inline-block;
	padding: 5px 11px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--mg-faint);
	border-radius: var(--mg-radius-pill);
	transition: color 0.2s ease, background 0.2s ease;
}

.mg-lang-switch a:hover,
.mg-lang-switch a:focus {
	color: var(--mg-text);
}

.mg-lang-switch a[aria-current="true"] {
	color: #06232A;
	background: linear-gradient(135deg, var(--mg-brand-light), var(--mg-brand));
}

/* CSS-only mobile menu (checkbox hack — theme ships no JS) */
.mg-nav-toggle-label {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	font-size: 1.4rem;
	color: var(--mg-brand-light);
	border: 1px solid var(--mg-line-strong);
	border-radius: var(--mg-radius-sm);
	cursor: pointer;
	user-select: none;
}

/* ============================================================
   7. HERO
   ============================================================ */
.mg-hero {
	position: relative;
	padding: clamp(32px, 4vw, 48px) 0 clamp(64px, 8vw, 100px);
	overflow: hidden;
}

/* Concentric glow echoing the shield icon */
.mg-hero::before {
	content: "";
	position: absolute;
	top: -220px;
	left: 50%;
	width: 720px;
	height: 720px;
	transform: translateX(-50%);
	background: radial-gradient(circle, rgba(67, 189, 181, 0.22) 0%, rgba(14, 124, 123, 0.10) 40%, transparent 70%);
	filter: blur(10px);
	pointer-events: none;
}

.mg-hero-inner {
	position: relative;
	max-width: 860px;
	margin: 0 auto;
	text-align: center;
}

.mg-hero-logo {
	width: 420px;
	height: 420px;
	margin: 0 auto 32px;
	border-radius: 108px;
	box-shadow: 0 18px 50px rgba(67, 189, 181, 0.35);
}

.mg-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 26px;
	padding: 8px 18px;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--mg-gold);
	background: rgba(224, 180, 88, 0.10);
	border: 1px solid rgba(224, 180, 88, 0.35);
	border-radius: var(--mg-radius-pill);
}

.mg-badge::before {
	content: "";
	width: 8px;
	height: 8px;
	background: var(--mg-gold);
	border-radius: 50%;
	box-shadow: 0 0 12px var(--mg-gold);
}

.mg-hero-title {
	font-size: clamp(2.3rem, 1.4rem + 4.6vw, 4.2rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.08;
	margin-bottom: 0.4em;
	text-wrap: balance;
}

.mg-hero-subtitle {
	max-width: 680px;
	margin: 0 auto 36px;
	font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
	color: var(--mg-muted);
	text-wrap: balance;
}

.mg-hero-ctas {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-bottom: clamp(44px, 6vw, 64px);
}

/* Store badges: Play button links out; App Store button is a "coming soon" state */
.mg-store-btn {
	min-width: 230px;
}

.mg-hero-ctas [aria-disabled="true"] {
	opacity: 0.65;
	cursor: default;
}

/* Stats strip */
.mg-hero-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	max-width: 720px;
	margin: 0 auto clamp(32px, 4vw, 44px);
}

.mg-stat {
	padding: 20px 12px;
	background: rgba(19, 53, 64, 0.55);
	border: 1px solid var(--mg-line);
	border-radius: var(--mg-radius);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.mg-stat-number {
	display: block;
	font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	background: linear-gradient(120deg, var(--mg-brand-light), var(--mg-brand));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.mg-stat-label {
	display: block;
	margin-top: 4px;
	font-size: 0.86rem;
	color: var(--mg-muted);
}

/* Capability chips */
.mg-hero-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.mg-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 16px;
	font-size: 0.86rem;
	font-weight: 500;
	color: var(--mg-muted);
	background: rgba(67, 189, 181, 0.07);
	border: 1px solid var(--mg-line);
	border-radius: var(--mg-radius-pill);
}

.mg-chip::before {
	content: "✓";
	font-size: 0.8rem;
	font-weight: 800;
	color: var(--mg-brand);
}

/* ============================================================
   8. TRUST CARDS
   ============================================================ */

/* ============================================================
   9. FEATURE CARDS
   ============================================================ */
.mg-feature-list {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--mg-line);
}

.mg-feature-list li {
	position: relative;
	padding-left: 24px;
	font-size: 0.92rem;
	color: var(--mg-muted);
}

.mg-feature-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	font-size: 0.82rem;
	font-weight: 800;
	color: var(--mg-brand);
}

/* ============================================================
   10. SCIENCE / METHODOLOGY
   ============================================================ */
.mg-citations {
	max-width: 760px;
	margin: 0 auto 28px;
	padding: 0;
	counter-reset: citation;
}

.mg-citations li {
	position: relative;
	counter-increment: citation;
	padding: 18px 22px 18px 64px;
	margin-bottom: 12px;
	font-size: 0.98rem;
	color: var(--mg-muted);
	background: rgba(19, 53, 64, 0.55);
	border: 1px solid var(--mg-line);
	border-radius: var(--mg-radius-sm);
}

.mg-citations li::before {
	content: counter(citation, decimal-leading-zero);
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1rem;
	font-weight: 800;
	color: var(--mg-brand);
	opacity: 0.85;
}

.mg-disclaimer {
	max-width: 760px;
	margin: 0 auto 32px;
	padding: 18px 22px;
	font-size: 0.92rem;
	color: var(--mg-gold);
	background: rgba(224, 180, 88, 0.07);
	border: 1px solid rgba(224, 180, 88, 0.28);
	border-left: 3px solid var(--mg-gold);
	border-radius: var(--mg-radius-sm);
}

.mg-science-cta {
	text-align: center;
}

/* ============================================================
   11. SUITE (METRIQ HEALTH ECOSYSTEM)
   ============================================================ */
.mg-suite-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 18px;
}

.mg-suite-card {
	display: flex;
	flex-direction: column;
	text-align: center;
	padding: 26px 22px;
	background: linear-gradient(180deg, var(--mg-card-hover), var(--mg-card));
	border: 1px solid var(--mg-line);
	border-radius: var(--mg-radius);
	box-shadow: var(--mg-shadow-card);
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.mg-suite-card:hover {
	transform: translateY(-4px);
}

/* The live product card — brand-framed */
.mg-suite-card.is-first {
	border-color: var(--mg-line-strong);
	background:
		linear-gradient(180deg, rgba(67, 189, 181, 0.14), rgba(19, 53, 64, 0.9) 45%),
		var(--mg-card);
	box-shadow: var(--mg-glow), var(--mg-shadow-card);
}

.mg-suite-card.is-first:hover {
	border-color: var(--mg-brand);
}

.mg-suite-icon {
	align-self: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 16px;
	font-size: 24px;
	background: linear-gradient(135deg, rgba(67, 189, 181, 0.22), rgba(14, 124, 123, 0.16));
	border: 1px solid var(--mg-line-strong);
	border-radius: 13px;
}

.mg-suite-card.is-first .mg-suite-icon {
	background: rgba(224, 180, 88, 0.14);
	border-color: rgba(224, 180, 88, 0.4);
}

.mg-suite-title {
	font-size: 1.05rem;
	font-weight: 700;
	margin-bottom: 0.4em;
}

.mg-suite-desc {
	flex: 1;
	margin: 0;
	font-size: 0.9rem;
	color: var(--mg-muted);
}

.mg-suite-badge {
	align-self: center;
	margin-top: 18px;
	padding: 6px 13px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border-radius: var(--mg-radius-pill);
}

.mg-suite-card.is-first .mg-suite-badge {
	color: #06232A;
	background: linear-gradient(135deg, var(--mg-gold), #F0CC86);
}

.mg-suite-card.is-locked .mg-suite-badge {
	color: var(--mg-faint);
	background: rgba(110, 138, 137, 0.12);
	border: 1px solid var(--mg-line);
}

.mg-suite-card.is-locked {
	opacity: 0.82;
}

.mg-suite-card.is-locked .mg-suite-title {
	color: var(--mg-muted);
}

/* Suite cards: compact store / waitlist button (primary = live, secondary = locked) */
.mg-suite-download {
	align-self: center;
	margin-top: 14px;
	padding: 11px 16px;
	font-size: 0.8rem;
	line-height: 1.25;
}

.mg-suite-cta {
	text-align: center;
	margin-top: 34px;
}

/* ============================================================
   12. PRICING
   ============================================================ */
.mg-pricing-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	align-items: stretch;
}

.mg-price-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 30px 26px;
	background: linear-gradient(180deg, var(--mg-card-hover), var(--mg-card));
	border: 1px solid var(--mg-line);
	border-radius: var(--mg-radius);
	box-shadow: var(--mg-shadow-card);
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.mg-price-card:hover {
	transform: translateY(-5px);
	border-color: var(--mg-line-strong);
	box-shadow: var(--mg-shadow-pop);
}

/* Featured (annual) — elevated, brand-framed */
.mg-price-card.is-featured {
	border-color: var(--mg-brand);
	background:
		linear-gradient(180deg, rgba(67, 189, 181, 0.16), rgba(19, 53, 64, 0.94) 40%),
		var(--mg-card);
	box-shadow: var(--mg-glow), var(--mg-shadow-pop);
}

.mg-price-badge {
	position: absolute;
	top: -13px;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	padding: 6px 14px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #06232A;
	background: linear-gradient(135deg, var(--mg-gold), #F0CC86);
	border-radius: var(--mg-radius-pill);
	box-shadow: 0 6px 18px rgba(224, 180, 88, 0.35);
}

.mg-price-name {
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.mg-price-value {
	margin: 10px 0 2px;
	font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.4rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--mg-text);
}

.mg-price-period {
	font-size: 0.84rem;
	color: var(--mg-faint);
	margin-bottom: 14px;
}

.mg-price-desc {
	flex: 1;
	font-size: 0.92rem;
	color: var(--mg-muted);
	padding-bottom: 18px;
	border-bottom: 1px solid var(--mg-line);
	margin-bottom: 18px;
}

.mg-price-features {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 26px;
}

.mg-price-features li {
	position: relative;
	padding-left: 24px;
	font-size: 0.9rem;
	color: var(--mg-muted);
}

.mg-price-features li::before {
	content: "✓";
	position: absolute;
	left: 0;
	font-size: 0.8rem;
	font-weight: 800;
	color: var(--mg-brand);
}

.mg-price-card.is-featured .mg-price-features li {
	color: var(--mg-text);
}

.mg-price-cta {
	margin-top: auto;
	text-align: center;
}

.mg-price-note {
	margin: 30px 0 0;
	text-align: center;
	font-size: 0.85rem;
	color: var(--mg-faint);
}

.mg-price-restore {
	margin: 8px 0 0;
	text-align: center;
	font-size: 0.82rem;
	color: var(--mg-faint);
}

/* ============================================================
   13. CTA BAND
   ============================================================ */
.mg-cta-band {
	position: relative;
	padding: clamp(64px, 8vw, 100px) 0;
	text-align: center;
	overflow: hidden;
	background:
		radial-gradient(ellipse 70% 90% at 50% 110%, rgba(67, 189, 181, 0.28), transparent 65%),
		linear-gradient(180deg, var(--mg-bg-alt), var(--mg-bg-deep));
	border-top: 1px solid var(--mg-line);
	border-bottom: 1px solid var(--mg-line);
}

.mg-cta-title {
	font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.mg-cta-sub {
	max-width: 560px;
	margin: 0.5em auto 34px;
	font-size: 1.08rem;
	color: var(--mg-muted);
	text-wrap: balance;
}

/* ============================================================
   14. FAQ ACCORDION (native <details>)
   ============================================================ */
.mg-faq-list {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mg-faq-item {
	background: linear-gradient(180deg, var(--mg-card-hover), var(--mg-card));
	border: 1px solid var(--mg-line);
	border-radius: var(--mg-radius-sm);
	transition: border-color 0.25s ease;
}

.mg-faq-item[open] {
	border-color: var(--mg-line-strong);
}

.mg-faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 19px 22px;
	font-size: 1.02rem;
	font-weight: 600;
	color: var(--mg-text);
	cursor: pointer;
	list-style: none;
	-webkit-tap-highlight-color: transparent;
}

.mg-faq-item summary::-webkit-details-marker {
	display: none;
}

.mg-faq-item summary::after {
	content: "+";
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	font-size: 1.15rem;
	font-weight: 500;
	color: var(--mg-brand);
	background: rgba(67, 189, 181, 0.10);
	border: 1px solid var(--mg-line);
	border-radius: 50%;
	transition: transform 0.25s ease, background 0.25s ease;
}

.mg-faq-item[open] summary::after {
	content: "−";
	background: rgba(67, 189, 181, 0.22);
	transform: rotate(180deg);
}

.mg-faq-answer {
	padding: 0 22px 22px;
	font-size: 0.97rem;
	color: var(--mg-muted);
}

.mg-faq-answer p:last-child {
	margin-bottom: 0;
}

/* ============================================================
   15. FOOTER
   ============================================================ */
.mg-footer {
	background: var(--mg-bg-deep);
	border-top: 1px solid var(--mg-line);
}

.mg-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 44px;
	padding: clamp(48px, 6vw, 72px) 0 40px;
}

.mg-footer-brand .mg-brand {
	margin-bottom: 16px;
}

.mg-footer-disclaimer {
	max-width: 420px;
	margin: 0;
	font-size: 0.86rem;
	color: var(--mg-faint);
}

.mg-footer-links h3,
.mg-footer-legal h3 {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--mg-faint);
	margin-bottom: 16px;
}

.mg-footer-links ul,
.mg-footer-legal ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mg-footer-links a,
.mg-footer-legal a {
	font-size: 0.95rem;
	color: var(--mg-muted);
}

.mg-footer-links a:hover,
.mg-footer-legal a:hover {
	color: var(--mg-brand-light);
}

.mg-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 22px 0 30px;
	border-top: 1px solid rgba(67, 189, 181, 0.10);
	font-size: 0.84rem;
	color: var(--mg-faint);
}

.mg-footer-bottom a {
	color: var(--mg-muted);
}

/* ============================================================
   16. INNER PAGES (hero, prose, legal)
   ============================================================ */
.mg-page-hero {
	position: relative;
	padding: clamp(64px, 8vw, 100px) 0 clamp(40px, 5vw, 60px);
	text-align: center;
	overflow: hidden;
}

.mg-page-hero::before {
	content: "";
	position: absolute;
	top: -260px;
	left: 50%;
	width: 640px;
	height: 640px;
	transform: translateX(-50%);
	background: radial-gradient(circle, rgba(67, 189, 181, 0.16), transparent 65%);
	pointer-events: none;
}

.mg-page-title {
	position: relative;
	font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.mg-page-sub {
	position: relative;
	max-width: 640px;
	margin: 0.5em auto 0;
	font-size: 1.1rem;
	color: var(--mg-muted);
	text-wrap: balance;
}

.mg-prose {
	max-width: 760px;
	margin: 0 auto;
	font-size: 1.02rem;
	color: var(--mg-muted);
}

.mg-prose h2 {
	margin: 2em 0 0.6em;
	font-size: 1.45rem;
	color: var(--mg-text);
}

.mg-prose h3 {
	margin: 1.8em 0 0.5em;
	font-size: 1.15rem;
	color: var(--mg-text);
}

.mg-prose p {
	margin-bottom: 1.2em;
}

.mg-prose a {
	text-decoration: underline;
	text-decoration-color: rgba(67, 189, 181, 0.45);
	text-underline-offset: 3px;
}

.mg-prose ul,
.mg-prose ol {
	margin: 0 0 1.4em;
	padding-left: 4px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mg-prose ul li,
.mg-prose ol li {
	position: relative;
	padding-left: 26px;
}

.mg-prose ul li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--mg-brand);
	font-weight: 800;
	font-size: 0.85rem;
}

.mg-legal-updated {
	margin-bottom: 32px;
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--mg-faint);
}

.mg-about-cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-top: 48px;
}

/* ============================================================
   17. BLOG (grid, cards, single, pagination)
   ============================================================ */
.mg-post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.mg-post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: linear-gradient(180deg, var(--mg-card-hover), var(--mg-card));
	border: 1px solid var(--mg-line);
	border-radius: var(--mg-radius);
	box-shadow: var(--mg-shadow-card);
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.mg-post-card:hover {
	transform: translateY(-4px);
	border-color: var(--mg-line-strong);
	box-shadow: var(--mg-shadow-pop);
}

.mg-post-card-thumb {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-bottom: 1px solid var(--mg-line);
}

.mg-post-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.mg-post-card:hover .mg-post-card-thumb img {
	transform: scale(1.04);
}

.mg-post-card-thumb--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	background:
		radial-gradient(circle at 30% 25%, rgba(67, 189, 181, 0.2), transparent 60%),
		rgba(10, 31, 38, 0.5);
	border-bottom: 1px solid var(--mg-line);
}

.mg-post-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 24px;
}

.mg-post-card-title {
	font-size: 1.15rem;
	margin-bottom: 0.4em;
}

.mg-post-card-title a {
	color: var(--mg-text);
}

.mg-post-card-title a:hover {
	color: var(--mg-brand-light);
}

.mg-post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin-bottom: 12px;
	font-size: 0.8rem;
	color: var(--mg-faint);
}

.mg-post-excerpt {
	flex: 1;
	margin: 0 0 16px;
	font-size: 0.94rem;
	color: var(--mg-muted);
}

.mg-readmore {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--mg-brand);
}

.mg-readmore:hover {
	color: var(--mg-brand-light);
}

/* Single post */
.mg-single {
	max-width: 760px;
	margin: 0 auto;
}

.mg-single-hero {
	text-align: center;
	margin-bottom: 36px;
}

.mg-single-title {
	font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.8rem);
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.mg-single-thumb {
	margin: 0 0 36px;
	border-radius: var(--mg-radius);
	overflow: hidden;
	border: 1px solid var(--mg-line);
}

.mg-single-content p,
.mg-single-content li {
	font-size: 1.05rem;
	color: var(--mg-muted);
	line-height: 1.85;
}

.mg-single-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 44px;
	padding-top: 26px;
	border-top: 1px solid var(--mg-line);
	font-size: 0.88rem;
	color: var(--mg-faint);
}

.mg-tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mg-tag-list a {
	padding: 5px 13px;
	font-size: 0.78rem;
	color: var(--mg-muted);
	background: rgba(67, 189, 181, 0.08);
	border: 1px solid var(--mg-line);
	border-radius: var(--mg-radius-pill);
}

.mg-tag-list a:hover {
	color: var(--mg-text);
	border-color: var(--mg-line-strong);
}

/* Pagination + posts navigation */
.mg-pagination,
.post-navigation {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: clamp(40px, 5vw, 60px);
}

.mg-pagination .page-numbers,
.post-navigation .nav-previous a,
.post-navigation .nav-next a {
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--mg-muted);
	background: rgba(19, 53, 64, 0.6);
	border: 1px solid var(--mg-line);
	border-radius: var(--mg-radius-pill);
}

.mg-pagination .page-numbers.current {
	color: #06232A;
	background: linear-gradient(135deg, var(--mg-brand-light), var(--mg-brand));
	border-color: transparent;
}

.mg-pagination .page-numbers:hover:not(.current),
.post-navigation a:hover {
	color: var(--mg-text);
	border-color: var(--mg-line-strong);
}

.post-navigation {
	justify-content: space-between;
}

/* Empty state */
.mg-empty {
	padding: 60px 30px;
	text-align: center;
	color: var(--mg-muted);
	background: rgba(19, 53, 64, 0.4);
	border: 1px dashed var(--mg-line-strong);
	border-radius: var(--mg-radius);
}

/* ============================================================
   18. 404
   ============================================================ */
.mg-404 {
	min-height: 62vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 80px 0;
}

.mg-404-code {
	font-size: clamp(6rem, 4rem + 10vw, 11rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.05em;
	background: linear-gradient(135deg, var(--mg-brand-light), var(--mg-brand) 50%, var(--mg-brand-deep));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	margin-bottom: 0.1em;
}

.mg-404-title {
	font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
	font-weight: 700;
	margin-bottom: 0.4em;
}

.mg-404-text {
	color: var(--mg-muted);
	margin-bottom: 28px;
}

/* ============================================================
   19. WIDGETS & WORDPRESS CORE
   ============================================================ */
.widget {
	margin-bottom: 28px;
}

.widget-title {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--mg-faint);
}

.widget ul {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 12px;
}

.widget a {
	color: var(--mg-muted);
}

.widget a:hover {
	color: var(--mg-brand-light);
}

/* Core admin-bar compensation & embeds */
.admin-bar .mg-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .mg-header {
		top: 46px;
	}
}

.wp-block-image img,
.wp-caption img {
	border-radius: var(--mg-radius-sm);
}

.sticky .mg-post-card-title::before,
.sticky .mg-single-title::before {
	content: "★";
	margin-right: 8px;
	color: var(--mg-gold);
}

.bypostauthor > article {
	border-color: var(--mg-line-strong);
}

/* Alignment core classes */
.alignleft {
	float: left;
	margin: 0 24px 16px 0;
}

.alignright {
	float: right;
	margin: 0 0 16px 24px;
}

.aligncenter {
	display: block;
	margin: 0 auto 24px;
}

/* ============================================================
   20. ACCESSIBILITY & MOTION
   ============================================================ */
:focus-visible {
	outline: 2px solid var(--mg-brand);
	outline-offset: 3px;
	border-radius: 4px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	padding: 12px 20px;
	font-weight: 600;
	color: #06232A;
	background: var(--mg-brand);
	border-radius: 0 0 10px 0;
}

.skip-link:focus {
	left: 0;
	color: #06232A;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ============================================================
   21. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
	.mg-grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.mg-grid-3,
	.mg-post-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.mg-suite-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.mg-suite-grid .is-first {
		grid-column: 1 / -1;
	}

	.mg-pricing-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 860px) {
	/* Mobile navigation — CSS-only drawer */
	.mg-nav-toggle-label {
		display: inline-flex;
	}

	.mg-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		padding: 12px 24px 20px;
		background: rgba(7, 22, 28, 0.97);
		-webkit-backdrop-filter: blur(16px);
		backdrop-filter: blur(16px);
		border-bottom: 1px solid var(--mg-line-strong);
		box-shadow: var(--mg-shadow-pop);
	}

	.mg-nav-toggle:checked ~ .mg-header-inner .mg-nav {
		display: block;
	}

	.mg-nav .primary-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
	}

	.mg-nav .primary-menu li a {
		display: block;
		padding: 13px 16px;
		font-size: 1.02rem;
		border-radius: var(--mg-radius-sm);
	}

	/* Single language switcher, always in the header bar (top right) */
	.mg-header-lang .mg-lang-switch {
		padding: 3px;
	}

	.mg-header-lang .mg-lang-switch a {
		padding: 4px 8px;
		font-size: 0.7rem;
	}
}

@media (max-width: 640px) {
	body {
		font-size: 16px;
	}

	.mg-hero-logo {
		width: 300px;
		height: 300px;
		border-radius: 76px;
	}

	.mg-grid-3,
	.mg-grid-4,
	.mg-post-grid,
	.mg-pricing-grid,
	.mg-suite-grid {
		grid-template-columns: 1fr;
	}

	.mg-suite-grid .is-first {
		grid-column: auto;
	}

	.mg-hero-stats {
		grid-template-columns: 1fr;
		max-width: 360px;
	}

	.mg-hero-ctas .mg-btn {
		width: 100%;
	}

	.mg-footer-grid {
		grid-template-columns: 1fr;
		gap: 34px;
	}

	.mg-footer-bottom {
		flex-direction: column;
		text-align: center;
	}

	.mg-faq-item summary {
		font-size: 0.95rem;
	}
}

/* ============================================================
   22. LATE COMPONENTS (added with their templates)
   ============================================================ */

/* About page pull-quote */
.mg-quote {
	margin: 44px 0 8px;
	padding: 30px 34px;
	text-align: center;
	font-size: clamp(1.15rem, 1rem + 0.8vw, 1.45rem);
	font-weight: 600;
	color: var(--mg-text);
	background:
		radial-gradient(ellipse 60% 100% at 50% 0%, rgba(67, 189, 181, 0.12), transparent 70%),
		rgba(19, 53, 64, 0.55);
	border: 1px solid var(--mg-line);
	border-radius: var(--mg-radius);
}

.mg-quote p {
	margin: 0;
}

/* Footer contact line under the disclaimer */
.mg-footer-contact {
	margin: 14px 0 0;
	font-size: 0.9rem;
}

.mg-footer-contact a {
	color: var(--mg-muted);
	font-weight: 600;
}

.mg-footer-contact a:hover {
	color: var(--mg-brand-light);
}
