/* Trustpilot rating, reviews section and inline badge */

.tp-stars {
    --tp-star: #00b67a;
    --tp-star-empty: #dcdce6;
    --tp-star-size: 1.25rem;
    display: inline-flex;
    gap: 2px;
    vertical-align: middle;
}

.tp-stars--sm { --tp-star-size: 1rem; }
.tp-stars--lg { --tp-star-size: 1.75rem; gap: 3px; }

.tp-stars--level-1 { --tp-star: #ff3722; }
.tp-stars--level-2 { --tp-star: #ff8622; }
.tp-stars--level-3 { --tp-star: #ffce00; }
.tp-stars--level-4 { --tp-star: #73cf11; }
.tp-stars--level-5 { --tp-star: #00b67a; }

.tp-stars__star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--tp-star-size);
    height: var(--tp-star-size);
    background: var(--tp-star-empty);
}

.tp-stars__star--full { background: var(--tp-star); }
.tp-stars__star--half { background: linear-gradient(90deg, var(--tp-star) 50%, var(--tp-star-empty) 50%); }

.tp-stars__star svg {
    width: 78%;
    height: 78%;
    fill: #fff;
}

.tp-brand {
    font-weight: 700;
    color: #00b67a;
    letter-spacing: -0.02em;
}

/* ── Homepage reviews section ─────────────────────────────── */
.tp-section {
    background: #fff;
    border-top: 1px solid #e2e8f0;
}

.tp-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto clamp(1.5rem, 4vw, 2.25rem);
    text-align: center;
}

.tp-summary__label {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
}

.tp-summary__meta {
    margin: 0;
    font-size: 0.9375rem;
    color: #475569;
}

.tp-reviews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
    gap: clamp(1rem, 2.5vw, 1.5rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.tp-review {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.25rem 1.35rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.tp-review__title {
    margin: 0.2rem 0 0;
    font-size: 1rem;
    line-height: 1.35;
    color: #0f172a;
}

.tp-review__text {
    margin: 0;
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #334155;
}

.tp-review__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.25rem 0.75rem;
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
}

.tp-review__author {
    font-weight: 600;
    color: #0f172a;
}

.tp-review__link {
    align-self: flex-start;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #042775;
    text-decoration: none;
}

.tp-review__link:hover { text-decoration: underline; }

.tp-widget {
    margin-top: clamp(1.25rem, 3vw, 2rem);
}

.tp-section__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    margin-top: clamp(1.5rem, 4vw, 2.25rem);
}

.tp-section__all {
    font-weight: 600;
    color: #334155;
    text-decoration: none;
}

.tp-section__all:hover { color: #0f172a; text-decoration: underline; }

.tp-section__write {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.15rem;
    border-radius: 999px;
    background: #042775;
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.tp-section__write:hover { background: #0b4fd1; }

/* ── Compact badge (homepage testimonials head, plans hero) ── */
.tp-inline {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem 0.6rem;
    font-size: 0.875rem;
    color: #475569;
    text-decoration: none;
}

a.tp-inline:hover { color: #0f172a; }

.tp-inline strong { color: #0f172a; }

.plans-page__hero .tp-inline { margin-top: 0.85rem; }

@media (prefers-reduced-motion: reduce) {
    .tp-section__write { transition: none; }
}
