/* SAGAZ R289 | Editorial por dispositivo.
 * Desktop mantém a arte canônica. Tablet usa R281. Mobile usa R280.
 * NUNCA sombrear a foto com máscara para compensar composição defeituosa.
 */

/* A esteira possui dois grupos idênticos. Cada grupo ocupa APENAS seu próprio
 * conteúdo, de modo que o segundo comece depois do primeiro, não em cima dele.
 * O deslocamento -50% é então exatamente o comprimento de um grupo. */
@keyframes sagaz-proof-marquee-r289 {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-50%,0,0); }
}
body.home-page .proof-marquee {
  overflow: hidden !important;
}
body.home-page .proof-marquee-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  width: max-content !important;
  min-width: max-content !important;
  animation: sagaz-proof-marquee-r289 25s linear infinite !important;
  will-change: transform;
}
body.home-page .proof-grid {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-basis: auto !important;
  width: max-content !important;
  min-width: max-content !important;
  max-width: none !important;
  gap: 12px !important;
  padding-inline: 6px !important;
}
body.home-page .proof-grid article {
  flex: 0 0 clamp(276px,27vw,380px) !important;
  min-width: 0 !important;
  max-width: none !important;
}
/* Em vez de margens claras entre blocos, a imagem do Gênio cobre a seção
 * inteira. A transição entre seções é feita pelas próprias superfícies. */
body.home-page #genio {
  margin-block: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  padding: 0 !important;
}
body.home-page #genio > .genius-picture,
body.home-page #genio > .genius-picture > img {
  border: 0 !important;
  border-radius: 0 !important;
}

@media (min-width: 761px) and (max-width: 1100px) {
  body.home-page {
    --home-tablet-header: 76px;
    --home-tablet-ticker: 112px;
  }
  body.home-page .hero-final {
    height: calc(100svh - var(--home-tablet-header) - var(--home-tablet-ticker)) !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  body.home-page .hero-final .hero-content,
  body.home-page .hero-final > .hero-content {
    box-sizing: border-box !important;
    height: 100% !important;
    min-height: 0 !important;
    width: min(calc(100% - 64px),1020px) !important;
    padding: clamp(24px,5svh,60px) 0 26px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  body.home-page .hero-final .hero-content h1 {
    max-width: min(46vw,470px) !important;
    font-size: clamp(35px,4.65vw,51px) !important;
    line-height: .99 !important;
  }
  body.home-page .hero-final .hero-content .hero-tagline {
    max-width: min(46vw,450px) !important;
    font-size: clamp(21px,2.5vw,26px) !important;
  }
  body.home-page .hero-final .hero-content .hero-description {
    max-width: min(44vw,425px) !important;
    font-size: 14px !important;
  }
  body.home-page .hero-overlay {
    content: none !important;
    display: none !important;
    background: none !important;
  }
  body.home-page .proof-strip {
    height: var(--home-tablet-ticker) !important;
    min-height: 0 !important;
    margin-top: 0 !important;
  }
  body.home-page .proof-marquee,
  body.home-page .proof-marquee-track,
  body.home-page .proof-grid {
    height: 100% !important;
  }
  body.home-page .proof-grid article {
    flex-basis: 292px !important;
    height: 100% !important;
  }
  body.home-page .proof-marquee-track {animation-duration: 21s !important;}

  /* O tablet tem arte R281 com campo escuro livre à esquerda. */
  body.solutions-page .hero-visual.hero-media::before,
  body.solutions-page .hero-visual.hero-media::after,
  body.solutions-page .hero-split::before,
  body.solutions-page .hero-split::after,
  body.about-page .about-hero::after,
  body.representatives-page .representatives-hero::after,
  body.seo-page .seo-hero-media::after,
  body.seo-page .seo-hero-media--cream::after {
    content: none !important;
    display: none !important;
    background: none !important;
  }
  body.solutions-page .hero-split .hero-content {
    box-sizing: border-box !important;
    width: min(calc(100% - 64px),1000px) !important;
    max-width: none !important;
    min-height: 520px !important;
    padding: 46px 0 38px !important;
  }
  body.solutions-page .hero-split .hero-content h1 {
    max-width: min(47vw,460px) !important;
    font-size: clamp(37px,4.8vw,50px) !important;
  }
  body.solutions-page .hero-split .hero-content > p {
    max-width: min(48vw,440px) !important;
    font-size: 14px !important;
  }
  body.about-page .about-hero-inner,
  body.representatives-page .representatives-hero .hero-copy {
    width: min(46%,455px) !important;
    min-height: 0 !important;
    padding: 42px 0 !important;
    margin-left: 40px !important;
    margin-right: auto !important;
  }
  body.about-page .about-hero-inner h1,
  body.representatives-page .representatives-hero .hero-copy h1 {
    max-width: 100% !important;
    font-size: clamp(33px,4.7vw,47px) !important;
    line-height: 1.06 !important;
  }
  body.about-page .about-hero-inner p,
  body.representatives-page .representatives-hero .hero-copy > p {
    max-width: 100% !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
  body.representatives-page .representatives-hero .hero-actions {
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  body.representatives-page .representatives-hero .hero-actions a {
    max-width: 100% !important;
    min-height: 44px !important;
  }
  body.seo-page .seo-hero > .shell {
    width: min(calc(100% - 64px),1000px) !important;
    max-width: none !important;
    padding: 38px 0 !important;
  }
  body.seo-page .seo-hero > .shell > * {
    max-width: min(48vw,460px) !important;
  }
  body.seo-page .seo-hero h1 {
    max-width: min(46vw,460px) !important;
    font-size: clamp(34px,4.8vw,49px) !important;
  }
  body.seo-page .seo-hero p {max-width: min(47vw,450px) !important;}
  body.request-page .request-stage {
    background-image: url('/assets/solicitar-hero-tablet-r281.png') !important;
    background-position: center center !important;
  }
  body.solution-detail-page .detail-hero {
    position: relative !important;
    isolation: isolate !important;
    display: block !important;
    width: min(calc(100% - 32px),1000px) !important;
    aspect-ratio: 1586/992 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 18px auto 0 !important;
    overflow: hidden !important;
  }
  body.solution-detail-page .detail-media {
    position: absolute !important;
    z-index: 0 !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
  }
  body.solution-detail-page .detail-media img {object-position: center !important;}
  body.solution-detail-page .detail-hero::before,
  body.solution-detail-page .detail-hero::after,
  body.solution-detail-page .detail-media::before,
  body.solution-detail-page .detail-media::after {
    content: none !important;
    display: none !important;
    background: none !important;
  }
  body.solution-detail-page .detail-copy {
    position: relative !important;
    z-index: 2 !important;
    width: 48% !important;
    max-width: 460px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: clamp(24px,4vw,48px) 0 24px clamp(24px,4vw,42px) !important;
    box-sizing: border-box !important;
    color: #f7f2e6 !important;
    background: transparent !important;
  }
  body.solution-detail-page .detail-copy h1 {
    font-size: clamp(31px,4.1vw,43px) !important;
    max-width: 100% !important;
    line-height: 1.02 !important;
  }
  body.solution-detail-page .detail-copy > p {
    max-width: 100% !important;
    font-size: 13px !important;
    line-height: 1.36 !important;
  }
  body.solution-detail-page .detail-copy > *,
  body.solution-detail-page .detail-copy > p {color: #f7f2e6 !important;}
  body.solution-detail-page .detail-copy .eyebrow {color: #c8f25c !important;}
  body.solution-detail-page .detail-copy .button {max-width: 100% !important;min-height: 44px !important;}
}
@media(max-width:760px){
  body.home-page .proof-grid article {flex-basis: clamp(218px,64vw,260px) !important;}
  body.home-page .proof-marquee-track {animation-duration: 17s !important;}
  body.home-page .proof-grid {gap: 12px !important;padding-inline:6px!important;}
}

/* The authored tablet picture has a deliberately quiet left area. Copy is
 * condensed for that area, instead of draping desktop paragraphs on people. */
@media (min-width:761px) and (max-width:1100px){
 body.solutions-page .hero-split .mobile-hero-title,
 body.representatives-page .representatives-hero .mobile-hero-title,
 body.solution-detail-page .detail-copy .mobile-hero-title,
 body.about-page .about-hero .mobile-hero-title{
   display:inline!important;
 }
 body.solutions-page .hero-split .desktop-hero-title,
 body.representatives-page .representatives-hero .desktop-hero-title,
 body.solution-detail-page .detail-copy .desktop-hero-title,
 body.about-page .about-hero .desktop-hero-title{display:none!important;}
 body.solutions-page .hero-split .mobile-hero-summary,
 body.representatives-page .representatives-hero .mobile-hero-summary,
 body.solution-detail-page .detail-copy .mobile-hero-summary,
 body.about-page .about-hero .mobile-hero-summary{display:inline!important;}
 body.solutions-page .hero-split .desktop-hero-summary,
 body.representatives-page .representatives-hero .desktop-hero-summary,
 body.solution-detail-page .detail-copy .desktop-hero-summary,
 body.about-page .about-hero .desktop-hero-summary{display:none!important;}
 body.solutions-page .hero-split .hero-content h1{
   max-width: min(36vw,340px)!important;
   font-size:clamp(31px,4.3vw,43px)!important;
   line-height:1.02!important;
 }
 body.solutions-page .hero-split .hero-content>p:not(.muted){max-width:min(39vw,370px)!important;line-height:1.4!important;}
 body.solutions-page .hero-split .hero-content>.muted{max-width:min(42vw,390px)!important;font-size:13px!important;line-height:1.4!important;}
 body.solutions-page .hero-split .hero-secondary-link{max-width:min(39vw,340px)!important;}
 body.representatives-page .representatives-hero {
   min-height:0!important;
   height:auto!important;
   aspect-ratio: 1586 / 992!important;
   display:block!important;
 }
 body.representatives-page .representatives-hero .hero-copy{
   width:min(33vw,305px)!important;
   max-width:305px!important;
   min-height:0!important;
   padding:clamp(18px,3vw,35px) 0 10px!important;
   margin-left:clamp(21px,2.7vw,36px)!important;
   margin-right:0!important;
 }
 body.representatives-page .representatives-hero .hero-copy h1{
   font-size:clamp(24px,3.55vw,37px)!important;
   line-height:1.04!important;
   max-width:100%!important;
   margin:12px 0!important;
 }
 body.representatives-page .representatives-hero .hero-copy>p{
   font-size:clamp(11px,1.38vw,14px)!important;
   line-height:1.38!important;
   max-width:100%!important;
   margin:9px 0!important;
 }
 body.representatives-page .representatives-hero .hero-actions{
   margin-top:10px!important;
   max-width:100%!important;
   grid-template-columns:1fr!important;
 }
 body.representatives-page .representatives-hero .hero-actions a{
   min-height:39px!important;
   padding:8px 10px!important;
   font-size:clamp(10px,1.25vw,13px)!important;
 }
 body.representatives-page .representatives-hero .hero-copy .micro{
   font-size:clamp(10px,1.2vw,12px)!important;
   line-height:1.32!important;
 }
 body.solution-detail-page .detail-copy{width:min(37%,330px)!important;max-width:330px!important;
   margin-left:clamp(15px,2.8vw,30px)!important;padding:clamp(18px,3vw,30px) 0 16px!important;}
 body.solution-detail-page .detail-copy h1{
   font-size:clamp(24px,3.35vw,34px)!important;
   line-height:1.04!important;
   margin:12px 0!important;
 }
 body.solution-detail-page .detail-copy>p{font-size:clamp(12px,1.45vw,14px)!important;
   line-height:1.4!important;margin:10px 0!important;}
 body.solution-detail-page .detail-copy .button{min-height:40px!important;padding:9px 12px!important;
   width:fit-content!important;font-size:12px!important;}
 body.about-page .about-hero-inner{width:min(37vw,340px)!important;margin-left:32px!important;
   padding:40px 0!important;}
 body.about-page .about-hero-inner h1{font-size:clamp(32px,4vw,42px)!important;line-height:1.06!important;}
 body.about-page .about-hero-inner p{font-size:clamp(13px,1.5vw,15px)!important;line-height:1.4!important;}
}
@media (max-width:760px){
 /* The action stays in the artwork's free upper zone, above the Gênio portrait. */
 body.home-page #genio .button{transform:translateY(-13px)!important;}
}

/* R289 visual QA: 1024px must NOT revive the desktop navigation and turn the
 * lock SVG into an enormous overlay. The menu is the only tablet control. */
@media (min-width:761px) and (max-width:1100px){
 .public-shell-page .site-header{
   position:sticky!important;top:0!important;z-index:800!important;
   width:100%!important;height:76px!important;min-height:76px!important;
   background:#f7f2e6!important;
 }
 .public-shell-page .site-header>nav{
   position:relative!important;display:flex!important;align-items:center!important;
   justify-content:space-between!important;
   width:calc(100% - 32px)!important;max-width:none!important;
   height:76px!important;min-height:76px!important;margin-inline:auto!important;
   gap:16px!important;
 }
 .public-shell-page .site-header .brand-logo{flex:0 0 150px!important;
   width:150px!important;min-width:150px!important;max-width:150px!important;}
 .public-shell-page .site-header .nav-operations,
 .public-shell-page .site-header .nav-cta {display:none!important;}
 .public-shell-page .site-header:not(.nav-open) .links{display:none!important;}
 .public-shell-page .site-header.nav-open .links{
   position:fixed!important;display:grid!important;inset:76px 16px auto!important;
   width:calc(100% - 32px)!important;max-height:calc(100svh - 92px)!important;
   overflow-y:auto!important;z-index:900!important;
 }
 .public-shell-page .site-header .nav-menu-toggle{display:inline-flex!important;flex:0 0 auto!important;
   width:auto!important;height:44px!important;min-width:94px!important;
   background:#0b4854!important;color:#f7f2e6!important;
   border-radius:10px!important;align-items:center!important;justify-content:center!important;}
 .public-shell-page .site-header .nav-menu-toggle svg{width:20px!important;height:20px!important;}
 body.solution-detail-page .detail-hero .detail-media{
   position:absolute!important;inset:0!important;margin:0!important;
   transform:none!important;width:100%!important;height:100%!important;
 }
 body.solution-detail-page .detail-hero .detail-copy{
   margin-left:clamp(28px,4vw,42px)!important;
 }
}

/* Solicitar: preserve the entire authored tablet artwork. The form and all
 * explanatory text occupy their own cream editorial section BELOW the image,
 * not a translucent panel over the customer's face or tablet. */
@media (min-width:761px) and (max-width:1100px){
 body.request-page .request-stage{
   display:block!important;
   box-sizing:border-box!important;
   min-height:0!important;
   height:auto!important;
   background-color:#f7f2e6!important;
   background-image:url('/assets/solicitar-hero-tablet-r281.png')!important;
   background-repeat:no-repeat!important;
   background-size:100% auto!important;
   background-position:center top!important;
   padding: min(62.55vw,688px) 0 52px!important;
 }
 body.request-page .request-stage .request-layout{
   position:relative!important;
   display:grid!important;
   grid-template-columns:minmax(0,1fr)!important;
   width:min(calc(100% - 40px),820px)!important;
   max-width:820px!important;
   margin:0 auto!important;
   padding:24px 0 0!important;
   min-height:0!important;
   gap:20px!important;
 }
 body.request-page .request-stage .request-copy{
   position:relative!important;
   width:100%!important;
   max-width:100%!important;
   margin:0!important;
   padding:0!important;
   background:transparent!important;
 }
 body.request-page .request-copy .mobile-hero-title{display:inline!important;}
 body.request-page .request-copy .desktop-hero-title{display:none!important;}
 body.request-page .request-copy h1{
   font-size:clamp(33px,4.2vw,46px)!important;
   line-height:1.08!important;
   max-width:720px!important;
   margin:4px 0 14px!important;
   color:#0b3640!important;
   text-shadow:none!important;
 }
 body.request-page .request-copy>p,
 body.request-page .request-copy .request-telegram-entry{
   max-width:740px!important;
   margin:8px 0!important;
   font-size:14px!important;
   line-height:1.5!important;
   color:#244954!important;
   text-shadow:none!important;
 }
 body.request-page .request-copy p a{color:#0b4854!important;}
 body.request-page .request-form{
   position:relative!important;
   width:100%!important;
   max-width:100%!important;
   margin:0!important;
   border:1px solid rgba(13,62,69,.12)!important;
   border-radius:18px!important;
   background:#fff!important;
   box-shadow:0 12px 25px rgba(10,47,52,.06)!important;
 }
}

/* Mobile request art closes before the form copy. The inherited white heading
 * was invisible on the cream field; retain the original R280 photograph. */
@media (max-width:760px){
 body.request-page .request-copy h1,
 body.request-page .request-copy h1 span,
 body.request-page .request-copy .mobile-hero-title{
   color:#0b3640!important;
   -webkit-text-fill-color:#0b3640!important;
   text-shadow:none!important;
 }
 body.request-page .request-copy .desktop-hero-title{display:none!important;}
 body.request-page .request-copy>p{color:#244954!important;text-shadow:none!important;}
}
@media(prefers-reduced-motion:reduce){
  body.home-page .proof-marquee-track {animation:none!important;will-change:auto!important;}
  body.home-page .proof-marquee {overflow-x:auto!important;scroll-snap-type:x proximity;}
  body.home-page .proof-grid article {scroll-snap-align:start;}
}
