/* ============================================================
   VOY · Brand book site
   Minimalista (Olive/Stone) + animações inspiradas na LP voy-landing
   ============================================================ */

:root {
  /* Cores */
  --olive:        #19301E;
  --stone:        #F4F1E7;
  --light-stone:  #FCFBF8;
  --weight:       #FFA87C;
  --testosterone: #B9F00A;
  --hair:         #9BD1C2;
  --menopause:    #C6C2FF;

  /* Acentos do Voytex */
  --weight-light:    #E2CAFF;
  --weight-shadow:   #ADBEC4;
  --testo-light:     #DEECAB;
  --testo-shadow:    #7D99AC;
  --hair-light:      #F2E698;
  --hair-shadow:     #C6AADE;
  --menopause-light: #FADED9;
  --menopause-shadow:#FF9068;

  /* Tipografia */
  --font-headline: "Season Mix", "Times New Roman", serif;
  --font-body:     "NB International Pro", "Inter", system-ui, sans-serif;

  /* Layout */
  --max:    1280px;
  --gutter: clamp(20px, 4vw, 64px);
  --radius-l: 32px;
  --radius-xl: 56px;
  --easing: cubic-bezier(.2,.7,.2,1);
}

/* ===== Fontes ===== */
/* Webfonts auto-hospedados em assets/fonts/ — funcionam pra qualquer pessoa,
   sem precisar instalar a fonte no sistema. */
@font-face {
  font-family: "Season Mix";
  src: url("../fonts/SeasonMix-Light.woff2") format("woff2"),
       url("../fonts/SeasonMix-Light.woff")  format("woff");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Season Mix";
  src: url("../fonts/SeasonMix-Regular.woff2") format("woff2"),
       url("../fonts/SeasonMix-Regular.woff")  format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "NB International Pro";
  src: url("../fonts/nbinternationalpro-light-webfont.woff2") format("woff2"),
       url("../fonts/nbinternationalpro-light-webfont.woff")  format("woff");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "NB International Pro";
  src: url("../fonts/nbinternationalpro-regular-webfont.woff2") format("woff2"),
       url("../fonts/nbinternationalpro-regular-webfont.woff")  format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "NB International Pro";
  src: url("../fonts/nbinternationalpro-medium-webfont.woff2") format("woff2"),
       url("../fonts/nbinternationalpro-medium-webfont.woff")  format("woff");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ===== Reset ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--stone);
  color: var(--olive);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }

/* ===== Progress bar ===== */
#prog {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--olive); width: 0;
  z-index: 100; transition: width 80ms linear;
}

/* ===== Nav ===== */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  z-index: 90;
  transition: background 200ms var(--easing), padding 200ms var(--easing), color 200ms var(--easing);
  color: var(--olive);
}
#nav.dark { color: var(--stone); }
#nav.scrolled {
  background: rgba(244, 241, 231, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px var(--gutter);
  color: var(--olive);
  border-bottom: 1px solid rgba(25, 48, 30, 0.08);
}
#nav .logo {
  display: inline-flex; align-items: center;
  height: 28px;
}
#nav .logo img {
  height: 22px; width: auto; display: block;
  transition: filter 200ms;
}
/* No hero escuro, logo é Stone (filtro inverte Olive→Stone). Quando nav scrolled, vira Olive. */
#nav.dark .logo img { filter: brightness(0) invert(1); }
#nav.scrolled .logo img,
#nav:not(.dark) .logo img { filter: none; }
#nav .nav-links {
  display: flex; gap: 28px; list-style: none; padding: 0; margin: 0;
  font-size: 13px; font-weight: 400; letter-spacing: 0.04em;
  text-transform: uppercase;
}
#nav .nav-links a { opacity: 0.75; transition: opacity 200ms; }
#nav .nav-links a:hover, #nav .nav-links a.active { opacity: 1; }
#nav .nav-cta {
  font-size: 13px; font-weight: 500;
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid currentColor;
  transition: background 200ms, color 200ms;
}
#nav .nav-cta:hover { background: var(--olive); color: var(--stone); border-color: var(--olive); }
@media (max-width: 768px) {
  #nav .nav-links { display: none; }
}

/* ===== Layout helpers ===== */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; }

/* ===== Tipografia ===== */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 400; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--olive); opacity: 0.8;
}
.h1, .h2, .h3, .h4 {
  font-family: var(--font-headline);
  font-weight: 400; letter-spacing: -0.01em;
  color: var(--olive); margin: 0;
}
.h1 { font-size: clamp(56px, 9vw, 144px); line-height: 0.95; }
.h2 { font-size: clamp(40px, 5vw, 80px);  line-height: 1.0; }
.h3 { font-size: clamp(28px, 3vw, 48px);  line-height: 1.05; }
.h4 { font-size: clamp(20px, 1.6vw, 28px); line-height: 1.1; }
p   { font-weight: 300; line-height: 1.5; max-width: 60ch; }

/* ===== Hero (com vídeo full-bleed) ===== */
.hero {
  position: relative;
  height: 100svh; min-height: 600px;
  overflow: hidden;
  display: flex; align-items: flex-end;
  color: var(--stone);
  background: var(--olive);
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(25,48,30,0) 35%, rgba(25,48,30,0.65) 90%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 3;
  width: 100%; padding: 0 var(--gutter) clamp(48px, 7vh, 96px);
}
.hero-content .eyebrow { color: var(--stone); opacity: 0.85; margin-bottom: 16px; }
.hero-content .h1 { color: var(--stone); max-width: 18ch; }
.hero-content p { color: var(--stone); opacity: 0.92; margin-top: 16px; max-width: 50ch; }
.hero-cta-row { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero "claro" (Stone) */
.hero.light { color: var(--olive); background: var(--stone); }
.hero.light .hero-vignette { background: linear-gradient(180deg, rgba(244,241,231,0) 35%, rgba(244,241,231,0.7) 90%); }
.hero.light .hero-content .eyebrow,
.hero.light .hero-content .h1,
.hero.light .hero-content p { color: var(--olive); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1px solid var(--olive);
  background: var(--olive); color: var(--stone);
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  cursor: pointer; transition: transform 200ms var(--easing), background 200ms;
}
.btn:hover { transform: translateY(-2px); }
.btn.outline { background: transparent; color: var(--olive); }
.btn.outline.on-dark { color: var(--stone); border-color: var(--stone); }
.btn.outline.on-dark:hover { background: var(--stone); color: var(--olive); }

/* ===== Sections (default) ===== */
section.s {
  padding: clamp(80px, 12vh, 160px) 0;
}
section.s.tight { padding: clamp(60px, 8vh, 120px) 0; }

/* Bloco "intro" do capítulo (eyebrow + h2 + lead) */
.chapter-intro { display: grid; gap: 16px; max-width: 720px; }

/* ===== Animação de entrada ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--easing), transform 700ms var(--easing); }
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 80ms; }
.reveal.delay-2 { transition-delay: 160ms; }
.reveal.delay-3 { transition-delay: 240ms; }
.reveal.delay-4 { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  video { display: none; }
  .hero { background: var(--stone); color: var(--olive); }
  .hero-content .h1 { color: var(--olive); }
}

/* ===== Sumário (home) ===== */
.toc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 48px;
}
@media (max-width: 900px) { .toc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .toc-grid { grid-template-columns: 1fr; } }
.toc-card {
  background: var(--light-stone);
  border-radius: var(--radius-l);
  padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 220px;
  transition: transform 300ms var(--easing), background 300ms;
  position: relative; overflow: hidden;
}
.toc-card:hover { transform: translateY(-4px); background: #fff; }
.toc-card .toc-num {
  font-family: var(--font-headline);
  font-size: 56px; line-height: 1; color: var(--olive); opacity: 0.18;
}
.toc-card .toc-title {
  font-family: var(--font-headline);
  font-size: 28px; line-height: 1.05; letter-spacing: -0.01em;
  color: var(--olive);
}
.toc-card .toc-desc {
  font-size: 13px; opacity: 0.7; margin: 8px 0 0; line-height: 1.4;
}
.toc-card .toc-arrow {
  position: absolute; bottom: 24px; right: 24px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--olive); color: var(--stone);
  display: grid; place-items: center;
  font-size: 14px;
  transition: transform 200ms var(--easing);
}
.toc-card:hover .toc-arrow { transform: rotate(-45deg); }

/* ===== Cor (cap. 02) ===== */
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
@media (max-width: 768px) { .swatches { grid-template-columns: 1fr; } }
.chip {
  border-radius: var(--radius-l); padding: 28px;
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between;
  font-size: 13px; line-height: 1.4;
  border: 1px solid rgba(25,48,30,0.06);
}
.chip .chip-name { font-family: var(--font-body); font-weight: 500; font-size: 18px; }
.chip .chip-hex { font-family: ui-monospace, monospace; opacity: 0.85; }
.chip.olive { background: var(--olive); color: var(--stone); }
.chip.olive .chip-name { color: var(--stone); }
.chip.stone { background: var(--stone); }
.chip.light-stone { background: var(--light-stone); }

.cat-pills { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.cat-pill {
  padding: 18px 32px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 500; font-size: 22px;
  color: var(--olive);
}

/* ===== Voytex (cap. 03) ===== */
.gradient-bars { display: grid; gap: 16px; margin-top: 32px; }
.gradient-bar {
  display: flex; align-items: center; gap: 24px;
  padding: 24px 32px;
  background: var(--light-stone); border-radius: var(--radius-xl);
  min-height: 140px;
}
.gradient-bar .label {
  font-family: var(--font-body); font-weight: 400; font-size: 13px;
  letter-spacing: 0.18em; color: var(--olive); min-width: 130px;
}
.gradient-bar .ramp { flex: 1; height: 80px; border-radius: 24px; }

/* Stops do gradiente · minimalista: quadradinho na posição exata + código HEX */
.cat-block { margin-top: 40px; }
.cat-block .cat-label {
  font-family: var(--font-body); font-weight: 400; font-size: 13px;
  letter-spacing: 0.18em; color: var(--olive); opacity: 0.85;
  display: block; margin-bottom: 16px;
}
.gradient-long {
  height: 64px; border-radius: 18px;
  border: 1px solid rgba(25, 48, 30, 0.06);
}
.stop-marks { position: relative; height: 52px; margin-top: 14px; }
.stop-mini { position: absolute; transform: translateX(-50%); text-align: center; }
.stop-mini.edge-start { transform: translateX(0); text-align: left; }
.stop-mini.edge-end { transform: translateX(-100%); text-align: right; }
.stop-mini .sq {
  width: 18px; height: 18px; border-radius: 5px;
  border: 1px solid rgba(25, 48, 30, 0.12);
  display: inline-block;
}
.stop-mini .code {
  display: block; margin-top: 7px;
  font-family: ui-monospace, monospace; font-size: 11px;
  letter-spacing: 0.02em; color: var(--olive); opacity: 0.7;
}

/* Scroll-scrub do Voytex */
.scrub {
  position: relative; height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--light-stone);
}
.scrub-canvas {
  width: 80%; max-width: 1100px; height: auto; aspect-ratio: 2/1;
  object-fit: contain;
}
.scrub-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: var(--gutter);
  pointer-events: none;
}
.scrub-text { transition: opacity 400ms var(--easing); opacity: 0; max-width: 480px; }
.scrub-text.vis { opacity: 1; }
.scrub-text .scrub-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; opacity: 0.7; }
.scrub-text .scrub-title  { font-family: var(--font-headline); font-size: clamp(36px, 4vw, 56px); line-height: 1.0; margin: 8px 0; }
.scrub-text p { font-size: 16px; opacity: 0.85; }
.scrub-prog {
  position: absolute; bottom: 0; left: 0; height: 3px;
  background: var(--olive); width: 0; transition: width 60ms linear;
}
.scrub-hint {
  position: absolute; top: 24px; right: 24px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.5;
}

/* ===== Tipografia (cap. 04) ===== */
.type-row { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 24px 0; border-bottom: 1px solid rgba(25,48,30,0.08); align-items: baseline; }
.type-row:last-child { border-bottom: 0; }
@media (max-width: 768px) { .type-row { grid-template-columns: 1fr; gap: 8px; } }

/* ===== Logo display (cap. 01) ===== */
.logo-display {
  background: var(--stone);
  border-radius: var(--radius-l);
  padding: 96px 64px 64px;
  text-align: center;
  border: 1px solid rgba(25,48,30,0.06);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  min-height: 340px;
}
.logo-display.dark { background: var(--olive); border-color: transparent; }
.logo-display img {
  width: auto; max-width: 240px;
  height: auto; max-height: 80px;
  object-fit: contain; aspect-ratio: auto;
  display: block; margin: auto; border-radius: 0;
}
.logo-display .label { margin-top: 64px; }
.logo-display.dark .label { color: var(--stone); opacity: 0.7; }

/* ===== Imagens (cap. 04) ===== */
.img-grid { display: grid; gap: 16px; margin-top: 32px; }
.img-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.img-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.img-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.img-grid img    { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius-l); }
.img-grid img.tall { aspect-ratio: 3/4; }
@media (max-width: 768px) {
  .img-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .img-grid.cols-4 { grid-template-columns: 1fr 1fr; }
}

/* Marquee (cap. 05) */
.marquee {
  width: 100%; overflow: hidden; padding: 32px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex; gap: 16px; width: max-content;
  animation: scroll-x 60s linear infinite;
}
.marquee-item {
  flex-shrink: 0; width: 280px; height: 360px;
  border-radius: var(--radius-l); overflow: hidden;
  background: var(--olive);
}
.marquee-item video,
.marquee-item img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius-l);
}
/* Marquee maior (UX e CRM sem crop) */
.marquee.large .marquee-item { width: 380px; height: 480px; }
.marquee.large .marquee-item img { object-fit: contain; background: var(--light-stone); border-radius: var(--radius-l); }

/* Variante .square — items quadrados (UX glassmorphism com bordas evidentes) */
.marquee.large.square .marquee-item { width: 380px; height: 380px; }

/* Variante CRM "Copy por cima" — padding VISUALMENTE igual em todas as direções.
   Removemos width/height fixos e deixamos o item abraçar a imagem com a mesma
   margem em volta (a altura controla o tamanho, a largura é automática). */
.marquee.contain .marquee-item {
  width: auto !important;
  height: auto !important;
  background: #fff;
  padding: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.marquee.contain .marquee-item img {
  display: block;
  height: 432px;
  width: auto;
  max-width: none;
  object-fit: contain;
  background: transparent;
  border-radius: 16px;
}

@media (max-width: 740px) {
  .marquee.large .marquee-item { width: 280px; height: 360px; }
  .marquee.large.square .marquee-item { width: 280px; height: 280px; }
  .marquee.contain .marquee-item { padding: 16px; }
  .marquee.contain .marquee-item img { height: 320px; }
}
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Do/dont — tratamento editorial Voy: divisor Olive, sem caixas coloridas
   ------------------------------------------------------------------ */
.do-dont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  margin-top: 32px;
}
@media (max-width: 768px) { .do-dont { grid-template-columns: 1fr; gap: 40px; } }

.do-dont .col {
  padding: 24px 0 0;
  background: transparent;
  border: none;
  border-radius: 0;
  border-top: 1px solid var(--olive);
  position: relative;
}

/* "Faça" / "Não faça" em Season Mix — sentence case, sem CAIXA ALTA */
.do-dont h5 {
  margin: 0 0 24px;
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--olive);
  display: flex;
  align-items: center;
  gap: 12px;
}
/* Marcador discreto antes do título — círculo cheio (faça) / contornado (não faça) */
.do-dont h5::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transform: translateY(1px);
}
.do-dont .col.do   h5::before { background: var(--olive); }
.do-dont .col.dont h5::before { background: transparent; border: 1px solid var(--olive); }

/* Lista — sem bullets de browser, com linhas divisórias editoriais */
.do-dont ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.55;
  color: var(--olive);
}
.do-dont li {
  position: relative;
  padding: 16px 0 16px 28px;
  border-top: 1px solid rgba(25,48,30,0.10);
}
.do-dont li:first-child { border-top: none; padding-top: 4px; }
.do-dont li:last-child  { padding-bottom: 4px; }

/* Glifos Season Mix substituem ✓/✗ — mais editorial, menos genérico */
.do-dont li::before {
  position: absolute;
  left: 0;
  top: 18px;
  font-family: var(--font-headline);
  font-size: 18px;
  line-height: 1;
  color: var(--olive);
}
.do-dont li:first-child::before { top: 6px; }
.do-dont .col.do   li::before { content: "—"; }     /* travessão */
.do-dont .col.dont li::before { content: "×"; opacity: 0.5; font-size: 20px; top: 14px; }
.do-dont .col.dont li:first-child::before { top: 2px; }
.do-dont .col.dont li { color: rgba(25,48,30,0.78); }

/* ===== Tom de voz (cap. 06) ===== */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
@media (max-width: 768px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  padding: 32px;
  border-radius: var(--radius-l); background: var(--light-stone);
}
.pillar h4 { font-family: var(--font-headline); font-size: 32px; margin: 0 0 12px; line-height: 1; font-weight: 400; letter-spacing: -0.01em; }
.pillar p  { margin: 0; font-size: 15px; line-height: 1.5; }

/* Tabela "Pode melhorar / Parece bom" */
.tov { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 14px; }
.tov th { text-align: left; padding: 14px 16px; border-bottom: 2px solid var(--olive); font-weight: 500; }
.tov td { vertical-align: top; padding: 14px 16px; border-bottom: 1px solid rgba(25,48,30,0.08); line-height: 1.5; }
.tov td.no  { background: rgba(255,144,104,0.08); }
.tov td.yes { background: rgba(155,209,194,0.18); }
.tov td.no.flag, .tov td.no.regulation { background: rgba(255,144,104,0.20); }
.tov code { background: rgba(25,48,30,0.06); padding: 1px 6px; border-radius: 4px; font-family: ui-monospace, monospace; font-size: 0.9em; }

/* FAQ accordion */
.faq { margin-top: 32px; }
.faq-item { border-top: 1px solid rgba(25,48,30,0.12); }
.faq-item:last-child { border-bottom: 1px solid rgba(25,48,30,0.12); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0; cursor: pointer;
  font-family: var(--font-body); font-weight: 400; font-size: 18px;
}
.faq-q .faq-icon {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--olive);
  display: grid; place-items: center; font-size: 16px;
  transition: transform 300ms var(--easing), background 200ms;
}
.faq-item.open .faq-icon { background: var(--olive); color: var(--stone); transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 400ms var(--easing); }
.faq-item.open .faq-a { max-height: 500px; padding-bottom: 24px; }
.faq-a p { font-size: 15px; opacity: 0.85; margin: 0; max-width: 70ch; }

/* ===== Aplicações (cap. 07) ===== */
.app-pattern {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px;
  margin-top: 48px; align-items: center;
}
@media (max-width: 900px) { .app-pattern { grid-template-columns: 1fr; } }
.app-pattern .text { padding: 16px 0; }
.app-pattern .visual {
  border-radius: var(--radius-l); overflow: hidden;
  aspect-ratio: 4/3; background: var(--olive); position: relative;
}
.app-pattern .visual video,
.app-pattern .visual img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.app-pattern.reverse { grid-template-columns: 1.6fr 1fr; }
.app-pattern.reverse .visual { order: -1; }
@media (max-width: 900px) { .app-pattern.reverse .visual { order: 0; } }

/* ===== Bento grid premium (cap. 04) ===== */
/* Asymmetric grid inspirado em Awwwards / Cosmos.so / Linear */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(110px, auto);
  grid-auto-flow: dense;
  gap: 14px;
  margin-top: 32px;
}
/* Variante compacta — retângulos menores */
.bento.compact { grid-auto-rows: minmax(72px, auto); gap: 12px; }
.bento-item {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--olive);
  cursor: zoom-in;
  transform: translateY(28px) scale(0.97);
  opacity: 0;
  transition:
    transform 800ms var(--easing),
    opacity 800ms var(--easing),
    box-shadow 400ms var(--easing),
    filter 400ms var(--easing);
}
.bento-item.in {
  transform: none; opacity: 1;
}
.bento-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 700ms var(--easing), filter 400ms var(--easing);
  border-radius: var(--radius-l);
}
/* Variante "contain" — preserva imagem inteira (sem crop) */
.bento.contain .bento-item { background: var(--light-stone); }
.bento.contain .bento-item img { object-fit: contain; }

/* Variante "square" — bento 4-col com items quadrados 1:1, todos preenchidos (cover) */
.bento.square {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 12px;
}
.bento.square .bento-item {
  grid-column: span 1;
  grid-row: span 1;
  aspect-ratio: 1 / 1;
}
.bento.square .bento-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-l);
}
.bento.square .bento-item.feat,
.bento.square .bento-item.bento-2x2,
.bento.square .bento-item.bento-feat {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 1 / 1;
}
/* Item "preserve" — usa contain dentro do bento.square (para alltype com texto) */
.bento.square .bento-item.preserve { background: var(--light-stone); }
.bento.square .bento-item.preserve img { object-fit: contain; }
@media (max-width: 740px) {
  .bento.square { grid-template-columns: repeat(2, 1fr); }
  .bento.square .bento-item.feat,
  .bento.square .bento-item.bento-2x2,
  .bento.square .bento-item.bento-feat { grid-column: span 2; grid-row: span 2; }
}
.bento-item:hover {
  box-shadow: 0 24px 48px -16px rgba(25, 48, 30, 0.35);
  z-index: 2;
  filter: none;
}
.bento-item:hover img {
  transform: scale(1.04);
  filter: brightness(1.05) saturate(1.05);
}
.bento-item::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(25,48,30,0); border-radius: inherit;
  pointer-events: none;
  transition: background 400ms;
}
.bento-item:hover::after { background: rgba(25,48,30,0.0); }

/* Tamanhos do bento (CSS Grid spans) */
.bento-1x1 { grid-column: span 3; grid-row: span 2; }   /* default square */
.bento-1x2 { grid-column: span 3; grid-row: span 4; }   /* tall */
.bento-2x1 { grid-column: span 6; grid-row: span 2; }   /* wide */
.bento-2x2 { grid-column: span 6; grid-row: span 4; }   /* hero */
.bento-3x2 { grid-column: span 9; grid-row: span 4; }   /* extra wide */
.bento-1x3 { grid-column: span 3; grid-row: span 6; }   /* extra tall */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(90px, auto); }
  .bento-1x1, .bento-1x2, .bento-1x3 { grid-column: span 2; }
  .bento-2x1, .bento-2x2, .bento-3x2 { grid-column: span 3; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .bento-item { grid-column: span 2 !important; grid-row: span 2 !important; }
  .bento-feat { grid-column: span 4 !important; grid-row: span 3 !important; }
}

/* Variante "illu" — biblioteca de ilustração: muitos tiles pequenos sobre
   light-stone, ilustração transparente em contain. Passa volume. */
.bento.illu {
  grid-template-columns: repeat(9, 1fr);
  grid-auto-rows: 1fr;
  grid-auto-flow: dense;
  gap: 10px;
}
.bento.illu .bento-item {
  grid-column: span 1; grid-row: span 1;
  aspect-ratio: 1 / 1;
  background: var(--light-stone);
  border: 1px solid rgba(25, 48, 30, 0.06);
}
.bento.illu .bento-item img {
  object-fit: contain;
  padding: 13%;
  border-radius: 0;
}
.bento.illu .bento-item.feat { grid-column: span 2; grid-row: span 2; aspect-ratio: 1 / 1; }
.bento.illu .bento-item.feat img { padding: 16%; }
.bento.illu .bento-item.tall { grid-row: span 2; aspect-ratio: 1 / 2; }
.bento.illu .bento-item:hover img { transform: scale(1.06); filter: none; }
@media (max-width: 1100px) {
  .bento.illu { grid-template-columns: repeat(6, 1fr) !important; grid-auto-rows: 1fr !important; }
  .bento.illu .bento-item { grid-column: span 1 !important; grid-row: span 1 !important; }
  .bento.illu .bento-item.feat { grid-column: span 2 !important; grid-row: span 2 !important; }
  .bento.illu .bento-item.tall { grid-column: span 1 !important; grid-row: span 2 !important; }
}
@media (max-width: 640px) {
  .bento.illu { grid-template-columns: repeat(4, 1fr) !important; gap: 8px; }
  .bento.illu .bento-item { grid-column: span 1 !important; grid-row: span 1 !important; }
  .bento.illu .bento-item.feat { grid-column: span 2 !important; grid-row: span 2 !important; }
  .bento.illu .bento-item.tall { grid-column: span 1 !important; grid-row: span 2 !important; }
}

/* Lightbox (clique pra abrir tela cheia) */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(25,48,30,0.96);
  display: none;
  align-items: center; justify-content: center;
  padding: 64px;
  opacity: 0;
  transition: opacity 300ms var(--easing);
  cursor: zoom-out;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox img {
  max-width: 90vw; max-height: 90vh;
  object-fit: contain;
  border-radius: 24px;
  transform: scale(0.94);
  transition: transform 400ms var(--easing);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5);
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--stone); color: var(--olive);
  display: grid; place-items: center;
  font-size: 22px; cursor: pointer;
  border: 0; transition: transform 200ms;
}
.lightbox-close:hover { transform: rotate(90deg); }

/* ===== Assets pills (cap. 07) — inspirado no "affect" da LP ===== */
.assets-section {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: clamp(80px, 14vh, 160px) 0;
  overflow: hidden;
  isolation: isolate;
}
.assets-section .assets-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}
.assets-section::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(244,241,231,0.65) 0%, rgba(244,241,231,0.85) 100%);
}
.assets-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 96px);
  width: 100%; max-width: var(--max);
  margin: 0 auto; padding: 0 var(--gutter);
  align-items: center;
}
@media (max-width: 900px) {
  .assets-grid { grid-template-columns: 1fr; }
  .assets-section { min-height: auto; padding: 96px 0; }
}
.assets-left .h2 { margin-top: 12px; max-width: 12ch; }
.assets-left p   { margin-top: 16px; max-width: 38ch; }
.assets-right {
  position: relative;
  height: clamp(420px, 70svh, 640px);
  display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 18%, black 82%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, black 18%, black 82%, transparent 100%);
}
.assets-pills {
  display: flex; flex-direction: column; gap: 11px;
  width: 100%;
  transition: transform 600ms var(--easing);
  will-change: transform;
}
.assets-pill {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; border-radius: 999px;
  border: 1px solid rgba(25,48,30,0.18);
  background: rgba(244, 241, 231, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--olive);
  font-family: var(--font-headline); font-size: clamp(18px, 2vw, 26px);
  font-weight: 400; letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap; max-width: 100%; overflow: hidden;
  opacity: 0.5;
  transition: all 400ms var(--easing);
  cursor: pointer;
}
.assets-pill .pill-icon {
  flex-shrink: 0;
  margin-left: 14px;
  opacity: 0; transform: translateX(-6px);
  transition: opacity 300ms, transform 300ms;
}
.assets-pill.active {
  background: var(--olive); color: var(--stone);
  border-color: var(--olive);
  opacity: 1;
  /* Sem scale — evita corte da pílula. Dá destaque por cor + sombra. */
  box-shadow: 0 12px 32px -8px rgba(25,48,30,0.40);
}
.assets-pill.active .pill-icon { opacity: 1; transform: none; }
.assets-pill:hover { opacity: 1; }
.assets-pill.active:hover { background: #122418; }
@media (max-width: 900px) {
  .assets-section { min-height: auto; }
  .assets-right {
    height: auto; mask-image: none; -webkit-mask-image: none;
  }
  .assets-pills { transform: none !important; }
  .assets-pill { opacity: 1; }
  .assets-pill.active { transform: none; }
}

/* ===== Tabela de install (cap. 08) ===== */
table.spec { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 24px; }
table.spec th, table.spec td { text-align: left; padding: 16px 18px; border-bottom: 1px solid rgba(25,48,30,0.10); vertical-align: top; }
table.spec th { font-weight: 500; }
table.spec code { background: rgba(25,48,30,0.06); padding: 1px 6px; border-radius: 4px; font-family: ui-monospace, monospace; font-size: 0.92em; }

/* ===== Download CTA (padronizado, distinto do next-chapter) ===== */
.download-cta {
  display: block;
  width: 100%;
  position: relative;
  background: linear-gradient(180deg, var(--stone) 0%, var(--light-stone) 100%);
  padding: clamp(80px, 12vh, 140px) var(--gutter);
  text-align: center;
  box-sizing: border-box;
  border-top: 1px solid rgba(25,48,30,0.10);
  border-bottom: 4px solid var(--olive);
}
.download-cta .eyebrow { color: var(--olive); opacity: 0.6; }
.download-cta .h2 { color: var(--olive); margin: 12px auto 16px; max-width: 14ch; }
.download-cta p { color: var(--olive); opacity: 0.78; max-width: 560px; margin: 0 auto 32px; }
.download-cta .btn-download {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 22px 44px; border-radius: 999px;
  background: var(--olive); color: var(--stone);
  border: 1px solid var(--olive);
  font-family: var(--font-body); font-weight: 500; font-size: 18px;
  text-decoration: none;
  transition: transform 200ms var(--easing), box-shadow 200ms;
  box-shadow: 0 8px 24px -8px rgba(25,48,30,0.30);
}
.download-cta .btn-download:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -8px rgba(25,48,30,0.40); }

/* ===== Footer / Nav inferior (próximo capítulo) ===== */
.next-chapter {
  display: block;
  width: 100%;
  background: var(--olive); color: var(--stone);
  padding: clamp(80px, 14vh, 160px) var(--gutter);
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}
.next-chapter .eyebrow { color: var(--stone); opacity: 0.6; }
.next-chapter .h2 {
  color: var(--stone); margin: 16px 0 8px;
  position: relative; display: inline-block;
}
.next-chapter a { color: inherit; }
.next-chapter a:hover .h2 { transform: translateX(8px); }
.next-chapter .h2 { transition: transform 300ms var(--easing); }
.next-chapter p { color: var(--stone); opacity: 0.7; margin: 0 auto; }

/* ===== Footer ===== */
footer.site-footer {
  padding: 32px var(--gutter);
  background: var(--olive); color: var(--stone);
  font-size: 12px; opacity: 0.85;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
footer.site-footer a { text-decoration: underline; opacity: 0.85; }
