/* Decorative U-flow connecting the automation hero with its scenario section. */
.auto-scan-journey {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #fff;
}

.auto-hero {
    position: relative;
    z-index: 0;
    min-height: calc(100svh - 190px);
    padding-bottom: 136px;
}

.auto-hero-inner {
    position: relative;
    z-index: 4;
    max-width: 1100px;
}

.auto-hero-h1 {
    max-width: 1060px;
    font-size: clamp(3.25rem, 5vw, 4.5rem);
    line-height: 1.04;
}

.auto-hero-break { display: block; }

.scn-section {
    position: relative;
    z-index: 0;
    padding-top: 120px;
    background: transparent;
}

.scn-section > .wd-inner {
    position: relative;
    z-index: 4;
}

.scn-section .wd-header {
    position: relative;
    isolation: isolate;
}

.js .scn-section .wd-header {
    opacity: 1;
    transform: none;
}

.scn-section .wd-header::before {
    position: absolute;
    inset: -52px -96px;
    z-index: 0;
    background: radial-gradient(ellipse at center, #fff 0%, rgba(255,255,255,.98) 52%, rgba(255,255,255,.78) 70%, transparent 88%);
    pointer-events: none;
    content: '';
}

.scn-section .wd-header > * {
    position: relative;
    z-index: 1;
}

.auto-scan-scene {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 960px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 520ms cubic-bezier(.23, 1, .32, 1) 280ms;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 97%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 97%, transparent 100%);
}

.auto-scan-scene.is-ready { opacity: 1; }

.auto-scan-route {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    opacity: 0;
}

.auto-scan-route path {
    fill: none;
    stroke: none;
}

.auto-scan-belt {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.auto-scan-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 152px;
    opacity: 0;
    transform: translate3d(-120%, 0, 0);
    transition: none;
    will-change: transform, opacity;
}

.auto-scan-card-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border: 1px solid rgba(107,83,145,.17);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(107,83,145,.075);
    transition: none;
}

.auto-scan-card.is-crossing .auto-scan-card-layer { will-change: clip-path; }

.auto-scan-card-manual {
    z-index: 3;
    clip-path: inset(0 0 0 0);
    background: rgba(255,255,255,.97);
}

.auto-scan-card-code {
    z-index: 2;
    clip-path: inset(0 0 0 100%);
    background: rgba(247,240,250,.94);
}

.auto-scan-card-result {
    z-index: 1;
    clip-path: inset(0 0 0 100%);
    background: rgba(248,249,252,.98);
}

.auto-scan-ticket {
    width: 100%;
    height: 100%;
    padding: 17px;
}

.auto-scan-ticket-head,
.auto-scan-ticket-foot {
    display: flex;
    align-items: center;
}

.auto-scan-ticket-head {
    justify-content: space-between;
    gap: 14px;
}

.auto-scan-ticket-area {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font: 600 10.5px/1 var(--font-h);
}

.auto-scan-ticket-icon {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 1px solid rgba(107,83,145,.11);
    border-radius: 7px;
    color: var(--primary);
    background: rgba(247,240,250,.88);
}

.auto-scan-ticket-icon svg { width: 12px; height: 12px; }

.auto-scan-ticket-state {
    color: var(--muted);
    font: 500 10px/1 var(--font-h);
}

.auto-scan-ticket-title {
    margin: 17px 0 15px;
    color: var(--text);
    font: 600 17px/1.2 var(--font-h);
    letter-spacing: -.025em;
}

.auto-scan-ticket-foot {
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(107,83,145,.1);
    color: var(--muted);
    font: 500 9.5px/1.25 var(--font-h);
}

.auto-scan-ticket-time {
    color: var(--text);
    font-weight: 650;
    white-space: nowrap;
}

.auto-scan-result {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 17px;
    --result-mascot-size: 96px;
}

.auto-scan-result-head,
.auto-scan-result-foot,
.auto-scan-result-status {
    display: flex;
    align-items: center;
}

.auto-scan-result-head {
    min-height: 22px;
    justify-content: flex-start;
    width: calc(100% - var(--result-mascot-size) + 8px);
}

.auto-scan-result-status {
    color: var(--primary);
    font: 600 10px/1.15 var(--font-h);
    white-space: normal;
}

.auto-scan-result-mascot {
    position: absolute;
    top: 50%;
    right: 2px;
    z-index: 1;
    width: var(--result-mascot-size);
    height: var(--result-mascot-size);
    object-fit: contain;
    opacity: .9;
    transform: translateY(-57%);
    pointer-events: none;
}

.auto-scan-result > .auto-scan-ticket-title {
    width: calc(100% - var(--result-mascot-size) + 8px);
    margin: 12px 0 0;
}

.auto-scan-result-foot {
    position: absolute;
    right: 17px;
    bottom: 17px;
    left: 17px;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(107,83,145,.1);
    font: 500 9.5px/1.25 var(--font-h);
    white-space: nowrap;
}

.auto-scan-result-done {
    color: var(--primary);
    font-weight: 600;
}

.auto-scan-result-time {
    color: var(--text);
    font-weight: 650;
}

.auto-scan-code {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 15px 17px;
    overflow: hidden;
    color: rgba(107,83,145,.67);
    font: 8.5px/1.38 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    white-space: pre;
}

.auto-scan-particles {
    position: absolute;
    inset: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
    opacity: 1;
    pointer-events: none;
}

.auto-scan-contact {
    position: absolute;
    z-index: 6;
    width: 16px;
    background: linear-gradient(90deg, transparent, rgba(177,216,242,.22), rgba(107,83,145,.17), transparent);
    opacity: 0;
    transform: translateX(-50%) scaleY(.97);
    transition: opacity 160ms cubic-bezier(.23,1,.32,1), transform 180ms cubic-bezier(.23,1,.32,1);
    pointer-events: none;
}

.auto-scan-contact::before,
.auto-scan-contact::after {
    position: absolute;
    left: 2px;
    width: 12px;
    height: 1px;
    background: rgba(107,83,145,.34);
    content: '';
}

.auto-scan-contact::before { top: 0; }
.auto-scan-contact::after { bottom: 0; }

.auto-scan-contact--result {
    width: 12px;
    background: linear-gradient(90deg, transparent, rgba(177,216,242,.18), rgba(177,216,242,.32), transparent);
}

.auto-scan-contact--result::before,
.auto-scan-contact--result::after {
    left: 2px;
    width: 8px;
    background: rgba(127,175,207,.38);
}

.auto-scan-scene.is-shredding .auto-scan-contact--build {
    opacity: .62;
    transform: translateX(-50%) scaleY(1);
}

.auto-scan-scene.is-completing .auto-scan-contact--result {
    opacity: .42;
    transform: translateX(-50%) scaleY(1);
}

.auto-scan-beam {
    position: absolute;
    z-index: 7;
    width: 1.5px;
    background: rgba(107,83,145,.3);
    opacity: .74;
    transform: translateX(-50%) scaleX(.68);
    transition: background-color 160ms ease, opacity 160ms ease, transform 160ms cubic-bezier(.23,1,.32,1);
    pointer-events: none;
}

.auto-scan-beam--result {
    width: 1px;
    background: rgba(127,175,207,.46);
    opacity: .64;
    transform: translateX(-50%) scaleX(.72);
}

.auto-scan-scene.is-shredding .auto-scan-beam--build {
    background: rgba(107,83,145,.68);
    opacity: 1;
    transform: translateX(-50%) scaleX(1.35);
}

.auto-scan-scene.is-completing .auto-scan-beam--result {
    background: rgba(127,175,207,.78);
    opacity: .9;
    transform: translateX(-50%) scaleX(1.18);
}

@media (max-width: 1200px) {
    .auto-hero { padding-bottom: 112px; }
    .auto-hero-h1 {
        max-width: 940px;
        font-size: clamp(3rem, 5.3vw, 4rem);
    }
    .scn-section { padding-top: 96px; }
    .auto-scan-card { width: 248px; height: 136px; }
    .auto-scan-ticket { padding: 14px; }
    .auto-scan-result { padding: 14px; --result-mascot-size: 87px; }
    .auto-scan-result-status { font-size: 9.5px; }
    .auto-scan-result-foot { right: 14px; bottom: 14px; left: 14px; }
    .auto-scan-ticket-title { margin: 14px 0 12px; font-size: 15px; }
    .auto-scan-ticket-foot { font-size: 9px; }
    .auto-scan-result-foot { padding-top: 8px; font-size: 9px; }
    .auto-scan-code { padding: 13px 14px; font-size: 7.5px; }
}

@media (max-width: 900px) {
    .auto-hero-break { display: none; }
    .auto-hero { padding-bottom: 92px; }
    .scn-section { padding-top: 84px; }
    .auto-scan-card { width: 224px; height: 126px; }
    .auto-scan-ticket { padding: 13px; }
    .auto-scan-result { padding: 13px; --result-mascot-size: 81px; }
    .auto-scan-result-status { font-size: 9px; }
    .auto-scan-result-foot { right: 13px; bottom: 13px; left: 13px; }
    .auto-scan-ticket-title { margin: 12px 0 10px; font-size: 14px; }
    .auto-scan-ticket-foot { padding-top: 8px; font-size: 8.5px; }
    .auto-scan-result-foot { padding-top: 8px; font-size: 8.5px; }
    .auto-scan-code { padding: 12px 13px; font-size: 7px; }
}

@media (max-width: 760px) {
    .auto-hero { padding-bottom: 126px; }
    .scn-section { padding-top: 116px; }
    .auto-scan-card { width: 196px; height: 112px; }
    .auto-scan-ticket { padding: 12px; }
    .auto-scan-result { padding: 12px; --result-mascot-size: 72px; }
    .auto-scan-ticket-icon { width: 20px; height: 20px; }
    .auto-scan-result-status { font-size: 8.5px; }
    .auto-scan-result-foot { right: 12px; bottom: 12px; left: 12px; }
    .auto-scan-ticket-title { margin: 9px 0 7px; font-size: 12.5px; }
    .auto-scan-ticket-foot { padding-top: 7px; font-size: 8px; }
    .auto-scan-result-foot { gap: 6px; padding-top: 6px; font-size: 7.75px; }
    .auto-scan-code { padding: 11px 12px; font-size: 6.5px; }
    .auto-scan-contact { width: 12px; }
}

@media (max-width: 390px) {
    .auto-scan-result-status { font-size: 8.25px; }
}

@media (prefers-reduced-motion: reduce) {
    .auto-scan-scene,
    .auto-scan-scene.is-ready {
        opacity: .86;
        transition: none;
    }
    .auto-scan-particles,
    .auto-scan-contact { display: none; }
    .auto-scan-beam {
        background: rgba(107,83,145,.24);
        opacity: .9;
        transform: translateX(-50%) scaleX(.8);
        transition: none;
    }
}
