.rendimentos__root {
  --font-primary: 'Proxima Nova A', -apple-system, 'Roboto', Arial, sans-serif;
  --rendimentos-bg: #f4f5f9;
  --rendimentos-text: #282834;
  --rendimentos-accent: #282834;
  --rendimentos-start: #a6a6b0;
  --rendimentos-radius: 20px;
  --rendimentos-gap: 8px;
  --rendimentos-duration: 1s;
  --rendimentos-ease: cubic-bezier(0.05, 0.7, 0.1, 1);
  --rendimentos-line-d: 0.6s;
  --rendimentos-line-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --rendimentos-heading-h: 184px;
  --rendimentos-card-h: 360px;
  --rendimentos-runway: 100svh;
  --rendimentos-stage-h: calc(var(--rendimentos-heading-h) + var(--rendimentos-gap) + var(--rendimentos-card-h));
  box-sizing: border-box;
  width: calc(100% - 16px);
  max-width: 1700px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 8px;
  margin-bottom: 8px;
  touch-action: pan-y;
}

.rendimentos__stage {
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--rendimentos-gap);
  width: 100%;
  background-color: #ffffff;
}

.rendimentos__heading {
  box-sizing: border-box;
  flex-shrink: 0;
  margin: 0;
  padding: 64px 20px 24px;
  font-family: var(--font-primary);
  font-feature-settings: "salt" 1, "calt" 0;
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -1.28px;
  color: var(--rendimentos-text);
  text-align: left;
}

.rendimentos__accent {
  color: var(--rendimentos-accent);
}

.rendimentos__break--wide {
  display: none;
}

.rendimentos__break--mobile {
  display: inline;
}

.rendimentos__cards {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--rendimentos-gap);
  width: 100%;
}

.rendimentos__card {
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  height: var(--rendimentos-card-h);
  padding: 8px;
  overflow: hidden;
  background-color: var(--rendimentos-bg);
  border-radius: var(--rendimentos-radius);
}

.rendimentos__title {
  box-sizing: border-box;
  flex-shrink: 0;
  margin: 0;
  padding: 16px;
  font-family: var(--font-primary);
  font-feature-settings: "salt" 1, "calt" 0;
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.96px;
  color: var(--rendimentos-text);
  text-align: left;
}

.rendimentos__media {
  box-sizing: border-box;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
}

.rendimentos__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  pointer-events: none;
}

@media (min-width: 768px) {
  .rendimentos__root {
    --rendimentos-heading-h: 200px;
    --rendimentos-card-h: 586px;
  }

  .rendimentos__heading {
    padding: 72px 40px 32px;
    font-size: min(48px, calc((100vw - 116px) / 14.4));
    letter-spacing: -0.04em;
    text-align: center;
  }

  .rendimentos__break--mobile {
    display: none;
  }

  .rendimentos__break--wide {
    display: inline;
  }

  .rendimentos__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rendimentos__card {
    gap: 0;
    padding: 40px 40px 0;
  }

  .rendimentos__title {
    padding: 0;
    font-size: 40px;
    letter-spacing: -1.6px;
  }

  .rendimentos__media {
    align-items: flex-end;
    margin-top: 24px;
  }

  .rendimentos__video {
    flex: none;
    width: auto;
    max-width: none;
    height: 100%;
    max-height: 442px;
    aspect-ratio: 1 / 1;
  }

  .rendimentos__card--piggy .rendimentos__video {
    aspect-ratio: 519 / 442;
  }
}

@media (min-width: 1024px) {
  .rendimentos__root {
    --rendimentos-heading-h: 256px;
    --rendimentos-card-h: 602px;
  }

  .rendimentos__heading {
    padding: 72px 32px 40px;
    font-size: min(72px, calc((100vw - 100px) / 14.4));
    line-height: 72px;
    letter-spacing: -0.04em;
  }

  .rendimentos__card {
    padding: 40px 48px 0;
  }

  .rendimentos__title {
    font-size: 48px;
    letter-spacing: -1.92px;
  }
}

@keyframes rendimentos-reveal {
  to {
    opacity: 1;
    transform: none;
    color: var(--rendimentos-text);
  }
}

@keyframes rendimentos-reveal-accent {
  to {
    color: var(--rendimentos-accent);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .rendimentos__heading {
    opacity: 0;
    transform: translateY(60px);
    color: var(--rendimentos-start);
    transition: transform var(--rendimentos-duration) var(--rendimentos-ease), opacity var(--rendimentos-duration) var(--rendimentos-ease), color var(--rendimentos-duration) var(--rendimentos-ease);
    animation: rendimentos-reveal 0.01s linear 4s forwards;
  }

  .rendimentos__accent {
    color: var(--rendimentos-start);
    transition: color var(--rendimentos-duration) var(--rendimentos-ease);
    animation: rendimentos-reveal-accent 0.01s linear 4s forwards;
  }

  .rendimentos__card {
    --rendimentos-p: 0;
    --rendimentos-y: 105%;
    opacity: var(--rendimentos-p);
    transform: translateY(var(--rendimentos-y)) scale(var(--rendimentos-scale, 1));
    will-change: transform, opacity;
    animation: rendimentos-reveal 0.01s linear 4s forwards;
  }

  .rendimentos__root--motion .rendimentos__heading,
  .rendimentos__root--motion .rendimentos__accent,
  .rendimentos__root--motion .rendimentos__card {
    animation: none;
  }

  .rendimentos__root--split .rendimentos__heading {
    opacity: 1;
    transform: none;
    color: var(--rendimentos-text);
    transition: none;
    animation: none;
  }

  .rendimentos__line {
    display: block;
    margin: -0.12em 0;
    padding: 0.12em 0;
    overflow: hidden;
  }

  .rendimentos__line-inner {
    display: block;
    opacity: 0;
    transform: translateY(110%);
    color: var(--rendimentos-start);
    transition: transform var(--rendimentos-line-d) var(--rendimentos-line-ease) var(--rendimentos-delay, 0s), opacity var(--rendimentos-line-d) var(--rendimentos-line-ease) var(--rendimentos-delay, 0s), color var(--rendimentos-line-d) var(--rendimentos-line-ease) var(--rendimentos-delay, 0s);
  }

  .rendimentos__line-inner .rendimentos__accent {
    color: var(--rendimentos-start);
    transition: color var(--rendimentos-line-d) var(--rendimentos-line-ease) var(--rendimentos-delay, 0s);
    animation: none;
  }

  .rendimentos__root--in .rendimentos__line-inner {
    opacity: 1;
    transform: none;
    color: var(--rendimentos-text);
  }

  .rendimentos__root--in .rendimentos__line-inner .rendimentos__accent {
    color: var(--rendimentos-accent);
  }

  .rendimentos__root--in .rendimentos__heading {
    opacity: 1;
    transform: translateY(0);
    color: var(--rendimentos-text);
  }

  .rendimentos__root--in .rendimentos__accent {
    color: var(--rendimentos-accent);
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .rendimentos__card--escada {
    position: sticky;
    top: 8px;
  }

  .rendimentos__card--piggy {
    z-index: 1;
    box-shadow: 0 -2px 10px rgba(40, 40, 52, 0.12);
  }
}

@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .rendimentos__root {
    --rendimentos-card-h: max(420px, min(586px, calc(100svh - 208px)));
    height: calc(var(--rendimentos-stage-h) + var(--rendimentos-runway));
  }

  .rendimentos__stage {
    position: sticky;
    top: 0;
    height: var(--rendimentos-stage-h);
  }

  .rendimentos__root--released {
    height: var(--rendimentos-stage-h);
  }

  .rendimentos__root--released .rendimentos__stage {
    position: relative;
  }

  .rendimentos__heading {
    height: var(--rendimentos-heading-h);
  }

  .rendimentos__cards {
    position: relative;
    height: var(--rendimentos-card-h);
    overflow: hidden;
  }
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .rendimentos__root {
    --rendimentos-card-h: max(420px, min(602px, calc(100svh - 264px)));
  }
}
