/* Demonstração animada do App do Cliente contra o golpe do falso advogado (index.php, seção
   "Seu Escritório na Mão do Cliente"), no lugar do antigo images/img_final_app_do_cliente.png.
   É uma ilustração: tudo em "em" a partir de .agd-cena (1em = 1/26 da largura), então cresce e encolhe
   por igual, como a imagem fazia. Não depende dos outros *-demo.css. */

.agd {
    --agd-navy: #1A1B41;
    --agd-ouro: #d4af37;
    --agd-ouro-escuro: #b8860b;
    position: relative;
    container-type: inline-size;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    color: var(--agd-navy);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-user-select: none;
    user-select: none;
}

.agd *,
.agd *::before,
.agd *::after {
    box-sizing: border-box;
}

.agd-cena {
    font-size: min(calc(100cqi / 26), 21px);
    line-height: 1.25;
}

/* Selo do título */
.agd-titulo {
    position: relative;
    display: flex;
    align-items: center;
    gap: .7em;
    padding: .55em 1em .55em .55em;
    overflow: hidden;
    border: .08em solid rgba(212, 175, 55, .6);
    border-radius: 1.5em;
    background: linear-gradient(135deg, #fff, #fffaf0);
    box-shadow: 0 .4em 1.2em rgba(212, 175, 55, .2);
}

.agd-titulo::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 30%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .8), transparent);
    animation: agdReflexo 6s ease-in-out infinite;
}

.agd-escudo-titulo {
    position: relative;
    flex: none;
    width: 3.3em;
    height: 3.3em;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fbe7a1, #fff3cf 60%, #fdf6e3);
    box-shadow: 0 0 0 .18em rgba(212, 175, 55, .25);
}

.agd-escudo-titulo .fa-shield {
    position: absolute;
    top: 50%;
    left: 50%;
    color: var(--agd-ouro);
    font-size: 2.1em;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 .05em .08em rgba(184, 134, 11, .5));
}

.agd-escudo-titulo .fa-lock {
    position: absolute;
    top: 52%;
    left: 50%;
    color: #fff;
    font-size: .9em;
    transform: translate(-50%, -50%);
}

.agd-titulo-txt {
    font-size: 1.22em;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.01em;
}

.agd-titulo-txt b {
    color: var(--agd-ouro-escuro);
    font-weight: 800;
}

/* Palco */
.agd-palco {
    position: relative;
    height: 22.6em;
    margin-top: .8em;
}

.agd-fundo {
    position: absolute;
    top: .4em;
    right: 2.2em;
    color: rgba(37, 99, 235, .06);
    font-size: 7.5em;
    line-height: 1;
}

/* Celular do cliente */
.agd-celular {
    position: absolute;
    top: 0;
    left: .4em;
    z-index: 2;
    width: 11em;
    height: 22.4em;
    padding: .42em;
    border-radius: 1.9em;
    background: #111827;
    box-shadow: 0 1.2em 2.4em rgba(26, 27, 65, .3), inset 0 0 0 .12em #3f4656;
}

.agd-tela {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 1.5em;
    background: #f4f6fb;
}

.agd-ilha {
    position: absolute;
    top: .42em;
    left: 50%;
    z-index: 4;
    width: 3.4em;
    height: .95em;
    margin-left: -1.7em;
    border-radius: .5em;
    background: #0b0f19;
}

.agd-status {
    display: flex;
    justify-content: space-between;
    padding: .55em 1em .2em;
    color: #111827;
    font-size: .48em;
    font-weight: 700;
}

.agd-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .2em;
    height: 4.6em;
    margin: .25em .45em 0;
    border-radius: .7em;
    background: radial-gradient(circle at 70% 20%, #2b2d6b, var(--agd-navy) 60%, #0d0e26);
    color: #f1c40f;
}

.agd-banner i {
    font-size: 1.25em;
}

.agd-banner span {
    font-size: .62em;
    font-weight: 800;
    letter-spacing: .14em;
}

.agd-escritorio {
    display: flex;
    align-items: center;
    gap: .4em;
    margin: .4em .45em 0;
    padding: .4em .45em;
    border-radius: .6em;
    background: #fff;
    box-shadow: 0 .1em .3em rgba(16, 24, 40, .08);
}

.agd-logo {
    display: grid;
    place-items: center;
    flex: none;
    width: 1.5em;
    height: 1.5em;
    border-radius: .35em;
    background: var(--agd-navy);
    color: #f1c40f;
    font-size: .9em;
}

.agd-logo i {
    font-size: .62em;
}

.agd-escritorio-txt {
    flex: 1;
    min-width: 0;
}

.agd-escritorio-txt b {
    display: block;
    font-size: .48em;
    font-weight: 800;
    white-space: nowrap;
}

.agd-escritorio-txt small {
    display: block;
    color: var(--agd-ouro-escuro);
    font-size: .38em;
    font-weight: 600;
    white-space: nowrap;
}

.agd-audio {
    display: grid;
    place-items: center;
    flex: none;
    width: 1.05em;
    height: 1.05em;
    border-radius: 50%;
    background: var(--agd-navy);
    color: #f1c40f;
}

.agd-audio i {
    font-size: .45em;
}

.agd-servicos-titulo {
    margin: .45em .6em .25em;
    font-size: .5em;
    font-weight: 800;
}

.agd-servicos-titulo::before {
    content: '';
    display: inline-block;
    width: .45em;
    height: .45em;
    margin-right: .4em;
    border-radius: 50%;
    background: var(--agd-ouro);
    vertical-align: .1em;
}

.agd-servicos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .35em;
    margin: 0 .45em;
}

.agd-servico {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25em;
    padding: .45em .2em .35em;
    border-radius: .55em;
    background: #fff;
    box-shadow: 0 .08em .25em rgba(16, 24, 40, .08);
}

.agd-servico:first-child {
    box-shadow: 0 0 0 .07em var(--agd-ouro), 0 .08em .25em rgba(16, 24, 40, .08);
}

.agd-servico .agd-audio {
    position: absolute;
    top: .2em;
    right: .2em;
    width: .7em;
    height: .7em;
}

.agd-servico .agd-audio i {
    font-size: .3em;
}

.agd-icone-servico {
    display: grid;
    place-items: center;
    width: 1.5em;
    height: 1.5em;
    border-radius: .4em;
}

.agd-icone-servico i {
    font-size: .7em;
}

.agd-s1 { background: #fde68a; color: #92400e; }
.agd-s2 { background: #bbf7d0; color: #166534; }
.agd-s3 { background: #bfdbfe; color: #1e40af; }
.agd-s4 { background: #fed7aa; color: #c2410c; }
.agd-s5 { background: #e9d5ff; color: #6b21a8; }
.agd-s6 { background: #ccfbf1; color: #0f766e; }

.agd-servico span {
    font-size: .38em;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.agd-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 1.7em;
    margin-top: auto;
    background: var(--agd-navy);
    color: #fff;
}

.agd-nav i {
    font-size: .62em;
}

/* Notificação oficial dentro do celular */
.agd-notif {
    position: absolute;
    top: 1.3em;
    right: .4em;
    left: .4em;
    z-index: 3;
    padding: .4em .45em;
    border-radius: .6em;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 .4em 1em rgba(16, 24, 40, .25);
    transform: translateY(-160%);
    transition: transform .55s cubic-bezier(.3, 1.3, .5, 1);
}

.agd-oficial .agd-notif {
    transform: none;
}

.agd-notif-topo {
    display: flex;
    align-items: center;
    gap: .3em;
}

.agd-notif-topo .agd-logo {
    width: 1.1em;
    height: 1.1em;
    font-size: .9em;
}

.agd-notif-topo b {
    flex: 1;
    min-width: 0;
    font-size: .4em;
    font-weight: 800;
    white-space: nowrap;
}

.agd-selo-oficial {
    display: inline-flex;
    align-items: center;
    gap: .25em;
    padding: .1em .45em;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: .36em;
    font-weight: 800;
    white-space: nowrap;
}

.agd-notif-texto {
    display: flex;
    align-items: center;
    gap: .35em;
    margin-top: .25em;
}

.agd-notif-texto i {
    color: var(--agd-ouro-escuro);
    font-size: .6em;
}

.agd-notif-texto span {
    font-size: .44em;
    font-weight: 600;
    line-height: 1.25;
}

/* Golpista */
.agd-bandido {
    position: absolute;
    right: -.4em;
    bottom: 0;
    z-index: 1;
    width: 13.4em;
    height: 16em;
}

.agd-bandido svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.agd-bandido svg * {
    transform-box: fill-box;
    transform-origin: center;
}

.agd-expr-preocupado,
.agd-suor,
.agd-lagrimas,
.agd-espanto,
.agd-tensao {
    opacity: 0;
    transition: opacity .3s;
}

.agd-expr-sapeca {
    transition: opacity .3s;
}

.agd-preocupado .agd-expr-sapeca { opacity: 0; }

.agd-preocupado .agd-expr-preocupado,
.agd-preocupado .agd-suor,
.agd-preocupado .agd-tensao {
    opacity: 1;
}

.agd-preocupado .agd-espanto {
    opacity: 1;
    animation: agdPop .45s cubic-bezier(.3, 1.6, .5, 1);
}

.agd-pupilas {
    transition: transform .4s;
}

.agd-preocupado .agd-pupilas {
    transform: translate(-3px, 1px);
}

.agd-tela-bandido {
    transition: fill .3s;
    animation: agdDigitando .9s steps(2) infinite;
}

.agd-bloqueou .agd-tela-bandido {
    fill: #ef4444;
    animation: none;
}

.agd-dedo {
    animation: agdDedo .32s ease-in-out infinite alternate;
}

.agd-preocupado .agd-dedo {
    animation: none;
}

.agd-chorando .agd-lagrimas {
    opacity: 1;
}

.agd-chorando .agd-lagrima {
    animation: agdLagrima 1s ease-in infinite;
}

.agd-chorando .agd-l2 {
    animation-delay: .5s;
}

.agd-chorando .agd-corpo {
    animation: agdSoluco .5s ease-in-out infinite;
}

.agd-preocupado .agd-suor {
    animation: agdSuor 1.6s ease-in infinite;
}

/* Mensagem falsa */
.agd-falsa {
    position: absolute;
    top: 3.4em;
    left: 11.4em;
    z-index: 4;
    width: 9.4em;
    padding: .55em .6em;
    border: .08em solid #fecaca;
    border-radius: .75em .75em .75em .2em;
    background: #fff;
    box-shadow: 0 .6em 1.4em rgba(26, 27, 65, .22);
    opacity: 0;
    transform: translate(.6em, 8.6em) scale(.25);
    transform-origin: 100% 100%;
}

.agd-enviou .agd-falsa {
    opacity: 1;
    transform: translate(.6em, 6.2em) scale(.85);
    transition: opacity .3s, transform .5s cubic-bezier(.3, 1.4, .5, 1);
}

.agd-voando .agd-falsa {
    transform: none;
    transition: transform .85s cubic-bezier(.5, 0, .3, 1);
}

.agd-bloqueou .agd-falsa {
    animation: agdTremer .45s ease-in-out;
}

.agd-descartou .agd-falsa {
    opacity: 0;
    transform: translate(-.4em, 5em) rotate(-14deg) scale(.9);
    transition: opacity .6s .15s, transform .8s cubic-bezier(.5, 0, .7, .4);
}

.agd-falsa-topo {
    display: flex;
    align-items: center;
    gap: .35em;
    margin-bottom: .3em;
}

.agd-falsa-avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 1.25em;
    height: 1.25em;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
}

.agd-falsa-avatar i {
    font-size: .6em;
}

.agd-falsa-topo b {
    display: block;
    font-size: .44em;
    font-weight: 800;
}

.agd-falsa-topo small {
    display: block;
    color: #9ca3af;
    font-size: .36em;
}

.agd-falsa-texto {
    color: #374151;
    font-size: .5em;
    line-height: 1.35;
}

.agd-carimbo {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .2em .5em;
    border: .12em solid #dc2626;
    border-radius: .3em;
    background: rgba(255, 255, 255, .85);
    color: #dc2626;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-12deg) scale(1.8);
    transition: opacity .2s, transform .3s cubic-bezier(.3, 1.4, .5, 1);
}

.agd-bloqueou .agd-carimbo {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-12deg) scale(1);
}

.agd-carimbo b {
    font-size: .8em;
    font-weight: 900;
    letter-spacing: .12em;
}

.agd-carimbo small {
    font-size: .34em;
    font-weight: 700;
    white-space: nowrap;
}

/* Escudo que barra a mensagem */
.agd-protecao {
    position: absolute;
    top: 4em;
    left: 8.6em;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 3.6em;
    height: 3.6em;
    opacity: 0;
    transform: scale(.4);
    transition: opacity .25s, transform .45s cubic-bezier(.3, 1.6, .5, 1);
}

.agd-bloqueou .agd-protecao {
    opacity: 1;
    transform: none;
}

.agd-protecao .fa-shield {
    color: var(--agd-ouro);
    font-size: 3.2em;
    filter: drop-shadow(0 .06em .12em rgba(184, 134, 11, .55));
}

.agd-protecao .fa-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    color: #fff;
    font-size: 1.15em;
    transform: translate(-50%, -45%);
}

.agd-protecao::after {
    content: '';
    position: absolute;
    inset: 0;
    border: .14em solid var(--agd-ouro);
    border-radius: 50%;
    opacity: 0;
}

.agd-bloqueou .agd-protecao::after {
    animation: agdOnda 1.1s ease-out 2;
}

/* Rodapé e lojas */
.agd-rodape {
    display: flex;
    align-items: center;
    gap: .6em;
    margin-top: .8em;
    padding: .55em .8em;
    border: .06em solid #ece6d4;
    border-radius: 1em;
    background: #fff;
    box-shadow: 0 .2em .6em rgba(16, 24, 40, .06);
}

.agd-rodape > i {
    flex: none;
    color: var(--agd-ouro);
    font-size: 1.3em;
}

.agd-rodape span {
    font-size: .58em;
    line-height: 1.35;
}

.agd-rodape b {
    color: var(--agd-ouro-escuro);
}

.agd-lojas {
    display: flex;
    justify-content: center;
    gap: .8em;
    margin-top: .7em;
}

.agd-loja {
    display: flex;
    align-items: center;
    gap: .4em;
    padding: .35em .8em;
    border-radius: .45em;
    background: #111827;
    color: #fff;
}

.agd-loja i {
    font-size: 1.1em;
}

.agd-loja span {
    font-size: .62em;
    font-weight: 700;
    line-height: 1.05;
}

.agd-loja small {
    display: block;
    font-size: .7em;
    font-weight: 500;
    opacity: .85;
}

@keyframes agdReflexo {
    0%, 60% { left: -40%; }
    100% { left: 120%; }
}

@keyframes agdPop {
    0% { transform: scale(.2); }
    100% { transform: scale(1); }
}

@keyframes agdDigitando {
    50% { opacity: .65; }
}

@keyframes agdDedo {
    to { transform: translate(2px, -2px); }
}

@keyframes agdLagrima {
    0% { opacity: 0; transform: translateY(0); }
    15% { opacity: 1; }
    100% { opacity: 0; transform: translateY(26px); }
}

@keyframes agdSoluco {
    50% { transform: translateY(2px); }
}

@keyframes agdSuor {
    0% { transform: translateY(0); }
    100% { transform: translateY(8px); }
}

@keyframes agdTremer {
    20% { transform: translateX(-.25em) rotate(-2deg); }
    40% { transform: translateX(.25em) rotate(2deg); }
    60% { transform: translateX(-.18em); }
    80% { transform: translateX(.12em); }
}

@keyframes agdOnda {
    0% { opacity: .8; transform: scale(.8); }
    100% { opacity: 0; transform: scale(1.9); }
}

@media (prefers-reduced-motion: reduce) {
    .agd *,
    .agd *::after {
        animation: none !important;
        transition: none !important;
    }
}
