/* Case study slide decks: full-screen storytelling slides for desktop and mobile.
   Without JavaScript the slides simply stack, so every slide stays readable and indexable. */

.deck-page {
    --acc: #2563eb;
    --acc-text: color-mix(in srgb, var(--acc) 82%, #000000);
    --top-h: 56px;
    --cs-good-strong: #047857;
    background: var(--bg-white);
    color: var(--text-primary);
}

html[data-theme="dark"] .deck-page {
    --acc-text: color-mix(in srgb, var(--acc) 45%, #ffffff);
    --cs-good-strong: #34d399;
}

/* ---------- top bar ---------- */
.deck-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 12px;
    height: calc(var(--top-h) + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--bg-white) 90%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.deck-brand {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
}

.deck-progress {
    flex: 1;
    min-width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    overflow: hidden;
}

.deck-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--acc-text);
    transition: width 0.3s ease;
}

.deck-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.deck-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.deck-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    min-width: 38px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-primary);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.deck-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex: none;
}

.deck-btn:hover,
.deck-btn:focus-visible {
    border-color: var(--acc-text);
    color: var(--acc-text);
}

.deck-btn.icon-only {
    padding: 0;
    width: 38px;
}

.deck-top .theme-toggle {
    width: 38px;
    height: 38px;
}

/* ---------- slides (no-JS: stacked) ---------- */
.deck {
    padding-top: var(--top-h);
}

.slide {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 80vh;
    padding: 48px 24px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-white);
}

.slide-inner {
    width: 100%;
    max-width: 1000px;
    margin: auto;
}

.slide-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 1000px;
    margin: 24px auto 0;
    padding-right: 112px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
}

.slide-foot .sf-brand {
    color: var(--text-secondary);
    font-weight: 800;
    letter-spacing: 0.2px;
}

/* ---------- slides (JS deck mode) ---------- */
html.deck-on,
html.deck-on body.deck-page {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

html.deck-on .deck {
    position: fixed;
    inset: 0;
    padding: 0;
}

html.deck-on .slide {
    position: absolute;
    inset: 0;
    min-height: 0;
    padding: calc(var(--top-h) + env(safe-area-inset-top, 0px) + 28px) max(24px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
    border: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
}

html.deck-on .slide.is-active {
    visibility: visible;
}

/* Motion only once the browser is drawing frames (deck.js adds .deck-anim), so content never stays hidden. */
html.deck-anim .slide {
    opacity: 0;
    transform: translateX(48px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}

html.deck-anim .slide.is-prev {
    transform: translateX(-48px);
}

html.deck-anim .slide.is-active {
    opacity: 1;
    transform: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

html.deck-anim .slide.is-active .slide-inner > * {
    animation: deck-rise 0.55s ease both;
}

html.deck-anim .slide.is-active .slide-inner > :nth-child(2) { animation-delay: 0.08s; }
html.deck-anim .slide.is-active .slide-inner > :nth-child(3) { animation-delay: 0.16s; }
html.deck-anim .slide.is-active .slide-inner > :nth-child(4) { animation-delay: 0.24s; }
html.deck-anim .slide.is-active .slide-inner > :nth-child(n+5) { animation-delay: 0.3s; }

html.deck-anim .slide.is-active .cs-funnel .bar {
    animation: deck-grow 0.9s ease both 0.2s;
    transform-origin: left center;
}

@keyframes deck-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@keyframes deck-grow {
    from { transform: scaleX(0.04); }
    to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    html.deck-anim .slide,
    html.deck-anim .slide.is-active,
    html.deck-anim .slide.is-prev { transform: none; transition: opacity 0.2s, visibility 0s; }
    html.deck-anim .slide.is-active .slide-inner > *,
    html.deck-anim .slide.is-active .cs-funnel .bar { animation: none; }
}

/* ---------- bottom navigation ---------- */
.deck-nav {
    display: none;
}

html.deck-on .deck-nav {
    position: fixed;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 30;
    display: flex;
    gap: 8px;
}

.deck-nav .deck-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.deck-nav .deck-btn[disabled] {
    opacity: 0.35;
    cursor: default;
}

.deck-hint {
    display: none;
}

html.deck-on .deck-hint {
    display: block;
    margin-top: 1.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
}

/* ---------- shared slide typography ---------- */
.slide-kicker {
    display: block;
    width: fit-content;
    margin-bottom: 1.1rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--acc-text);
}

.slide h1,
.slide h2 {
    color: inherit;
    letter-spacing: -0.02em;
}

.slide .lead {
    margin-top: 1.1rem;
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
    line-height: 1.55;
    color: var(--text-secondary);
    max-width: 46rem;
}

.slide .hl {
    color: var(--acc-text);
    background: linear-gradient(transparent 64%, color-mix(in srgb, var(--acc) 22%, transparent) 0);
    padding: 0 0.08em;
}

/* gradient slides: cover, hook, acts, end */
.slide.s-dark {
    background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%);
    color: #ffffff;
}

.slide.s-dark .lead,
.slide.s-dark .slide-foot,
.slide.s-dark .slide-foot .sf-brand { color: rgba(255, 255, 255, 0.86); }

.slide.s-dark .slide-kicker { color: rgba(255, 255, 255, 0.9); }

.slide.s-dark .hl {
    color: #ffffff;
    background: linear-gradient(transparent 62%, rgba(255, 255, 255, 0.28) 0);
}

/* cover */
.s-cover h1 {
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    line-height: 1.1;
    max-width: 20ch;
}

@media (max-height: 820px) and (min-width: 761px) {
    .s-cover h1 { font-size: clamp(2rem, 4vw, 3rem); }
    .s-cover .cover-chips, .s-cover .cover-meta { margin-top: 1.1rem; }
    .s-cover .cover-note { margin-top: 1rem; }
}

.s-cover .cover-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: 1.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.s-cover .cover-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--c1);
    font-weight: 800;
}

.s-cover .cover-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.6rem;
}

.s-cover .cover-chips span {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.88rem;
    font-weight: 700;
}

.s-cover .cover-note {
    margin-top: 1.4rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 44rem;
}

/* hook + big statements */
.s-hook h2,
.s-big h2 {
    font-size: clamp(1.9rem, 5.4vw, 3.8rem);
    line-height: 1.14;
    max-width: 20ch;
}

/* acts */
.s-act .act-num {
    display: block;
    font-size: clamp(4.5rem, 16vw, 10rem);
    font-weight: 800;
    line-height: 0.9;
    color: rgba(255, 255, 255, 0.22);
    letter-spacing: -0.04em;
}

.s-act h2 {
    margin-top: 0.4rem;
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    line-height: 1.08;
}

/* single stat */
.s-stat .stat-value {
    display: block;
    font-size: clamp(4rem, 17vw, 10rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--acc-text);
}

.s-stat h2 {
    margin-top: 0.8rem;
    font-size: clamp(1.4rem, 3.4vw, 2.3rem);
    line-height: 1.25;
    max-width: 26ch;
}

/* stat grid */
.slide-title {
    font-size: clamp(1.5rem, 3.6vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1.6rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 14px;
}

.stat-tile {
    padding: 1.2rem 1.3rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.stat-tile b {
    display: block;
    font-size: clamp(1.6rem, 3.6vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--acc-text);
}

.stat-tile span {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.98rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

/* equation */
.slide .cs-equation {
    font-size: clamp(1rem, 2.4vw, 1.35rem);
    padding: 1.2rem;
    gap: 0.6rem;
}

.slide .cs-equation .term {
    font-size: inherit;
    font-weight: 700;
    padding: 0.55rem 0.9rem;
}

.slide .cs-equation .op {
    font-size: 1.3em;
    font-weight: 800;
}

.eq-caption {
    margin-top: 1.3rem;
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    color: var(--text-secondary);
}

.eq-caption strong { color: var(--acc-text); }

/* funnel */
.slide .cs-funnel {
    margin: 0;
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
}

.funnel-caption {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.funnel-caption strong { color: var(--acc-text); }

/* causes */
.s-cause .cause-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--acc) 14%, transparent);
    color: var(--acc-text);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.s-cause h2,
.s-lever h2 {
    font-size: clamp(1.7rem, 4.4vw, 3rem);
    line-height: 1.15;
    max-width: 24ch;
}

.s-cause p,
.s-lever p {
    margin-top: 1.1rem;
    font-size: clamp(1.08rem, 2.2vw, 1.4rem);
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 44rem;
}

/* quote */
.s-quote blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: clamp(1.6rem, 4.2vw, 2.8rem);
    line-height: 1.3;
    font-weight: 700;
    font-style: normal;
    color: var(--text-primary);
    max-width: 30ch;
}

.s-quote blockquote::before {
    content: "\201C";
    display: block;
    font-size: 4.5em;
    line-height: 0.6;
    height: 0.45em;
    color: var(--acc-text);
}

.s-quote cite {
    display: block;
    margin-top: 1.3rem;
    font-style: normal;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* insight */
.s-insight .insight-card {
    padding: clamp(1.4rem, 3.5vw, 2.6rem);
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--acc) 35%, var(--border));
    background: color-mix(in srgb, var(--acc) 8%, var(--surface));
}

.s-insight .insight-card .slide-kicker { margin-bottom: 0.8rem; }

.s-insight .insight-card p {
    font-size: clamp(1.25rem, 3vw, 2rem);
    line-height: 1.4;
    font-weight: 700;
    color: var(--text-primary);
}

/* lever */
.lever-pill {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--acc);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

html[data-theme="dark"] .lever-pill { color: #ffffff; }

/* wireframe slide */
.wf-slide {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
}

.wf-slide .wf-figure {
    max-width: 300px;
    justify-self: center;
}

.wf-slide .wf-screen { min-height: 0; }

.wf-label {
    display: inline-block;
    font-size: clamp(1.8rem, 4.6vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.wf-label.bad { color: var(--cs-bad); }
.wf-label.good { color: var(--cs-good-strong); }

.wf-slide .wf-lever {
    display: block;
    margin-top: 0.4rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.wf-notes {
    margin: 1.3rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: wfn;
}

.wf-notes li {
    counter-increment: wfn;
    position: relative;
    padding-left: 2.4rem;
    margin-bottom: 0.9rem;
    font-size: clamp(1.02rem, 2vw, 1.25rem);
    line-height: 1.5;
    color: var(--text-primary);
}

.wf-notes li::before {
    content: counter(wfn);
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--acc) 16%, transparent);
    color: var(--acc-text);
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wf-slide .wf-figure.before + .wf-copy .wf-notes li::before {
    background: color-mix(in srgb, var(--cs-bad) 14%, transparent);
    color: var(--cs-bad);
}

/* compare */
.compare-rows {
    display: grid;
    gap: 10px;
}

.compare-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 14px;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}

.compare-row .c-label {
    font-weight: 600;
    font-size: clamp(0.98rem, 2vw, 1.15rem);
}

.compare-row .c-before {
    color: var(--text-light);
    font-weight: 700;
    font-size: clamp(1.05rem, 2.4vw, 1.4rem);
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.compare-row .c-arrow { color: var(--text-light); }

.compare-row .c-after {
    color: var(--cs-good-strong);
    font-weight: 800;
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    min-width: 3.2ch;
    text-align: right;
}

/* lists */
.deck-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.deck-list li {
    position: relative;
    padding: 1rem 1.2rem 1rem 3.2rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.5;
    color: var(--text-secondary);
}

.deck-list li strong { color: var(--text-primary); }

.deck-list li::before {
    content: "";
    position: absolute;
    left: 1.2rem;
    top: 1.35rem;
    width: 0.9rem;
    height: 0.5rem;
    border-left: 3px solid var(--acc-text);
    border-bottom: 3px solid var(--acc-text);
    transform: rotate(-45deg);
}

/* context */
.slide .cs-context {
    margin: 0;
    font-size: 1.05rem;
}

.slide .cs-context dd { font-size: clamp(0.98rem, 1.8vw, 1.1rem); }

/* end slide */
.s-end h2 {
    font-size: clamp(2rem, 5.4vw, 3.6rem);
    line-height: 1.1;
}

.s-end .end-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 16px;
    margin-top: 1.6rem;
}

.s-end .end-card {
    padding: 1.2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.s-end .end-card h3 {
    font-size: 0.82rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.8rem;
}

.s-end .end-card a.more {
    display: block;
    padding: 0.55rem 0;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.s-end .end-card a.more:last-child { border-bottom: 0; }

.s-end .end-card a.more:hover { text-decoration: underline; }

.s-end .end-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.s-end .end-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--c1);
    font-weight: 800;
    text-decoration: none;
}

.s-end .end-cta.ghost {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.s-end .share-bar {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

.s-end .share-bar .share-title { display: none; }

.s-end .share-bar .share-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border-color: transparent;
}

/* ---------- share sheet ---------- */
.deck-sheet[hidden],
.deck-toast[hidden],
.deck-native-share[hidden] {
    display: none !important;
}

.deck-sheet {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(2, 6, 23, 0.55);
    padding: 16px;
}

.deck-sheet-panel {
    width: 100%;
    max-width: 520px;
    margin-bottom: env(safe-area-inset-bottom, 0px);
    padding: 1.4rem;
    border-radius: 20px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.35);
}

@media (min-width: 761px) {
    .deck-sheet { align-items: center; }
}

.deck-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0.6rem;
}

.deck-sheet-head h2 {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.deck-sheet p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.deck-sheet .share-bar {
    margin: 0;
    padding: 0;
    border: 0;
    flex-wrap: wrap;
}

.deck-sheet .share-bar .share-title { display: none; }

.deck-sheet .deck-native-share {
    margin-top: 1rem;
    width: 100%;
    height: 44px;
}

.deck-toast {
    position: fixed;
    left: 50%;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    z-index: 50;
    transform: translateX(-50%);
    padding: 10px 16px;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.3);
    max-width: calc(100vw - 32px);
    text-align: center;
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
    .deck-page { --top-h: 52px; }
    .deck-top { gap: 8px; }
    .deck-brand { font-size: 0.98rem; }
    .deck-btn .btn-label { display: none; }
    .deck-btn { padding: 0; width: 38px; }
    .slide-foot { padding-right: 104px; }
    .slide-foot .sf-meta { display: none; }
    html.deck-on .slide { padding-left: 20px; padding-right: 20px; padding-top: calc(var(--top-h) + env(safe-area-inset-top, 0px) + 20px); }

    .wf-slide {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .wf-slide .wf-copy { order: -1; }
    .wf-slide .wf-figure { zoom: 0.74; }
    .wf-label { font-size: 1.7rem; }
    .slide .lead { font-size: 1.04rem; margin-top: 0.8rem; }
    .s-cover h1 { font-size: 1.8rem; }
    .s-cover .cover-chips { margin-top: 1rem; }
    .s-cover .cover-chips span { font-size: 0.8rem; padding: 4px 10px; }
    .s-cover .cover-meta { margin-top: 1rem; }
    .s-cover .cover-note { margin-top: 0.9rem; font-size: 0.8rem; }
    html.deck-on .deck-hint { margin-top: 0.9rem; }
    .slide .cs-context { padding: 1rem; gap: 0.7rem 1rem; grid-template-columns: 1fr 1fr; }
    .slide .cs-context dd { font-size: 0.92rem; }
    .s-end .end-card { padding: 1rem; }
    .s-end .end-card .lead { display: none; }
    .s-end .end-card a.more:nth-of-type(n+3) { display: none; }
    .s-end h2 { font-size: 1.6rem; }
    .s-end > .slide-inner > .lead { display: none; }
    .s-end .end-card h3 { margin-bottom: 0.5rem; }
    .s-end .end-card a.more { padding: 0.4rem 0; font-size: 0.92rem; }
    .s-end .end-cta { padding: 8px 13px; font-size: 0.88rem; }
    .s-end .end-grid { gap: 12px; margin-top: 1.1rem; }
    .s-end .share-bar .share-btn .share-label { display: none; }
    .slide-title { margin-bottom: 1rem; }
    .deck-list { gap: 8px; }
    .deck-list li { padding: 0.7rem 0.9rem 0.7rem 2.7rem; font-size: 0.95rem; }
    .deck-list li::before { left: 1rem; top: 1.05rem; }
    .compare-rows { gap: 8px; }
    .compare-row { padding: 0.6rem 0.9rem; }
    .stat-grid { gap: 10px; }
    .stat-tile { padding: 0.9rem 1rem; }
    .slide-foot { margin-top: 14px; }
    .wf-notes { margin-top: 0.8rem; }
    .wf-notes li { margin-bottom: 0.5rem; }

    .compare-row {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 4px 10px;
    }

    .compare-row .c-label { grid-column: 1 / -1; }
    .compare-row .c-before { justify-self: start; }
}

@media (max-width: 380px) {
    .deck-count { display: none; }
}

/* Short phone screens: the cover's result chips repeat later slides, so drop them to keep the cover on one screen */
@media (max-width: 760px) and (max-height: 800px) {
    .s-cover .cover-chips { display: none; }
}

/* ---------- no printing or saving: share the link instead ---------- */
@media print {
    body.deck-page > * { display: none !important; }
    body.deck-page::before {
        content: "This case study is available online at adarshmohan.in. Please share the link instead of printing.";
        display: block;
        padding: 40px;
        font: 600 18px/1.5 system-ui, sans-serif;
        color: #0f172a;
    }
}
