/* Case study show — mobile-first responsive layout (replaces inline grids & JS hovers) */
.cs-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.cs-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.cs-mockup-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 70px;
}

.cs-feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition:
        transform var(--motion-duration-base, 280ms) var(--motion-ease-out, ease),
        box-shadow var(--motion-duration-base, 280ms) var(--motion-ease-out, ease),
        border-color var(--motion-duration-base, 280ms) var(--motion-ease-out, ease);
}

@media (hover: hover) and (pointer: fine) {
    .cs-feature-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
        border-color: color-mix(in srgb, var(--cs-accent, #3b82f6) 27%, #e2e8f0);
    }
}

.cs-mockup-browser {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.07);
    transform: perspective(1200px) rotateY(-2.5deg) rotateX(1.5deg);
    transition: transform var(--motion-duration-slow, 500ms) var(--motion-ease-out, ease);
}

.cs-mockup-phone {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.07);
    transform: perspective(700px) rotateY(4deg);
    transition: transform var(--motion-duration-slow, 500ms) var(--motion-ease-out, ease);
}

@media (hover: hover) and (pointer: fine) {
    .cs-mockup-browser:hover {
        transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
    }

    .cs-mockup-phone:hover {
        transform: perspective(700px) rotateY(0deg);
    }
}

.cs-upload-frame {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #030712;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.cs-upload-frame img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    transition: transform var(--motion-duration-slow, 500ms) var(--motion-ease-out, ease);
}

@media (hover: hover) and (pointer: fine) {
    .cs-upload-frame:hover img {
        transform: scale(1.02);
    }
}

.cs-related-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.cs-related-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.cs-btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: #0f172a;
    color: #fff;
    border-radius: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    font-size: 1rem;
    transition:
        background-color var(--motion-duration-base, 280ms) var(--motion-ease-out, ease),
        transform var(--motion-duration-base, 280ms) var(--motion-ease-out, ease);
}

@media (hover: hover) and (pointer: fine) {
    .cs-btn-dark:hover {
        background: #3b82f6;
        transform: translateY(-2px);
    }
}

.cs-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.related-card .cs-related-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    transition: color var(--motion-duration-base, 280ms) var(--motion-ease-out, ease);
}

@media (hover: hover) and (pointer: fine) {
    .related-card:hover .cs-related-title {
        color: #3b82f6;
    }
}

.cs-screens-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.cs-upload-grid.cols-1 { grid-template-columns: 1fr; }
.cs-upload-grid.cols-2 { grid-template-columns: 1fr; }
.cs-upload-grid.cols-3 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
    .cs-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .cs-screens-grid { grid-template-columns: repeat(2, 1fr); }
    .cs-upload-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
    .cs-upload-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 991px) {
    .cs-grid-3 { grid-template-columns: repeat(3, 1fr); }
    .cs-mockup-row { grid-template-columns: 1fr 260px; }
    .cs-related-grid { grid-template-columns: repeat(3, 1fr); }
    .cs-screens-grid { grid-template-columns: repeat(3, 1fr); }
    .cs-upload-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .cs-mockup-browser,
    .cs-mockup-phone {
        transform: none !important;
    }
}

/* ─── Zero-inline layout: case study show template ─── */
.vantage-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
    pointer-events: none;
}

.expert-hero .container {
    position: relative;
    z-index: 2;
}

.expert-hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
    display: inline-block;
    animation: cs-pulse-dot 2s infinite;
}

@keyframes cs-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.92); }
}

@media (prefers-reduced-motion: reduce) {
    .expert-hero-badge-dot { animation: none; }
}

.bento-tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.bento-tech-fallback {
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 11px;
    color: #94a3b8;
}

.bento-tech-label {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chapter-lead {
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.chapter-lead--challenge {
    font-size: 1.35rem;
    font-weight: 600;
    color: #334155;
}

.chapter-lead--solution {
    font-size: 1.5rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.chapter-anchor {
    height: 1px;
    margin-top: -1px;
    visibility: hidden;
}

.impact-top-bar .container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.impact-chapter-label {
    color: #60a5fa;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.impact-chapter-sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 1rem;
}

.impact-chapter-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 500;
}

.impact-headline-wrap {
    padding-top: 5rem;
    padding-bottom: 6rem;
}

.impact-results-wrap {
    padding-top: 6rem;
    padding-bottom: 8rem;
}

.impact-insight-icon--purple {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.impact-insight-icon--green {
    background: linear-gradient(135deg, #10b981, #065f46);
}

.cs-chapter-visuals {
    position: relative;
    overflow: hidden;
}

.cs-visuals-light {
    background: #f8fafc;
    padding: 80px 0 60px;
}

.cs-visuals-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3.5rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.cs-visuals-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--cs-accent, #38bdf8);
    margin-bottom: 1rem;
}

.cs-visuals-eyebrow-line {
    width: 24px;
    height: 2px;
    background: var(--cs-accent, #38bdf8);
    border-radius: 2px;
}

.cs-visuals-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #0f172a;
    line-height: 1.05;
    margin: 0;
}

.cs-visuals-desc {
    font-size: 1.05rem;
    color: #64748b;
    max-width: 380px;
    line-height: 1.7;
    margin: 0;
}

.cs-feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--cs-accent, #38bdf8) 13%, transparent), color-mix(in srgb, var(--cs-accent-2, #0ea5e9) 7%, transparent));
    border: 1px solid color-mix(in srgb, var(--cs-accent, #38bdf8) 20%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.cs-feature-icon svg {
    stroke: var(--cs-accent, #38bdf8);
}

.cs-feature-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.6rem;
}

.cs-feature-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

.cs-visuals-dark {
    background: #020617;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cs-glow-left {
    position: absolute;
    top: -200px;
    left: -150px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--cs-accent, #38bdf8) 9%, transparent) 0%, transparent 70%);
    pointer-events: none;
}

.cs-glow-right {
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--cs-accent-2, #0ea5e9) 7%, transparent) 0%, transparent 70%);
    pointer-events: none;
}

.cs-visuals-dark .container {
    position: relative;
    z-index: 2;
}

.cs-mockup-chrome {
    background: #1e293b;
    padding: 13px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cs-mockup-dots {
    display: flex;
    gap: 5px;
}

.cs-mockup-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.cs-mockup-dot--red { background: #ef4444; box-shadow: 0 0 5px rgba(239, 68, 68, 0.5); }
.cs-mockup-dot--amber { background: #f59e0b; box-shadow: 0 0 5px rgba(245, 158, 11, 0.5); }
.cs-mockup-dot--green { background: #22c55e; box-shadow: 0 0 5px rgba(34, 197, 94, 0.5); }

.cs-mockup-urlbar {
    flex: 1;
    background: #0f172a;
    border-radius: 5px;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-family: monospace;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cs-mockup-viewport {
    background: #0f172a;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
}

.cs-mockup-live {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid color-mix(in srgb, var(--cs-accent, #38bdf8) 33%, transparent);
    border-radius: 7px;
    padding: 6px 11px;
    font-family: monospace;
    font-size: 9.5px;
    color: var(--cs-accent, #38bdf8);
    backdrop-filter: blur(8px);
}

.cs-mockup-status {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 7px;
    padding: 5px 10px;
    font-family: monospace;
    font-size: 8.5px;
    color: #4ade80;
    backdrop-filter: blur(8px);
}

.cs-mockup-phone-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cs-mockup-phone-bar {
    background: #1e293b;
    padding: 9px 18px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cs-mockup-phone-notch {
    width: 60px;
    height: 4px;
    background: #334155;
    border-radius: 2px;
}

.cs-mockup-phone-screen {
    background: #0f172a;
    aspect-ratio: 9/16;
    position: relative;
    overflow: hidden;
    max-height: 280px;
}

.cs-mockup-phone-nav {
    background: #1e293b;
    padding: 10px 18px;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cs-stat-pill {
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cs-stat-pill--a1 {
    background: color-mix(in srgb, var(--cs-accent, #38bdf8) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--cs-accent, #38bdf8) 19%, transparent);
}

.cs-stat-pill--a1 .cs-stat-pill-value {
    color: var(--cs-accent, #38bdf8);
}

.cs-stat-pill--a2 {
    background: color-mix(in srgb, var(--cs-accent-2, #0ea5e9) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--cs-accent-2, #0ea5e9) 19%, transparent);
}

.cs-stat-pill--a2 .cs-stat-pill-value {
    color: var(--cs-accent-2, #0ea5e9);
}

.cs-stat-pill--fallback {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.cs-stat-pill--fallback .cs-stat-pill-value {
    color: #a78bfa;
}

.cs-stat-pill-value {
    font-size: 1.5rem;
    font-weight: 900;
    white-space: nowrap;
}

.cs-stat-pill-label {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.4;
}

.cs-section-label-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.cs-section-label-row--spaced {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.cs-section-label-line {
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--cs-screen-accent, #38bdf8), transparent);
}

.cs-section-label-text {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #64748b;
}

.cs-related-header {
    margin-bottom: 5rem;
}

.cs-related-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #0f172a;
    line-height: 1;
}

.cs-related-sub {
    color: #64748b;
    font-size: 1.2rem;
    margin-top: 1rem;
}

.related-card {
    display: block;
    text-decoration: none;
}

.cs-related-thumb {
    aspect-ratio: 16/10;
    border-radius: 2rem;
    overflow: hidden;
    margin-bottom: 2rem;
    background: #0f172a;
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.cs-related-category {
    font-size: 0.7rem;
    font-weight: 900;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 0.75rem;
}

.cs-upload-empty {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    font-size: 12px;
}
