/* Live digital menu demo (Views/Marketing/Templates/MenuDemo.cshtml). Uses the --lp-* tokens of landing.css. */

.md-block {
    background: linear-gradient(180deg, #fff 0%, var(--lp-surface-2) 100%);
}

.md-stage {
    display: grid;
    grid-template-columns: auto minmax(0, 440px);
    gap: 56px;
    align-items: start;
    justify-content: center;
}

/* ---------- Phone frame ---------- */
.md-device {
    display: flex;
    justify-content: center;
}

.md-phone {
    position: relative;
    width: 414px;
    max-width: 100%;
    padding: 12px;
    background: var(--lp-brand-deep);
    border-radius: 48px;
    box-shadow: var(--lp-shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, .08);
}

.md-phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    z-index: 1;
    width: 110px;
    height: 24px;
    background: var(--lp-brand-deep);
    border-radius: 0 0 16px 16px;
    transform: translateX(-50%);
    pointer-events: none;
}

.md-frame {
    display: block;
    width: 100%;
    height: 780px;
    border: 0;
    border-radius: 36px;
    background: #fff;
}

/* ---------- Control panel ---------- */
.md-panel {
    display: grid;
    gap: 26px;
    padding-top: 8px;
}

.md-label {
    margin: 0 0 12px;
    color: var(--lp-brand-deep);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.md-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.md-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    color: var(--lp-text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border-strong);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

    .md-chip:hover {
        border-color: var(--lp-brand-2);
    }

    .md-chip:focus-visible {
        outline: 3px solid rgba(22, 94, 254, .35);
        outline-offset: 2px;
    }

    .md-chip[aria-pressed="true"] {
        color: var(--lp-brand-dark);
        background: var(--lp-brand-soft);
        border-color: var(--lp-brand);
        box-shadow: 0 0 0 1px var(--lp-brand) inset;
    }

.md-chip-lang {
    min-width: 52px;
    justify-content: center;
    letter-spacing: .04em;
}

.md-swatch {
    width: 18px;
    height: 18px;
    flex: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--md-sw-a) 0 50%, var(--md-sw-b) 50% 100%);
    box-shadow: 0 0 0 1px rgba(16, 24, 40, .18);
}

.md-hint {
    margin: 10px 0 0;
    color: var(--lp-muted);
    font-size: 13px;
}

.md-try {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .md-try li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        color: #344054;
        font-size: 15px;
        line-height: 1.5;
    }

    .md-try .lp-icon {
        flex: none;
        margin-top: 2px;
        color: var(--lp-brand);
    }

.md-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 14px 16px;
    color: var(--lp-muted);
    font-size: 14px;
    line-height: 1.55;
    background: var(--lp-surface);
    border: 1px dashed var(--lp-border-strong);
    border-radius: var(--lp-radius-md);
}

    .md-note strong {
        color: var(--lp-text);
    }

    .md-note .lp-icon {
        flex: none;
        margin-top: 2px;
        color: var(--lp-success);
    }

.md-qr {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius-md);
    box-shadow: var(--lp-shadow-sm);
}

    .md-qr[hidden] {
        display: none;
    }

    .md-qr img {
        width: 120px;
        height: 120px;
        flex: none;
        image-rendering: pixelated;
    }

    .md-qr p {
        margin: 0;
        color: var(--lp-muted);
        font-size: 14px;
        line-height: 1.5;
    }

.md-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.md-open {
    color: var(--lp-brand);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

    .md-open:hover {
        text-decoration: underline;
    }

/* ---------- Responsive ---------- */
@media (max-width: 930px) {
    .md-stage {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .md-panel {
        order: -1;
        max-width: 560px;
        margin-inline: auto;
        padding-top: 0;
    }

    /* On a phone the page itself is the phone: no QR to scan. */
    .md-qr {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .md-phone {
        padding: 8px;
        border-radius: 36px;
    }

    .md-phone-notch {
        display: none;
    }

    .md-frame {
        height: min(720px, 82vh);
        border-radius: 28px;
    }
}
