.app-showcase { padding: 44px 30px 80px; }
.app-showcase-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(50px, 8vw, 120px); max-width: 1280px; margin-inline: auto; }
.app-showcase-visual { position: relative; isolation: isolate; min-width: 0; aspect-ratio: 686 / 737; margin: 0; overflow: hidden; border-radius: 40px; background: linear-gradient(155deg, #c9efff, #6bcff4); }
.app-showcase-pattern { position: absolute; inset: 0; z-index: -1; background: url('../images/app-showcase/dash-pattern.svg') 0 0 / 120px 96px; opacity: .28; }
.app-showcase-star { position: absolute; top: 6%; right: 14%; width: 16%; height: auto; transform-origin: center; animation: app-ai-spin 6s linear infinite; }
@keyframes app-ai-spin { to { transform: rotate(360deg); } }
/* Match the reference crop: top-right frame visible, left and bottom outside the panel. */
.app-showcase-mockup { position: absolute; top: 18%; right: 28%; width: 150%; height: 105%; padding: 9px; border: 2px solid #929ba5; border-radius: 29px; background: #111317; box-shadow: 0 0 0 2px rgb(255 255 255 / 45%); transition: transform 1100ms cubic-bezier(.16, 1, .3, 1), opacity 800ms ease; }
.app-showcase-dashboard-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right top; border-radius: 18px; }
.preview-screen { display: grid; grid-template-columns: 17.5% minmax(0, 1fr); height: 100%; overflow: hidden; border-radius: 18px; background: #fff; color: #273852; text-align: right; font-size: 11px; }
.preview-sidebar { display: flex; flex-direction: column; background: #f4f6fb; }
.preview-brand { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 6px; background: #1c5fba; color: #fff; font-size: 12px; line-height: 1.5; font-weight: 700; }
.preview-brand span { font-size: 18px; }
.preview-account { padding: 8px 10px; background: linear-gradient(#1c5fba, #158bd3); color: #fff; font-size: 9px; line-height: 1.4; }
.preview-account small { display: block; margin-top: 3px; font-size: 6px; opacity: .8; }
.preview-nav { padding: 14px 10px; color: #8291ab; font-size: 9px; }
.preview-nav > small { display: block; margin-bottom: 8px; font-size: 7px; }
.preview-nav > div { display: flex; align-items: center; gap: 8px; margin-block: 15px; }
.preview-nav svg { width: 13px; height: 13px; flex-shrink: 0; }
.preview-nav .is-selected { color: #158bd3; }
.preview-help { margin: auto 10px 16px; padding: 10px; background: #e9edf6; border-radius: 7px; font-size: 9px; }
.preview-help small { display: block; margin-top: 5px; font-size: 7px; color: #8291ab; }
.preview-main { min-width: 0; padding: 0 20px; }
.preview-topbar { display: flex; justify-content: flex-end; gap: 16px; height: 38px; padding: 10px; border-bottom: 1px solid #f0f2f7; color: #8291ab; }
.preview-main h3 { margin: 28px 0 14px; font-size: 20px; font-weight: 700; }
.preview-chart-card { overflow: hidden; border: 1px solid #e0e7f2; border-radius: 9px; padding: 18px 14px; }
.preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-bottom: 20px; }
.preview-stats > div { padding-inline: 10px; border-inline-end: 1px solid #eff2f7; }
.preview-stats > div > span { display: block; color: #8291ab; font-size: 10px; white-space: nowrap; }
.preview-stats strong { display: block; margin-top: 4px; font: 700 24px/1.5 sans-serif; }
.preview-stats small { display: block; font-size: 8px; color: #149b72; white-space: nowrap; }
.preview-stats small span { color: #8291ab; }
.preview-chart { display: block; width: 100%; height: 235px; }
.preview-chart-legend { display: flex; gap: 20px; justify-content: flex-start; padding: 16px 0 2px; color: #8291ab; font-size: 9px; }
.preview-chart-legend span::before { content: ''; display: inline-block; width: 3px; height: 10px; margin-inline-end: 6px; background: #18afe7; }
.preview-chart-legend span + span::before { background: #b9e7ff; }
.preview-bottom { display: flex; gap: 14px; margin-top: 15px; color: #8291ab; }
.preview-bottom > div { flex: 1; padding: 16px; border: 1px solid #e0e7f2; border-radius: 9px; }
.preview-bottom strong { display: block; margin-top: 8px; font-size: 23px; color: #273852; }
.app-showcase-copy { min-width: 0; }
.app-showcase-eyebrow { display: inline-flex; padding: 9px 22px; border: 2px solid #dce3ed; border-radius: 999px; color: #52617d; font-size: 14px; font-weight: 600; }
.app-showcase-copy h2 { margin: 20px 0 0; color: #112c5b; font-size: clamp(36px, 4.5vw, 60px); font-weight: 700; line-height: 1.55; letter-spacing: -.025em; }
.app-showcase-copy h2 span { display: block; }
.app-showcase-description { margin-top: 24px; color: #193f83; font-size: 17px; line-height: 2; }
.app-showcase-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 500px); gap: 14px; margin-top: 38px; }
.app-showcase-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; min-height: 64px; padding: 14px 18px; border-radius: 999px; font-size: 16px; font-weight: 500; text-align: center; transition: background-color 180ms ease; }
.app-showcase-actions svg { width: 18px; height: 18px; flex-shrink: 0; }
.app-showcase-primary { background: #112c5b; color: #fff; }
.app-showcase-primary:hover { background: #1c5fba; }
.app-showcase-secondary { border: 2px solid #dce3ed; color: #112c5b; background: transparent; }
body .app-showcase-actions .app-showcase-secondary.site-secondary-button { min-width: 0; }
.app-showcase-secondary:hover { background: #eff9ff; }
.app-showcase-actions a:focus-visible { outline: 3px solid #42c5f5; outline-offset: 4px; }
.app-showcase-reveal { transition: opacity 750ms ease, transform 850ms cubic-bezier(.16, 1, .3, 1); transition-delay: var(--reveal-delay, 0ms); }
.app-showcase.is-enhanced:not(.is-visible) .app-showcase-mockup { opacity: 0; transform: translateX(-120px); }
.app-showcase.is-enhanced:not(.is-visible) .app-showcase-reveal { opacity: 0; transform: translateY(28px); }
.dark .app-showcase-copy h2 { color: #eff9ff; }
.dark .app-showcase-description { color: #b5c8dd; }
.dark .app-showcase-eyebrow { color: #b9e7ff; border-color: #37516e; }
.dark .app-showcase-primary { background: #1c5fba; }
.dark .app-showcase-primary:hover { background: #158bd3; }
.dark .app-showcase-secondary { color: #ddf3ff; border-color: #37516e; }
.dark .app-showcase-secondary:hover { background: #10253e; }
@media (max-width: 1023px) {
    .app-showcase-layout { gap: 36px; }
    .app-showcase-copy h2 { font-size: 36px; }
    .app-showcase-description { font-size: 15px; }
    .app-showcase-actions a { min-width: 0; padding-inline: 24px; min-height: 56px; font-size: 14px; }
}
@media (max-width: 767px) {
    .app-showcase { padding: 24px 20px 56px; }
    .app-showcase-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .app-showcase-visual { border-radius: 28px; }
    .app-showcase-mockup { padding: 6px; border-radius: 20px; }
    .preview-screen, .app-showcase-dashboard-image { border-radius: 12px; }
    .preview-brand { font-size: 9px; padding: 10px 7px 5px; }
    .preview-account { padding: 7px; font-size: 8px; }
    .preview-account small { font-size: 5px; }
    .preview-nav { padding: 8px 6px; font-size: 7px; }
    .preview-nav > div { gap: 4px; margin-block: 10px; }
    .preview-nav svg { width: 10px; height: 10px; }
    .preview-main { padding-inline: 12px; }
    .preview-topbar { height: 24px; padding: 5px; }
    .preview-main h3 { margin: 18px 0 10px; font-size: 14px; }
    .preview-chart-card { padding: 12px 8px; }
    .preview-stats { gap: 5px; padding-bottom: 12px; }
    .preview-stats > div { padding-inline: 3px; }
    .preview-stats > div > span { font-size: 7px; }
    .preview-stats strong { font-size: 17px; }
    .preview-stats small { font-size: 5px; }
    .preview-chart { height: 160px; }
    .preview-chart-legend { gap: 10px; font-size: 6px; padding-top: 10px; }
    .app-showcase-copy h2 { font-size: clamp(32px, 8vw, 44px); }
    .app-showcase-actions { gap: 10px; margin-top: 28px; }
    .app-showcase-actions a { padding-inline: 10px; }
}
@media (max-width: 479px) {
    .app-showcase-actions a { gap: 5px; padding-inline: 6px; font-size: 12px; }
    .app-showcase-actions svg { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .app-showcase-star { animation: none; }
    .app-showcase .app-showcase-mockup, .app-showcase .app-showcase-reveal { opacity: 1 !important; transform: none !important; transition: none; }
}
