/* ================================================================
   Framer-Base — Shared design language for content pages
   ----------------------------------------------------------------
   Loaded after variables.css / components.css to override defaults
   on Framer-styled pages (about, faq, research, blog, privacy, terms).
   Mockup canonical reference: index-enhanced-mockup.html
   ================================================================ */

:root {
    --fb-ease: cubic-bezier(0.23, 1, 0.32, 1);
    --fb-pop: var(--sova-pop, #ccff00);
    --fb-green: var(--sova-green, #eaffc4);
    --fb-sage: var(--sova-sage, #c2e09d);
    --fb-cream: var(--sova-cream, #f5f5dc);
    --fb-brown: var(--sova-brown, #4d4141);
    --fb-brown-deep: var(--sova-brown-dark, #2d2424);
}

/* ── Page chrome ──────────────────────────────────────────────────── */
body.framer {
    background: var(--fb-brown);
    color: var(--fb-cream);
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
}

body.framer ::selection { background: var(--fb-pop); color: var(--fb-brown); }

/* Grain overlay */
body.framer::after {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.03; pointer-events: none; z-index: 9990;
}

/* ── Background layers (owl + blobs parallax) ─────────────────────── */
.fb-bg-layers {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 0;
    overflow: hidden;
}

.fb-bg-layer {
    position: absolute; inset: 0;
    pointer-events: none; will-change: transform;
    backface-visibility: hidden;
}

.fb-bg-owl img {
    position: absolute;
    right: -8%;
    top: 50%;
    transform: translateY(-50%);
    height: 105vh;
    width: auto;
    filter: brightness(1.55) saturate(0) contrast(1.05) blur(3px);
    opacity: 0.07;
    pointer-events: none;
}

.fb-atmos-blob {
    position: absolute; border-radius: 50%;
    filter: blur(120px);
}
.fb-atmos-blob--1 {
    width: 800px; height: 800px; top: -250px; right: -150px;
    background: radial-gradient(ellipse, rgba(204,255,0,0.18) 0%, rgba(234,255,196,0.10) 40%, transparent 70%);
    animation: fb-blobA 22s ease-in-out infinite;
}
.fb-atmos-blob--2 {
    width: 600px; height: 600px; top: 45%; left: -200px;
    background: radial-gradient(ellipse, rgba(184,215,143,0.13) 0%, transparent 70%);
    animation: fb-blobB 30s ease-in-out infinite;
}
.fb-atmos-blob--3 {
    width: 500px; height: 500px; bottom: 5%; right: 10%;
    background: radial-gradient(ellipse, rgba(234,255,196,0.10) 0%, transparent 70%);
    animation: fb-blobC 18s ease-in-out infinite;
}
@keyframes fb-blobA {
    0%,100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(-70px, 90px) scale(1.08); }
    66% { transform: translate(50px,-50px) scale(0.94); }
}
@keyframes fb-blobB {
    0%,100% { transform: translate(0,0); }
    50% { transform: translate(100px,-80px) scale(1.12); }
}
@keyframes fb-blobC {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(-60px, 40px) scale(0.9); }
}

/* Scroll progress bar */
.fb-scrollbar {
    position: fixed; top: 0; left: 0; z-index: 9999;
    height: 2px; width: 0%;
    background: linear-gradient(90deg, var(--fb-pop), var(--fb-green));
    box-shadow: 0 0 6px rgba(204,255,0,0.5);
    transition: width 0.08s linear;
    pointer-events: none;
}

/* ── Layout ───────────────────────────────────────────────────────── */
body.framer .fb-container {
    max-width: 1120px; margin: 0 auto;
    padding: 0 2rem;
    position: relative; z-index: 2;
}

body.framer section {
    padding: clamp(4rem, 7vw, 6rem) 0;
    position: relative;
}

/* ── Hero ─────────────────────────────────────────────────────────── */
body.framer .fb-hero {
    min-height: 60vh;
    padding-top: 9rem; padding-bottom: 4rem;
    display: flex; align-items: center;
    position: relative;
}
body.framer .fb-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800; line-height: 1.06;
    letter-spacing: -0.04em;
    color: var(--sova-white, #ffffff);
    margin: 0 0 1.5rem;
}
body.framer .fb-hero h1 .accent { color: var(--fb-pop); }
body.framer .fb-hero p.lede {
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.75;
    color: var(--fb-cream);
    opacity: 0.85;
    max-width: 640px;
    margin: 0 0 2.5rem;
    font-weight: 300;
}

/* ── Eyebrow ──────────────────────────────────────────────────────── */
body.framer .fb-eyebrow {
    font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--fb-pop);
    margin: 0 0 1.25rem;
    display: flex; align-items: center; gap: 0.75rem;
    opacity: 0; transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
body.framer .fb-eyebrow::before {
    content: ''; display: block;
    width: 20px; height: 1.5px; background: var(--fb-pop);
}
body.framer .fb-eyebrow.in { opacity: 1; transform: none; }

/* ── Section heading ──────────────────────────────────────────────── */
body.framer .fb-h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800; line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--sova-white, #ffffff);
    margin: 0 0 1.5rem;
}
body.framer .fb-h2 .accent { color: var(--fb-green); }

body.framer .fb-sub {
    font-size: 1.05rem; line-height: 1.75;
    opacity: 0.65; font-weight: 300;
    color: var(--fb-cream);
    max-width: 720px;
    margin: 0 0 2rem;
}

/* ── Big statement (problem framing) ──────────────────────────────── */
body.framer .fb-statement {
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    font-weight: 300; line-height: 1.3;
    color: var(--sova-white, #ffffff);
    max-width: 820px;
    margin: 0 0 2.5rem;
}
body.framer .fb-statement strong {
    font-weight: 800; color: var(--fb-green);
}

/* ── Reveal-on-scroll ─────────────────────────────────────────────── */
body.framer .fb-reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
body.framer .fb-reveal.in { opacity: 1; transform: none; }

/* ── Buttons ──────────────────────────────────────────────────────── */
body.framer .fb-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2.2rem; border-radius: 32px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem; font-weight: 600;
    text-decoration: none; cursor: pointer; border: none;
    position: relative; overflow: hidden;
    transition: transform 0.25s var(--fb-ease), box-shadow 0.25s ease, background 0.25s ease;
}
body.framer .fb-btn--primary { background: var(--fb-pop); color: var(--fb-brown); }
body.framer .fb-btn--primary:hover {
    background: var(--sova-pop-hover, #d9ff33);
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(204,255,0,0.22);
}
body.framer .fb-btn--ghost {
    background: transparent;
    color: var(--fb-green);
    border: 1.5px solid rgba(234,255,196,0.28);
}
body.framer .fb-btn--ghost:hover {
    border-color: var(--fb-green);
    transform: translateY(-3px);
    background: rgba(234,255,196,0.04);
}

/* ── Card ─────────────────────────────────────────────────────────── */
body.framer .fb-card {
    border: 1px solid rgba(234,255,196,0.08);
    border-radius: 16px;
    padding: 2rem;
    background: rgba(234,255,196,0.02);
    transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.3s ease, background 0.3s ease;
}
body.framer .fb-card:hover {
    border-color: rgba(234,255,196,0.18);
    background: rgba(234,255,196,0.04);
    transform: translateY(-3px);
}
body.framer .fb-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sova-white, #ffffff);
    margin: 0 0 0.6rem;
}
body.framer .fb-card p {
    font-size: 0.92rem;
    line-height: 1.7;
    opacity: 0.65;
    color: var(--fb-cream);
    margin: 0;
    font-weight: 300;
}

/* ── Body content (long-form text sections like Privacy/Terms) ────── */
body.framer .fb-prose {
    color: var(--fb-cream);
    font-weight: 300;
    line-height: 1.85;
    font-size: 1rem;
}
body.framer .fb-prose h2 {
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    font-weight: 700; color: var(--sova-white, #ffffff);
    margin: 3rem 0 1rem; letter-spacing: -0.01em;
}
body.framer .fb-prose h3 {
    font-size: 1.1rem; font-weight: 700;
    color: var(--fb-green);
    margin: 2.25rem 0 0.85rem;
}
body.framer .fb-prose p { margin: 0 0 1.25rem; opacity: 0.8; }
body.framer .fb-prose ul, body.framer .fb-prose ol { margin: 0 0 1.5rem; padding-left: 1.5rem; }
body.framer .fb-prose li { margin: 0 0 0.5rem; opacity: 0.8; line-height: 1.75; }
body.framer .fb-prose strong { color: var(--sova-white, #ffffff); font-weight: 700; }
body.framer .fb-prose a {
    color: var(--fb-pop); text-decoration: none;
    border-bottom: 1px solid rgba(204,255,0,0.3);
    transition: border-color 0.25s ease;
}
body.framer .fb-prose a:hover { border-color: var(--fb-pop); }
body.framer .fb-prose hr {
    border: none;
    border-top: 1px solid rgba(234,255,196,0.08);
    margin: 3rem 0;
}

/* ── Reduced motion ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .fb-bg-layer,
    .fb-atmos-blob { animation-duration: 0.001s !important; }
    body.framer .fb-reveal,
    body.framer .fb-eyebrow {
        opacity: 1; transform: none; transition: none;
    }
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 920px) {
    body.framer .fb-container { padding: 0 1.5rem; }
    body.framer .fb-hero { min-height: auto; padding-top: 7rem; padding-bottom: 3rem; }
}
