/* ================================================================
   PEDAGOGIA TEC NA TELA
   - Cabeçalho comum das ferramentas de tela (.nt-topo) e o menu delas
   - Tela cheia padrão (botão Sair, aviso, botões que somem)
   - Página inicial /na-tela (.nt-hub)
   ================================================================ */
:root {
  --nt-fundo: #07080b;
  --nt-fundo-2: #0d0f14;
  --nt-cartao: #12141a;
  --nt-borda: #23262e;
  --nt-borda-forte: #353944;
  --nt-azul: #60a5fa;
  --nt-amarelo: #fbbf24;
}

/* ---------- Marca: Pedagogia Tec + selo "na Tela" ---------- */
.nt-marca {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nt-marca img { width: 24px; height: 24px; }
.nt-marca:hover { color: #fff; }
.nt-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.55rem 0.18rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}
.nt-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f87171;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.25);
  animation: nt-ao-vivo 2.4s ease-in-out infinite;
}
@keyframes nt-ao-vivo { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .nt-pill::before { animation: none; } }

/* ---------- Cabeçalho das ferramentas ---------- */
.nt-topo { background: rgba(7, 8, 11, 0.94); }
.nt-topo .tool-title { flex: 1; }
.nt-trocar {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 36px;
  padding: 0 0.85rem;
  flex-shrink: 0;
  border: 1px solid var(--nt-borda-forte);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.nt-trocar:hover, .nt-trocar.ativo { background: rgba(96, 165, 250, 0.12); border-color: rgba(96, 165, 250, 0.5); }
.nt-trocar .ico { width: 16px; height: 16px; }

.nt-gaveta {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 950;
  background: rgba(10, 11, 15, 0.98);
  border-bottom: 1px solid var(--nt-borda);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
  max-height: calc(100vh - var(--header-height, 56px));
  overflow-y: auto;
}
.nt-gaveta[hidden] { display: none; }
.nt-gaveta-in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem 0.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}
.nt-gaveta-grupo p {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.nt-gaveta-grupo a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.6rem;
  margin: 0 -0.6rem;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}
.nt-gaveta-grupo a:hover { background: rgba(255, 255, 255, 0.05); }
.nt-gaveta-grupo a[aria-current="page"] { background: rgba(255, 255, 255, 0.07); box-shadow: inset 3px 0 0 var(--nt-cor); }
.nt-g-ico {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 9px;
  color: var(--nt-cor);
  background: color-mix(in srgb, var(--nt-cor) 16%, transparent);
}
.nt-g-ico .ico { width: 17px; height: 17px; }
.nt-gaveta-pe {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  border-top: 1px solid var(--nt-borda);
}
.nt-gaveta-pe a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--nt-azul);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}
.nt-gaveta-pe a:hover { text-decoration: underline; }
.nt-gaveta-pe .ico { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .nt-trocar span { display: none; }
  .nt-trocar { width: 38px; padding: 0; justify-content: center; }
  .nt-gaveta-in { grid-template-columns: 1fr; padding: 0.9rem 1rem 0.4rem; gap: 0.9rem; }
  .nt-gaveta-pe { padding: 0.6rem 1rem 1rem; flex-direction: column; }
}
@media (max-width: 768px) {
  .nt-marca .nt-marca-nome { display: none; }
  /* No celular o nome da ferramenta some (style.css): o espaço vai para a marca */
  .nt-topo .nt-marca { margin-right: auto; }
}

/* ---------- Tela cheia padrão ---------- */
#btnTelaCheia.nt-sair {
  background: rgba(255, 255, 255, 0.92);
  border-color: transparent;
  color: #0b0c10;
}
#btnTelaCheia.nt-sair:hover { background: #fff; color: #000; }
.nt-aviso-sair {
  position: absolute;
  left: 50%;
  bottom: 4vh;
  transform: translateX(-50%);
  z-index: 50;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.5s;
}
.nt-aviso-sair kbd {
  padding: 0.05rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 5px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.9em;
}
.nt-aviso-sair.nt-some { opacity: 0; }
/* A Lousa fica em tela cheia na página toda: o aviso fica preso na tela */
html.nt-cheia > .nt-aviso-sair { position: fixed; }
.sala-palco.nt-quieto { cursor: none; }
.sala-palco .sala-palco-acoes { transition: opacity 0.4s; }
.sala-palco.nt-quieto .sala-palco-acoes { opacity: 0; }

/* ================================================================
   PÁGINA INICIAL /na-tela
   ================================================================ */
.nt-hub { background: var(--nt-fundo); }
.nt-hub .nt-topo .nt-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.nt-hub .nt-menu a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}
.nt-hub .nt-menu a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nt-hub .nt-menu .ico { width: 16px; height: 16px; }
@media (max-width: 760px) { .nt-hub .nt-menu .nt-menu-longo { display: none; } }

.nt-main { overflow: hidden; }
.nt-in { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

/* Herói: texto + "TV" com o cronômetro */
.nt-heroi {
  position: relative;
  padding: 4.2rem 0 3.6rem;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(124, 58, 237, 0.22), transparent 70%),
    radial-gradient(50% 60% at 10% 0%, rgba(37, 99, 235, 0.22), transparent 70%),
    var(--nt-fundo);
  border-bottom: 1px solid var(--nt-borda);
}
.nt-heroi .nt-in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
.nt-selo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.1);
  color: #bfdbfe;
  font-size: 0.8rem;
  font-weight: 700;
}
.nt-selo .ico { width: 15px; height: 15px; }
.nt-heroi h1 {
  margin: 1rem 0 0.9rem;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
}
.nt-heroi h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #60a5fa, #a78bfa 55%, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nt-heroi p.nt-sub {
  max-width: 34rem;
  margin: 0 0 1.6rem;
  color: #c7cad1;
  font-size: 1.1rem;
  line-height: 1.55;
}
.nt-acoes { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.nt-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 54px;
  padding: 0 1.5rem;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.nt-btn .ico { width: 20px; height: 20px; }
.nt-btn-claro { background: #fff; color: #0b0c10; box-shadow: 0 10px 30px rgba(96, 165, 250, 0.25); }
.nt-btn-claro:hover { transform: translateY(-1px); background: #e8efff; }
.nt-btn-vazado { border: 1px solid var(--nt-borda-forte); color: #fff; background: rgba(255, 255, 255, 0.03); }
.nt-btn-vazado:hover { border-color: #6b7280; background: rgba(255, 255, 255, 0.07); }
.nt-fatos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: #a1a6b0;
  font-size: 0.9rem;
}
.nt-fatos li { display: inline-flex; align-items: center; gap: 0.4rem; }
.nt-fatos .ico { width: 16px; height: 16px; color: #4ade80; }

/* A TV */
.nt-tv-area { position: relative; }
.nt-tv {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  padding: 12px;
  background: linear-gradient(180deg, #24262d, #15161b);
  box-shadow: 0 0 0 1px #2e3139, 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 120px rgba(96, 165, 250, 0.12);
}
.nt-tv::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -26px;
  width: 26%;
  height: 26px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #1a1b20, #0f1013);
  clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
}
.nt-tv-tela {
  position: relative;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(110% 90% at 50% 0%, #142033 0%, #05060a 70%);
}
.nt-tv-rotulo {
  position: absolute;
  top: 5%;
  left: 0;
  right: 0;
  text-align: center;
  color: #cbd5e1;
  font-size: clamp(0.7rem, 1.4vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nt-anel {
  --p: 0.72;
  position: relative;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(#60a5fa calc(var(--p) * 360deg), rgba(255, 255, 255, 0.07) 0);
  display: grid;
  place-items: center;
  margin-top: 9%;
}
.nt-anel::before {
  content: "";
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background: #070a10;
}
.nt-anel b {
  position: relative;
  color: #fff;
  font-size: clamp(1.6rem, 5.2vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.nt-cel {
  position: absolute;
  right: -4%;
  bottom: -12%;
  width: 24%;
  aspect-ratio: 9 / 18;
  border-radius: 16px;
  padding: 5px;
  background: #1f2128;
  box-shadow: 0 0 0 1px #3a3d46, 0 20px 40px rgba(0, 0, 0, 0.6);
  transform: rotate(6deg);
}
.nt-cel-tela {
  height: 100%;
  border-radius: 12px;
  background: #0b0d12;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9%;
  padding: 0 14%;
}
.nt-cel-tela i {
  display: block;
  height: 13%;
  border-radius: 6px;
  background: #1f2937;
}
.nt-cel-tela i:first-child { background: #2563eb; }
.nt-cel-tela i:nth-child(2) { background: #374151; }
.nt-cel-legenda {
  position: absolute;
  right: 22%;
  bottom: -14%;
  color: #a1a6b0;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Seções */
.nt-sec { padding: 3.4rem 0 0.5rem; }
.nt-sec-cab { margin-bottom: 1.4rem; }
.nt-sec-cab span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--nt-azul);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.nt-sec-cab h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.nt-grupo { margin-bottom: 2rem; }
.nt-grupo-tit {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.9rem;
  color: #e5e7eb;
  font-size: 1.05rem;
  font-weight: 700;
}
.nt-grupo-tit .ico { width: 19px; height: 19px; color: var(--text-muted); }
.nt-grade {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

/* Cartão: uma "telinha" com o ícone + nome */
.nt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: var(--nt-cartao);
  border: 1px solid var(--nt-borda);
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.nt-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--nt-cor) 55%, transparent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px color-mix(in srgb, var(--nt-cor) 30%, transparent);
}
.nt-card-tela {
  position: relative;
  height: 128px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(70% 90% at 50% 10%, color-mix(in srgb, var(--nt-cor) 32%, transparent), transparent 70%),
    #08090d;
  border-bottom: 1px solid var(--nt-borda);
}
.nt-card-tela .ico {
  width: 58px;
  height: 58px;
  color: var(--nt-cor);
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--nt-cor) 60%, transparent));
  transition: transform 0.25s;
}
.nt-card:hover .nt-card-tela .ico { transform: scale(1.08); }
.nt-card-selo {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d1d5db;
  font-size: 0.7rem;
  font-weight: 600;
}
.nt-card-selo .ico { width: 12px !important; height: 12px !important; color: #d1d5db !important; filter: none !important; }
.nt-card-txt { display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem 1.1rem 1.1rem; flex: 1; }
.nt-card-txt strong { color: #fff; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.nt-card-txt small { color: #a1a6b0; font-size: 0.9rem; line-height: 1.45; }
.nt-card-txt em {
  margin-top: auto;
  padding-top: 0.6rem;
  color: var(--nt-cor);
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Como levar para a TV */
.nt-passos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: nt;
}
.nt-passos li {
  position: relative;
  padding: 1.4rem 1.3rem 1.3rem;
  border-radius: 18px;
  background: var(--nt-fundo-2);
  border: 1px solid var(--nt-borda);
}
.nt-passos li::before {
  counter-increment: nt;
  content: counter(nt);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.8rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}
.nt-passos b { display: block; margin-bottom: 0.3rem; color: #fff; font-size: 1.05rem; }
.nt-passos p { margin: 0; color: #a1a6b0; font-size: 0.93rem; line-height: 1.5; }
.nt-teclas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.4rem;
  margin-top: 1rem;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  border: 1px dashed var(--nt-borda-forte);
  color: #c7cad1;
  font-size: 0.92rem;
}
.nt-teclas b { color: #fff; }
.nt-teclas kbd {
  display: inline-block;
  min-width: 1.9em;
  padding: 0.12rem 0.45rem;
  margin-right: 0.3rem;
  border: 1px solid #4b5060;
  border-bottom-width: 3px;
  border-radius: 6px;
  background: #15171d;
  color: #fff;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85rem;
  text-align: center;
}

/* Faixa de volta para as folhas */
.nt-folhas {
  margin: 3.4rem 0 0;
  padding: 2.2rem 0;
  background: var(--nt-fundo-2);
  border-top: 1px solid var(--nt-borda);
}
.nt-folhas .nt-in { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.nt-folhas-ico {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(96, 165, 250, 0.12);
  color: var(--nt-azul);
}
.nt-folhas-ico .ico { width: 28px; height: 28px; }
.nt-folhas-txt { flex: 1; min-width: 240px; }
.nt-folhas-txt h2 { margin: 0 0 0.25rem; color: #fff; font-size: 1.25rem; font-weight: 800; }
.nt-folhas-txt p { margin: 0; color: #a1a6b0; font-size: 0.95rem; }

/* Dúvidas */
.nt-faq { display: grid; gap: 0.6rem; max-width: 820px; }
.nt-faq details {
  border-radius: 14px;
  background: var(--nt-fundo-2);
  border: 1px solid var(--nt-borda);
}
.nt-faq summary {
  padding: 1rem 1.2rem;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.nt-faq p { margin: 0; padding: 0 1.2rem 1.1rem; color: #b3b7c0; line-height: 1.55; }

.nt-rodape { padding: 2.6rem 0 1.4rem; border-top: 1px solid var(--nt-borda); background: var(--nt-fundo); }
.nt-rodape-in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 1.6rem; }
.nt-rodape-marca p { margin: 0.7rem 0 0; color: #8f949e; font-size: 0.9rem; max-width: 18rem; }
.nt-rodape-col h4 { margin: 0 0 0.6rem; color: #fff; font-size: 0.85rem; font-weight: 700; }
.nt-rodape-col a { display: block; padding: 0.22rem 0; color: #a1a6b0; font-size: 0.88rem; text-decoration: none; }
.nt-rodape-col a:hover { color: #fff; }
.nt-rodape-fim { margin: 2rem 0 0; text-align: center; color: #6b7080; font-size: 0.8rem; }
@media (max-width: 760px) { .nt-rodape-in { grid-template-columns: 1fr 1fr; } .nt-rodape-marca { grid-column: 1 / -1; } }

@media (max-width: 900px) {
  .nt-heroi { padding: 2.4rem 0 3.4rem; }
  .nt-heroi .nt-in { grid-template-columns: 1fr; gap: 2.4rem; }
  .nt-tv-area { max-width: 520px; width: 92%; margin: 0 auto; }
  .nt-passos { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nt-in { padding: 0 1rem; }
  .nt-heroi h1 { font-size: 2rem; }
  .nt-heroi p.nt-sub { font-size: 1rem; }
  .nt-btn { width: 100%; justify-content: center; }
  .nt-grade { grid-template-columns: 1fr; }
  .nt-card { flex-direction: row; }
  .nt-card-tela { width: 104px; height: auto; min-height: 112px; flex-shrink: 0; border-bottom: 0; border-right: 1px solid var(--nt-borda); }
  .nt-card-tela .ico { width: 42px; height: 42px; }
  .nt-card-selo { display: none; }
  .nt-card-txt { padding: 0.85rem 0.95rem; }
  .nt-card-txt strong { font-size: 1rem; }
  .nt-card-txt small { font-size: 0.85rem; }
  .nt-cel-legenda { display: none; }
}
