/* ==========================================================================
   WooPlugins Theme - Main Stylesheet
   Light Sky + Airy Design System — Actulus Inspired
   Heritage Color: #0B0C0F
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
    /* Brand — Heritage #0B0C0F (secondary accent) */
    --color-primary: #2563eb;
    --color-primary-light: #eff6ff;
    --color-primary-dark: #1d4ed8;
    --color-primary-hover: #1e40af;
    --color-primary-rgb: 37, 99, 235;

    /* Heritage Dark — #0B0C0F */
    --color-heritage: #0B0C0F;
    --color-heritage-light: #1a1b20;
    --color-heritage-rgb: 11, 12, 15;

    /* Accent — Bright Blue */
    --color-accent: #2563eb;
    --color-accent-light: #eff6ff;

    /* Neutrals */
    --color-bg: #ffffff;
    --color-bg-alt: #f8fbff;
    --color-bg-sky: #e8f4fd;
    --color-bg-dark: #0B0C0F;
    --color-bg-dark-alt: #1a1b20;
    --color-text: #0B0C0F;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    --color-text-on-dark: #e2e8f0;
    --color-border: #e2e8f0;
    --color-border-light: #f0f4f8;

    /* Plugin Accents */
    --color-crm: #2563eb;
    --color-crm-light: #eff6ff;
    --color-crm-dark: #1d4ed8;
    --color-loyalty: #7c3aed;
    --color-loyalty-light: #f5f3ff;
    --color-loyalty-dark: #5b21b6;
    --color-seo: #0891b2;
    --color-seo-light: #ecfeff;
    --color-seo-dark: #0e7490;

    /* Semantic */
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-warning: #f59e0b;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Layout */
    --container-max: 1280px;
    --container-narrow: 800px;
    --header-height: 72px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows — soft & airy */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.06);
    --shadow-xl: 0 16px 40px rgba(0,0,0,0.08);
    --shadow-glow: 0 0 30px rgba(37,99,235,0.15);

    /* Transitions */
    --transition: 150ms ease;
    --transition-slow: 300ms ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary); }
ul, ol { list-style: none; }

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: 1400px; }

.section {
    padding: var(--space-20) 0;
}
.section--lg { padding: var(--space-24) 0; }
.section--dark {
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark);
}
.section--alt { background: var(--color-bg-alt); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    letter-spacing: -0.02em;
}
.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark h4, .section--dark h5, .section--dark h6 {
    color: #fff;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

.section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-16);
}
.section__label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}
.section--dark .section__label {
    background: rgba(37,99,235,0.2);
    color: #cbd5e1;
}
.section__title { margin-bottom: var(--space-4); }
.section__subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    line-height: 1.7;
}
.section--dark .section__subtitle { color: var(--color-text-light); }

.prose { max-width: 65ch; }
.prose p { margin-bottom: var(--space-4); }
.prose h2 { margin: var(--space-12) 0 var(--space-4); font-size: var(--text-2xl); }
.prose h3 { margin: var(--space-8) 0 var(--space-3); font-size: var(--text-xl); }
.prose ul, .prose ol { margin-bottom: var(--space-4); padding-left: var(--space-6); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: var(--space-2); }
.prose code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    padding: 0.15em 0.4em;
    border-radius: var(--radius-sm);
}
.prose pre {
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin-bottom: var(--space-6);
    border: 1px solid rgba(37,99,235,0.15);
}
.prose pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
}

/* ---------- Buttons — Actulus-style rounded ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-sm);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-slow);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.btn--primary {
    background: #0B0C0F;
    color: #fff;
    border-color: #0B0C0F;
    box-shadow: 0 2px 8px rgba(11,12,15,0.15);
}
.btn--primary:hover {
    background: #1a1b20;
    border-color: #1a1b20;
    color: #fff;
    box-shadow: 0 6px 20px rgba(11,12,15,0.25);
    transform: translateY(-2px);
}

.btn--secondary {
    background: var(--color-bg);
    color: var(--color-text);
    border-color: var(--color-border);
}
.btn--secondary:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text);
    border-color: transparent;
}
.btn--ghost:hover {
    background: rgba(37,99,235,0.06);
    color: var(--color-primary);
}

.btn--dark {
    background: #0B0C0F;
    color: #fff;
}
.btn--dark:hover { background: #1a1b20; color: #fff; }

.btn--blue {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.btn--blue:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
    box-shadow: 0 6px 20px rgba(37,99,235,0.25);
    transform: translateY(-2px);
}

.btn--white {
    background: #fff;
    color: #0B0C0F;
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.btn--white:hover {
    background: #f8fbff;
    border-color: rgba(0,0,0,0.12);
    color: #0B0C0F;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.btn--sm { padding: 0.5rem 1.125rem; font-size: 0.75rem; letter-spacing: 0.01em; }
.btn--lg { padding: 1rem 2rem; font-size: var(--text-base); }
.btn--xl { padding: 1.125rem 2.5rem; font-size: var(--text-lg); }
.btn--pill { border-radius: 9999px; }

.btn--accent {
    background: var(--accent-color, var(--color-primary));
    color: #fff;
    border-color: var(--accent-color, var(--color-primary));
}
.btn--accent:hover {
    filter: brightness(1.1);
    color: #fff;
    box-shadow: 0 0 24px rgba(var(--color-primary-rgb), 0.25);
}

.btn--glow {
    box-shadow: 0 0 20px rgba(37,99,235,0.2);
}
.btn--glow:hover {
    box-shadow: 0 0 40px rgba(37,99,235,0.35);
}

/* Outline white for dark sections */
.btn--outline-white {
    background: transparent;
    color: #0B0C0F;
    border: 1.5px solid rgba(0,0,0,0.15);
}
.btn--outline-white:hover {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.3);
    color: #0B0C0F;
}

/* ---------- Header — Floating Pill (Actulus-style) ---------- */
.site-header {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: calc(100% - 48px);
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 9999px;
    height: var(--header-height);
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* Dark variant still supported but overridden by default */
.site-header--dark {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0,0,0,0.06);
}
.site-header--dark .site-header__logo,
.site-header--dark .site-nav__link,
.site-header--dark .site-nav__dropdown-trigger {
    color: #0B0C0F;
}
.site-header--dark .site-header__logo:hover,
.site-header--dark .site-nav__link:hover,
.site-header--dark .site-nav__dropdown-trigger:hover {
    color: var(--color-primary);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-header__logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-text);
    text-decoration: none;
    gap: var(--space-2);
    letter-spacing: -0.01em;
}
.site-header__logo:hover { color: var(--color-text); }
.site-header__logo-icon { display: flex; color: var(--color-primary); }
.site-header__logo .custom-logo { height: 32px; width: auto; }

/* Nav */
.site-nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.site-nav__link {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-4);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-muted);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font-body);
    letter-spacing: 0.01em;
}
.site-nav__link:hover { color: var(--color-primary); background: rgba(37,99,235,0.06); }

.site-nav__link .icon { transition: transform var(--transition); }
.site-nav__dropdown-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }

/* Dropdown */
.site-nav__item--has-dropdown { position: relative; }
.site-nav__dropdown {
    position: absolute;
    top: calc(100% + var(--space-2));
    left: 50%;
    transform: translateX(-50%);
    width: 380px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}
.site-nav__item--has-dropdown:hover .site-nav__dropdown,
.site-nav__dropdown-trigger[aria-expanded="true"] + .site-nav__dropdown {
    opacity: 1;
    visibility: visible;
}

.site-nav__dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    color: var(--color-text);
    text-decoration: none;
    transition: all var(--transition);
}
.site-nav__dropdown-item:hover { background: var(--color-primary-light); color: var(--color-primary-dark); }
.site-nav__dropdown-icon { flex-shrink: 0; margin-top: 2px; }
.site-nav__dropdown-content { display: flex; flex-direction: column; gap: 2px; }
.site-nav__dropdown-content strong { font-size: var(--text-sm); font-weight: 600; }
.site-nav__dropdown-content small { font-size: var(--text-xs); color: var(--color-text-muted); }

.site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.site-header__mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    color: var(--color-text);
}
.site-header__mobile-icon--close { display: none; }
.site-header__mobile-toggle[aria-expanded="true"] .site-header__mobile-icon--open { display: none; }
.site-header__mobile-toggle[aria-expanded="true"] .site-header__mobile-icon--close { display: block; }
.mobile-nav-actions { display: none; }

/* Space for floating pill header */
.site-main { padding-top: calc(var(--header-height) + 32px); }
.site-main:has(.hero),
.site-main:has(.v2-hero),
.site-main:has(.plugin-hero),
.site-main:has(.page-hero),
.site-main:has(.auth-section) { padding-top: 0; }

/* ---------- Hero — Light Sky ---------- */
.hero {
    background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 40%, #f8fbff 80%, #ffffff 100%);
    color: var(--color-text);
    padding: calc(var(--header-height) + var(--space-24) + 32px) 0 var(--space-20);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(37,99,235,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-5);
    font-size: var(--text-sm);
    color: #475569;
    margin-bottom: var(--space-8);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    backdrop-filter: blur(8px);
}
.hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2563eb;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(37,99,235,0.3); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(37,99,235,0); }
}

.hero__title {
    font-size: var(--text-6xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    letter-spacing: -0.03em;
    color: #0B0C0F;
}
.hero__title span {
    color: var(--color-primary);
    -webkit-text-fill-color: var(--color-primary);
    background: none;
}

.hero__subtitle {
    font-size: var(--text-xl);
    color: #64748b;
    max-width: 600px;
    margin: 0 auto var(--space-10);
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ---------- Stats Bar ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    padding: var(--space-12) 0;
    border-top: 1px solid var(--color-border);
}
.stat { text-align: center; }
.stat__number {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}
.stat__label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-1);
}

/* ---------- Plugin Cards ---------- */
.plugin-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.plugin-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}
.plugin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--card-accent), var(--color-accent));
    opacity: 0;
    transition: opacity var(--transition-slow);
}
.plugin-card:hover::before {
    opacity: 1;
}
.plugin-card:hover {
    border-color: rgba(37,99,235,0.3);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.plugin-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    color: var(--card-accent);
    background: var(--card-accent-light);
}

.plugin-card__name {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
}
.plugin-card__tagline {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.plugin-card__features {
    margin-bottom: var(--space-6);
}
.plugin-card__feature {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    padding: var(--space-2) 0;
}
.plugin-card__feature .icon { color: var(--color-primary); flex-shrink: 0; }

.plugin-card__price {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}
.plugin-card__price strong {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-text);
}

.plugin-card__cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all var(--transition-slow);
    border: none;
    cursor: pointer;
}
.plugin-card__cta:hover {
    background: var(--color-primary-hover);
    color: #fff;
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.testimonial {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition-slow);
    border-left: 3px solid var(--color-primary);
}
.testimonial:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.testimonial__stars {
    color: #f59e0b;
    margin-bottom: var(--space-4);
    display: flex;
    gap: 2px;
}
.testimonial__text {
    font-size: var(--text-base);
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}
.testimonial__author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
.testimonial__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--color-primary);
}
.testimonial__name { font-weight: 600; font-size: var(--text-sm); }
.testimonial__role { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ---------- CTA Banner ---------- */
.cta-banner {
    background: linear-gradient(135deg, #0f0b2e 0%, #1a1145 50%, #0B0C0F 100%);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: var(--space-16) var(--space-12);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(37,99,235,0.2) 0%, transparent 70%);
    pointer-events: none;
}
.cta-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37,99,235,0.5), transparent);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner__title {
    font-size: var(--text-4xl);
    font-weight: 800;
    margin-bottom: var(--space-4);
    color: #fff;
}
.cta-banner__text {
    font-size: var(--text-lg);
    color: rgba(196,181,253,0.7);
    margin-bottom: var(--space-8);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Feature Grid ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.feature-item {
    padding: var(--space-8);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-slow);
    background: var(--color-bg);
}
.feature-item:hover {
    border-color: rgba(37,99,235,0.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-item__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    color: var(--color-primary);
    background: var(--color-primary-light);
}
.feature-item__title {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-2);
}
.feature-item__desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ---------- Plugin Page Hero ---------- */
.plugin-hero {
    background: linear-gradient(135deg, #0f0b2e 0%, #1a1145 50%, #0B0C0F 100%);
    color: #fff;
    padding: calc(var(--header-height) + var(--space-24)) 0 var(--space-16);
    position: relative;
    overflow: hidden;
}
.plugin-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 30%, rgba(139,92,246,0.08) 0%, transparent 50%);
    pointer-events: none;
}
.plugin-hero__inner {
    position: relative;
    max-width: 700px;
}
.plugin-hero__icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    color: #fff;
    background: rgba(37,99,235,0.25);
    border: 1px solid rgba(37,99,235,0.3);
}
.plugin-hero__title {
    font-size: var(--text-5xl);
    font-weight: 800;
    margin-bottom: var(--space-4);
    color: #fff;
}
.plugin-hero__desc {
    font-size: var(--text-xl);
    color: rgba(196,181,253,0.7);
    line-height: 1.7;
    margin-bottom: var(--space-8);
}
.plugin-hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.plugin-hero__price {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: rgba(196,181,253,0.6);
    margin-top: var(--space-4);
}
.plugin-hero__price strong {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: #fff;
}

/* ---------- Pricing ---------- */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-12);
}
.pricing-toggle__label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
}
.pricing-toggle__label--active { color: var(--color-text); font-weight: 600; }

.pricing-toggle__switch {
    position: relative;
    width: 52px;
    height: 28px;
    background: var(--color-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--transition);
    border: none;
}
.pricing-toggle__switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    transition: transform var(--transition);
    box-shadow: var(--shadow-sm);
}
.pricing-toggle__switch[aria-checked="true"] {
    background: var(--color-primary);
}
.pricing-toggle__switch[aria-checked="true"]::after {
    transform: translateX(24px);
}

.pricing-toggle__badge {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    align-items: start;
}

.pricing-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    position: relative;
    transition: all var(--transition-slow);
}
.pricing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.pricing-card--featured {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--color-primary);
}
.pricing-card--featured:hover {
    box-shadow: var(--shadow-xl), 0 0 0 1px var(--color-primary), var(--shadow-glow);
}
.pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 4px 18px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}

.pricing-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
}
.pricing-card__name {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-1);
}
.pricing-card__tagline {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
}

.pricing-card__price {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border);
}
.pricing-card__amount {
    font-size: var(--text-5xl);
    font-weight: 800;
    letter-spacing: -0.03em;
}
.pricing-card__period {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}
.pricing-card__annual-note {
    font-size: var(--text-xs);
    color: var(--color-text-light);
    margin-top: var(--space-1);
}

.pricing-card__features {
    margin-bottom: var(--space-8);
}
.pricing-card__feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: var(--text-sm);
    padding: var(--space-2) 0;
    color: var(--color-text-muted);
}
.pricing-card__feature .icon {
    flex-shrink: 0;
    color: var(--color-primary);
    margin-top: 1px;
}

.pricing-card__cta {
    display: block;
    width: 100%;
    text-align: center;
}

/* Single pricing table (on plugin pages) */
.pricing-table {
    max-width: 480px;
    margin: 0 auto;
}

/* ---------- FAQ Accordion ---------- */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}
.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-6) 0;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
    transition: color var(--transition);
}
.faq-item__question:hover { color: var(--color-primary); }
.faq-item__question .icon {
    flex-shrink: 0;
    transition: transform var(--transition);
    color: var(--color-primary);
}
.faq-item__question[aria-expanded="true"] .icon {
    transform: rotate(180deg);
}
.faq-item__answer {
    display: none;
    padding-bottom: var(--space-6);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.7;
}
.faq-item__answer[aria-hidden="false"] {
    display: block;
}

/* ---------- Docs Layout ---------- */
.docs-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-12);
    align-items: start;
}

.docs-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-8));
    max-height: calc(100vh - var(--header-height) - var(--space-16));
    overflow-y: auto;
    padding-right: var(--space-4);
}
.docs-sidebar__section {
    margin-bottom: var(--space-6);
}
.docs-sidebar__title {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
}
.docs-sidebar__link {
    display: block;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    border-left: 2px solid transparent;
}
.docs-sidebar__link:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
}
.docs-sidebar__link--active {
    color: var(--color-primary);
    background: var(--color-primary-light);
    border-left-color: var(--color-primary);
    font-weight: 500;
}

.docs-content { min-width: 0; }

/* ---------- My Account ---------- */
.license-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}
.license-table th {
    text-align: left;
    padding: var(--space-3) var(--space-4);
    background: var(--color-primary-light);
    font-weight: 600;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary-dark);
    border-bottom: 2px solid rgba(37,99,235,0.15);
}
.license-table td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.license-key {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    background: var(--color-bg-alt);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    user-select: all;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
}
.badge--active { background: #d1fae5; color: #059669; }
.badge--expired { background: #fef2f2; color: var(--color-error); }
.badge--monthly { background: var(--color-primary-light); color: var(--color-primary-dark); }
.badge--annual { background: var(--color-accent-light); color: var(--color-loyalty-dark); }
.badge--lifetime { background: var(--color-bg-alt); color: var(--color-text); }

/* ---------- WooCommerce Overrides ---------- */
/* WooCommerce My Account Layout */
.woocommerce-account .site-main {
    padding: var(--space-12) 0 var(--space-16);
}
.woocommerce-account .container {
    max-width: 1400px;
}
.woocommerce-account .entry-header {
    max-width: 1400px;
    margin: 0 auto var(--space-8);
    padding: 0 var(--space-6);
}
.woocommerce-account .entry-title {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--color-heading);
    letter-spacing: -0.02em;
}
.woocommerce-account .woocommerce {
    display: flex;
    gap: var(--space-10);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    align-items: flex-start;
}

/* Sidebar Navigation */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 450;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition);
    text-decoration: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child a {
    border-bottom: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 600;
    border-left: 3px solid var(--color-primary);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child a {
    color: #dc2626;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child a:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Main Content Area */
.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-10);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: var(--space-4);
}
.woocommerce-account .woocommerce-MyAccount-content a {
    color: var(--color-primary);
    text-decoration: none;
}
.woocommerce-account .woocommerce-MyAccount-content a:hover {
    text-decoration: underline;
}

/* WooCommerce Tables in Account */
.woocommerce-account table.woocommerce-orders-table,
.woocommerce-account table.shop_table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-size: var(--text-sm);
}
.woocommerce-account table.shop_table thead th {
    background: var(--color-bg-muted);
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}
.woocommerce-account table.shop_table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}
.woocommerce-account table.shop_table tr:last-child td {
    border-bottom: none;
}

/* WooCommerce Notices in Account */
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-message--info {
    background: var(--color-primary-light);
    border: 1px solid var(--color-primary);
    border-left: 4px solid var(--color-primary);
    color: var(--color-primary-dark);
    padding: 16px 20px 16px 48px;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
    position: relative;
    list-style: none;
}
.woocommerce-account .woocommerce-message::before,
.woocommerce-account .woocommerce-info::before {
    color: var(--color-primary);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    line-height: 1;
}
.woocommerce-account .woocommerce-message--info p {
    margin: 0;
}

/* WooCommerce Forms in Account */
.woocommerce-account .woocommerce-EditAccountForm .woocommerce-form-row,
.woocommerce-account .woocommerce-address-fields .form-row {
    margin-bottom: var(--space-4);
}
.woocommerce-account .woocommerce-EditAccountForm label,
.woocommerce-account .woocommerce-address-fields label {
    display: block;
    margin-bottom: var(--space-1);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-heading);
}
.woocommerce-account .woocommerce-EditAccountForm input[type="text"],
.woocommerce-account .woocommerce-EditAccountForm input[type="email"],
.woocommerce-account .woocommerce-EditAccountForm input[type="password"],
.woocommerce-account .woocommerce-address-fields input[type="text"],
.woocommerce-account .woocommerce-address-fields select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-family: var(--font-body);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.woocommerce-account .woocommerce-EditAccountForm input:focus,
.woocommerce-account .woocommerce-address-fields input:focus,
.woocommerce-account .woocommerce-address-fields select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* WooCommerce buttons */
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button {
    background: var(--color-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    padding: 0.75rem 1.5rem !important;
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    font-size: var(--text-sm) !important;
    transition: all var(--transition) !important;
}
.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover {
    background: var(--color-primary-hover) !important;
    box-shadow: var(--shadow-glow) !important;
}

.woocommerce .button.alt,
.woocommerce button.button.alt {
    background: var(--color-bg-dark) !important;
}

/* Cancel subscription button */
.btn--cancel {
    background: transparent;
    color: var(--color-error);
    border: 1px solid var(--color-error);
}
.btn--cancel:hover {
    background: var(--color-error);
    color: #fff;
}

/* ---------- Comparison Table ---------- */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}
.comparison-table th {
    padding: var(--space-4);
    text-align: center;
    font-weight: 700;
    background: var(--color-primary-light);
    border-bottom: 2px solid rgba(37,99,235,0.15);
}
.comparison-table th:first-child { text-align: left; }
.comparison-table td {
    padding: var(--space-3) var(--space-4);
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}
.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}
.comparison-table .icon--check { color: var(--color-primary); }
.comparison-table .icon--dash { color: var(--color-text-light); }

/* ---------- Entry / Page Content ---------- */
.entry__title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-8);
}

/* ---------- 404 ---------- */
.error-404 {
    text-align: center;
    padding: var(--space-24) 0;
}
.error-404__code {
    font-size: 10rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-4);
}

/* ---------- Forms ---------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="search"],
textarea,
select {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--color-text);
    transition: all var(--transition);
    outline: none;
    width: 100%;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .plugin-cards,
    .pricing-grid,
    .testimonials-grid,
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }

    /* Account tablet */
    .woocommerce-account .container {
        max-width: 100%;
    }
    .woocommerce-account .woocommerce {
        max-width: 100%;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation {
        width: 240px;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    .woocommerce-account .woocommerce-MyAccount-content {
        padding: var(--space-8);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    h1 { font-size: var(--text-4xl); }
    h2 { font-size: var(--text-3xl); }

    .section { padding: var(--space-12) 0; }
    .section--lg { padding: var(--space-16) 0; }

    .hero { padding: var(--space-6) 0 var(--space-10); }
    .hero__title { font-size: var(--text-4xl); }
    .hero__subtitle { font-size: var(--text-base); }

    .plugin-hero { padding: var(--space-16) 0 var(--space-10); }
    .plugin-hero__title { font-size: var(--text-4xl); }

    .site-nav { display: none; }
    .site-header__mobile-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; }
    .site-header__actions .btn { display: none; }

    .site-header {
        position: sticky;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    body.admin-bar .site-header {
        top: 0;
    }
    /* Sticky header is in-flow on mobile, no padding needed */
    .site-main { padding-top: 0; }
    /* When nav is open, expand header to full viewport */
    .site-header:has(.site-nav--open) {
        height: 100vh;
        height: 100dvh;
    }
    .site-header:has(.site-nav--open) .site-header__inner {
        height: 100%;
        flex-wrap: wrap;
        align-content: flex-start;
    }
    .site-header:has(.site-nav--open) .site-header__logo {
        flex: 1;
    }
    .site-nav--open {
        display: flex;
        flex-direction: column;
        width: 100%;
        order: 10;
        background: var(--color-bg);
        padding: var(--space-6) 0;
        overflow-y: auto;
        flex-basis: 100%;
    }
    .site-nav--open .site-nav__list {
        flex-direction: column;
        align-items: stretch;
    }
    .site-nav--open .site-nav__link,
    .site-nav--open .site-nav__dropdown-trigger {
        padding: var(--space-4) 0;
        font-size: var(--text-xl);
        font-weight: 600;
        color: var(--color-text);
        width: 100%;
        text-align: left;
        justify-content: flex-start;
    }
    .site-nav--open .site-nav__dropdown {
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        border: none;
        padding: 0 0 0 var(--space-4);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.3s ease, opacity 0.2s ease;
    }
    .site-nav--open .site-nav__dropdown-trigger[aria-expanded="true"] + .site-nav__dropdown {
        max-height: 600px;
        opacity: 1;
        visibility: visible;
    }
    /* Mobile menu CTA buttons */
    .site-nav--open::after {
        content: '';
        display: block;
        flex: 1;
    }
    .mobile-nav-actions {
        display: flex;
        flex-direction: column;
        gap: var(--space-3);
        padding-top: var(--space-6);
        border-top: 1px solid var(--color-border);
        margin-top: var(--space-6);
    }
    .mobile-nav-actions .btn { width: 100%; text-align: center; justify-content: center; }

    .plugin-cards,
    .pricing-grid,
    .testimonials-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    .stats { grid-template-columns: repeat(2, 1fr); }

    .docs-layout {
        grid-template-columns: 1fr;
    }
    .docs-sidebar {
        position: static;
        max-height: none;
        border-bottom: 1px solid var(--color-border);
        padding-bottom: var(--space-6);
        margin-bottom: var(--space-6);
    }

    .woocommerce-account .woocommerce {
        flex-direction: column;
        gap: var(--space-6);
    }
    .woocommerce-account .woocommerce-MyAccount-navigation {
        width: 100%;
        position: static;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-wrap: wrap;
        border-radius: var(--radius-md);
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul li {
        flex: 1 0 auto;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
        padding: 10px 14px;
        font-size: 0.8rem;
        border-bottom: none;
        border-right: 1px solid var(--color-border);
        text-align: center;
        justify-content: center;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
        border-left: none;
        border-bottom: 3px solid var(--color-primary);
    }
    .woocommerce-account .woocommerce-MyAccount-content {
        padding: var(--space-5);
    }
    .woocommerce-account .entry-title {
        font-size: var(--text-2xl);
    }
    .woocommerce-account table.shop_table {
        font-size: 0.8rem;
    }
    .woocommerce-account table.shop_table thead th,
    .woocommerce-account table.shop_table td {
        padding: 10px 12px;
    }

    .cta-banner { padding: var(--space-10) var(--space-6); }
    .cta-banner__title { font-size: var(--text-3xl); }

    .hero__actions { flex-direction: column; align-items: stretch; }
    .plugin-hero__actions { flex-direction: column; align-items: flex-start; }

    .site-footer__grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-8) !important;
    }

    .comparison-table { font-size: var(--text-xs); }
    .comparison-table th, .comparison-table td { padding: var(--space-2); }

    .error-404__code { font-size: 6rem; }
}

/* ---------- Footer ---------- */
.site-footer {
    background: #0B0C0F;
    color: var(--color-text-on-dark);
    padding: var(--space-16) 0 var(--space-8);
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37,99,235,0.3), transparent);
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 800;
    font-size: var(--text-xl);
    color: #fff;
    text-decoration: none;
    margin-bottom: var(--space-4);
}
.site-footer__logo svg { color: var(--color-primary); }
.site-footer__logo:hover { color: #fff; }
.site-footer__tagline {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    max-width: 300px;
    line-height: 1.7;
    margin-bottom: var(--space-6);
}
.site-footer__social {
    display: flex;
    gap: var(--space-3);
}
.site-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.06);
    color: var(--color-text-light);
    transition: all var(--transition);
}
.site-footer__social a:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}
.site-footer__heading {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: #fff;
}
.site-footer__links li { margin-bottom: var(--space-2); }
.site-footer__links a {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    transition: color var(--transition);
}
.site-footer__links a:hover { color: var(--color-primary); }

.site-footer__bottom {
    padding-top: var(--space-8);
    padding-bottom: calc(var(--space-12) + 16px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-2);
    border-top: 1px solid rgba(255,255,255,0.08);
}
.site-footer__bottom p {
    font-size: var(--text-xs);
    color: var(--color-text-light);
}
.site-footer__bottom-links {
    display: flex;
    gap: var(--space-4);
}
.site-footer__bottom-links a {
    font-size: var(--text-xs);
    color: var(--color-text-light);
    transition: color var(--transition);
}
.site-footer__bottom-links a:hover {
    color: var(--color-primary);
}
.site-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.06);
    color: var(--color-text-light);
    transition: all var(--transition);
}
.site-footer__social-link:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ---------- Announcement Bar ---------- */
.announcement-bar {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    text-align: center;
    padding: 0.625rem var(--space-4);
    font-size: var(--text-sm);
    position: relative;
}
.announcement-bar a { color: #fff; text-decoration: underline; font-weight: 600; }
.announcement-bar a:hover { color: rgba(255,255,255,0.85); }
.announcement-bar__close {
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: var(--space-1);
}
.announcement-bar__close:hover { color: #fff; }

/* ---------- Dynamic Header Offsets (JS sets --announcement-height & --adminbar-height) ---------- */
:root {
    --announcement-height: 0px;
    --adminbar-height: 0px;
    --header-offset: calc(var(--adminbar-height) + var(--announcement-height) + 16px);
}
.site-header { top: var(--header-offset); }
.site-main { padding-top: calc(var(--header-height) + var(--adminbar-height) + var(--announcement-height) + 32px); }
.site-main:has(.hero),
.site-main:has(.v2-hero),
.site-main:has(.plugin-hero),
.site-main:has(.page-hero),
.site-main:has(.auth-section) { padding-top: 0; }
@media (min-width: 769px) {
    .site-nav--open { top: calc(var(--header-height) + var(--header-offset) + 8px) !important; }
}
