/* Tobias Linker · tela de entrada (protótipo de design)
   Tokens do Brand Book Vol. 01 da Tobias Tráfego: Sal para ler, Abismo como palco, Corrente como sinal. */
:root {
  --sal: #FAFAF7; --abismo: #050708; --corrente: #26D9C4; --profunda: #0B6E66;
  --grafite: #121718; --pedra: #5E6765; --linha: #E3E7E4; --coral: #C2412D;
  --f-forca: 'Archivo', 'Arial Black', sans-serif;
  --f-voz: 'Instrument Serif', 'Times New Roman', serif;
  --f-clareza: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --f-prova: 'Martian Mono', Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--abismo); color: var(--sal); font-family: var(--f-clareza);
  overflow: hidden; -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }

/* ---------- o mar ---------- */
#mar { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.brilho {
  position: fixed; left: 0; top: 0; width: 620px; height: 620px; margin: -310px 0 0 -310px;
  border-radius: 50%; pointer-events: none; z-index: 1; opacity: 0;
  background: radial-gradient(circle, rgba(38, 217, 196, .14), rgba(38, 217, 196, 0) 62%);
  mix-blend-mode: screen; will-change: transform, opacity;
}

#vitrine { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; pointer-events: none; }

/* ---------- palco ---------- */
#palco { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
#palco > * { pointer-events: auto; }
.topo { position: absolute; top: 30px; left: 40px; right: 40px; display: flex; align-items: center; }
.marca { display: flex; align-items: center; gap: 14px; }
.selo {
  font-family: var(--f-prova); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(250, 250, 247, .62); border: 1px solid rgba(250, 250, 247, .18);
  border-radius: 999px; padding: 4px 10px 3px;
}
.rodape {
  position: absolute; left: 40px; right: 40px; bottom: 26px; display: flex; justify-content: space-between;
  font-family: var(--f-prova); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(250, 250, 247, .42); pointer-events: none;
}

.tela {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 92px 20px 70px;
}
#tela-login { transform: translateY(-3.5vh); }
.tela[hidden] { display: none; }

/* ---------- frase que alterna ---------- */
.frase {
  font-family: var(--f-voz); font-style: italic; font-weight: 400;
  font-size: clamp(42px, 6.2vw, 94px); line-height: .98; letter-spacing: -.02em;
  text-align: center; max-width: min(1000px, 92vw); min-height: 2.05em;
  display: grid; place-items: center; perspective: 700px;
}
.frase-in { display: block; text-wrap: balance; }
.frase .w { display: inline-block; white-space: nowrap; margin: 0 .04em; }
.frase .c { display: inline-block; will-change: transform, opacity, filter; transform-origin: 50% 80%; }
.frase .cor { color: var(--corrente); }
.frase .sub { position: relative; display: inline-block; }
.frase .traco {
  position: absolute; left: 0.02em; right: 0.04em; bottom: 0.02em; height: 0.06em; border-radius: 999px;
  background: var(--corrente); transform: scaleX(0); transform-origin: left center;
}

/* ---------- cartão do formulário ---------- */
.cartao {
  margin-top: clamp(18px, 3.6vh, 40px); width: min(420px, 92vw);
  background: rgba(18, 23, 24, .72); border: 1px solid rgba(250, 250, 247, .10); border-radius: 24px;
  padding: 22px 24px 20px; backdrop-filter: blur(14px) saturate(130%); -webkit-backdrop-filter: blur(14px) saturate(130%);
}
.alternar {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px;
  background: rgba(250, 250, 247, .05); border: 1px solid rgba(250, 250, 247, .10); border-radius: 999px;
}
.alternar button {
  position: relative; z-index: 1; background: none; border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 500; font-size: 14px; padding: 9px 0; color: rgba(250, 250, 247, .66); transition: color .35s var(--ease);
}
.alternar button[aria-selected="true"] { color: var(--abismo); }
.alternar button:focus-visible { outline: 2px solid var(--corrente); outline-offset: 2px; }
.alternar .indicador {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  background: var(--sal); border-radius: 999px; transition: transform .5s var(--ease);
}
.alternar[data-modo="telefone"] .indicador { transform: translateX(100%); }

.campo { display: grid; gap: 8px; margin-top: 16px; }
.rotulo {
  font-family: var(--f-prova); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(250, 250, 247, .55);
}
.entrada { position: relative; display: block; }
.entrada input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; outline: none;
  border: 1.5px solid rgba(250, 250, 247, .14); background: rgba(250, 250, 247, .04);
  font-size: 16px; color: var(--sal);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease);
}
.entrada input::placeholder { color: rgba(250, 250, 247, .34); }
.entrada input:hover { border-color: rgba(250, 250, 247, .26); }
.entrada input:focus {
  border-color: var(--corrente); background-color: rgba(38, 217, 196, .045);
  box-shadow: 0 0 0 4px rgba(38, 217, 196, .14);
}
#senha { padding-right: 52px; }
.ver {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px;
  border: 0; border-radius: 10px; background: transparent; cursor: pointer; display: grid; place-items: center;
  color: rgba(250, 250, 247, .5); transition: color .3s, background-color .3s;
}
.ver:hover, .ver[aria-pressed="true"] { color: var(--corrente); background: rgba(38, 217, 196, .08); }
.ver svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.linha-baixo { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
button.esqueci { border: 0; background: none; padding: 0; cursor: pointer; }
.esqueci[hidden] { display: none; }
#acessar.carregando { pointer-events: none; }
#acessar.carregando .no { animation: pulsar 1s ease-in-out infinite; }
@keyframes pulsar { 50% { opacity: .45; } }
.esqueci {
  font-family: var(--f-voz); font-style: italic; font-size: 17px; color: rgba(250, 250, 247, .7);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .3s;
}
.esqueci:hover { color: var(--corrente); }

/* ---------- botão principal: pílula com o nó e a seta que sobe ---------- */
.btn-tobias {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 18px; min-height: 58px;
  padding: 6px 6px 6px 30px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--sal); color: var(--abismo); font-weight: 600; font-size: 16px; line-height: 1;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn-tobias:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(38, 217, 196, .26); }
.btn-tobias:active, .btn-tobias.apertado { transform: translateY(0) scale(.97); }
.btn-tobias:focus-visible { outline: 3px solid var(--corrente); outline-offset: 3px; }
.no {
  position: relative; display: inline-block; width: 46px; height: 46px; border-radius: 50%;
  background: var(--corrente); color: var(--abismo); overflow: hidden;
}
.seta {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: 19px; line-height: 1;
  transition: transform .55s var(--ease);
}
.seta-b { transform: translateY(115%); }
.btn-tobias:hover .seta-a, .btn-tobias.apertado .seta-a { transform: translateY(-115%); }
.btn-tobias:hover .seta-b, .btn-tobias.apertado .seta-b { transform: translateY(0); }

/* ---------- notificações de venda (orbitando) ---------- */
.notif {
  position: fixed; left: 0; top: 0; z-index: 2; width: 300px; height: 76px;
  display: flex; align-items: center; gap: 12px; padding: 0 16px 0 12px;
  background: rgba(18, 23, 24, .9); border: 1px solid rgba(250, 250, 247, .10); border-radius: 18px;
  color: var(--sal); pointer-events: none; opacity: 0; will-change: transform, opacity, filter;
}
.notif .ico { width: 44px; height: 44px; flex: none; border-radius: 13px; background: var(--corrente); display: grid; place-items: center; }
.notif .ico svg { width: 26px; height: 23px; display: block; }
.notif .txt { flex: 1; min-width: 0; }
.notif .l1 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.notif .l1 b { font-weight: 600; font-size: 14.5px; }
.notif .quando { font-family: var(--f-prova); font-size: 10px; letter-spacing: .06em; color: rgba(250, 250, 247, .42); }
.notif .prod { font-size: 13px; color: rgba(250, 250, 247, .66); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif .val { font-family: var(--f-prova); font-weight: 300; font-size: 14px; color: var(--corrente); margin-top: 3px; letter-spacing: -.01em; }
.notif.fixa { position: relative; left: auto; top: auto; z-index: auto; width: 100%; opacity: 1; }

/* clarão da explosão */
.clarao {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: 0; visibility: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(225, 255, 250, .5), rgba(38, 217, 196, .16) 32%, rgba(5, 7, 8, 0) 66%);
}

/* anéis do clique */
.anel {
  position: fixed; z-index: 55; border-radius: 50%; pointer-events: none;
  border: 1.5px solid rgba(38, 217, 196, .7); box-shadow: 0 0 40px rgba(38, 217, 196, .25) inset;
}

/* ---------- tela 2 ---------- */
.titulo2 { text-align: center; }
.titulo2 .forca {
  display: block; font-family: var(--f-forca); font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125;
  text-transform: uppercase; font-size: clamp(22px, 2.9vw, 40px); line-height: .98; letter-spacing: -.005em;
}
.titulo2 .voz {
  display: block; font-family: var(--f-voz); font-style: italic; font-weight: 400; color: var(--corrente);
  font-size: clamp(40px, 5vw, 70px); line-height: .9; letter-spacing: -.02em; margin-top: 4px;
}
.coluna { display: flex; flex-direction: column; gap: 10px; margin-top: clamp(18px, 3.4vh, 34px); width: min(300px, 88vw); }
.slot { height: 76px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#continuar { margin-top: clamp(18px, 3vh, 28px); }

.aviso {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 70;
  font-family: var(--f-prova); font-size: 11.5px; letter-spacing: .06em; color: var(--sal);
  background: rgba(18, 23, 24, .92); border: 1px solid rgba(38, 217, 196, .35); border-radius: 999px;
  padding: 10px 18px; opacity: 0; pointer-events: none; white-space: nowrap;
}


/* ---------- apresentação (rola com Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
html.rola, html.rola body { height: auto; overflow-x: hidden; overflow-y: auto; }

#apresentacao { position: relative; z-index: 9; padding: 0 400px 0 72px; }
#apresentacao[hidden] { display: none; }
.ap-parte { position: relative; min-height: 100vh; }
.ap-1 { padding-top: clamp(92px, 13vh, 140px); padding-bottom: 96px; }
.ap-titulo { text-shadow: 0 0 60px rgba(5, 7, 8, .95), 0 0 18px rgba(5, 7, 8, .7); }
.ap-titulo .forca {
  display: block; font-family: var(--f-forca); font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125;
  text-transform: uppercase; font-size: clamp(24px, 4.4vh, 58px); line-height: .96; letter-spacing: -.005em;
}
.ap-titulo .voz {
  display: block; font-family: var(--f-voz); font-style: italic; font-weight: 400;
  font-size: clamp(84px, min(21vh, 17vw), 230px); line-height: .82; letter-spacing: -.03em; margin-left: .28em;
  perspective: 700px;
}
.ap-titulo .voz .c { display: inline-block; transform-origin: 50% 85%; will-change: transform, opacity, filter; }
.ap-numeros { margin-top: clamp(14px, 3vh, 38px); display: flex; flex-direction: column; gap: clamp(6px, 1.4vh, 18px); }
.ap-bloco { display: flex; flex-direction: column; align-items: flex-start; text-shadow: 0 0 40px rgba(5, 7, 8, .9); }
.ap-bloco.b2 { margin-left: clamp(70px, 15vw, 250px); }
.ap-bloco.b3 { margin-left: clamp(20px, 3.5vw, 60px); }
.ap-rot {
  font-family: var(--f-voz); font-style: italic; font-size: clamp(18px, 2.9vh, 30px); line-height: 1.15;
  color: rgba(250, 250, 247, .62);
}
.ap-num {
  display: inline-flex; align-items: flex-end; white-space: nowrap; margin-left: .5em;
  font-family: var(--f-prova); font-weight: 300; font-size: clamp(48px, 9vh, 112px); line-height: 1; letter-spacing: -.04em;
  color: var(--corrente);
}
.ap-rot-2 { margin-left: clamp(110px, 13vw, 230px); margin-top: .1em; }
.ap-fixo { display: inline-block; white-space: pre; }
.rolo { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; }
.fita { display: block; will-change: transform, filter; }
.fita > span { display: block; height: 1em; line-height: 1; text-align: center; }
.ap-rolar {
  position: absolute; left: 0; bottom: 34px; display: flex; align-items: center; gap: 12px;
  font-family: var(--f-prova); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(250, 250, 247, .5);
}
.ap-rolar i { position: relative; width: 64px; height: 1px; background: rgba(250, 250, 247, .18); overflow: hidden; }
.ap-rolar i::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--corrente); animation: correr 1.8s var(--ease) infinite; }
@keyframes correr { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.ap-2 { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 100vh; padding: 80px 0; }
.ap-fim .voz { font-size: clamp(60px, min(14vh, 10.5vw), 168px); margin-left: .2em; }
.ap-2 .btn-tobias { margin-top: clamp(26px, 5vh, 56px); margin-left: .4em; }
/* cortina: escurece a tela na passagem para o painel */
.cortina { position: fixed; inset: 0; z-index: 200; background: var(--abismo); opacity: 0; visibility: hidden; pointer-events: none; }

/* lugares das notificações 3D na apresentação (vazios: o cartão é desenhado no canvas) */
.slot-p { width: 300px; height: 76px; }
#pinos {
  position: fixed; right: 44px; top: 50%; transform: translateY(-50%); z-index: 5;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}

.som {
  position: fixed; top: 26px; right: 40px; z-index: 40; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(250, 250, 247, .18); border-radius: 999px; padding: 7px 12px 6px; background: rgba(5, 7, 8, .5);
  font-family: var(--f-prova); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(250, 250, 247, .72);
  cursor: pointer; transition: border-color .3s, color .3s;
}
.som[hidden] { display: none; }
.som i { width: 7px; height: 7px; border-radius: 50%; background: var(--corrente); }
.som[aria-pressed="false"] i { background: rgba(250, 250, 247, .3); }
.som:hover { border-color: var(--corrente); color: var(--sal); }

@media (max-width: 760px) {
  .topo { top: 20px; left: 20px; right: 20px; }
  .rodape { left: 20px; right: 20px; bottom: 16px; font-size: 9px; }
  .rodape span:last-child { display: none; }
  .notif { width: 250px; height: 68px; }
}
@media (max-width: 900px) {
  #apresentacao { padding: 0 20px 110px; }
  #pinos { top: auto; bottom: 14px; right: 50%; transform: translateX(50%); }
  #pinos .slot-p:not(:first-child) { display: none; }
  .ap-bloco.b2 { margin-left: 40px; }
  .ap-rot-2 { margin-left: 60px; }
  .som { top: 18px; right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .seta, .btn-tobias, .alternar .indicador { transition-duration: .01s; }
}
