﻿/* =========================================
   ClientPulse Trust Seal
   Version 1.3
========================================= */

:root {
    --clientpulse-navy: #172554;
    --clientpulse-purple: #6d28d9;
    --clientpulse-orange: #ff8500;
    --clientpulse-green: #22c55e;
    --clientpulse-divider: #e8ebf2;
    --clientpulse-muted: #64748b;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 14px 16px 18px;
    background: transparent;
    color: var(--clientpulse-navy);
    font-family: "Segoe UI", Inter, Arial, Helvetica, sans-serif;
}

.trust-card {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

    /* Heading */

    .trust-card h2 {
        margin: 0;
        font-size: clamp(1.8rem, 5vw, 2.45rem);
        font-weight: 700;
        line-height: 1.15;
        color: var(--clientpulse-navy);
    }

/* Satisfaction score */

.score {
    margin-top: 10px;
    font-size: clamp(5.4rem, 19vw, 8.25rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.06em;
    background: linear-gradient( 100deg, #5425e5 0%, #8a2ac7 45%, #ff7600 100% );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Stars */

.stars {
    margin-top: 2px;
    color: var(--clientpulse-orange);
    font-size: clamp(1.75rem, 5.8vw, 2.4rem);
    line-height: 1;
    letter-spacing: 0.1em;
}

/* Survey count */

.responses {
    margin: 18px 0 0;
    color: var(--clientpulse-navy);
    font-size: clamp(1rem, 3vw, 1.22rem);
    line-height: 1.45;
}

    .responses span {
        color: var(--clientpulse-purple);
        font-weight: 750;
    }

/* Live indicator */

.live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    color: var(--clientpulse-navy);
    font-size: 1rem;
    font-weight: 650;
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--clientpulse-green);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    animation: clientpulse-live-pulse 2.4s ease-out infinite;
}

@keyframes clientpulse-live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    65% {
        box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Verification signature */

.verified {
    width: min(420px, 86%);
    margin: 22px auto 0;
    padding-top: 14px;
    border-top: 1px solid var(--clientpulse-divider);
}

.verified-label {
    display: block;
    margin-bottom: 8px;
    color: var(--clientpulse-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: none;
}

.verified-logo {
    display: block;
    width: 155px;
    max-width: 25%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    opacity: 0.96;
}

/* Loading and error states */

.trust-card.is-loading .score,
.trust-card.is-loading .responses {
    opacity: 0.55;
}

.trust-card-error {
    margin-top: 12px;
    color: #b91c1c;
    font-size: 0.9rem;
}

/* Mobile */

@media (max-width: 480px) {
    body {
        padding: 12px 10px 16px;
    }

    .trust-card {
        max-width: 360px;
    }

        .trust-card h2 {
            font-size: 1.75rem;
        }

    .score {
        margin-top: 8px;
        letter-spacing: -0.07em;
    }

    .responses {
        margin-top: 14px;
    }

    .verified {
        width: 82%;
        margin-top: 18px;
        padding-top: 13px;
    }

    .verified-logo {
        width: 135px;
        max-width: 60%;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .live-dot {
        animation: none;
    }
}
