/* ============================================================
   SCARLET PETAL — GHL GLOBAL RESET
   ============================================================ */
body, .page-wrap, .main-content, #main-content, [data-page-id], .cfunnel-page {
    background-color: #080C16 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.c-section, .c-section__container, .c-section__body {
    padding-top: 0 !important; padding-bottom: 0 !important;
    margin-top: 0 !important; margin-bottom: 0 !important;
    background-color: transparent !important;
    border: none !important; box-shadow: none !important;
}
.c-row, .c-row__container, .c-row__content {
    padding: 0 !important; margin: 0 !important;
    background-color: transparent !important;
    max-width: 100% !important; width: 100% !important;
}
.c-column, .c-column__content, .c-column__container {
    padding: 0 !important; margin: 0 !important;
    background-color: transparent !important;
}
.c-code, .c-code__container, [class*="code-widget"], [class*="custom-code"] {
    padding: 0 !important; margin: 0 !important;
    background: transparent !important; border: none !important;
}
.container-fluid, .container, [class*="col-"] {
    padding-left: 0 !important; padding-right: 0 !important;
}
html { background-color: #080C16 !important; }

/* ============================================================
   SCARLET PETAL AUTOMATION — Design System
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap');

.sp-funnel {
    --sp-bg: #080C16;
    --sp-bg-card: rgba(15, 23, 42, 0.75);
    --sp-border: rgba(30, 41, 59, 0.8);
    --sp-red: #B62424;
    --sp-red-glow: rgba(182, 36, 36, 0.4);
    --sp-white: #F8FAFC;
    --sp-muted: #94A3B8;
    --sp-blur: blur(14px);
    --sp-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --sp-r: 1.25rem;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--sp-white);
    background-color: var(--sp-bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    box-sizing: border-box;
}
.sp-funnel *, .sp-funnel *::before, .sp-funnel *::after { box-sizing: inherit; }

/* Layout */
.sp-funnel .sp-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; width: 100%; }
.sp-funnel .sp-section { padding: 6rem 0; background: var(--sp-bg); }
.sp-funnel .sp-section--alt {
    background: linear-gradient(180deg, var(--sp-bg) 0%, rgba(182,36,36,0.05) 50%, var(--sp-bg) 100%);
}

/* Typography */
.sp-funnel h1, .sp-funnel h2, .sp-funnel h3 {
    font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
    color: var(--sp-white); margin: 0;
}
.sp-funnel p { color: var(--sp-muted); margin: 0; }
.sp-funnel .sp-gradient {
    background: linear-gradient(135deg, #ff7a7a 0%, var(--sp-red) 60%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Badge */
.sp-funnel .sp-badge {
    display: inline-block; padding: 0.35rem 0.9rem; border-radius: 9999px;
    background: rgba(182,36,36,0.12); border: 1px solid rgba(182,36,36,0.4);
    font-size: 0.72rem; font-weight: 700; color: var(--sp-red);
    letter-spacing: 0.1em; text-transform: uppercase;
}

/* Card */
.sp-funnel .sp-card {
    background: var(--sp-bg-card);
    backdrop-filter: var(--sp-blur); -webkit-backdrop-filter: var(--sp-blur);
    border: 1px solid var(--sp-border); border-radius: var(--sp-r); padding: 1.75rem;
    transition: border-color 0.3s var(--sp-ease), transform 0.3s var(--sp-ease), box-shadow 0.3s var(--sp-ease);
}
.sp-funnel .sp-card:hover {
    border-color: rgba(182,36,36,0.45);
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.45);
}

/* Buttons */
.sp-funnel .sp-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.8rem 1.9rem; border-radius: 9999px;
    font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1rem;
    text-decoration: none; cursor: pointer;
    transition: transform 0.2s var(--sp-ease), box-shadow 0.2s var(--sp-ease);
    white-space: nowrap; border: none; line-height: 1;
}
.sp-funnel .sp-btn--red { background: var(--sp-red); color: #fff; box-shadow: 0 0 36px var(--sp-red-glow); }
.sp-funnel .sp-btn--red:hover { transform: scale(1.04); box-shadow: 0 0 60px rgba(182,36,36,0.6); text-decoration: none; color: #fff; }
.sp-funnel .sp-btn--ghost { background: transparent; color: var(--sp-white); border: 1.5px solid rgba(255,255,255,0.18); }
.sp-funnel .sp-btn--ghost:hover { border-color: var(--sp-red); color: var(--sp-red); text-decoration: none; }
.sp-funnel .sp-btn--ghost-sm { background: transparent; color: var(--sp-white); border: 1.5px solid rgba(255,255,255,0.18); padding: 0.5rem 1.2rem; font-size: 0.875rem; }
.sp-funnel .sp-btn--ghost-sm:hover { border-color: var(--sp-red); color: var(--sp-red); text-decoration: none; }

/* Nav */
.sp-funnel .sp-nav {
    position: sticky; top: 0; z-index: 999;
    background: rgba(8,12,22,0.88);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(30,41,59,0.6);
    padding: 0.9rem 0;
}
.sp-funnel .sp-nav__row { display: flex; justify-content: space-between; align-items: center; }

/* Logo — only <span> children are red */
.sp-funnel .sp-logo {
    display: flex; align-items: center; gap: 0.5rem;
    font-weight: 800; font-size: 1.05rem; color: var(--sp-white);
    text-decoration: none; letter-spacing: 0.08em; white-space: nowrap;
}
.sp-funnel .sp-logo span { color: var(--sp-red); }

.sp-funnel .sp-nav__links { display: flex; align-items: center; gap: 0.5rem; }

/* Hero */
.sp-funnel .sp-hero {
    padding: 7rem 0 6rem;
    background:
        radial-gradient(ellipse 70% 60% at 90% -5%, rgba(182,36,36,0.2) 0%, transparent 65%),
        radial-gradient(ellipse 40% 40% at 5% 100%, rgba(182,36,36,0.1) 0%, transparent 65%),
        var(--sp-bg);
}
.sp-funnel .sp-hero__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }
.sp-funnel .sp-hero__h1 { font-size: clamp(2.4rem, 4.5vw, 4.2rem); margin-bottom: 1.2rem; }
.sp-funnel .sp-hero__sub { font-size: 1.1rem; margin-bottom: 2.25rem; max-width: 460px; }
.sp-funnel .sp-hero__ctas { display: flex; gap: 0.875rem; flex-wrap: wrap; }
.sp-funnel .sp-hero__visual {
    height: 360px; display: flex; align-items: center;
    justify-content: center; position: relative; overflow: hidden;
}
.sp-funnel .sp-hero__glow {
    position: absolute; width: 200px; height: 200px;
    background: var(--sp-red); filter: blur(80px);
    border-radius: 50%; opacity: 0.3; animation: sp-float 6s ease-in-out infinite;
}

/* Features */
.sp-funnel .sp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.sp-funnel .sp-icon-box {
    width: 42px; height: 42px; background: rgba(182,36,36,0.1);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
}
.sp-funnel .sp-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }

/* Stats Bar */
.sp-funnel .sp-stats-bar {
    background: rgba(182,36,36,0.06);
    border-top: 1px solid rgba(182,36,36,0.12);
    border-bottom: 1px solid rgba(182,36,36,0.12);
    padding: 2rem 0;
}
.sp-funnel .sp-stats-bar__inner {
    display: flex; justify-content: space-around;
    align-items: center; flex-wrap: wrap; gap: 2rem; text-align: center;
}
.sp-funnel .sp-stat__num { font-size: 2.2rem; font-weight: 800; color: #fff; }
.sp-funnel .sp-stat__label { font-size: 0.85rem; color: var(--sp-muted); }
.sp-funnel .sp-stats-divider { width: 1px; height: 40px; background: rgba(30,41,59,0.8); }

/* Pricing */
.sp-funnel .sp-pricing-wrap { max-width: 520px; margin: 0 auto; }
.sp-funnel .sp-pricing-card {
    border-color: rgba(182,36,36,0.5); text-align: center;
    position: relative; overflow: hidden; padding: 2.5rem 2rem;
}
.sp-funnel .sp-pricing-card__blob {
    position: absolute; top: -60px; right: -60px;
    width: 140px; height: 140px; background: var(--sp-red); opacity: 0.07; border-radius: 50%;
}
.sp-funnel .sp-price { font-size: 3.75rem; font-weight: 800; color: var(--sp-white); line-height: 1; margin: 0.75rem 0; }
.sp-funnel .sp-price span { font-size: 1rem; font-weight: 400; color: var(--sp-muted); }
.sp-funnel .sp-check-list { list-style: none; padding: 0; margin: 0 0 2rem; text-align: left; display: inline-block; }
.sp-funnel .sp-check-list li {
    padding: 0.45rem 0; color: var(--sp-white);
    display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem;
}
.sp-funnel .sp-check-list li::before { content: '✓'; color: var(--sp-red); font-weight: 700; }

/* Demo section — CSS-controlled card so mobile can override */
.sp-funnel .sp-demo-card {
    background: radial-gradient(circle at top right, rgba(182,36,36,0.14), transparent 60%);
    border-color: rgba(182,36,36,0.4);
    padding: 3rem 2.5rem;
}
.sp-funnel .sp-demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.sp-funnel .sp-demo-orb-wrap { text-align: center; }
.sp-funnel .sp-demo-heading { font-size: clamp(1.5rem, 2.8vw, 2.4rem); margin-bottom: 1rem; }
.sp-funnel .sp-demo-body { margin-bottom: 0.75rem; font-size: 1rem; }
.sp-funnel .sp-demo-sub { margin-bottom: 1.75rem; font-size: 0.88rem; }
.sp-funnel .sp-demo-cta { margin-top: 0; }

.sp-funnel .sp-orb {
    width: 170px; height: 170px; border-radius: 50%;
    border: 2px solid var(--sp-red); margin: 0 auto;
    display: flex; align-items: center; justify-content: center; position: relative;
}
.sp-funnel .sp-orb__ring {
    position: absolute; width: 100%; height: 100%;
    border-radius: 50%; background: var(--sp-red);
    opacity: 0.1; animation: sp-pulse 2.4s ease-in-out infinite;
}

/* Section headings */
.sp-funnel .sp-sh { text-align: center; }
.sp-funnel .sp-sh__title { font-size: clamp(1.9rem, 3vw, 2.75rem); margin: 0.6rem 0; }
.sp-funnel .sp-sh__sub { font-size: 1rem; }

/* Footer */
.sp-funnel .sp-footer { padding: 3rem 0; border-top: 1px solid var(--sp-border); background: var(--sp-bg); text-align: center; }
.sp-funnel .sp-joiner { margin: 0; padding: 0; height: 0; background: var(--sp-bg); display: block; }

/* Animations */
@keyframes sp-pulse {
    0%   { transform: scale(1);    opacity: 0.1; }
    50%  { transform: scale(1.65); opacity: 0; }
    100% { transform: scale(1);    opacity: 0.1; }
}
@keyframes sp-float {
    0%, 100% { transform: translate(0,0); }
    50%       { transform: translate(-20px,20px); }
}
@keyframes sp-in {
    from { opacity:0; transform:translateY(18px); }
    to   { opacity:1; transform:translateY(0); }
}
.sp-funnel .sp-anim { opacity:0; animation: sp-in 0.7s ease forwards; }
.sp-funnel .sp-anim-d1 { animation-delay: 0.12s; }
.sp-funnel .sp-anim-d2 { animation-delay: 0.24s; }
.sp-funnel .sp-anim-d3 { animation-delay: 0.38s; }

/* ============================================================
   RESPONSIVE — Tablet (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
    .sp-funnel .sp-hero__grid { grid-template-columns: 1fr; text-align: center; }
    .sp-funnel .sp-hero__ctas { justify-content: center; }
    .sp-funnel .sp-hero__sub { max-width: 100%; }
    .sp-funnel .sp-hero__visual { height: 240px; }
    .sp-funnel .sp-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .sp-funnel .sp-demo-grid { grid-template-columns: 1fr; text-align: center; }
    .sp-funnel .sp-demo-orb-wrap { display: none; }
    .sp-funnel .sp-nav__links .sp-btn--ghost-sm { display: none; }
    .sp-funnel .sp-logo { font-size: 0.92rem; }
    .sp-funnel .sp-demo-cta { display: block; width: 100%; text-align: center; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {
    .sp-funnel .sp-section { padding: 3.5rem 0; }
    .sp-funnel .sp-hero { padding: 3.5rem 0 3rem; }
    .sp-funnel .sp-inner { padding: 0 1.1rem; }

    /* Single column everything */
    .sp-funnel .sp-grid-3 { grid-template-columns: 1fr; }
    .sp-funnel .sp-hero__grid { grid-template-columns: 1fr; }
    .sp-funnel .sp-hero__visual { display: none; }

    /* Demo card — reduce padding so content centres cleanly */
    .sp-funnel .sp-demo-card { padding: 2rem 1.25rem; }
    .sp-funnel .sp-demo-heading { font-size: 1.5rem; text-align: center; }
    .sp-funnel .sp-demo-body,
    .sp-funnel .sp-demo-sub { text-align: center; }
    .sp-funnel .sp-demo-cta { display: block; width: 100%; text-align: center; }

    /* Hero text */
    .sp-funnel .sp-hero__h1 { font-size: 2.2rem; text-align: center; }
    .sp-funnel .sp-hero__sub { font-size: 1rem; text-align: center; }
    .sp-funnel .sp-hero__ctas { flex-direction: column; align-items: center; }
    .sp-funnel .sp-hero__ctas .sp-btn { width: 100%; max-width: 340px; }

    /* Logo */
    .sp-funnel .sp-logo { font-size: 0.82rem; gap: 0.35rem; }

    /* Pricing */
    .sp-funnel .sp-pricing-card { padding: 2rem 1.25rem; }
    .sp-funnel .sp-price { font-size: 3rem; }

    /* Section headings */
    .sp-funnel .sp-sh__title { font-size: 1.75rem; }

    /* Stats — hide dividers, go 2-up */
    .sp-funnel .sp-stats-divider { display: none; }
    .sp-funnel .sp-stats-bar__inner { gap: 1.25rem; justify-content: center; }
    .sp-funnel .sp-stat { flex: 0 0 calc(50% - 0.625rem); }

    /* Badge always centred */
    .sp-funnel .sp-sh .sp-badge { display: inline-block; }
}

/* ============================================================
   RESPONSIVE — Small phones (≤ 400px)
   ============================================================ */
@media (max-width: 400px) {
    .sp-funnel .sp-logo { font-size: 0.72rem; letter-spacing: 0.04em; }
    .sp-funnel .sp-hero__h1 { font-size: 1.9rem; }
    .sp-funnel .sp-price { font-size: 2.6rem; }
    .sp-funnel .sp-demo-card { padding: 1.5rem 1rem; }
}

/* ============================================================
   SOCIAL PROOF STRIP — Single Line & Mobile Optimized
   ============================================================ */
.sp-proof-strip {
    padding: 1.25rem 0 0.5rem;
    width: 100%;
}
.sp-proof-strip__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 860px;
    margin: 0 auto;
    gap: 1.5rem;
    text-align: center;
    flex-wrap: nowrap !important;
}
.sp-proof-item {
    flex: 1 1 0px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sp-proof-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
}
.sp-proof-lbl {
    font-size: 0.78rem;
    color: var(--sp-muted, #94a3b8);
    margin-top: 0.25rem;
    max-width: 200px;
    line-height: 1.3;
    word-wrap: break-word;
}
.sp-proof-sep {
    width: 1px;
    height: 36px;
    background: var(--sp-border, rgba(30, 41, 59, 0.8));
    flex-shrink: 0;
}

/* Mobile responsive optimization: keep single line, scale text proportionally */
@media (max-width: 640px) {
    .sp-proof-strip__inner {
        gap: 0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .sp-proof-val {
        font-size: 1.2rem;
    }
    .sp-proof-lbl {
        font-size: 0.68rem;
        max-width: 105px;
        line-height: 1.25;
    }
    .sp-proof-sep {
        height: 26px;
    }
}
@media (max-width: 380px) {
    .sp-proof-strip__inner {
        gap: 0.25rem;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    .sp-proof-val {
        font-size: 1.05rem;
    }
    .sp-proof-lbl {
        font-size: 0.62rem;
        max-width: 90px;
    }
}

