.feature-explorer-section { padding-block: clamp(44px, 4vw, 64px); overflow: clip; }
.feature-explorer {
    --explorer-accent: #66e9f3;
    --explorer-glow: #18a5ec1a;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1280px;
    min-width: 0;
    margin-inline: auto;
}
.feature-explorer[data-scenario="ad_stats"] { --explorer-accent: #b6a0ff; --explorer-glow: #8963ff18; }
.feature-explorer[data-scenario="pnl"] { --explorer-accent: #ffd574; --explorer-glow: #ecaf1810; }
.feature-explorer[data-scenario="abc"] { --explorer-accent: #f3a5dc; --explorer-glow: #e754a915; }
.feature-explorer[data-scenario="unit"] { --explorer-accent: #89b8ff; --explorer-glow: #387eff18; }
.feature-explorer[data-scenario="supplies"] { --explorer-accent: #77f0c4; --explorer-glow: #15db9c14; }
.feature-carousel-head { order: 0; margin-bottom: 24px; text-align: center; }
.feature-carousel-head h2 {
    max-width: 1100px;
    margin: 0 auto;
    color: #f3faff;
    font-family: 'Unbounded', Arial, sans-serif;
    font-size: clamp(32px, 3.6vw, 54px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.045em;
    text-wrap: balance;
}
.feature-carousel-stage { position: relative; order: 2; width: 100%; max-width: 1144px; min-width: 0; margin-inline: auto; }
.feature-carousel-viewport { position: relative; width: calc(100% - 128px); max-width: 1000px; min-width: 0; margin-inline: auto; overflow: clip; }
.feature-story { position: relative; min-width: 0; scroll-margin-top: 110px; }
.feature-story + .feature-story { margin-top: 48px; }
.feature-explorer.is-enhanced .feature-story { margin-top: 0; }
.feature-explorer.is-enhanced .feature-story:not(.is-leaving) { z-index: 1; }
.feature-story.is-leaving { position: absolute; inset: 0; pointer-events: none; }
.feature-explorer [hidden] { display: none !important; }
.feature-explorer-media { min-width: 0; margin: 0; }
.feature-carousel-picture { position: relative; isolation: isolate; width: 100%; aspect-ratio: 1.78; max-height: 70svh; }
.feature-carousel-picture::before { position: absolute; z-index: -1; inset: -8%; background: radial-gradient(ellipse, var(--explorer-glow), transparent 70%); pointer-events: none; content: ''; }
.feature-explorer.is-enhanced .feature-carousel-picture { touch-action: pan-y pinch-zoom; }
.feature-explorer-screen { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.feature-carousel-caption { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px 16px 0; text-align: center; }
.feature-carousel-caption p { max-width: 860px; margin: 0; color: #bed3e3; font-size: 17px; line-height: 1.75; text-wrap: pretty; }
.feature-carousel-unit-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--explorer-accent); font-size: 13px; font-weight: 750; line-height: 1.5; text-decoration: none; }
.feature-carousel-unit-link .feature-explorer-arrow { width: 18px; height: 18px; }
.feature-explorer-arrow { display: inline-block; width: 24px; height: 24px; flex: 0 0 auto; background: currentColor; mask: url('/images/icons/heroicons-arrow-long-right.svg') center / contain no-repeat; -webkit-mask: url('/images/icons/heroicons-arrow-long-right.svg') center / contain no-repeat; }
.feature-carousel-controls { position: absolute; z-index: 3; top: var(--feature-arrow-y, 45%); right: 0; left: 0; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; }
.feature-explorer-step {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    appearance: none;
    border: 1px solid #83b7d14d;
    border-radius: 50%;
    background: #092337;
    color: #b9d5e6;
    cursor: pointer;
    pointer-events: auto;
    transition: border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.feature-explorer-step:hover { border-color: var(--explorer-accent); color: var(--explorer-accent); box-shadow: 0 0 22px var(--explorer-glow); transform: scale(1.06); }
.feature-explorer-step:active { transform: scale(.96); }
.feature-explorer-step.is-previous .feature-explorer-arrow { transform: rotate(180deg); }
.feature-carousel-nav { position: relative; order: 1; display: flex; align-items: stretch; gap: 26px; width: max-content; max-width: 100%; margin: 0 auto 26px; padding: 4px 8px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #328596 transparent; scroll-padding-inline: 8px; }
.feature-carousel-tab { position: relative; display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; min-height: 48px; padding: 10px 2px 14px; border-bottom: 1px solid #75d8e12e; color: #86a4bb; font-size: 17px; font-weight: 750; line-height: 1.4; white-space: nowrap; text-decoration: none; transition: color .22s ease; }
.feature-carousel-tab::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--explorer-accent) 20%, #d5fff8 50%, var(--explorer-accent) 80%, transparent); box-shadow: 0 0 12px var(--explorer-accent); opacity: 0; transform: scaleX(.2); transition: opacity .3s ease, transform .5s cubic-bezier(.2,.7,.2,1); content: ''; }
.feature-carousel-tab[aria-selected="true"], .feature-carousel-tab:hover { color: #effbff; }
.feature-carousel-tab[aria-selected="true"]::after { opacity: 1; transform: scaleX(1); }
.feature-carousel-tab-index { color: #68869e; font: 500 10px/1.2 ui-monospace, Consolas, monospace; }
.feature-carousel-tab[aria-selected="true"] .feature-carousel-tab-index { color: var(--explorer-accent); }
.feature-carousel-position { order: 4; display: flex; justify-content: center; gap: 12px; margin: 22px 0 0; color: #66869d; font: 500 11px/1.4 ui-monospace, Consolas, monospace; }
.feature-carousel-position strong { color: var(--explorer-accent); font-weight: 600; }
.feature-carousel-position > span { color: #426278; }
.feature-explorer-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; border-block: 1px solid #82c5dd24; background: radial-gradient(ellipse, var(--explorer-glow), transparent 70%); text-align: center; }
.feature-explorer-placeholder-mark { width: 64px; height: 64px; color: var(--explorer-accent); opacity: .65; background: currentColor; mask: url('/images/icons/heroicons-chart-bar-square.svg') center / contain no-repeat; -webkit-mask: url('/images/icons/heroicons-chart-bar-square.svg') center / contain no-repeat; }
.feature-explorer-placeholder strong { color: #c7e0ee; font-size: 18px; line-height: 1.5; }
.feature-explorer-image-error { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; margin: 0; padding: 24px; color: #a9c2d5; font-size: 15px; line-height: 1.6; text-align: center; }
.is-image-error .feature-explorer-screen { display: none; }
.is-image-error .feature-explorer-image-error { display: flex; }
.feature-explorer :is(a,button):focus-visible { outline: 2px solid var(--explorer-accent); outline-offset: 4px; }
.feature-explorer .feature-carousel-tab:focus-visible { outline-offset: -3px; border-radius: 5px; }
.feature-explorer-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1000px) {
    .feature-carousel-viewport { width: calc(100% - 108px); }
    .feature-carousel-nav { gap: 20px; }
    .feature-carousel-tab { font-size: 14px; }
    .feature-explorer-step { width: 42px; height: 42px; }
}
@media (max-width: 780px) {
    .feature-explorer-section { padding-block: 42px; }
    .feature-carousel-head { margin-bottom: 24px; }
    .feature-carousel-head h2 { font-size: clamp(28px, 6vw, 42px); line-height: 1.25; }
    .feature-carousel-stage { display: flex; flex-direction: column; }
    .feature-carousel-viewport { order: 0; width: 100%; }
    .feature-carousel-controls { position: relative; order: 1; top: auto; justify-content: center; gap: 20px; margin-top: 18px; transform: none; }
    .feature-explorer-step { width: 36px; height: 36px; }
    .feature-explorer-arrow { width: 21px; height: 21px; }
    .feature-carousel-picture { width: 94%; max-height: none; margin-inline: auto; }
    .feature-carousel-caption { padding: 20px 8px 0; }
    .feature-carousel-caption p { font-size: 15px; line-height: 1.75; }
    .feature-carousel-nav { gap: 22px; }
    .feature-carousel-tab { font-size: 14px; }
    .feature-carousel-position { margin-top: 12px; }
    .feature-explorer-placeholder { gap: 8px; padding: 14px; }
    .feature-explorer-placeholder-mark { width: 40px; height: 40px; }
    .feature-explorer-placeholder strong { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .feature-explorer *, .feature-explorer *::before, .feature-explorer *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
    .feature-carousel-tab[aria-selected="true"] { color: LinkText; text-decoration: underline; }
    .feature-carousel-tab::after, .feature-carousel-picture::before { display: none; }
}
