/* Academia MetaFácil — catálogo fechado, estética de streaming, cores da marca. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

body.academy-skin {
  background: #12141f;
  color: #efeafc;
  overflow-x: hidden;
}
body.academy-skin .preview-ribbon {
  background: #0b0d17;
  color: #9aa0b8;
}
body.academy-skin .site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, rgba(18, 20, 31, 0.96), rgba(18, 20, 31, 0.55) 70%, transparent);
  border-bottom: 0;
  box-shadow: none;
}
body.academy-skin .site-header.is-scrolled {
  background: rgba(18, 20, 31, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}
body.academy-skin .nav-links a,
body.academy-skin .nav-drop > button { color: #efeafc; }
body.academy-skin .nav-links a.is-active,
body.academy-skin .nav-links a:hover,
body.academy-skin .nav-drop > button:hover { color: var(--purple-2); }
body.academy-skin .menu-toggle span { background: #fff; }
body.academy-skin .mobile-cta { display: none !important; }
body.academy-skin .site-footer {
  background: #0e1018;
  color: #9aa0b8;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
body.academy-skin .site-footer a { color: #cfc6ea; }
body.academy-skin .site-footer strong { color: #fff; }

.ac-logout {
  min-height: 40px; padding: 0 14px; margin-left: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px;
  background: transparent; color: #efeafc; font-weight: 700; cursor: pointer;
}
.ac-logout:hover { border-color: var(--purple-2); color: #fff; }
.ac-logout:focus-visible { outline: 2px solid var(--purple-2); outline-offset: 2px; }

.ac-bleed { width: min(100% - 48px, 1480px); margin-inline: auto; }
.ac-shell { min-height: calc(100vh - var(--header-h)); padding-bottom: 80px; }
.ac-shell .lead { color: #d5cceb; max-width: 46ch; }
.ac-shell .eyebrow { color: var(--purple-2); }
.ac-shell .crumb { color: #9aa0b8; }
.ac-shell .crumb a { color: #c4b8ff; }
.ac-shell h1, .ac-shell h2, .ac-shell h3 { color: #fff; }

.ac-billboard {
  position: relative;
  min-height: min(86vh, 780px);
  display: flex;
  align-items: flex-end;
  padding: 0 0 72px;
  margin-bottom: -64px;
  background:
    var(--ac-featured) center/cover no-repeat,
    linear-gradient(90deg, #12141f, #1a1433);
}
.ac-billboard-fade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, #12141f 8%, rgba(18, 20, 31, 0.88) 34%, rgba(18, 20, 31, 0.18) 64%, transparent 100%),
    linear-gradient(0deg, #12141f 8%, rgba(18, 20, 31, 0.42) 42%, transparent 68%),
    linear-gradient(180deg, rgba(18, 20, 31, 0.7), transparent 32%);
}
.ac-billboard-copy {
  position: relative; z-index: 1;
  width: min(100% - 48px, 1480px); margin-inline: auto;
  padding: 96px 0 12px;
  max-width: 620px;
  margin-left: max(24px, calc((100% - 1480px) / 2));
}
.ac-billboard h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 12ch;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.ac-billboard .lead { font-size: 1.12rem; max-width: 42ch; }
.ac-billboard-meta {
  margin: 14px 0 0;
  color: #cfc6ea;
  font-size: 0.88rem;
  font-weight: 700;
}
.ac-billboard .actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.ac-play-btn {
  min-height: 48px;
  padding-inline: 22px;
  border-radius: 6px;
}
.ac-billboard .btn-ghost {
  min-height: 48px;
  background: rgba(109, 109, 110, 0.55); color: #fff;
  padding-inline: 18px; border-radius: 6px; font-weight: 800;
}
.ac-billboard .btn-ghost:hover { background: rgba(109, 109, 110, 0.78); color: #fff; }

.ac-toolbar {
  position: relative; z-index: 2;
  padding: 8px 0 4px;
}
.ac-filters {
  display: grid;
  grid-template-columns: minmax(200px, 1.6fr) repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.ac-filters input,
.ac-filters select {
  width: 100%; min-height: 42px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 20, 31, 0.72); color: #efeafc; padding: 0 12px;
}
.ac-filters input:focus-visible,
.ac-filters select:focus-visible,
.ac-row-nav button:focus-visible,
.ac-player-btn:focus-visible,
.ac-card-link:focus-visible,
.ac-logout:focus-visible {
  outline: 2px solid var(--purple-2); outline-offset: 2px;
}

.ac-rows { padding-top: 8px; }
.ac-row { margin-bottom: 28px; }
.ac-row[hidden] { display: none; }
.ac-row-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin: 0 0 10px;
}
.ac-row-head h2 { font-size: 1.22rem; font-weight: 800; color: #e8e4f6; letter-spacing: -0.02em; }
.ac-row-nav { display: flex; gap: 6px; }
.ac-row-nav button {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.35); color: #fff; font-size: 1.2rem; cursor: pointer;
}
.ac-row-nav button:disabled { opacity: 0.25; cursor: default; }
.ac-row-nav button:hover:not(:disabled) { background: var(--purple); border-color: transparent; }

.ac-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 186px);
  gap: 10px;
  overflow-x: auto;
  padding: 12px 2px 22px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.ac-scroller::-webkit-scrollbar { height: 0; }

.ac-card { scroll-snap-align: start; position: relative; z-index: 1; }
.ac-card[hidden] { display: none; }
.ac-card-link { display: block; text-decoration: none; color: inherit; border-radius: 10px; }
.ac-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: #1a1433;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.ac-cover img { width: 100%; height: 100%; object-fit: cover; }
.ac-card-overlay {
  position: absolute; inset: auto 0 0; padding: 48px 12px 16px;
  background: linear-gradient(180deg, transparent, rgba(12, 14, 24, 0.96));
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.ac-card-overlay h3 { font-size: 0.92rem; margin: 8px 0 4px; }
.ac-card-overlay p { margin: 0; color: #cfc6ea; font-size: 0.72rem; }
.ac-play-circle {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.ac-play-circle::after {
  content: "";
  width: 0; height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #12141f;
}
.ac-progress {
  height: 4px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.18); overflow: hidden;
}
.ac-cover > .ac-progress {
  position: absolute; left: 0; right: 0; bottom: 0;
  margin: 0; border-radius: 0; z-index: 2;
}
.ac-progress i { display: block; height: 100%; background: var(--green); }

@media (hover: hover) and (pointer: fine) {
  .ac-card:hover { z-index: 4; }
  .ac-card:hover .ac-cover {
    transform: scale(1.08);
    transition: transform 0.22s var(--ease);
    box-shadow: 0 18px 40px rgba(124, 92, 255, 0.28);
  }
  .ac-card:hover .ac-card-overlay { opacity: 1; transform: none; }
}
@media (hover: none) {
  .ac-card-overlay { opacity: 1; transform: none; padding-top: 28px; }
}

.ac-empty { text-align: center; padding: 40px 16px; color: #9aa0b8; }

.ac-course { padding: 28px 0 40px; }
.ac-course-grid {
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 28px; align-items: start;
}
.ac-course-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; }
.ac-course-meta span {
  padding: 6px 10px; border-radius: 999px;
  background: rgba(124, 92, 255, 0.18); font-size: 0.75rem; font-weight: 700;
}
.ac-player {
  position: relative; border-radius: 16px; overflow: hidden; background: #0e1018;
  aspect-ratio: 16 / 9;
}
.ac-player img { width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0.85; }
.ac-player-btn {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 14px;
  background: var(--grad-btn); color: #fff; font-weight: 800; cursor: pointer;
}
.ac-player-note { position: absolute; left: 16px; bottom: 12px; margin: 0; font-size: 0.75rem; color: #ddd6ff; }
.ac-lesson-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.ac-sidebar {
  padding: 20px; border-radius: 18px;
  background: #1a1433; border: 1px solid rgba(255, 255, 255, 0.08);
}
.ac-kicker {
  margin: 0 0 8px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--purple-2);
}
.ac-progress-lg { height: 8px; margin: 8px 0 22px; }
.ac-lessons, .ac-materials { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.ac-lessons a, .ac-materials a {
  display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px;
  text-decoration: none; background: rgba(255, 255, 255, 0.04); color: #efeafc;
}
.ac-lessons a span { font-size: 0.78rem; color: #9aa0b8; }
.ac-lessons a.is-current { background: rgba(124, 92, 255, 0.24); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.4); }
.ac-related h2 { font-size: 1.2rem; margin-bottom: 8px; }

body.ac-login {
  background: #12141f;
  min-height: 100vh;
  overflow-x: hidden;
}
body.ac-login .preview-ribbon { display: none; }
body.ac-login .site-header {
  position: absolute; top: 0; left: 0; right: 0;
  background: linear-gradient(180deg, rgba(11, 13, 23, 0.88), transparent);
  border: 0; box-shadow: none; z-index: 5;
}
body.ac-login .nav-links,
body.ac-login .nav-wrap .btn,
body.ac-login .menu-toggle,
body.ac-login .site-footer,
body.ac-login .mobile-cta,
body.ac-login .whatsapp-fab-widget { display: none !important; }
body.ac-login .nav-wrap { grid-template-columns: auto; justify-content: start; }

.ac-login-wall {
  position: fixed; inset: -8%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  transform: rotate(-6deg) scale(1.18);
  filter: saturate(0.85);
  z-index: 0;
  pointer-events: none;
}
.ac-login-wall img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 4px; opacity: 0.7;
}
.ac-login-veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(42% 48% at 50% 48%, rgba(18, 20, 31, 0.28), rgba(11, 13, 23, 0.72) 70%, rgba(11, 13, 23, 0.92)),
    linear-gradient(180deg, rgba(11, 13, 23, 0.45), rgba(11, 13, 23, 0.88));
}

.ac-login-stage {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 108px 16px 88px;
}
.ac-login-card {
  width: min(450px, 100%);
  padding: 48px 40px 36px;
  border-radius: 6px;
  background: rgba(18, 20, 31, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  color: #efeafc;
  backdrop-filter: blur(10px);
}
.ac-login-card .eyebrow { margin: 0 0 10px; }
.ac-login-card h1 {
  font-size: 2rem; margin: 0 0 10px;
  letter-spacing: -0.03em;
}
.ac-login-lead { margin: 0 0 22px; color: #cfc6ea; font-size: 0.95rem; line-height: 1.5; }
.ac-login-card label {
  display: block; margin: 14px 0 6px;
  font-size: 0.78rem; font-weight: 800; color: #cfc6ea;
}
.ac-login-card input {
  width: 100%; min-height: 52px; border-radius: 6px;
  border: 0; background: #2a2d3d; color: #fff; padding: 0 16px;
  font-size: 1rem;
}
.ac-login-card input:focus {
  outline: 2px solid var(--purple-2); outline-offset: 0;
  background: #32364a;
}
.ac-login-card .btn {
  width: 100%; margin-top: 28px; min-height: 48px; border-radius: 6px;
}
.ac-login-error { margin: 12px 0 0; color: #ffb4a8; font-size: 0.85rem; }
.ac-login-help { margin: 18px 0 0; font-size: 0.86rem; color: #9aa0b8; }
.ac-login-help a { color: #fff; font-weight: 700; }
.ac-login-legal {
  position: relative; z-index: 2;
  margin: -48px 0 28px; text-align: center;
  color: #9aa0b8; font-size: 0.82rem;
}
.ac-login-legal a { color: var(--purple-2); }

.academy-teaser-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.academy-teaser-visual { position: relative; min-height: 320px; }
.ac-teaser-posters img {
  position: absolute; width: 42%; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 10px; box-shadow: 0 18px 40px rgba(18, 20, 31, 0.22);
}
.ac-teaser-posters img:nth-child(1) { left: 8%; top: 28px; transform: rotate(-8deg); }
.ac-teaser-posters img:nth-child(2) { left: 32%; top: 0; z-index: 2; transform: rotate(2deg); }
.ac-teaser-posters img:nth-child(3) { left: 54%; top: 36px; transform: rotate(9deg); }
.academy-teaser-badge {
  position: absolute; left: 8%; bottom: 18px; z-index: 4;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 0.82rem; font-weight: 700;
}
.academy-teaser-badge b { color: var(--green); }

@media (max-width: 1050px) {
  .ac-course-grid, .academy-teaser-grid { grid-template-columns: 1fr; }
  .ac-filters { grid-template-columns: 1fr 1fr; }
  .ac-billboard-copy { margin-left: 24px; max-width: 92%; }
}
@media (max-width: 780px) {
  .ac-bleed { width: calc(100% - 28px); }
  .ac-filters { grid-template-columns: 1fr; }
  .ac-scroller { grid-auto-columns: minmax(132px, 42vw); }
  .ac-row-nav { display: none; }
  .ac-billboard { min-height: 72vh; }
  .ac-login-wall { grid-template-columns: repeat(4, 1fr); }
  .ac-login-card { padding: 32px 22px 26px; }
  .academy-teaser-visual { min-height: 280px; overflow: hidden; }
}
@media (max-width: 780px) {
  body.academy-skin .nav-links.open {
    background: #1a1433;
    border-color: rgba(255, 255, 255, 0.1);
  }
  body.academy-skin .nav-drop-panel { background: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .ac-card:hover .ac-cover { transform: none; }
}
