/* Passo a passo ilustrado (tutorial.js). Funciona no fundo escuro (landing) e no claro (app):
   o texto herda a cor da página; as "telas" desenhadas são sempre claras, como o app real. */
.tm { container-type: inline-size; --tm-azul: #2563EB; --tm-linha: #E4E8EF; --tm-cinza: #F3F5F9; --tm-texto: #1C2333; --tm-sub: #6B7486; }
.tm-passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
.tm-passo { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tm-txt { position: relative; padding-left: 40px; }
.tm-num { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 9px; background: var(--tm-azul); color: #fff; font: 700 14px/28px Sora, Inter, system-ui, sans-serif; text-align: center; }
.tm-txt h3 { margin: 2px 0 6px; font-size: 1rem; line-height: 1.3; }
.tm-txt p { margin: 0; font-size: .9rem; line-height: 1.55; opacity: .86; }
.tm-id { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0; flex-wrap: wrap; }
.tm-id code { font: 600 .85rem/1.2 ui-monospace, Menlo, monospace; background: rgba(79,127,255,.14); border: 1px solid rgba(79,127,255,.35); padding: 5px 8px; border-radius: 8px; overflow-wrap: anywhere; }
.tm-copiar { font: 700 .78rem/1 Sora, Inter, system-ui, sans-serif; border: 0; background: var(--tm-azul); color: #fff; padding: 8px 12px; border-radius: 8px; cursor: pointer; min-height: 38px; }
.tm-copiar:focus-visible { outline: 2px solid #4F7FFF; outline-offset: 2px; }
.tm-nota { margin: 22px 0 0; font-size: .85rem; line-height: 1.55; opacity: .75; max-width: 760px; }

/* ---- a tela desenhada ---- */
.tm-tela { background: #fff; color: var(--tm-texto); border-radius: 14px; overflow: hidden; box-shadow: 0 14px 40px rgba(2,6,23,.28), 0 0 0 1px rgba(148,163,184,.25); font: 500 10.5px/1.25 Inter, system-ui, sans-serif; aspect-ratio: 4 / 3; display: flex; flex-direction: column; user-select: none; }
.tm-barra { display: flex; align-items: center; gap: 4px; padding: 7px 9px; background: var(--tm-cinza); border-bottom: 1px solid var(--tm-linha); }
.tm-barra i { width: 7px; height: 7px; border-radius: 50%; background: #CBD2DD; }
.tm-barra span { margin-left: 8px; flex: 1; background: #fff; border-radius: 6px; padding: 3px 8px; color: var(--tm-sub); font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-corpo { flex: 1; display: flex; min-height: 0; }
.tm-lado { width: 52%; overflow: hidden; border-right: 1px solid var(--tm-linha); padding: 8px 6px; display: flex; flex-direction: column; gap: 2px; background: #FBFCFE; }
.tm-area { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 7px; min-width: 0; position: relative; }
.tm-cheia { width: 100%; }
.tm-perfil { display: flex; align-items: center; gap: 6px; padding: 2px 4px 4px; }
.tm-av { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #F2B544, #7A3E1D); flex: 0 0 auto; display: inline-block; }
.tm-av.pq { width: 14px; height: 14px; }
.tm-grupo { font-size: 8.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--tm-sub); padding: 6px 6px 2px; font-weight: 700; }
.tm-item { display: flex; align-items: center; gap: 6px; padding: 4px 6px; overflow: hidden; text-overflow: ellipsis; min-width: 0; border-radius: 7px; white-space: nowrap; position: relative; }
.tm-ico { width: 13px; height: 13px; flex: 0 0 auto; }
.tm-on { background: #E8EFFE; color: var(--tm-azul); font-weight: 700; }
.tm-fundo { margin-top: auto; }
.tm-l { display: block; height: 7px; border-radius: 4px; background: #E9EDF3; }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w80 { width: 80%; }
.tm-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; flex: 1; }
.tm-cards i { background: var(--tm-cinza); border-radius: 8px; }
.tm-tit { font: 700 12px/1.2 Sora, Inter, system-ui, sans-serif; }
.tm-vazio { margin-top: auto; border: 1px dashed #CBD2DD; border-radius: 8px; padding: 10px; text-align: center; color: var(--tm-sub); }
.tm-topo { display: flex; justify-content: space-between; align-items: center; }
.tm-btn { background: var(--tm-azul); color: #fff; border-radius: 7px; padding: 5px 9px; font-weight: 700; white-space: nowrap; position: relative; display: inline-block; }
.tm-btn.tm-claro { background: var(--tm-cinza); color: var(--tm-texto); }
.tm-menu { align-self: flex-end; width: 88%; background: #fff; border: 1px solid var(--tm-linha); border-radius: 9px; box-shadow: 0 10px 24px rgba(15,23,42,.14); padding: 4px; }
.tm-op { padding: 7px 8px; border-radius: 6px; position: relative; display: flex; align-items: center; gap: 6px; }
.tm-modal-fundo { background: rgba(15,23,42,.42); justify-content: center; align-items: center; }
.tm-modal { background: #fff; border-radius: 11px; padding: 11px; width: 92%; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 16px 40px rgba(2,6,23,.35); }
.tm-rot { margin: 2px 0 0; color: var(--tm-sub); font-size: 9.5px; }
.tm-campo { border: 1.5px solid var(--tm-azul); border-radius: 7px; padding: 7px 8px; font: 600 10px/1.2 ui-monospace, Menlo, monospace; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tm-cursor { display: inline-block; width: 1px; height: 11px; background: var(--tm-texto); vertical-align: middle; margin-left: 1px; animation: tm-pisca 1s steps(1) infinite; }
.tm-acoes { display: flex; justify-content: flex-end; gap: 6px; margin-top: auto; }
.tm-dupla { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; flex: 1; }
.tm-col { display: flex; flex-direction: column; gap: 4px; }
.tm-ck { display: flex; align-items: center; gap: 6px; padding: 6px; border: 1px solid var(--tm-linha); border-radius: 7px; }
.tm-ck i { width: 11px; height: 11px; border-radius: 3px; border: 1.5px solid #9AA4B5; flex: 0 0 auto; }
.tm-ck.tm-sim i { background: var(--tm-azul) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/100% no-repeat; border-color: var(--tm-azul); }
.tm-perm { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; }
.tm-chave { width: 22px; height: 12px; border-radius: 9px; background: var(--tm-azul); position: relative; }
.tm-chave::after { content: ""; position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.tm-chave.off { background: #CBD2DD; }
.tm-chave.off::after { right: auto; left: 2px; }
/* o "dedo" que mostra onde tocar */
.tm-toque { position: absolute; right: 6px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: rgba(37,99,235,.28); box-shadow: 0 0 0 2px rgba(37,99,235,.55); animation: tm-pulso 1.8s ease-out infinite; pointer-events: none; }
.tm-btn .tm-toque { right: -6px; top: -4px; margin: 0; }
@keyframes tm-pulso { 0% { transform: scale(.7); opacity: 1; } 70% { transform: scale(1.5); opacity: 0; } 100% { opacity: 0; } }
@keyframes tm-pisca { 50% { opacity: 0; } }
/* 3 + 2 por linha: com 5 numa linha as telinhas ficam espremidas (testado em 11/10) */
@container (min-width: 500px) { .tm-passos { grid-template-columns: repeat(2, 1fr); } }
@container (min-width: 760px) { .tm-passos { grid-template-columns: repeat(3, 1fr); gap: 24px 20px; } }
.tm-dica { display: none; margin: 0 0 12px; font-size: .82rem; opacity: .75; }
@media (prefers-reduced-motion: reduce) { .tm-toque, .tm-cursor { animation: none; } }
@media (max-width: 560px) {
  .tm-passos { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; -webkit-overflow-scrolling: touch; }
  .tm-passo { scroll-snap-align: start; }
  .tm-dica { display: block; }
}
