/* ===================================================================
   ENCCEJA — landing publica (/encceja)
   DAGOBERTO STYLE — design "editorial premium" (docs/design.md):
   tinta indigo + ouro do certificado + verde do acerto.

   Escopo: TODA classe usa o prefixo .encl-* e este arquivo e carregado
   SO pela landing (app/views/pages/encceja/index.php). O encceja.css
   (compartilhado pelas outras 6 telas do modulo) nao e tocado.
   Zero Tailwind novo, zero request externo: ilustracao e SVG/CSS.
   =================================================================== */

/* ================================================================= */
/* VARIAVEIS — 6 acentos, cada um com PAPEL semantico                */
/* ================================================================= */
:root {
    --encl-ink:      #080b26;   /* tinta — fundo escuro do hero/CTA */
    --encl-ink-2:    #151a4a;
    --encl-indigo:   #6366f1;   /* o EXAME / a plataforma */
    --encl-indigo-d: #4338ca;   /* par escuro (texto no tema claro) */
    --encl-iris:     #a5b4fc;   /* par claro (texto no tema escuro) */
    --encl-gold:     #f59e0b;   /* o CERTIFICADO — a conquista */
    --encl-gold-s:   #fcd34d;
    --encl-emerald:  #10b981;   /* ACERTO / aprovacao */
    --encl-mint:     #6ee7b7;
    --encl-rose:     #fb7185;   /* ERRO — o que ainda falta estudar */
    --encl-sky:      #38bdf8;   /* TEMPO — cronograma, contagem */
    --encl-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
}

/* ================================================================= */
/* BASE                                                              */
/* ================================================================= */
.encl-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}
.encl-sec { padding: 5rem 0; }
.encl-sec--bg { background: var(--bg); }
.encl-sec--surface { background: var(--surface); }

.encl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--encl-indigo-d);
    margin-bottom: 1rem;
}
[data-theme="dark"] .encl-eyebrow { color: var(--encl-iris); }
.encl-eyebrow::before {
    content: "";
    width: 1.75rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    opacity: .5;
}

.encl-h2 {
    font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.75rem);
    line-height: 1.12;
    letter-spacing: -.025em;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1rem;
    text-wrap: balance;
}
.encl-lead {
    font-size: clamp(1rem, .95rem + .35vw, 1.1875rem);
    line-height: 1.65;
    color: var(--muted);
    max-width: 42rem;
    margin: 0 0 3rem;
    text-wrap: pretty;
}
.encl-center { text-align: center; }
.encl-center .encl-lead { margin-left: auto; margin-right: auto; }

/* ================================================================= */
/* REVELACAO NO SCROLL (so esconde se o JS estiver vivo)             */
/* ================================================================= */
.encl-js .encl-rv {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
    transition-delay: var(--rv-delay, 0s);
}
.encl-js .encl-rv.is-in { opacity: 1; transform: none; }

/* ================================================================= */
/* BOTOES                                                            */
/* ================================================================= */
.encl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .625rem;
    padding: 1rem 1.75rem;
    min-height: 3rem;
    border-radius: 999px;
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.encl-btn svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

/* primario = a conquista (ouro) — e o botao mais importante da pagina */
.encl-btn--primary {
    background: linear-gradient(135deg, var(--encl-gold-s), var(--encl-gold) 60%, #d97706);
    color: #3b2003;
    box-shadow: 0 10px 30px -8px rgba(245, 158, 11, .6), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.encl-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -10px rgba(245, 158, 11, .7), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.encl-btn--ghost {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .22);
    color: #fff;
    backdrop-filter: blur(8px);
}
.encl-btn--ghost:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.encl-btn--ghost svg { color: var(--encl-gold-s); }

/* sobre fundo claro (secoes do meio) */
.encl-btn--solid {
    background: var(--encl-indigo-d);
    color: #fff;
    box-shadow: 0 12px 28px -12px rgba(67, 56, 202, .8);
}
[data-theme="dark"] .encl-btn--solid { background: var(--encl-indigo); }
.encl-btn--solid:hover { transform: translateY(-2px); }
.encl-btn--linha {
    background: transparent;
    border-color: color-mix(in srgb, var(--encl-indigo) 35%, var(--border));
    color: var(--encl-indigo-d);
}
[data-theme="dark"] .encl-btn--linha { color: var(--encl-iris); }
.encl-btn--linha:hover {
    background: color-mix(in srgb, var(--encl-indigo) 10%, transparent);
    border-color: var(--encl-indigo);
    transform: translateY(-2px);
}

/* ================================================================= */
/* HERO                                                              */
/* ================================================================= */
.encl-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    padding: 4.5rem 0 5rem;
    background:
        radial-gradient(58rem 38rem at 78% 6%, rgba(245, 158, 11, .22), transparent 60%),
        radial-gradient(50rem 34rem at 6% 88%, rgba(99, 102, 241, .38), transparent 62%),
        radial-gradient(36rem 26rem at 52% -12%, rgba(56, 189, 248, .18), transparent 60%),
        linear-gradient(160deg, var(--encl-ink-2), var(--encl-ink) 58%, #04061a);
}
.encl-hero::before { /* granulado: tira o "chapado" do gradiente */
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--encl-grain);
    opacity: .26;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: -1;
}
.encl-hero::after { /* malha de 64px com mascara radial */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(46rem 30rem at 28% 42%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(46rem 30rem at 28% 42%, #000, transparent 75%);
    pointer-events: none;
    z-index: -1;
}
.encl-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 3rem;
    align-items: center;
}

.encl-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 600;
    color: #e9e4ff;
    background: rgba(99, 102, 241, .18);
    border: 1px solid rgba(165, 180, 252, .32);
    backdrop-filter: blur(6px);
}
.encl-badge svg { width: 1.05rem; height: 1.05rem; }

/* urgencia na dobra — so nas semanas antes da prova (gate em index.php). Acento sky = TEMPO */
.encl-urg {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .9rem;
    padding: .45rem .9rem;
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 600;
    color: #e0f4ff;
    background: color-mix(in srgb, var(--encl-sky) 20%, transparent);
    border: 1px solid color-mix(in srgb, var(--encl-sky) 40%, transparent);
    backdrop-filter: blur(6px);
    transition: background-color .15s ease, transform .15s ease;
}
.encl-urg:hover { background: color-mix(in srgb, var(--encl-sky) 28%, transparent); transform: translateY(-1px); }
.encl-urg svg { width: .95rem; height: .95rem; color: var(--encl-sky); flex-shrink: 0; }
.encl-urg b { font-weight: 800; color: #fff; }

.encl-hero h1 {
    font-size: clamp(2.25rem, 1.2rem + 4.4vw, 4rem);
    line-height: 1.04;
    letter-spacing: -.035em;
    font-weight: 700;
    margin: 1.5rem 0 1.25rem;
    text-wrap: balance;
}
.encl-grad--ouro {
    background: linear-gradient(100deg, #fff3d0, var(--encl-gold-s) 45%, var(--encl-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.encl-hero__sub {
    font-size: clamp(1.0625rem, 1rem + .45vw, 1.25rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, .78);
    max-width: 34rem;
    margin: 0 0 1.75rem;
    text-wrap: pretty;
}
.encl-hero__sub strong { color: #fff; font-weight: 700; }
.encl-hero__acoes { display: flex; flex-wrap: wrap; gap: .875rem; align-items: center; }
.encl-hero__nota { margin-top: 1.25rem; font-size: .875rem; color: rgba(255, 255, 255, .55); }

/* pilulas de prova sob o CTA */
.encl-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.encl-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .8rem;
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
}
.encl-pill i {
    width: .5rem;
    height: .5rem;
    border-radius: 999px;
    background: var(--encl-gold-s);
    box-shadow: 0 0 0 3px rgba(252, 211, 77, .18);
}
.encl-pill--verde i { background: var(--encl-mint); box-shadow: 0 0 0 3px rgba(110, 231, 183, .18); }
.encl-pill--iris i  { background: var(--encl-iris); box-shadow: 0 0 0 3px rgba(165, 180, 252, .2); }
.encl-pill--sky i   { background: var(--encl-sky);  box-shadow: 0 0 0 3px rgba(56, 189, 248, .2); }

/* ================================================================= */
/* HERO — O PALCO: o simulado rodando + a conquista                  */
/* ================================================================= */
.encl-palco {
    position: relative;
    height: 28rem;
}

/* --- o cartao da conquista (fundo, girado) --- */
.encl-cert {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
    width: 13rem;
    padding: 1.125rem 1rem 1rem;
    border-radius: .9rem;
    text-align: center;
    color: #4a3208;
    background: linear-gradient(155deg, #fffaf0, #f7e6c4);
    border: 1px solid rgba(180, 83, 9, .25);
    box-shadow: 0 34px 60px -24px rgba(0, 0, 0, .85);
    transform: rotate(4deg);
    animation: enclFlutua 8s ease-in-out infinite;
}
.encl-cert::before { /* halo dourado atras */
    content: "";
    position: absolute;
    inset: -30% -22%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(245, 158, 11, .38), transparent 68%);
    z-index: -1;
}
.encl-cert__selo {
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 auto .625rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(140deg, var(--encl-gold-s), #d97706);
    box-shadow: 0 6px 16px -6px rgba(180, 83, 9, .8);
}
.encl-cert__selo svg { width: 1.5rem; height: 1.5rem; }
.encl-cert__eyebrow {
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #92400e;
    margin: 0 0 .25rem;
}
.encl-cert__titulo {
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 .75rem;
    color: #3f2a06;
}
.encl-cert__linhas { display: flex; flex-direction: column; gap: .3rem; align-items: center; margin-bottom: .75rem; }
.encl-cert__linhas span {
    height: 3px;
    width: 76%;
    border-radius: 2px;
    background: rgba(120, 80, 20, .22);
}
.encl-cert__linhas span:nth-child(2) { width: 52%; }
.encl-cert__pe {
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #a16207;
    margin: 0;
}

/* --- a janela do simulado (frente) --- */
.encl-prova {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: 18rem;
    max-width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 40px 70px -26px rgba(0, 0, 0, .9);
    backdrop-filter: blur(14px);
    animation: enclFlutua 7s ease-in-out infinite reverse;
}
.encl-prova__topo {
    display: flex;
    align-items: center;
    gap: .375rem;
    padding: .625rem .875rem;
    background: rgba(255, 255, 255, .06);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.encl-dot { width: .5rem; height: .5rem; border-radius: 999px; background: rgba(255, 255, 255, .25); }
.encl-prova__topo b {
    margin-left: .5rem;
    font-size: .6875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .58);
}
.encl-timer {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .6875rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #bae6fd;
    background: rgba(56, 189, 248, .16);
    border: 1px solid rgba(56, 189, 248, .3);
    border-radius: 999px;
    padding: .15rem .45rem;
}
.encl-prova__corpo { padding: 1rem; }
.encl-prova__q {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
    margin: 0 0 .5rem;
}
.encl-enun { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .875rem; }
.encl-enun span { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .16); }
.encl-enun span:nth-child(2) { width: 92%; }
.encl-enun span:nth-child(3) { width: 64%; }

.encl-alts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .375rem; }
.encl-alt {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .55rem;
    border-radius: .5rem;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .07);
    opacity: 0;
    animation: enclEntra .55s cubic-bezier(.16, 1, .3, 1) forwards;
}
.encl-alt:nth-child(1) { animation-delay: .5s; }
.encl-alt:nth-child(2) { animation-delay: .9s; }
.encl-alt:nth-child(3) { animation-delay: 1.3s; }
.encl-alt:nth-child(4) { animation-delay: 1.7s; }
.encl-alt b {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: .625rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .1);
}
.encl-alt i {
    display: block;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .18);
    flex: 1;
}
.encl-alt--ok {
    background: rgba(16, 185, 129, .16);
    border-color: rgba(110, 231, 183, .45);
}
.encl-alt--ok b { background: var(--encl-emerald); color: #04241a; }
.encl-alt--ok i { background: rgba(110, 231, 183, .5); }
.encl-alt--erro {
    background: rgba(251, 113, 133, .12);
    border-color: rgba(251, 113, 133, .32);
}
.encl-alt--erro b { background: rgba(251, 113, 133, .8); color: #3f0716; }
.encl-alt__tag {
    margin-left: auto;
    font-size: .5625rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .1rem .35rem;
    border-radius: .25rem;
    white-space: nowrap;
}
.encl-alt--ok .encl-alt__tag { color: #d1fae5; background: rgba(16, 185, 129, .3); }
.encl-alt--erro .encl-alt__tag { color: #ffe4e6; background: rgba(251, 113, 133, .28); }

.encl-prova__barra {
    height: .375rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    overflow: hidden;
    margin-top: .875rem;
}
.encl-prova__barra i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--encl-indigo), var(--encl-mint));
    animation: enclEnche 6s cubic-bezier(.4, 0, .2, 1) infinite;
}

/* --- o selo de resultado --- */
.encl-resultado {
    position: absolute;
    right: .75rem;
    top: 12rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .85rem;
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 700;
    color: #d1fae5;
    background: rgba(16, 185, 129, .2);
    border: 1px solid rgba(110, 231, 183, .45);
    backdrop-filter: blur(6px);
}
.encl-resultado svg { width: 1rem; height: 1rem; color: var(--encl-mint); }
.encl-resultado::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 999px;
    border: 1px solid rgba(110, 231, 183, .4);
    animation: enclPulso 2.8s ease-out infinite;
}

@keyframes enclFlutua {
    0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    50%      { transform: translateY(-13px) rotate(var(--rot, 0deg)); }
}
.encl-cert { --rot: 4deg; }
@keyframes enclEntra {
    from { opacity: 0; transform: translateX(14px); }
    to   { opacity: 1; transform: none; }
}
@keyframes enclEnche {
    0%   { width: 12%; }
    100% { width: 88%; }
}
@keyframes enclPulso {
    0%   { transform: scale(1); opacity: .8; }
    100% { transform: scale(1.45); opacity: 0; }
}

/* ================================================================= */
/* FAIXA DE NUMEROS                                                  */
/* ================================================================= */
.encl-faixa {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.encl-faixa__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--border);
}
.encl-faixa__item {
    background: var(--surface);
    padding: 1.75rem 1.25rem;
    text-align: center;
}
.encl-faixa__num {
    display: block;
    font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.1;
    background: linear-gradient(120deg, var(--encl-indigo-d), #b45309);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
[data-theme="dark"] .encl-faixa__num {
    background: linear-gradient(120deg, var(--encl-iris), var(--encl-gold-s));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.encl-faixa__item span { display: block; margin-top: .375rem; font-size: .875rem; color: var(--muted); }

/* ================================================================= */
/* CRONOGRAMA — contagem + trilho oficial                            */
/* ================================================================= */
.encl-crono { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 3rem; align-items: center; }

.encl-contagem {
    position: relative;
    border-radius: 1.25rem;
    padding: 2rem 1.75rem;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.encl-contagem::before {
    content: "";
    position: absolute;
    inset: -60% -30% auto;
    height: 14rem;
    background: radial-gradient(circle, color-mix(in srgb, var(--encl-sky) 22%, transparent), transparent 68%);
    pointer-events: none;
}
.encl-contagem__num {
    display: block;
    font-size: clamp(3.5rem, 2rem + 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.05em;
    background: linear-gradient(130deg, var(--encl-indigo-d), var(--encl-sky));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
[data-theme="dark"] .encl-contagem__num {
    background: linear-gradient(130deg, var(--encl-iris), var(--encl-sky));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.encl-contagem__label {
    display: block;
    margin-top: .5rem;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--text-2);
}
.encl-contagem__data {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: 1rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 700;
    color: var(--encl-indigo-d);
    background: color-mix(in srgb, var(--encl-indigo) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--encl-indigo) 26%, transparent);
}
[data-theme="dark"] .encl-contagem__data { color: var(--encl-iris); }
.encl-contagem__data svg { width: .9rem; height: .9rem; }

.encl-trilho { display: flex; flex-direction: column; gap: 1rem; }
.encl-etapa {
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.125rem 1.25rem;
    border-radius: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    transition: border-color .25s ease, transform .25s cubic-bezier(.16, 1, .3, 1);
}
.encl-etapa:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c, var(--encl-indigo)) 40%, var(--border)); }
.encl-etapa__ic {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: .75rem;
    display: grid;
    place-items: center;
    color: var(--c, var(--encl-indigo));
    background: color-mix(in srgb, var(--c, var(--encl-indigo)) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--c, var(--encl-indigo)) 28%, transparent);
}
.encl-etapa__ic svg { width: 1.25rem; height: 1.25rem; }
.encl-etapa h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin: 0 0 .2rem; }
.encl-etapa p { font-size: .9375rem; line-height: 1.55; color: var(--muted); margin: 0; }
.encl-etapa__tag {
    margin-left: auto;
    align-self: center;
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .2rem .5rem;
    border-radius: 999px;
    white-space: nowrap;
    color: var(--muted);
    background: color-mix(in srgb, var(--muted) 12%, transparent);
}
.encl-etapa__tag--viva {
    color: #065f46;
    background: color-mix(in srgb, var(--encl-emerald) 18%, transparent);
}
[data-theme="dark"] .encl-etapa__tag--viva { color: var(--encl-mint); }

/* ================================================================= */
/* PASSOS (como funciona)                                            */
/* ================================================================= */
.encl-passos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    position: relative;
}
.encl-passos::before { /* trilho */
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 1.75rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--encl-indigo), var(--encl-sky) 40%, var(--encl-emerald) 72%, var(--encl-gold));
    opacity: .35;
}
.encl-passo { position: relative; text-align: center; }
.encl-passo__n {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(140deg, #818cf8, var(--encl-indigo-d));
    box-shadow: 0 0 0 6px var(--bg), 0 12px 24px -10px rgba(67, 56, 202, .8);
    position: relative;
    z-index: 1;
}
/* o anel mascara o trilho — tem que ser da cor da SECAO, nao sempre --bg */
.encl-sec--surface .encl-passo__n { box-shadow: 0 0 0 6px var(--surface), 0 12px 24px -10px rgba(67, 56, 202, .8); }
.encl-passo:nth-child(2) .encl-passo__n { background: linear-gradient(140deg, #7dd3fc, #0284c7); }
.encl-passo:nth-child(3) .encl-passo__n { background: linear-gradient(140deg, var(--encl-mint), #059669); color: #04241a; }
.encl-passo:nth-child(4) .encl-passo__n { background: linear-gradient(140deg, var(--encl-gold-s), #d97706); color: #3b2003; }
.encl-passo h3 { font-size: 1.0625rem; font-weight: 700; color: var(--text); margin: 0 0 .5rem; }
.encl-passo p { font-size: .9375rem; line-height: 1.6; color: var(--muted); margin: 0; }

/* ================================================================= */
/* AREAS                                                             */
/* ================================================================= */
.encl-nivel {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 0 0 1.25rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text);
}
.encl-nivel__pt {
    width: .625rem;
    height: .625rem;
    border-radius: 999px;
    background: var(--c, var(--encl-indigo));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--encl-indigo)) 18%, transparent);
}
.encl-nivel__nota {
    margin-left: auto;
    font-size: .8125rem;
    font-weight: 500;
    color: var(--muted);
}
.encl-nivel + .encl-areas { margin-bottom: 3rem; }

.encl-areas {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.encl-area {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.375rem 1.25rem;
    border-radius: 1.125rem;
    border: 1px solid var(--border);
    background: var(--bg);
    text-decoration: none;
    overflow: hidden;
    transition: transform .28s cubic-bezier(.16, 1, .3, 1), box-shadow .28s ease, border-color .28s ease;
}
.encl-sec--bg .encl-area { background: var(--surface); }
.encl-area::before {
    content: "";
    position: absolute;
    top: -1px; left: 1.25rem; right: 1.25rem;
    height: 2px;
    border-radius: 2px;
    background: var(--c, var(--encl-indigo));
    opacity: 0;
    transition: opacity .28s ease;
}
.encl-area:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: color-mix(in srgb, var(--c, var(--encl-indigo)) 45%, var(--border));
}
.encl-area:hover::before { opacity: 1; }
.encl-area__ic {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .875rem;
    display: grid;
    place-items: center;
    margin-bottom: .875rem;
    color: var(--c, var(--encl-indigo));
    background: color-mix(in srgb, var(--c, var(--encl-indigo)) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--c, var(--encl-indigo)) 28%, transparent);
}
.encl-area__ic svg { width: 1.375rem; height: 1.375rem; }
.encl-area h4 { font-size: .9375rem; font-weight: 700; color: var(--text); margin: 0 0 .2rem; line-height: 1.3; }
.encl-area p { font-size: .8125rem; color: var(--muted); margin: 0; }
/* Texto na cor do acento: a cor CRUA da area (verde/ambar) nao passa em
   contraste sobre fundo claro. Escurece no tema claro, clareia no escuro. */
.encl-area__ir,
.encl-barra__topo span,
.encl-prog-card b.encl-prog-card--txt {
    color: color-mix(in srgb, var(--c, var(--encl-indigo)) 62%, #0b0f19);
}
[data-theme="dark"] .encl-area__ir,
[data-theme="dark"] .encl-barra__topo span,
[data-theme="dark"] .encl-prog-card b.encl-prog-card--txt {
    color: color-mix(in srgb, var(--c, var(--encl-indigo)) 74%, #ffffff);
}
.encl-area__ir {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-top: .875rem;
    font-size: .8125rem;
    font-weight: 700;
}
.encl-area__ir svg { width: .875rem; height: .875rem; transition: transform .25s ease; }
.encl-area:hover .encl-area__ir svg { transform: translateX(3px); }

/* ================================================================= */
/* SIMULADOS                                                         */
/* ================================================================= */
.encl-provas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}
.encl-card-prova {
    display: flex;
    flex-direction: column;
    padding: 1.375rem;
    border-radius: 1.125rem;
    border: 1px solid var(--border);
    background: var(--bg);
    text-decoration: none;
    transition: transform .28s cubic-bezier(.16, 1, .3, 1), box-shadow .28s ease, border-color .28s ease;
}
.encl-sec--bg .encl-card-prova { background: var(--surface); }
.encl-card-prova:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: color-mix(in srgb, var(--c, var(--encl-indigo)) 45%, var(--border));
}
.encl-tags { display: flex; flex-wrap: wrap; gap: .375rem; margin-bottom: .75rem; }
.encl-tag {
    display: inline-flex;
    align-items: center;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.encl-tag--linha {
    border: 1px solid var(--border-2);
    color: var(--muted);
}
.encl-card-prova h3 { font-size: 1.0625rem; font-weight: 700; color: var(--text); margin: 0 0 .4rem; line-height: 1.3; }
.encl-card-prova > p { font-size: .875rem; line-height: 1.55; color: var(--muted); margin: 0 0 1rem; }
.encl-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .875rem;
    margin-top: auto;
    padding-top: .875rem;
    border-top: 1px solid var(--border);
    font-size: .75rem;
    color: var(--muted);
}
.encl-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.encl-meta svg { width: .9rem; height: .9rem; }
.encl-meta i { width: .5rem; height: .5rem; border-radius: 999px; background: var(--c, var(--encl-indigo)); }

/* ================================================================= */
/* PROGRESSO DO ALUNO                                                */
/* ================================================================= */
.encl-prog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.encl-prog-card {
    padding: 1.25rem;
    border-radius: 1.125rem;
    border: 1px solid var(--border);
    background: var(--bg);
    text-align: center;
}
.encl-sec--bg .encl-prog-card { background: var(--surface); }
.encl-prog-card b {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.15;
    color: var(--text);
}
.encl-prog-card b.encl-prog-card--txt { font-size: 1.125rem; }
.encl-prog-card span { display: block; margin-top: .35rem; font-size: .8125rem; color: var(--muted); }
/* Nivel da area (Fundamental/Medio). "Matematica" e o nome de DUAS areas — uma de
   cada prova —, entao card e barra precisam dizer de qual delas estao falando:
   senao "mais forte" e "onde a nota escapa" exibem a mesma palavra e o aluno le
   como bug de dados. Ver EnccejaArea::rotuloDoNivel(). */
.encl-prog-card span.encl-prog-card__nivel { margin-top: .15rem; font-size: .75rem; opacity: .85; }

.encl-barras {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
    gap: 1.25rem;
    max-width: 44rem;
    margin: 0 auto;
}
.encl-barra__topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.encl-barra__topo b { font-size: .875rem; font-weight: 600; color: var(--text); }
.encl-barra__topo span { font-size: .875rem; font-weight: 700; }
.encl-barra__nivel {
    display: block;
    font-size: .75rem;
    font-weight: 400;
    font-style: normal;
    color: var(--muted);
}
.encl-barra__trilho {
    height: .5rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--border) 80%, transparent);
    overflow: hidden;
}
.encl-barra__trilho i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--c, var(--encl-indigo));
}

/* ================================================================= */
/* LEMBRETES                                                         */
/* ================================================================= */
.encl-lembretes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.encl-lembrete {
    display: flex;
    align-items: center;
    gap: .875rem;
    padding: 1rem 1.125rem;
    border-radius: 1.125rem;
    border: 1px solid var(--border);
    background: var(--bg);
    transition: border-color .25s ease, background .25s ease;
}
.encl-sec--bg .encl-lembrete { background: var(--surface); }
.encl-lembrete--on { border-color: color-mix(in srgb, var(--c, var(--encl-indigo)) 45%, var(--border)); }
.encl-lembrete__ic {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: .75rem;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: color-mix(in srgb, var(--muted) 12%, transparent);
    border: 1px solid transparent;
    transition: color .25s ease, background .25s ease, border-color .25s ease;
}
.encl-lembrete__ic svg { width: 1.25rem; height: 1.25rem; }
.encl-lembrete--on .encl-lembrete__ic {
    color: var(--c, var(--encl-indigo));
    background: color-mix(in srgb, var(--c, var(--encl-indigo)) 14%, transparent);
    border-color: color-mix(in srgb, var(--c, var(--encl-indigo)) 28%, transparent);
}
.encl-lembrete__txt { flex: 1; min-width: 0; }
.encl-lembrete__txt b { display: block; font-size: .9375rem; font-weight: 700; color: var(--text); }
.encl-lembrete__txt span { display: block; font-size: .8125rem; color: var(--muted); margin-top: .1rem; }

.encl-toggle {
    position: relative;
    width: 2.75rem;
    height: 1.5rem;
    flex-shrink: 0;
    padding: 0;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    background: color-mix(in srgb, var(--muted) 45%, transparent);
    transition: background .25s ease;
}
.encl-toggle__dot {
    position: absolute;
    left: .1875rem;
    top: .1875rem;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}
.encl-toggle--on { background: var(--c, var(--encl-indigo)); }
.encl-toggle--on .encl-toggle__dot { transform: translateX(1.25rem); }
.encl-toggle:focus-visible { outline: 2px solid var(--encl-indigo); outline-offset: 2px; }

/* ================================================================= */
/* CTA FINAL                                                         */
/* ================================================================= */
.encl-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    text-align: center;
    padding: 5rem 0;
    color: #fff;
    background:
        radial-gradient(38rem 22rem at 50% 0%, rgba(245, 158, 11, .26), transparent 65%),
        radial-gradient(42rem 26rem at 12% 100%, rgba(99, 102, 241, .32), transparent 66%),
        linear-gradient(140deg, var(--encl-ink-2), var(--encl-ink));
}
.encl-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--encl-grain);
    opacity: .24;
    mix-blend-mode: overlay;
    z-index: -1;
}
.encl-cta h2 {
    font-size: clamp(1.875rem, 1.2rem + 2.8vw, 3rem);
    line-height: 1.1;
    letter-spacing: -.03em;
    font-weight: 700;
    margin: 0 0 1rem;
    text-wrap: balance;
}
.encl-cta p {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, .74);
    max-width: 36rem;
    margin: 0 auto 2rem;
    text-wrap: pretty;
}

/* ================================================================= */
/* FAQ                                                               */
/* ================================================================= */
.encl-faq { max-width: 46rem; margin: 0 auto; }
.encl-faq details {
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--bg);
    margin-bottom: .75rem;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.encl-sec--bg .encl-faq details { background: var(--surface); }
.encl-faq details[open] {
    border-color: color-mix(in srgb, var(--encl-indigo) 38%, var(--border));
    box-shadow: var(--shadow);
}
.encl-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    list-style: none;
}
.encl-faq summary::-webkit-details-marker { display: none; }
.encl-faq summary:hover { color: var(--encl-indigo-d); }
[data-theme="dark"] .encl-faq summary:hover { color: var(--encl-iris); }
.encl-faq__mais {
    position: relative;
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--encl-indigo) 14%, transparent);
    transition: transform .25s ease;
}
.encl-faq__mais::before,
.encl-faq__mais::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: .625rem;
    height: 2px;
    border-radius: 2px;
    background: var(--encl-indigo-d);
    transform: translate(-50%, -50%);
    transition: opacity .2s ease;
}
[data-theme="dark"] .encl-faq__mais::before,
[data-theme="dark"] .encl-faq__mais::after { background: var(--encl-iris); }
.encl-faq__mais::after { transform: translate(-50%, -50%) rotate(90deg); }
.encl-faq details[open] .encl-faq__mais { transform: rotate(90deg); }
.encl-faq details[open] .encl-faq__mais::after { opacity: 0; }
.encl-faq__resp {
    padding: 0 1.25rem 1.25rem;
    font-size: .9375rem;
    line-height: 1.7;
    color: var(--muted);
    animation: enclAbre .28s ease-out;
}
@keyframes enclAbre {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

/* ================================================================= */
/* AVISO INSTITUCIONAL                                               */
/* ================================================================= */
.encl-aviso {
    background: color-mix(in srgb, var(--encl-gold) 10%, var(--surface));
    border-top: 1px solid color-mix(in srgb, var(--encl-gold) 25%, transparent);
}
.encl-aviso__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}
.encl-aviso svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; margin-top: .1rem; color: #b45309; }
[data-theme="dark"] .encl-aviso svg { color: var(--encl-gold-s); }
.encl-aviso p { margin: 0; font-size: .875rem; line-height: 1.6; color: var(--text-2); }
.encl-aviso strong { color: var(--text); }

/* ================================================================= */
/* CTA GRUDADO (mobile)                                              */
/* ================================================================= */
.encl-sticky {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(12px);
    transform: translateY(110%);
    transition: transform .3s cubic-bezier(.16, 1, .3, 1);
    display: none;
}
.encl-sticky.is-in { transform: none; }
.encl-sticky .encl-btn { width: 100%; padding: .875rem 1.25rem; font-size: 1rem; }

/* ================================================================= */
/* RESPONSIVO                                                        */
/* ================================================================= */
@media (max-width: 1100px) {
    .encl-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
    .encl-palco { max-width: 34rem; }
    .encl-crono { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .encl-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .encl-provas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .encl-lembretes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .encl-passos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; }
    .encl-passos::before { display: none; }
    .encl-faixa__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .encl-prog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .encl-sec { padding: 3.5rem 0; }
    .encl-hero { padding: 3rem 0 3.5rem; }
    .encl-provas, .encl-lembretes { grid-template-columns: 1fr; }
    .encl-btn { font-size: .9375rem; padding: .9375rem 1.25rem; }
    .encl-hero__acoes .encl-btn { width: 100%; }
    .encl-sticky { display: block; }
    .encl-nivel__nota { display: none; }
    /* o palco mantem a composicao do desktop e so encolhe junto (sem quebrar) */
    .encl-palco { width: 30rem; transform: scale(.8); transform-origin: top left; margin-bottom: -5.4rem; }
}
@media (max-width: 430px) {
    .encl-palco { transform: scale(.66); margin-bottom: -9.2rem; }
    .encl-areas { grid-template-columns: 1fr; }
}

/* ================================================================= */
/* ASSISTA — o video de apresentacao                                 */
/* ================================================================= */
/* O video e vertical (9:16, gravado no celular): o palco e vertical de
   verdade em vez de encaixar 16:9 a forca e sobrar tarja preta.
   O mesmo video flutua no canto pela bolinha (video-bolinha.php) — a secao
   leva `data-esvb-recolher` e ela se esconde enquanto isto esta na tela. */
.encl-assista {
    display: grid;
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
}
.encl-assista__palco {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    padding: 0;
    border: 0;
    border-radius: 1.5rem;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(150deg, var(--encl-ink-2), var(--encl-ink));
    box-shadow:
        0 30px 60px -24px rgba(8, 11, 38, .6),
        0 0 0 1px color-mix(in srgb, var(--encl-indigo) 22%, transparent);
    transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s ease;
}
.encl-assista__palco:hover {
    transform: translateY(-4px);
    box-shadow:
        0 40px 70px -24px rgba(8, 11, 38, .7),
        0 0 0 1px color-mix(in srgb, var(--encl-indigo) 45%, transparent);
}
.encl-assista__palco:focus-visible { outline: 3px solid var(--encl-indigo); outline-offset: 4px; }
.encl-assista__capa {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* escurece o pe pra legenda queimada do video nao competir com o play */
.encl-assista__brilho {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 40% at 50% 46%, rgba(0, 0, 0, .28), transparent 70%),
        linear-gradient(to top, rgba(8, 11, 38, .55), transparent 42%);
}
.encl-assista__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--encl-indigo);
    box-shadow: 0 10px 30px -8px rgba(99, 102, 241, .7);
    transition: background .2s ease, transform .2s ease;
}
.encl-assista__play svg { width: 2rem; height: 2rem; margin-left: .1875rem; }
.encl-assista__palco:hover .encl-assista__play { background: var(--encl-indigo-d); transform: translate(-50%, -50%) scale(1.06); }
.encl-assista__tempo {
    position: absolute;
    right: .875rem;
    bottom: .875rem;
    padding: .25rem .5rem;
    border-radius: .375rem;
    font-size: .8125rem;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, .62);
    backdrop-filter: blur(4px);
    font-variant-numeric: tabular-nums;
}
/* o destaque do titulo: cor solida (nao gradiente) porque esta secao vive nos
   DOIS temas — o gradiente de ouro do hero some no fundo claro */
.encl-assista__destaque { color: var(--encl-indigo-d); }
[data-theme="dark"] .encl-assista__destaque { color: var(--encl-iris); }

.encl-assista__lado .encl-h2 { margin-bottom: .75rem; }
.encl-assista__lado .encl-lead { margin-bottom: 1.75rem; }
.encl-lead--esq { margin-left: 0; margin-right: 0; }
.encl-assista__pontos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.encl-assista__pontos li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    color: var(--text-2, var(--muted));
    font-size: 1rem;
    line-height: 1.55;
    text-wrap: pretty;
}
.encl-assista__pontos li > span {
    flex-shrink: 0;
    width: .5rem;
    height: .5rem;
    margin-top: .5rem;
    border-radius: 999px;
    background: var(--encl-indigo);
}
[data-theme="dark"] .encl-assista__pontos li > span { background: var(--encl-iris); }
/* a regra de honestidade da pagina, do roteiro do video */
.encl-assista__nota {
    margin: 1.75rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: .9375rem;
    color: var(--muted);
}

@media (max-width: 900px) {
    .encl-assista {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
        justify-items: center;
    }
    .encl-assista__palco { max-width: 16rem; }
    /* eyebrow e titulo centram; o corpo NAO — paragrafo longo centralizado
       cansa de ler */
    .encl-assista__lado { text-align: center; }
    .encl-assista__lado .encl-lead--esq { margin-inline: auto; text-align: left; }
    .encl-assista__pontos li { text-align: left; }
    .encl-assista__nota { text-align: center; }
    .encl-assista__play { width: 3.75rem; height: 3.75rem; }
    .encl-assista__play svg { width: 1.625rem; height: 1.625rem; }
}

/* ================================================================= */
/* LIGHTBOX DO VIDEO                                                 */
/* ================================================================= */
.encl-lb {
    padding: 0;
    border: 0;
    background: transparent;
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.encl-lb::backdrop {
    background: rgba(8, 11, 38, .88);
    backdrop-filter: blur(6px);
}
.encl-lb__caixa {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 1rem;
}
.encl-lb__palco {
    position: relative;
    aspect-ratio: 9 / 16;
    height: min(84vh, 46rem);
    max-width: calc(100vw - 2rem);
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(150deg, var(--encl-ink-2), var(--encl-ink));
    box-shadow: 0 32px 70px -20px rgba(0, 0, 0, .8);
}
.encl-lb__palco iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.encl-lb__fechar {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.encl-lb__fechar svg { width: 1.375rem; height: 1.375rem; }
.encl-lb__fechar:hover { background: rgba(0, 0, 0, .75); transform: rotate(90deg); }
.encl-lb__fechar:focus-visible { outline: 3px solid var(--encl-iris); outline-offset: 2px; }

/* trava o scroll do fundo enquanto o video esta aberto */
body.encl-travado { overflow: hidden; }

/* no mobile o vertical merece a tela toda */
@media (max-width: 640px) {
    .encl-lb__caixa { padding: 0; }
    .encl-lb__palco {
        height: 100%;
        width: 100%;
        max-width: none;
        border-radius: 0;
    }
}

/* ================================================================= */
/* MOVIMENTO REDUZIDO                                                */
/* ================================================================= */
@media (prefers-reduced-motion: reduce) {
    .encl-cert,
    .encl-prova,
    .encl-prova__barra i,
    .encl-resultado::after { animation: none; }
    .encl-prova__barra i { width: 72%; }
    .encl-alt { animation: none; opacity: 1; }
    .encl-js .encl-rv { opacity: 1; transform: none; transition: none; }
    .encl-faq__resp { animation: none; }
    .encl-btn:hover,
    .encl-area:hover,
    .encl-card-prova:hover,
    .encl-etapa:hover { transform: none; }
    .encl-sticky { transition: none; }
    .encl-assista__palco,
    .encl-assista__palco:hover { transform: none; transition: none; }
    .encl-assista__palco:hover .encl-assista__play { transform: translate(-50%, -50%); }
}
