/* ==========================================================================
   Escola Aplicar — folha principal
   ========================================================================== */

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--t-body);
  font-weight: 500;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--apl-emerald);
  outline-offset: 3px;
  border-radius: 4px;
}

[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* acessibilidade: pular para o conteúdo */
.skip {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -150%);
  z-index: 200; padding: .65rem 1.25rem; border-radius: 0 0 var(--radius) var(--radius);
  background: var(--apl-emerald); color: #fff; font-size: var(--t-sm); font-weight: 600;
  transition: transform var(--dur) var(--ease);
}
.skip:focus { transform: translate(-50%, 0); }

/* ---------- tipografia ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-title);
  margin: 0;
  text-wrap: balance;
}

.display {
  font-size: var(--t-display);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.02;
}

.h2 {
  font-size: var(--t-h2);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.h3 {
  font-size: var(--t-h3);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.25;
}

.eyebrow {
  font-family: var(--font-title);
  font-size: var(--t-caps);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--apl-emerald);
  margin: 0 0 .75rem;
}

.lead {
  font-size: var(--t-lead);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: var(--maxw-text);
  margin: 0;
  text-wrap: pretty;
}

.quote {
  font-family: var(--font-quote);
  font-weight: 400;
  line-height: 1.45;
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.section--tight { padding-block: calc(var(--section-y) * .62); }

.rule { border: 0; border-top: 1px solid var(--rule-soft); margin: 0; }

/* ---------- botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: var(--t-sm);
  line-height: 1;
  padding: .875rem 1.5rem;
  border-radius: var(--pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.btn:active { transform: scale(.98); }

.btn--primary {
  background: var(--apl-emerald);
  color: #fff;
}
.btn--primary:hover { box-shadow: var(--glow-md); }

.btn--ghost {
  background: transparent;
  border-color: var(--rule);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--apl-emerald); color: var(--apl-emerald); }

.btn--sm { padding: .5rem 1rem; font-size: var(--t-xs); }

/* ---------- cabeçalho ---------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: var(--veil);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.header[data-scrolled="true"] { border-bottom-color: var(--rule); }

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* marca */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  flex-shrink: 0;
  margin-right: auto;
}
.brand__logo {
  height: 27px;
  width: auto;
  /* o lockup já é verde: sem filtro, funciona nos dois temas */
}
.brand--footer .brand__logo { height: 32px; }

/* navegação */
.nav { display: flex; align-items: center; gap: .25rem; }

.nav__link {
  padding: .5rem .75rem;
  border-radius: var(--radius);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-soft);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--surface-2); }
.nav__link[aria-current="true"] { color: var(--ink); font-weight: 600; }

/* ações à direita */
.header__actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

.header__sep {
  width: 1px; height: 22px; background: var(--rule);
  margin-inline: .375rem;
}

/* botão de tema */
.theme-toggle {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.theme-toggle:hover { color: var(--ink); background: var(--surface-2); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun  { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun  { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* botão hambúrguer */
.menu-btn {
  display: none;
  width: 34px; height: 34px;
  place-items: center;
  border: 0; background: transparent; cursor: pointer;
  color: var(--ink);
}
.menu-btn__bars { position: relative; width: 17px; height: 11px; }
.menu-btn__bars::before,
.menu-btn__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}
.menu-btn__bars::before { top: 0; }
.menu-btn__bars::after  { top: 9.5px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { top: 4.75px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after  { top: 4.75px; transform: rotate(-45deg); }

/* ---------- menu mobile ---------- */

.drawer {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  background: var(--ground);
  padding: 1.5rem var(--gutter) 2.5rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              visibility var(--dur) var(--ease);
}
.drawer[data-open="true"] { opacity: 1; visibility: visible; transform: none; }

.drawer__link {
  padding: .875rem 0;
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--font-title);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -.015em;
}

.drawer__actions {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  margin-top: 1.75rem;
}
.drawer__actions .btn { width: 100%; padding-block: 1rem; font-size: var(--t-body); }

body[data-drawer-open="true"] { overflow: hidden; }

/* ---------- rodapé ---------- */

.footer {
  border-top: 1px solid var(--rule-soft);
  padding-block: 3rem 2.5rem;
  color: var(--ink-faint);
  font-size: var(--t-sm);
}
.footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr);
}
.footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-soft);
  font-size: var(--t-xs);
}

/* ---------- utilidades ---------- */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* revelação suave ao rolar */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-l) var(--ease), transform var(--dur-l) var(--ease);
}
.reveal[data-visible="true"] { opacity: 1; transform: none; }

/* ---------- responsivo ---------- */

/* com Livro + PrediaLab + Portal do Aluno, o cabeçalho completo só cabe
   a partir de ~1080px; abaixo disso vai tudo para o menu */
@media (max-width: 1080px) {
  .nav, .header__sep, .header__actions .btn { display: none; }
  .menu-btn { display: grid; }
  .header__actions { gap: .25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   1ª DOBRA
   ========================================================================== */

.hero {
  position: relative;
  min-height: min(88svh, 820px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + var(--section-y) * .5);
  overflow: hidden;
}

/* halo verde muito discreto — a profundidade vem do glow, não de sombra */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -22vh;
  left: 50%;
  width: min(110vw, 1100px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%,
              rgba(16, 185, 129, .16) 0%,
              rgba(16, 185, 129, .06) 38%,
              transparent 68%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, .68fr);
  align-items: center;
  gap: clamp(2rem, 4.5vw, 4rem);
}

.hero__text { min-width: 0; }

/* a coluna é mais estreita que a tela: o display acompanha a coluna, não a viewport */
.hero .display { font-size: clamp(2.4rem, 4.3vw, 4rem); }

.hero__lead { margin-top: 1.75rem; max-width: 46ch; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2.5rem;
}

/* --- o modelo BIM, apresentado como uma prancha --- */

.hero__media {
  margin: 0;
  min-width: 0;
  justify-self: end;
  width: 100%;
  max-width: 344px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--rule);
  background: #fff;             /* a prancha é branca nos dois temas */
  box-shadow: var(--lift);
  overflow: hidden;
  position: relative;
}

/* fio verde no topo da prancha, no lugar de sombra pesada */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .10);
  pointer-events: none;
}

.hero__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 760 / 1352;
  object-fit: cover;
  background: #fff;
}

/* ---------- responsivo da dobra ---------- */

@media (max-width: 1024px) {
  .hero__grid { gap: clamp(1.5rem, 3.5vw, 2.75rem); }
  .hero__media { max-width: 286px; }
}

@media (max-width: 860px) {
  .hero { min-height: 0; padding-bottom: calc(var(--section-y) * .7); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero .display { max-width: none; }
  .hero__lead { max-width: none; }
  .hero__media {
    justify-self: center;
    max-width: 300px;
    margin-top: 1rem;
  }
}

@media (max-width: 560px) {
  .hero__cta .btn { width: 100%; padding-block: 1rem; font-size: var(--t-body); }
  .hero__media { max-width: 240px; }
}

/* ==========================================================================
   DEPOIMENTOS
   ========================================================================== */

.sec-head { margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.sec-head .lead { margin-top: .75rem; }
.sec-foot { margin-top: clamp(1.75rem, 3vw, 2.5rem); display: flex; justify-content: center; }

/* ---------- vídeos (fachada: o YouTube só carrega no clique) ---------- */

.yt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.yt { margin: 0; }

.yt-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.yt-btn:hover { border-color: var(--apl-emerald); box-shadow: var(--glow-sm); }
.yt-btn img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.yt-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.yt-play::before {
  content: "";
  width: 54px; height: 54px;
  border-radius: var(--pill);
  background: var(--apl-emerald);
  box-shadow: var(--glow-md);
  transition: transform var(--dur) var(--ease);
}
.yt-play::after {
  content: "";
  position: absolute;
  width: 0; height: 0;
  border-left: 15px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.yt-btn:hover .yt-play::before { transform: scale(1.08); }

.yt figcaption {
  margin-top: .875rem;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-soft);
  text-wrap: balance;
}

/* ---------- galeria de prints ---------- */

.prints { margin-top: 0; }

.prints__grid {
  columns: 4 220px;
  column-gap: 1rem;
}

.print-btn {
  display: block;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
  break-inside: avoid;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.print-btn:hover { border-color: var(--apl-emerald); box-shadow: var(--glow-sm); }
.print-btn img { width: 100%; }

/* ---------- visor ---------- */

.viewer {
  width: min(94vw, 1000px);
  max-width: none;
  max-height: 92svh;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  overflow: visible;
}
.viewer::backdrop { background: rgba(2, 3, 2, .82); backdrop-filter: blur(6px); }

.viewer__body {
  max-height: 92svh;
  overflow: auto;
  border-radius: var(--radius-lg);
  background: var(--surface);
  overscroll-behavior: contain;
}
.viewer__body img { width: 100%; display: block; }
.viewer__body iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}
/* um print de conversa não precisa ocupar a tela toda */
.viewer__body[data-kind="print"] { max-width: 460px; margin-inline: auto; }

.viewer__close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 0;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.viewer__close:hover { background: rgba(255, 255, 255, .26); }
.viewer__close svg { width: 19px; height: 19px; }

@media (max-width: 700px) {
  .prints__grid { columns: 2 150px; }
}

/* os atributos width/height reservam o espaço antes do lazy-load;
   aqui a imagem volta a ser fluida sem perder a proporção */
.print-btn img { height: auto; }

/* ==========================================================================
   ESTEIRA (marquee)
   Um trilho duplicado que desliza. Pausa no hover e para de vez para quem
   pediu menos movimento no sistema.
   ========================================================================== */

.esteira {
  overflow: hidden;
  /* as pontas somem no fundo em vez de cortar seco */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.esteira__trilho {
  display: flex;
  align-items: center;
  gap: var(--esteira-gap, 1rem);
  width: max-content;
  /* Sem animação em CSS de propósito: quem move é o site.js, empurrando o
     scrollLeft da caixa. Ver o comentário no topo do bloco de esteiras lá. */
}

/* ---------- calls com alunos ---------- */

.calls { padding-bottom: clamp(3rem, 6vw, 5rem); }

.calls__cap {
  margin: 0 0 1.5rem;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-faint);
}

.calls .esteira { --esteira-gap: 1rem; --esteira-dur: 72s; }

.call-foto {
  flex: 0 0 auto;
  width: clamp(260px, 30vw, 400px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  overflow: hidden;
  background: var(--surface-2);
}
.call-foto img { width: 100%; display: block; }

/* ---------- logos de empresas ---------- */

.marquee__cap {
  margin: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
  font-size: var(--t-caps);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
}

.esteira--logos { --esteira-gap: .75rem; --esteira-dur: 46s; }

.logo-chip {
  flex: 0 0 auto;
  height: 76px;
  padding: 0 1.75rem;
  display: grid;
  place-items: center;
  /* as logos vêm sobre branco: a plaquinha branca mantém as duas
     temperaturas de tema coerentes sem mexer na cor das marcas */
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.logo-chip img { height: 34px; width: auto; }

/* ==========================================================================
   BLOCO DIVIDIDO (texto + tela)
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.split--inverso .split__texto { order: 2; }
.split--inverso .split__media { order: 1; }

.split__texto { min-width: 0; }
.split__texto .lead { margin-top: 1.25rem; }
.split__cta { margin-top: 2rem; }

.split__media { margin: 0; min-width: 0; }

/* a "tela": o print de produto ganha moldura, como numa janela */
.tela {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  background: var(--surface-2);
  box-shadow: var(--lift);
}

.split__media--vazio .placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--rule);
  background: var(--surface-2);
  color: var(--ink-faint);
  font-size: var(--t-sm);
  text-align: center;
  padding: 1.5rem;
}

@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--inverso .split__texto,
  .split--inverso .split__media { order: 0; }
}

/* ==========================================================================
   CARTÕES DE LINK
   ========================================================================== */

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(.75rem, 1.5vw, 1rem);
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  height: 100%;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.link-card:hover {
  border-color: var(--apl-emerald);
  box-shadow: var(--glow-sm);
  transform: translateY(-2px);
}

.link-card__nome {
  font-family: var(--font-title);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.015em;
}
.link-card__desc { font-size: var(--t-sm); color: var(--ink-soft); }

/* ==========================================================================
   A ESCOLA
   ========================================================================== */

.escola {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.escola__texto p {
  margin: 0 0 1.125rem;
  color: var(--ink-soft);
  max-width: 58ch;
  text-wrap: pretty;
}
.escola__texto p:last-child { margin-bottom: 0; }

.numeros {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .625rem;
}
.numeros li {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  padding-left: 1rem;
  border-left: 2px solid var(--apl-emerald);
}
.numeros b {
  font-family: var(--font-title);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-right: .375rem;
}

.escola__fotos { display: grid; gap: 1rem; }
.escola__fotos figure { margin: 0; }
.escola__fotos img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
}

@media (max-width: 860px) {
  .escola { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- ajustes finos ---------- */

.prints__cap {
  margin: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-faint);
}

.yt figcaption b {
  display: block;
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .125rem;
}



/* ---------- PrediaLab ---------- */

.sec-head--centro {
  text-align: center;
  max-width: 54ch;
  margin-inline: auto;
}
.sec-head--centro .lead { margin-inline: auto; }
.sec-head--centro .split__cta { display: flex; justify-content: center; }

.plab { margin: 0; }
.plab .tela { border-radius: var(--radius-xl); }

/* os métodos de cálculo entram como pastilhas: prova técnica com pouco texto */
.plab__metodos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
}
.plab__metodos span {
  padding: .4rem .875rem;
  border-radius: var(--pill);
  border: 1px solid var(--rule);
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: var(--t-xs);
  font-weight: 500;
}

/* ==========================================================================
   FORMAÇÕES
   ========================================================================== */

.cursos {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(.75rem, 1.5vw, 1rem);
}

.curso {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.curso:hover { border-color: var(--apl-emerald); box-shadow: var(--glow-sm); }

/* a formação completa ocupa a linha inteira e puxa o olho */
.curso--destaque {
  grid-column: 1 / -1;
  background: var(--surface-2);
  border-color: color-mix(in srgb, var(--apl-emerald) 30%, var(--rule));
}

.curso__tag {
  margin: 0;
  font-size: var(--t-caps);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--apl-emerald);
}
.curso__nome {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -.02em;
}
.curso--destaque .curso__nome { font-size: clamp(1.375rem, 2.4vw, 1.75rem); }
.curso__desc { margin: 0; font-size: var(--t-sm); color: var(--ink-soft); max-width: 52ch; }
.curso__carga {
  margin: 0;
  font-size: var(--t-xs);
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}
.curso__link {
  margin-top: auto;
  padding-top: .875rem;
  align-self: flex-start;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--apl-emerald);
}
.curso__link::after { content: " \2192"; }

/* ==========================================================================
   CONTATO
   ========================================================================== */

.contato {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 4rem);
}
.contato__texto .lead { margin-top: 1.25rem; }
.contato__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.contato__dados {
  font-style: normal;
  font-size: var(--t-sm);
  color: var(--ink-soft);
  line-height: 1.7;
}
.contato__dados p { margin: 0 0 1.25rem; }
.contato__dados b { color: var(--ink); font-weight: 600; }
.contato__redes { display: flex; flex-wrap: wrap; gap: 1rem; }
.contato__redes a { font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--rule); }
.contato__redes a:hover { color: var(--apl-emerald); border-color: var(--apl-emerald); }

@media (max-width: 860px) {
  .contato { grid-template-columns: minmax(0, 1fr); }
  .contato__cta .btn { width: 100%; }
}

/* ==========================================================================
   WHATSAPP
   ========================================================================== */

.wa-fab {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border: 0;
  border-radius: var(--pill);
  background: var(--apl-emerald);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--glow-md), 0 8px 24px rgba(5, 25, 36, .18);
  transition: transform var(--dur) var(--ease);
}
.wa-fab:hover { transform: scale(1.06); }
.wa-fab svg { width: 28px; height: 28px; }

/* pop-up flutuante, sempre no centro da tela — inclusive quando o
   formulário é mais alto que a janela: aí quem rola é o corpo, não a página */
.wa-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(94vw, 460px);
  height: fit-content;
  max-width: none;
  max-height: 92svh;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  overflow: visible;
}
/* o X fica dentro do cartão: acima dele, sairia da tela no celular */
.wa-modal .viewer__close {
  top: .75rem; right: .75rem; bottom: auto; z-index: 1;
  background: var(--rule-soft);
  color: var(--ink);
}
.wa-modal::backdrop { background: rgba(2, 3, 2, .82); backdrop-filter: blur(6px); }

.wa-modal__corpo {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2rem);
  max-height: 92svh;
  overflow: auto;
}
.wa-modal__nota { margin: .5rem 0 1.25rem; font-size: var(--t-sm); color: var(--ink-soft); }
.wa-modal__form { min-height: 620px; }
.wa-modal__form iframe { display: block; width: 100%; }

/* ==========================================================================
   PÁGINA-PONTE DO WHATSAPP
   ========================================================================== */

.ponte {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: var(--gutter);
  text-align: center;
}
.ponte__logo { height: 34px; width: auto; }
.ponte__msg { margin: 0; color: var(--ink-soft); }

/* ==========================================================================
   BLOG
   ========================================================================== */

.wrap--texto { max-width: 760px; }

.post-lista {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.post-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.post-card > a:hover {
  border-color: var(--apl-emerald);
  box-shadow: var(--glow-sm);
  transform: translateY(-2px);
}
.post-card__capa { display: block; background: var(--surface-2); }
.post-card__capa img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__corpo { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; }
.post-card__data { font-size: var(--t-xs); color: var(--ink-faint); }
.post-card__titulo {
  font-family: var(--font-title);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.post-card__resumo { font-size: var(--t-sm); color: var(--ink-soft); }

.post { padding-block: calc(var(--header-h) + 3rem) var(--section-y); }
.post__topo { margin-bottom: 2rem; }
.post__voltar { font-size: var(--t-sm); font-weight: 600; color: var(--ink-faint); }
.post__voltar:hover { color: var(--apl-emerald); }
.post__titulo {
  margin: 1rem 0 .75rem;
  font-family: var(--font-title);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  text-wrap: balance;
}
.post__data { margin: 0; font-size: var(--t-sm); color: var(--ink-faint); }
.post__capa { margin: 0 0 2.5rem; }
.post__capa img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--rule); }
.post__rodape { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--rule-soft); }

/* leitura longa */
.prosa { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-soft); }
.prosa > * + * { margin-top: 1.375rem; }
.prosa p { margin: 0; text-wrap: pretty; }
.prosa strong { color: var(--ink); font-weight: 600; }
.prosa h2, .prosa h3 {
  color: var(--ink);
  font-family: var(--font-title);
  letter-spacing: -.02em;
  line-height: 1.25;
  margin-top: 2.75rem;
}
.prosa h2 { font-size: 1.625rem; font-weight: 700; }
.prosa h3 { font-size: 1.25rem; font-weight: 600; }
.prosa a { color: var(--apl-emerald); border-bottom: 1px solid currentColor; }
.prosa ul, .prosa ol { margin-left: 0; padding-left: 1.25rem; }
.prosa li + li { margin-top: .5rem; }
.prosa img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
}
.prosa blockquote {
  margin: 2rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--apl-emerald);
  font-family: var(--font-quote);
  font-size: 1.1875rem;
  color: var(--ink);
}
.prosa table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.prosa th, .prosa td { padding: .625rem .75rem; border-bottom: 1px solid var(--rule-soft); text-align: left; }

/* vídeo do YouTube embutido no post */
.prosa .video {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
}
.prosa .video iframe { display: block; width: 100%; height: 100%; border: 0; }

/* chamada para a formação no meio ou no fim do post */
.prosa .chamada {
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.prosa .chamada > * + * { margin-top: .875rem; }
.prosa .chamada a.btn { border-bottom: 1px solid transparent; }
.prosa .chamada a.btn--primary { color: #fff; }

/* perguntas frequentes do post (a seção id="faq" vira FAQPage no build) */
.prosa details { border-bottom: 1px solid var(--rule-soft); padding: .875rem 0; }
.prosa summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.prosa details > p { margin-top: .625rem; }

/* ==========================================================================
   SUMÁRIO, MIGALHAS E ÂNCORAS
   ========================================================================== */

.migalhas {
  font-size: var(--t-sm);
  color: var(--ink-faint);
  margin-bottom: 1.5rem;
}
.migalhas a { color: var(--ink-faint); }
.migalhas a:hover { color: var(--apl-emerald); }
.migalhas span { margin-inline: .375rem; }

.sumario {
  margin: 0 0 3rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
}

.sumario__titulo {
  margin: 0 0 .875rem;
  font-family: var(--font-title);
  font-size: var(--t-caps);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--apl-emerald);
}

.sumario__lista {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: sumario;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.sumario__item { counter-increment: sumario; }
.sumario__item a {
  display: inline-flex;
  gap: .625rem;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.45;
}
.sumario__item a::before {
  content: counter(sumario);
  flex: 0 0 auto;
  min-width: 1.4em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}
.sumario__item a:hover { color: var(--apl-emerald); }

/* subseção recua e não entra na contagem principal */
.sumario__item--n3 { margin-left: 1.65rem; counter-increment: none; }
.sumario__item--n3 a::before { content: "–"; min-width: 0; }

/* âncora de cada título: discreta, aparece quando o mouse chega perto */
.prosa h2, .prosa h3 { position: relative; }
.ancora {
  margin-left: .45rem;
  color: var(--ink-faint);
  font-weight: 400;
  text-decoration: none;
  opacity: 0;
  transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease);
}
.prosa h2:hover .ancora,
.prosa h3:hover .ancora,
.ancora:focus-visible { opacity: 1; }
.ancora:hover { color: var(--apl-emerald); }

/* o título não pode ficar embaixo da barra fixa ao pular pela âncora */
.prosa h2[id], .prosa h3[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

/* ==========================================================================
   AJUSTES — rodada de 30/09/2026
   ========================================================================== */

/* ---------- a esteira de calls agora fecha a primeira dobra ----------
   A dobra passa a empilhar: bloco de texto+prancha em cima, faixa embaixo. */

.hero {
  flex-direction: column;
  justify-content: center;
  padding-bottom: 0;
}
.hero > .wrap { width: 100%; }

.calls-faixa {
  width: 100%;
  margin-top: clamp(2rem, 4vw, 3.25rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  --esteira-gap: .75rem;
}
.calls-faixa .call-foto {
  width: clamp(150px, 17vw, 215px);
  border-radius: var(--radius);
}

@media (max-width: 860px) {
  .hero { padding-bottom: 0; }
  .calls-faixa { margin-top: 2.25rem; }
  .calls-faixa .call-foto { width: 145px; }
}

/* ---------- logo nos cards de formação ---------- */


/* ---------- cards de link ilustrados ---------- */

.link-card { padding: 0; overflow: hidden; }

.link-card__img {
  display: block;
  background: var(--surface-2);
  border-bottom: 1px solid var(--rule);
}
.link-card__img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform var(--dur-l) var(--ease);
}
.link-card:hover .link-card__img img { transform: scale(1.03); }

.link-card__txt {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1.25rem 1.5rem 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .link-card:hover .link-card__img img { transform: none; }
}

/* ==========================================================================
   AJUSTES — segunda rodada
   ========================================================================== */

/* ---------- a dobra inteira precisa caber na tela, faixa de calls inclusa ----------
   Por isso a prancha do prédio passa a ser limitada pela ALTURA da janela, e não
   pela largura: é ela que empurrava a faixa para baixo do fold. */

.hero {
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(1.25rem, 3vh, 2.5rem));
  padding-bottom: 0;
}

.hero__media {
  height: min(54svh, 580px);
  aspect-ratio: 760 / 1352;
  width: auto;
  max-width: 100%;
  justify-self: end;
}
.hero__video { width: 100%; height: 100%; object-fit: contain; }

.calls-faixa {
  margin-top: clamp(1.25rem, 3vh, 2.25rem);
  padding-bottom: clamp(1rem, 2.5vh, 1.75rem);
}

@media (max-width: 860px) {
  /* empilhado, a altura da janela deixa de ser a régua */
  .hero { min-height: 0; }
  .hero__media {
    height: auto;
    width: min(100%, 250px);
    justify-self: center;
  }
}

/* ---------- logos das formações ----------
   Caixa com background em vez de <img>: o navegador baixa só a variante do tema
   em uso, e as duas versões (texto escuro / texto claro) nunca aparecem juntas. */

.curso__logo {
  display: block;
  height: 42px;
  width: 100%;
  max-width: 250px;
  margin-bottom: .5rem;
  background-image: var(--logo-claro);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}
.curso--destaque .curso__logo { height: 54px; max-width: 320px; }

:root[data-theme="dark"] .curso__logo { background-image: var(--logo-escuro); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .curso__logo { background-image: var(--logo-escuro); }
}

/* ==========================================================================
   ESTEIRAS — terceira rodada
   ========================================================================== */

/* ---------- a faixa de calls alinha com a coluna do site ----------
   Ela deixa de sangrar até a borda da tela: nasce e morre onde nasce e morre
   o resto do conteúdo. O esmaecido das pontas continua, agora dentro da caixa. */

.calls-faixa__caixa {
  margin-top: clamp(1.25rem, 3vh, 2.25rem);
  padding-bottom: clamp(1rem, 2.5vh, 1.75rem);
}
.calls-faixa {
  margin-top: 0;
  padding-bottom: 0;
  border-radius: var(--radius);
  /* dentro do container o esmaecido pode ser mais curto */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

/* ---------- "Mais da Aplicar" agora anda sozinha ---------- */

.esteira--links { --esteira-gap: 1rem; }

.links--trilho {
  list-style: none;
  margin: 0;
  padding: .25rem 0;   /* espaço para o cartão subir no hover sem cortar */
  /* .links é grid e vence por ordem de arquivo: aqui o trilho volta a ser flex,
     senão a medição da esteira lê a largura de um cartão só */
  display: flex;
  grid-template-columns: none;
  width: max-content;
}

.links--trilho > li {
  flex: 0 0 auto;
  width: clamp(250px, 26vw, 310px);
}
.links--trilho .link-card { height: 100%; }

/* ==========================================================================
   CELULAR
   Escrito depois de medir o site em 375 px: alvo de toque abaixo de 44 px,
   texto miúdo, vídeo pesado e rolagem longa demais.
   ========================================================================== */

/* ---------- toque ---------- */

/* o realce cinza do Android/iOS briga com o nosso verde */
a, button, [role="button"], summary {
  -webkit-tap-highlight-color: rgba(32, 188, 102, .14);
}

@media (hover: none) {
  /* A âncora "#" de cada título existe para quem passa o mouse. Sem hover ela
     fica invisível e mesmo assim ocupa o toque e a ordem de tabulação. */
  .ancora { display: none; }

  /* sem mouse, o :hover cola e o cartão fica "preso" no estado de hover */
  .link-card:hover { transform: none; }
  .link-card:hover .link-card__img img { transform: none; }
  .print-btn:hover, .yt-btn:hover, .curso:hover, .quote-card:hover {
    border-color: var(--rule);
    box-shadow: none;
  }
}

@media (max-width: 860px) {
  /* 44 px é o mínimo confortável para o dedo (WCAG 2.5.8 pede 24, a Apple 44) */
  .curso__link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-top: 1rem;
  }

  .contato__redes { gap: .375rem 1.25rem; }
  .contato__redes a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .theme-toggle, .menu-btn {
    width: 44px;
    height: 44px;
  }

  .post__voltar, .quote-proof, .migalhas a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* o rodapé precisa de alvo grande também */
  .footer a { min-height: 44px; display: inline-flex; align-items: center; }

  /* o sumário é uma pilha de links coladinhos: é onde o dedo mais erra */
  .sumario__lista { gap: 0; }
  .sumario__item a {
    min-height: 44px;
    align-items: center;
    padding-block: .25rem;
  }

  /* a marca no cabeçalho é um link de 27px de altura */
  .brand { min-height: 44px; }
}

/* ---------- tipografia ---------- */

@media (max-width: 560px) {
  /* nada de texto corrido abaixo de 15px na mão da pessoa */
  .lead { font-size: 1.0625rem; }
  .link-card__desc,
  .yt figcaption,
  .curso__desc,
  .contato__dados,
  .post-card__resumo { font-size: .9375rem; }
  .curso__carga, .post-card__data { font-size: .8125rem; }
  .prosa { font-size: 1.0625rem; }

  /* o display não pode estourar em palavra longa */
  .hero .display { hyphens: auto; }
}

/* ---------- respiro: a home tem 13 telas, cada rolagem a menos conta ---------- */

@media (max-width: 720px) {
  :root {
    --section-y: clamp(3.25rem, 9vw, 4.5rem);
    --gutter: 1.25rem;
  }
  .sec-head { margin-bottom: 1.75rem; }
  .escola__texto p { margin-bottom: 1rem; }
}

/* ---------- botão flutuante ---------- */

.wa-fab {
  /* fica acima da barra de gestos do iPhone */
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, calc(env(safe-area-inset-bottom) + .5rem));
}

@media (max-width: 560px) {
  /* no fim da página o botão tapa o conteúdo do contato */
  #contato { padding-bottom: calc(var(--section-y) + 4.5rem); }
}

/* ---------- esteiras no celular ---------- */

@media (max-width: 560px) {
  .esteira--links > .links--trilho > li { width: 76vw; max-width: 300px; }
  .esteira--logos { --esteira-gap: .5rem; }
  .logo-chip { height: 62px; padding: 0 1.125rem; }
  .logo-chip img { height: 28px; }
}

/* ---------- galeria de conversas ---------- */

@media (max-width: 560px) {
  /* Duas colunas mantêm a prova compacta: a galeria existe para mostrar que
     são muitas, e o print se lê ampliado no toque. Em uma coluna a seção
     dobrava de altura (2.400 px só de galeria) sem ganhar nada. */
  .prints__grid { columns: 2 140px; column-gap: .625rem; }
  .print-btn { margin-bottom: .625rem; }
}

/* ---------- visor ---------- */

@media (max-width: 560px) {
  .viewer { width: 100vw; max-height: 100svh; }
  .viewer__close { top: auto; bottom: calc(100svh - 2.75rem); right: .75rem; }
  .viewer__body { border-radius: 0; max-height: 100svh; }
}

/* ==========================================================================
   CELULAR — ordem dos blocos
   ========================================================================== */

/* a faixa de calls é item da grade da dobra e ocupa a linha inteira */
.calls-faixa__caixa {
  grid-column: 1 / -1;
  /* o trilho lá dentro tem largura de conteúdo (~7.800 px). Sem isto, a coluna
     da grade se estica para caber nele e arrasta o texto da dobra junto. */
  min-width: 0;
}

.esteira { min-width: 0; }

@media (max-width: 860px) {
  /* No celular a dobra é: título · subtítulo · calls · botões · prédio.
     `display: contents` dissolve o bloco de texto para que o título, o
     subtítulo e os botões virem itens soltos da grade — só assim a faixa de
     calls consegue entrar no meio deles. */
  .hero__text { display: contents; }

  .hero .display      { order: 1; }
  .hero__lead         { order: 2; }
  .calls-faixa__caixa { order: 3; margin-top: clamp(1.5rem, 5vw, 2.25rem); }
  .hero__cta          { order: 4; margin-top: clamp(1.5rem, 4vw, 2rem); }
  .hero__media        { order: 5; margin-top: clamp(1.5rem, 4vw, 2rem); }

  /* a dobra deixa de ser uma coluna com altura de tela cheia */
  .hero__grid { gap: 0; }
}

/* ---------- Resultados: o que cabe na primeira olhada ---------- */



/* ---------- "A Escola": números · foto · texto · foto ---------- */

@media (max-width: 860px) {
  /* `display: contents` dissolve as duas colunas e deixa números, parágrafos
     e fotos como irmãos na mesma grade — só assim dá para intercalar. */
  .escola__texto,
  .escola__fotos { display: contents; }

  .escola { gap: 1.5rem; }

  .escola__numeros              { order: 1; margin-bottom: 0; }
  .escola__fotos figure:first-child { order: 2; }
  .escola__texto p              { order: 3; }
  .escola__fotos figure:last-child  { order: 4; }

  /* sem o contêiner, os parágrafos precisam do próprio espaçamento */
  .escola__texto p { margin: 0 0 1rem; max-width: none; }
}

/* ---------- rodapé: documentos legais ---------- */

.footer__legal p { margin: 0; }
.footer__docs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: .625rem !important;
}
.footer__docs a { color: var(--ink-soft); border-bottom: 1px solid var(--rule); }
.footer__docs a:hover { color: var(--apl-emerald); border-color: var(--apl-emerald); }

/* documento longo: numeração de cláusula pede um pouco mais de ar */
.prosa--doc h2 { font-size: 1.375rem; margin-top: 2.5rem; }
.prosa--doc { font-size: 1rem; }

/* ==========================================================================
   CELULAR — carrosséis de Resultados e velocidade das esteiras
   ========================================================================== */

@media (max-width: 860px) {

  /* ---------- 2. depoimentos em vídeo: carrossel ---------- */

  /* no carrossel os quatro cabem numa linha só, sem custo de altura */
  .yt[data-extra] { display: block; }

  .yt-grid {
    display: flex;
    grid-template-columns: none;
    gap: .875rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--gutter);
    /* sangra até a borda para o próximo cartão "espiar" e convidar o gesto */
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: .5rem;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .yt-grid::-webkit-scrollbar { display: none; }

  .yt-grid > .yt {
    flex: 0 0 auto;
    width: min(78vw, 300px);
    scroll-snap-align: start;
  }

  /* ---------- 3. conversas de WhatsApp: carrossel ---------- */

  .prints__grid {
    columns: auto;                 /* desmonta o grid de colunas */
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: .5rem;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .prints__grid::-webkit-scrollbar { display: none; }

  .print-btn {
    flex: 0 0 auto;
    width: min(66vw, 260px);
    /* altura fixa: os prints variam de 467 a 1403 px de altura e numa fileira
       isso vira um serrote. Mostramos o começo da conversa, que é onde está o
       trecho grifado; o print inteiro abre no toque. */
    height: 360px;
    margin: 0;
    scroll-snap-align: start;
  }
  .print-btn img {
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  /* o "ver mais" empurra os novos prints para dentro do mesmo carrossel */
  .sec-foot { justify-content: flex-start; }
}

/* ---------- caixa que anda sozinha ----------
   Classe posta pelo site.js em tudo que rola sozinho: as três esteiras e,
   no celular, os carrosséis de vídeo e de conversas. */

.rola-sozinho {
  overflow-x: auto;
  /* o html inteiro tem scroll-behavior: smooth, que brigaria com o passo
     quadro a quadro do script */
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rola-sozinho::-webkit-scrollbar { display: none; }

/* com rolagem automática o snap atrapalha: ele puxa de volta a cada passo */
.rola-sozinho { scroll-snap-type: none; }
/* quando a pessoa abre todas as conversas, o snap volta */
.prints__grid--manual { scroll-snap-type: x mandatory !important; }



/* ==========================================================================
   BARRA DE COOKIES (spec 061)
   Montada pelo track.js. Fixa no rodapé, sem véu: não bloqueia a página.
   Aparece sem escolha guardada e pelo link "Cookies" do rodapé.
   ========================================================================== */

.cookies {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, calc(env(safe-area-inset-bottom) + .5rem));
  z-index: 95;               /* acima do botão do WhatsApp (90) */
  max-width: 40rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--glow-sm), var(--lift);
  font-size: var(--t-sm);
  font-weight: 500;
  line-height: 1.5;
}
.cookies[hidden] { display: none; }

.cookies__texto { margin: 0; flex: 1 1 auto; min-width: 0; }
.cookies__texto a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
.cookies__texto a:hover { color: var(--apl-emerald); border-color: var(--apl-emerald); }

.cookies__acoes { display: flex; gap: .5rem; flex: 0 0 auto; }
.cookies .btn:focus-visible,
.cookies a:focus-visible { outline: 2px solid var(--apl-focus); outline-offset: 2px; }

/* com a barra aberta, o botão do WhatsApp sobe para não ficar embaixo dela */
.cookies-aberta .wa-fab {
  bottom: calc(max(1rem, calc(env(safe-area-inset-bottom) + .5rem)) + var(--cookies-h, 0px) + .75rem);
}

@media (max-width: 560px) {
  .cookies { flex-direction: column; align-items: stretch; gap: .75rem; padding: 1rem; }
  .cookies__acoes .btn { flex: 1 1 0; min-height: 44px; }
}
