/* ═══════════════════════════════════════════════════════════════════
   GTN — app concept preview (Material Design 3 style, vanilla CSS)
   All sizes are in em: the phone's font-size scales with the width of
   .ls-mock, so the whole preview scales like an image.
   ═══════════════════════════════════════════════════════════════════ */

.ls-mock {
    container-type: inline-size;
}

/* ── Theme: black and white, the same for both modes ─────────────── */
.lx-phone {
    --md-primary: #000000;
    --md-on-primary: #FFFFFF;
    --md-primary-container: #E4E4E4;
    --md-on-primary-container: #000000;
    --md-secondary-container: #E8E8E8;
    --md-on-secondary-container: #000000;
    --md-surface: #FFFFFF;
    --md-surface-container: #F4F4F4;
    --md-surface-high: #F0F0F0;
    --md-on-surface: #111111;
    --md-on-surface-variant: #5C5C5C;
    --md-outline: #8A8A8A;
    --md-outline-variant: #D2D2D2;
    --lx-map: #ECECEC;
}

/* ── Phone ─────────────────────────────────────────────────────────── */
.lx-phone {
    font-size: calc(100cqw / 38);          /* 38em = full width of the preview */
    width: 38em;
    padding: 1em;
    border-radius: 5.4em;
    background: #1A1B20;
    box-shadow:
        0 0 0 0.2em #34353D inset,
        0 3em 6em -1em rgba(255, 255, 255, 0.18);
    font-family: Roboto, "Google Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--md-on-surface);
    line-height: 1.35;
    text-align: left;
    user-select: none;
}

.lx-phone p {
    margin: 0;
    width: auto;
    font-size: inherit;
    line-height: inherit;
}

.lx-screen {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 4.4em;
    background: var(--md-surface);
}

.lx-ic {
    width: 2.4em;
    height: 2.4em;
    fill: currentColor;
    flex: none;
}

/* Type scale (Material 3) */
.lx-title-l  { font-size: 2.2em !important; font-weight: 400; line-height: 1.27 !important; }
.lx-title-m  { font-size: 1.6em !important; font-weight: 500; line-height: 1.5 !important; }
.lx-body-s   { font-size: 1.2em !important; color: var(--md-on-surface-variant); line-height: 1.33 !important; }
.lx-label-s  { font-size: 1.1em !important; font-weight: 500; letter-spacing: .045em; color: var(--md-on-surface-variant); }

/* Text that changes between modes fades out and in */
.lx-swap {
    transition: opacity .3s ease, transform .3s ease;
}

.lx-phone.is-swapping .lx-swap {
    opacity: 0;
    transform: translateY(0.4em);
}

/* ── Status bar ────────────────────────────────────────────────────── */
.lx-status {
    position: relative;
    height: 4.6em;
    padding: 0 3em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1em;
}

.lx-status span {
    font-size: 1.4em;
    font-weight: 500;
}

.lx-cam {
    position: absolute;
    left: 50%;
    top: 1.2em;
    width: 9.6em;
    height: 2.6em;
    margin-left: -4.8em;
    border-radius: 2em;
    background: #1A1B20;
}

.lx-batt {
    width: 2.4em;
    height: 1.2em;
    border-radius: 0.3em;
    border: 0.15em solid var(--md-on-surface);
    box-shadow: inset 0 0 0 0.15em var(--md-surface), inset 2em 0 0 var(--md-on-surface);
}

/* ── Top app bar ───────────────────────────────────────────────────── */
.lx-appbar {
    display: flex;
    align-items: center;
    gap: 1.2em;
    padding: 0.6em 1.6em 1.2em;
}

.lx-appbar__text {
    flex: 1;
    min-width: 0;
}

.lx-appbar__text p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lx-iconbtn {
    width: 4em;
    height: 4em;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: none;
    color: var(--md-on-surface-variant);
}

.lx-iconbtn--tonal {
    background: var(--md-secondary-container);
    color: var(--md-on-secondary-container);
}

/* Switch (selected) */
.lx-switch {
    position: relative;
    width: 5.2em;
    height: 3.2em;
    border-radius: 1.6em;
    background: var(--md-primary);
    flex: none;
}

.lx-switch i {
    position: absolute;
    right: 0.4em;
    top: 0.4em;
    width: 2.4em;
    height: 2.4em;
    border-radius: 50%;
    background: var(--md-on-primary);
}

/* ── Map ───────────────────────────────────────────────────────────── */
.lx-map {
    position: relative;
    height: 26em;
    margin: 0 1.6em;
    border-radius: 2.8em;
    overflow: hidden;
    background: var(--lx-map);
}

.lx-layer {
    position: absolute;
    inset: 0;
    transition: opacity .8s ease, transform .8s ease;
}

.lx-layer--everyday { opacity: 0; transform: scale(1.08); }
.lx-phone[data-mode="everyday"] .lx-layer--events   { opacity: 0; transform: scale(.94); }
.lx-phone[data-mode="everyday"] .lx-layer--everyday { opacity: 1; transform: none; }

/* Events: venue floor plan */
.lx-room {
    position: absolute;
    border-radius: 1.6em;
    background: var(--md-surface);
    border: 0.15em solid var(--md-outline-variant);
}

.lx-room span {
    position: absolute;
    left: 1em;
    top: 0.8em;
    font-size: 1.1em;
    font-weight: 500;
    color: var(--md-on-surface-variant);
}

.lx-room--hl {
    background: var(--md-primary-container);
    border-color: var(--md-primary);
}

.lx-room--hl span {
    color: var(--md-on-primary-container);
}

/* Everyday: streets */
.lx-road {
    position: absolute;
    background: #FFFFFF;
    border-radius: 1em;
}

.lx-park {
    position: absolute;
    left: 42%;
    top: 46%;
    width: 26%;
    height: 22%;
    border-radius: 1.6em;
    background: #DCDCDC;
}

.lx-river {
    position: absolute;
    left: -10%;
    bottom: -6%;
    width: 70%;
    height: 22%;
    border-radius: 50%;
    background: #D6D6D6;
}

.lx-poi {
    position: absolute;
    width: 2.8em;
    height: 2.8em;
    margin: -1.4em 0 0 -1.4em;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #FFFFFF;
    color: #000000;
    box-shadow: 0 0.15em 0.5em rgba(0, 0, 0, .25);
}

.lx-poi .lx-ic {
    width: 1.6em;
    height: 1.6em;
}

/* Visibility radius and "you" */
.lx-radius {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20em;
    height: 20em;
    margin: -10em 0 0 -10em;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    border: 0.15em dashed rgba(0, 0, 0, 0.45);
    transition: width .8s ease, height .8s ease, margin .8s ease;
}

.lx-phone[data-mode="everyday"] .lx-radius {
    width: 15em;
    height: 15em;
    margin: -7.5em 0 0 -7.5em;
}

.lx-you {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2em;
    height: 2em;
    margin: -1em 0 0 -1em;
    border-radius: 50%;
    background: var(--md-primary);
    border: 0.35em solid #FFFFFF;
    box-shadow: 0 0.2em 0.6em rgba(0, 0, 0, .3);
}

.lx-you::after {
    content: "";
    position: absolute;
    inset: -0.35em;
    border-radius: 50%;
    background: var(--md-primary);
    opacity: .4;
    animation: lx-pulse 2.4s ease-out infinite;
    z-index: -1;
}

@keyframes lx-pulse {
    from { transform: scale(1);   opacity: .45; }
    to   { transform: scale(4.2); opacity: 0; }
}

/* People pins */
.lx-pin {
    position: absolute;
    width: 3.6em;
    height: 3.6em;
    margin: -1.8em 0 0 -1.8em;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1em;
    color: #FFFFFF;
    border: 0.3em solid #FFFFFF;
    box-shadow: 0 0.2em 0.6em rgba(0, 0, 0, .25);
    transition: left .9s cubic-bezier(.2, 0, 0, 1), top .9s cubic-bezier(.2, 0, 0, 1),
                background-color .6s ease, transform .3s ease;
}

.lx-pin b {
    font-size: 1.2em;
    font-weight: 500;
    transition: opacity .3s ease;
}

.lx-phone.is-swapping .lx-pin b {
    opacity: 0;
}

.lx-pin.is-active {
    transform: scale(1.25);
    box-shadow: 0 0 0 0.35em var(--md-primary), 0 0.3em 0.8em rgba(0, 0, 0, .3);
    z-index: 2;
}

/* ── Filter chips ──────────────────────────────────────────────────── */
.lx-chips {
    display: flex;
    gap: 0.8em;
    padding: 1.2em 1.6em;
    overflow: hidden;
}

.lx-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    height: 3.2em;
    padding: 0 1.6em;
    border-radius: 0.8em;
    border: 0.1em solid var(--md-outline);
    white-space: nowrap;
    flex: none;
}

.lx-chip span {
    font-size: 1.4em;
    font-weight: 500;
}

.lx-chip .lx-ic {
    width: 1.8em;
    height: 1.8em;
}

.lx-chip.is-on {
    padding-left: 0.8em;
    border-color: transparent;
    background: var(--md-secondary-container);
    color: var(--md-on-secondary-container);
}

/* ── Contact card (filled card) ────────────────────────────────────── */
.lx-card {
    margin: 0 1.6em;
    padding: 1.6em;
    border-radius: 2.8em;
    background: var(--md-surface-high);
}

.lx-card__head {
    display: flex;
    align-items: center;
    gap: 1.2em;
}

.lx-card__head > div {
    flex: 1;
    min-width: 0;
}

.lx-avatar {
    width: 3em;            /* 4.8em at the 1.6em font size below */
    height: 3em;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: none;
    color: #FFFFFF;
    background: #000000;
    font-size: 1.6em;
    transition: background-color .8s ease;
}

.lx-avatar {
    font-weight: 500;
}

.lx-card .lx-label-s {
    margin: 1.4em 0 0.8em;
}

.lx-shared {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6em;
}

.lx-assist {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    height: 2.8em;
    padding: 0 1.2em;
    border-radius: 0.8em;
    background: var(--md-surface);
    border: 0.1em solid var(--md-outline-variant);
}

.lx-assist span {
    font-size: 1.25em;
    font-weight: 500;
}

.lx-assist .lx-ic {
    width: 1.5em;
    height: 1.5em;
    color: var(--md-primary);
}

.lx-assist.is-locked {
    background: transparent;
    border-style: dashed;
    color: var(--md-on-surface-variant);
}

.lx-assist.is-locked .lx-ic {
    color: var(--md-on-surface-variant);
}

.lx-actions {
    display: flex;
    gap: 0.8em;
    margin-top: 1.6em;
}

.lx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8em;
    height: 4em;
    padding: 0 2.4em;
    border-radius: 2em;
    font-size: 1em;
}

.lx-btn,
.lx-btn span {
    font-weight: 500;
}

.lx-btn > span,
.lx-btn--outlined {
    font-size: 1.4em;
}

.lx-btn .lx-ic {
    width: 1.8em;
    height: 1.8em;
}

.lx-btn--filled {
    flex: 1;
    background: var(--md-primary);
    color: var(--md-on-primary);
    padding-left: 1.6em;
}

.lx-btn--outlined {
    height: calc(4em / 1.4);
    padding: 0 calc(2.4em / 1.4);
    border-radius: calc(2em / 1.4);
    border: calc(0.1em / 1.4) solid var(--md-outline);
    color: var(--md-primary);
}

/* ── Navigation bar ────────────────────────────────────────────────── */
.lx-nav {
    display: flex;
    margin-top: 1.6em;
    padding: 1.2em 0 2.4em;
    background: var(--md-surface-container);
}

.lx-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4em;
    font-size: 1.2em;
    font-weight: 500;
    color: var(--md-on-surface-variant);
}

.lx-nav__item i {
    display: grid;
    place-items: center;
    width: 5.33em;
    height: 2.67em;
    border-radius: 1.33em;
}

.lx-nav__item .lx-ic {
    width: 2em;
    height: 2em;
}

.lx-nav__item.is-active {
    color: var(--md-on-surface);
}

.lx-nav__item.is-active i {
    background: var(--md-secondary-container);
    color: var(--md-on-secondary-container);
}

/* ── Reduced motion ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .lx-layer, .lx-pin, .lx-radius, .lx-swap, .lx-avatar { transition: none !important; }
    .ls-modes__btn[aria-pressed="true"] .ls-modes__bar::after { animation: none; transform: scaleX(1); }
    .lx-you::after { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   Mode indicator under the phone — site style, not part of the app
   ═══════════════════════════════════════════════════════════════════ */
.ls-modes {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.ls-modes__btn {
    all: unset;
    box-sizing: border-box;
    position: relative;
    flex: 1;
    overflow: hidden;
    padding: 14px 16px 18px;
    border: 3.2px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    color: #FFFFFF;
    cursor: pointer;
    transition: border-color .3s ease, color .3s ease, background-color .3s ease;
}

.ls-modes__btn:hover {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.6);
}

.ls-modes__btn[aria-pressed="true"] {
    color: #000000;
    background: #FFFFFF;
    border-color: #FFFFFF;
}

.ls-modes__btn:focus-visible {
    outline: 3.2px solid #FFFFFF;
    outline-offset: 4px;
}

/* Progress line: fills while a mode is shown, then the preview moves on */
.ls-modes__bar {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 8px;
    height: 3px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.12);
    opacity: 0;
}

.ls-modes__btn[aria-pressed="true"] .ls-modes__bar {
    opacity: 1;
}

.ls-modes__bar::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #000000;
    transform: scaleX(0);
    transform-origin: left;
}

.ls-modes__btn[aria-pressed="true"] .ls-modes__bar::after {
    animation: ls-modes-progress var(--ls-modes-ms, 5000ms) linear forwards;
}

.ls-modes.is-paused .ls-modes__bar::after {
    animation-play-state: paused;
}

@keyframes ls-modes-progress {
    to { transform: scaleX(1); }
}
