.case-page {
    --case-gap: clamp(48px, 7vw, 88px);
    --bg: #F0F0F0;
    --bg-alt: #FDFAF2;
    --border: #E6E4DD;
    --text-primary: #374151;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;
    --accent: #94643A;
    --accent-hover: #78502D;
    --accent-light: rgba(212, 165, 116, .08);
    --accent-soft: #D4A574;
    --shadow-md: 0 10px 30px rgba(55, 65, 81, .06);
}
.case-page section, .case-android-row { scroll-margin-top: 96px; }
.case-page .navbar { padding: 0 40px; background: rgba(253, 250, 242, .96); border-bottom: 1px solid var(--border); }
.case-page .navbar.scrolled { padding: 0 40px; }
.case-page .nav-container { min-height: 72px; }
.case-page .nav-brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-body); font-size: 21px; color: var(--text-primary); font-weight: 600; letter-spacing: .5px; }
.case-page .nav-brand img { border-radius: 50%; border: 1px solid #E8DFC4; }
.case-page .nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
.skip-link { position: fixed; top: -60px; left: 24px; padding: 10px 20px; background: var(--accent); color: #fff; z-index: 300; }
.skip-link:focus { top: 12px; }
.case-page :focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.case-hero { padding-top: clamp(148px, 14vw, 176px); text-align: center; }
.case-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 2px; color: var(--accent); margin-bottom: 18px; }
.case-title-row h1 { font-family: var(--font-serif); font-size: clamp(44px, 6.5vw, 76px); font-weight: 700; line-height: 1.5; letter-spacing: .06em; }
.case-title-accent { position: relative; display: inline-block; white-space: nowrap; }
.case-title-accent::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 9px; border-bottom: 2px solid #D4A574; border-radius: 50%; opacity: .5; }
.case-intro { font-size: 19px; line-height: 1.9; color: var(--text-secondary); margin: 24px auto 0; max-width: 650px; }
.case-hero-bottom { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 44px 0 36px; }
.case-primary, .case-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; min-width: 185px; border: 2px solid #D4A574; border-radius: 999px; padding: 12px 30px; font: 600 17px var(--font-body); text-decoration: none; cursor: pointer; transition: transform .2s, background-color .2s, box-shadow .2s; }
.case-primary { background: #D4A574; color: #382A1B; box-shadow: 0 10px 24px rgba(212, 165, 116, .22); }
.case-secondary { background: transparent; color: #94643A; }
.case-primary:hover, .case-secondary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(156, 115, 73, .16); }
.case-secondary:hover { background: #FDFAF2; }
.case-platforms { display: flex; justify-content: center; gap: 48px; margin-bottom: 76px; }
.case-platforms > a, .case-platforms > button, .case-platform-menu > summary { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; width: 90px; color: var(--text-primary); text-decoration: none; background: none; border: 0; cursor: pointer; font: 500 13px var(--font-body); }
.case-platform-icon { width: 76px; height: 76px; display: inline-flex; justify-content: center; align-items: center; border: 1px solid #E8DFC4; border-radius: 50%; background: #FFFEFA; box-shadow: 0 2px 4px rgba(55, 65, 81, .02); transition: transform .2s, box-shadow .2s; }
.case-platform-icon svg { width: 35px; height: 35px; fill: currentColor; }
.case-platforms a:hover .case-platform-icon, .case-platforms button:hover .case-platform-icon { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(156, 115, 73, .12); }
.case-qr-entry { position: relative; }
.case-qr-entry .case-platform-icon { position: relative; transition: transform .22s, border-radius .22s, box-shadow .22s; }
.case-qr-entry .case-platform-icon svg, .case-platform-name { transition: opacity .15s; }
.case-hover-qr { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); object-fit: contain; background: #fff; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.case-qr-hint { position: absolute; top: 126px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; color: var(--accent); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s; }
.case-platform-menu { position: relative; width: 90px; }
.case-platform-menu > summary { list-style: none; }
.case-platform-menu > summary::-webkit-details-marker { display: none; }
.case-platform-menu[open] { z-index: 10; }
.case-platform-popover { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: 238px; padding: 18px; background: #FFFEFA; border: 1px solid #E8DFC4; border-radius: 18px; box-shadow: 0 14px 36px rgba(55, 65, 81, .14); text-align: left; }
.case-platform-popover > p { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.case-platform-sources ul { list-style: none; }
.case-platform-sources li + li { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 10px; }
.case-platform-sources a { display: flex; justify-content: space-between; align-items: center; color: var(--accent); text-decoration: none; min-height: 36px; font-size: 14px; }
.case-platform-sources a:hover { text-decoration: underline; }
.case-platform-sources li > span { font-size: 12px; color: var(--text-secondary); }
@media (hover: hover) and (pointer: fine) {
    .case-qr-entry:hover, .case-qr-entry:focus-visible { z-index: 11; }
    .case-platforms .case-qr-entry:is(:hover, :focus-visible) .case-platform-icon { transform: scale(2); border-radius: 16px; box-shadow: 0 14px 36px rgba(55, 65, 81, .16); }
    .case-qr-entry:is(:hover, :focus-visible) .case-platform-icon svg, .case-qr-entry:is(:hover, :focus-visible) .case-platform-name { opacity: 0; }
    .case-qr-entry:is(:hover, :focus-visible) .case-hover-qr { opacity: 1; }
    .case-qr-entry:is(:hover, :focus-visible) .case-qr-hint { opacity: 1; visibility: visible; }
}
.case-back { color: var(--accent); font-size: 14px; text-decoration: none; padding: 8px 0; }
.case-cover { width: min(960px, calc(100% - 48px)); margin: 0 auto; }
.case-cover img { display: block; width: 100%; height: auto; border-radius: 24px; box-shadow: 0 12px 32px rgba(55, 65, 81, .06); }
.case-cover figcaption { padding: 20px 16px; text-align: center; font-size: 12px; color: var(--text-secondary); }
.case-section { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 56px; margin-top: var(--case-gap); margin-bottom: var(--case-gap); background: #fff; border: 1px solid #EAE7E0; border-radius: 28px; box-shadow: 0 12px 30px rgba(55, 65, 81, .035); }
#story { display: block; max-width: 900px; }
#story .case-section-heading { text-align: center; }
#story .case-prose { max-width: 700px; margin: 28px auto 0; padding-top: 0; }
.case-section-heading h2 { font-family: var(--font-serif); font-size: clamp(28px, 3.3vw, 40px); font-weight: 600; line-height: 1.6; letter-spacing: -.02em; }
.case-prose { padding-top: 0; }
.case-prose p { color: var(--text-secondary); font-size: 16px; line-height: 2; margin-bottom: 24px; }
.case-prose p:last-child { margin-bottom: 0; }
.case-prose .case-takeaway { padding: 20px 24px; border-left: 3px solid #D4A574; border-radius: 0 12px 12px 0; background: #FDFAF2; color: var(--text-primary); }
.case-takeaway strong { font-weight: 500; color: var(--accent); }
.case-flow-section { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: var(--case-gap) 0; }
.case-flow-section .case-section-heading { text-align: center; }
.case-section-note { color: var(--text-secondary); font-size: 16px; line-height: 1.9; margin-top: 18px; }
.case-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin-top: 44px; }
.case-flow li { background: #FDFAF2; border: 1px solid #EAE7E0; padding: 28px; border-radius: 18px; }
.case-step { color: var(--accent); font-family: var(--font-body); font-size: 14px; }
.case-flow h3 { font-family: var(--font-serif); font-size: 26px; font-weight: 600; margin: 14px 0; }
.case-flow p, .case-decisions p { font-size: 15px; color: var(--text-secondary); line-height: 1.9; }
.case-decisions { padding-top: 8px; }
.case-decisions article { border-top: 1px solid var(--border); padding: 24px 0; }
.case-decisions article:first-child { border-top: 0; padding-top: 0; }
.case-decisions h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.case-experience { padding: var(--case-gap) 0 56px; border-top: 1px solid var(--border); background: #FDFAF2; }
.case-experience .case-section-heading { max-width: 650px; margin: 0 auto; text-align: center; }
.case-downloads { max-width: 820px; margin: 44px auto 32px; }
.case-download-row { border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 30px 0; }
.case-download-row h3 { font-size: 21px; font-weight: 500; }
.case-download-row p { font-size: 14px; color: var(--text-secondary); margin-top: 6px; }
.case-download-row .btn-sm { min-height: 46px; min-width: 180px; justify-content: space-between; gap: 24px; font-size: 14px; background: #D4A574; color: #382A1B; border-color: #D4A574; border-radius: 999px; }
.case-download-row .btn-sm-outline { background: transparent; color: #94643A; }
.case-download-row .btn-sm:hover { background: #E2BC94; box-shadow: 0 6px 18px rgba(156, 115, 73, .12); }
.case-android { min-width: 250px; }
.case-android summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; cursor: pointer; list-style: none; padding: 12px 18px; border: 1px solid var(--accent-soft); border-radius: 24px; color: var(--accent); font-size: 14px; min-height: 46px; }
.case-android summary::-webkit-details-marker { display: none; }
.case-android summary:hover { background: var(--accent-light); }
.case-android[open] summary span { transform: rotate(180deg); }
.case-android ul { list-style: none; margin-top: 8px; }
.case-android li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.case-android li a { display: flex; align-items: center; justify-content: space-between; color: var(--accent); text-decoration: none; min-height: 32px; font-size: 15px; }
.case-android li > span { font-size: 12px; color: var(--text-secondary); }
.case-android-row { align-items: flex-start; }
.case-back { display: block; text-align: center; min-height: 44px; }
.case-page .site-footer { background: #FDFAF2; padding-top: 16px; }
.case-page .beian { background: #FDFAF2; }
.case-page .beian { flex-wrap: wrap; gap: 12px 16px; padding: 16px; }
.case-page .modal-content { background: #FFFEFA; }
.case-page .modal-btn { background: #D4A574; color: #382A1B; }
.case-title-row, .case-hero-bottom, .case-platforms { animation: case-enter .65s both; }
.case-hero-bottom { animation-delay: .08s; }
.case-platforms { animation-delay: .16s; }
@keyframes case-enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
    .case-section { gap: 32px; padding: 36px; }
    .case-flow { gap: 16px; }
    .case-flow li { padding: 24px; }
    .case-intro { font-size: 17px; }
}

@media (max-width: 600px) {
    .case-page .navbar, .case-page .navbar.scrolled { padding: 0 20px; }
    .case-page .nav-container { min-height: 64px; }
    .case-page .nav-brand { font-size: 17px; gap: 8px; }
    .case-page .nav-brand img { width: 30px; height: 30px; }
    .case-page .nav-links { gap: 14px; }
    .case-page .nav-links a { font-size: 12px; }
    .case-hero { padding-top: 116px; }
    .case-title-row h1 { font-size: 48px; line-height: 1.45; }
    .case-comma { display: none; }
    .case-title-accent { display: block; width: max-content; margin: 0 auto; }
    .case-intro { margin-top: 26px; font-size: 15px; }
    .case-hero-bottom { gap: 12px; margin: 30px 0; }
    .case-primary, .case-secondary { min-width: 0; flex: 1; max-width: 175px; min-height: 52px; padding: 10px 18px; font-size: 15px; }
    .case-platforms { gap: 28px; margin-bottom: 48px; }
    .case-platforms > a, .case-platforms > button, .case-platform-menu, .case-platform-menu > summary { width: 75px; }
    .case-qr-hint { top: 110px; font-size: 11px; }
    .case-platform-icon { width: 64px; height: 64px; }
    .case-platform-icon svg { width: 30px; height: 30px; }
    .case-cover { width: calc(100% - 32px); }
    .case-cover img { border-radius: 18px; }
    .case-cover figcaption { padding: 14px 20px; }
    .case-section { grid-template-columns: 1fr; gap: 24px; padding: 30px 24px; border-radius: 22px; }
    #story .case-prose { margin-top: 24px; }
    .case-section-heading h2 { font-size: 26px; }
    .case-prose p { font-size: 15px; }
    .case-prose, .case-decisions { padding-top: 0; }
    .case-flow { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
    .case-flow h3 { margin-top: 12px; }
    .case-download-row { align-items: flex-start; flex-direction: column; gap: 18px; padding: 24px 0; }
    .case-download-row .btn-sm, .case-android { width: 100%; }
    .case-downloads { margin-top: 32px; }
    .case-page .modal-content { padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .case-page { scroll-behavior: auto; }
    html:has(.case-page) { scroll-behavior: auto; }
    .case-page *, .case-page *::before, .case-page *::after { animation: none !important; transition: none !important; }
    .case-page .reveal { opacity: 1; transform: none; }
}
