/*
 * App de iPhone das marcas: página /app, seção da home, aviso do topo e selo do rodapé.
 * Views em resources/views/public/app.blade.php e partials/app-*.blade.php.
 *
 * Dois visuais, um por marca (config/apps.php → 'estilo'):
 *   .appx--classico  QuotasBNB: faixa escura quente, destaque dourado, Inter.
 *   .appx--next      Semana de Férias: teal da marca, itálico em serifa, Plus Jakarta Sans.
 * CSS próprio (e não classes do Tailwind) porque o bundle do Tailwind é compilado
 * e não teria as classes novas sem rebuild.
 */

.appx {
    --appx-escuro: var(--tenant-primary-dark, #830E00);
    --appx-primaria: var(--tenant-primary, #D26B29);
    --appx-ouro: #FFC35C;
    --appx-tinta: #1f1410;
    --appx-texto: #5b4b44;
    --appx-fundo: #fff;
    --appx-fundo-2: #faf6f3;
    --appx-borda: #eee3dc;
    --appx-raio: 20px;
    --appx-sombra: 0 30px 60px -20px rgba(40, 10, 0, .45);
    --appx-titulo-peso: 800;
    --appx-titulo-ls: -.03em;
    color: var(--appx-tinta);
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.appx--next {
    --appx-escuro: var(--mare-deep, #0b3742);
    --appx-primaria: var(--mare-primary, #0d5c6e);
    --appx-ouro: #C9F27B;
    --appx-tinta: var(--mare-ink, #0b3742);
    --appx-texto: var(--mare-body, #41626c);
    --appx-fundo: var(--mare-surface, #f7fbfc);
    --appx-fundo-2: var(--mare-surface-2, #e3f5f7);
    --appx-borda: var(--mare-border, #e3eef0);
    --appx-raio: 16px;
    --appx-sombra: 0 30px 60px -20px rgba(4, 30, 36, .55);
    --appx-titulo-peso: 700;
    --appx-titulo-ls: -.05em;
    font-family: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
}
.appx *, .appx *::before, .appx *::after { box-sizing: border-box; }
/* :where() zera a especificidade do reset: assim as margens das classes abaixo valem. */
.appx :where(h1, h2, h3, p, figure, ul) { margin: 0; }
.appx a { text-decoration: none; }

/* ── Tipografia comum ─────────────────────────────────────────────── */
.appx-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: var(--appx-primaria);
}
.appx-novo {
    display: inline-block; padding: 4px 10px; border-radius: 999px;
    background: var(--appx-ouro); color: #2a1300; letter-spacing: .08em; font-size: 11px;
}
.appx--next .appx-novo { color: #0b3742; }
.appx-ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--appx-ouro); box-shadow: 0 0 0 5px rgba(255, 195, 92, .22); }
.appx--next .appx-ponto { box-shadow: 0 0 0 5px rgba(201, 242, 123, .25); }
.appx-h1, .appx-h2 { font-weight: var(--appx-titulo-peso); letter-spacing: var(--appx-titulo-ls); line-height: 1.05; }
.appx-h1 { font-size: clamp(40px, 5.4vw, 72px); margin: 18px 0 20px; }
.appx-h2 { font-size: clamp(32px, 4vw, 54px); margin-top: 14px; }
.appx-h1 em, .appx-h2 em { font-style: normal; color: var(--appx-primaria); }
.appx--next .appx-h1 em, .appx--next .appx-h2 em {
    font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 400; letter-spacing: -.035em;
}
.appx-lead { font-size: 18px; line-height: 1.7; color: var(--appx-texto); max-width: 34em; }
.appx-link {
    display: inline-flex; gap: 10px; align-items: center; margin-top: 22px;
    font-size: 15px; font-weight: 700; color: var(--appx-primaria);
    border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.appx-link span { transition: transform .25s; }
.appx-link:hover span { transform: translateX(4px); }

/* ── Botões: selo oficial + Android ───────────────────────────────── */
.appx-botoes { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.appx-selo { display: inline-block; line-height: 0; border-radius: 9px; transition: transform .25s, box-shadow .25s; }
.appx-selo img { display: block; height: 52px; width: auto; }
.appx-selo:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .5); }
.appx-selo:focus-visible { outline: 3px solid var(--appx-ouro); outline-offset: 4px; }
.appx-botoes--g .appx-selo img { height: 60px; }
.appx-botoes--p { margin-top: 12px; gap: 10px; }
.appx-botoes--p .appx-selo img { height: 40px; }
.appx-android {
    display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px;
    border-radius: 10px; border: 1.5px dashed currentColor; color: var(--appx-texto);
    font-size: 14px; font-weight: 700; white-space: nowrap;
}
.appx-android svg { width: 22px; height: 22px; }
.appx-botoes--g .appx-android { height: 60px; font-size: 15px; }
.appx-botoes--p .appx-android { height: 40px; font-size: 12px; padding: 0 12px; }
a.appx-android { border-style: solid; color: inherit; }

/* ── Vitrine: o Reel + duas telas em leque ────────────────────────── */
.appx-vitrine {
    position: relative; display: grid; place-items: center;
    min-height: 600px; perspective: 1400px;
}
.appx-vitrine::before {
    content: ''; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 195, 92, .38), transparent 68%);
    filter: blur(6px);
}
.appx--next .appx-vitrine::before { background: radial-gradient(circle, rgba(201, 242, 123, .4), transparent 68%); }
.appx-vitrine__tela {
    position: absolute; width: 215px; height: auto; border-radius: 22px;
    box-shadow: var(--appx-sombra);
    transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}
.appx-vitrine__tela--a { transform: translateX(-66%) rotateY(22deg) rotateZ(-6deg) scale(.92); }
.appx-vitrine__tela--b { transform: translateX(66%) rotateY(-22deg) rotateZ(6deg) scale(.92); }
.appx-vitrine:hover .appx-vitrine__tela--a { transform: translateX(-72%) rotateY(18deg) rotateZ(-8deg) scale(.94); }
.appx-vitrine:hover .appx-vitrine__tela--b { transform: translateX(72%) rotateY(-18deg) rotateZ(8deg) scale(.94); }
.appx-video {
    position: relative; z-index: 1; width: 290px; aspect-ratio: 9 / 16;
    border-radius: 30px; overflow: hidden; background: #000;
    box-shadow: var(--appx-sombra), 0 0 0 1px rgba(255, 255, 255, .18);
    animation: appx-flutua 7s ease-in-out infinite;
}
.appx-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.appx-som {
    position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px 9px 11px; border: 0; border-radius: 999px; cursor: pointer;
    background: rgba(0, 0, 0, .55); color: #fff; font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.appx-som:hover { background: rgba(0, 0, 0, .72); }
.appx-som:focus-visible { outline: 3px solid var(--appx-ouro); outline-offset: 2px; }
.appx-som svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.appx-som__ligado, .appx-som[aria-pressed="true"] .appx-som__mudo { display: none; }
.appx-som[aria-pressed="true"] .appx-som__ligado { display: block; }
@keyframes appx-flutua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
    .appx-video { animation: none; }
    .appx-vitrine__tela, .appx-link span, .appx-selo { transition: none; }
}

/* ── Seção da home ────────────────────────────────────────────────── */
.appx-promo { position: relative; overflow: hidden; color: #fff; }
.appx--classico.appx-promo {
    background:
        radial-gradient(circle at 82% 28%, rgba(255, 195, 92, .22), transparent 42%),
        radial-gradient(circle at 10% 110%, rgba(210, 107, 41, .45), transparent 45%),
        linear-gradient(135deg, #2a0c04 0%, var(--appx-escuro) 58%, var(--appx-primaria) 135%);
}
.appx--next.appx-promo {
    margin: 0 28px; border-radius: 18px;
    background:
        radial-gradient(circle at 80% 25%, rgba(201, 242, 123, .2), transparent 42%),
        radial-gradient(circle at 0% 100%, rgba(20, 184, 196, .3), transparent 45%),
        var(--appx-escuro);
}
.appx-promo__in {
    max-width: 1240px; margin: 0 auto; padding: 88px 32px;
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.appx--next .appx-promo__in { padding: 76px 56px; }
.appx-promo .appx-eyebrow { color: var(--appx-ouro); }
.appx-promo .appx-h2 { color: #fff; }
.appx-promo .appx-h2 em { color: var(--appx-ouro); }
.appx-promo .appx-lead { color: rgba(255, 255, 255, .82); margin-top: 20px; }
.appx-checks { list-style: none; padding: 0; margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.appx-checks li { position: relative; padding-left: 30px; font-size: 15px; font-weight: 600; line-height: 1.45; color: rgba(255, 255, 255, .92); }
.appx-checks li::before {
    content: ''; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--appx-ouro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a1300' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.appx-promo .appx-android { color: rgba(255, 255, 255, .8); }
.appx-promo .appx-link { color: #fff; }

/* ── Aviso no topo (hero do QuotasBNB) ────────────────────────────── */
.appx-aviso {
    display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 10px;
    margin: 0 auto 22px; padding: 6px 16px 6px 6px; border-radius: 999px;
    background: rgba(30, 8, 2, .5); border: 1px solid rgba(255, 255, 255, .3); color: #fff;
    font: 600 14px/1.3 Inter, system-ui, sans-serif; text-decoration: none;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transition: background .25s, transform .25s;
}
.appx-aviso:hover { background: rgba(30, 8, 2, .68); transform: translateY(-1px); color: #fff; }
.appx-aviso img { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.appx-aviso b { color: #FFC35C; white-space: nowrap; }
.appx-aviso__curto { display: none; }
.fn-review-app { font-weight: 800; }

/* ── Selo do rodapé ───────────────────────────────────────────────── */
.appx-rodape { margin-top: 26px; }
.appx-rodape__titulo {
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: inherit; text-decoration: none;
}
.appx-rodape .appx-android { color: inherit; opacity: .75; }
.appx-rodape--mare { display: flex; flex-direction: column; align-items: center; padding-top: 22px; margin-top: 26px; border-top: 1px solid rgba(255, 255, 255, .12); }
.appx-rodape--mare .appx-rodape__titulo { color: #fff; }
.appx-rodape--mare .appx-botoes { justify-content: center; }

/* ── Página /app ──────────────────────────────────────────────────── */
.appx-pagina { background: var(--appx-fundo); overflow: clip; }
.appx-hero { position: relative; }
.appx--classico .appx-hero {
    color: #fff;
    background:
        radial-gradient(circle at 78% 30%, rgba(255, 195, 92, .24), transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(210, 107, 41, .5), transparent 45%),
        linear-gradient(135deg, #2a0c04 0%, var(--appx-escuro) 55%, var(--appx-primaria) 140%);
}
.appx--next .appx-hero {
    background:
        radial-gradient(circle at 76% 40%, rgba(20, 184, 196, .16), transparent 36%),
        linear-gradient(180deg, var(--appx-fundo-2), var(--appx-fundo) 85%);
}
.appx-hero__in {
    max-width: 1240px; margin: 0 auto; padding: 72px 32px 84px;
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.appx-ident { display: flex; align-items: center; gap: 14px; }
.appx-ident img { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); }
.appx-ident strong { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.appx-ident span { display: block; margin-top: 3px; font-size: 13px; font-weight: 600; opacity: .75; }
.appx-hero .appx-eyebrow { margin-top: 30px; }
.appx--classico .appx-hero .appx-eyebrow, .appx--classico .appx-hero .appx-h1 em { color: var(--appx-ouro); }
.appx--classico .appx-hero .appx-lead { color: rgba(255, 255, 255, .82); }
.appx--classico .appx-hero .appx-android { color: rgba(255, 255, 255, .82); }
.appx-nota { margin-top: 18px; font-size: 14px; line-height: 1.6; opacity: .8; max-width: 34em; }
.appx-qr {
    display: flex; align-items: center; gap: 16px; margin-top: 26px; padding: 12px 18px 12px 12px;
    width: fit-content; max-width: 100%; border-radius: 16px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
}
.appx--next .appx-qr { background: #fff; border-color: var(--appx-borda); }
.appx-qr img { width: 104px; height: 104px; padding: 6px; border-radius: 10px; background: #fff; flex: none; }
.appx-qr p { font-size: 13px; line-height: 1.55; max-width: 15em; opacity: .85; }

.appx-secao { max-width: 1240px; margin: 0 auto; padding: 88px 32px 0; }
.appx-cabeca { max-width: 760px; }
.appx-grade { list-style: none; padding: 0; margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.appx-grade li {
    padding: 28px; border-radius: var(--appx-raio); background: #fff; border: 1px solid var(--appx-borda);
    transition: transform .3s, box-shadow .3s;
}
.appx--classico .appx-grade li { background: var(--appx-fundo-2); }
.appx-grade li:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgba(0, 0, 0, .35); }
.appx-icone {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
    background: var(--appx-escuro); color: var(--appx-ouro);
}
.appx-icone svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.appx-grade h3 { margin-top: 20px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.appx-grade p { margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--appx-texto); }

.appx-telas__trilho {
    display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 18px;
    margin: 44px -32px 0; padding: 6px 32px 22px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.appx-telas__trilho:focus-visible { outline: 3px solid var(--appx-primaria); outline-offset: -3px; }
.appx-telas__trilho figure { scroll-snap-align: start; }
.appx-telas__trilho img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 22px 40px -24px rgba(0, 0, 0, .55); }
.appx-telas__trilho figcaption { margin-top: 12px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--appx-texto); }

.appx-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.appx-faq__lista details { border-bottom: 1px solid var(--appx-borda); padding: 20px 0; }
.appx-faq__lista details:first-child { border-top: 1px solid var(--appx-borda); }
.appx-faq__lista summary {
    display: flex; justify-content: space-between; gap: 20px; align-items: center;
    font-size: 17px; font-weight: 700; cursor: pointer; list-style: none;
}
.appx-faq__lista summary::-webkit-details-marker { display: none; }
.appx-faq__lista summary::after { content: '+'; font-size: 24px; font-weight: 400; color: var(--appx-primaria); transition: transform .25s; }
.appx-faq__lista details[open] summary::after { transform: rotate(45deg); }
.appx-faq__lista p { margin-top: 12px; font-size: 15px; line-height: 1.75; color: var(--appx-texto); }

.appx-final {
    margin: 96px 32px 40px; padding: 72px 28px; border-radius: 24px; text-align: center;
    display: flex; flex-direction: column; align-items: center; color: #fff;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 195, 92, .28), transparent 55%),
        linear-gradient(135deg, #2a0c04, var(--appx-escuro) 60%, var(--appx-primaria) 140%);
}
.appx--next .appx-final {
    background:
        radial-gradient(circle at 50% 0%, rgba(201, 242, 123, .25), transparent 55%),
        var(--appx-escuro);
}
.appx-final > img { width: 88px; height: 88px; border-radius: 21px; box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .6); }
.appx-final .appx-h2 { color: #fff; margin-top: 24px; }
.appx-final .appx-h2 em { color: var(--appx-ouro); }
.appx-final p { margin-top: 14px; font-size: 17px; color: rgba(255, 255, 255, .8); }
.appx-final .appx-botoes { justify-content: center; }
.appx-final .appx-android { color: rgba(255, 255, 255, .82); }
.appx-final .appx-link { color: #fff; }

/* Tela larga: as seis telas cabem lado a lado, sem rolagem. */
@media (min-width: 1180px) {
    .appx-telas__trilho { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; margin: 44px 0 0; padding: 6px 0 0; }
}

/* ── Telas menores ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .appx-grade { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .appx-promo__in, .appx-hero__in { grid-template-columns: 1fr; gap: 28px; }
    .appx-promo__in { padding: 64px 22px 56px; }
    .appx--next.appx-promo { margin: 0 14px; }
    .appx--next .appx-promo__in { padding: 56px 24px 48px; }
    .appx-hero__in { padding: 44px 22px 56px; }
    .appx-vitrine { min-height: 500px; }
    .appx-video { width: 250px; }
    .appx-vitrine__tela { width: 175px; }
    .appx-qr { display: none; }
    .appx-secao { padding: 64px 22px 0; }
    .appx-faq { grid-template-columns: 1fr; gap: 24px; }
    .appx-telas__trilho { margin: 32px -22px 0; padding: 6px 22px 20px; grid-auto-columns: 200px; }
    .appx-final { margin: 64px 14px 28px; padding: 56px 22px; }
}
@media (max-width: 560px) {
    .appx-checks { grid-template-columns: 1fr; }
    .appx-lead { font-size: 16px; }
    .appx-grade { grid-template-columns: 1fr; }
    .appx-grade li { padding: 22px; }
    .appx-vitrine { min-height: 440px; }
    .appx-video { width: 220px; border-radius: 24px; }
    .appx-vitrine__tela { width: 150px; border-radius: 16px; }
    .appx-vitrine__tela--a { transform: translateX(-58%) rotateY(22deg) rotateZ(-6deg) scale(.9); }
    .appx-vitrine__tela--b { transform: translateX(58%) rotateY(-22deg) rotateZ(6deg) scale(.9); }
    .appx-selo img { height: 48px; }
    .appx-botoes--g .appx-selo img { height: 52px; }
    .appx-android, .appx-botoes--g .appx-android { height: 48px; font-size: 13px; padding: 0 14px; }
    .appx-aviso { font-size: 12.5px; gap: 8px; padding-right: 12px; }
    .appx-aviso__longo { display: none; }
    .appx-aviso__curto { display: inline; white-space: nowrap; }
}
