.logo-icon { height: 40px !important; }

/* ── Hero ── */
.case-study-hero {
    position: relative;
    overflow: hidden;
    background: #0f172a;
    text-align: center;
    color: #fff;
}
.case-study-hero-media {
    position: relative;
    width: 100%;
    line-height: 0;
}
.case-study-hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.54), rgba(30, 41, 59, 0.34));
    pointer-events: none;
}
.case-study-hero-image {
    display: block;
    width: 100%;
    height: auto;
}
.case-study-hero-copy {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.case-study-hero h1 {
    font-size: 42px;
    margin-bottom: 12px;
    font-family: 'Kallisto', sans-serif;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 30px;
    text-shadow: 0 3px 18px rgba(15, 23, 42, 0.55);
}
.case-study-hero p {
    font-size: 19px;
    opacity: 0.95;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 30px;
    text-shadow: 0 3px 18px rgba(15, 23, 42, 0.55);
}
.hero-badge {
    display: inline-block;
    background: rgba(99,102,241,0.82);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 18px;
    border-radius: 20px;
    margin-bottom: 22px;
}

/* ── Content wrapper ── */
.case-study-content {
    padding: 80px 0;
    background-color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Text sections ── */
.case-study-text-section {
    max-width: 900px;
    margin: 0 auto 70px;
    padding: 0 30px;
}
.case-study-text-section h1,
.case-study-text-section h2 {
    font-family: 'Kallisto', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 28px;
    line-height: 1.4;
    text-align: center;
}
.case-study-text-section h3 {
    font-family: 'Kallisto', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-top: 44px;
    margin-bottom: 14px;
}
.case-study-text-section p,
.case-study-text-section li {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 16px;
}
.case-study-text-section ul {
    padding-left: 22px;
    margin-bottom: 18px;
}
.case-study-text-section ul li { margin-bottom: 8px; }

/* ── Highlight/quote boxes ── */
.highlight-box {
    background: #f0f4ff;
    border-left: 4px solid #6366f1;
    padding: 18px 22px;
    border-radius: 4px;
    margin: 24px 0;
    font-style: italic;
    color: #374151;
    font-size: 16px;
    line-height: 1.75;
}
.highlight-box strong { color: #4f46e5; }

.key-message-box {
    background: linear-gradient(135deg, #eef2ff 0%, #f0fdf4 100%);
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    padding: 26px 30px;
    margin: 32px 0;
}
.key-message-box p {
    margin: 0 0 10px;
    font-size: 16px;
    color: #374151;
    line-height: 1.75;
}
.key-message-box p:last-child { margin-bottom: 0; }
.key-message-box strong { color: #4f46e5; }

.learnings-box {
    background: #1e293b;
    border-radius: 12px;
    padding: 28px 32px;
    margin: 32px 0;
    color: #f1f5f9;
}
.learnings-box h4 {
    font-family: 'Kallisto', sans-serif;
    font-size: 17px;
    color: #fff;
    margin: 0 0 16px;
}
.learnings-box p,
.learnings-box li {
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 10px;
}
.learnings-box ul {
    padding-left: 20px;
}
.learnings-box .segment-block { margin-bottom: 20px; }
.learnings-box .segment-block:last-child { margin-bottom: 0; }
.learnings-box .seg-label {
    display: inline-block;
    background: rgba(99,102,241,0.3);
    color: #a5b4fc;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 10px;
    margin-bottom: 10px;
}
.learnings-box .seg-label.teal {
    background: rgba(16,185,129,0.25);
    color: #6ee7b7;
}

/* ── Graph / chart sections ── */
.case-study-graph-section {
    max-width: 1100px;
    margin: 60px auto 0;
    padding: 0 30px;
}
.case-study-graph-section h2 {
    font-family: 'Kallisto', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    text-align: center;
    line-height: 1.4;
}
.section-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 32px;
    line-height: 1.6;
}
.metric-note {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 32px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.65;
}
.metric-note strong { color: #374151; }

/* ── Chart info tooltip ── */
.chart-info {
    display: flex;
    justify-content: center;
    position: relative;
    margin: 4px 0 18px;
}
.chart-info .info-trigger {
    cursor: help;
    color: #6366f1;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    padding: 3px 10px;
    border-radius: 16px;
    background: #eef2ff;
    transition: background 0.2s;
}
.chart-info .info-trigger:hover { background: #e0e7ff; }
.chart-info .info-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 380px;
    padding: 14px 16px;
    background: #1e293b;
    color: #f1f5f9;
    font-size: 13px;
    line-height: 1.7;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    z-index: 100;
    transition: opacity 0.2s, visibility 0.2s;
    font-family: 'Inter', sans-serif;
    white-space: pre-line;
}
.chart-info .info-trigger:hover + .info-tooltip,
.chart-info .info-tooltip:hover {
    visibility: visible;
    opacity: 1;
}

/* ── Claims table ── */
.claims-table-wrap {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
}
.claims-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 10px 0 40px;
}
.claims-table thead th {
    background: #1e293b;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 12px 16px;
    text-align: left;
    font-family: 'Kallisto', sans-serif;
}
.claims-table thead th:first-child { border-radius: 8px 0 0 0; }
.claims-table thead th:last-child { border-radius: 0 8px 0 0; }
.claims-table tbody tr:nth-child(even) { background: #f8fafc; }
.claims-table tbody tr:hover { background: #eef2ff; }
.claims-table tbody td {
    padding: 11px 16px;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    line-height: 1.55;
    vertical-align: top;
}
.claims-table tbody td:first-child { font-weight: 500; color: #111827; }
.claims-table tbody td:last-child {
    color: #4f46e5;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

/* ── Ranking table (mdf style — same as coffee machine) ── */
.mdf {
    margin: 26px auto 0;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}
.slogan-row {
    display: grid;
    grid-template-columns: 4fr repeat(2, 1fr);
    gap: 10px;
    align-items: center;
    padding: 9px 12px;
    border-bottom: 3px solid #e5e7eb;
}
.slogan-row.head {
    background: #111827;
    color: #fff;
    font-weight: 700;
    font-family: 'Kallisto', sans-serif;
    border-radius: 14px;
}
.benefits-bar {
    position: relative;
    height: 28px;
    border-radius: 16px;
    background: #eef2ff;
    overflow: hidden;
}
.benefits-bar-fill { height: 100%; position: absolute; left: 0; top: 0; }
@keyframes fillBar {
    from { width: 0% !important; }
    to   { width: var(--final-width) !important; }
}
.mdf.animate-bars .benefits-bar-fill {
    animation: fillBar 1.6s ease-out forwards;
}
.benefits-value {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    color: #111827;
}
.gold   { background: linear-gradient(90deg, #f7e58d, #f5d348); }
.silver { background: linear-gradient(90deg, #9cd0ff, #71b9ff); }
.bronze { background: linear-gradient(90deg, #ffb39c, #ff8c6b); }
.neutral { background: #cbd5e1; }

/* ── Chart box (same as coffee machine) ── */
.chart-box {
    margin-top: 60px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    position: relative;
}
.bubble-tooltip {
    position: absolute;
    pointer-events: none;
    background: #1e293b;
    color: #f1f5f9;
    font-size: 13px;
    line-height: 1.5;
    padding: 8px 14px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    white-space: nowrap;
    z-index: 200;
    opacity: 0;
    font-family: 'Inter', sans-serif;
}
.bubble-tooltip.visible { opacity: 1; }
#bubble-chart { width: 100%; height: auto; display: block; }
#productMixChart { width: 100%; max-width: 1050px; height: 420px; display: block; margin: 0 auto; }
.note {
    margin-top: 16px;
    padding: 14px;
    background: #eef2ff;
    border-left: 4px solid #6366f1;
    font-size: 14px;
    color: #374151;
    line-height: 1.65;
}

/* ── Info box ── */
.study-info-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 32px;
    margin-top: 20px;
}
.info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-weight: 700;
    font-size: 16px;
    color: #111827;
    font-family: 'Kallisto', sans-serif;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
    margin: 18px 0;
}
.info-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 12px;
    text-align: center;
}
.info-icon { font-size: 22px; margin-bottom: 6px; }
.info-label { font-size: 12px; color: #6b7280; margin-bottom: 4px; }
.info-value { font-size: 17px; font-weight: 700; color: #111827; }
.info-disclaimer {
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
    margin-top: 12px;
    line-height: 1.65;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .slogan-row { grid-template-columns: 1fr; }
    .chart-info .info-tooltip { width: 280px; }
}
@media (max-width: 600px) {
    .case-study-hero h1 { font-size: 22px; }
    .case-study-hero p { font-size: 14px; }
    .case-study-text-section { padding: 0 16px; }
    .case-study-graph-section { padding: 0 16px; }
    .claims-table { font-size: 12px; }
    .claims-table thead th,
    .claims-table tbody td { padding: 9px 10px; }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
    #productMixChart { height: 280px; }
}
