/* Motion da seção "Para o aluno": celulares parados; a vida vem da luz */
.a-anima .wrap > .v-kicker, .a-anima .wrap > h2, .a-anima .wrap > .section-lead { opacity: 0; translate: 0 24px; transition: opacity .7s ease, translate .7s cubic-bezier(.2,.8,.2,1); }
.a-anima .wrap > h2 { transition-delay: .08s; } .a-anima .wrap > .section-lead { transition-delay: .16s; }
.a-anima .v-phones .v-phone { opacity: 0; transition: opacity 1s ease; }
.a-anima .v-phones .v-phone:nth-child(2) { transition-delay: .12s; }
.a-anima .v-phones .v-phone:nth-child(3) { transition-delay: .24s; }
.a-anima .v-phones .v-phone:nth-child(4) { transition-delay: .36s; }
.a-anima .v-phones .v-phone:nth-child(5) { transition-delay: .48s; }
.a-visivel .wrap > :is(.v-kicker, h2, .section-lead) { opacity: 1; translate: 0 0; }
.a-visivel .v-phones .v-phone { opacity: 1; }
/* Brilho colorido respirando atrás de cada celular, fora de fase */
.v-phones .v-iph { position: relative; isolation: isolate; }
.v-phones .v-iph::before { content: ""; position: absolute; inset: 8% -6%; z-index: -1; border-radius: 40%; background: radial-gradient(closest-side, var(--a-cor, #ff4fa3), transparent); filter: blur(28px); opacity: .1; animation: a-respira 4.5s ease-in-out infinite; }
.v-phones .v-phone:nth-child(1) { --a-cor: #ff4fa3; } .v-phones .v-phone:nth-child(1) .v-iph::before { animation-delay: 0s; }
.v-phones .v-phone:nth-child(2) { --a-cor: #8b5cf6; } .v-phones .v-phone:nth-child(2) .v-iph::before { animation-delay: -.9s; }
.v-phones .v-phone:nth-child(3) { --a-cor: #22c55e; } .v-phones .v-phone:nth-child(3) .v-iph::before { animation-delay: -1.8s; }
.v-phones .v-phone:nth-child(4) { --a-cor: #3b82f6; } .v-phones .v-phone:nth-child(4) .v-iph::before { animation-delay: -2.7s; }
.v-phones .v-phone:nth-child(5) { --a-cor: #f59e0b; } .v-phones .v-phone:nth-child(5) .v-iph::before { animation-delay: -3.6s; }
@keyframes a-respira { 50% { opacity: .2; } }
/* O botão ganha destaque e a tela recua sem deslocar o aparelho. */
.v-aluno .v-phones .v-phone:nth-child(n) .v-iph-moldura {
  box-shadow: 0 18px 40px -24px var(--a-cor), 0 14px 30px -16px #000;
}
:is(.v-phones, .v-duo) .v-phone .v-ver {
  width: max-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 10px clamp(12px, 1.5vw, 22px);
  background: #6a1f38;
  border: 1px solid #e3b9c655;
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 8px 20px -8px #000d;
  transform: scale(.94);
  transition: opacity .2s ease, translate .28s cubic-bezier(.2,.8,.2,1), transform .28s cubic-bezier(.2,.8,.2,1), background-color .2s ease;
}
:is(.v-phones, .v-duo) .v-phone:is(:hover, :focus-within) .v-ver { transform: scale(1); }
:is(.v-phones, .v-duo) .v-phone .v-ver:is(:hover, :focus-visible) { background: #8b2d4c; }
@media (hover: hover) {
  :is(.v-phones, .v-duo) .v-iph-tela { transition: filter .24s ease; }
  :is(.v-phones, .v-duo) .v-phone:is(:hover, :focus-within) .v-iph-tela { filter: brightness(.28) saturate(.5); }
}
@media (hover: none) {
  :is(.v-phones, .v-duo) .v-phone .v-ver { translate: none; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.v-phones, .v-duo) .v-phone .v-ver, :is(.v-phones, .v-duo) .v-iph-tela { transition: none; transform: none; }
}
.v-phones .v-phone figcaption { transition: color .3s; }
.v-phones .v-phone:hover figcaption { color: #fff; }
@media (prefers-reduced-motion: reduce) { .v-phones .v-iph::before { animation: none; } }
/* Raios do celular do meio até os outros */
.v-aluno .v-phones { position: relative; }
.a-raios { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.v-aluno .v-phones .v-phone { position: relative; z-index: 1; }
.a-raios path { fill: none; stroke-linecap: butt; }
.a-raios .raio-base { stroke-width: 2; opacity: .6; }
.a-raios .raio-luz { stroke-width: 3; stroke-dasharray: 14 46; filter: drop-shadow(0 0 4px #fffa); animation: a-raio 1.2s linear infinite; }
.a-raios g:nth-of-type(2) .raio-luz { animation-delay: -.75s; }
.a-raios g:nth-of-type(3) .raio-luz { animation-delay: -1.5s; }
.a-raios g:nth-of-type(4) .raio-luz { animation-delay: -2.25s; }
@keyframes a-raio { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .a-raios .raio-luz { animation: none; opacity: 0; } }

.a-controle { display: none; }

@media (max-width: 720px) {
  #aluno .a-raios { display: none; }
  #aluno .v-phones { scrollbar-width: none; }
  #aluno .v-phones::-webkit-scrollbar { display: none; }
  #aluno .v-phones.a-em-loop { scroll-snap-type: none; overflow-anchor: none; }
  #aluno .v-phones .v-phone:not(:last-child)::after {
    content: "";
    position: absolute;
    inset: calc(50% - 17px) auto auto 100%;
    width: 14px;
    height: 2px;
    pointer-events: none;
    background: linear-gradient(90deg, var(--a-cor), #f4e4ed, var(--a-cor)) 0 0 / 200% 100%;
    box-shadow: 0 0 8px var(--a-cor);
  }
  #aluno .v-phones.a-em-loop:not(.a-pausado) .v-phone::after {
    animation: a-ligacao 1.4s linear infinite;
  }
  #aluno .a-controle:not([hidden]) {
    display: block;
    min-height: 44px;
    margin: 8px auto 0;
    padding: 4px 14px;
    border: 1px solid var(--s-line);
    border-radius: 14px;
    background: #ffffff0c;
    color: var(--s-text);
    font: inherit;
    font-size: .8125rem;
    cursor: pointer;
    user-select: none;
  }
  #aluno .a-controle:not(:focus-visible) {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    margin: -1px;
    padding: 0;
    clip-path: inset(50%);
    overflow: hidden;
  }
  #aluno .a-controle:focus-visible { outline: 2px solid #edb7cd; outline-offset: 2px; }
}

@keyframes a-ligacao { to { background-position: -200% 0; } }
