/* Single case page. */
.case-kicker {
    margin-bottom: 12px;
    color: var(--accent-strong);
    font-size: clamp(10px, calc(9.429px + 0.179vw), 12px);
    font-weight: 600;
    letter-spacing: .10em;
    text-transform: uppercase;
}

/* =========================================================
   DETAIL PAGES
========================================================= */

.detail-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 14% 0%, rgba(96, 205, 255, .045), transparent 30%),
        #0f0f0f;
}

.case-page {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 22px 0 56px;
}

.case-header {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.case-back {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px 0 9px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .80);
    font-size: clamp(11px, calc(10.429px + 0.179vw), 13px);
    font-weight: 600;
    transition: transform .2s ease, background .2s ease;
}

.case-back:hover {
    transform: translateX(-2px);
    background: rgba(255, 255, 255, .08);
}

.case-back > span:first-child {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 7px;
    background: rgba(255, 255, 255, .03);
}

.case-back svg {
    width: 14px;
    height: 14px;
}

.case-hero {
    padding-top: 64px;
}

.case-hero__copy {
    width: min(820px, 100%);
    margin-bottom: 32px;
}

.case-hero__copy h1 {
    font-size: clamp(40px, calc(28px + 3.75vw), 82px);
    line-height: .98;
    font-weight: 650;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.case-hero__copy p {
    width: min(700px, 100%);
    margin-top: 20px;
    color: var(--muted);
    font-size: clamp(13px, calc(12.143px + 0.268vw), 16px);
    line-height: 1.68;
}

.case-hero__compare {
    width: 100%;
}

.compare-card--detail {
    aspect-ratio: 16 / 8.7;
}

.compare-card--detail .compare-card__drag-zone {
    z-index: 11;
}

.compare-card__percent--detail {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 9;
    min-width: auto;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: clamp(11px, calc(10.143px + 0.268vw), 14px);
    pointer-events: none;
}

.case-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 24px 0 0;
}

.case-section {
    min-height: 220px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
    backdrop-filter: blur(20px) saturate(115%);
    -webkit-backdrop-filter: blur(20px) saturate(115%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.case-section__number {
    margin-bottom: 34px;
    color: var(--accent-strong);
    font-size: clamp(9px, calc(8.429px + 0.179vw), 11px);
    font-weight: 600;
    letter-spacing: .10em;
}

.case-section h2 {
    margin-bottom: 10px;
    font-size: clamp(19px, calc(17.857px + 0.357vw), 23px);
    font-weight: 600;
    letter-spacing: -.02em;
}

.case-section p {
    color: var(--muted);
    font-size: clamp(12px, calc(11.429px + 0.179vw), 14px);
    line-height: 1.65;
}

.case-footer {
    display: flex;
    justify-content: flex-start;
    padding-top: 24px;
}

.primary-button--link {
    width: auto;
    min-width: 210px;
}

.brand--detail {
    max-width: 270px;
}

@media (max-width: 900px) {
    .case-page { width: min(100% - 30px, 760px); }
    .case-content { grid-template-columns: 1fr; }
    .case-section { min-height: 0; }
}

@media (max-width: 640px) {
    .case-page { width: calc(100% - 24px); padding-top: 12px; }
    .brand--detail .brand__text { display: none; }
    .case-hero { padding-top: 44px; }
    .case-hero__copy h1 { font-size: clamp(38px, calc(32.286px + 1.786vw), 58px); }
    .case-hero__copy p { font-size: clamp(12px, calc(11.429px + 0.179vw), 14px); }
    .compare-card--detail { aspect-ratio: 3 / 4; }
    .case-section { padding: 20px; }
}
