/* "E o token?" — o vídeo fica no Mac, o Claude só recebe texto (js/token.js). Igual na página principal e na /lista-de-espera.
   A pasta de brutos encolhe até virar um arquivo de texto, e só ele atravessa para o lado do Claude. Sem JS ou com movimento
   reduzido, a cena fica no fim (o texto já do lado do Claude). */


.tk-cabeca { text-align: center; max-width: 760px; margin: 0 auto; }
.tk .rotulo { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--azul-sel); margin-bottom: 16px; }
.tk h2 { font-size: clamp(40px, 6vw, 72px); }
.tk h2 em { font-style: italic; color: var(--azul-sel); }
.tk .lead { margin: 18px auto 0; }

/* o palco: Mac → texto → Claude */
.tk-palco { display: grid; grid-template-columns: minmax(0, 1.25fr) 150px minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 24px; }
.tk-lado { position: relative; padding: 20px; border-radius: var(--r3); border: 1px solid var(--linha-forte); background: linear-gradient(180deg, rgba(17,18,20,.9), rgba(10,11,13,.9)); }
.tk-lado-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.tk-lado-cab b { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.tk-conta-mini { font: 400 13px var(--mono); color: var(--ok); white-space: nowrap; }

/* a escolha: o que tem na pasta e o tamanho dela */
.tk-escolha { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 40px; }
.tk-grupo { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--linha-forte); background: rgba(255,255,255,.02); }
.tk-grupo-nome { display: inline-flex; align-items: center; min-height: 36px; font: 400 11.5px/1 var(--mono); color: var(--t3); letter-spacing: .04em; padding: 0 8px 0 12px; white-space: nowrap; }
.tk-op { all: unset; box-sizing: border-box; min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 14px; color: var(--t2); cursor: pointer; white-space: nowrap;
  transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.tk-op[aria-checked="true"] { background: var(--t1); color: #0c0d0f; }
.tk-op:focus-visible { box-shadow: 0 0 0 2px var(--azul-claro); }
@media (hover: hover) { .tk-op:not([aria-checked="true"]):hover { color: var(--t1); background: rgba(255,255,255,.06); } }

/* a pasta de brutos que encolhe */
.tk-pasta { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px; border-radius: 12px; background: rgba(15,27,56,.35); border: 1px dashed var(--azul-borda); }
.tk-pasta i { width: 34px; height: 26px; border-radius: 4px 6px 6px 6px; background: linear-gradient(180deg, #3a6cff, var(--azul)); position: relative; flex: none; }
.tk-pasta i::before { content: ""; position: absolute; left: 0; top: -5px; width: 14px; height: 7px; border-radius: 3px 3px 0 0; background: #3a6cff; }
.tk-pasta span { font-size: 14.5px; color: var(--t2); }
.tk-pasta .tk-peso { margin-left: auto; font: 400 30px/1 var(--serif); color: var(--t1); font-variant-numeric: tabular-nums; white-space: nowrap; }

.tk-passos { display: grid; gap: 8px; }
.tk-passos li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--linha); font-size: 15px; color: var(--t1); }
.tk-passos small { font: 400 11.5px var(--mono); color: var(--t3); white-space: nowrap; }

/* o meio: o arquivo de texto atravessa */
.tk-ponte { position: relative; height: 100%; min-height: 120px; display: grid; place-items: center; }
.tk-ponte::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, var(--azul-borda) 0 6px, transparent 6px 12px); }
.tk-arquivo { position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; padding: 10px 12px; border-radius: 10px; background: var(--s2); border: 1px solid var(--azul-claro);
  box-shadow: 0 0 24px -6px rgba(90,162,255,.8); font: 500 11px var(--mono); color: var(--azul-sel); text-align: center; }
.tk-arquivo b { font: 400 13px var(--sans); color: var(--t1); }
.tk-arquivo span { white-space: nowrap; }

.tk-conta { display: flex; align-items: baseline; gap: 10px; font: 400 clamp(44px, 5vw, 64px)/1 var(--serif); color: var(--t1); letter-spacing: -.02em; transform-origin: left center; }
.tk-un { font: 400 14px var(--mono); color: var(--t3); letter-spacing: 0; }
.tk-com { margin-top: 10px; font-size: 14px; color: var(--t3); }
.tk-com b { font-weight: 400; color: var(--t2); font-variant-numeric: tabular-nums; }
.tk-faz { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--linha); font-size: 15px; color: var(--t2); line-height: 1.5; }
/* trocou o material: o número entra de novo · trocou o tamanho: o número só pisca, porque não muda */
.tk-conta.pulso .tk-num { animation: tk-entra 420ms var(--sai); }
.tk-conta.igual { animation: tk-igual 600ms ease; }
@keyframes tk-entra { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes tk-igual { 0%, 100% { color: var(--t1); } 35% { color: var(--ok); } }
.tk-num { display: inline-block; }
.tk-lado.tk-claude { border-color: var(--azul-borda); }

.tk-nota { margin: 20px auto 0; max-width: 900px; text-wrap: balance; text-align: center; font-size: 14px; color: var(--t3); line-height: 1.6; }

/* a animação (só com JS e movimento liberado) */
.js .tk:not(.fim) .tk-passos li { opacity: .35; }
.js .tk:not(.fim) .tk-arquivo { opacity: 0; transform: translateX(-60px) scale(.85); }
.js .tk:not(.fim) .tk-claude p { opacity: .35; }
.js .tk.vai .tk-passos li { opacity: 1; transition: opacity 300ms ease; transition-delay: calc(var(--i, 0) * 280ms); }
.js .tk.vai .tk-arquivo { opacity: 1; transform: none; transition: opacity 400ms ease 1.5s, transform 900ms var(--sai) 1.5s; }
.js .tk.vai .tk-claude p { opacity: 1; transition: opacity 400ms ease 2.3s; }
.js .tk.vai .tk-pasta { border-color: var(--azul-claro); transition: border-color 300ms ease; }

@media (max-width: 860px) {
  .tk-palco { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tk-ponte { min-height: 90px; }
  .tk-ponte::before { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--azul-borda) 0 6px, transparent 6px 12px); }
  .js .tk:not(.fim) .tk-arquivo { transform: translateY(-30px) scale(.85); }
  .tk-escolha { gap: 10px; }
  .tk-grupo { flex-wrap: wrap; justify-content: center; border-radius: 22px; }
  .tk-grupo-nome { width: 100%; justify-content: center; min-height: 26px; padding: 4px 0 0; }
  .tk-lado-cab b { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { .js .tk .tk-arquivo, .js .tk .tk-passos li { transition: none !important; } .tk-conta, .tk-num { animation: none !important; } }
