/* ================================================================
   PEDAGOGIA TEC — PÁGINAS DO SITE (home, perfil, admin, suporte)
   Depende de css/style.css (tokens e componentes base).
   ================================================================ */

/* ========== CABEÇALHO DO SITE ========== */
.home-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 max(1.5rem, calc((100vw - 1200px) / 2));
  background: rgba(19, 20, 24, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  width: 26px;
  height: 26px;
}

.site-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.site-breadcrumb .crumb-sep {
  color: var(--border-hover);
}

.site-breadcrumb .crumb-current {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  align-items: center;
}

.top-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.86rem;
  transition: color 0.15s ease;
}

.top-nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0; /* o menu nunca espreme a foto do perfil nem o botão de entrar */
}

/* ========== CONTAINER DAS PÁGINAS ========== */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== AVISO GLOBAL ========== */
.announcement-banner {
  margin: 1.25rem 0 0;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text);
}

.announcement-banner.tipo-novidade { border-left-color: var(--success); }
.announcement-banner.tipo-alerta { border-left-color: var(--warning); }

.announcement-banner .announcement-text {
  flex: 1;
  min-width: 0;
}

.announcement-banner a {
  color: var(--accent);
  font-weight: 600;
  margin-left: 0.4rem;
}

.announcement-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.3rem;
  border-radius: var(--radius);
}

.announcement-close:hover {
  color: var(--text);
  background: var(--surface-hover);
}

/* ========== HERO DA HOME ========== */
.hero-home {
  padding: 3.5rem 0 1.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  align-items: center;
  gap: 2.5rem;
}

.hero-texto {
  max-width: 640px;
}

/* Galeria de folhas reais */
.galeria-home {
  margin: 0 0 2.25rem;
}

.galeria-topo {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.galeria-topo h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.galeria-topo span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.galeria-trilho {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 168px;
  gap: 0.9rem;
  overflow-x: auto;
  padding: 0.25rem 0.1rem 0.9rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.galeria-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--text);
  text-decoration: none;
  scroll-snap-align: start;
}

.galeria-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 360 / 509;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--border), 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 0.45rem;
}

.galeria-item:hover img,
.galeria-item:focus-visible img {
  transform: translateY(-4px);
  box-shadow: 0 0 0 2px var(--accent), 0 14px 28px rgba(0, 0, 0, 0.45);
}

.galeria-nome {
  font-weight: 700;
  font-size: 0.86rem;
}

.galeria-desc {
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

@media (min-width: 1100px) {
  .galeria-trilho {
    grid-auto-flow: row;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    overflow: visible;
  }
}

@media (max-width: 768px) {
  .galeria-trilho {
    grid-auto-columns: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .galeria-item img {
    transition: none;
  }
}

/* Como funciona: 3 passos */
.passos-home {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 2.25rem;
  padding: 0;
}

.passos-home li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.passos-home strong {
  color: var(--text);
}

.passo-n {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.18); /* iOS < 16.2 não tem color-mix() */
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
}

@media (max-width: 1000px) {
  .hero-home {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.5rem;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
}

.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.hero-home h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.hero-home h1 .hl {
  color: var(--accent);
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 1.75rem;
}

.hero-search-wrap {
  position: relative;
  max-width: 560px;
}

.hero-search-wrap .search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}

.hero-search-wrap input {
  height: 48px;
  padding: 0 4rem 0 2.75rem;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  background: var(--surface);
}

.search-kbd {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  pointer-events: none;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  list-style: none;
}

.hero-points li::before {
  content: '✓';
  color: var(--success);
  margin-right: 0.4rem;
  font-weight: 700;
}

/* ========== ATALHOS (recentes / favoritas) ========== */
.quick-row {
  margin: 0 0 2rem;
}

.quick-row-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.quick-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.83rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.quick-chip:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

/* ========== FILTROS POR CATEGORIA ========== */
.filter-pills {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
  margin-bottom: 0.5rem;
  position: sticky;
  top: var(--header-height);
  z-index: 50;
  background: var(--bg);
  padding-top: 0.75rem;
}

.filter-pills::-webkit-scrollbar {
  display: none;
}

.category-pill {
  flex-shrink: 0;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.category-pill:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.category-pill.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  font-weight: 600;
}

.category-pill .pill-count {
  opacity: 0.6;
  margin-left: 0.2rem;
}

#searchFeedback {
  display: none;
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

#searchFeedback strong {
  color: var(--text);
}

/* ========== SEÇÕES E CARDS DE FERRAMENTAS ========== */
.section-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin: 2.5rem 0 1rem;
}

.section-heading h2 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-heading .s-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.tools-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.tool-card-new {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1rem 1rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.tool-card-new:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.tool-card-new:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.tc-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 1.3rem;
  line-height: 1;
}

.tc-body {
  flex: 1;
  min-width: 0;
  padding-right: 1.5rem;
}

.tc-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.93rem;
  font-weight: 650;
  color: var(--text);
  line-height: 1.3;
}

.tc-desc {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tc-tag {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.tc-tag.novo { background: var(--tag-new-bg); color: var(--tag-new); }
.tc-tag.essencial,
.tc-tag.mais-usado,
.tc-tag.destaque { background: var(--tag-essential-bg); color: var(--tag-essential); }
.tc-tag.economize { background: var(--success-soft); color: #86efac; }

.tc-fav-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-subtle);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.tc-fav-btn:hover {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
}

.tc-fav-btn.favorited {
  color: #fbbf24;
}

.empty-block {
  margin-top: 1.5rem;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.empty-block strong {
  color: var(--text);
}

.empty-block small {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
}

/* ========== COMPARTILHAR ========== */
.share-banner {
  margin: 3.5rem 0;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.share-banner h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.share-banner p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.btn-whatsapp-share {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  background: #16a34a;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.btn-whatsapp-share:hover {
  background: #15803d;
}

/* ========== FAQ E SOBRE ========== */
.home-section-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.faq-item p {
  padding: 0 1rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-item summary {
  cursor: pointer;
  padding: 0.9rem 1rem;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  color: var(--text-muted);
}

.faq-item[open] summary::after {
  content: '−';
}

.seo-accordion {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.seo-accordion summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.seo-accordion summary::-webkit-details-marker {
  display: none;
}

.seo-accordion-content {
  padding: 0 1.25rem 1.5rem;
}

.seo-accordion-content h3 {
  font-size: 1.1rem;
  margin: 0.5rem 0 0.6rem;
}

.seo-accordion-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.seo-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.seo-columns > div {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}

.seo-columns h4 {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.seo-columns ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.seo-columns a {
  color: var(--text-muted);
  font-size: 0.84rem;
  text-decoration: none;
}

.seo-columns a:hover {
  color: var(--text);
}

/* ========== RODAPÉ DO SITE ========== */
.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-grid h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}

.footer-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-grid a {
  color: var(--text-muted);
  font-size: 0.86rem;
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-grid p {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.footer-brand img {
  width: 26px;
  height: 26px;
}

/* ========== VOLTAR AO TOPO ========== */
#backToTopBtn {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 800;
}

#backToTopBtn.visible {
  opacity: 1;
  pointer-events: auto;
}

#backToTopBtn:hover {
  border-color: var(--border-hover);
}

/* ========== CABEÇALHO DE PÁGINA INTERNA (perfil, admin, suporte) ========== */
.page-intro {
  padding: 2.75rem 0 1.75rem;
}

.page-intro h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.page-intro p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 620px;
}

/* ========== RESPONSIVO ========== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .home-header {
    padding: 0 1rem;
  }

  .top-nav {
    display: none;
  }

  .site-main {
    padding: 0 1rem;
  }

  .hero-home {
    padding: 2.25rem 0 1.25rem;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .passos-home {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
  }

  .passos-home li {
    padding: 0.6rem 0.85rem;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .tools-grid-new {
    grid-template-columns: 1fr;
  }

  .share-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  #backToTopBtn {
    left: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .search-kbd {
    display: none;
  }

  .hero-search-wrap input {
    padding-right: 1rem;
  }

  .site-breadcrumb .crumb-sep,
  .site-breadcrumb .crumb-current {
    display: none;
  }
}

/* Ícones dos cards: cor por categoria */
.tc-icon .ico {
  width: 20px;
  height: 20px;
}

/* Uma cor por categoria: ícone do card, marcador do título da seção e "Comece por aqui" */
[data-cat="matematica"], [data-section="matematica"] { --cat: #60a5fa; }
[data-cat="alfabetizacao"], [data-section="alfabetizacao"] { --cat: #fbbf24; }
[data-cat="ciencias"], [data-section="ciencias"] { --cat: #4ade80; }
[data-cat="inclusao"], [data-section="inclusao"] { --cat: #f472b6; }
[data-cat="infantil"], [data-section="infantil"] { --cat: #fb923c; }
[data-cat="datas"], [data-section="datas"] { --cat: #e879f9; }
[data-cat="gamificacao"], [data-section="gamificacao"] { --cat: #fb7185; }
[data-cat="avaliacao"], [data-section="avaliacao"] { --cat: #34d399; }
[data-cat="pdf"], [data-section="pdf"] { --cat: #f87171; }
[data-cat="tv"], [data-section="tv"] { --cat: #a78bfa; }
[data-cat="imagem"], [data-section="imagem"] { --cat: #22d3ee; }

.tool-card-new .tc-icon {
  color: var(--cat, var(--text-secondary));
  background: var(--surface-2);
  background: color-mix(in srgb, var(--cat, var(--text-muted)) 10%, var(--surface-2));
  border-color: color-mix(in srgb, var(--cat, var(--border)) 22%, var(--border));
}

.tool-card-new:hover {
  border-color: color-mix(in srgb, var(--cat, var(--border-hover)) 45%, var(--border-hover));
}

.tool-section .section-heading h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.tool-section .section-heading h2::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--cat, var(--text-muted));
  flex-shrink: 0;
}

.quick-chip .ico,
.seo-columns h4 .ico,
.category-pill .ico {
  color: var(--text-muted);
}

/* ========== SELO "IA" ========== */
:root {
  --ia: #c084fc;
  --ia-soft: rgba(168, 85, 247, 0.14);
  --ia-border: rgba(192, 132, 252, 0.35);
}

.tc-tag.ia {
  background: var(--ia-soft);
  color: var(--ia);
  border: 1px solid var(--ia-border);
  padding: 0.08rem 0.4rem;
}

/* ========== TÍTULO PADRÃO DOS BLOCOS DA HOME ========== */
.bloco-topo {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.bloco-topo h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.bloco-topo span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ========== HERO: FAIXA DA IA ========== */
.hero-ia {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
  max-width: 560px;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--ia-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(168, 85, 247, 0.14), rgba(59, 130, 246, 0.08) 70%, transparent);
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.45;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.hero-ia:hover {
  border-color: var(--ia);
  transform: translateY(-1px);
}

.hero-ia-icone {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ia-soft);
  color: var(--ia);
}

.hero-ia-icone .ico {
  width: 18px;
  height: 18px;
}

.hero-ia-texto {
  flex: 1;
  min-width: 0;
}

.hero-ia-texto strong {
  color: var(--text);
  display: block;
}

.hero-ia-texto em {
  font-style: normal;
  color: var(--ia);
  font-weight: 600;
}

.hero-ia-seta {
  color: var(--ia);
  font-weight: 700;
  flex-shrink: 0;
}

#numerosProva strong {
  color: var(--text);
}

/* ========== COMECE POR AQUI ========== */
.comece-home {
  margin: 0 0 2.5rem;
}

.comece-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.comece-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.comece-card:hover,
.comece-card:focus-visible {
  transform: translateY(-2px);
  background: var(--surface-hover);
  border-color: color-mix(in srgb, var(--cat) 50%, var(--border-hover));
}

.comece-icone {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0.55rem;
  border-radius: var(--radius-md);
  color: var(--cat, var(--text-secondary));
  background: var(--surface-2);
  background: color-mix(in srgb, var(--cat, var(--text-muted)) 14%, var(--surface-2));
}

/* Posição no ranking das mais usadas (discreta, no canto) */
.comece-pos {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  opacity: 0.75;
}

.comece-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.comece-icone .ico {
  width: 20px;
  height: 20px;
}

.comece-nome {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.3;
}

.comece-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* ========== BLOCO DA IA (discreto, depois da lista de ferramentas) ========== */
.ia-home {
  margin: 3rem 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.ia-home-topo {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
}

.ia-home-ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.12);
  color: var(--ia);
}

.ia-home-ico .ico { width: 18px; height: 18px; }

.ia-home-texto { flex: 1; min-width: 0; }

.ia-home h2 {
  margin: 0 0 0.15rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ia-home-texto > p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.ia-home-link {
  flex-shrink: 0;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ia-home-link:hover { color: var(--text); }

.ia-home-lista {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.4rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.ia-home-lista-titulo {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.ia-home-lista-itens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
}

.ia-home-lista-itens a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.ia-home-lista-itens a .ico {
  width: 13px;
  height: 13px;
  color: var(--text-subtle);
  transition: var(--transition);
}

.ia-home-lista-itens a:hover { color: var(--text); }
.ia-home-lista-itens a:hover .ico { color: var(--ia); }

/* ========== PARA ESTE MÊS (datas da época) ========== */
.epoca-home {
  margin: 0 0 2.5rem;
}

.epoca-trilho {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.epoca-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  scroll-snap-align: start;
}

.epoca-data {
  align-self: flex-start;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--warning-soft);
  color: #fcd34d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.epoca-nome {
  font-weight: 700;
  font-size: 0.95rem;
}

.epoca-dica {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.epoca-ferramentas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.3rem;
}

.epoca-ferramentas a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.epoca-ferramentas a .ico {
  width: 13px;
  height: 13px;
  color: var(--cat, var(--text-muted));
}

.epoca-ferramentas a:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

@media (min-width: 1100px) {
  .epoca-trilho {
    grid-auto-flow: row;
    grid-template-columns: repeat(var(--epoca-colunas, 3), minmax(0, 1fr));
    overflow: visible;
  }
}

/* ========== PÍLULAS: indicação de que há mais à direita ========== */
#ferramentas {
  scroll-margin-top: calc(var(--header-height) + 0.5rem);
}

.filter-pills-wrap {
  position: relative;
}

.filter-pills-wrap::before,
.filter-pills-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 51;
}

.filter-pills-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.filter-pills-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.filter-pills-wrap.mais-esq::before,
.filter-pills-wrap.mais-dir::after {
  opacity: 1;
}

.pills-seta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  z-index: 52;
  box-shadow: var(--shadow-md);
}

.pills-seta .ico {
  width: 16px;
  height: 16px;
}

.pills-seta.dir { right: 0; }
.pills-seta.esq { left: 0; }

.filter-pills-wrap.mais-dir .pills-seta.dir,
.filter-pills-wrap.mais-esq .pills-seta.esq {
  display: flex;
}

@media (hover: none) {
  .pills-seta {
    display: none !important;
  }
}

/* ========== CATEGORIAS RECOLHIDAS: "Ver todas" ========== */
.tool-section.recolhida .tool-card-new.tc-extra {
  display: none;
}

.ver-todas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.65rem 1rem;
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.ver-todas:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--cat, var(--border-hover));
}

.ver-todas .ico {
  width: 15px;
  height: 15px;
}

.ver-todas[hidden] {
  display: none;
}

/* ========== RESPONSIVO DOS BLOCOS NOVOS ========== */
@media (max-width: 1000px) {
  .comece-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (max-width: 768px) {
  .hero-ia {
    font-size: 0.8rem;
    padding: 0.65rem 0.8rem;
  }

  .comece-home,
  .epoca-home {
    margin-bottom: 1.75rem;
  }

  .comece-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .comece-card {
    padding: 0.8rem;
  }

  .comece-icone {
    width: 34px;
    height: 34px;
    margin-bottom: 0.4rem;
  }

  .comece-desc {
    display: none;
  }


  .epoca-trilho {
    grid-auto-columns: 230px;
  }
}

@media (max-width: 768px) {
  .ia-home { margin-top: 2.25rem; }
  .ia-home-topo { flex-wrap: wrap; align-items: flex-start; gap: 0.75rem; padding: 1rem; }
  .ia-home-texto { flex-basis: calc(100% - 50px); }
  .ia-home-link { margin-left: 50px; font-size: 0.8rem; }
  .ia-home-lista { flex-direction: column; align-items: flex-start; gap: 0.3rem; padding: 0.7rem 1rem 0.8rem; }
  .ia-home-lista-itens { gap: 0.1rem 0.85rem; }
  .ia-home-lista-itens a { font-size: 0.78rem; }
  .ia-home-lista-itens a .ico { display: none; }
}

/* ================================================================
   TOPO DA HOME — fundo de caderno, marca-texto, atalhos, botões,
   lousa e título vivo (body.hero-ludico)
   ================================================================ */

/* Fundo com clima de caderno: degradê + grade sutil, sumindo para baixo */
.hero-fundo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 820px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 700px 480px at 12% 8%, rgba(59, 130, 246, 0.22), transparent 70%),
    radial-gradient(ellipse 620px 440px at 88% 22%, rgba(168, 85, 247, 0.2), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 32px);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

/* O conteúdo fica acima do fundo decorativo; o cabeçalho (e o menu do perfil) acima de tudo */
.site-main {
  position: relative;
  z-index: 1;
}

.home-header {
  position: sticky;
  z-index: 900;
}

/* Menu: "IA grátis" e botão de entrar em azul */
.top-nav .nav-ia {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--ia);
  font-weight: 600;
}

.nav-breve { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .1rem .4rem; border-radius: 999px; background: rgba(34, 211, 238, .16); color: #67e8f9; }
/* Barra cheia (IA, Acadêmico e Lab): numa linha só; em telas menores some o "em breve" e encurta */
.top-nav a { white-space: nowrap; }
/* Menu cabe numa linha com a foto do perfil ou o botão de entrar ao lado:
   os itens somem/encurtam aos poucos conforme a tela estreita.
   O "em breve" só aparece logado (o botão de entrar ocupa mais espaço). */
.top-nav ul { gap: 1.1rem; }
.top-nav .nav-breve { display: none; }
@media (min-width: 1120px) { .home-header:has(.user-menu-wrapper) .top-nav .nav-breve { display: inline; } }
@media (min-width: 769px) and (max-width: 880px) {
  .home-header .btn-google-skin .google-btn-text { display: inline; font-size: 0; }
  .home-header .btn-google-skin .google-btn-text::after { content: "Entrar"; font-size: 0.82rem; }
}

.top-nav .nav-ia .ico {
  width: 14px;
  height: 14px;
}

.home-header .btn-google-skin {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.home-header .btn-google-skin:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.hero-eyebrow-ia {
  color: var(--ia);
  font-weight: 600;
}

/* Marca-texto amarelo atrás de "em segundos" */
.hero-home h1 {
  isolation: isolate;
}

.hero-home h1 .hl {
  position: relative;
  display: inline-block;
  color: var(--text);
}

.hero-home h1 .hl::before {
  content: '';
  position: absolute;
  left: -0.1em;
  right: -0.1em;
  top: 0.18em;
  bottom: 0.02em;
  background: rgba(250, 204, 21, 0.42);
  border-radius: 0.35em 0.5em 0.4em 0.6em;
  transform: rotate(-1.5deg);
  z-index: -1;
}

/* Atalhos abaixo da busca */
.hero-atalhos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
  font-size: 0.8rem;
}

.hero-atalhos > span {
  color: var(--text-muted);
  margin-right: 0.15rem;
}

.hero-atalhos a {
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.hero-atalhos a:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

/* Botões */
.hero-acoes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
  margin-top: 1.4rem;
}

.btn-hero {
  padding: 0.75rem 1.3rem;
  font-size: 0.92rem;
}

.btn-hero-ia {
  padding: 0.75rem 1.2rem;
  font-size: 0.92rem;
  background: var(--ia-soft);
  border-color: var(--ia-border);
  color: var(--text);
}

.btn-hero-ia .ico {
  width: 16px;
  height: 16px;
  color: var(--ia);
}

.btn-hero-ia:hover {
  background: rgba(168, 85, 247, 0.26);
  border-color: var(--ia);
}

.hero-acoes-nota {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* Palavra do título que troca */
.hero-troca {
  display: inline-block;
  color: var(--accent);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-troca.saindo {
  opacity: 0;
  transform: translateY(8px);
}

@media (max-width: 768px) {
  .hero-fundo {
    height: 640px;
  }

  .hero-atalhos {
    font-size: 0.76rem;
  }

  .hero-atalhos a:nth-child(n+6) {
    display: none;
  }

  .hero-acoes .btn {
    flex: 1 1 calc(50% - 0.4rem);
    justify-content: center;
    padding: 0.7rem 0.6rem;
    font-size: 0.86rem;
  }

  .hero-acoes-nota {
    width: 100%;
    text-align: center;
  }
}

/* Ajustes finos do topo */
.hero-fim {
  white-space: nowrap;
}

.hero-eyebrow {
  flex-wrap: wrap;
  row-gap: 0.15rem;
}

@media (max-width: 768px) {
  .hero-eyebrow .so-desk {
    display: none;
  }

  .hero-atalhos a:nth-child(n+5) {
    display: none;
  }
}

/* ========== RESULTADOS DA BUSCA LOGO ABAIXO DO CAMPO ========== */
.hero-resultados {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  padding: 0.35rem;
  max-height: min(60vh, 440px);
  overflow-y: auto;
  text-align: left;
}

.hero-resultados ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-res-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
}

.hero-res-item:hover,
.hero-res-item:focus-visible,
.hero-res-item.ativo {
  background: var(--surface-hover);
  outline: none;
}

.hero-res-item .tc-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--cat, var(--text-secondary));
  background: var(--surface-2);
}

.hero-res-item .tc-icon .ico {
  width: 18px;
  height: 18px;
}

.hero-res-texto {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-res-texto strong {
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-res-texto small {
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-res-mais,
.hero-res-vazio {
  display: block;
  margin: 0.25rem 0.1rem 0.1rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.hero-res-mais {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

.hero-res-mais:hover {
  text-decoration: underline;
}

.hero-res-vazio a {
  color: var(--accent);
}

/* Galeria "Folhas feitas aqui": troca suave das folhas */
.galeria-item img {
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.32s ease;
}

.galeria-nome,
.galeria-desc {
  transition: opacity 0.32s ease;
}

.galeria-item.trocando img {
  opacity: 0;
  transform: translateY(6px);
}

.galeria-item.trocando .galeria-nome,
.galeria-item.trocando .galeria-desc {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .galeria-item img,
  .galeria-nome,
  .galeria-desc {
    transition: none;
  }
}

/* ========== INSTAGRAM ========== */
.insta-home {
  position: relative;
  margin: 0 0 3.5rem;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(120deg, #f9ce34, #ee2a7b 50%, #6228d7) border-box;
  overflow: hidden;
}

.insta-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(238, 42, 123, 0.16), transparent 55%);
  pointer-events: none;
}

.insta-home > * {
  position: relative;
}

.insta-home-icone {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%);
  box-shadow: 0 8px 24px rgba(238, 42, 123, 0.3);
}

.insta-home-icone svg {
  width: 34px;
  height: 34px;
}

.insta-home-arroba {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f472b6;
  margin-bottom: 0.15rem;
}

.insta-home h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.insta-home-texto > p:not(.insta-home-arroba) {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.insta-home-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.insta-home-lista li {
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.btn-insta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-insta svg {
  width: 18px;
  height: 18px;
}

.btn-insta:hover {
  color: #fff;
  filter: brightness(1.1);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .insta-home {
    grid-template-columns: auto 1fr;
    padding: 1.25rem;
    gap: 1rem;
  }

  .insta-home-icone {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    align-self: start;
  }

  .insta-home-icone svg {
    width: 28px;
    height: 28px;
  }

  .btn-insta {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-insta:hover {
    transform: none;
  }
}

/* Presente grátis: livrinhos para colorir */
.presente-banner {
  display: flex; align-items: center; gap: 1rem;
  margin: 0 0 1.4rem; padding: .7rem 1.1rem .7rem .8rem;
  border-radius: 14px; text-decoration: none; color: var(--text);
  border: 1px solid rgba(245, 158, 11, .4);
  background:
    radial-gradient(circle at 96% 20%, rgba(250, 204, 21, .6) 0 3px, transparent 4px),
    radial-gradient(circle at 70% 85%, rgba(244, 114, 182, .55) 0 3px, transparent 4px),
    linear-gradient(120deg, rgba(245, 158, 11, .16), rgba(236, 72, 153, .14));
  transition: var(--transition);
}
.presente-banner:hover { border-color: rgba(245, 158, 11, .75); transform: translateY(-1px); }
.presente-banner img { width: 46px; height: auto; border-radius: 5px; border: 2px solid #fff; transform: rotate(-6deg); flex-shrink: 0; }
.presente-texto { display: flex; flex-direction: column; gap: .1rem; flex: 1; min-width: 0; }
.presente-selo { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fbbf24; }
.presente-texto strong { font-size: 1.02rem; }
.presente-texto small { font-size: .82rem; color: var(--text-muted); }
.presente-btn { flex-shrink: 0; font-weight: 700; font-size: .88rem; padding: .55rem .95rem; border-radius: 999px; background: #f59e0b; color: #111; }
/* Squishy de papel: a prévia é quase quadrada (frente e verso lado a lado) */
.squishy-banner img { width: 64px; border-radius: 6px; }
/* Peça uma ferramenta: mesmo formato, lâmpada amarela */
.ideia-banner {
  border-color: rgba(251, 191, 36, .45);
  background: linear-gradient(120deg, rgba(245, 158, 11, .16), rgba(59, 130, 246, .08));
}
.ideia-banner:hover { border-color: rgba(251, 191, 36, .85); }
.ideia-banner-ico { width: 46px; height: 46px; padding: 10px; flex-shrink: 0; border-radius: 12px; background: #f59e0b; color: #111827; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) {
  .presente-banner { flex-wrap: wrap; }
  .presente-btn { width: 100%; text-align: center; }
}

/* ========== REFINAMENTO VISUAL DA HOME (out/2026) ========== */
/* "Ver todas": botão de verdade, sem borda tracejada */
.ver-todas {
  width: auto;
  margin: 0.85rem auto 0;
  padding: 0.6rem 1.35rem;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-full);
  background: var(--surface-hover);
  color: var(--text);
}

.ver-todas .ico {
  color: var(--cat, var(--accent));
}

.ver-todas:hover {
  background: var(--secondary-hover);
  border-color: var(--cat, var(--accent));
}

/* Compartilhar: botão com o ícone do WhatsApp */
.share-banner {
  margin: 3rem 0 1.4rem;
}

.btn-whatsapp-share {
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* Livrinhos e Laboratório lado a lado no computador */
.banners-duplos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.banners-duplos .presente-banner {
  margin: 0;
}

.banners-duplos .presente-texto small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1000px) {
  .banners-duplos {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Botão de entrar: G num círculo branco, legível sobre o azul */
  .home-header .btn-google-skin .google-icon {
    box-sizing: content-box;
    padding: 3px;
    border-radius: 50%;
    background: #fff;
  }

  .btn-hero .so-desk {
    display: none;
  }

  /* Como funciona: 3 passos numa linha só */
  .passos-home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .passos-home li {
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.65rem 0.4rem;
    text-align: center;
    font-size: 0.74rem;
  }

  .passo-n {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  /* Instagram mais enxuto no celular */
  .insta-home-lista {
    display: none;
  }

  .insta-home-texto > p:not(.insta-home-arroba) {
    font-size: 0.86rem;
  }

  /* Rodapé: categorias em duas colunas */
  .footer-grid .footer-cats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 1rem;
  }
}

@media (max-width: 420px) {
  .home-header .btn-google-skin .google-btn-text {
    display: inline;
    font-size: 0;
  }

  .home-header .btn-google-skin .google-btn-text::after {
    content: "Entrar";
    font-size: 0.82rem;
  }

  .home-header .btn-google-skin {
    padding: 0 0.75rem;
  }
}

/* ========== ÁREA ACADÊMICA (estudantes, TCC e pós) ==========
   Só uma linha discreta depois das ferramentas, no tom da home.
   (Antes era uma faixa grande clara no meio da página.) */
.acad-linha {
  display: flex; align-items: center; gap: .65rem;
  margin: 2rem 0 0; padding: .7rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text-secondary);
  font-size: .9rem; line-height: 1.4; text-decoration: none;
  transition: var(--transition);
}
.acad-linha:hover { border-color: var(--border-hover); color: var(--text-main); }
.acad-linha .ico { flex-shrink: 0; width: 18px; height: 18px; color: #a5b4fc; }
.acad-linha b { color: var(--text-main); font-weight: 700; }
.acad-linha span:first-of-type { flex: 1; min-width: 0; }
.acad-linha-ir { flex-shrink: 0; font-weight: 700; color: #a5b4fc; }
.top-nav .nav-acad { display: inline-flex; align-items: center; gap: 0.3rem; color: #a5b4fc; font-weight: 600; }
.top-nav .nav-acad:hover { color: #c7d2fe; }
.top-nav .nav-acad .ico { width: 14px; height: 14px; }
.category-pill.pill-academico .ico { width: 13px; height: 13px; }

/* ========== ATALHOS: "O que você quer trabalhar?" e turma ========== */
.atalhos {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0 0 0.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.atalhos[hidden] {
  display: none;
}

.atalhos-linha {
  display: flex;
  align-items: center;
  gap: 0.6rem 0.9rem;
}

.atalhos-rotulo {
  flex-shrink: 0;
  min-width: 11.5rem;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
}

.atalhos-objetivos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.atalho-obj {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface-2);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.atalho-obj .ico {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.atalho-obj:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.atalho-obj.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b1220;
}

.atalho-obj.active .ico {
  color: #0b1220;
}

/* Turma: controle segmentado */
.atalhos-faixas {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg);
}

.atalhos-faixas button {
  padding: 0.35rem 0.85rem;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.atalhos-faixas button:hover {
  color: var(--text);
}

.atalhos-faixas button.active {
  background: var(--text);
  color: var(--bg);
}

.atalhos-limpar {
  margin-left: 0.4rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.atalhos-limpar:hover {
  background: var(--surface-hover);
}

@media (max-width: 768px) {
  .atalhos {
    padding: 0.85rem 0 0.85rem 0.85rem;
    gap: 0.6rem;
  }

  .atalhos-linha {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }

  .atalhos-rotulo {
    min-width: 0;
    font-size: 0.82rem;
  }

  /* No celular os objetivos correm de lado, numa fileira só */
  .atalhos-objetivos {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-right: 0.85rem;
  }

  .atalhos-objetivos::-webkit-scrollbar {
    display: none;
  }

  .atalhos-faixas {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-right: 0.85rem;
    align-self: flex-start;
    max-width: calc(100% - 0.85rem);
  }

  .atalhos-faixas::-webkit-scrollbar {
    display: none;
  }

  .atalhos-faixas button {
    padding: 0.35rem 0.7rem;
    font-size: 0.76rem;
  }
}

/* ========== PRÓXIMAS DATAS: quanto falta ========== */
.epoca-topo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.epoca-quando {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.epoca-proxima {
  border-color: rgba(245, 158, 11, 0.45);
}

.epoca-proxima .epoca-quando {
  color: #fcd34d;
}

.atalhos-faixas .f-curto {
  display: none;
}

@media (max-width: 768px) {
  .atalhos-faixas .f-longo {
    display: none;
  }

  .atalhos-faixas .f-curto {
    display: inline;
  }
}

/* ========== HALLOWEEN E DIA DO SACI (20 a 31/10, ligado pelo js/home.js) ========== */
.festa-home {
  display: flex; align-items: center; gap: 1.3rem;
  margin: 0 0 1.4rem; padding: 1.1rem 1.3rem;
  border-radius: 18px; color: #fff7ed;
  background:
    radial-gradient(ellipse 340px 160px at 6% 50%, rgba(249, 115, 22, .28), transparent 70%),
    linear-gradient(120deg, #2b1740, #1f1530 55%, #3a1d10);
  border: 1px solid rgba(251, 146, 60, .45);
  box-shadow: 0 10px 30px rgba(249, 115, 22, .14);
}
.festa-home[hidden] { display: none; }
.festa-figuras { position: relative; flex-shrink: 0; width: 150px; height: 84px; }
.festa-figuras img { position: absolute; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.festa-abobora { left: 0; bottom: 0; width: 60px; height: 60px; animation: festa-balanca 3.2s ease-in-out infinite alternate; }
.festa-saci { left: 48px; top: -4px; width: 72px; height: 72px; animation: festa-gira 2.6s ease-in-out infinite alternate; }
.festa-fantasma { right: -4px; top: 2px; width: 36px; height: 36px; animation: hero-flutua 2.8s ease-in-out infinite alternate; }
.festa-texto { display: flex; flex-direction: column; gap: .2rem; flex: 1; min-width: 0; }
.festa-selo { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: #fdba74; }
.festa-texto strong { font-size: 1.18rem; line-height: 1.25; letter-spacing: -.01em; }
.festa-texto small { font-size: .88rem; color: #e7d9cc; line-height: 1.45; }
.festa-texto small b { color: #fed7aa; font-weight: 700; }
.festa-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.festa-chips a {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .82rem; font-weight: 700; text-decoration: none;
  color: #1c1917; background: #fdba74; border-radius: 999px; padding: .32rem .75rem .32rem .55rem;
  transition: var(--transition);
}
.festa-chips a:hover { background: #fb923c; transform: translateY(-1px); }
.festa-chips img { width: 16px; height: 16px; }
@keyframes festa-balanca { from { rotate: -6deg; } to { rotate: 6deg; } }
@keyframes festa-gira { from { rotate: -5deg; translate: -2px 0; } to { rotate: 5deg; translate: 2px 0; } }

/* Tom laranja no topo durante a época (só cores, os botões continuam iguais) */
.festa-outubro .hero-fundo {
  background:
    radial-gradient(ellipse 700px 480px at 12% 8%, rgba(249, 115, 22, 0.26), transparent 70%),
    radial-gradient(ellipse 620px 440px at 88% 22%, rgba(147, 51, 234, 0.24), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 32px);
}
.festa-outubro .hero-troca { color: #fb923c; }
.festa-outubro .hero-home h1 .hl::before { background: rgba(249, 115, 22, 0.5); }
.festa-outubro .hero-eyebrow .dot { background: #fb923c; }

/* Toque no topo: lua, morceguinhos voando e uma abóbora junto das folhas */
.festa-ceu { position: absolute; inset: 0; overflow: hidden; }
.festa-ceu img { position: absolute; opacity: .9; }
.festa-lua { top: 70px; right: 4%; width: 54px; opacity: .55 !important; filter: drop-shadow(0 0 18px rgba(253, 224, 71, .45)); }
.festa-morcego { width: 34px; animation: festa-voa 9s ease-in-out infinite alternate; }
.festa-morcego.m1 { top: 84px; left: 44%; }
.festa-morcego.m2 { top: 150px; left: 58%; width: 24px; animation-duration: 11s; animation-delay: -4s; }
.festa-morcego.m3 { top: 108px; right: 13%; width: 28px; animation-duration: 8s; animation-delay: -2s; }
@keyframes festa-voa {
  0% { translate: 0 0; rotate: -6deg; }
  50% { translate: 26px -14px; rotate: 6deg; }
  100% { translate: -18px 10px; rotate: -3deg; }
}
.festa-abobora-hero {
  position: absolute; z-index: 5; bottom: -7%; left: 30%;
  width: 58px; height: 58px; rotate: -8deg;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5));
  animation: hero-flutua 4.4s ease-in-out infinite alternate;
}
.festa-abobora-hero img { width: 100%; height: 100%; }

@media (max-width: 720px) {
  .festa-home { flex-direction: column; align-items: stretch; gap: .6rem; padding: 1rem; }
  .festa-figuras { width: 136px; height: 62px; margin: 0 auto -.2rem; }
  .festa-abobora { width: 48px; height: 48px; }
  .festa-saci { left: 42px; top: -6px; width: 58px; height: 58px; }
  .festa-fantasma { width: 28px; height: 28px; top: 4px; right: 0; }
  .festa-texto { text-align: center; }
  .festa-texto strong { font-size: 1.05rem; }
  .festa-chips { justify-content: center; }
  .festa-ceu { display: none; }
  .festa-abobora-hero { width: 46px; height: 46px; left: 40%; bottom: -5%; }
}
@media (prefers-reduced-motion: reduce) {
  .festa-figuras img, .festa-morcego, .festa-abobora-hero { animation: none; }
}

/* ========== MINHAS FOLHAS (últimas folhas baixadas, só logado) ========== */
.folhas-home {
  margin: 0 0 2.25rem;
}

/* Quem já baixou folhas conhece os 3 passos */
body.tem-folhas .passos-home {
  display: none;
}

.folhas-trilho {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.folha-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  scroll-snap-align: start;
  transition: var(--transition);
}

.folha-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.folha-topo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.folha-topo .ico {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--cat, var(--primary));
}

.folha-topo strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.folha-resumo {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.3em;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.folha-pe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.folha-btn {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (min-width: 1100px) {
  .folhas-trilho {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }
}

/* Uma fileira só no computador (no celular, desliza para o lado) */
@media (min-width: 1100px) {
  .folha-card:nth-child(n+5) {
    display: none;
  }
}
/* ========== LOUSA VERDE DO TOPO ========== */
/* "Pedagogia Tec" escrito a giz (anima uma vez; js/home.js escreverLousa) */
.hero-lousa {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 1001px) and (max-width: 1240px) {
  .hero-home {
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  }
}

.lousa-quadro {
  position: relative;
  padding: 14px;
  border-radius: 12px;
  background:
    repeating-linear-gradient(92deg, rgba(0, 0, 0, 0.12) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #a86b3c, #7a4a26);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: rotate(-1.2deg);
}

.lousa-svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  background:
    radial-gradient(ellipse at 30% 25%, rgba(255, 255, 255, 0.07), transparent 60%),
    radial-gradient(ellipse at 75% 80%, rgba(255, 255, 255, 0.05), transparent 55%),
    #24553f;
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.45);
}

.lousa-restos {
  opacity: 0.14;
}

.lousa-restos text {
  fill: #fff;
  stroke: none;
  font-family: 'Caveat', 'Comic Sans MS', cursive;
  font-weight: 700;
}

.giz-texto {
  fill: #f8fafc;
  font-family: 'Caveat', 'Comic Sans MS', cursive;
  font-weight: 700;
  letter-spacing: 1px;
}

.giz-l2 {
  fill: #fde68a;
}

.lousa-aparador {
  position: relative;
  height: 12px;
  margin: -4px 10px 0;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, #8a5630, #5e3a1d);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  transform: rotate(-1.2deg);
}

.giz-pedaco,
.lousa-apagador {
  position: absolute;
  bottom: 8px;
  border-radius: 3px;
}

.giz-pedaco,
.lousa-apagador {
  padding: 0;
  border: 0;
  pointer-events: none;
}

.giz-pedaco {
  height: 6px;
  background: #f8fafc;
  transition: transform 0.15s ease;
}

.giz-pedaco.g1 { left: 18%; width: 30px; }
.giz-pedaco.g2 { left: calc(18% + 38px); width: 18px; background: #fde68a; }

.lousa-apagador {
  transition: transform 0.15s ease;
  right: 14%;
  width: 54px;
  height: 14px;
  background: linear-gradient(180deg, #e2e8f0 0 35%, #475569 35%);
}

/* Rabiscar com o giz (easter egg, sem aviso): só no PC; no celular o dedo rola a página */
.lousa-rabisco {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .lousa-rabisco {
    display: block;
    position: absolute;
    inset: 14px;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
    border-radius: 4px;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Crect x='11' y='-2' width='7' height='22' rx='2' fill='%23f8fafc' stroke='%2394a3b8' transform='rotate(35 14 14)'/%3E%3C/svg%3E") 3 25, crosshair;
    touch-action: none;
  }

  .giz-pedaco,
  .lousa-apagador {
    pointer-events: auto;
    cursor: pointer;
  }

  .giz-pedaco:hover,
  .giz-pedaco.ativo {
    transform: translateY(-3px);
  }

  .lousa-apagador:hover {
    transform: translateY(-2px) rotate(-4deg);
  }
}

.hero-lousa .festa-abobora-hero {
  left: auto;
  right: -2%;
  bottom: -9%;
}
.hero-lousa .festa-djembe-hero { width: 60px; height: 75px; rotate: -6deg; left: -3%; right: auto; bottom: -12%; }

@media (max-width: 768px) {
  /* No celular a lousa abre o site, antes do título */
  .hero-home {
    padding-top: 1rem;
  }

  .hero-lousa {
    order: -1;
    max-width: 420px;
  }

  .lousa-quadro {
    padding: 10px;
  }

  .lousa-rabisco {
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
  }

  .hero-lousa .festa-abobora-hero {
    right: -1%;
    bottom: -4%;
  }
  .hero-lousa .festa-djembe-hero { width: 48px; height: 60px; left: -1%; right: auto; bottom: -6%; }
}

@keyframes hero-flutua {
  from { translate: 0 -5px; }
  to { translate: 0 7px; }
}

/* No celular, quem já baixou folhas não precisa da propaganda do topo: as folhas dela sobem */
@media (max-width: 768px) {
  body.tem-folhas .hero-sub,
  body.tem-folhas .hero-points,
  body.tem-folhas .hero-acoes-nota {
    display: none;
  }
}

/* ================================================================
   BARRA DO TOPO (2026-11): dois destaques ("Ferramentas interativas" e "Acadêmico"),
   o resto em cor neutra com ícone colorido; no celular, menu de 3 tracinhos.
   ================================================================ */
.top-nav ul { gap: 0.3rem; }
.top-nav li { position: relative; }
.top-nav a,
.top-nav .nav-tv {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.86rem;
  line-height: 1;
  transition: color .15s ease, background .15s ease;
}
.top-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.top-nav .ico { width: 15px; height: 15px; flex-shrink: 0; }
.top-nav .nav-ia { color: var(--text-secondary); font-weight: 500; }
.top-nav .nav-ia .ico { color: var(--ia); width: 15px; height: 15px; }

/* Os destaques: "Ferramentas interativas" (azul-claro) e "Acadêmico" (anil), cantos pouco arredondados */
.top-nav .nav-tv,
.top-nav .nav-acad {
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  padding: 0.42rem 0.65rem;
  border-radius: 7px;
  font-weight: 600;
}
.top-nav .nav-tv {
  margin: 0 0.15rem;
  color: #e0f2fe;
  background: rgba(56, 189, 248, .14);
  border: 1px solid rgba(56, 189, 248, .45);
}
.top-nav .nav-tv .ico { color: #7dd3fc; }
.top-nav .nav-tv:hover,
.top-nav .nav-tv[aria-expanded="true"] { color: #fff; background: rgba(56, 189, 248, .24); border-color: rgba(125, 211, 252, .75); }
.top-nav .nav-tv:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 2px; }
.top-nav .nav-acad {
  color: #e0e7ff;
  background: rgba(129, 140, 248, .12);
  border: 1px solid rgba(129, 140, 248, .4);
}
.top-nav .nav-acad .ico { color: #a5b4fc; }
.top-nav .nav-acad:hover { color: #fff; background: rgba(129, 140, 248, .22); border-color: rgba(165, 180, 252, .7); }
.top-nav .nav-tv-seta { width: 13px; height: 13px; margin-left: -0.1rem; transition: transform .18s ease; }
.top-nav .nav-tv[aria-expanded="true"] .nav-tv-seta { transform: rotate(180deg); }

/* Painel que abre embaixo da pílula */
.nav-tv-painel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: 560px;
  padding: 1rem;
  background: #1a1c21;
  border: 1px solid var(--border-hover);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 950;
}
.nav-tv-painel.aberto { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.tv-painel-titulo { margin: 0 0 .7rem .2rem; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #7dd3fc; }
.tv-grade { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; }
.top-nav .tv-item,
.tv-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .6rem;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  line-height: 1.25;
  font-size: .86rem;
  white-space: normal;
}
.top-nav .tv-item:hover,
.tv-item:hover { background: rgba(56, 189, 248, .1); color: #fff; }
.tv-item b { display: block; font-weight: 600; }
.tv-item small { display: block; color: var(--text-muted); font-size: .76rem; margin-top: .1rem; }
.tv-ico {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(56, 189, 248, .14);
  color: #7dd3fc;
}
.tv-ico .ico, .top-nav .tv-ico .ico { width: 18px; height: 18px; }
.top-nav .tv-painel-todas {
  display: flex;
  justify-content: center;
  margin-top: .7rem;
  padding: .6rem;
  border-top: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  color: #7dd3fc;
  font-size: .82rem;
  font-weight: 600;
}
.top-nav .tv-painel-todas .ico { width: 14px; height: 14px; }

/* Botão de 3 tracinhos (só no celular e tablet) */
.menu-cel-btn {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border-hover);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.menu-cel-btn .ico { width: 20px; height: 20px; }
.menu-cel-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .08); }

.menu-cel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-height));
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  padding: 1rem 1rem 1.25rem;
  background: #16171b;
  border-bottom: 1px solid var(--border-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
}
.menu-cel[hidden] { display: none; }
.menu-cel-destaque-titulo {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .6rem;
  padding: .7rem .85rem;
  border-radius: 12px;
  background: rgba(56, 189, 248, .12);
  border: 1px solid rgba(56, 189, 248, .4);
  color: #e0f2fe;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
}
.menu-cel-destaque-titulo .ico { width: 18px; height: 18px; color: #7dd3fc; }
.menu-cel-destaque-titulo small { color: #7dd3fc; font-weight: 500; font-size: .8rem; }
.menu-cel .tv-item { padding: .5rem; font-size: .84rem; }
.menu-cel .tv-ico { width: 30px; height: 30px; }
.menu-cel-lista { list-style: none; margin: .9rem 0 0; padding: .6rem 0 0; border-top: 1px solid var(--border); }
.menu-cel-lista a {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .75rem .5rem;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
}
.menu-cel-lista a:hover { background: rgba(255, 255, 255, .05); }
.menu-cel-lista .ico { width: 18px; height: 18px; color: var(--text-muted); }

/* Encolhe aos poucos: some "Dúvidas", depois "Ferramentas", depois vira menu de 3 tracinhos */
@media (max-width: 1060px) { .top-nav .nav-extra { display: none; } }
@media (max-width: 960px) { .top-nav .nav-extra-2 { display: none; } }
.top-nav .nav-tv-curto { display: none; }
@media (max-width: 930px) { .top-nav .nav-tv-longo { display: none; } .top-nav .nav-tv-curto { display: inline; } }
@media (max-width: 900px) {
  .top-nav { display: none; }
  .menu-cel-btn { display: grid; }
  .header-actions { gap: .5rem; }
}
@media (max-width: 380px) {
  .tv-item small { display: none; }
}
/* Logado (a foto ocupa menos que o botão de entrar): os itens ficam até telas menores */
@media (min-width: 960px) { .home-header:has(.user-menu-wrapper) .top-nav .nav-extra { display: list-item; } }
@media (min-width: 901px) { .home-header:has(.user-menu-wrapper) .top-nav .nav-extra-2 { display: list-item; } }
.menu-cel-lista .menu-cel-acad { color: #e0e7ff; background: rgba(129, 140, 248, .12); border: 1px solid rgba(129, 140, 248, .35); margin: .2rem 0; }
.menu-cel-lista .menu-cel-acad .ico { color: #a5b4fc; }

/* ========== TOPO: CONVITE PARA CRIAR CONTA + FOLHAS LOGO ABAIXO ========== */
/* O botão e o aviso só aparecem para quem não entrou (js/home.js iniciarConviteConta) */
.btn-hero-conta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid #fff;
  color: #1f2937;
  font-weight: 700;
  cursor: pointer;
}

.btn-hero-conta:hover {
  background: #e5e7eb;
  border-color: #e5e7eb;
  color: #111827;
}

.btn-hero-conta[hidden],
.hero-conta-nota[hidden] {
  display: none;
}

.hero-conta-nota {
  margin: 0.7rem 0 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.45;
}

@media (max-width: 768px) {
  /* No celular a lousa sai: a logo já está na barra e o título e a busca abrem o site */
  .hero-lousa {
    display: none;
  }

  .hero-home {
    padding-top: 1.5rem;
  }
}

/* Link da seção de projetor para a página /na-tela */
.section-heading .s-na-tela {
  margin-left: auto;
  color: #7dd3fc;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
}
.section-heading .s-na-tela:hover { text-decoration: underline; }

/* ========== DESTAQUE DA SEMANA ========== */
/* PC: escrito a giz na lousa do topo, com um botão embaixo. Celular: lousinha fina no começo.
   O admin escolhe a ferramenta e até quando fica (js/home.js mostrarDestaque). */
.giz-selo {
  display: none;
}

.giz-selo text {
  font-family: 'Caveat', 'Comic Sans MS', cursive;
  font-weight: 700;
  letter-spacing: 1px;
}

.lousa-svg.com-destaque .giz-selo {
  display: inline;
}

.lousa-svg.com-destaque .lousa-restos {
  display: none;
}

.lousa-destaque-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  margin: 1.1rem auto 0;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  background: #fde68a;
  color: #14532d;
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  transform: rotate(-1.2deg);
  transition: transform 0.15s ease, background 0.15s ease;
}

.lousa-destaque-btn[hidden],
.destaque-cel[hidden] {
  display: none;
}

.lousa-destaque-btn:hover,
.lousa-destaque-btn:focus-visible {
  background: #fef3c7;
  transform: rotate(-1.2deg) translateY(-2px);
}

.destaque-cel {
  display: none;
}

@media (max-width: 768px) {
  .destaque-cel:not([hidden]) {
    order: -2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.75rem;
    padding: 0.45rem 0.6rem 0.45rem 0.9rem;
    border: 4px solid #8a5630;
    border-radius: 10px;
    background:
      radial-gradient(ellipse at 25% 20%, rgba(255, 255, 255, 0.08), transparent 60%),
      #24553f;
    box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.4), 0 6px 14px rgba(0, 0, 0, 0.3);
    color: #f8fafc;
    text-decoration: none;
  }

  .destaque-cel-selo {
    grid-column: 1;
    color: #fde68a;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .destaque-cel-nome {
    grid-column: 1;
    overflow: hidden;
    font-family: 'Caveat', 'Comic Sans MS', cursive;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.05;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .destaque-cel-ir {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: #fde68a;
    color: #14532d;
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
  }

  /* Com o destaque em cima, o título não precisa de tanto espaço antes */
  .hero-home:has(.destaque-cel:not([hidden])) {
    padding-top: 1rem;
  }
}
