/*
 * Folloy — global utilities (glass effect, gradient text, focus rings,
 * ad-slot CLS reservations, reduced-motion + reduced-transparency
 * fallbacks). Loaded site-wide.
 */

:root {
    --folloy-radius-sm: 6px;
    --folloy-radius-md: 12px;
    --folloy-radius-lg: 20px;
    --folloy-radius-xl: 28px;
    --folloy-radius-pill: 999px;
    --folloy-blur-sm: 8px;
    --folloy-blur-md: 20px;
    --folloy-blur-lg: 40px;
    --folloy-duration-fast: 150ms;
    --folloy-duration-base: 240ms;
    --folloy-duration-slow: 420ms;
    --folloy-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --folloy-ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

/* Defensive reset against legacy-plugin inline CSS leaks. The old
 * tiktok-views-plugin emits inline rules that, on some installs, target
 * h1/h2/h3 and p globally. Force them back to start-aligned within the
 * main content area. */
main h1,
main h2,
main h3,
main h4,
main h5,
main h6,
main p,
main ul,
main ol,
main li {
    text-align: start;
}

main h1.has-text-align-center,
main h2.has-text-align-center,
main h3.has-text-align-center,
main p.has-text-align-center { text-align: center; }

main h1.has-text-align-right,
main h2.has-text-align-right,
main h3.has-text-align-right,
main p.has-text-align-right { text-align: right; }

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ---------- Glass card ---------- */

.is-style-glass {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(var(--folloy-blur-md)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--folloy-blur-md)) saturate(140%);
    border-radius: var(--folloy-radius-lg);
}

@supports not (backdrop-filter: blur(1px)) {
    .is-style-glass {
        background: rgba(20, 20, 30, 0.85);
    }
}

@media (prefers-reduced-transparency: reduce) {
    .is-style-glass {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--wp--preset--color--ink-800);
    }
}

/* ---------- Outline / gradient-border cards ---------- */

.is-style-card-outline {
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--folloy-radius-lg);
    background: rgba(17, 17, 27, 0.4);
}

.is-style-gradient-border {
    position: relative;
    border-radius: var(--folloy-radius-lg);
    background: var(--wp--preset--color--ink-900);
    isolation: isolate;
}

.is-style-gradient-border::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--wp--preset--gradient--primary);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

/* ---------- Gradient text ---------- */

.is-style-gradient-text {
    background: var(--wp--preset--gradient--primary);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* ---------- Lead paragraph ---------- */

.is-style-lead {
    font-size: var(--wp--preset--font-size--lg);
    color: var(--wp--preset--color--ink-200);
    line-height: 1.7;
}

/* ---------- Buttons ---------- */

.wp-block-button.is-style-ghost .wp-block-button__link {
    background: transparent !important;
    background-image: none !important;
    color: var(--wp--preset--color--ink-100);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none !important;
}

.wp-block-button.is-style-ghost .wp-block-button__link:hover {
    border-color: var(--wp--preset--color--fuchsia-400);
    color: var(--wp--preset--color--fuchsia-400);
}

.wp-block-button.is-style-soft .wp-block-button__link {
    background: rgba(124, 58, 237, 0.14) !important;
    background-image: none !important;
    color: var(--wp--preset--color--violet-400);
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.25) !important;
}

.wp-block-button.is-style-soft .wp-block-button__link:hover {
    background: rgba(124, 58, 237, 0.22) !important;
}

/* ---------- Focus ---------- */

:focus-visible {
    outline: 2px solid var(--wp--preset--color--fuchsia-400);
    outline-offset: 3px;
    border-radius: var(--folloy-radius-sm);
}

/* ---------- Skip link ---------- */

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--wp--preset--color--ink-900);
    color: var(--wp--preset--color--ink-100);
    padding: 0.75rem 1.25rem;
    border-radius: var(--folloy-radius-md);
    z-index: 9999;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

/* ---------- Ad slot CLS reservations ---------- */

.folloy-ad-slot {
    display: block;
    margin: var(--wp--preset--spacing--32) 0;
    text-align: center;
    overflow: hidden;
}

.folloy-ad-slot--leaderboard { min-height: 90px; }
.folloy-ad-slot--in-article  { min-height: 280px; }
.folloy-ad-slot--square      { min-height: 250px; aspect-ratio: 1 / 1; }
.folloy-ad-slot--sidebar     { min-height: 600px; }
.folloy-ad-slot--anchor      { min-height: 60px; position: sticky; bottom: 0; z-index: 50; }

/* ---------- Reduced motion ---------- */

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

/* ---------- Light mode (data-theme=light on <html>) ---------- *
 *
 * Strategy: remap the SEMANTIC CSS variables — `ink-100/200/300` (text)
 * and `ink-700/800/900/950` (surfaces). All inline styles in seeded
 * content + theme parts that reference them via
 * `style="color:var(--wp--preset--color--ink-200)"` get flipped
 * automatically — no need for `!important` overrides on every rule.
 */

html[data-theme="light"] {
    color-scheme: light;
    /* Text colors: was light-on-dark, now dark-on-light */
    --wp--preset--color--ink-100: #11111B;
    --wp--preset--color--ink-200: #2A2A3A;
    --wp--preset--color--ink-300: #6B7280;
    /* Surface colors: was deep-dark, now light backgrounds */
    --wp--preset--color--ink-700: #E6E6EE;
    --wp--preset--color--ink-800: #EDEDF3;
    --wp--preset--color--ink-900: #F6F6FA;
    --wp--preset--color--ink-950: #FFFFFF;
}

html[data-theme="light"] body {
    background: var(--wp--preset--color--ink-950);
    color: var(--wp--preset--color--ink-100);
}

html[data-theme="light"] .is-style-glass {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(10, 10, 18, 0.08);
}

html[data-theme="light"] .is-style-card-outline {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(10, 10, 18, 0.10);
}

html[data-theme="light"] .is-style-gradient-border {
    background: #FFFFFF;
}

/* Header */
html[data-theme="light"] .folloy-header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom-color: rgba(10, 10, 18, 0.06);
}

html[data-theme="light"] .folloy-nav .wp-block-navigation-item__content {
    color: var(--wp--preset--color--ink-200);
}
html[data-theme="light"] .folloy-nav .wp-block-navigation-item__content:hover {
    color: var(--wp--preset--color--violet-600);
}

/* Trust bar + footer + separator borders */
html[data-theme="light"] .folloy-trust-bar,
html[data-theme="light"] .folloy-footer {
    border-color: rgba(10, 10, 18, 0.10) !important;
}
html[data-theme="light"] .wp-block-separator {
    background-color: rgba(10, 10, 18, 0.10) !important;
}

/* Hero gradient over a light backdrop with softer alpha */
html[data-theme="light"] .folloy-hero-mesh {
    background-color: #FAFAFE;
    background-image:
        radial-gradient(60% 80% at 20% 25%, rgba(124, 58, 237, 0.30) 0%, transparent 60%),
        radial-gradient(50% 70% at 80% 30%, rgba(217, 70, 239, 0.22) 0%, transparent 60%),
        radial-gradient(60% 60% at 50% 100%, rgba(251, 191, 36, 0.18) 0%, transparent 60%);
}

/* Cards */
html[data-theme="light"] .folloy-platform-card,
html[data-theme="light"] .folloy-service-card,
html[data-theme="light"] .folloy-blog-card {
    background: #FFFFFF;
    border-color: rgba(10, 10, 18, 0.10);
    box-shadow: 0 1px 2px rgba(10, 10, 18, 0.04);
}
html[data-theme="light"] .folloy-platform-card:hover,
html[data-theme="light"] .folloy-service-card:hover,
html[data-theme="light"] .folloy-blog-card:hover {
    border-color: rgba(124, 58, 237, 0.28);
    box-shadow: 0 16px 32px -12px rgba(124, 58, 237, 0.18);
}

/* Card titles flip to ink-100 (now dark) */
html[data-theme="light"] .folloy-platform-card__label,
html[data-theme="light"] .folloy-service-card__title {
    color: var(--wp--preset--color--ink-100);
}
html[data-theme="light"] .folloy-blog-card .wp-block-post-title a {
    color: var(--wp--preset--color--ink-100);
}
html[data-theme="light"] .folloy-blog-card .wp-block-post-title a:hover {
    color: var(--wp--preset--color--violet-600);
}

/* Default (primary) buttons MUST keep the gradient + white text in light
 * mode. Without this rule the gradient sometimes drops to a transparent
 * background, leaving white text on white. We exclude ghost/soft variants
 * and any button that has its own `has-background` opt-in. */
html[data-theme="light"] .wp-block-button:not(.is-style-ghost):not(.is-style-soft) > .wp-block-button__link:not(.has-background) {
    background: var(--wp--preset--gradient--primary) !important;
    background-color: transparent !important;
    color: #FFFFFF !important;
}

/* Ghost button inverts */
html[data-theme="light"] .wp-block-button.is-style-ghost .wp-block-button__link {
    color: var(--wp--preset--color--ink-100);
    border-color: rgba(10, 10, 18, 0.18);
}
html[data-theme="light"] .wp-block-button.is-style-ghost .wp-block-button__link:hover {
    border-color: var(--wp--preset--color--violet-600);
    color: var(--wp--preset--color--violet-600);
}

/* CTA-banner button (has explicit has-background class) — its bg is
 * remapped to white in light mode, keep its text dark, on top of the
 * gradient banner. */
html[data-theme="light"] .folloy-cta-banner .wp-block-button__link.has-background {
    background-color: #FFFFFF !important;
    color: var(--wp--preset--color--ink-100) !important;
}

/* Footer list links */
html[data-theme="light"] .folloy-footer-list a {
    color: var(--wp--preset--color--ink-200);
}
html[data-theme="light"] .folloy-footer-list a:hover {
    color: var(--wp--preset--color--violet-600);
}

/* FAQ already has its own light-mode block earlier in the file */

/* ---------- Platforms grid (shortcode-rendered) ---------- */

.folloy-platforms-grid {
    margin: 1.5rem 0 2rem;
}

.folloy-platforms-grid .folloy-platform-card {
    display: block;
    padding: 1.5rem;
    background: rgba(17, 17, 27, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--folloy-radius-lg);
    color: inherit;
    text-decoration: none;
    transition:
        transform var(--folloy-duration-base) var(--folloy-ease-out),
        border-color var(--folloy-duration-base) var(--folloy-ease-out),
        box-shadow var(--folloy-duration-base) var(--folloy-ease-out);
}

.folloy-platforms-grid .folloy-platform-card:hover {
    transform: translate3d(0, -2px, 0);
    border-color: rgba(217, 70, 239, 0.32);
    box-shadow: 0 16px 32px -12px rgba(217, 70, 239, 0.22);
}

.folloy-platforms-grid .folloy-platform-card__label {
    font-family: var(--wp--preset--font-family--display, inherit);
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--wp--preset--color--ink-100, #E6E6EE);
}

.folloy-platforms-grid .folloy-platform-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--wp--preset--color--ink-200, #C7C7D1);
}

@media (max-width: 720px) {
    .folloy-platforms-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}
@media (max-width: 480px) {
    .folloy-platforms-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ---------- Services grid (shortcode-rendered) ---------- */

.folloy-services-grid {
    margin: 1.5rem 0 2rem;
}

.folloy-services-grid .folloy-service-card {
    display: block;
    padding: 1.5rem;
    background: rgba(17, 17, 27, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--folloy-radius-lg);
    color: inherit;
    text-decoration: none;
    transition:
        transform var(--folloy-duration-base) var(--folloy-ease-out),
        border-color var(--folloy-duration-base) var(--folloy-ease-out),
        box-shadow var(--folloy-duration-base) var(--folloy-ease-out);
}

.folloy-services-grid .folloy-service-card:hover {
    transform: translate3d(0, -2px, 0);
    border-color: rgba(124, 58, 237, 0.32);
    box-shadow: 0 16px 32px -12px rgba(124, 58, 237, 0.22);
}

.folloy-services-grid .folloy-service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    background: var(--wp--preset--gradient--primary-soft,
        linear-gradient(135deg, rgba(124,58,237,0.15), rgba(217,70,239,0.10), rgba(251,191,36,0.10)));
    font-size: 1.25rem;
    line-height: 1;
}

.folloy-services-grid .folloy-service-card__title {
    font-family: var(--wp--preset--font-family--display, inherit);
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--wp--preset--color--ink-100, #E6E6EE);
}

.folloy-services-grid .folloy-service-card__meta {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--wp--preset--color--ink-300, #9CA3AF);
}

.folloy-services-grid .folloy-service-card__qty {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--wp--preset--color--fuchsia-400, #E879F9);
    font-variant-numeric: tabular-nums;
}

.folloy-grid-empty {
    padding: 1rem 1.25rem;
    background: rgba(124, 58, 237, 0.06);
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-radius: 12px;
    color: var(--wp--preset--color--ink-200, #C7C7D1);
}

@media (max-width: 720px) {
    .folloy-services-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}
@media (max-width: 480px) {
    .folloy-services-grid {
        grid-template-columns: 1fr !important;
    }
}

html[data-theme="light"] .folloy-services-grid .folloy-service-card {
    background: #FFFFFF;
    border-color: rgba(10, 10, 18, 0.10);
    box-shadow: 0 1px 2px rgba(10, 10, 18, 0.04);
}
html[data-theme="light"] .folloy-services-grid .folloy-service-card:hover {
    border-color: rgba(124, 58, 237, 0.28);
    box-shadow: 0 16px 32px -12px rgba(124, 58, 237, 0.18);
}
html[data-theme="light"] .folloy-services-grid .folloy-service-card__title {
    color: var(--wp--preset--color--ink-100);
}

/* ---------- Theme toggle button ---------- */

.folloy-theme-toggle {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    color: var(--wp--preset--color--ink-200);
    font-family: var(--wp--preset--font-family--body);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition:
        background var(--folloy-duration-fast) var(--folloy-ease-out),
        border-color var(--folloy-duration-fast) var(--folloy-ease-out),
        color var(--folloy-duration-fast) var(--folloy-ease-out);
    line-height: 1;
}

.folloy-theme-toggle:hover {
    background: rgba(124, 58, 237, 0.10);
    border-color: rgba(124, 58, 237, 0.30);
    color: var(--wp--preset--color--ink-100);
}

.folloy-theme-toggle:focus-visible {
    outline: 2px solid var(--wp--preset--color--fuchsia-400);
    outline-offset: 3px;
}

.folloy-theme-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

/* Default (dark mode active): show moon, hide sun */
.folloy-theme-toggle__icon--sun,
.folloy-theme-toggle__label--light {
    display: none;
}

/* Light mode active: hide moon, show sun */
html[data-theme="light"] .folloy-theme-toggle__icon--moon,
html[data-theme="light"] .folloy-theme-toggle__label--dark {
    display: none;
}
html[data-theme="light"] .folloy-theme-toggle__icon--sun,
html[data-theme="light"] .folloy-theme-toggle__label--light {
    display: inline-flex;
}
html[data-theme="light"] .folloy-theme-toggle__label--light {
    display: inline;
}

/* Light-mode styling of the toggle */
html[data-theme="light"] .folloy-theme-toggle {
    background: rgba(10, 10, 18, 0.03);
    border-color: rgba(10, 10, 18, 0.12);
    color: var(--wp--preset--color--ink-200);
}
html[data-theme="light"] .folloy-theme-toggle:hover {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.30);
    color: var(--wp--preset--color--violet-600);
}

/* Icon-only variant (header) */
.folloy-theme-toggle--icon {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    flex-shrink: 0;
}

.folloy-theme-toggle--icon .folloy-theme-toggle__label {
    display: none;
}

@media (max-width: 480px) {
    .folloy-theme-toggle--icon {
        width: 32px;
        height: 32px;
    }
}

/* ---------- Light-mode overrides for WP-generated utility classes ---------- *
 *
 * WordPress auto-generates `.has-{slug}-color { color: <hex> !important; }`
 * and `.has-{slug}-background-color { background-color: <hex> !important; }`
 * for every palette entry. Those use HARD-CODED hex values from theme.json,
 * not CSS variables — so the variable remap above does NOT touch them. We
 * have to override these utility classes explicitly in light mode.
 */

/* Text colors */
html[data-theme="light"] .has-ink-100-color { color: #11111B !important; }
html[data-theme="light"] .has-ink-200-color { color: #2A2A3A !important; }
html[data-theme="light"] .has-ink-300-color { color: #6B7280 !important; }
html[data-theme="light"] .has-ink-700-color { color: #6B7280 !important; }
html[data-theme="light"] .has-ink-800-color { color: #2A2A3A !important; }
html[data-theme="light"] .has-ink-900-color { color: #11111B !important; }
html[data-theme="light"] .has-ink-950-color { color: #0A0A12 !important; }

/* Background colors */
html[data-theme="light"] .has-ink-100-background-color { background-color: #F6F6FA !important; }
html[data-theme="light"] .has-ink-200-background-color { background-color: #EDEDF3 !important; }
html[data-theme="light"] .has-ink-700-background-color { background-color: #E6E6EE !important; }
html[data-theme="light"] .has-ink-800-background-color { background-color: #EDEDF3 !important; }
html[data-theme="light"] .has-ink-900-background-color { background-color: #F6F6FA !important; }
html[data-theme="light"] .has-ink-950-background-color { background-color: #FFFFFF !important; }

/* Surface variants stay the same in light mode (they're already light) */

/* Default body / text — covers content with no explicit color class */
html[data-theme="light"] main,
html[data-theme="light"] main p,
html[data-theme="light"] main li,
html[data-theme="light"] main h1,
html[data-theme="light"] main h2,
html[data-theme="light"] main h3,
html[data-theme="light"] main h4,
html[data-theme="light"] main h5,
html[data-theme="light"] main h6 {
    color: var(--wp--preset--color--ink-100);
}

/* Strong / em / code follow the parent */
html[data-theme="light"] main strong,
html[data-theme="light"] main em { color: inherit; }

/* Links inside body content (excluding header/footer/nav) */
html[data-theme="light"] main a:not(.wp-block-button__link):not(.folloy-platform-card__link):not(.folloy-service-card):not(.wp-block-post-title a) {
    color: var(--wp--preset--color--violet-600);
}

/* Inline-style fallback: anything that hardcoded `color:#E6E6EE` etc.
 * gets a small nudge. These are the most common dark-mode-only inline
 * colors that might appear in seeded content. */
html[data-theme="light"] [style*="color:#E6E6EE"],
html[data-theme="light"] [style*="color: #E6E6EE"] { color: #11111B !important; }
html[data-theme="light"] [style*="color:#C7C7D1"],
html[data-theme="light"] [style*="color: #C7C7D1"] { color: #2A2A3A !important; }
html[data-theme="light"] [style*="color:#9CA3AF"],
html[data-theme="light"] [style*="color: #9CA3AF"] { color: #6B7280 !important; }

/* ---------- Platform card grid ---------- */

.folloy-platform-card {
    transition:
        transform var(--folloy-duration-base) var(--folloy-ease-out),
        box-shadow var(--folloy-duration-base) var(--folloy-ease-out),
        border-color var(--folloy-duration-base) var(--folloy-ease-out);
}

.folloy-platform-card:hover {
    transform: translate3d(0, -3px, 0);
    border-color: rgba(217, 70, 239, 0.30) !important;
    box-shadow: 0 16px 40px -12px rgba(217, 70, 239, 0.30);
}

.folloy-platform-card__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    padding: 0.5rem 0;
    text-align: center;
    min-height: 96px;
}

.folloy-platform-card__link img {
    color: var(--wp--preset--color--ink-100);
    transition: color var(--folloy-duration-base) var(--folloy-ease-out);
}

.folloy-platform-card:hover .folloy-platform-card__link img {
    color: var(--wp--preset--color--fuchsia-400);
}

.folloy-platform-card__label {
    font-family: var(--wp--preset--font-family--display);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--wp--preset--color--ink-100);
}

/* ---------- Service card ---------- */

.folloy-service-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: var(--wp--preset--spacing--24);
    border-radius: var(--folloy-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(17, 17, 27, 0.4);
    transition:
        transform var(--folloy-duration-base) var(--folloy-ease-out),
        border-color var(--folloy-duration-base) var(--folloy-ease-out),
        box-shadow var(--folloy-duration-base) var(--folloy-ease-out);
}

.folloy-service-card:hover {
    transform: translate3d(0, -3px, 0);
    border-color: rgba(217, 70, 239, 0.30);
    box-shadow: 0 16px 40px -12px rgba(217, 70, 239, 0.30);
}

.folloy-service-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--wp--preset--gradient--primary-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: var(--wp--preset--color--fuchsia-400);
}

.folloy-service-card__title {
    font-family: var(--wp--preset--font-family--display);
    font-weight: 700;
    font-size: 1.125rem;
    margin: 0 0 0.25rem 0;
    color: var(--wp--preset--color--ink-100);
}

.folloy-service-card__meta {
    color: var(--wp--preset--color--ink-300);
    font-size: 0.875rem;
}

/* ---------- Header ---------- */

.folloy-header {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(10, 10, 18, 0.65);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Defensive: prevent flex children from collapsing into vertical text */
.folloy-header .wp-block-group,
.folloy-header .wp-block-buttons {
    flex-wrap: nowrap !important;
}

.folloy-header .wp-block-site-title,
.folloy-header .wp-block-site-title a,
.folloy-header .folloy-header-actions .wp-block-button__link {
    white-space: nowrap;
}

.folloy-header .folloy-header-actions {
    flex-shrink: 0;
}

.folloy-header .wp-block-site-logo {
    line-height: 0;
    flex-shrink: 0;
}

.folloy-header .wp-block-site-logo img {
    height: auto;
    width: 120px;
    max-width: 100%;
    display: block;
}

.folloy-header--minimal .wp-block-site-logo img {
    width: 100px;
}

@media (max-width: 480px) {
    .folloy-header .wp-block-site-logo img {
        width: 96px;
    }
}

/* Override the default constrained-content centering so the inner flex
 * fills the full constrained width instead of shrinking around its
 * children (which is what makes "Folloy" wrap one letter per line). */
.folloy-header > .wp-block-group {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ---------- Top navigation menu ---------- */

.folloy-nav,
.folloy-nav .wp-block-navigation__container {
    flex: 1 1 auto;
    justify-content: center;
}

.folloy-nav .wp-block-navigation-item__content {
    color: var(--wp--preset--color--ink-200);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--folloy-duration-fast) var(--folloy-ease-out);
    padding: 0.4rem 0.25rem;
    white-space: nowrap;
}

.folloy-nav .wp-block-navigation-item__content:hover,
.folloy-nav .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content,
.folloy-nav .wp-block-navigation-item[aria-current="page"] .wp-block-navigation-item__content {
    color: var(--wp--preset--color--fuchsia-400);
}

/* Mobile overlay menu */
.folloy-nav .wp-block-navigation__responsive-container.is-menu-open {
    background: var(--wp--preset--color--ink-950);
    color: var(--wp--preset--color--ink-100);
}

.folloy-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    color: var(--wp--preset--color--ink-100);
    font-size: 1.5rem;
    padding: 0.75rem 0;
}

.folloy-nav .wp-block-navigation__responsive-container-open svg,
.folloy-nav .wp-block-navigation__responsive-container-close svg {
    fill: currentColor;
}

@media (max-width: 900px) {
    /* Hide individual nav links on small screens — replaced by the overlay
     * menu trigger that ships with the navigation block. */
    .folloy-nav .wp-block-navigation__container {
        display: none;
    }
}

@media (max-width: 600px) {
    /* On phones, also collapse the action buttons to free up space. */
    .folloy-header-actions .wp-block-button.is-style-ghost {
        display: none;
    }
}

html[data-theme="light"] .folloy-header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(10, 10, 18, 0.06);
}

.folloy-nav .wp-block-navigation-item__content {
    color: var(--wp--preset--color--ink-200);
    font-weight: 500;
    transition: color var(--folloy-duration-fast) var(--folloy-ease-out);
}

.folloy-nav .wp-block-navigation-item__content:hover {
    color: var(--wp--preset--color--fuchsia-400);
}

/* ---------- Hero mesh ---------- */

.folloy-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--folloy-radius-xl);
    isolation: isolate;
}

.folloy-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 80% at 20% 20%, rgba(124, 58, 237, 0.55) 0%, transparent 60%),
        radial-gradient(50% 70% at 80% 30%, rgba(217, 70, 239, 0.45) 0%, transparent 60%),
        radial-gradient(60% 60% at 50% 100%, rgba(251, 191, 36, 0.30) 0%, transparent 60%),
        var(--wp--preset--color--ink-950);
    background-size: 200% 200%;
    animation: folloy-mesh-shift 18s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .folloy-hero__bg { animation: none; }
}

/* ---------- Blog cards ---------- */

.folloy-blog-card {
    transition:
        transform var(--folloy-duration-base) var(--folloy-ease-out),
        border-color var(--folloy-duration-base) var(--folloy-ease-out),
        box-shadow var(--folloy-duration-base) var(--folloy-ease-out);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.folloy-blog-card:hover {
    transform: translate3d(0, -4px, 0);
    border-color: rgba(217, 70, 239, 0.30);
    box-shadow: 0 20px 40px -16px rgba(217, 70, 239, 0.30);
}

.folloy-blog-card .wp-block-post-title {
    font-family: var(--wp--preset--font-family--display);
    letter-spacing: -0.015em;
}

.folloy-blog-card .wp-block-post-title a {
    color: var(--wp--preset--color--ink-100);
    text-decoration: none;
    transition: color var(--folloy-duration-fast) var(--folloy-ease-out);
}

.folloy-blog-card .wp-block-post-title a:hover {
    color: var(--wp--preset--color--fuchsia-400);
}

.folloy-blog-card .wp-block-post-excerpt {
    margin-top: auto;
}

.folloy-blog-card .wp-block-post-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

/* ---------- Footer list reset ---------- */

.folloy-footer-list { list-style: none; padding-left: 0; margin: 0; }
.folloy-footer-list li::marker { content: ""; }
.folloy-footer-list a { color: inherit; text-decoration: none; transition: color var(--folloy-duration-fast) var(--folloy-ease-out); }
.folloy-footer-list a:hover { color: var(--wp--preset--color--fuchsia-400); }

/* ---------- FAQ accordion ---------- */

.folloy-faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0;
}

.folloy-faq-item:first-child { border-top: 1px solid rgba(255, 255, 255, 0.08); }

.folloy-faq-item > summary {
    cursor: pointer;
    list-style: none;
    font-family: var(--wp--preset--font-family--display);
    font-weight: 600;
    font-size: 1.0625rem;
    color: var(--wp--preset--color--ink-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    transition: color var(--folloy-duration-fast) var(--folloy-ease-out);
}

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

.folloy-faq-item > summary::after {
    content: "+";
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--wp--preset--color--ink-300);
    transition: transform var(--folloy-duration-base) var(--folloy-ease-out);
    line-height: 1;
}

.folloy-faq-item[open] > summary { color: var(--wp--preset--color--fuchsia-400); }
.folloy-faq-item[open] > summary::after { transform: rotate(45deg); }

.folloy-faq-item > p {
    color: var(--wp--preset--color--ink-200);
    line-height: 1.7;
    padding: 0.5rem 0 0.75rem 0;
    margin: 0;
}

html[data-theme="light"] .folloy-faq-item { border-color: rgba(10, 10, 18, 0.10); }
html[data-theme="light"] .folloy-faq-item:first-child { border-top-color: rgba(10, 10, 18, 0.10); }
/* Use the SEMANTIC text variables — they're remapped to dark hex in light mode */
html[data-theme="light"] .folloy-faq-item > summary { color: var(--wp--preset--color--ink-100); }
html[data-theme="light"] .folloy-faq-item > p { color: var(--wp--preset--color--ink-200); }

/* ---------- Platform icons (inlined SVG) ----------
 * Inlined so `currentColor` works. Default = light icons on dark theme;
 * light-theme override remaps to dark ink. Hover shifts to brand accents.
 */
.folloy-platform-icon {
    color: var(--wp--preset--color--ink-100);
    transition: color var(--folloy-duration-base, 180ms) var(--folloy-ease-out, ease);
    flex: 0 0 auto;
}
.folloy-platform-card__link:hover .folloy-platform-icon,
.folloy-service-card:hover .folloy-platform-icon {
    color: var(--wp--preset--color--fuchsia-400);
}
html[data-theme="light"] .folloy-platform-icon {
    color: var(--wp--preset--color--ink-900);
}
html[data-theme="light"] .folloy-platform-card__link:hover .folloy-platform-icon,
html[data-theme="light"] .folloy-service-card:hover .folloy-platform-icon {
    color: var(--wp--preset--color--violet-600);
}

