/* Landing estilo web app — escopo: .app-landing-page */

.app-landing-page {
    --app-landing-black: #0a0a0a;
    --app-landing-black-soft: #141414;
    /* Cobre toda a altura da janela e evita “buraco” branco por baixo (fundo do body em styles.css) */
    min-height: 100vh;
    min-height: 100dvh;
    background-color: #070707;
}

.app-landing-page .app-landing-main {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    padding: clamp(5rem, 12vw, 7rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 6vw, 4rem);
    overflow: hidden;
}

.app-landing-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Base escura + brilho suave nas cores da emissora (--app-primary / --app-accent vêm do JSON em app-landing.php) */
.app-landing-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 85% 55% at 15% -5%, color-mix(in srgb, var(--app-primary) 52%, transparent), transparent 58%),
        radial-gradient(ellipse 70% 45% at 92% 105%, color-mix(in srgb, var(--app-accent) 40%, transparent), transparent 52%),
        linear-gradient(165deg, #070707 0%, #101010 42%, #0a0a0a 100%);
}

.app-landing-bg-blobs {
    position: absolute;
    inset: -35% -25%;
}

.app-landing-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    opacity: 0.5;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.app-landing-bg-blob--1 {
    width: min(52vmin, 480px);
    height: min(52vmin, 480px);
    background: color-mix(in srgb, var(--app-primary) 85%, #ffffff 15%);
    top: 8%;
    left: -5%;
    animation: app-landing-blob-1 22s ease-in-out infinite;
}

.app-landing-bg-blob--2 {
    width: min(44vmin, 400px);
    height: min(44vmin, 400px);
    background: color-mix(in srgb, var(--app-accent) 75%, var(--app-primary) 25%);
    bottom: 5%;
    right: -8%;
    animation: app-landing-blob-2 28s ease-in-out infinite;
}

.app-landing-bg-blob--3 {
    width: min(38vmin, 360px);
    height: min(38vmin, 360px);
    background: color-mix(in srgb, var(--app-primary) 45%, #ffffff 55%);
    top: 38%;
    right: 18%;
    opacity: 0.22;
    animation: app-landing-blob-3 32s ease-in-out infinite;
}

@keyframes app-landing-blob-1 {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    45% {
        transform: translate(12%, 8%) scale(1.08);
    }

    70% {
        transform: translate(-4%, 14%) scale(0.96);
    }
}

@keyframes app-landing-blob-2 {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    40% {
        transform: translate(-10%, -12%) scale(1.12);
    }

    65% {
        transform: translate(6%, -4%) scale(0.94);
    }
}

@keyframes app-landing-blob-3 {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-18%, 10%) scale(1.06);
    }
}

.app-landing-bg-waves {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 1;
}

.app-landing-bg-wave-group--a {
    transform-origin: 50% 20%;
    animation: app-landing-wave-drift-a 18s ease-in-out infinite;
}

.app-landing-bg-wave-group--b {
    transform-origin: 50% 95%;
    animation: app-landing-wave-drift-b 24s ease-in-out infinite;
}

@keyframes app-landing-wave-drift-a {
    0%,
    100% {
        transform: translateX(0) translateY(0) scale(1);
    }

    50% {
        transform: translateX(-3%) translateY(2%) scale(1.02);
    }
}

@keyframes app-landing-wave-drift-b {
    0%,
    100% {
        transform: translateX(0) translateY(0) scale(1);
    }

    50% {
        transform: translateX(4%) translateY(-2%) scale(1.03);
    }
}

.app-landing-bg-wave {
    fill: var(--app-primary);
}

.app-landing-bg-wave--a {
    fill-opacity: 0.2;
}

.app-landing-bg-wave--b {
    fill: var(--app-accent);
    fill-opacity: 0.12;
}

/* Legibilidade nas bordas + profundidade */
.app-landing-bg-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 0%, rgba(0, 0, 0, 0.45) 100%);
    pointer-events: none;
}

@supports not (color: color-mix(in srgb, black, white)) {
    .app-landing-bg-gradient {
        background: linear-gradient(165deg, #070707 0%, #151515 50%, #0a0a0a 100%);
    }

    .app-landing-bg-blob--1 {
        background: var(--app-primary);
        opacity: 0.35;
    }

    .app-landing-bg-blob--2 {
        background: var(--app-accent);
        opacity: 0.28;
    }

    .app-landing-bg-blob--3 {
        background: var(--app-primary);
        opacity: 0.14;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-landing-bg-blob,
    .app-landing-bg-wave-group--a,
    .app-landing-bg-wave-group--b {
        animation: none !important;
    }

    .app-landing-bg-blob {
        opacity: 0.28;
    }

    .app-landing-bg-blob--3 {
        opacity: 0.12;
    }
}

.app-landing-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
}

@media (min-width: 992px) {
    .app-landing-inner {
        grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.05fr);
        gap: clamp(2rem, 4vw, 3rem);
    }
}

/* Mockup telefone */
.app-landing-mockup-col {
    display: flex;
    justify-content: center;
    order: 1;
}

@media (min-width: 992px) {
    .app-landing-mockup-col {
        order: 0;
        justify-content: flex-end;
    }
}

@keyframes app-landing-phone-float {
    0%,
    100% {
        transform: translateY(-5px);
    }

    50% {
        transform: translateY(5px);
    }
}

.app-landing-phone {
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.18));
    animation: app-landing-phone-float 3.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .app-landing-phone {
        animation: none;
    }
}

.app-landing-phone-bezel {
    width: min(280px, 78vw);
    border-radius: 36px;
    padding: 12px;
    background: linear-gradient(145deg, var(--app-landing-black), var(--app-landing-black-soft));
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.app-landing-phone-screen,
.app-landing-phone-screen-img {
    display: block;
    width: 100%;
    border-radius: 26px;
    aspect-ratio: 9 / 18;
    object-fit: cover;
    background: var(--app-landing-black);
}

.app-landing-phone-screen--fallback {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}

.app-landing-fallback-ambient {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse 100% 75% at 50% 0%,
        color-mix(in srgb, var(--app-accent) 48%, transparent),
        transparent 55%
    );
    animation: app-landing-fallback-glow 5s ease-in-out infinite;
}

@keyframes app-landing-fallback-glow {
    0%,
    100% {
        opacity: 0.82;
    }

    50% {
        opacity: 1;
    }
}

.app-landing-fallback-stack {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100%;
}

.app-landing-fallback-header {
    position: relative;
    z-index: 2;
    padding: 10px 10px 6px;
    text-align: center;
    background: var(--app-accent);
}

.app-landing-fallback-station-name {
    margin: 0;
    font-size: clamp(0.62rem, 2.6vw, 0.8rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--app-primary);
    text-transform: uppercase;
    line-height: 1.25;
}

.app-landing-fallback-wave-wrap {
    position: relative;
    z-index: 2;
    line-height: 0;
    margin-bottom: -1px;
}

.app-landing-fallback-wave-svg {
    display: block;
    width: 100%;
    height: clamp(26px, 7.5vw, 34px);
}

.app-landing-fallback-wave-path {
    fill: var(--app-primary);
}

.app-landing-fallback-main {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: var(--app-primary);
    padding: 0 6px 4px;
    min-height: 0;
}

.app-landing-fallback-main .app-landing-fallback-circle {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px 4px;
    margin-top: -14px;
    position: relative;
    z-index: 2;
}

.app-landing-fallback-main .app-landing-fallback-circle img {
    max-width: min(130px, 38vw);
    max-height: min(22vh, 140px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid color-mix(in srgb, var(--app-accent) 80%, #ffffff 20%);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.app-landing-fallback-initials {
    font-size: clamp(2rem, 10vw, 3rem);
    font-weight: 800;
    color: var(--app-accent);
    letter-spacing: -0.02em;
}

.app-landing-fallback-main .app-landing-fallback-tagline {
    margin: 0;
    padding: 4px 10px 8px;
    text-align: center;
    font-size: clamp(0.55rem, 2.1vw, 0.68rem);
    font-weight: 800;
    color: var(--app-accent);
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.app-landing-fallback-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 4px 8px 8px;
}

.app-landing-fallback-chip {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--app-accent);
    color: var(--app-primary);
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.app-landing-fallback-chip:hover {
    transform: scale(1.06);
}

.app-landing-fallback-controls-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 6px;
    padding: 8px 10px 10px;
    background: var(--app-primary);
    flex-shrink: 0;
}

.app-landing-fallback-controls-left {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.app-landing-fallback-controls-right {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.app-landing-fallback-controls-row .app-landing-mockup-play,
.app-landing-fallback-controls-row .app-landing-mockup-play-spacer {
    justify-self: center;
}

.app-landing-mockup-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: color-mix(in srgb, var(--app-accent) 90%, #ffffff);
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-landing-mockup-icon-btn:hover {
    opacity: 0.92;
    transform: scale(1.06);
}

.app-landing-mockup-icon-btn:focus-visible {
    outline: 2px solid var(--app-accent);
    outline-offset: 2px;
}

.app-landing-mockup-play-spacer {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.app-landing-fallback-wa {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 8px 10px;
    padding: 11px 12px;
    border-radius: 14px;
    background: var(--app-accent);
    color: var(--app-primary);
    text-decoration: none;
    font-size: 0.72rem;
    line-height: 1.35;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-landing-fallback-wa:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.app-landing-fallback-wa-icon {
    font-size: 1.65rem;
    flex-shrink: 0;
    line-height: 1;
}

.app-landing-fallback-wa-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.app-landing-fallback-wa-text strong {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.7rem;
}

.app-landing-fallback-wa-text small {
    font-weight: 600;
    opacity: 0.95;
    font-size: 0.65rem;
}

@media (prefers-reduced-motion: reduce) {
    .app-landing-fallback-ambient {
        animation: none;
        opacity: 0.9;
    }
}

.app-landing-mockup-play,
.app-landing-phone-screen--fallback .app-landing-mockup-share {
    appearance: none;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    border-radius: 50%;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-landing-mockup-play:not(.is-loading):hover,
.app-landing-phone-screen--fallback .app-landing-mockup-share:hover {
    transform: scale(1.06);
    opacity: 0.95;
}

.app-landing-mockup-play:focus-visible,
.app-landing-phone-screen--fallback .app-landing-mockup-share:focus-visible {
    outline: 2px solid var(--app-accent);
    outline-offset: 3px;
}

.app-landing-mockup-play-visual {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--app-accent);
    border: 3px solid color-mix(in srgb, var(--app-accent) 65%, #000000 35%);
    box-shadow:
        0 8px 28px color-mix(in srgb, var(--app-accent) 40%, transparent),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--app-primary);
    font-size: 1.15rem;
    overflow: hidden;
    animation: app-landing-play-breathe 2.8s ease-in-out infinite;
}

@keyframes app-landing-play-breathe {
    0%,
    100% {
        box-shadow:
            0 8px 28px color-mix(in srgb, var(--app-accent) 40%, transparent),
            0 0 0 1px rgba(255, 255, 255, 0.12) inset;
        transform: scale(1);
    }

    50% {
        box-shadow:
            0 10px 36px color-mix(in srgb, var(--app-accent) 55%, transparent),
            0 0 0 1px rgba(255, 255, 255, 0.18) inset;
        transform: scale(1.03);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-landing-mockup-play-visual {
        animation: none;
    }
}

.app-landing-mockup-play-visual .app-landing-mockup-play-icon-main.fa-play {
    margin-left: 3px;
}

.app-landing-mockup-play-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 1.05rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.app-landing-mockup-play.is-loading .app-landing-mockup-play-loading-overlay {
    opacity: 1;
    visibility: visible;
}

.app-landing-mockup-play.is-loading .app-landing-mockup-play-icon-main {
    opacity: 0.2;
}

.app-landing-mockup-play.is-loading {
    cursor: wait;
    pointer-events: none;
}

.app-landing-fallback-controls-row .app-landing-mockup-share.app-landing-mockup-icon-btn {
    width: 38px;
    height: 38px;
    background: transparent;
    border: none;
    box-shadow: none;
    color: color-mix(in srgb, var(--app-accent) 88%, #ffffff);
}

/* Toast (player / partilhar) */
.app-landing-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    max-width: min(90vw, 360px);
    padding: 12px 18px;
    background: var(--app-landing-black);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    word-break: break-word;
}

.app-landing-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.app-landing-sr-audio {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Coluna conteúdo */
.app-landing-content-col {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 992px) {
    .app-landing-content-col {
        order: 1;
    }
}

.app-landing-card {
    background: #fff;
    border-radius: 20px;
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.app-landing-card-head {
    text-align: center;
    margin-bottom: 1.25rem;
}

.app-landing-card-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    color: var(--app-primary);
    letter-spacing: -0.02em;
}

.app-landing-card-tagline {
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}

.app-landing-section-title {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.app-landing-description {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #334155;
}

.app-landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.25rem;
    justify-content: center;
}

.app-landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.app-landing-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.app-landing-btn--primary {
    background: var(--app-landing-black);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.app-landing-btn--accent {
    background: var(--app-landing-black);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.app-landing-btn--outline {
    border: 2px solid var(--app-landing-black);
    color: var(--app-landing-black);
    background: transparent;
}

.app-landing-btn--primary:hover,
.app-landing-btn--accent:hover {
    background: #1a1a1a;
}

.app-landing-btn--outline:hover {
    background: rgba(0, 0, 0, 0.06);
}

button.app-landing-btn {
    font: inherit;
    cursor: pointer;
    border: none;
}

/* Modal PWA — tema AppRadio (escuro + acentos da emissora) */
.app-landing-pwa-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 3vw, 1.5rem);
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.app-landing-pwa-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.app-landing-pwa-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 8, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.app-landing-pwa-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: min(92vh, 640px);
    overflow: auto;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--app-accent) 35%, rgba(255, 255, 255, 0.12));
    background: linear-gradient(
        165deg,
        color-mix(in srgb, var(--app-primary) 18%, #0c0c10) 0%,
        #12121a 48%,
        #0a0a0f 100%
    );
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.app-landing-pwa-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.85rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--app-primary) 42%, transparent),
        color-mix(in srgb, var(--app-accent) 28%, transparent)
    );
}

.app-landing-pwa-modal__title {
    margin: 0;
    flex: 1;
    font-size: clamp(0.72rem, 2.2vw, 0.82rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f8fafc;
    line-height: 1.35;
}

.app-landing-pwa-modal__close {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.25);
    color: #e2e8f0;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.app-landing-pwa-modal__close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: scale(1.05);
}

.app-landing-pwa-modal__body {
    display: grid;
    grid-template-columns: 1fr min(42%, 200px);
    gap: clamp(1rem, 3vw, 1.5rem);
    padding: 1.15rem 1.15rem 1rem;
    align-items: start;
}

@media (max-width: 520px) {
    .app-landing-pwa-modal__body {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .app-landing-pwa-modal__steps {
        text-align: left;
    }
}

.app-landing-pwa-modal__how {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    font-weight: 800;
    color: #f1f5f9;
}

.app-landing-pwa-modal__steps {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.86rem;
    line-height: 1.55;
    color: #cbd5e1;
}

.app-landing-pwa-modal__steps li {
    margin-bottom: 0.5rem;
}

.app-landing-pwa-modal__steps li:last-child {
    margin-bottom: 0;
}

.app-landing-pwa-modal__qr-wrap {
    padding: 0.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.app-landing-pwa-modal__qr {
    display: block;
    width: 100%;
    height: auto;
    max-width: 240px;
    vertical-align: middle;
}

.app-landing-pwa-modal__footer {
    padding: 0.75rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: color-mix(in srgb, var(--app-accent) 22%, rgba(15, 23, 42, 0.92));
}

.app-landing-pwa-modal__url {
    font-size: 0.78rem;
    font-weight: 600;
    word-break: break-all;
    color: #f8fafc;
}

body.app-landing-pwa-modal-open {
    overflow: hidden;
}

.app-landing-install {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.app-landing-install-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--app-primary);
}

.app-landing-install-intro {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}

.app-landing-install-steps {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #334155;
}

.app-landing-install-steps li {
    margin-bottom: 0.5rem;
}

/* Mobile: conteúdo do mockup em ecrã inteiro (referência web app / hoost) */
@media (max-width: 767px) {
    .app-landing-desktop-only {
        display: none !important;
    }

    .app-landing-page .app-landing-main {
        padding: 0;
        min-height: 100dvh;
        min-height: 100vh;
    }

    .app-landing-bg {
        display: none;
    }

    .app-landing-inner {
        display: block;
        max-width: none;
        margin: 0;
        gap: 0;
        min-height: 100dvh;
        min-height: 100vh;
    }

    .app-landing-mockup-col {
        display: flex;
        min-height: 100dvh;
        min-height: 100vh;
        width: 100%;
        align-items: stretch;
    }

    .app-landing-phone {
        animation: none;
        filter: none;
        width: 100%;
        max-width: none;
    }

    .app-landing-phone-bezel {
        width: 100%;
        min-height: 100dvh;
        min-height: 100vh;
        height: auto;
        border-radius: 0;
        padding: 0;
        padding-bottom: env(safe-area-inset-bottom, 0);
        background: transparent;
        box-shadow: none;
    }

    .app-landing-phone-screen,
    .app-landing-phone-screen--fallback {
        min-height: 100dvh;
        min-height: 100vh;
        border-radius: 0;
        aspect-ratio: auto;
    }

    .app-landing-phone-screen-img {
        min-height: 100dvh;
        min-height: 100vh;
        width: 100%;
        object-fit: cover;
        border-radius: 0;
        aspect-ratio: unset;
    }

    .app-landing-fallback-header {
        padding-top: calc(10px + env(safe-area-inset-top, 0));
    }

    .app-landing-fallback-station-name {
        font-size: clamp(0.72rem, 3.5vw, 0.9rem);
    }

    .app-landing-fallback-main .app-landing-fallback-circle img {
        max-width: min(180px, 48vw);
    }
}

/* Fallback sem color-mix (navegadores antigos) */
@supports not (color: color-mix(in srgb, black, white)) {
    .app-landing-btn--primary,
    .app-landing-btn--accent {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    }
}

.footer{
    margin-top: 0 !important;
}
