/* ============================================================
   Screen tour — plate + thin/bold type + glass card + circular rail.
   Pattern taken from the coffee/food Figma animation: one featured
   dish, a floating overview card, circular thumbs with a pill on the
   active item, auto-advancing.
   ============================================================ */

.wall-section {
    overflow: hidden;
    background: var(--surface-2);
    min-height: auto;
    padding-block: calc(3.75rem + var(--section-y)) clamp(1.25rem, 3vh, 2rem);
}

.wall {
    position: relative;
    width: min(100% - var(--gutter) * 2, var(--max));
    margin-inline: auto;
    padding-block: 0;
}

.wall__blob {
    position: absolute;
    width: min(42vw, 26rem);
    height: min(42vw, 26rem);
    left: 22%;
    top: 4%;
    border-radius: 46% 54% 42% 58%;
    background: linear-gradient(135deg, #f3c4b8 0%, #f7d9c8 48%, transparent 72%);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.wall__stage {
    position: relative;
    z-index: 1;
    display: block;
    min-height: 0;
}

.wall__left {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0;
}

.wall__phone--mini {
    width: min(124px, 24vw);
    z-index: 2;
    margin-inline-end: -2.1rem;
    transform: rotate(-8deg);
    padding: 5px;
    border-radius: 24px;
}

.wall__phone--mini .wall__phone-notch {
    width: 48px;
    height: 12px;
    top: 8px;
}

.wall__phone--mini .wall__phone-screen {
    border-radius: 22px;
}

.wall__plate {
    position: relative;
    width: 100%;
    min-width: 0;
    aspect-ratio: auto;
    min-height: 0;
    padding: 1.25rem 1.6rem 1.35rem 7.5rem;
    border: 1px solid rgba(47, 143, 99, 0.22);
    border-radius: 20px;
    overflow: hidden;
    text-align: left;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, #f4fbf6 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 18px 44px -20px rgba(20, 48, 31, 0.32);
    display: grid;
    align-content: start;
    justify-items: start;
}

.wall__plate::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #8af0b8, #2f8f63, #176b42);
}

.wall__tabs {
    display: flex;
    gap: 1.1rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: #8a8a8a;
    margin-bottom: 0.65rem;
}

.wall__tabs .is-on {
    color: #1a1a1a;
    box-shadow: inset 0 -2px 0 #1a1a1a;
    padding-bottom: 0.2rem;
}

.wall__rate {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin: 0 0 0.55rem;
    padding: 0.28rem 0.55rem;
    border-radius: 10px;
    background: #f3b08a;
    color: #1a1a1a;
    font-size: 0.78rem;
    font-weight: 700;
}

.wall__plate h3 {
    font-family: var(--font-sans);
    font-size: clamp(1.25rem, 1.8vw, 1.65rem);
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.wall__short {
    margin: 0 0 0.55rem;
    font-size: 0.9rem;
    color: #6b6b6b;
}

.wall__body {
    margin: 0;
    max-width: 52ch;
    font-size: 0.86rem;
    line-height: 1.55;
    color: #4f4f4f;
}

.wall__phone {
    position: relative;
    width: min(185px, 42vw);
    aspect-ratio: 9 / 19.5;
    padding: 9px;
    border: 0;
    border-radius: 36px;
    background: linear-gradient(150deg, #2b332d, #10160f 46%, #232b25);
    box-shadow:
        0 2px 3px rgba(255, 255, 255, 0.18) inset,
        0 -1px 3px rgba(0, 0, 0, 0.5) inset,
        0 22px 50px -18px rgba(16, 21, 18, 0.45);
    cursor: pointer;
}

.wall__phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 18px;
    background: #0d120f;
    border-radius: 0 0 12px 12px;
    z-index: 3;
}

.wall__phone-screen {
    position: relative;
    display: block;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
}

.wall__phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #fff;
}

.wall__phone-mark {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: var(--tomato-050);
    color: var(--tomato-700);
}

.wall__phone-mark[hidden] {
    display: none;
}

.wall__phone-mark svg {
    width: 32%;
    height: 32%;
}

.wall__stage.is-swap .wall__plate,
.wall__stage.is-swap .wall__phone {
    animation: wall-in 0.5s var(--ease);
}

.wall__stage.is-swap .wall__phone--mini {
    animation-name: wall-in-mini;
}

@keyframes wall-in-mini {
    from { opacity: 0; transform: rotate(-8deg) translate3d(0, 8px, 0); }
    to { opacity: 1; transform: rotate(-8deg); }
}

@keyframes wall-in {
    from { opacity: 0; transform: translate3d(0, 8px, 0); }
    to { opacity: 1; transform: none; }
}

.wall__rail {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    margin-top: clamp(0.85rem, 2vh, 1.35rem);
}

/* The WhatsApp button is position:fixed to the same bottom-right corner
   regardless of scroll position, and on a phone the shell gutter alone
   (~1.25rem) isn't enough clearance to keep the rail's own circular next
   button from sitting right on top of it — two near-identical green
   circles the moment this rail scrolls into the lower part of the
   screen. Reserving the button's own footprint (58px + its offset) as
   padding pushes the rail's content clear of it. */
@media (max-width: 760px) {
    .wall__rail {
        padding-right: calc(58px + 1rem + 0.75rem + env(safe-area-inset-right));
    }
}

.wall__nav {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(180deg, #6fe3a4, #176b42);
    color: #fff;
    display: grid;
    place-items: center;
    border: 1px solid rgba(12, 64, 38, 0.4);
    padding: 0;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.45) inset,
        0 3px 0 #0e4a2c;
}

.wall__nav svg {
    width: 14px;
    height: 14px;
}

.wall__thumbs {
    justify-content: space-evenly;
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0.35rem;
}

.wall__thumbs::-webkit-scrollbar {
    display: none;
}

.wall__thumb {
    flex: 0 0 auto;
    scroll-snap-align: center;
    display: grid;
    justify-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem 0.65rem;
    border-radius: 1.35rem;
    background: transparent;
    border: 0;
    min-width: 5.6rem;
}

.wall__thumb.is-on {
    background: linear-gradient(180deg, #fff, #eef8f3);
    border: 1px solid rgba(47, 143, 99, 0.22);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 10px 20px -14px rgba(47, 143, 99, 0.45);
}

.wall__thumb img,
.wall__thumb i {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    background: #e8e8e8;
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-style: normal;
    color: var(--ink-3);
}

.wall__thumb > span {
    font-size: 0.68rem;
    color: #5a5a5a;
    max-width: 7.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640px) {
    .wall__left {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .wall__phone--mini {
        width: min(108px, 34vw);
        margin: 0 0 -1.1rem;
        order: -1;
    }

    .wall__plate {
        padding: 1.1rem 1.2rem 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wall__stage.is-swap .wall__plate,
    .wall__stage.is-swap .wall__phone {
        animation: none;
    }
}
