/* Preto & Branco PRO — estilos abaixo da primeira dobra.
   O CSS da primeira dobra (tokens, cabeçalho, abertura, comparador, botão) está embutido no index.html. */

/* ---------- Seções ---------- */
.sec { padding: 72px var(--gutter); }
.sec--escuro { background: var(--escuro); color: var(--txt-escuro); }
.sec--papel { background: var(--papel); color: var(--txt-papel); }
.wrap { max-width: 1120px; margin: 0 auto; }
.coluna { max-width: 640px; }

.marca { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.marca::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }
.sec--escuro .marca { color: var(--acento-escuro); }
.sec--papel .marca { color: var(--acento-papel); }

.h2 { font-size: clamp(30px, 8vw, 52px); margin: 0 0 24px; }
.sec p { margin: 0 0 18px; }
.sec--escuro .sec-txt { color: var(--sec-escuro); }
.sec--papel .sec-txt { color: var(--sec-papel); }
.mono { font-family: var(--mono); font-size: 14px; line-height: 1.55; }

/* ---------- 2. Armadilha ---------- */
.amostras { margin: 36px 0; }
.fileira { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.fileira i { display: block; aspect-ratio: 1; position: relative; }
.fileira i::after { content: ""; position: absolute; inset: 0; background: #8B8B8B; opacity: 0; transition: opacity 1.4s ease; }
.fileira--cinza i::after { opacity: 1; }
.js .fileira--cinza i::after { opacity: 0; }
.js .amostras.visto .fileira--cinza i::after { opacity: 1; }
.js .amostras.visto .fileira--cinza i:nth-child(2)::after { transition-delay: .12s; }
.js .amostras.visto .fileira--cinza i:nth-child(3)::after { transition-delay: .24s; }
.js .amostras.visto .fileira--cinza i:nth-child(4)::after { transition-delay: .36s; }
.js .amostras.visto .fileira--cinza i:nth-child(5)::after { transition-delay: .48s; }
.js .amostras.visto .fileira--cinza i:nth-child(6)::after { transition-delay: .6s; }
@media (prefers-reduced-motion: reduce) {
  .fileira i::after { transition: none; }
  .js .fileira--cinza i::after { opacity: 1; }
}
.amostras .rotulo { display: block; margin: 14px 0; color: var(--sec-papel); font-size: 12px; }
.amostras .rotulo:last-child { margin-bottom: 0; }

/* ---------- 3. Tese ---------- */
.tese-grid { display: grid; gap: 32px; }
.tese-foto img { width: 100%; }
.destaque {
  margin: 32px 0 0; padding: 22px 0 0;
  border-top: 2px solid var(--acento-escuro);
  font-family: var(--sans); font-weight: 800; font-stretch: 112%;
  font-size: clamp(24px, 6vw, 34px); line-height: 1.15; color: var(--txt-escuro);
}

/* ---------- Fachada de vídeo ---------- */
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.yt img, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt-play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: grid; place-items: center;
  background: linear-gradient(0deg, rgba(11,11,13,.35), rgba(11,11,13,0) 60%);
  border: 0; padding: 0; cursor: pointer; color: var(--escuro);
}
.yt-play span {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--acento-escuro);
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.yt-play svg { width: 28px; height: 28px; margin-left: 4px; }
.yt-play:focus-visible span { outline: 3px solid var(--papel); outline-offset: 4px; }
.yt-dur { position: absolute; right: 10px; bottom: 10px; padding: 3px 7px; background: rgba(11,11,13,.8); color: var(--papel); font-family: var(--mono); font-size: 12px; }
.video-leg { margin-top: 12px; }

/* ---------- Cartões de alunos ---------- */
.aluno { display: grid; gap: 20px; }
.aluno-id { display: flex; align-items: center; gap: 14px; }
.aluno-id img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.aluno-nome { font-weight: 700; font-size: 19px; line-height: 1.25; margin: 0; }
.aluno-meta { font-family: var(--mono); font-size: 13px; margin: 2px 0 0; }
.sec--escuro .aluno-meta { color: var(--sec-escuro); }
.sec--papel .aluno-meta { color: var(--sec-papel); }
.citacao {
  margin: 0; font-family: var(--sans); font-weight: 600; font-stretch: 105%;
  font-size: 22px; line-height: 1.35;
}
.citacao::before { content: "“"; } .citacao::after { content: "”"; }
.aluno-ctx { margin: 0; }
.sec--escuro .aluno-ctx { color: var(--sec-escuro); }
.sec--papel .aluno-ctx { color: var(--sec-papel); }
.depois-cartao { margin-top: 36px; }
.alunos-grid { display: grid; gap: 56px; }

/* ---------- 6. Módulos ---------- */
.modulos { border-top: 1px solid #CFC7B6; margin-top: 8px; }
.modulos details { border-bottom: 1px solid #CFC7B6; }
.modulos summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  min-height: 64px; padding: 16px 0;
  font-weight: 800; font-stretch: 112%; font-size: 21px; line-height: 1.2;
}
.modulos summary::-webkit-details-marker { display: none; }
.modulos summary .num { font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--acento-papel); letter-spacing: .08em; }
.modulos summary .mais { width: 28px; height: 28px; position: relative; }
.modulos summary .mais::before, .modulos summary .mais::after { content: ""; position: absolute; left: 6px; right: 6px; top: 13px; height: 2px; background: currentColor; transition: transform .2s; }
.modulos summary .mais::after { transform: rotate(90deg); }
.modulos details[open] summary .mais::after { transform: rotate(0); }
.modulos summary:focus-visible { outline: 3px solid var(--acento-papel); outline-offset: 2px; }
.mod-corpo { padding: 0 0 24px; }
.mod-corpo p { margin: 0 0 12px; }
.mod-corpo .no-modulo { font-family: var(--mono); font-size: 14px; line-height: 1.6; color: var(--sec-papel); }
.mod-corpo .no-modulo em { font-style: normal; font-weight: 500; color: var(--txt-papel); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; display: block; margin-bottom: 2px; }
.depois-modulos { margin-top: 28px; }

/* ---------- 9. Quem ensina ---------- */
.quem-grid { display: grid; gap: 32px; }
.quem-foto img { width: 100%; max-width: 520px; }
.quem-video { margin-top: 40px; }
.quem-aluna { margin-top: 48px; padding-top: 32px; border-top: 1px solid #26262B; }

/* ---------- 10. Oferta ---------- */
.oferta-grid { display: grid; gap: 40px; align-items: center; }
.box3d { perspective: 1200px; display: grid; place-items: center; padding: 16px 0 8px; }
.box3d-cubo { position: relative; width: min(62vw, 300px); aspect-ratio: 3 / 4.2; transform-style: preserve-3d; transform: rotateY(-26deg) rotateX(4deg); }
.box3d-frente, .box3d-lado { position: absolute; top: 0; bottom: 0; background: #0B0B0D; overflow: hidden; }
.box3d-frente { left: 0; right: 0; box-shadow: 30px 40px 60px rgba(20,20,23,.35); }
.box3d-frente img.foto { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.box3d-frente img.logo { position: absolute; left: 8%; right: 8%; bottom: 7%; width: 84%; }
.box3d-lado {
  width: 22%; left: 0; transform-origin: left center; transform: rotateY(90deg) translateZ(0);
  background: linear-gradient(90deg, #2a2a2e, #0B0B0D);
  display: grid; place-items: center;
}
.box3d-lado img { width: 380%; max-width: none; transform: rotate(-90deg); }
.lista { list-style: none; margin: 0 0 28px; padding: 0; }
.lista li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid #CFC7B6; }
.lista li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 14px; height: 7px; border-left: 2px solid var(--acento-papel); border-bottom: 2px solid var(--acento-papel); transform: rotate(-45deg); }
.preco { margin: 0 0 22px; font-size: 20px; line-height: 1.4; }
.preco strong { display: block; font-weight: 800; font-stretch: 112%; font-size: clamp(34px, 9vw, 48px); line-height: 1.05; }
.apoio-papel { font-size: 15px; color: var(--sec-papel); text-align: center; margin: 12px 0 0; }

/* ---------- 11. Garantia ---------- */
.selo7 { font-family: var(--sans); font-weight: 800; font-stretch: 125%; font-size: 96px; line-height: .9; color: var(--acento-escuro); margin: 0 0 8px; }

/* ---------- 12. FAQ ---------- */
.faq details { border-bottom: 1px solid #CFC7B6; }
.faq details:first-child { border-top: 1px solid #CFC7B6; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  min-height: 64px; padding: 16px 0; font-weight: 700; font-size: 19px; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 24px; color: var(--acento-papel); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 3px solid var(--acento-papel); outline-offset: 2px; }
.faq .resp { padding: 0 0 22px; color: var(--sec-papel); }
.faq .resp p { margin: 0; }

/* ---------- 13. Fechamento ---------- */
.fecho { position: relative; overflow: hidden; padding-top: 0; padding-bottom: 72px; }
.fecho-foto { margin: 0 calc(var(--gutter) * -1); }
.fecho-foto img { width: 100%; }
.fecho .wrap { position: relative; margin-top: -40px; }
.zap { display: inline-flex; align-items: center; min-height: 48px; margin-top: 22px; color: var(--txt-escuro); font-weight: 600; text-underline-offset: 4px; }
.zap:focus-visible { outline: 3px solid var(--acento-escuro); outline-offset: 3px; }

.rodape { background: var(--escuro); color: var(--sec-escuro); padding: 28px var(--gutter) 40px; border-top: 1px solid #26262B; font-size: 14px; text-align: center; }

/* ---------- Computador ---------- */
@media (min-width: 900px) {
  .sec { padding: 112px 48px; }
  .tese-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .split { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
  .alunos-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .quem-grid { grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
  .oferta-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .box3d-cubo { width: 320px; }
  .fecho { display: grid; padding: 0; min-height: 720px; }
  .fecho-foto { margin: 0; position: absolute; top: 0; bottom: 0; left: 0; width: 50%; }
  .fecho-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,13,0) 55%, var(--escuro) 100%); }
  .fecho-foto img { height: 100%; object-fit: cover; object-position: 50% 50%; }
  .fecho .wrap { margin: 0 auto; width: 100%; display: flex; justify-content: flex-end; align-items: center; padding: 96px 48px; }
  .fecho .coluna { max-width: 520px; }
}

/* =========================================================
   Movimento e interação (padrões inspirados em componentes do 21st.dev,
   refeitos em CSS/JS puro). Só transform e opacity: não mexe no layout (CLS 0).
   ========================================================= */

/* Revelação ao rolar, em cascata */
.js .rv { opacity: 0; transform: translate3d(0, 22px, 0); }
.js .rv.in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .rv-foto { opacity: 0; transform: scale(1.04); }
.js .rv-foto.in { opacity: 1; transform: none; transition: opacity 1s ease, transform 1.4s cubic-bezier(.2,.7,.2,1); }

/* Traço do rótulo se desenha */
.js .sec .marca::before { transform: scaleX(0); transform-origin: left; }
.js .sec .marca.in::before { transform: scaleX(1); transition: transform .6s .15s cubic-bezier(.2,.7,.2,1); }

/* Transição entre fundo escuro e papel: escala de 11 tons (zona 0 a X) que se revela da esquerda */
.sec--papel { position: relative; }
.sec--papel::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg,
    #000 0 9.09%, #1a1a1a 0 18.18%, #333 0 27.27%, #4d4d4d 0 36.36%, #666 0 45.45%, #808080 0 54.54%,
    #999 0 63.63%, #b3b3b3 0 72.72%, #ccc 0 81.81%, #e6e6e6 0 90.9%, #fff 0);
}
.js .sec--papel::before { clip-path: inset(0 100% 0 0); }
.js .sec--papel.tom::before { clip-path: inset(0 0 0 0); transition: clip-path 1.1s cubic-bezier(.65,0,.35,1); }

/* Acordeão com altura animada */
.modulos details > div, .faq details > div { overflow: hidden; }
.modulos summary, .faq summary { transition: color .2s; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .modulos summary:hover, .faq summary:hover { color: var(--acento-papel); } }
.modulos details[open] summary .num { color: var(--txt-papel); }

/* Fachada de vídeo: resposta ao toque */
.yt img { transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s; }
.yt-play span { transition: transform .25s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) { .yt:hover img { transform: scale(1.03); } .yt:hover .yt-play span { transform: scale(1.08); } }
.yt-play:active span { transform: scale(.94); }
.yt iframe { animation: aparece .4s ease; }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }

/* Barra de compra fixa (celular): entra depois da abertura, sai na oferta e no fechamento */
.barra-compra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(11,11,13,.94); color: var(--txt-escuro);
  border-top: 1px solid #2a2a2e;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translateY(110%); transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.barra-compra.on { transform: none; }
.barra-compra p { margin: 0; line-height: 1.2; }
.barra-compra strong { display: block; font-weight: 800; font-stretch: 112%; font-size: 19px; }
.barra-compra span { font-size: 12px; color: var(--sec-escuro); }
.btn--barra { min-height: 48px; padding: 10px 18px; font-size: 16px; flex: none; }
.btn--barra span { color: var(--escuro); font-size: 16px; }
@media (min-width: 900px) { .barra-compra { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .rv-foto { opacity: 1; transform: none; }
  .js .sec .marca::before { transform: none; }
  .js .sec--papel::before { clip-path: none; }
  .barra-compra, .yt img { transition: none; }
  .yt iframe { animation: none; }
}
.zap--papel { color: var(--txt-papel); }
.zap--papel:focus-visible { outline-color: var(--acento-papel); }
.cmp-dica { font-size: 13px; }

/* Oferta: caixa do produto (PNG transparente com sombra) */
.produto { display: grid; place-items: center; }
.produto-box { width: min(86vw, 400px); }
@media (min-width: 900px) { .produto-box { width: 460px; } }
.yt--canto .yt-play { place-items: end start; padding: 16px; }

/* =========================================================
   8. Portfólio
   Zoom Parallax (ref.: "Zoom Parallax", Efferd, 21st.dev) +
   mosaico + visualizador com elemento compartilhado
   (ref.: "Shared Element Gallery", Hossain Jahed, 21st.dev).
   Refeitos em CSS/JS puro, sem bibliotecas.
   ========================================================= */
.portfolio-topo { padding-bottom: 48px; }

.zp { position: relative; height: 230vh; background: var(--escuro); }
.zp-palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.zp-img { position: absolute; inset: 0; display: grid; place-items: center; will-change: transform; transform: scale(var(--s, 1)); }
/* Proporção original de cada foto (sem recorte): só a altura é definida */
.zp-img img { position: relative; height: 18vh; width: auto; max-width: none; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.zp-0 img { height: 28vh; box-shadow: none; }
.zp-1 img { top: -32vh; left: -22vw; height: 17vh; }
.zp-2 img { top: -31vh; left: 23vw; height: 19vh; }
.zp-3 img { top: -2vh;  left: -39vw; height: 14vh; }
.zp-4 img { top: 2vh;   left: 39vw; height: 14vh; }
.zp-5 img { top: 31vh;  left: -22vw; height: 17vh; }
.zp-6 img { top: 30vh;  left: 25vw; height: 9vh; }
.zp-palco::after { /* véu que escurece as bordas no fim do zoom */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(11,11,13,.7));
  opacity: var(--veu, 0);
}
@media (min-width: 900px) {
  .zp-0 img { height: 36vh; }
  .zp-1 img { top: -28vh; left: -24vw; height: 26vh; }
  .zp-2 img { top: -27vh; left: 22vw; height: 30vh; }
  .zp-3 img { top: 2vh; left: -36vw; height: 26vh; }
  .zp-4 img { top: 3vh; left: 35vw; height: 28vh; }
  .zp-5 img { top: 30vh; left: -18vw; height: 22vh; }
  .zp-6 img { top: 30vh; left: 22vw; height: 18vh; }
}
}
@media (prefers-reduced-motion: reduce) { .zp { display: none; } }

.galeria-sec { padding-top: 56px; }
.galeria { columns: 2; column-gap: 10px; }
.gal-item { margin: 0 0 18px; break-inside: avoid; }
.gal-item button {
  display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: zoom-in;
  overflow: hidden; -webkit-tap-highlight-color: transparent;
}
.gal-item img { width: 100%; transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .25s; }
.gal-item button:active img { transform: scale(.97); opacity: .85; }
@media (hover: hover) { .gal-item button:hover img { transform: scale(1.04); } }
.gal-item button:focus-visible { outline: 3px solid var(--acento-escuro); outline-offset: 3px; }
.gal-item figcaption { margin-top: 8px; font-size: 11px; color: var(--sec-escuro); }
.galeria-dica { text-align: center; color: var(--sec-escuro); font-size: 12px; margin: 18px 0 0; }
@media (min-width: 900px) { .galeria { columns: 3; column-gap: 16px; } .gal-item { margin-bottom: 26px; } }

/* Visualizador em tela cheia */
.caixa-luz {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--papel); overflow: hidden;
}
.caixa-luz::backdrop { background: transparent; }
.cl-fundo { position: absolute; inset: 0; background: #050506; }
.cl-palco { position: absolute; inset: 0; display: grid; place-items: center; touch-action: none; }
.cl-img { max-width: 100vw; max-height: 100vh; max-height: 100dvh; width: auto; height: auto; transform-origin: center; will-change: transform; user-select: none; -webkit-user-drag: none; }
.cl-topo { position: absolute; left: 16px; right: 72px; top: 18px; margin: 0; display: flex; gap: 14px; align-items: baseline; }
.cl-cont { color: var(--papel); font-size: 13px; }
.cl-tema { color: var(--acento-escuro); font-size: 12px; }
.cl-nav, .caixa-luz .fechar {
  position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(239,233,220,.12); color: var(--papel); cursor: pointer; display: grid; place-items: center;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s, opacity .3s;
}
.cl-nav { top: 50%; margin-top: -24px; }
.cl-nav svg { width: 24px; height: 24px; }
.cl-ant { left: 10px; } .cl-prox { right: 10px; }
.caixa-luz .fechar { top: 10px; right: 10px; font-size: 30px; line-height: 1; }
@media (hover: hover) { .cl-nav:hover, .caixa-luz .fechar:hover { background: rgba(239,233,220,.24); } }
.cl-nav:focus-visible, .caixa-luz .fechar:focus-visible { outline: 3px solid var(--acento-escuro); outline-offset: 2px; }
.cl-dica { position: absolute; left: 16px; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); margin: 0; text-align: center; font-size: 11px; color: var(--sec-escuro); transition: opacity .6s; }
.caixa-luz.ui-off .cl-nav, .caixa-luz.ui-off .cl-topo, .caixa-luz.ui-off .cl-dica, .caixa-luz.ui-off .fechar { opacity: 0; pointer-events: none; }
.caixa-luz.zoom .cl-nav, .caixa-luz.zoom .cl-dica { opacity: 0; pointer-events: none; }
@media (pointer: coarse) { .cl-nav { display: none; } }

/* =========================================================
   Transições de texto e imagem
   ========================================================= */
/* Títulos: palavras sobem de dentro de uma máscara (ref.: "Text Effect"/"Scroll trigger animations", 21st.dev) */
.js .h2 .pal { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js .h2 .pal > span { display: inline-block; transform: translate3d(0, 105%, 0); }
.js .h2.in .pal > span { transform: none; transition: transform .8s cubic-bezier(.2,.75,.15,1); transition-delay: calc(var(--i) * 55ms); }
.js .h2.rv { opacity: 1; transform: none; }

/* Destaque da tese: as palavras acendem conforme a rolagem (ref.: "Text Reveal", 21st.dev) */
.js .destaque .w { opacity: var(--a, .18); transition: opacity .15s linear; }

/* Fotos: cortina que abre de baixo para cima + leve parallax.
   O recorte fica na <img>, não na <figure> observada: o Chrome conta o clip-path
   do próprio alvo no IntersectionObserver, e um alvo 100% recortado nunca "entra" na tela. */
.js .rv-foto { opacity: 1; transform: none; }
.js .rv-foto img { clip-path: inset(100% 0 0 0); transform: scale(1.12); }
.js .rv-foto.in img { clip-path: inset(0 0 0 0); transform: translate3d(0, var(--py, 0px), 0) scale(1.06); transition: clip-path 1.2s cubic-bezier(.7,0,.2,1), transform 1.6s cubic-bezier(.2,.7,.2,1); }
.js .rv-foto.in.solto img { transition: none; }
.tese-foto, .quem-foto, .fecho-foto { overflow: hidden; }


@media (prefers-reduced-motion: reduce) {
  .js .h2 .pal > span { transform: none; }
  .js .destaque .w { opacity: 1; }
  .js .rv-foto img { clip-path: none; transform: none; }
}
