/* ============================================================
   FelixChess — social-proof-component.css
   Social proof: quote cards + credibility strip.
   Dark theme — sits between use-cases (white) and pricing (dark).
   ============================================================ */

/* ── Custom properties ──────────────────────────────────────── */
.fc-sp {
    --fc-sp-bg: #111410;
    --fc-sp-card-bg: #131513;
    --fc-sp-card-border: rgba(255 255 255 / 0.07);
    --fc-sp-card-featured-border: rgba(170 255 0 / 0.28);
    --fc-sp-card-featured-glow: rgba(170 255 0 / 0.06);
    --fc-sp-accent: #aaff00;
    --fc-sp-accent-dim: rgba(170 255 0 / 0.12);
    --fc-sp-text: #ffffff;
    --fc-sp-muted: rgba(255 255 255 / 0.48);
    --fc-sp-quote-color: rgba(255 255 255 / 0.78);
    --fc-sp-mark-color: rgba(170 255 0 / 0.20);
    --fc-sp-avatar-bg: rgba(170 255 0 / 0.10);
    --fc-sp-avatar-text: var(--fc-sp-accent);
    --fc-sp-strip-bg: rgba(255 255 255 / 0.04);
    --fc-sp-strip-border: rgba(255 255 255 / 0.07);
    --fc-sp-divider: rgba(255 255 255 / 0.12);
    --fc-sp-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --fc-sp-radius: 16px;
}


/* ── Section shell ──────────────────────────────────────────── */
.fc-sp {
    background: var(--fc-sp-bg);
    padding-block: 88px 72px;
    border-radius: 0;
    overflow: hidden;
}


/* ── Header ─────────────────────────────────────────────────── */
.fc-sp__header {
    text-align: center;
    max-width: 42rem;
    margin-inline: auto;
    margin-bottom: 52px;
    display: grid;
    gap: 14px;
}

.fc-sp__eyebrow {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fc-sp-accent);
    margin: 0;
}

.fc-sp__title {
    font-size: clamp(1.85rem, 3.4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.10;
    letter-spacing: -0.020em;
    color: var(--fc-sp-text);
    margin: 0;
}

.fc-sp__subtitle {
    font-size: 20px;
    line-height: 1.65;
    color: #ffffff;
    margin: 0;
}

.fc-sp__subtitle p {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
}


/* ── Quote card grid ────────────────────────────────────────── */
.fc-sp__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
    margin-bottom: 52px;
}


/* ── Individual quote card ──────────────────────────────────── */
.fc-sp__card {
    background: linear-gradient(
        160deg,
        rgba(170 255 0 / 0.04) 0%,
        var(--fc-sp-card-bg) 60%
    );
    border: 1px solid var(--fc-sp-card-featured-border);
    border-radius: var(--fc-sp-radius);
    padding: 32px 28px 28px;
    margin: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 100%;
    box-shadow:
        0 0 0 1px var(--fc-sp-card-featured-border),
        0 0 48px var(--fc-sp-card-featured-glow);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.fc-sp__card:hover {
    border-color: rgba(170 255 0 / 0.45);
    box-shadow:
        0 0 0 1px rgba(170 255 0 / 0.45),
        0 16px 48px rgba(170 255 0 / 0.10);
}

/* Decorative top-line on each card */
.fc-sp__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--fc-sp-accent) 30%,
        var(--fc-sp-accent) 70%,
        transparent
    );
    opacity: 0.55;
    border-radius: 0 0 2px 2px;
}


/* ── Large decorative quote mark ────────────────────────────── */
.fc-sp__quote-mark {
    display: block;
    font-size: 4.5rem;
    line-height: 0.7;
    font-family: Georgia, serif;
    color: rgba(170 255 0 / 0.30);
    user-select: none;
    pointer-events: none;
    /* Pull it up slightly to overlap with the card top edge */
    margin-bottom: -8px;
}


/* ── Blockquote text ────────────────────────────────────────── */
.fc-sp__quote {
    margin: 0;
    flex: 1;        /* pushes attribution to the bottom */
}

.fc-sp__quote p {
    font-size: 18px;
    line-height: 1.70;
    color: var(--fc-sp-quote-color);
    margin: 0;
    font-style: italic;
}


/* ── Attribution row ────────────────────────────────────────── */
.fc-sp__attribution {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255 255 255 / 0.06);
}

/* Initials avatar circle */
.fc-sp__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--fc-sp-avatar-bg);
    border: 1px solid rgba(170 255 0 / 0.20);
    color: var(--fc-sp-avatar-text);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fc-sp__author {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fc-sp__author-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--fc-sp-text);
    line-height: 1;
}

.fc-sp__author-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fc-sp__rating {
    font-size: 14px;
    font-weight: 700;
    color: var(--fc-sp-accent);
    letter-spacing: 0.04em;
}

.fc-sp__separator {
    color: var(--fc-sp-muted);
    font-size: 14px;
}

/* Flag icon sizing */
.fc-sp__flag {
    width: 16px !important;
    height: 12px !important;
    border-radius: 2px;
    flex-shrink: 0;
}


/* ── Credibility strip ──────────────────────────────────────── */
.fc-sp__strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: var(--fc-sp-strip-bg);
    border: 1px solid var(--fc-sp-strip-border);
    border-radius: 12px;
    padding: 20px 32px;
}

.fc-sp__strip-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.fc-sp__strip-value {
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--fc-sp-accent);
    line-height: 1;
}

.fc-sp__strip-label {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--fc-sp-muted);
    line-height: 1;
}

.fc-sp__strip-divider {
    width: 1px;
    height: 36px;
    background: var(--fc-sp-divider);
    flex-shrink: 0;
    margin-inline: 8px;
}


/* ── Scroll-triggered entrance ──────────────────────────────── */
.fc-sp__header,
.fc-sp__card,
.fc-sp__strip {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.65s var(--fc-sp-ease),
        transform 0.65s var(--fc-sp-ease);
}

.fc-sp__card:nth-child(2) { transition-delay: 0.10s; }
.fc-sp__card:nth-child(3) { transition-delay: 0.18s; }
.fc-sp__strip             { transition-delay: 0.08s; }

.fc-sp__header.is-visible,
.fc-sp__card.is-visible,
.fc-sp__strip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fc-sp__header,
    .fc-sp__card,
    .fc-sp__strip {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .fc-sp__card {
        transition: border-color 0.2s ease;
    }
}


/* ── Responsive: tablet ─────────────────────────────────────── */
@media (min-width: 48em) and (max-width: 68em) {
    .fc-sp__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .fc-sp__card {
        padding: 26px 22px 24px;
    }
}


/* ── Responsive: mobile ─────────────────────────────────────── */
@media (max-width: 47.99em) {
    .fc-sp {
        padding-block: 64px 56px;
    }

    .fc-sp__grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 36px;
    }

    .fc-sp__strip {
        flex-direction: column;
        gap: 20px;
        padding: 24px 20px;
        text-align: center;
    }

    .fc-sp__strip-divider {
        width: 40px;
        height: 1px;
        margin-inline: 0;
    }

    .fc-sp__strip-item {
        width: 100%;
    }
}
