/* ============================================================
   Reviews & Case Studies — page-specific styles
   Secondary accent: emerald (trust / results), alongside site red-600.
   ============================================================ */

/* ---------- Hero background: subtle dot-grid + glow ---------- */
.rv-hero-bg {
    background-color: #000;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(220, 38, 38, 0.12), transparent 45%),
        radial-gradient(circle at 82% 15%, rgba(16, 185, 129, 0.12), transparent 40%),
        radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: auto, auto, 26px 26px;
    background-position: 0 0, 0 0, 0 0;
}

/* ---------- Quick-jump pills ---------- */
.rv-jump-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid #27272a;
    background: #0a0a0a;
    color: #d4d4d8;
    font-weight: 600;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.rv-jump-pill:hover {
    border-color: rgba(16, 185, 129, 0.5);
    background: #0f0f0f;
    transform: translateY(-2px);
}

/* ---------- Generic badges / chips ---------- */
.rv-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
    white-space: nowrap;
}

.rv-case-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    font-weight: 800;
    font-size: 0.85rem;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #f87171;
}

.rv-case-number-emerald {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.rv-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid;
}

.rv-chip-red {
    color: #fca5a5;
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.28);
}

.rv-chip-emerald {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.28);
}

/* ---------- Testimonial marquee cards ---------- */
.rv-marquee-mask {
    -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.rv-marquee-mask .marquee-content:hover {
    animation-play-state: paused;
}

.rv-testi-card {
    flex: 0 0 auto;
    width: 300px;
    border: 1px solid #27272a;
    background: #0a0a0a;
    border-radius: 1rem;
    padding: 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.rv-stars {
    color: #fbbf24;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
}

.rv-testi-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #d4d4d8;
    flex: 1;
}

.rv-testi-author {
    font-size: 0.75rem;
    font-weight: 600;
    color: #a1a1aa;
}

.rv-testi-author span {
    font-weight: 500;
    color: #52525b;
    text-transform: lowercase;
}

/* ---------- Case-study visual cards ---------- */
.rv-visual-card {
    position: relative;
    border: 1px solid #27272a;
    background: linear-gradient(180deg, #0b0b0b, #070707);
    border-radius: 1.5rem;
    padding: 1.75rem;
    box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.8);
}

.rv-visual-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    border: 1px dashed rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.06);
    margin-bottom: 1.1rem;
}

.rv-svg-label {
    fill: #71717a;
    font-size: 9px;
    font-family: 'Inter', sans-serif;
}

/* ---------- Thumbnail mock comparison ---------- */
.rv-thumb-mock {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 0.75rem;
    border: 1px solid #27272a;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 0.5rem;
}

.rv-thumb-before {
    background:
        linear-gradient(135deg, #262626 0%, #1c1c1c 40%, #2d2d2d 100%);
}

.rv-thumb-before::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 6px, transparent 6px 12px);
}

.rv-thumb-after {
    background: radial-gradient(circle at 32% 38%, rgba(16, 185, 129, 0.35), transparent 55%), linear-gradient(135deg, #111 0%, #050505 100%);
    border-color: rgba(16, 185, 129, 0.4);
}

.rv-thumb-after::before {
    content: "";
    position: absolute;
    top: 18%;
    left: 12%;
    width: 42%;
    height: 42%;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.55);
    filter: blur(2px);
}

.rv-thumb-label {
    position: relative;
    z-index: 1;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #e4e4e7;
    background: rgba(0, 0, 0, 0.55);
    padding: 0.2rem 0.5rem;
    border-radius: 0.4rem;
}

/* ---------- Relative bar comparisons ---------- */
.rv-bar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rv-bar-track {
    flex: 1;
    height: 0.5rem;
    border-radius: 999px;
    background: #1c1c1e;
    overflow: hidden;
}

.rv-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.rv-bar-fill-dim {
    background: #52525b;
}

.rv-bar-fill-bright {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.rv-bar-label {
    font-size: 0.7rem;
    color: #a1a1aa;
    white-space: nowrap;
}

/* ---------- Upload cadence dot grid ---------- */
.rv-cadence-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.4rem;
    padding: 0.6rem;
    border: 1px solid #1f1f22;
    border-radius: 0.75rem;
    background: #050505;
}

.rv-dot {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 0.3rem;
    background: #1c1c1e;
}

.rv-dot-on {
    background: #52525b;
}

.rv-dot-on-em {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.rv-mini-tile {
    border: 1px solid #1f1f22;
    background: #050505;
    border-radius: 0.75rem;
    padding: 0.75rem 0.5rem;
}

.rv-mini-tile i {
    font-size: 0.9rem;
    display: block;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 640px) {
    .rv-testi-card {
        width: 250px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-content {
        animation: none;
    }
}
