/*
 * Seção do aplicativo na landing (resources/views/landing/_app.blade.php): fundo azul-noite do app, três celulares e
 * os passos dos dois lados. As telas usam as cores do app (mobile/src/tema/cores.ts): azul #0047f0, fundo #eae9ee.
 */
.lp-app { background: radial-gradient(ellipse at 50% 55%, #10206b 0%, #060b28 60%); color: #fff; }
.lp-app::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 30px 30px; -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 70%); pointer-events: none; }
.lp-app .container { position: relative; }
.lp-app .lp-titulo { color: #fff; }
.lp-app .lp-sub { color: #aab3d6; }
.lp-app-cabeca { margin-bottom: 60px; }

.lp-app-palco { display: grid; grid-template-columns: minmax(0, 1fr) 660px minmax(0, 1fr); gap: 20px; align-items: center; }
.lp-app-passos { display: flex; flex-direction: column; gap: 14px; }
.lp-app-passo { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px; background: rgba(255, 255, 255, .03); color: #aab3d6; text-align: left; overflow: hidden; transition: background .3s, border-color .3s; }
.lp-app-passos-esq .lp-app-passo { flex-direction: row-reverse; text-align: right; }
.lp-app-passo > i { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); font-size: 17px; transition: background .3s, color .3s; }
.lp-app-passo b { display: block; color: #fff; font-size: 16px; font-weight: 600; }
.lp-app-passo small { display: block; font-size: 13px; line-height: 1.4; }
.lp-app-passo:hover { border-color: rgba(255, 255, 255, .22); }
.lp-app-passo:focus-visible { outline: 3px solid #4c7ff7; outline-offset: 2px; }
.lp-app-passo.ativo { background: rgba(0, 71, 240, .18); border-color: rgba(76, 127, 247, .6); }
.lp-app-passo.ativo > i { background: #0047f0; color: #fff; }
.lp-app-passo em { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.lp-app-passo em i { display: block; height: 100%; width: 0; background: #4c7ff7; }
.lp-app-extras { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 70px; }
.lp-app-extras span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 30px; border: 1px solid rgba(255, 255, 255, .12); color: #d5dbf2; font-size: 14px; font-weight: 500; }
.lp-app-extras i { color: #4c7ff7; }

/* Celulares */
.lp-celulares { position: relative; width: 310px; height: 640px; justify-self: center; perspective: 1400px; }
.ap-celular { --ap-azul: #0047f0; --ap-fundo: #eae9ee; --ap-texto: #0b141b; --ap-cinza: #717579; --ap-borda: #e4e3ea; --ap-verde: #09bd3c; --ap-vermelho: #f72b50; position: absolute; left: 0; top: 0; width: 310px; height: 640px; padding: 11px; border-radius: 52px; background: linear-gradient(145deg, #3a3f4a, #121418); box-shadow: 0 0 0 2px #4a505c inset, 0 60px 120px rgba(0, 0, 0, .55); color: var(--ap-texto); font-size: 13px; line-height: 1.3; }
.ap-celular::before { content: ""; position: absolute; inset: 11px; border-radius: 42px; background: var(--ap-fundo); }
.ap-principal { z-index: 3; }
.ap-lateral { z-index: 1; transform-style: preserve-3d; opacity: .9; }
.ap-esq { transform: translateX(-60%) translateZ(-160px) rotateY(18deg) scale(.86); animation: ap-flutuar-esq 6s ease-in-out infinite; }
.ap-dir { transform: translateX(60%) translateZ(-160px) rotateY(-18deg) scale(.86); animation: ap-flutuar-dir 6s ease-in-out infinite 1.5s; }
@keyframes ap-flutuar-esq { 50% { transform: translateX(-60%) translateY(-14px) translateZ(-160px) rotateY(18deg) scale(.86); } }
@keyframes ap-flutuar-dir { 50% { transform: translateX(60%) translateY(-14px) translateZ(-160px) rotateY(-18deg) scale(.86); } }
.ap-ilha { position: absolute; left: 50%; top: 20px; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #000; z-index: 9; }
.ap-status { position: absolute; left: 11px; right: 11px; top: 11px; height: 44px; padding: 14px 26px 0 30px; display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; z-index: 8; border-radius: 42px 42px 0 0; }
.ap-status i { margin-left: 4px; font-size: 10px; }
.ap-telas, .ap-tela-fixa { position: absolute; left: 11px; right: 11px; top: 55px; bottom: 77px; overflow: hidden; }
.ap-tela-fixa { padding: 4px 14px 0; }
.ap-tela { position: absolute; inset: 0; padding: 4px 14px 0; background: var(--ap-fundo); visibility: hidden; }
.ap-tela:first-child { visibility: visible; }
.ap-abas { position: absolute; left: 11px; right: 11px; bottom: 11px; height: 66px; padding: 8px 10px 14px; display: flex; justify-content: space-around; background: #fff; border-top: 1px solid var(--ap-borda); border-radius: 0 0 42px 42px; z-index: 6; }
.ap-abas span { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #999; font-size: 10px; font-weight: 500; transition: color .3s; }
.ap-abas span i { font-size: 16px; }
.ap-abas span.ativo { color: var(--ap-azul); }
.ap-lateral .ap-abas { justify-content: space-around; align-items: center; color: #999; font-size: 16px; }
.ap-lateral .ap-abas .ativo { color: #4c7ff7; }
.ap-toque { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(255, 255, 255, .55); border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 4px 18px rgba(0, 0, 0, .3); z-index: 10; opacity: 0; pointer-events: none; }

/* Peças das telas */
.ap-cab { display: flex; align-items: center; gap: 10px; height: 46px; }
.ap-cab h4 { margin: 0; font-size: 20px; font-weight: 700; color: var(--ap-texto); }
.ap-cab > i { color: var(--ap-azul); }
.ap-cab > i:last-child:not(:first-child), .ap-cab .ap-avatar, .ap-cab .ap-selo { margin-left: auto; }
.ap-avatar { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--ap-azul); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.ap-empresa-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; margin-bottom: 10px; border-radius: 20px; background: rgba(0, 71, 240, .1); color: var(--ap-azul); font-size: 11.5px; font-weight: 600; }
.ap-empresa-chip i:last-child { font-size: 9px; }
.ap-card { background: #fff; border-radius: 14px; padding: 11px 12px; margin-bottom: 9px; box-shadow: 0 5px 5px rgba(82, 63, 105, .05); }
.ap-card small, .ap-saldo small { display: block; color: var(--ap-cinza); font-size: 11px; }
.ap-card > b { font-size: 15px; font-variant-numeric: tabular-nums; }
.ap-card-titulo { font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.ap-saldo { padding: 14px; margin-bottom: 9px; border-radius: 16px; background: linear-gradient(135deg, #0047f0, #4c7ff7); color: #fff; }
.ap-saldo small { color: rgba(255, 255, 255, .8); }
.ap-saldo b { font-size: 24px; font-variant-numeric: tabular-nums; }
.ap-dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.ap-dupla .ap-card { margin-bottom: 9px; }
.ap-verde { color: var(--ap-verde); }
.ap-vermelho { color: var(--ap-vermelho); }
.ap-conta { position: relative; display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; font-size: 12px; }
.ap-conta > i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; }
.ap-conta.pagar > i { background: rgba(247, 43, 80, .12); color: var(--ap-vermelho); }
.ap-conta.receber > i { background: rgba(9, 189, 60, .12); color: var(--ap-verde); }
.ap-conta span b { display: block; font-size: 12.5px; }
.ap-conta small { color: var(--ap-cinza); font-size: 10.5px; }
.ap-conta > b { font-variant-numeric: tabular-nums; }
.ap-atrasada { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; border-left: 3px solid var(--ap-vermelho); font-size: 12px; }
.ap-atrasada > i { color: var(--ap-vermelho); }
.ap-atrasada span b { display: block; }
.ap-campo { margin-bottom: 10px; }
.ap-campo small { display: block; margin-bottom: 4px; color: var(--ap-cinza); font-size: 11px; }
.ap-campo > div { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--ap-borda); font-weight: 600; }
.ap-campo > div i { color: var(--ap-cinza); font-size: 10px; }
.ap-botao { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; margin-top: 6px; border-radius: 12px; background: var(--ap-azul); color: #fff; font-weight: 600; }
.ap-botao-claro { background: rgba(0, 71, 240, .1); color: var(--ap-azul); }
.ap-gira { position: absolute; right: 14px; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: ap-girar .8s linear infinite; opacity: 0; }
@keyframes ap-girar { to { transform: rotate(360deg); } }
.ap-folha { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px 18px; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -12px 30px rgba(0, 0, 0, .15); text-align: center; z-index: 3; }
.ap-folha-alca { display: block; width: 38px; height: 4px; margin: 0 auto 14px; border-radius: 4px; background: #d6d6dc; }
.ap-check { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: var(--ap-verde); color: #fff; display: grid; place-items: center; font-size: 24px; }
.ap-folha > b { display: block; font-size: 15px; }
.ap-folha > small { color: var(--ap-cinza); }
.ap-folha-acoes { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 12px; }
.ap-compartilhar { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 12px; border-radius: 18px; background: rgba(245, 245, 247, .97); box-shadow: 0 -8px 30px rgba(0, 0, 0, .2); z-index: 4; }
.ap-compartilhar > small { display: block; text-align: center; color: var(--ap-cinza); margin-bottom: 10px; font-size: 11px; }
.ap-compartilhar > div { display: flex; justify-content: space-around; }
.ap-compartilhar span { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 10px; }
.ap-compartilhar span i { width: 42px; height: 42px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--ap-azul); font-size: 17px; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.ap-segmento { display: flex; gap: 4px; padding: 4px; margin-bottom: 9px; border-radius: 12px; background: #dcdbe3; }
.ap-segmento span { flex: 1; padding: 6px 0; border-radius: 9px; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--ap-cinza); transition: background .25s, color .25s; }
.ap-segmento span.ativo { background: #fff; color: var(--ap-texto); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.ap-conta-lista { padding: 9px 10px; margin-bottom: 7px; border-radius: 12px; background: #fff; }
.ap-recebida { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); padding: 3px 9px; border-radius: 20px; background: var(--ap-verde); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; opacity: 0; }
.ap-subtela { position: absolute; inset: 0; padding: 4px 14px 0; background: var(--ap-fundo); z-index: 2; }
.ap-resumo-conta b { display: block; font-size: 22px; }
.ap-resumo-conta span { font-size: 11px; color: var(--ap-cinza); }
.ap-toast { position: absolute; left: 50%; top: 10px; display: flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 30px; background: var(--ap-texto); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; z-index: 5; }
.ap-toast i { color: #4ade80; }
.ap-selo { display: inline-grid; font-style: normal; font-size: 11px; font-weight: 700; }
.ap-selo span { grid-area: 1 / 1; padding: 4px 10px; border-radius: 20px; text-align: center; }
.ap-selo-aberta { background: rgba(255, 149, 72, .18); color: #e0731f; }
.ap-selo-faturada { background: rgba(9, 189, 60, .15); color: var(--ap-verde); opacity: 0; }
.ap-dados > div:not(.ap-card-titulo) { display: flex; justify-content: space-between; padding: 4px 0; font-size: 12px; }
.ap-dados small { font-size: 12px; }
.ap-item { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #f0eff4; font-size: 12px; }
.ap-item-total { border-bottom: 0; font-weight: 700; }
.ap-item-total b { color: var(--ap-azul); font-size: 14px; }
.ap-notas-da-ordem { opacity: 0; }
.ap-card-azul { background: var(--ap-azul); color: #fff; }
.ap-card-azul small { color: rgba(255, 255, 255, .8); }
.ap-barra { display: grid; grid-template-columns: 54px 1fr 34px; gap: 8px; align-items: center; padding: 4px 0; font-size: 11.5px; }
.ap-barra em, .ap-produto-barra { display: block; height: 8px; border-radius: 6px; background: #eeedf2; overflow: hidden; }
.ap-barra em i, .ap-produto-barra i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--ap-azul); }
.ap-barra b { text-align: right; }
.ap-venda { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f0eff4; font-size: 12px; }
.ap-venda span { color: var(--ap-cinza); }
.ap-venda-nova { border-radius: 8px; }
.ap-busca { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px; margin-bottom: 9px; border-radius: 12px; background: #fff; border: 1px solid var(--ap-azul); font-weight: 600; }
.ap-busca i { color: var(--ap-cinza); }
.ap-produto { padding: 10px 12px; margin-bottom: 7px; border-radius: 12px; background: #fff; }
.ap-produto > div:first-child { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12.5px; }
.ap-produto em { padding: 2px 7px; border-radius: 20px; background: rgba(247, 43, 80, .12); color: var(--ap-vermelho); font-style: normal; font-size: 9.5px; font-weight: 700; white-space: nowrap; }
.ap-produto-barra { margin: 7px 0 5px; }
.ap-produto.baixo .ap-produto-barra i { background: var(--ap-vermelho); }
.ap-produto small { color: var(--ap-cinza); font-size: 10.5px; }
.ap-produto small b { color: var(--ap-texto); }

/* Celulares de lado */
.ap-escuro { --ap-fundo: #171622; --ap-texto: #fff; --ap-cinza: #9a99a8; color: #fff; }
.ap-escuro .ap-card { background: #222131; box-shadow: none; }
.ap-escuro .ap-abas { background: #222131; border-top-color: #2e2d3f; }
.ap-escuro .ap-cab h4 { color: #fff; }
.ap-lista-mini { height: 150px; display: flex; flex-direction: column; gap: 10px; }
.ap-lista-mini i { height: 28px; border-radius: 8px; background: rgba(255, 255, 255, .06); }
.ap-empresa { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 11px 12px; margin-bottom: 8px; border-radius: 14px; background: #fff; font-size: 12px; }
.ap-empresa b { display: block; }
.ap-empresa small { color: var(--ap-cinza); font-size: 10.5px; }
.ap-empresa > i { color: #c4c3cc; font-size: 11px; }
.ap-empresa.atual { box-shadow: 0 0 0 2px var(--ap-azul); }
.ap-empresa.atual > i { color: var(--ap-azul); font-size: 15px; }
.lp-app-flutua { position: absolute; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 30px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 13px; font-weight: 600; white-space: nowrap; }
.lp-app-flutua i { color: #7aa2ff; }
.lp-app-flutua-1 { left: -190px; bottom: 40px; }
.lp-app-flutua-2 { right: -180px; top: 40px; }

@media (max-width: 1399px) {
	.lp-app-palco { grid-template-columns: minmax(0, 1fr) 520px minmax(0, 1fr); }
	.ap-esq { transform: translateX(-42%) translateZ(-160px) rotateY(18deg) scale(.86); animation: none; }
	.ap-dir { transform: translateX(42%) translateZ(-160px) rotateY(-18deg) scale(.86); animation: none; }
	.lp-app-flutua-1 { left: -110px; }
	.lp-app-flutua-2 { right: -100px; }
	.lp-app-passo small { display: none; }
}

@media (max-width: 1199px) {
	.lp-app-palco { grid-template-columns: 1fr; justify-items: center; gap: 30px; }
	.lp-celulares { order: -1; }
	.lp-app-passos { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 760px; }
	.lp-app-passos-esq .lp-app-passo { flex-direction: row; text-align: left; }
	.lp-app-passos-dir { margin-top: -16px; }
}

@media (max-width: 767px) {
	.ap-lateral, .lp-app-flutua { display: none; }
	.lp-app-passo small { display: none; }
	.lp-app-passo { padding: 12px; }
	.lp-app-cabeca { margin-bottom: 40px; }
}

@media (max-width: 360px) {
	.lp-celulares { transform: scale(.9); transform-origin: top center; margin-bottom: -64px; }
}

@media (prefers-reduced-motion: reduce) {
	.ap-esq, .ap-dir { animation: none; }
	.ap-gira { animation: none; }
}
