/* Proof (Case Study) Section */
.proof-section {
    background: var(--bg-body);
    border-top: 0;
}

[data-theme="dark"] .trust-badge {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(51, 65, 85, 0.95);
    color: var(--text-secondary);
}

[data-theme="dark"] .trust-badge:hover {
    box-shadow: 0 14px 38px -26px rgba(0, 0, 0, 0.75);
    color: #c7d2fe;
}

.proof-card {
    background: var(--bg-card);
    border-radius: 0.9rem;
    border: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 6px 18px -12px rgba(17, 24, 39, 0.18);
    transition: transform 180ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.proof-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -18px rgba(17, 24, 39, 0.24);
    border-color: rgba(17, 24, 39, 0.10);
}

.proof-stat {
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
    color: #4338ca;
    /* indigo-700 for premium calm */
}

[data-theme="dark"] .proof-stat {
    color: #818cf8;
    /* indigo-400 for more vibrancy */
}

[data-theme="dark"] .how-step__digit {
    color: #818cf8;
    /* indigo-400 for more vibrancy */
}

.proof-stat .proof-suffix {
    margin-left: 0.05em;
}

.proof-footnote {
    color: var(--text-muted);
    /* gray-500 */
}

/* Proof footnote link: keep default look identical; darken subtly on hover */
.proof-footnote a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}

.proof-footnote a:hover {
    color: #4b5563;
    /* gray-600 on hover for subtle emphasis */
}

/* Trust & Security Section */
.trust-section {
    background: var(--bg-body);
    /* unify with proof-section for visual grouping */
    border-top: 0;
    /* avoid double hairline between grouped sections */
}

[data-theme="light"] .proof-section,
[data-theme="light"] .trust-section {
    background: #ffffff;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    justify-content: center;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.6rem;
    border-radius: 0.6rem;
    background: var(--bg-card);
    /* very light */
    color: var(--text-secondary);
    /* slate-600 */
    border: 1px solid var(--border-color);
    font-size: 0.8125rem;
    line-height: 1.1;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease;
}

.trust-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -14px rgba(15, 23, 42, 0.22);
    color: #3730a3;
    /* indigo-800 tint on hover */
}

.trust-card {
    background: transparent;
    /* remove card chrome */
    border-radius: 0;
    border: 0;
    padding: 0;
    /* rely on grid gap + inner element margins */
    transition: color 180ms ease, background-color 180ms ease;
}

.trust-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

/* Subtle hover emphasis: darken heading only */
.trust-card:hover h3 {
    color: var(--text-main);
}

/* Mobile refinements for Trust & Security: increase side padding and reduce line length */
@media (max-width: 640px) {

    /* More generous safe area than the default container px */
    .trust-section .container {
        padding-left: 1.75rem;
        /* ~28px */
        padding-right: 1.75rem;
        /* account for iOS notches if applicable */
        padding-left: calc(1.75rem + env(safe-area-inset-left));
        padding-right: calc(1.75rem + env(safe-area-inset-right));
    }

    /* Comfortable line length and subtle inner breathing room */
    .trust-card h3,
    .trust-card p {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .trust-card p {
        max-width: 34ch;
        /* premium, readable measure */
        margin-left: auto;
        margin-right: auto;
        line-height: 1.65;
    }
}

/* Count-up numbers do not animate color; keep calm */
.countup {
    display: inline-block;
}