/* Seções extras e botões-tecla pixelados, no ritmo da referência (céu → escuro → papel com borda de pixel). */
:root {
  --nuvem: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 24' preserveAspectRatio='none'%3E%3Cpath d='M0 24V16H16V8H32V0H64V8H80V0H112V8H128V16H144V8H160V24Z'/%3E%3C/svg%3E");
  --seta-px: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 5' shape-rendering='crispEdges'%3E%3Cpath d='M3 0h1v1H3zM4 1h1v1H4zM0 2h6v1H0zM4 3h1v1H4zM3 4h1v1H3z'/%3E%3C/svg%3E");
  --lima: #c6ff3d;
  --tinta: #0b0f16;
}

/* ── Tecla: tampa que afunda na base, seta de pixel que corre em steps ───────── */
.tecla {
  --curso: 5px; --sob: calc(var(--curso) + 2px);
  --tampa: linear-gradient(180deg, #5079ff 0%, #2f5dff 52%, #3a66ff 100%);
  --aro: #a8bcff; --saia: #2049e0; --frente: #1a3cc0; --parede: #12298a; --chao: #050b18;
  --seta-fundo: var(--tinta); --seta: var(--lima);
  --mola: cubic-bezier(.3, 1.5, .6, 1);
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 60px; padding: 6px 8px 10px 24px; border-radius: 12px; white-space: nowrap; cursor: pointer;
  color: #fff; font: 650 1rem/1.1 var(--heading); letter-spacing: -.02em; text-decoration: none;
  box-shadow: 0 var(--curso) 0 var(--parede), 0 var(--sob) 0 var(--chao);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation
}
@supports (transition-timing-function: linear(0, 1)) {
  .tecla { --mola: linear(0, .42 8%, .8 16%, 1.08 25%, 1.2 31%, 1.17 37%, 1.06 46%, .98 56%, .97 64%, .99 76%, 1) }
}
.tecla::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  border: 2px solid var(--saia); border-top: 1.5px solid var(--aro); border-bottom: 4px solid var(--frente);
  background: var(--tampa) padding-box, var(--saia)
}
.tecla::before, .tecla > * { transition: transform .42s var(--mola) }
.tecla-seta {
  flex: none; width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; overflow: hidden;
  background: repeating-linear-gradient(180deg, rgb(198 255 61 / .06) 0 1px, transparent 1px 4px), var(--seta-fundo);
  box-shadow: inset 0 2px #0000008c, 0 1px #ffffff8c
}
.tecla-seta::after { content: ""; width: 24px; height: 20px; background: var(--seta); -webkit-mask: var(--seta-px) 0 0/100% 100% no-repeat; mask: var(--seta-px) 0 0/100% 100% no-repeat }
.tecla-p { --curso: 3px; min-height: 40px; padding: 4px 16px 7px; font-size: .88rem }
.tecla-p::before { border-width: 1px 1.5px 3px }
.tecla-clara { --tampa: linear-gradient(180deg, #fff, #f1f3f8 55%, #fafbff); --aro: #fff; --saia: #d6dcea; --frente: #b9c3da; --parede: #8090b4; color: #0d2b82 }
.tecla-larga { width: 100% }
.tecla:focus-visible { outline: 2px solid var(--lima); outline-offset: 6px }
@media (hover: hover) {
  .tecla:hover::before, .tecla:hover > * { transform: translateY(1px) }
  .tecla:hover .tecla-seta::after { animation: tecla-corre 1.1s steps(9, end) infinite }
}
.tecla:active::before, .tecla:active > *, .tecla.afunda::before, .tecla.afunda > * { transform: translateY(var(--curso)); transition: transform .05s cubic-bezier(.55, 0, 1, .45) }
.tecla:active .tecla-seta::after { animation: none; transform: translate(4px) }
.tecla.viva .tecla-seta::after { animation: tecla-corre 1.1s steps(9, end) .5s 2 }
.tecla.dispara .tecla-seta::after { animation: tecla-dispara .6s }
@keyframes tecla-corre { 0% { transform: none } 40% { transform: translate(36px) } 40.01% { transform: translate(-36px) } 80%, to { transform: none } }
@keyframes tecla-dispara { 0% { transform: translate(4px); animation-timing-function: steps(8, end) } 50% { transform: translate(36px) } 50.01% { transform: translate(-36px); animation-timing-function: steps(9, end) } to { transform: none } }
.nav-cta.tecla { border: 0; background: none }
.cta-micro { margin-top: 12px; font: 500 .68rem/1.4 var(--code); letter-spacing: .12em; text-transform: uppercase; opacity: .7; text-align: center }
.cta-centro { display: flex; justify-content: center; margin-top: clamp(40px, 6vw, 72px) }

/* ── Borda em escada de pixels: a própria seção é recortada no topo ─────────── */
.borda-nuvem {
  position: relative; margin-top: -48px; border-radius: 0 !important;
  -webkit-mask: var(--nuvem) 0 0/320px 48px repeat-x, linear-gradient(#000 0 0) 0 47px/100% calc(100% - 47px) no-repeat;
          mask: var(--nuvem) 0 0/320px 48px repeat-x, linear-gradient(#000 0 0) 0 47px/100% calc(100% - 47px) no-repeat
}

/* ── Capa de pixels que se dissolve ─────────── */
.pix-capa { position: absolute; inset: 0; z-index: 3; display: grid; pointer-events: none }
.pix-capa i { background: var(--pix, var(--tinta)) }

/* ── Trava: o problema ─────────── */
.trava { padding-block: clamp(110px, 12vw, 160px) clamp(110px, 13vw, 170px) }
.trava-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 60px) }
.trava-texto { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px clamp(28px, 6vw, 90px); align-items: end }
.trava-texto .eyebrow { grid-column: 1/-1; color: #475569 }
.trava-texto h2 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); line-height: 1.02; letter-spacing: -.07em }
.trava-texto > p:last-child { color: #3b4658; max-width: 26rem; line-height: 1.55 }
.trava-cena { position: relative; aspect-ratio: 16/8; border-radius: 22px; overflow: visible }
.trava-cena > img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit }
.trava-cena .pix-capa { border-radius: inherit; overflow: hidden }
.monitor {
  position: absolute; right: clamp(-12px, -1vw, 0px); bottom: clamp(-40px, -3vw, -20px); z-index: 4; width: min(430px, 64%);
  padding: 46px 22px 22px; border-radius: 18px; background: #1d2420; color: #d6ffb0; font: 500 .8rem/1.45 var(--code);
  border: 10px solid #d9d4c3; box-shadow: 0 24px 50px #0006, inset 0 0 40px #000a
}
.mon-olhos { position: absolute; top: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 26px }
.mon-olhos i { width: 12px; height: 12px; background: var(--lima); animation: mon-pisca 4s steps(1) infinite }
@keyframes mon-pisca { 0%, 92%, 100% { transform: none } 94%, 96% { transform: scaleY(.15) } }
.monitor dl { display: grid; gap: 9px; margin: 0 }
.monitor dl div { display: grid; grid-template-columns: 74px 1fr; gap: 12px }
.monitor dt { color: var(--lima) }
.monitor dd { margin: 0; color: #eaf5df }

/* ── Módulos: etapas em sanfona ─────────── */
.modulos { padding-block: clamp(90px, 11vw, 150px) clamp(120px, 14vw, 180px) }
.modulos-lista { list-style: none; margin: 0 auto; padding: 0; width: min(100%, 900px); display: grid; gap: 10px }
.modulos-lista details { border: 1px solid #2a3442; border-radius: 14px; background: #121821; transition: border-color .25s, background .25s }
.modulos-lista details[open] { border-color: var(--lima); background: #151d16 }
.modulos-lista summary { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none }
.modulos-lista summary::-webkit-details-marker { display: none }
.mod-n { font: 600 .78rem/1 var(--code); color: var(--tinta); background: var(--lima); padding: 6px 7px; border-radius: 5px }
.modulos-lista b { font: 650 clamp(1.05rem, 1.8vw, 1.35rem)/1.2 var(--heading); letter-spacing: -.04em }
.modulos-lista small { color: #9aa6b6; font-size: .85rem }
.modulos-lista summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s }
.modulos-lista details[open] summary svg { transform: rotate(45deg); color: var(--lima) }
.modulos-lista details p { margin: 0; padding: 0 20px 20px 70px; color: #c6ccd5; max-width: 44rem; line-height: 1.55 }

/* ── Prova: galeria horizontal presa ─────────── */
.prova { padding-top: clamp(90px, 10vw, 130px); padding-bottom: clamp(110px, 13vw, 170px); overflow: hidden }
.prova-pin { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; align-content: center; gap: clamp(28px, 4vw, 48px); min-height: 100svh }
.prova-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 16px clamp(28px, 6vw, 90px) }
.prova-head .eyebrow { color: #475569; margin-bottom: 14px }
.prova-head h2 { font-size: clamp(2.3rem, 4.4vw, 4.2rem); line-height: 1.02; letter-spacing: -.07em }
.prova-head > p { color: #3b4658; max-width: 24rem }
.prova-trilho { display: flex; gap: 22px; width: max-content; padding-inline: max(var(--gutter), (100vw - 1200px) / 2) }
.prova-card { position: relative; flex: none; width: clamp(240px, 26vw, 340px); aspect-ratio: 4/5; margin: 0; border-radius: 14px; overflow: hidden; background: #ddd }
.prova-card:nth-child(odd) { rotate: -1.5deg } .prova-card:nth-child(even) { rotate: 1.5deg; margin-top: 30px }
.prova-card img { width: 100%; height: 100%; object-fit: cover }
.prova-card figcaption { position: absolute; inset: auto 0 0; padding: 40px 18px 18px; color: #fff; background: linear-gradient(0deg, #000b, transparent) }
.prova-card figcaption span { display: inline-block; font: 600 .66rem/1 var(--code); text-transform: uppercase; letter-spacing: .1em; color: var(--tinta); background: var(--lima); padding: 4px 6px; border-radius: 3px; margin-bottom: 8px }
.prova-card figcaption b { display: block; font: 700 clamp(1.3rem, 2vw, 1.8rem)/1 var(--heading); letter-spacing: -.07em }

/* ── Conta: números ─────────── */
.conta { position: relative; background: #2455ff; color: #fff; padding-block: clamp(80px, 9vw, 120px) clamp(120px, 14vw, 180px) }
.conta-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(30px, 5vw, 56px) }
.conta h2 { font-size: clamp(2.3rem, 4.6vw, 4.4rem); line-height: 1.02; letter-spacing: -.07em; max-width: 16ch }
.conta-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid #ffffff55 }
.conta-nums div { padding: 24px 20px 0 0 }
.conta-nums div + div { padding-left: 20px; border-left: 1px solid #ffffff55 }
.conta-nums dt { font: 700 clamp(4rem, 9vw, 8.5rem)/.9 var(--heading); letter-spacing: -.08em; font-variant-numeric: tabular-nums }
.conta-nums dd { margin: 12px 0 0; color: #dfe6ff; max-width: 15rem }

/* ── Oferta ─────────── */
.oferta { padding-block: clamp(90px, 11vw, 150px) clamp(120px, 14vw, 180px) }
.oferta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(32px, 6vw, 90px); align-items: center }
.oferta h2 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); line-height: 1.02; letter-spacing: -.07em; margin-top: 14px }
.oferta-sub { margin-top: 20px; color: #c5c9cf; max-width: 28rem }
.cartao-oferta { position: relative; padding: clamp(24px, 3vw, 34px); border-radius: 20px; background: #f6f5ee; color: var(--tinta); box-shadow: 0 30px 60px #0007 }
.cracha { display: inline-block; font: 600 .7rem/1 var(--code); letter-spacing: .1em; text-transform: uppercase; background: var(--tinta); color: var(--lima); padding: 7px 9px; border-radius: 5px }
.inclui { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 12px }
.inclui li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; line-height: 1.4 }
.inclui li::before { content: ""; width: 14px; height: 14px; margin-top: 3px; background: #2455ff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6' shape-rendering='crispEdges'%3E%3Cpath d='M6 0h1v1H6zM5 1h1v1H5zM4 2h1v1H4zM0 3h1v1H0zM3 3h1v1H3zM1 4h1v1H1zM2 4h1v1H2zM2 5h1v1H2z'/%3E%3C/svg%3E") 0 0/100% 100%; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6' shape-rendering='crispEdges'%3E%3Cpath d='M6 0h1v1H6zM5 1h1v1H5zM4 2h1v1H4zM0 3h1v1H0zM3 3h1v1H3zM1 4h1v1H1zM2 4h1v1H2zM2 5h1v1H2z'/%3E%3C/svg%3E") 0 0/100% 100% }

/* ── Barra fixa ─────────── */
.barra-fixa { display: none }
.gsap .barra-fixa {
  position: fixed; left: 50%; bottom: 14px; z-index: 20; display: flex; align-items: center; gap: 18px;
  padding: 8px 8px 8px 18px; border-radius: 14px; background: #0b0f16f0; color: #c5cbd6; border: 1px solid #2a3442;
  font-size: .85rem; box-shadow: 0 18px 40px #0006; translate: -50% 150%; transition: translate .5s cubic-bezier(.3, 1.4, .6, 1)
}
.gsap .barra-fixa.on { translate: -50% 0 }
.barra-fixa b { color: #fff; font-weight: 600 }

@media (max-width: 720px) {
  .trava-texto, .prova-head, .oferta-grid { grid-template-columns: 1fr }
  .trava-cena { aspect-ratio: 4/5 }
  .monitor { position: relative; inset: auto; width: auto; margin: -80px 10px 0; font-size: .72rem }
  .monitor dl div { grid-template-columns: 58px 1fr }
  .modulos-lista summary { grid-template-columns: auto 1fr auto }
  .modulos-lista small { display: none }
  .modulos-lista details p { padding-left: 20px }
  .prova-pin { min-height: 0 }
  .prova-trilho { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px }
  .prova-card { width: 74vw; scroll-snap-align: center }
  .conta-nums { grid-template-columns: 1fr 1fr; row-gap: 26px }
  .conta-nums div:nth-child(3) { padding-left: 0; border-left: 0 }
  .gsap .barra-fixa > span { display: none }
  .gsap .barra-fixa { padding: 6px }
}
@media (prefers-reduced-motion: reduce) {
  .tecla-seta::after, .mon-olhos i { animation: none !important }
}

/* Criativos prontos do Figma: 3:4 inteiro, sem legenda por cima do texto da peça */
.prova-card.prova-peca { aspect-ratio: 3/4 }
