/* Página Apps (frame 1441 de largura). Usa style.css (menu, rodapé, botão de topo). */
body.page { background: #fffffe; color: #0d0d0e; line-height: normal; }
.page main, .page-header { max-width: 1441px; margin-inline: auto; }

/* Cabeçalho branco com logo escuro e botão de menu preto */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-top: 30px; margin-inline: 52px; padding: 28px 48px; background: #fff; max-width: none; }
.page-brand { display: flex; align-items: center; gap: 4.727px; }
.page-brand .mark { width: 21.364px; height: 27.619px; }
.page-brand .mark img { display: block; max-width: none; margin-left: -1.486px; }
.page-brand .name { display: flex; gap: 1.134px; }
.page-brand .name img { display: block; }
.page-header .menu { width: 32px; height: 18px; padding: 0; gap: 13px; }
.page-header .menu span { height: 2.5px; width: 32px; background: #000; }
.page-header .menu span:last-child { width: 20px; }
.page-header .menu:is(:hover, :focus-visible) span:last-child { width: 32px; }

.page main { margin-inline: 52px; max-width: none; }
.page-hero { padding: 24px 60px; }
.page-hero h1 { font-size: clamp(44px, 4.44vw, 64px); font-weight: 700; }
.page-hero p { margin-top: 12px; font-size: 16px; font-weight: 500; }

/* Grade 2×2 com linhas pretas de 2px */
.apps-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 20px; border: 2px solid #000; list-style: none; }
.apps-grid li:nth-child(odd) { border-right: 2px solid #000; }
.apps-grid li:nth-child(n+3) { border-top: 2px solid #000; }

.apps-card { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; height: 100%; padding: 26px 32px; color: inherit; text-decoration: none; transition: background-color .4s; }
.apps-card h2 { font-size: clamp(26px, 2.78vw, 40px); font-weight: 600; max-width: 12em; }
.apps-tag { padding: 12px; border: 1px solid #000; border-radius: 32px; font-size: 11px; font-weight: 900; letter-spacing: 0.88px; line-height: normal; }

.apps-thumb { position: relative; display: block; width: 100%; overflow: hidden; }
.apps-thumb.dark { aspect-ratio: 579 / 228; background: #12120f; }
.apps-thumb.t3 { aspect-ratio: 579 / 298; }
.apps-thumb.t4 { aspect-ratio: 579 / 311; }
.apps-thumb img { position: absolute; max-width: none; object-fit: cover; transition: scale .8s cubic-bezier(0.22, 1, 0.36, 1); }

.apps-more { margin-top: auto; color: #3b1528; font: 600 16px Archivo, Montserrat, sans-serif; }
.apps-more span { display: inline-block; transition: translate .3s; }

/* Hover: o card se acende e a imagem se aproxima */
.apps-card:is(:hover, :focus-visible) { background: #f1eee4; outline: none; }
.apps-card:is(:hover, :focus-visible) .apps-thumb img { scale: 1.06; }
.apps-card:is(:hover, :focus-visible) .apps-more span { translate: 6px 0; }

/* Rodapé igual ao da página inicial; só sem o efeito de "folha" sobre a grade */
.page .contact { background: transparent; margin-top: 0; box-shadow: none; animation: none; position: static; }

@media (max-width: 900px) {
  .page-header { margin-inline: 16px; padding: 20px 16px; }
  .page main { margin-inline: 16px; }
  .page-hero { padding: 24px 16px; }
  .apps-grid { grid-template-columns: 1fr; margin: 12px 0; }
  .apps-grid li:nth-child(odd) { border-right: 0; }
  .apps-grid li:nth-child(n+2) { border-top: 2px solid #000; }
  .apps-card { padding: 22px 20px; gap: 24px; }
}

@media (prefers-reduced-motion: no-preference) {
  .apps-grid li { transition: opacity .7s, translate .8s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: calc(var(--i) * 90ms); }
  .apps-grid.will-reveal:not(.in-view) li { opacity: 0; translate: 0 40px; }
}

/* Página Identidade Visual: grade de 3 colunas */
.apps-grid.cols3 { grid-template-columns: repeat(3, 1fr); }
.apps-grid.cols3 li { border: 0; }
.apps-grid.cols3 li:not(:nth-child(3n)) { border-right: 2px solid #000; }
.apps-grid.cols3 li:nth-child(n+4) { border-top: 2px solid #000; }
.apps-thumb.d3 { aspect-ratio: 364.67 / 228; background: #12120f; }
.apps-thumb.pink { background: #e30b63; }
.apps-thumb video { display: block; width: 100%; height: 100%; object-fit: cover; }

.apps-grid.cols3 .apps-card { min-height: 581px; }
.apps-grid.cols3 .apps-card h2 { width: min(var(--w, 100%), 100%); max-width: none; }
.apps-grid.cols3 .apps-more { margin-top: 0; }
@media (max-width: 1100px) {
  .apps-grid.cols3 { grid-template-columns: 1fr 1fr; }
  .apps-grid.cols3 li:not(:nth-child(3n)) { border-right: 0; }
  .apps-grid.cols3 li:nth-child(n+4) { border-top: 0; }
  .apps-grid.cols3 li:nth-child(odd) { border-right: 2px solid #000; }
  .apps-grid.cols3 li:nth-child(n+3) { border-top: 2px solid #000; }
}
@media (max-width: 900px) {
  .apps-grid.cols3 { grid-template-columns: 1fr; }
  .apps-grid.cols3 li:nth-child(odd) { border-right: 0; }
  .apps-grid.cols3 li:nth-child(n+2) { border-top: 2px solid #000; }
}

/* Página Animação & Ilustração: grade com filtro (linhas por sombra, para funcionar com cartões ocultos) */
.chips { display: flex; gap: 10px; margin-top: 12px; }
.chips button { padding: 8px 16px; border: 1px solid #12120f; border-radius: 16px; background: none; color: #12120f; font: 600 12px Montserrat, sans-serif; cursor: pointer; transition: background-color .3s, color .3s; }
.chips button:is(.on, :hover, :focus-visible) { background: #12120f; color: #f1eee4; }
.apps-grid.cols3.flt { border: 0; margin: 21px; }
.apps-grid.cols3.flt li { border: 0 !important; box-shadow: 0 0 0 1px #000; }
.apps-grid.cols3.flt li[hidden] { display: none; }
.apps-grid.cols3.flt .apps-card { min-height: 547px; }
