/* Materiais dos vídeos — entrega do "comenta X" do Instagram. Base: /css/site.css (escuro, vidro, HUD, lavanda). */
.mt .nav__links a { white-space: nowrap; }

/* ---------- topo ---------- */
.mth { position: relative; padding: 150px 0 70px; overflow: hidden; isolation: isolate; }
.mth__grid {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 60% at 78% 30%, rgba(179,154,255,.22), transparent 70%),
    radial-gradient(35% 40% at 10% 95%, rgba(143,115,240,.14), transparent 70%),
    linear-gradient(rgba(246,244,250,.045) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(246,244,250,.045) 1px, transparent 1px) 0 0 / 64px 64px;
  mask-image: radial-gradient(90% 85% at 50% 35%, #000 40%, transparent 100%);
}
.mth__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: end; }
.mth h1 { margin: 18px 0 20px; font-weight: 600; letter-spacing: -0.045em; line-height: .95; font-size: clamp(44px, 7.2vw, 104px); }
.mth h1 em { font-style: normal; color: var(--lav); }
.mth__lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--mist); max-width: 560px; margin: 0; }
.mth__lede b { color: var(--ink); font-weight: 600; }
.mth__art { justify-self: end; width: min(100%, 280px); height: auto; image-rendering: pixelated; filter: drop-shadow(0 30px 60px rgba(179,154,255,.35)); animation: mtfloat 6s ease-in-out infinite; }
@keyframes mtfloat { 50% { transform: translateY(-12px); } }

/* ---------- lista de materiais ---------- */
.mtl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.mtc {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--r);
  color: inherit; text-decoration: none; min-height: 250px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.mtc:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(179,154,255,.45), 0 30px 80px -30px rgba(179,154,255,.5); }
.mtc__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mtc__word { font-family: var(--f-pixel); font-size: 12px; letter-spacing: .06em; color: var(--bg); background: var(--lav); padding: 6px 10px; border-radius: 8px; }
.mtc h2 { margin: 6px 0 0; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -0.03em; line-height: 1.08; font-weight: 600; }
.mtc p { margin: 0; color: var(--mist); line-height: 1.5; }
.mtc__go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--lav); font-weight: 600; }
.mtc__go svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.mtc:hover .mtc__go svg { transform: translateX(4px); }
.mtc--soon { opacity: .5; pointer-events: none; }

/* ---------- página de um material ---------- */
.mtd__steps { display: grid; gap: 18px; counter-reset: passo; max-width: 900px; }
.mstep { scroll-margin-top: 110px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 22px; padding: 26px; border-radius: var(--r); }
.mstep::before {
  counter-increment: passo; content: counter(passo, decimal-leading-zero);
  font-family: var(--f-pixel); font-size: 22px; color: var(--lav);
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px;
  background: rgba(179,154,255,.1); box-shadow: inset 0 0 0 1px var(--line);
}
.mstep__body { min-width: 0; }
.mstep h3 { margin: 4px 0 8px; font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.02em; font-weight: 600; }
.mstep p { margin: 0 0 14px; color: var(--mist); line-height: 1.55; }
.mstep p:last-child { margin-bottom: 0; }
.mstep code { font-family: var(--f-mono); font-size: .9em; color: var(--ink); background: rgba(246,244,250,.07); padding: 2px 7px; border-radius: 6px; }

.code { position: relative; margin: 6px 0 0; border-radius: 16px; background: #08060d; box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.code__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line-2); }
.code__name { font-family: var(--f-mono); font-size: 12px; color: var(--mist); }
.code pre { margin: 0; padding: 18px 18px 22px; max-height: 440px; overflow: auto; font-family: var(--f-mono); font-size: 13.5px; line-height: 1.65; color: #e4def5; white-space: pre-wrap; word-break: break-word; }
.copy {
  display: inline-flex; align-items: center; gap: 7px; border: 0; cursor: pointer; font: 600 13px var(--f-display);
  color: var(--bg); background: var(--lav); padding: 8px 14px; border-radius: 999px; transition: background .3s, transform .3s var(--ease);
}
.copy:hover { transform: translateY(-1px); }
.copy svg { width: 14px; height: 14px; }
.copy.ok { background: var(--ok); }

.dl { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.mtd__tip { max-width: 900px; margin-top: 26px; padding: 20px 24px; border-radius: var(--r); color: var(--mist); line-height: 1.55; }
.mtd__tip b { color: var(--ink); }
.mtd__more { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

@media (max-width: 760px) {
  .mth { padding-top: 120px; }
  .mth__in { grid-template-columns: 1fr; }
  .mth__art { justify-self: start; width: 150px; order: -1; }
  .mstep { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .mstep::before { width: 48px; height: 48px; font-size: 17px; }
  .code pre { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .mth__art { animation: none; } }
