/* ==========================================================================
   TELAS DE LOGIN DOS APPS (27/10/2026) · Logística, Vendas e Gestão de Safra
   Cada app tem uma tela que combina com o que ele faz:
   - Logística: um contêiner que desce do guindaste (classe le-conteiner)
   - Vendas: uma passagem de embarque sobre a rota do navio (le-passagem)
   - Gestão de Safra: uma folha do caderno de campo com brotos nascendo (le-caderno)
   (O Estoque tem a etiqueta de caixa no próprio estoque-visual.css; o Cooperado não usa.)
   Prefixo le- para não misturar com o CSS antigo de cada app.
   ========================================================================== */

/* ---------- Base comum ---------- */
body.le-pagina {
    --le-fonte: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
    --le-tinta: #15201a;
    --le-tinta-suave: #4d5a52;
    --le-apagado: #7d8a82;
    --le-erro: #c62f3a;
    --le-erro-claro: #fbe0e2;
    --le-mola: cubic-bezier(.34, 1.56, .64, 1);
    --le-suave: cubic-bezier(.22, .61, .36, 1);
    --le-botao: #0f5132;
    --le-botao-escuro: #08321f;
    --le-foco: rgba(30, 142, 78, .18);
    --le-fundo: #08321f;

    box-sizing: border-box; /* o espaçamento não soma na altura (sem barra de rolagem) */
    display: grid;
    grid-template-columns: minmax(0, 1fr); /* o cartão mede a tela toda, não o próprio conteúdo */
    place-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 24px;
    overflow-x: hidden;
    color: var(--le-tinta);
    background: var(--le-fundo);
    font-family: var(--le-fonte);
    -webkit-font-smoothing: antialiased;
}

.le-pagina *,
.le-pagina *::before,
.le-pagina *::after { box-sizing: border-box; }

@keyframes le-entra { from { opacity: 0; transform: translateY(14px); } }
@keyframes le-sacode { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* Fotos do fundo com zoom lento (Logística e Safra) */
.le-fundo,
.le-slide { position: fixed; inset: 0; }
.le-fundo { z-index: 0; overflow: hidden; background: var(--le-fundo); }

.le-slide {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    transform: scale(1.12);
    transition: opacity 1.6s ease, transform 9s linear;
}

.le-slide.is-active { opacity: 1; transform: scale(1); }

.le-fundo::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--le-fundo) 35%, transparent), color-mix(in srgb, var(--le-fundo) 88%, transparent) 75%),
        linear-gradient(180deg, color-mix(in srgb, var(--le-fundo) 20%, transparent), color-mix(in srgb, var(--le-fundo) 70%, transparent));
}

/* Campos, botão, erro (iguais nos três) */
.le-alerta {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--le-erro);
    background: var(--le-erro-claro);
    font-size: 14px;
    font-weight: 600;
}

.le-form { display: grid; gap: 14px; margin: 0; }
.le-campo { display: grid; gap: 6px; margin: 0; animation: le-entra .5s var(--le-suave) both; }
.le-campo > span:first-child { color: var(--le-tinta-suave); font-size: 13px; font-weight: 600; }

.le-caixa {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid #d6ddd8;
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .25s ease, transform .3s var(--le-mola);
}

.le-caixa:focus-within { border-color: var(--le-botao); box-shadow: 0 0 0 4px var(--le-foco); transform: translateY(-1px); }

.le-caixa > i {
    padding: 0 4px 0 14px;
    color: var(--le-apagado);
    font-size: 17px;
    transition: color .2s ease, transform .35s var(--le-mola);
}

.le-caixa:focus-within > i { color: var(--le-botao); transform: scale(1.15); }

.le-caixa input,
.le-caixa input.form-control {
    flex: 1 1 auto;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 12px 12px 12px 8px;
    border: 0;
    border-radius: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    color: var(--le-tinta);
    font-family: var(--le-fonte);
    font-size: 16px;
}

.le-ver-senha {
    margin-right: 6px;
    padding: 6px 8px;
    border: 0;
    border-radius: 8px;
    color: var(--le-apagado);
    background: transparent;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease;
}

.le-ver-senha:hover { color: var(--le-botao); background: var(--le-foco); }

.le-botao {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: var(--le-botao);
    box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--le-botao) 90%, transparent);
    font-family: var(--le-fonte);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .3s var(--le-mola), background-color .15s ease, box-shadow .2s ease;
    animation: le-entra .5s var(--le-suave) both;
}

.le-botao:hover { background: var(--le-botao-escuro); transform: translateY(-2px); }
.le-botao:active { transform: scale(.97); }
.le-botao:focus-visible { outline: 0; box-shadow: 0 0 0 4px var(--le-foco); }

.le-botao-texto { display: inline-flex; gap: 8px; align-items: center; transition: opacity .2s ease, transform .3s var(--le-mola); }
.le-botao-texto i { transition: transform .35s var(--le-mola); }
.le-botao:hover .le-botao-texto i { transform: translateX(4px); }

.le-carregando { position: absolute; display: flex; gap: 6px; opacity: 0; }
.le-carregando i { width: 10px; height: 10px; border-radius: 2px; background: #fff; opacity: .9; animation: le-pulinho .9s var(--le-mola) infinite; }
.le-carregando i:nth-child(2) { animation-delay: .12s; }
.le-carregando i:nth-child(3) { animation-delay: .24s; }
@keyframes le-pulinho { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-9px); } }

.le-form.is-enviando .le-botao-texto { opacity: 0; transform: translateY(-10px); }
.le-form.is-enviando .le-carregando { opacity: 1; }

.le-link { display: inline-flex; gap: 7px; align-items: center; color: var(--le-botao); font-weight: 600; text-decoration: none; }
.le-link:hover { color: var(--le-botao-escuro); text-decoration: underline; }
.le-aviso { display: block; margin-top: 4px; color: var(--le-apagado); font-size: 12px; }

/* ==========================================================================
   LOGÍSTICA · o contêiner que desce do guindaste
   ========================================================================== */
body.le-app-logistica {
    --le-botao: #1b4568;
    --le-botao-escuro: #12324f;
    --le-foco: rgba(59, 130, 196, .22);
    --le-fundo: #0c2236;
    --le-aco: #1b4568;
    --le-aco-escuro: #0f2c45;
    --le-fonte-estencil: "Big Shoulders Stencil Display", "Big Shoulders Display", sans-serif;
}

.le-conteiner {
    position: relative;
    z-index: 1;
    width: min(540px, 100%);
    padding: 24px 74px 26px 28px;
    border-radius: 3px;
    color: #fff;
    background:
        linear-gradient(var(--le-aco-escuro), var(--le-aco-escuro)) top / 100% 12px no-repeat,
        linear-gradient(var(--le-aco-escuro), var(--le-aco-escuro)) bottom / 100% 12px no-repeat,
        repeating-linear-gradient(90deg, #22577f 0 13px, #1b4568 13px 17px, #153a5a 17px 21px, #1b4568 21px 27px);
    box-shadow: inset 0 0 0 3px var(--le-aco-escuro), 0 40px 90px -30px rgba(0, 0, 0, .85);
    transform-origin: 50% -260px;
    animation: le-guindaste 1.5s cubic-bezier(.3, .7, .4, 1) .1s both;
}

/* Desce do alto, balança no cabo e assenta */
@keyframes le-guindaste {
    0% { opacity: 0; transform: translateY(-105vh); }
    10% { opacity: 1; }
    55% { transform: translateY(10px) rotate(-2.4deg); }
    72% { transform: translateY(-3px) rotate(1.3deg); }
    86% { transform: rotate(-.5deg); }
    100% { transform: none; }
}

.le-conteiner.tem-erro { animation: le-guindaste 1.5s cubic-bezier(.3, .7, .4, 1) .1s both, le-sacode .5s ease 1.6s; }

/* Cantos reforçados (onde o guindaste encaixa) */
.le-conteiner::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(#0a1f31, #0a1f31) left top / 20px 18px no-repeat,
        linear-gradient(#0a1f31, #0a1f31) right top / 20px 18px no-repeat,
        linear-gradient(#0a1f31, #0a1f31) left bottom / 20px 18px no-repeat,
        linear-gradient(#0a1f31, #0a1f31) right bottom / 20px 18px no-repeat;
}

/* O cabo do guindaste: aparece descendo e some depois que o contêiner assenta */
.le-cabo {
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 3px;
    height: 100vh;
    margin-left: -1.5px;
    background: linear-gradient(#7c8a96, #b4c0ca);
    animation: le-cabo-some .5s ease 1.6s both;
}

.le-cabo::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: -9px;
    width: 21px;
    height: 12px;
    border: 3px solid #b4c0ca;
    border-top: 0;
    border-radius: 0 0 12px 12px;
}

@keyframes le-cabo-some { to { opacity: 0; transform: translateY(-40px); } }

/* Travas da porta, à direita */
.le-travas {
    position: absolute;
    top: 14px;
    right: 18px;
    bottom: 14px;
    display: flex;
    gap: 12px;
}

.le-trava {
    position: relative;
    width: 7px;
    border-radius: 4px;
    background: linear-gradient(90deg, #6f8191, #c5d0d9 45%, #6f8191);
}

.le-trava i {
    position: absolute;
    top: 52%;
    left: -6px;
    width: 19px;
    height: 32px;
    border-radius: 4px;
    background: #f2b134;
    box-shadow: 0 2px 0 rgba(0, 0, 0, .3);
    transform-origin: 50% 20%;
    transition: transform .6s var(--le-mola);
}

.le-trava:nth-child(2) i { top: 46%; }
.le-conteiner.is-enviando .le-trava i { transform: rotate(-90deg); }
.le-conteiner.is-enviando .le-trava:nth-child(2) i { transition-delay: .12s; }

.le-conteiner-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    animation: le-entra .5s var(--le-suave) 1.3s both;
}

.le-conteiner-logo {
    height: 44px;
    width: auto;
    padding: 4px 8px;
    border-radius: 6px;
    background: #fff;
}

.le-conteiner-semana {
    padding: 4px 10px;
    border: 2px solid rgba(255, 255, 255, .7);
    border-radius: 4px;
    color: #fff;
    font-family: var(--le-fonte-estencil);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .04em;
}

.le-conteiner .le-marca {
    margin: 6px 0 4px;
    font-family: var(--le-fonte-estencil);
    font-size: 72px;
    font-weight: 800;
    line-height: .86;
    color: #fff;
    text-shadow: 0 2px 0 rgba(0, 0, 0, .25);
    animation: le-tinta 1s var(--le-suave) 1.4s both;
}

@keyframes le-tinta { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.le-conteiner .le-frase {
    max-width: 40ch;
    margin: 6px 0 18px;
    color: rgba(255, 255, 255, .82);
    font-size: 14.5px;
    line-height: 1.5;
    animation: le-entra .5s var(--le-suave) 1.5s both;
}

/* A placa presa no contêiner, com o formulário */
.le-placa {
    position: relative;
    padding: 18px 18px 16px;
    border-radius: 6px;
    color: var(--le-tinta);
    background: #f3f6f9;
    box-shadow: 0 2px 0 rgba(0, 0, 0, .25);
    animation: le-entra .5s var(--le-suave) 1.6s both;
}

/* Rebites da placa */
.le-placa::before {
    content: "";
    position: absolute;
    inset: 6px;
    pointer-events: none;
    background:
        radial-gradient(circle, #9aa8b4 0 2.5px, transparent 3px) left top / 10px 10px no-repeat,
        radial-gradient(circle, #9aa8b4 0 2.5px, transparent 3px) right top / 10px 10px no-repeat,
        radial-gradient(circle, #9aa8b4 0 2.5px, transparent 3px) left bottom / 10px 10px no-repeat,
        radial-gradient(circle, #9aa8b4 0 2.5px, transparent 3px) right bottom / 10px 10px no-repeat;
}

.le-placa .le-campo:nth-of-type(1) { animation-delay: 1.7s; }
.le-placa .le-campo:nth-of-type(2) { animation-delay: 1.8s; }
.le-placa .le-botao { animation-delay: 1.9s; }

.le-conteiner-pe { margin-top: 14px; animation: le-entra .5s var(--le-suave) 2s both; }
.le-conteiner-pe .le-link { color: #fff; }
.le-conteiner-pe .le-link:hover { color: #fff; }
.le-conteiner-pe .le-aviso { color: rgba(255, 255, 255, .65); }

/* ==========================================================================
   VENDAS · a passagem de embarque sobre a rota do navio
   ========================================================================== */
body.le-app-vendas {
    --le-fonte: "Barlow", "Archivo", system-ui, sans-serif;
    --le-fonte-titulo: "Barlow Semi Condensed", "Barlow", sans-serif;
    --le-botao: #0f5132;
    --le-botao-escuro: #08321f;
    --le-foco: rgba(227, 167, 47, .3);
    --le-fundo: #0b2a43;
    --le-gengibre: #e3a72f;
    background:
        radial-gradient(ellipse at 20% 110%, rgba(36, 85, 127, .9), transparent 60%),
        radial-gradient(ellipse at 90% -10%, rgba(15, 81, 50, .55), transparent 55%),
        #0b2a43;
}

.le-oceano { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.le-oceano svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.le-rota { fill: none; stroke: rgba(227, 167, 47, .55); stroke-width: 2.5; stroke-dasharray: 2 12; stroke-linecap: round; animation: le-rota-anda 2.4s linear infinite; }
@keyframes le-rota-anda { to { stroke-dashoffset: -28; } }
.le-porto { fill: #e3a72f; }
.le-porto-onda { fill: none; stroke: #e3a72f; stroke-width: 2; animation: le-porto-pulsa 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes le-porto-pulsa { from { opacity: .8; transform: scale(.4); } to { opacity: 0; transform: scale(2.4); } }
.le-porto-nome { fill: rgba(255, 255, 255, .7); font-family: "Barlow Semi Condensed", sans-serif; font-size: 22px; font-weight: 700; letter-spacing: .06em; }
.le-navio { fill: #fff; }
.le-ondas { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 2; animation: le-ondas 7s linear infinite; }
@keyframes le-ondas { to { transform: translateX(-120px); } }

.le-passagem {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    width: min(600px, 100%);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85);
    animation: le-imprime 1.1s var(--le-suave) .2s both;
}

/* Sai da impressora de cima pra baixo */
@keyframes le-imprime {
    from { clip-path: inset(0 0 100% 0 round 18px); transform: translateY(-24px); }
    to { clip-path: inset(0 0 0 0 round 18px); transform: none; }
}

.le-passagem.tem-erro { animation: le-imprime 1.1s var(--le-suave) .2s both, le-sacode .5s ease 1.3s; }

/* Os furinhos do picote entre a passagem e o canhoto */
.le-passagem::before,
.le-passagem::after {
    content: "";
    position: absolute;
    right: 120px;
    z-index: 2;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0b2a43;
}

.le-passagem::before { top: -12px; }
.le-passagem::after { bottom: -12px; }

.le-passagem-corpo { padding: 26px 28px 22px; }

.le-passagem-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    animation: le-entra .5s var(--le-suave) .9s both;
}

.le-passagem-logo { height: 46px; width: auto; }

.le-passagem-tipo {
    padding: 3px 10px;
    border-radius: 999px;
    color: #0f5132;
    background: #fdf0cf;
    font-family: var(--le-fonte-titulo);
    font-size: 14px;
    font-weight: 700;
}

.le-passagem .le-marca {
    margin: 0;
    font-family: var(--le-fonte-titulo);
    font-size: 66px;
    font-weight: 700;
    line-height: .9;
    color: #0f5132;
    animation: le-entra .6s var(--le-suave) 1s both;
}

.le-passagem .le-frase {
    max-width: 38ch;
    margin: 8px 0 18px;
    color: var(--le-tinta-suave);
    font-size: 15px;
    line-height: 1.5;
    animation: le-entra .5s var(--le-suave) 1.1s both;
}

.le-passagem .le-campo:nth-of-type(1) { animation-delay: 1.15s; }
.le-passagem .le-campo:nth-of-type(2) { animation-delay: 1.25s; }
.le-passagem .le-botao { animation-delay: 1.35s; background: #0f5132; }
.le-passagem .le-botao:hover { background: #08321f; }

.le-passagem-pe { margin-top: 16px; padding-top: 12px; border-top: 1px solid #e3e8ec; animation: le-entra .5s var(--le-suave) 1.45s both; }

/* O canhoto (destaca quando entra) */
.le-canhoto {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 24px 16px 20px 20px;
    border-left: 3px dashed #cbd5dc;
    border-radius: 0 18px 18px 0;
    color: #fff;
    background:
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, .05) 0 6px, transparent 6px 12px),
        #0f5132;
    transform-origin: left center;
    transition: transform .7s var(--le-mola);
}

.le-passagem.is-enviando .le-canhoto { transform: rotate(7deg) translate(10px, 6px); }

.le-canhoto-porto { display: grid; gap: 0; animation: le-entra .5s var(--le-suave) 1.2s both; }
.le-canhoto-porto small { color: rgba(255, 255, 255, .6); font-size: 12px; font-weight: 600; }
.le-canhoto-porto strong { font-family: var(--le-fonte-titulo); font-size: 34px; font-weight: 700; line-height: 1; color: var(--le-gengibre); }
.le-canhoto-porto span { font-size: 13px; color: rgba(255, 255, 255, .85); }
.le-canhoto-seta { color: rgba(255, 255, 255, .55); font-size: 20px; animation: le-entra .5s var(--le-suave) 1.3s both; }

.le-canhoto-semana {
    display: grid;
    padding: 8px 10px;
    border-radius: 10px;
    color: #0f5132;
    background: var(--le-gengibre);
    text-align: center;
    animation: le-entra .5s var(--le-suave) 1.4s both;
}

.le-canhoto-semana small { font-size: 11px; font-weight: 700; }
.le-canhoto-semana strong { font-family: var(--le-fonte-titulo); font-size: 28px; line-height: 1; }

.le-canhoto-barras {
    height: 34px;
    background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 8px, #fff 8px 11px, transparent 11px 13px);
    opacity: .8;
}

/* ==========================================================================
   GESTÃO DE SAFRA · a folha do caderno de campo
   ========================================================================== */
body.le-app-safra {
    --le-fonte-mao: "Caveat", "Segoe Print", cursive;
    --le-botao: #3b7a26;
    --le-botao-escuro: #2c5e1e;
    --le-foco: rgba(79, 154, 51, .22);
    --le-fundo: #1d3514;
    --le-linha: #cfdeec;
    --le-margem: #e7a3a3;
}

.le-caderno {
    position: relative;
    z-index: 1;
    width: min(450px, 100%);
    padding-top: 18px;
    perspective: 1400px;
}

/* A espiral do caderno */
.le-espiral {
    position: absolute;
    top: 0;
    right: 26px;
    left: 26px;
    z-index: 2;
    height: 34px;
    background:
        radial-gradient(ellipse 6px 15px at 50% 50%, transparent 0 4px, #8d969b 4.5px 6px, transparent 6.5px) 0 0 / 26px 34px repeat-x;
    animation: le-entra .4s var(--le-suave) .2s both;
}

.le-folha {
    position: relative;
    padding: 34px 28px 0 64px;
    overflow: hidden;
    border-radius: 6px 6px 10px 10px;
    background:
        linear-gradient(90deg, transparent 46px, var(--le-margem) 46px 48px, transparent 48px),
        repeating-linear-gradient(180deg, transparent 0 31px, var(--le-linha) 31px 32px),
        #fbfcf8;
    background-position: 0 0, 0 12px, 0 0;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 1px 0 rgba(0, 0, 0, .05);
    transform-origin: top center;
    animation: le-abre-caderno 1s cubic-bezier(.2, .8, .3, 1) .15s both;
}

/* O caderno abre: a folha desce girando a partir da espiral */
@keyframes le-abre-caderno {
    from { opacity: 0; transform: rotateX(-82deg); }
    40% { opacity: 1; }
    to { transform: none; }
}

.le-caderno.tem-erro .le-folha { animation: le-abre-caderno 1s cubic-bezier(.2, .8, .3, 1) .15s both, le-sacode .5s ease 1.2s; }

.le-folha-topo {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    animation: le-entra .5s var(--le-suave) .8s both;
}

.le-folha-logo { height: 46px; width: auto; }

.le-folha-data { color: #6c7a86; font-family: var(--le-fonte-mao); font-size: 22px; line-height: 1; transform: rotate(-3deg); }

.le-caderno .le-marca {
    margin: 10px 0 0;
    font-family: var(--le-fonte-mao);
    font-size: 74px;
    font-weight: 700;
    line-height: .95;
    color: #2c5e1e;
    animation: le-escreve 1.1s steps(18, end) .95s both;
}

/* Escrito à mão, da esquerda pra direita */
@keyframes le-escreve { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -10% 0 0); } }

.le-caderno .le-frase {
    max-width: 38ch;
    margin: 4px 0 16px;
    color: var(--le-tinta-suave);
    font-size: 14.5px;
    line-height: 1.5;
    animation: le-entra .5s var(--le-suave) 1.4s both;
}

.le-caderno .le-campo:nth-of-type(1) { animation-delay: 1.5s; }
.le-caderno .le-campo:nth-of-type(2) { animation-delay: 1.6s; }
.le-caderno .le-botao { animation-delay: 1.7s; }

.le-folha-pe { margin-top: 16px; padding-bottom: 6px; animation: le-entra .5s var(--le-suave) 1.8s both; }

/* Os brotos de gengibre nascendo na terra, no pé da folha */
.le-canteiro {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 64px;
    margin: 10px -28px 0 -64px;
    padding: 0 18px;
    background: linear-gradient(180deg, transparent 0 46px, #7a5230 46px 50px, #5e3d22 50px);
}

.le-broto {
    position: relative;
    width: 4px;
    height: var(--h, 34px);
    margin-bottom: 14px;
    border-radius: 3px;
    background: #4f9a33;
    transform-origin: bottom center;
    animation: le-nasce .9s var(--le-mola) both;
    animation-delay: calc(1.9s + var(--i, 0) * 110ms);
}

/* Uma folha pra cada lado, saindo do topo do talo */
.le-broto::before,
.le-broto::after {
    content: "";
    position: absolute;
    top: 0;
    width: 17px;
    height: 7px;
    background: #6fbf45;
}

.le-broto::before { right: 2px; border-radius: 100% 0 100% 0; transform: rotate(28deg); transform-origin: right bottom; }
.le-broto::after { left: 2px; border-radius: 0 100% 0 100%; transform: rotate(-28deg); transform-origin: left bottom; }

@keyframes le-nasce { from { transform: scaleY(0); } }

/* Ao entrar, os brotos crescem mais um pouco */
.le-caderno.is-enviando .le-broto { transform: scaleY(1.35); transition: transform .6s var(--le-mola); }

/* ---------- Celular ---------- */
@media (max-width: 640px) {
    body.le-pagina { padding: 16px; }
    .le-conteiner { padding: 22px 58px 22px 20px; }
    .le-conteiner .le-marca { font-size: 56px; }
    .le-travas { right: 12px; gap: 8px; }

    .le-passagem { grid-template-columns: 1fr; }
    .le-passagem::before,
    .le-passagem::after { display: none; }
    .le-canhoto {
        flex-direction: row;
        align-items: center;
        padding: 14px 18px;
        border-top: 3px dashed #cbd5dc;
        border-left: 0;
        border-radius: 0 0 18px 18px;
    }
    .le-canhoto-barras { display: none; }
    .le-canhoto-seta { transform: rotate(-90deg); } /* canhoto deitado: Santos → Roterdã */
    .le-canhoto-porto strong { font-size: 26px; }
    .le-canhoto-semana strong { font-size: 22px; }
    .le-passagem .le-marca { font-size: 54px; }
    .le-passagem-corpo { padding: 22px 20px 18px; }

    .le-folha { padding: 30px 18px 0 50px; background-position: 0 0, 0 12px, 0 0; }
    .le-folha { background: linear-gradient(90deg, transparent 34px, var(--le-margem) 34px 36px, transparent 36px), repeating-linear-gradient(180deg, transparent 0 31px, var(--le-linha) 31px 32px), #fbfcf8; }
    .le-canteiro { margin: 10px -18px 0 -50px; }
    .le-caderno .le-marca { font-size: 60px; }
}

/* ---------- Reduzir movimento ---------- */
@media (prefers-reduced-motion: reduce) {
    .le-pagina *,
    .le-pagina *::before,
    .le-pagina *::after {
        animation: none !important;
        transition: none !important;
    }
    .le-slide { transform: none; }
    .le-cabo { display: none; }
}
