/* =====================================================================
   Vitrine Digital — abertura do notebook (veio do site antigo, 15/11)
   Camada fixa por cima da landing: logo animado, notebook fechado com o
   logo na tampa; ao rolar ele gira, abre e dá zoom na tela, que mostra o
   topo da landing. No fim a camada some e a página real está no topo.
   Tudo fica dentro de .intro para não mexer no resto da página.
   ===================================================================== */
.intro {
  --ab-laranja: #E6582D;
  --ab-laranja-esc: #F0693F;
  --ab-laranja-forte-esc: #FF8A63;
  --ab-escuro: #0e0e10;
  --ab-grafite: #1c1c20;
  --ab-tinta: #F5F5F7;
  --ab-txt2: #B9B9C4;
  --ab-linha: #2E2E35;
  --ab-hud: #85858F;
  --ab-inset: clamp(12px, 2vw, 20px);
  --ab-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ab-sans: "Onest", system-ui, sans-serif;
  display: none;
}
.js-intro .intro {
  display: block; position: fixed; inset: 0; z-index: 900;
  background: var(--ab-escuro); overflow: hidden; color: var(--ab-tinta);
}
html.abertura-fim .intro { display: none !important; }
html.travado, html.travado body { overflow: hidden; overscroll-behavior: none; }

/* cantos de enquadramento (HUD) */
.intro .hud { position: absolute; inset: var(--ab-inset); pointer-events: none; z-index: 1; }
.intro .hud i { position: absolute; width: 22px; height: 22px; border: 0 solid var(--ab-laranja-esc); }
.intro .hud .tl { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; }
.intro .hud .tr { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; }
.intro .hud .bl { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; }
.intro .hud .br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; }

.intro .intro-rotulo { position: absolute; z-index: 2; margin: 0; font: 500 12px/1 var(--ab-mono); letter-spacing: .12em; color: var(--ab-hud); }
.intro .r-tl { top: calc(var(--ab-inset) + 14px); left: calc(var(--ab-inset) + 14px); }
.intro .r-bl { bottom: calc(var(--ab-inset) + 14px); left: calc(var(--ab-inset) + 14px); }
.intro .r-br { contain: layout paint; bottom: calc(var(--ab-inset) + 14px); right: calc(var(--ab-inset) + 14px); color: var(--ab-tinta); font-variant-numeric: tabular-nums; }
.intro .intro-centro { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; }
.js-intro .intro .intro-centro { opacity: 0; }

/* Parte 1: logo animado, SVG do tamanho da tela */
.intro .abre { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0; display: block; overflow: hidden; }
.intro .abre text { font-kerning: normal; }

/* "Role para abrir": só depois do logo e até começar a rolar */
.intro .dica {
  position: absolute; left: 50%; bottom: calc(var(--ab-inset) + 40px); z-index: 3; transform: translateX(-50%);
  white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.video-fim .intro .dica { opacity: 1; visibility: visible; }
.video-fim.rolou .intro .dica { opacity: 0; visibility: hidden; }

/* Botão "Pular abertura" (fora da camada, fica por cima de tudo) */
.pular-abertura { position: fixed; z-index: 950; top: calc(env(safe-area-inset-top, 0px) + 14px); right: 14px; }
.pular-abertura [hidden] { display: none; }
html.abertura-fim .pular-abertura { display: none; }

/* =====================================================================
   Notebook 3D: cena (zoom 2D) > note (inclina) > mesa (gira) > deck + tampa
   A tampa tem duas faces: .capa (logo na tampa) e .tela (o topo da landing).
   ===================================================================== */
.intro .cena { position: absolute; inset: 0; display: grid; place-items: center; perspective: 2200px; perspective-origin: 50% 45%; transform-origin: 0 0; will-change: transform; }
.intro .note {
  --w: min(86vw, 1180px, calc((100vh - 210px) * 1.6));
  --w: min(86vw, 1180px, calc((100svh - 210px) * 1.6));
  position: relative; width: var(--w); aspect-ratio: 16 / 10; transform-style: preserve-3d; will-change: transform;
}
.intro .mesa { position: absolute; inset: 0; transform-style: preserve-3d; }
.intro .deck { position: absolute; inset: -0.8%; background: #202024; border: 1px solid #3A3A42; border-radius: 1.2%; transform-style: preserve-3d; }
.intro .teclado {
  position: absolute; left: 9%; right: 9%; top: 11%; height: 44%;
  background-color: #34343B;
  background-image: linear-gradient(90deg, #202024 3px, transparent 3px), linear-gradient(#202024 3px, transparent 3px);
  background-size: calc(100% / 14) calc(100% / 6);
  border-right: 3px solid #202024; border-bottom: 3px solid #202024;
}
.intro .touchpad { position: absolute; left: 36%; right: 36%; top: 62%; bottom: 8%; background: #26262B; border: 1px solid #3A3A42; border-radius: 3%; }
.intro .tampa { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 0; transform: translateZ(4px); }
.intro .face { position: absolute; inset: 0; overflow: hidden; border-radius: 1.2%; backface-visibility: hidden; -webkit-backface-visibility: hidden; will-change: transform; }

/* ---- Capa: a tampa fechada, com o logo no meio (em cqw = % da largura) ---- */
.intro .capa {
  container-type: inline-size; outline: 1px solid #3A3A42;
  background: radial-gradient(120% 90% at 50% 40%, #1d1d21 0%, #121214 70%);
  display: grid; place-items: center;
}
.intro .capa-logo { display: flex; flex-direction: column; align-items: center; gap: 2.4cqw; color: var(--ab-tinta); --knock: #17171a; --fone: var(--ab-laranja); }
.intro .capa-logo svg { width: 16cqw; height: auto; }
.intro .capa-logo b { font: 600 3.4cqw/1 var(--ab-sans); letter-spacing: -.02em; }
.intro .capa-logo small { font: 500 1.05cqw/1 var(--ab-sans); letter-spacing: .3em; color: var(--ab-txt2); }

/* ---- Tela: por dentro da tampa, o topo da landing ---- */
.intro .tela { transform: rotateX(180deg); display: flex; flex-direction: column; background: #0B0B0D; outline: 1px solid #3A3A42; padding: 1.6%; container-type: inline-size; }
.intro .tela-barra { flex: none; display: flex; align-items: center; gap: .6cqw; height: 3.2cqw; padding-left: 1cqw; border-bottom: 1px solid #2E2E35; }
.intro .tela-barra i { width: .8cqw; height: .8cqw; border-radius: 50%; background: #4A4A52; }
.intro .tela-barra i:first-child { background: var(--ab-laranja); }
.intro .tela-barra span { margin-left: 1.4cqw; width: 30cqw; height: 1.6cqw; border: 1px solid #3A3A42; border-radius: 1cqw; }
.intro .tela-conteudo { position: relative; flex: 1; overflow: hidden; container-type: inline-size; }
.intro .mh { visibility: hidden; }
.intro.tela-aberta .mh { visibility: visible; }
.intro .tela-apagada { position: absolute; inset: 0; z-index: 2; background: #050506; will-change: opacity; }

/* miniatura do topo da landing (hero centrado, escuro) */
.intro .mh { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 2.4cqw 5cqw 0; background: var(--ab-escuro); color: var(--ab-tinta); font-family: var(--ab-sans); text-align: center; }
.intro .mh-nav { align-self: stretch; display: flex; align-items: center; justify-content: space-between; --knock: var(--ab-escuro); --fone: var(--ab-laranja); }
.intro .mh-logo { display: flex; align-items: center; gap: .9cqw; font: 600 1.35cqw/1 var(--ab-sans); }
.intro .mh-logo svg { width: 3cqw; height: auto; }
.intro .mh-links { display: flex; gap: 2.2cqw; font: 500 1.05cqw/1 var(--ab-sans); color: var(--ab-txt2); }
.intro .mh-btn { font: 600 1.05cqw/1 var(--ab-sans); padding: 1cqw 1.6cqw; border-radius: 3cqw; background: var(--ab-laranja); color: #0e0e10; }
.intro .mh-pill { margin-top: 5.2cqw; font: 500 1cqw/1 var(--ab-sans); padding: .7cqw 1.4cqw; border-radius: 3cqw; border: 1px solid #34343a; color: var(--ab-txt2); }
.intro .mh-pill b { color: var(--ab-tinta); font-weight: 600; }
.intro .mh-h1 { margin-top: 2cqw; font: 400 5.6cqw/1.02 var(--ab-sans); letter-spacing: -.035em; max-width: 60cqw; }
.intro .mh-lead { margin-top: 2cqw; font: 400 1.4cqw/1.5 var(--ab-sans); color: var(--ab-txt2); max-width: 48cqw; }
.intro .mh-acoes { margin-top: 2.4cqw; display: flex; gap: 1cqw; }
.intro .mh-acoes b, .intro .mh-acoes em { font: 600 1.1cqw/1 var(--ab-sans); font-style: normal; padding: 1.3cqw 2cqw; border-radius: 3cqw; }
.intro .mh-acoes b { background: var(--ab-laranja); color: #0e0e10; }
.intro .mh-acoes em { border: 1px solid #3a3a40; }
.intro .mh-win { margin-top: 4cqw; align-self: stretch; flex: 1; border-radius: 1.4cqw 1.4cqw 0 0; background: linear-gradient(180deg, #2a221d 0%, #1a1715 100%); padding: 2.4cqw 4cqw 0; }
.intro .mh-win i { display: block; height: 100%; border-radius: 1cqw 1cqw 0 0; background: #f2efe9; }

/* peças só do celular (escondidas no PC) */
.intro .mm, .intro .capa-camera, .intro .tela-ilha { display: none; }

/* =====================================================================
   Celular: no lugar do notebook, um celular (o laranja do logo).
   Ele vira de costas (logo) para a frente; a tela acende com o topo da
   página no layout de celular e o zoom entra até virar a página real.
   As medidas da miniatura (.mm) são as do hero real a 390 px, em cqw
   (1cqw = 3,9 px ali), para a passagem não ter pulo.
   ===================================================================== */
@media (max-width: 767.98px) {
  .intro .r-bl { display: none; }
  .intro .note { --w: min(64vw, calc((100svh - 230px) * .4615)); width: var(--w); aspect-ratio: 9 / 19.5; }
  .intro .deck { display: none; }
  .intro .tampa { transform-origin: 50% 50%; }
  .intro .face { border-radius: 14% / 6.5%; }

  /* costas do aparelho */
  .intro .capa { background: radial-gradient(130% 80% at 30% 20%, #232327 0%, #141416 60%, #0f0f11 100%); outline: 0; box-shadow: inset 0 0 0 1.5px #34343a; }
  .intro .capa-logo { gap: 4cqw; }
  .intro .capa-logo svg { width: 34cqw; }
  .intro .capa-logo b { font-size: 7.4cqw; }
  .intro .capa-logo small { display: none; }
  .intro .capa-camera { display: flex; flex-direction: column; gap: 3cqw; position: absolute; top: 6cqw; left: 6cqw; padding: 3cqw; border-radius: 9cqw; background: #19191c; box-shadow: inset 0 0 0 1px #33333a; }
  .intro .capa-camera i { display: block; width: 12cqw; height: 12cqw; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #3a3a44 0 18%, #0a0a0c 30% 100%); box-shadow: 0 0 0 1.2cqw #26262b; }

  /* frente: borda fina, ilha e a tela */
  .intro .tela { padding: 3.2%; background: #050506; outline: 0; box-shadow: inset 0 0 0 1.5px #34343a; }
  .intro .tela-barra { display: none; }
  .intro .tela-conteudo { border-radius: 11% / 5%; }
  .intro .tela-ilha { display: block; position: absolute; z-index: 3; top: 1.1%; left: 50%; width: 3.4%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 40% 35%, #2a2a33 0 25%, #000 45%); }
  .intro .mh { display: none; }

  /* o topo da página, no layout de celular */
  .intro .mm { display: block; visibility: hidden; position: absolute; inset: 0; background: var(--ab-escuro); color: var(--ab-tinta); font-family: var(--ab-sans); --knock: var(--ab-escuro); --fone: var(--ab-laranja); }
  .intro.tela-aberta .mm { visibility: visible; }
  .intro .mm > span { position: absolute; left: 6.15cqw; right: 6.15cqw; }
  .intro .mm-nav { top: 0; height: 14.36cqw; display: flex; align-items: center; justify-content: space-between; }
  .intro .mm-logo { display: flex; align-items: center; gap: 2.6cqw; font: 500 4.1cqw/1 var(--ab-sans); letter-spacing: -.01em; }
  .intro .mm-logo svg { width: 8.7cqw; height: auto; }
  .intro .mm-menu { width: 11.3cqw; height: 11.3cqw; border-radius: 2.6cqw; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqw; }
  .intro .mm-menu i { display: block; width: 3.6cqw; height: .42cqw; border-radius: 1cqw; background: var(--ab-tinta); }
  .intro .mm > .mm-pill { top: 24.6cqw; left: 50%; right: auto; width: max-content; transform: translateX(-50%); height: 11.3cqw; display: flex; align-items: center; gap: 2.4cqw; padding: 0 3.6cqw 0 1.6cqw; border-radius: 99cqw; border: 1px solid #2c2c31; font: 400 3.33cqw/1 var(--ab-sans); color: #a6a6ad; white-space: nowrap; }
  .intro .mm-pill b { font-weight: 500; color: var(--ab-tinta); background: #222226; padding: 2cqw 2.8cqw; border-radius: 99cqw; }
  .intro .mm-h1 { top: 40cqw; font: 400 10.26cqw/1.02 var(--ab-sans); letter-spacing: -.035em; text-align: center; text-wrap: balance; }
  .intro .mm-lead { top: 75.4cqw; font: 400 4.36cqw/1.5 var(--ab-sans); text-align: center; }
  .intro .mm-btn { top: 108.7cqw; height: 11.3cqw; border-radius: 2.05cqw; background: var(--ab-laranja); color: #0e0e10; display: flex; align-items: center; justify-content: center; font: 500 4.1cqw/1 var(--ab-sans); }
  .intro .mm-link { top: 123cqw; height: 11.3cqw; display: flex; align-items: center; justify-content: center; font: 500 4.1cqw/1 var(--ab-sans); }
  .intro .mm-win { top: 142.6cqw; height: 120cqw; border-radius: 5.1cqw; background: #d9ccb7; padding: 4.1cqw 4.1cqw 0; overflow: hidden; }
  .intro .mm-wa { display: block; height: 100%; border-radius: 3.6cqw; background: #fff; color: #16181a; overflow: hidden; }
  .intro .mm-wa-bar { display: flex; align-items: center; gap: 1cqw; height: 11.3cqw; padding: 0 4.1cqw; font: 400 3.33cqw/1 var(--ab-sans); color: #5d6268; border-bottom: 1px solid rgb(0 0 0 / .07); }
  .intro .mm-wa-bar b { font-weight: 500; color: #16181a; }
  .intro .mm-wa-bar::before { content: ""; width: 4.6cqw; height: 4.6cqw; margin-right: 1.6cqw; border-radius: 50%; background: #25d366; }
  .intro .mm-wa-chat .mm-done { max-width: none; padding: 0; box-shadow: none; color: #3d4247; }
  .intro .mm-wa-chat { display: flex; flex-direction: column; gap: 2.6cqw; height: 100%; padding: 3.1cqw 3.6cqw; background: #efeae2; font: 400 3.33cqw/1.45 var(--ab-sans); }
  .intro .mm-wa-chat span { max-width: 82%; padding: 2.3cqw 3.3cqw; border-radius: 3cqw; box-shadow: 0 1px 0 rgb(0 0 0 / .06); }
  .intro .mm-me { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 1cqw !important; }
  .intro .mm-bot { align-self: flex-start; background: #fff; border-top-left-radius: 1cqw !important; }
}
